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