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