• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • 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
          • Error-checking
          • Fty-extensions
          • Isar
          • Kestrel-utilities
          • Set
          • C
          • Soft
          • Bv
          • Imp-language
          • Ethereum
          • Event-macros
          • Java
          • Riscv
          • Bitcoin
          • Zcash
          • Yul
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Axe
          • Lists-light
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • 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))))))