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