Get the body-args field from a pinst-special-term.
(pinst-special-term->body-args x) → body-args
This is an ordinary field accessor created by fty::defprod.
Function:
(defun pinst-special-term->body-args$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)) (declare (ignorable acl2::__function__)) (mbe :logic (b* ((x (and (equal (pinst-kind x) :special-term) x))) (pinstlist-fix (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x)))))) :exec (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x)))))))
Theorem:
(defthm pinstlist-p-of-pinst-special-term->body-args (b* ((body-args (pinst-special-term->body-args$inline x))) (pinstlist-p body-args)) :rule-classes :rewrite)
Theorem:
(defthm pinst-special-term->body-args$inline-of-pinst-fix-x (equal (pinst-special-term->body-args$inline (pinst-fix x)) (pinst-special-term->body-args$inline x)))
Theorem:
(defthm pinst-special-term->body-args$inline-pinst-equiv-congruence-on-x (implies (pinst-equiv x x-equiv) (equal (pinst-special-term->body-args$inline x) (pinst-special-term->body-args$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm pinst-special-term->body-args-when-wrong-kind (implies (not (equal (pinst-kind x) :special-term)) (equal (pinst-special-term->body-args x) (pinstlist-fix nil))))