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