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