• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
        • Isodata
        • Simplify-defun
        • Tailrec
        • Schemalg
        • Restrict
        • Expdata
          • Expdata-implementation
            • Expdata-event-generation
            • Expdata-fn
            • Expdata-input-processing
              • Expdata-symbol-surjmap-alistp
              • Expdata-surjmapp
              • Expdata-pos-surjmap-alistp
              • Expdata-process-surj
              • Expdata-process-arg/res-list-surj
              • Expdata-process-inputs
              • Expdata-process-surjmaps
              • Expdata-fresh-defsurj-thm-names
              • Expdata-process-arg/res-list
              • Expdata-process-arg/res-list-surj-list
              • Expdata-process-res
              • Expdata-process-newp-of-new-name
              • Expdata-fresh-defsurj-name-with-*s-suffix
                • Expdata-process-surjmaps-ress
                • Expdata-process-surjmaps-args
                • Expdata-process-arg/res-list-surj-add-args
                • Expdata-process-arg/res-list-surj-add-ress
                • Expdata-process-old
                • Expdata-process-arg/res-list-aux
                • Expdata-surjmap-listp
                • Expdata-fresh-defsurj-name-with-*s-suffix-aux
              • Expdata-macro-definition
          • Casesplit
          • Simplify-term
          • Simplify-defun-sk
          • Parteval
          • Solve
          • Wrap-output
          • Propagate-iso
          • Simplify
          • Finite-difference
          • Drop-irrelevant-params
          • Copy-function
          • Lift-iso
          • Rename-params
          • Utilities
          • Simplify-term-programmatic
          • Simplify-defun-sk-programmatic
          • Simplify-defun-programmatic
          • Simplify-defun+
          • Common-options
          • Common-concepts
        • Zfc
        • Acre
        • Milawa
        • Smtlink
        • Abnf
        • Vwsim
        • Isar
        • Wp-gen
        • Dimacs-reader
        • Pfcs
        • Legacy-defrstobj
        • C
        • Proof-checker-array
        • Soft
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Ethereum
        • Leftist-trees
        • Java
        • Riscv
        • Taspi
        • Bitcoin
        • Zcash
        • Des
        • X86isa
        • Sha-2
        • Yul
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Axe
        • Poseidon
        • Where-do-i-place-my-book
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Expdata-input-processing

    Expdata-fresh-defsurj-name-with-*s-suffix

    Suffix a name with as many *s as needed to make it a valid name for a new defsurj.

    Signature
    (expdata-fresh-defsurj-name-with-*s-suffix name wrld) 
      → 
    fresh-name
    Arguments
    name — Guard (symbolp name).
    wrld — Guard (plist-worldp wrld).
    Returns
    fresh-name — A symbolp.

    A name is valid for a new defsurj if it is not already a key in the defsurj table.

    We use this function for generating local defsurjs.

    If the input name is already valid, no *s are added.

    Definitions and Theorems

    Function: expdata-fresh-defsurj-name-with-*s-suffix-aux

    (defun expdata-fresh-defsurj-name-with-*s-suffix-aux (name table)
      (declare (xargs :guard (and (symbolp name) (alistp table))))
      (let
         ((__function__ 'expdata-fresh-defsurj-name-with-*s-suffix-aux))
        (declare (ignorable __function__))
        (if (consp (assoc-eq name table))
            (expdata-fresh-defsurj-name-with-*s-suffix-aux
                 (packn-pos (list name '*) name)
                 table)
          name)))

    Function: expdata-fresh-defsurj-name-with-*s-suffix

    (defun expdata-fresh-defsurj-name-with-*s-suffix (name wrld)
      (declare (xargs :guard (and (symbolp name)
                                  (plist-worldp wrld))))
      (let ((__function__ 'expdata-fresh-defsurj-name-with-*s-suffix))
        (declare (ignorable __function__))
        (b* ((table (table-alist *defmapping-table-name* wrld)
    ))
          (expdata-fresh-defsurj-name-with-*s-suffix-aux name table))))