• 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
            • Isodata-implementation
              • Isodata-event-generation
              • Isodata-fn
              • Isodata-input-processing
                • Isodata-symbol-isomap-alistp
                • Isodata-isomapp
                • Isodata-pos-isomap-alistp
                • Isodata-process-iso
                • Isodata-process-inputs
                • Isodata-process-arg/res-list-iso
                • Isodata-process-isomaps
                • Isodata-fresh-defiso-thm-names
                • Isodata-process-arg/res-list
                • Isodata-process-arg/res-list-iso-list
                • Isodata-process-res
                • Isodata-process-old
                • Isodata-fresh-defiso-name-with-*s-suffix
                • Isodata-process-newp-of-new-name
                  • Isodata-process-undefined
                  • Isodata-symbol-isomap-alist-stobjp
                  • Isodata-pos-isomap-alist-stobjp
                  • Isodata-isomap-listp
                • Isodata-macro-definition
            • Simplify-defun
            • Tailrec
            • Schemalg
            • Restrict
            • Expdata
            • 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
    • Isodata-input-processing

    Isodata-process-newp-of-new-name

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

    Signature
    (isodata-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$ update-names-to-avoid) satisfying (typed-tuplep symbolp symbol-listp result).

    Definitions and Theorems

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

    (defun isodata-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__ 'isodata-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))))))