• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • C
      • Proof-checker-array
      • Soft
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Ethereum
      • Leftist-trees
      • Java
      • Riscv
      • Taspi
      • Bitcoin
      • Zcash
      • Des
      • X86isa
      • Sha-2
      • Yul
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Axe
      • Poseidon
      • Where-do-i-place-my-book
      • Aleo
        • Aleobft
        • Aleovm
          • Circuits
          • Language
            • Grammar
            • Early-version
              • Abstract-syntax
                • Binary-op
                • Literal
                • Instruction
                • Hash-op
                • Literal-type
                • Operand
                • Unary-op
                • Identifier
                • Commit-op
                • Mapping
                • Function
                  • Function-fix
                  • Make-function
                  • Function-equiv
                  • Function->outputs
                  • Change-function
                  • Function->instrs
                  • Function->inputs
                  • Function->finalize
                  • Functionp
                  • Function->name
                  • Programdef
                  • Finalize-type
                  • Closure
                  • Register-type
                  • Finalizer
                  • Value-type
                  • Record-type
                  • Command
                  • Plaintext-type
                  • Finalization-option
                  • Visibility
                  • Register
                  • Reference
                  • Programid
                  • Locator
                  • Finalization
                  • Entry-type
                  • Regaccess
                  • Program
                  • Interface-type
                  • Ident+ptype
                  • Ident+etype
                  • Function-output
                  • Finalize-output
                  • Finalize-input
                  • Closure-output
                  • Closure-input
                  • Assert-op
                  • Function-input
                  • Equal-op
                  • Finalize-command
                  • Ternary-op
                  • Import
                  • Ident+ptype-list
                  • Operand-list
                  • Ident+etype-list
                  • Programdef-list
                  • Instruction-list
                  • Import-list
                  • Identifier-list
                  • Function-output-list
                  • Function-input-list
                  • Finalize-output-list
                  • Finalize-input-list
                  • Command-list
                  • Closure-output-list
                  • Closure-input-list
                • Parser
                • Concrete-syntax
              • Concrete-syntax
          • Leo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • 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 (identifierp 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)))
               (identifier-fix (cdr (std::da-nth 0 (cdr x)))))
             :exec (cdr (std::da-nth 0 (cdr x))))))

    Theorem: identifierp-of-function->name

    (defthm identifierp-of-function->name
      (b* ((name (function->name$inline x)))
        (identifierp 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)