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