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