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