• 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
        • Soft
        • C
          • Syntax-for-tools
            • Disambiguator
            • Parser
            • Validator
            • Printer
            • Formalized-subset
            • Mapping-to-language-definition
            • Input-files
            • Defpred
            • Abstract-syntax-operations
            • Validation-information
              • Abstract-syntax-annop
              • Types
              • Valid-ord-info
              • Lifetime
              • Stmt-type
              • Expr-type
              • Valid-table
              • Valid-defstatus
              • Valid-ord-info-option
              • Linkage-option
              • Linkage
              • Lifetime-option
              • Iconst-info
              • Var-info
              • Binary-info
              • Valid-scope
              • Expr-null-pointer-constp
              • Transunit-info
              • Const-expr-null-pointer-constp
              • Unary-info
              • Tyname-info
              • Block-item-list-type
              • Block-item-type
              • Valid-ord-scope
              • Code-ensemble-annop
                • Coerce-transunit-info
                • Coerce-var-info
                • Coerce-unary-info
                • Coerce-tyname-info
                • Coerce-iconst-info
                • Coerce-binary-info
                • Irr-transunit-info
                • Irr-iconst-info
                • Irr-binary-info
                • Irr-var-info
                • Irr-valid-table
                • Irr-unary-info
                • Irr-tyname-info
                • Valid-scope-list
                • Irr-linkage
                • Irr-lifetime
              • Output-files
              • Concrete-syntax
              • Unambiguity
              • Ascii-identifiers
              • Preprocessing
              • Abstract-syntax
              • Implementation-environments
              • Standard
              • Gcc-builtins
              • Code-ensembles
              • Purity
            • Atc
            • Language
            • Transformation-tools
            • Representation
            • Insertion-sort
            • Pack
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Riscv
          • Ethereum
          • Bitcoin
          • Zcash
          • Yul
          • 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
    • Validation-information

    Code-ensemble-annop

    Check if a code ensemble is annotated with validation information.

    Signature
    (code-ensemble-annop code) → yes/no
    Arguments
    code — Guard (code-ensemblep code).
    Returns
    yes/no — Type (booleanp yes/no).

    Definitions and Theorems

    Function: code-ensemble-annop

    (defun code-ensemble-annop (code)
      (declare (xargs :guard (code-ensemblep code)))
      (let ((__function__ 'code-ensemble-annop))
        (declare (ignorable __function__))
        (transunit-ensemble-annop (code-ensemble->transunits code))))

    Theorem: booleanp-of-code-ensemble-annop

    (defthm booleanp-of-code-ensemble-annop
      (b* ((yes/no (code-ensemble-annop code)))
        (booleanp yes/no))
      :rule-classes :rewrite)

    Theorem: code-ensemble-annop-of-code-ensemble-fix-code

    (defthm code-ensemble-annop-of-code-ensemble-fix-code
      (equal (code-ensemble-annop (code-ensemble-fix code))
             (code-ensemble-annop code)))

    Theorem: code-ensemble-annop-code-ensemble-equiv-congruence-on-code

    (defthm code-ensemble-annop-code-ensemble-equiv-congruence-on-code
      (implies (code-ensemble-equiv code code-equiv)
               (equal (code-ensemble-annop code)
                      (code-ensemble-annop code-equiv)))
      :rule-classes :congruence)