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