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