Get the toggle field from a svtv*-input.
(svtv*-input->toggle x) → toggle
This is an ordinary field accessor created by defprod.
Function:
(defun svtv*-input->toggle$inline (x) (declare (xargs :guard (svtv*-input-p x))) (declare (xargs :guard t)) (let ((__function__ 'svtv*-input->toggle)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (acl2::maybe-posp-fix (std::da-nth 1 x))) :exec (std::da-nth 1 x))))
Theorem:
(defthm maybe-posp-of-svtv*-input->toggle (b* ((toggle (svtv*-input->toggle$inline x))) (maybe-posp toggle)) :rule-classes :type-prescription)
Theorem:
(defthm svtv*-input->toggle$inline-of-svtv*-input-fix-x (equal (svtv*-input->toggle$inline (svtv*-input-fix x)) (svtv*-input->toggle$inline x)))
Theorem:
(defthm svtv*-input->toggle$inline-svtv*-input-equiv-congruence-on-x (implies (svtv*-input-equiv x x-equiv) (equal (svtv*-input->toggle$inline x) (svtv*-input->toggle$inline x-equiv))) :rule-classes :congruence)