• 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-ensemble->transunits

    Get the transunits field from a code-ensemble.

    Signature
    (code-ensemble->transunits x) → transunits
    Arguments
    x — Guard (code-ensemblep x).
    Returns
    transunits — Type (transunit-ensemblep transunits).

    This is an ordinary field accessor created by fty::defprod.

    Definitions and Theorems

    Function: code-ensemble->transunits$inline

    (defun code-ensemble->transunits$inline (x)
      (declare (xargs :guard (code-ensemblep x)))
      (declare (xargs :guard t))
      (mbe :logic
           (b* ((x (and t x)))
             (transunit-ensemble-fix (cdr (std::da-nth 0 x))))
           :exec (cdr (std::da-nth 0 x))))

    Theorem: transunit-ensemblep-of-code-ensemble->transunits

    (defthm transunit-ensemblep-of-code-ensemble->transunits
      (b* ((transunits (code-ensemble->transunits$inline x)))
        (transunit-ensemblep transunits))
      :rule-classes :rewrite)

    Theorem: code-ensemble->transunits$inline-of-code-ensemble-fix-x

    (defthm code-ensemble->transunits$inline-of-code-ensemble-fix-x
      (equal (code-ensemble->transunits$inline (code-ensemble-fix x))
             (code-ensemble->transunits$inline x)))

    Theorem: code-ensemble->transunits$inline-code-ensemble-equiv-congruence-on-x

    (defthm
     code-ensemble->transunits$inline-code-ensemble-equiv-congruence-on-x
     (implies (code-ensemble-equiv x x-equiv)
              (equal (code-ensemble->transunits$inline x)
                     (code-ensemble->transunits$inline x-equiv)))
     :rule-classes :congruence)