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