Get the instrs field from a closure.
(closure->instrs x) → instrs
This is an ordinary field accessor created by fty::defprod.
Function:
(defun closure->instrs$inline (x) (declare (xargs :guard (closurep x))) (declare (xargs :guard t)) (let ((__function__ 'closure->instrs)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (instruction-list-fix (cdr (std::da-nth 2 (cdr x))))) :exec (cdr (std::da-nth 2 (cdr x))))))
Theorem:
(defthm instruction-listp-of-closure->instrs (b* ((instrs (closure->instrs$inline x))) (instruction-listp instrs)) :rule-classes :rewrite)
Theorem:
(defthm closure->instrs$inline-of-closure-fix-x (equal (closure->instrs$inline (closure-fix x)) (closure->instrs$inline x)))
Theorem:
(defthm closure->instrs$inline-closure-equiv-congruence-on-x (implies (closure-equiv x x-equiv) (equal (closure->instrs$inline x) (closure->instrs$inline x-equiv))) :rule-classes :congruence)