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