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