• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
        • Syntax-for-tools
        • Atc
        • Language
          • Abstract-syntax
          • Integer-ranges
          • Implementation-environments
          • Dynamic-semantics
          • Static-semantics
          • Grammar
          • Integer-formats
          • Types
          • Portable-ascii-identifiers
          • Values
          • Integer-operations
          • Computation-states
            • Write-object
            • Objdesign-of-var
            • Compustate-scopes-numbers
            • Create-var
            • Read-object
            • Compustate
              • Compustatep
              • Compustate-fix
              • Compustate-equiv
              • Make-compustate
              • Compustate->frames
              • Change-compustate
              • Compustate->static
              • Compustate->heap
              • Frame
              • Enter-scope
              • Compustate-scopes-numbers-aux
              • Compustate-option
              • Push-frame
              • Exit-scope
              • Compustate-frames-number
              • Compustate-option-result
              • Scope-list-result
              • Pop-frame
              • Compustate-result
              • Scope-result
              • Compustate-top-frame-scopes-number
              • Top-frame
              • Heap
              • Scope
              • Scope-list
              • Frame-list
            • Object-designators
            • Operations
            • Errors
            • Tag-environments
            • Function-environments
            • Character-sets
            • Flexible-array-member-removal
            • Arithmetic-operations
            • Pointer-operations
            • Bytes
            • Keywords
            • Real-operations
            • Array-operations
            • Scalar-operations
            • Structure-operations
          • Representation
          • Transformation-tools
          • Insertion-sort
          • Pack
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Bitcoin
        • Riscv
        • Des
        • Ethereum
        • X86isa
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Bigmems
        • Builtins
        • Execloader
        • Aleo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Compustate

    Compustate->heap

    Get the heap field from a compustate.

    Signature
    (compustate->heap x) → heap
    Arguments
    x — Guard (compustatep x).
    Returns
    heap — Type (heapp heap).

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

    Definitions and Theorems

    Function: compustate->heap$inline

    (defun compustate->heap$inline (x)
      (declare (xargs :guard (compustatep x)))
      (declare (xargs :guard t))
      (let ((__function__ 'compustate->heap))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (heap-fix (cdr (std::da-nth 2 x))))
             :exec (cdr (std::da-nth 2 x)))))

    Theorem: heapp-of-compustate->heap

    (defthm heapp-of-compustate->heap
      (b* ((heap (compustate->heap$inline x)))
        (heapp heap))
      :rule-classes :rewrite)

    Theorem: compustate->heap$inline-of-compustate-fix-x

    (defthm compustate->heap$inline-of-compustate-fix-x
      (equal (compustate->heap$inline (compustate-fix x))
             (compustate->heap$inline x)))

    Theorem: compustate->heap$inline-compustate-equiv-congruence-on-x

    (defthm compustate->heap$inline-compustate-equiv-congruence-on-x
      (implies (compustate-equiv x x-equiv)
               (equal (compustate->heap$inline x)
                      (compustate->heap$inline x-equiv)))
      :rule-classes :congruence)