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