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