• 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
            • Output-files
            • Abstract-syntax-operations
            • Validation-information
            • Concrete-syntax
            • Ascii-identifiers
            • Unambiguity
            • Preprocessing
            • Abstract-syntax
            • Implementation-environments
            • Standard
            • Gcc-builtins
            • Code-ensembles
              • Code-ensemble
                • Code-ensemblep
                  • Code-ensemble-fix
                  • Code-ensemble-equiv
                  • Code-ensemble->transunits
                  • Make-code-ensemble
                  • Code-ensemble->ienv
                  • Change-code-ensemble
                • Irr-code-ensemble
              • Purity
            • Atc
            • Language
            • Transformation-tools
            • Representation
            • Insertion-sort
            • Pack
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Riscv
          • 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
    • Code-ensemble

    Code-ensemblep

    Recognizer for code-ensemble structures.

    Signature
    (code-ensemblep x) → *

    Definitions and Theorems

    Function: code-ensemblep

    (defun code-ensemblep (x)
      (declare (xargs :guard t))
      (and (mbe :logic (and (alistp x)
                            (equal (strip-cars x)
                                   '(transunits ienv)))
                :exec (fty::alist-with-carsp x '(transunits ienv)))
           (b* ((transunits (cdr (std::da-nth 0 x)))
                (ienv (cdr (std::da-nth 1 x))))
             (and (transunit-ensemblep transunits)
                  (ienvp ienv)))))

    Theorem: consp-when-code-ensemblep

    (defthm consp-when-code-ensemblep
      (implies (code-ensemblep x) (consp x))
      :rule-classes :compound-recognizer)