Get the test field from a statassert.
(statassert->test x) → test
This is an ordinary field accessor created by fty::defprod.
Function:
(defun statassert->test$inline (x) (declare (xargs :guard (statassertp x))) (declare (xargs :guard t)) (let ((__function__ 'statassert->test)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (const-expr-fix (cdr (std::da-nth 0 x)))) :exec (cdr (std::da-nth 0 x)))))
Theorem:
(defthm const-exprp-of-statassert->test (b* ((test (statassert->test$inline x))) (const-exprp test)) :rule-classes :rewrite)
Theorem:
(defthm statassert->test$inline-of-statassert-fix-x (equal (statassert->test$inline (statassert-fix x)) (statassert->test$inline x)))
Theorem:
(defthm statassert->test$inline-statassert-equiv-congruence-on-x (implies (statassert-equiv x x-equiv) (equal (statassert->test$inline x) (statassert->test$inline x-equiv))) :rule-classes :congruence)