• 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-process-newp-of-new-name

    Process the :newp-of-new-name input.

    Signature
    (expdata-process-newp-of-new-name newp-of-new-name 
                                      new$ names-to-avoid ctx state) 
     
      → 
    (mv erp result state)
    Arguments
    new$ — Guard (symbolp new$).
    names-to-avoid — Guard (symbol-listp names-to-avoid).
    Returns
    result — A list (newp-of-new$ updated-new-names-to-avoid) satisfying (typed-tuplep symbolp symbol-listp result).

    Definitions and Theorems

    Function: expdata-process-newp-of-new-name

    (defun expdata-process-newp-of-new-name
           (newp-of-new-name new$ names-to-avoid ctx state)
     (declare (xargs :stobjs (state)))
     (declare (xargs :guard (and (symbolp new$)
                                 (symbol-listp names-to-avoid))))
     (let ((__function__ 'expdata-process-newp-of-new-name))
      (declare (ignorable __function__))
      (b*
       (((er &)
         (ensure-value-is-symbol$ newp-of-new-name
                                  "The :NEWP-OF-NEW-NAME input" t nil))
        (newp-of-new$ (case newp-of-new-name
                        (:auto (add-suffix new$ "-NEW-REPRESENTATION"))
                        (t newp-of-new-name)))
        (description
         (msg
          "The name ~x0 of the theorem asserting that ~
                              the new function ~x1 maps ~
                              arguments in the new representation ~
                              to results in the new representation, ~@2,"
          newp-of-new$ new$
          (if
           (eq newp-of-new-name :auto)
           "automatically generated ~
                                  since the :NEWP-OF-NEW-NAME input ~
                                  is (perhaps by default) :AUTO"
           "supplied as the :NEWP-OF-NEW-NAME input")))
        (error-msg? (fresh-namep-msg-weak newp-of-new$ nil (w state)))
        ((when error-msg?)
         (er-soft+ ctx t nil
                   "~@0 must be a valid fresh theorem name. ~@1"
                   description error-msg?))
        ((er &)
         (ensure-value-is-not-in-list$
          newp-of-new$ names-to-avoid
          (msg
           "among the names ~x0 of other events ~
                          generated by this transformation"
           names-to-avoid)
          description t nil)))
       (value (list newp-of-new$
                    (cons newp-of-new$ names-to-avoid))))))