Object designator of a valid pointer.
(value-pointer->designator ptr) → design
Function:
(defun value-pointer->designator (ptr) (declare (xargs :guard (valuep ptr))) (declare (xargs :guard (and (value-case ptr :pointer) (value-pointer-validp ptr)))) (let ((__function__ 'value-pointer->designator)) (declare (ignorable __function__)) (pointer-valid->get (value-pointer->core ptr))))
Theorem:
(defthm objdesignp-of-value-pointer->designator (b* ((design (value-pointer->designator ptr))) (objdesignp design)) :rule-classes :rewrite)
Theorem:
(defthm value-pointer->designator-of-value-pointer (equal (value-pointer->designator (value-pointer core type)) (pointer-valid->get core)))
Theorem:
(defthm value-pointer->designator-of-value-fix-ptr (equal (value-pointer->designator (value-fix ptr)) (value-pointer->designator ptr)))
Theorem:
(defthm value-pointer->designator-value-equiv-congruence-on-ptr (implies (value-equiv ptr ptr-equiv) (equal (value-pointer->designator ptr) (value-pointer->designator ptr-equiv))) :rule-classes :congruence)