Rewrite operators throughout a vl-eventcontrol-p
(vl-eventcontrol-oprewrite x warnings) → (mv warnings new-x)
Function:
(defun vl-eventcontrol-oprewrite (x warnings) (declare (xargs :guard (and (vl-eventcontrol-p x) (vl-warninglist-p warnings)))) (let ((__function__ 'vl-eventcontrol-oprewrite)) (declare (ignorable __function__)) (b* ((x (vl-eventcontrol-fix x))) (b* (((vl-eventcontrol x) x) ((mv warnings atoms-prime) (vl-evatomlist-oprewrite x.atoms warnings))) (mv warnings (change-vl-eventcontrol x :atoms atoms-prime))))))
Theorem:
(defthm vl-warninglist-p-of-vl-eventcontrol-oprewrite.warnings (b* (((mv ?warnings ?new-x) (vl-eventcontrol-oprewrite x warnings))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-eventcontrol-p-of-vl-eventcontrol-oprewrite.new-x (b* (((mv ?warnings ?new-x) (vl-eventcontrol-oprewrite x warnings))) (vl-eventcontrol-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-eventcontrol-oprewrite-of-vl-eventcontrol-fix-x (equal (vl-eventcontrol-oprewrite (vl-eventcontrol-fix x) warnings) (vl-eventcontrol-oprewrite x warnings)))
Theorem:
(defthm vl-eventcontrol-oprewrite-vl-eventcontrol-equiv-congruence-on-x (implies (vl-eventcontrol-equiv x x-equiv) (equal (vl-eventcontrol-oprewrite x warnings) (vl-eventcontrol-oprewrite x-equiv warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-eventcontrol-oprewrite-of-vl-warninglist-fix-warnings (equal (vl-eventcontrol-oprewrite x (vl-warninglist-fix warnings)) (vl-eventcontrol-oprewrite x warnings)))
Theorem:
(defthm vl-eventcontrol-oprewrite-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-eventcontrol-oprewrite x warnings) (vl-eventcontrol-oprewrite x warnings-equiv))) :rule-classes :congruence)