Substitute into a vl-maybe-range-p.
(vl-maybe-range-subst x sigma) → new-x
Function:
(defun vl-maybe-range-subst (x sigma) (declare (xargs :guard (and (vl-maybe-range-p x) (vl-sigma-p sigma)))) (declare (ignorable x sigma)) (let ((__function__ 'vl-maybe-range-subst)) (declare (ignorable __function__)) (and x (vl-range-subst x sigma))))
Theorem:
(defthm vl-maybe-range-p-of-vl-maybe-range-subst (b* ((new-x (vl-maybe-range-subst x sigma))) (vl-maybe-range-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-maybe-range-subst-of-vl-maybe-range-fix-x (equal (vl-maybe-range-subst (vl-maybe-range-fix x) sigma) (vl-maybe-range-subst x sigma)))
Theorem:
(defthm vl-maybe-range-subst-vl-maybe-range-equiv-congruence-on-x (implies (vl-maybe-range-equiv x x-equiv) (equal (vl-maybe-range-subst x sigma) (vl-maybe-range-subst x-equiv sigma))) :rule-classes :congruence)
Theorem:
(defthm vl-maybe-range-subst-of-vl-sigma-fix-sigma (equal (vl-maybe-range-subst x (vl-sigma-fix sigma)) (vl-maybe-range-subst x sigma)))
Theorem:
(defthm vl-maybe-range-subst-vl-sigma-equiv-congruence-on-sigma (implies (vl-sigma-equiv sigma sigma-equiv) (equal (vl-maybe-range-subst x sigma) (vl-maybe-range-subst x sigma-equiv))) :rule-classes :congruence)