• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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
        • Soft
        • C
          • Syntax-for-tools
            • Disambiguator
            • Abstract-syntax
            • Parser
            • Validator
            • Printer
            • Formalized-subset
            • Mapping-to-language-definition
            • Input-files
            • Defpred
            • Output-files
            • Abstract-syntax-operations
            • Validation-information
            • Implementation-environments
            • Concrete-syntax
            • Unambiguity
              • Abstract-syntax-unambp
                • Typequal/attribspec-list-unambp
                • Typequal/attribspec-list-list-unambp
                • Type-spec-list-unambp
                • Extdecl-list-unambp
                • Exprs/decls/stmts-unambp
                • Structdeclor-list-unambp
                • Param-declon-list-unambp
                • Attrib-spec-list-unambp
                • Structdecl-list-unambp
                • Initdeclor-list-unambp
                • Block-item-list-unambp
                • Asm-output-list-unambp
                • Spec/qual-list-unambp
                • Desiniter-list-unambp
                • Decl-spec-list-unambp
                • Asm-input-list-unambp
                • Genassoc-list-unambp
                • Designor-list-unambp
                • Enumer-list-unambp
                • Attrib-list-unambp
                • Expr-list-unambp
                • Decl-list-unambp
                • Filepath-transunit-map-unambp
                • Transunit-ensemble-unambp
                • Declor/absdeclor-unambp
                • Fundef-option-unambp
                • Expr/tyname-unambp
                • Transunit-unambp
                • Fundef-unambp
                • Extdecl-unambp
                  • Decl/stmt-unambp
                  • Typequal/attribspec-unambp
                  • Member-designor-unambp
                  • Initer-option-unambp
                  • Dirabsdeclor-option-unambp
                  • Declor-option-unambp
                  • Const-expr-option-unambp
                  • Amb-expr/tyname-unambp
                  • Amb-decl/stmt-unambp
                  • Amb-declor/absdeclor-unambp
                  • Absdeclor-option-unambp
                  • Type-spec-unambp
                  • Tyname-unambp
                  • Strunispec-unambp
                  • Structdeclor-unambp
                  • Structdecl-unambp
                  • Stmt-unambp
                  • Statassert-unambp
                  • Spec/qual-unambp
                  • Param-declor-unambp
                  • Param-declon-unambp
                  • Label-unambp
                  • Initer-unambp
                  • Initdeclor-unambp
                  • Genassoc-unambp
                  • Expr-unambp
                  • Expr-option-unambp
                  • Enumspec-unambp
                  • Enumer-unambp
                  • Dirdeclor-unambp
                  • Dirabsdeclor-unambp
                  • Desiniter-unambp
                  • Designor-unambp
                  • Declor-unambp
                  • Decl-unambp
                  • Decl-spec-unambp
                  • Const-expr-unambp
                  • Block-item-unambp
                  • Attrib-unambp
                  • Attrib-spec-unambp
                  • Asm-stmt-unambp
                  • Asm-output-unambp
                  • Asm-input-unambp
                  • Align-spec-unambp
                  • Absdeclor-unambp
                • Unambiguity-predicate-theorems
                • Type-spec-list-unambp-of-sublists
                • Expr-unambp-of-operation-on-expr-unambp
              • Ascii-identifiers
              • Preprocessing
              • Abstraction-mapping
            • Atc
            • Language
            • Representation
            • Transformation-tools
            • Insertion-sort
            • Pack
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Abstract-syntax-unambp

    Extdecl-unambp

    Signature
    (extdecl-unambp extdecl) → yes/no
    Arguments
    extdecl — Guard (extdeclp extdecl).
    Returns
    yes/no — Type (booleanp yes/no).

    Definitions and Theorems

    Function: extdecl-unambp

    (defun extdecl-unambp (extdecl)
     (declare (xargs :guard (extdeclp extdecl)))
     (let ((__function__ 'extdecl-unambp))
      (declare (ignorable __function__))
      (extdecl-case
          extdecl
          :fundef (and (fundef-unambp (extdecl-fundef->unwrap extdecl)))
          :decl (and (decl-unambp (extdecl-decl->unwrap extdecl)))
          :empty t
          :asm (and (asm-stmt-unambp (extdecl-asm->unwrap extdecl))))))

    Theorem: booleanp-of-extdecl-unambp

    (defthm booleanp-of-extdecl-unambp
      (b* ((yes/no (extdecl-unambp extdecl)))
        (booleanp yes/no))
      :rule-classes :rewrite)

    Theorem: extdecl-unambp-of-extdecl-fix-extdecl

    (defthm extdecl-unambp-of-extdecl-fix-extdecl
      (equal (extdecl-unambp (extdecl-fix extdecl))
             (extdecl-unambp extdecl)))

    Theorem: extdecl-unambp-extdecl-equiv-congruence-on-extdecl

    (defthm extdecl-unambp-extdecl-equiv-congruence-on-extdecl
      (implies (extdecl-equiv extdecl extdecl-equiv)
               (equal (extdecl-unambp extdecl)
                      (extdecl-unambp extdecl-equiv)))
      :rule-classes :congruence)