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