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