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