• 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
              • Abstraction-mapping
              • Standard
              • Storage-specifier-lists
              • 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
                • 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
    • 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)