• 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
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • C
        • Soft
        • Bv
        • Imp-language
        • Ethereum
        • Event-macros
        • Java
        • Riscv
        • Bitcoin
        • Zcash
        • Yul
        • ACL2-programming-language
          • Primitive-functions
          • Translated-terms
            • Tterm-constant-list->value-list
            • Tterm-free-vars
            • Tterm-option
            • Tterm-constant-list
            • Tterm-case-constant-listp
            • Lift-term
            • Tterms
              • Tterm
              • Tfunction
                • Tfunction-case
                • Tfunction-equiv
                • Tfunction-lambda
                • Tfunction-named
                  • Tfunction-named->name
                    • Make-tfunction-named
                    • Change-tfunction-named
                  • Tfunctionp
                  • Tfunction-kind
                  • Tfunction-fix
                  • Tfunction-count
                • Tterm-list
            • Values
            • Evaluation
            • Program-equivalence
            • Functions
            • Packages
            • Programs
            • Interpreter
            • Evaluation-states
          • 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
    • Tfunction-named

    Tfunction-named->name

    Get the name field from a tfunction-named.

    Signature
    (tfunction-named->name x) → name
    Arguments
    x — Guard (tfunctionp x).
    Returns
    name — Type (symbol-valuep name).

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

    Definitions and Theorems

    Function: tfunction-named->name$inline

    (defun tfunction-named->name$inline (x)
      (declare (xargs :guard (tfunctionp x)))
      (declare (xargs :guard (equal (tfunction-kind x) :named)))
      (let ((__function__ 'tfunction-named->name))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and (equal (tfunction-kind x) :named)
                          x)))
               (symbol-value-fix (std::da-nth 0 (cdr x))))
             :exec (std::da-nth 0 (cdr x)))))

    Theorem: symbol-valuep-of-tfunction-named->name

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

    Theorem: tfunction-named->name$inline-of-tfunction-fix-x

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

    Theorem: tfunction-named->name$inline-tfunction-equiv-congruence-on-x

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

    Theorem: tfunction-named->name-when-wrong-kind

    (defthm tfunction-named->name-when-wrong-kind
      (implies (not (equal (tfunction-kind x) :named))
               (equal (tfunction-named->name x)
                      (symbol-value-fix nil))))