Get the statassert field from a declon-statassert.
(declon-statassert->statassert x) → statassert
This is an ordinary field accessor created by fty::defprod.
Function:
(defun declon-statassert->statassert$inline (x) (declare (xargs :guard (declonp x))) (declare (xargs :guard (equal (declon-kind x) :statassert))) (mbe :logic (b* ((x (and (equal (declon-kind x) :statassert) x))) (statassert-fix (cdr x))) :exec (cdr x)))
Theorem:
(defthm statassertp-of-declon-statassert->statassert (b* ((statassert (declon-statassert->statassert$inline x))) (statassertp statassert)) :rule-classes :rewrite)
Theorem:
(defthm declon-statassert->statassert$inline-of-declon-fix-x (equal (declon-statassert->statassert$inline (declon-fix x)) (declon-statassert->statassert$inline x)))
Theorem:
(defthm declon-statassert->statassert$inline-declon-equiv-congruence-on-x (implies (declon-equiv x x-equiv) (equal (declon-statassert->statassert$inline x) (declon-statassert->statassert$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm declon-statassert->statassert-when-wrong-kind (implies (not (equal (declon-kind x) :statassert)) (equal (declon-statassert->statassert x) (statassert-fix nil))))