• 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
                • Expression
                • Syntax-abstraction
                • Statement
                • Files
                • Input-files
                • Identifiers
                  • Identifier
                    • Identifierp
                    • Identifier-fix
                    • Identifier-equiv
                    • Make-identifier
                    • Identifier->name
                      • Change-identifier
                    • Identifier-option
                    • Programid
                    • Locator
                    • Identifier-grammar-chars-p
                    • Identifier-option-result
                    • Programid-result
                    • Locator-result
                    • Identifier-result
                    • Identifier-list-result
                    • Identifier-string-p
                    • Identifier-set
                    • Identifier-list
                  • Types
                  • Struct-init
                  • Branch
                  • Statements
                  • Format-strings
                  • Input-syntax-abstraction
                  • Expressions
                  • Output-files
                  • Addresses
                  • Literals
                  • Characters
                  • Expression-list
                  • Statement-list
                  • Output-syntax-abstraction
                  • Struct-init-list
                  • Branch-list
                  • Annotations
                  • Abstract-syntax-trees
                  • Symbols
                  • Keywords
                  • Programs
                  • Packages
                  • Bit-sizes
                • Dynamic-semantics
                • 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
    • Identifier

    Identifier->name

    Get the name field from a identifier.

    Signature
    (identifier->name x) → name
    Arguments
    x — Guard (identifierp x).
    Returns
    name — Type (stringp name).

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

    Definitions and Theorems

    Function: identifier->name$inline

    (defun identifier->name$inline (x)
      (declare (xargs :guard (identifierp x)))
      (declare (xargs :guard t))
      (let ((__function__ 'identifier->name))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x))
                  (name (str-fix (cdr (std::da-nth 0 (cdr x))))))
               (if (identifier-string-p name)
                   name
                 "o"))
             :exec (cdr (std::da-nth 0 (cdr x))))))

    Theorem: stringp-of-identifier->name

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

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

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

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

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