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