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