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