Get the left field from a vl-repetition.
(vl-repetition->left x) → left
This is an ordinary field accessor created by defprod.
Function:
(defun vl-repetition->left$inline (x) (declare (xargs :guard (vl-repetition-p x))) (declare (xargs :guard t)) (let ((__function__ 'vl-repetition->left)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (vl-expr-fix (std::prod-car (std::prod-cdr (cdr x))))) :exec (std::prod-car (std::prod-cdr (cdr x))))))
Theorem:
(defthm vl-expr-p-of-vl-repetition->left (b* ((left (vl-repetition->left$inline x))) (vl-expr-p left)) :rule-classes :rewrite)
Theorem:
(defthm vl-repetition->left$inline-of-vl-repetition-fix-x (equal (vl-repetition->left$inline (vl-repetition-fix x)) (vl-repetition->left$inline x)))
Theorem:
(defthm vl-repetition->left$inline-vl-repetition-equiv-congruence-on-x (implies (vl-repetition-equiv x x-equiv) (equal (vl-repetition->left$inline x) (vl-repetition->left$inline x-equiv))) :rule-classes :congruence)