• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
          • Simplify-defun
          • Isodata
          • Tailrec
          • Schemalg
          • Restrict
          • Expdata
          • Casesplit
          • Simplify-term
          • Simplify-defun-sk
          • Parteval
            • Parteval-implementation
              • Parteval-event-generation
              • Parteval-fn
              • Parteval-input-processing
                • Parteval-process-inputs
                • Parteval-unchanging-static-in-rec-calls-p
                • Parteval-process-static-terms
                • Parteval-unchanging-static-in-rec-args-p
                • Parteval-process-thm-name
                  • Parteval-process-static
                  • Parteval-process-old
                  • Parteval-case-of-old
                • Parteval-macro-definition
            • 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
          • Soft
          • C
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Parteval-input-processing

    Parteval-process-thm-name

    Process the :thm-name input.

    Signature
    (parteval-process-thm-name thm-name old$ new-name$ ctx state) 
      → 
    (mv erp thm-name$ state)
    Arguments
    old$ — Guard (symbolp old$).
    new-name$ — Guard (symbolp new-name$).
    Returns
    thm-name$ — A symbolp to use for the theorem that relates the old and new functions.

    Definitions and Theorems

    Function: parteval-process-thm-name

    (defun parteval-process-thm-name (thm-name old$ new-name$ ctx state)
     (declare (xargs :stobjs (state)))
     (declare (xargs :guard (and (symbolp old$)
                                 (symbolp new-name$))))
     (let ((__function__ 'parteval-process-thm-name))
      (declare (ignorable __function__))
      (b*
       (((er &)
         (ensure-value-is-symbol$ thm-name "The :THM-NAME input" t nil))
        (name (if (eq thm-name :auto)
                  (make-paired-name old$ new-name$ 2 (w state))
                thm-name))
        (description
         (msg
          "The name ~x0 of the theorem ~
                              that relates the target function ~x1 ~
                              to the new function ~x2, ~
                              ~@3,"
          name old$ new-name$
          (if
           (eq thm-name :auto)
           "automatically generated ~
                                  since the :THM-NAME input ~
                                  is (perhaps by default) :AUTO"
           "supplied as the :THM-NAME input")))
        ((er &)
         (ensure-symbol-new-event-name$ name description t nil))
        ((er &)
         (ensure-symbol-different$
          name new-name$
          (msg
           "the name ~x0 of the new function ~
                          (determined by the :NEW-NAME input)."
           new-name$)
          description t nil)))
       (value name))))