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