• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • Soft
        • C
        • Bv
        • Imp-language
        • Event-macros
        • Java
        • Bitcoin
        • Ethereum
        • Yul
        • Zcash
        • ACL2-programming-language
          • Primitive-functions
          • Translated-terms
          • Values
          • Evaluation
          • Program-equivalence
          • Functions
            • Function
              • Function-fix
              • Function-equiv
              • Make-function
              • Function->params
              • Change-function
              • Function->name
                • Function->body
                • Functionp
              • Function-lookup
              • Function-option
              • Lift-function
              • Lift-function-list
              • Function-set
            • Packages
            • Programs
            • Interpreter
            • Evaluation-states
          • 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
    • Function

    Function->name

    Get the name field from a function.

    Signature
    (function->name x) → name
    Arguments
    x — Guard (functionp x).
    Returns
    name — Type (symbol-valuep name).

    This is an ordinary field accessor created by fty::defprod.

    Definitions and Theorems

    Function: function->name$inline

    (defun function->name$inline (x)
      (declare (xargs :guard (functionp x)))
      (declare (xargs :guard t))
      (let ((__function__ 'function->name))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (symbol-value-fix (std::da-nth 0 x)))
             :exec (std::da-nth 0 x))))

    Theorem: symbol-valuep-of-function->name

    (defthm symbol-valuep-of-function->name
      (b* ((name (function->name$inline x)))
        (symbol-valuep name))
      :rule-classes :rewrite)

    Theorem: function->name$inline-of-function-fix-x

    (defthm function->name$inline-of-function-fix-x
      (equal (function->name$inline (function-fix x))
             (function->name$inline x)))

    Theorem: function->name$inline-function-equiv-congruence-on-x

    (defthm function->name$inline-function-equiv-congruence-on-x
      (implies (function-equiv x x-equiv)
               (equal (function->name$inline x)
                      (function->name$inline x-equiv)))
      :rule-classes :congruence)