Get the heap field from a compustate.
(compustate->heap x) → heap
This is an ordinary field accessor created by fty::defprod.
Function:
(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:
(defthm heapp-of-compustate->heap (b* ((heap (compustate->heap$inline x))) (heapp heap)) :rule-classes :rewrite)
Theorem:
(defthm compustate->heap$inline-of-compustate-fix-x (equal (compustate->heap$inline (compustate-fix x)) (compustate->heap$inline x)))
Theorem:
(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)