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