• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
        • Proof-support
        • Abstract-syntax
          • Syntax-abstraction
          • Expression
          • Definition
            • Definition-fix
            • Definitionp
            • Definition-equiv
            • Make-definition
            • Definition->para
            • Definition->body
            • Change-definition
            • Definition->name
            • Constraint
            • Definition-option
            • Abstract-syntax-operations
            • System
            • Convenience-constructors
            • System-result
            • Expression-result
            • Expression-list-result
            • Definition-result
            • Definition-list-result
            • Constraint-result
            • Constraint-list-result
            • Expression-list
            • Definition-list
            • Constraint-list
          • R1cs-subset
          • Semantics
          • Abstract-syntax-operations
          • Indexed-names
          • Well-formedness
          • Concrete-syntax
          • R1cs-bridge
          • Parser-interface
        • Legacy-defrstobj
        • Proof-checker-array
        • Soft
        • C
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Bitcoin
        • Riscv
        • 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
        • Bigmems
        • Builtins
        • Execloader
        • Aleo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Definition

    Definition->name

    Get the name field from a definition.

    Signature
    (definition->name x) → name
    Arguments
    x — Guard (definitionp x).
    Returns
    name — Type (stringp name).

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

    Definitions and Theorems

    Function: definition->name$inline

    (defun definition->name$inline (x)
      (declare (xargs :guard (definitionp x)))
      (declare (xargs :guard t))
      (let ((__function__ 'definition->name))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (str-fix (cdr (std::da-nth 0 (cdr x)))))
             :exec (cdr (std::da-nth 0 (cdr x))))))

    Theorem: stringp-of-definition->name

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

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

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

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

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