(vl-expr-oprewrite x warnings) rewrites operators throughout the vl-expr-p
(vl-expr-oprewrite x warnings) → (mv warnings new-x)
Theorem:
(defthm return-type-of-vl-expr-oprewrite.warnings (b* (((mv ?warnings ?new-x) (vl-expr-oprewrite x warnings))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm return-type-of-vl-expr-oprewrite.new-x (b* (((mv ?warnings ?new-x) (vl-expr-oprewrite x warnings))) (vl-expr-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm return-type-of-vl-exprlist-oprewrite.warnings (b* (((mv ?warnings ?new-x) (vl-exprlist-oprewrite x warnings))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm return-type-of-vl-exprlist-oprewrite.new-x (b* (((mv ?warnings ?new-x) (vl-exprlist-oprewrite x warnings))) (and (vl-exprlist-p new-x) (equal (len new-x) (len x)))) :rule-classes :rewrite)
Theorem:
(defthm vl-expr-oprewrite-of-vl-expr-fix-x (equal (vl-expr-oprewrite (vl-expr-fix x) warnings) (vl-expr-oprewrite x warnings)))
Theorem:
(defthm vl-expr-oprewrite-of-vl-warninglist-fix-warnings (equal (vl-expr-oprewrite x (vl-warninglist-fix warnings)) (vl-expr-oprewrite x warnings)))
Theorem:
(defthm vl-exprlist-oprewrite-of-vl-exprlist-fix-x (equal (vl-exprlist-oprewrite (vl-exprlist-fix x) warnings) (vl-exprlist-oprewrite x warnings)))
Theorem:
(defthm vl-exprlist-oprewrite-of-vl-warninglist-fix-warnings (equal (vl-exprlist-oprewrite x (vl-warninglist-fix warnings)) (vl-exprlist-oprewrite x warnings)))
Theorem:
(defthm vl-expr-oprewrite-vl-expr-equiv-congruence-on-x (implies (vl-expr-equiv x x-equiv) (equal (vl-expr-oprewrite x warnings) (vl-expr-oprewrite x-equiv warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-expr-oprewrite-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-expr-oprewrite x warnings) (vl-expr-oprewrite x warnings-equiv))) :rule-classes :congruence)
Theorem:
(defthm vl-exprlist-oprewrite-vl-exprlist-equiv-congruence-on-x (implies (vl-exprlist-equiv x x-equiv) (equal (vl-exprlist-oprewrite x warnings) (vl-exprlist-oprewrite x-equiv warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-exprlist-oprewrite-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-exprlist-oprewrite x warnings) (vl-exprlist-oprewrite x warnings-equiv))) :rule-classes :congruence)