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