• 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
        • Leo
          • Grammar
          • Early-version
            • Json2ast
            • Testing
            • Definition
              • Flattening
              • Abstract-syntax
                • Expression
                • Syntax-abstraction
                • Statement
                • Files
                • Input-files
                • Identifiers
                • 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
                  • Annotation
                    • Annotation-fix
                    • Annotation-equiv
                    • Make-annotation
                    • Annotation->name
                      • Change-annotation
                      • Annotationp
                    • Annotation-result
                    • Annotation-list-result
                    • Annotation-list
                  • 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
    • Annotation

    Annotation->name

    Get the name field from a annotation.

    Signature
    (annotation->name x) → name
    Arguments
    x — Guard (annotationp x).
    Returns
    name — Type (identifierp name).

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

    Definitions and Theorems

    Function: annotation->name$inline

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

    Theorem: identifierp-of-annotation->name

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

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

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

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

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