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