Get the unwrap field from a ident.
(ident->unwrap x) → unwrap
This is an ordinary field accessor created by fty::defprod.
Function:
(defun ident->unwrap$inline (x) (declare (xargs :guard (identp x))) (declare (xargs :guard t)) (let ((__function__ 'ident->unwrap)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (identity (cdr (std::da-nth 0 x)))) :exec (cdr (std::da-nth 0 x)))))
Theorem:
(defthm any-p-of-ident->unwrap (b* ((unwrap (ident->unwrap$inline x))) (acl2::any-p unwrap)) :rule-classes :rewrite)
Theorem:
(defthm ident->unwrap$inline-of-ident-fix-x (equal (ident->unwrap$inline (ident-fix x)) (ident->unwrap$inline x)))
Theorem:
(defthm ident->unwrap$inline-ident-equiv-congruence-on-x (implies (ident-equiv x x-equiv) (equal (ident->unwrap$inline x) (ident->unwrap$inline x-equiv))) :rule-classes :congruence)