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