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