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