• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • C
          • Syntax-for-tools
            • Formalized-subset
            • Mapping-to-language-definition
            • Input-files
            • Compilation-database
            • Printer
            • Output-files
            • Abstract-syntax-operations
            • Implementation-environments
            • Abstract-syntax
              • Abstract-syntax-trees
              • Abstract-syntax-irrelevants
              • Type-specifier-lists
              • Ascii-identifiers
                • Abstract-syntax-aidentp
                  • Exprs/decls/stmts-aidentp
                  • Filepath-transunit-map-aidentp
                  • Transunit-ensemble-aidentp
                  • Ident-list-list-aidentp
                  • Ident-option-aidentp
                  • Extdecl-list-aidentp
                  • Ident-list-aidentp
                  • Attrib-name-aidentp
                    • Transunit-aidentp
                    • Fundef-aidentp
                    • Extdecl-aidentp
                    • Ident-aidentp
                    • Const-aidentp
                    • Typequal/attribspec-list-list-aidentp
                    • Typequal/attribspec-list-aidentp
                    • Typequal/attribspec-aidentp
                    • Struni-spec-aidentp
                    • Struct-declor-list-aidentp
                    • Struct-declor-aidentp
                    • Struct-declon-list-aidentp
                    • Struct-declon-aidentp
                    • Statassert-aidentp
                    • Spec/qual-list-aidentp
                    • Param-declor-aidentp
                    • Param-declon-list-aidentp
                    • Param-declon-aidentp
                    • Member-designor-aidentp
                    • Initer-option-aidentp
                    • Initdeclor-list-aidentp
                    • Initdeclor-aidentp
                    • Genassoc-list-aidentp
                    • Expr-option-aidentp
                    • Enumer-list-aidentp
                    • Dirabsdeclor-option-aidentp
                    • Dirabsdeclor-aidentp
                    • Desiniter-list-aidentp
                    • Designor-list-aidentp
                    • Declor-option-aidentp
                    • Decl-spec-list-aidentp
                    • Const-expr-option-aidentp
                    • Const-expr-aidentp
                    • Block-item-list-aidentp
                    • Block-item-aidentp
                    • Attrib-spec-list-aidentp
                    • Attrib-spec-aidentp
                    • Attrib-list-aidentp
                    • Asm-output-list-aidentp
                    • Asm-output-aidentp
                    • Asm-input-list-aidentp
                    • Amb-expr/tyname-aidentp
                    • Amb-decl/stmt-aidentp
                    • Amb-declor/absdeclor-aidentp
                    • Align-spec-aidentp
                    • Absdeclor-option-aidentp
                    • Type-spec-aidentp
                    • Tyname-aidentp
                    • Stmt-aidentp
                    • Spec/qual-aidentp
                    • Label-aidentp
                    • Initer-aidentp
                    • Genassoc-aidentp
                    • Expr-list-aidentp
                    • Expr-aidentp
                    • Enumer-aidentp
                    • Enum-spec-aidentp
                    • Dirdeclor-aidentp
                    • Desiniter-aidentp
                    • Designor-aidentp
                    • Declor-aidentp
                    • Decl-spec-aidentp
                    • Decl-list-aidentp
                    • Decl-aidentp
                    • Comp-stmt-aidentp
                    • Attrib-aidentp
                    • Asm-stmt-aidentp
                    • Asm-input-aidentp
                    • Absdeclor-aidentp
                  • Ascii-ident-stringp
                  • Code-ensemble-aidentp
                • Abstraction-mapping
                • Standard
                • Storage-specifier-lists
                • Code-ensembles
                • Purity
                • Make-self-code-ensemble
              • Concrete-syntax
              • Disambiguation
              • Validation
              • Gcc-builtins
              • Preprocessing
              • Parsing
            • Atc
            • Transformation-tools
            • Language
            • Representation
            • Insertion-sort
            • Pack
          • Soft
          • Bv
          • Imp-language
          • Ethereum
          • Event-macros
          • Java
          • Riscv
          • Bitcoin
          • Zcash
          • Yul
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Axe
          • Lists-light
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Abstract-syntax-aidentp

    Attrib-name-aidentp

    Signature
    (attrib-name-aidentp attrib-name gcc) → fty::result
    Arguments
    attrib-name — Guard (attrib-namep attrib-name).
    gcc — Guard (booleanp gcc).
    Returns
    fty::result — Type (booleanp fty::result).

    Definitions and Theorems

    Function: attrib-name-aidentp

    (defun attrib-name-aidentp (attrib-name gcc)
     (declare (xargs :guard (and (attrib-namep attrib-name)
                                 (booleanp gcc))))
     (declare (ignorable attrib-name))
     (let ((__function__ 'attrib-name-aidentp))
      (declare (ignorable __function__))
      (attrib-name-case
           attrib-name
           :ident (ident-aidentp (attrib-name-ident->unwrap attrib-name)
                                 gcc)
           :keyword t)))

    Theorem: booleanp-of-attrib-name-aidentp

    (defthm booleanp-of-attrib-name-aidentp
      (b* ((fty::result (attrib-name-aidentp attrib-name gcc)))
        (booleanp fty::result))
      :rule-classes :rewrite)

    Theorem: attrib-name-aidentp-of-attrib-name-fix-attrib-name

    (defthm attrib-name-aidentp-of-attrib-name-fix-attrib-name
      (equal (attrib-name-aidentp (attrib-name-fix attrib-name)
                                  gcc)
             (attrib-name-aidentp attrib-name gcc)))

    Theorem: attrib-name-aidentp-attrib-name-equiv-congruence-on-attrib-name

    (defthm
        attrib-name-aidentp-attrib-name-equiv-congruence-on-attrib-name
      (implies (attrib-name-equiv attrib-name attrib-name-equiv)
               (equal (attrib-name-aidentp attrib-name gcc)
                      (attrib-name-aidentp attrib-name-equiv gcc)))
      :rule-classes :congruence)

    Theorem: attrib-name-aidentp-of-bool-fix-gcc

    (defthm attrib-name-aidentp-of-bool-fix-gcc
      (equal (attrib-name-aidentp attrib-name (bool-fix gcc))
             (attrib-name-aidentp attrib-name gcc)))

    Theorem: attrib-name-aidentp-iff-congruence-on-gcc

    (defthm attrib-name-aidentp-iff-congruence-on-gcc
      (implies (iff gcc gcc-equiv)
               (equal (attrib-name-aidentp attrib-name gcc)
                      (attrib-name-aidentp attrib-name gcc-equiv)))
      :rule-classes :congruence)