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