• 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
              • Exprs-formalp
              • Stmts-formalp
              • Type-spec-list-integer-formalp
              • Ext-declon-formalp
              • Type-spec-list-formalp
              • Ident-formalp
              • Tyname-formalp
              • Pointers-formalp
              • Dirdeclor-obj-formalp
              • Desiniter-formalp
              • Declon-obj-formalp
              • Fundef-formalp
              • Declon-block-formalp
              • Struct-declon-formalp
              • Init-declor-obj-formalp
              • Declon-struct-formalp
              • Init-declor-block-formalp
              • Dirdeclor-fun-formalp
              • Dirdeclor-block-formalp
              • Init-declor-fun-formalp
              • Declon-fun-formalp
              • Transunit-ensemble-formalp
              • Param-declor-formalp
              • Param-declon-formalp
              • Declor-obj-formalp
              • Struct-declor-formalp
              • Struct-declon-list-formalp
              • Initer-formalp
              • Struni-spec-formalp
              • Stor-spec-list-formalp
              • Declor-fun-formalp
              • Declor-block-formalp
              • Param-declon-list-formalp
              • Desiniter-list-formalp
              • Ext-declon-list-formalp
                • Transunit-formalp
                • Const-formalp
                • Stmt-formalp
                • Expr-formalp
                • Expr-list-formalp
                • Block-item-list-formalp
                • Block-item-formalp
                • Comp-stmt-formalp
              • Mapping-to-language-definition
              • Input-files
              • Compilation-database
              • Printer
              • Output-files
              • Abstract-syntax-operations
              • Implementation-environments
              • Abstract-syntax
              • 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
    • Formalized-subset

    Ext-declon-list-formalp

    Check if all the external declarations in a list have formal dynamic semantics.

    Signature
    (ext-declon-list-formalp edecls) → yes/no
    Arguments
    edecls — Guard (ext-declon-listp edecls).
    Returns
    yes/no — Type (booleanp yes/no).

    Definitions and Theorems

    Function: ext-declon-list-formalp

    (defun ext-declon-list-formalp (edecls)
      (declare (xargs :guard (ext-declon-listp edecls)))
      (declare (xargs :guard (ext-declon-list-unambp edecls)))
      (let ((__function__ 'ext-declon-list-formalp))
        (declare (ignorable __function__))
        (or (endp edecls)
            (and (ext-declon-formalp (car edecls))
                 (ext-declon-list-formalp (cdr edecls))))))

    Theorem: booleanp-of-ext-declon-list-formalp

    (defthm booleanp-of-ext-declon-list-formalp
      (b* ((yes/no (ext-declon-list-formalp edecls)))
        (booleanp yes/no))
      :rule-classes :rewrite)

    Theorem: ext-declon-list-formalp-of-ext-declon-list-fix-edecls

    (defthm ext-declon-list-formalp-of-ext-declon-list-fix-edecls
      (equal (ext-declon-list-formalp (ext-declon-list-fix edecls))
             (ext-declon-list-formalp edecls)))

    Theorem: ext-declon-list-formalp-ext-declon-list-equiv-congruence-on-edecls

    (defthm
     ext-declon-list-formalp-ext-declon-list-equiv-congruence-on-edecls
     (implies (ext-declon-list-equiv edecls edecls-equiv)
              (equal (ext-declon-list-formalp edecls)
                     (ext-declon-list-formalp edecls-equiv)))
     :rule-classes :congruence)