Get the rest field from a pinst-indent.
(pinst-indent->rest x) → rest
This is an ordinary field accessor created by fty::defprod.
Function:
(defun pinst-indent->rest$inline (x) (declare (xargs :guard (pinst-p x))) (declare (xargs :guard (equal (pinst-kind x) :indent))) (let ((acl2::__function__ 'pinst-indent->rest)) (declare (ignorable acl2::__function__)) (mbe :logic (b* ((x (and (equal (pinst-kind x) :indent) x))) (pinstlist-fix (std::prod-cdr (std::prod-cdr (cdr x))))) :exec (std::prod-cdr (std::prod-cdr (cdr x))))))
Theorem:
(defthm pinstlist-p-of-pinst-indent->rest (b* ((rest (pinst-indent->rest$inline x))) (pinstlist-p rest)) :rule-classes :rewrite)
Theorem:
(defthm pinst-indent->rest$inline-of-pinst-fix-x (equal (pinst-indent->rest$inline (pinst-fix x)) (pinst-indent->rest$inline x)))
Theorem:
(defthm pinst-indent->rest$inline-pinst-equiv-congruence-on-x (implies (pinst-equiv x x-equiv) (equal (pinst-indent->rest$inline x) (pinst-indent->rest$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm pinst-indent->rest-when-wrong-kind (implies (not (equal (pinst-kind x) :indent)) (equal (pinst-indent->rest x) (pinstlist-fix nil))))