• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Riscv
      • Taspi
      • Bitcoin
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Poseidon
      • Where-do-i-place-my-book
      • Axe
      • Aleo
        • Aleobft
        • Aleovm
        • Leo
          • Grammar
          • Early-version
            • Json2ast
            • Testing
            • Definition
              • Flattening
              • Abstract-syntax
              • Dynamic-semantics
                • Execution
                • Values
                • Dynamic-environments
                • Arithmetic-operations
                • Curve-parameterization
                • Shift-operations
                • Errors
                • Value-expressions
                • Locations
                • Input-execution
                  • Eval-input-item-list
                  • Eval-input-item
                  • Funarg
                    • Funarg-fix
                    • Funarg-equiv
                    • Make-funarg
                    • Change-funarg
                    • Funarg->value
                    • Funarg->sort
                    • Funarg->name
                      • Funargp
                    • Funarg-option
                    • Eval-input-section-list
                    • Eval-input-section
                    • Eval-input-file
                    • Funarg-result
                    • Funarg-list-result
                    • Funarg-list
                  • Edwards-bls12-generator
                  • Equality-operations
                  • Logical-operations
                  • Program-execution
                  • Ordering-operations
                  • Bitwise-operations
                  • Literal-evaluation
                  • Type-maps-for-struct-components
                  • Output-execution
                  • Tuple-operations
                  • Struct-operations
                • Compilation
                • Static-semantics
                • Concrete-syntax
        • 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
    • Funarg

    Funarg->name

    Get the name field from a funarg.

    Signature
    (funarg->name x) → name
    Arguments
    x — Guard (funargp x).
    Returns
    name — Type (identifierp name).

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

    Definitions and Theorems

    Function: funarg->name$inline

    (defun funarg->name$inline (x)
      (declare (xargs :guard (funargp x)))
      (declare (xargs :guard t))
      (let ((__function__ 'funarg->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-funarg->name

    (defthm identifierp-of-funarg->name
      (b* ((name (funarg->name$inline x)))
        (identifierp name))
      :rule-classes :rewrite)

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

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

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

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