Recursively eliminate
(vl-stmt-caseelim x ctx warnings ss) → (mv warnings new-x)
Theorem:
(defthm return-type-of-vl-stmt-caseelim.warnings (b* (((mv ?warnings ?new-x) (vl-stmt-caseelim x ctx warnings ss))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm return-type-of-vl-stmt-caseelim.new-x (b* (((mv ?warnings ?new-x) (vl-stmt-caseelim x ctx warnings ss))) (vl-stmt-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm return-type-of-vl-stmtlist-caseelim.warnings (b* (((mv ?warnings ?new-x) (vl-stmtlist-caseelim x ctx warnings ss))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm return-type-of-vl-stmtlist-caseelim.new-x (b* (((mv ?warnings ?new-x) (vl-stmtlist-caseelim x ctx warnings ss))) (and (vl-stmtlist-p new-x) (equal (len new-x) (len x)))) :rule-classes :rewrite)
Theorem:
(defthm vl-stmt-caseelim-of-vl-stmt-fix-x (equal (vl-stmt-caseelim (vl-stmt-fix x) ctx warnings ss) (vl-stmt-caseelim x ctx warnings ss)))
Theorem:
(defthm vl-stmt-caseelim-of-vl-modelement-fix-ctx (equal (vl-stmt-caseelim x (vl-modelement-fix ctx) warnings ss) (vl-stmt-caseelim x ctx warnings ss)))
Theorem:
(defthm vl-stmt-caseelim-of-vl-warninglist-fix-warnings (equal (vl-stmt-caseelim x ctx (vl-warninglist-fix warnings) ss) (vl-stmt-caseelim x ctx warnings ss)))
Theorem:
(defthm vl-stmt-caseelim-of-vl-scopestack-fix-ss (equal (vl-stmt-caseelim x ctx warnings (vl-scopestack-fix ss)) (vl-stmt-caseelim x ctx warnings ss)))
Theorem:
(defthm vl-stmtlist-caseelim-of-vl-stmtlist-fix-x (equal (vl-stmtlist-caseelim (vl-stmtlist-fix x) ctx warnings ss) (vl-stmtlist-caseelim x ctx warnings ss)))
Theorem:
(defthm vl-stmtlist-caseelim-of-vl-modelement-fix-ctx (equal (vl-stmtlist-caseelim x (vl-modelement-fix ctx) warnings ss) (vl-stmtlist-caseelim x ctx warnings ss)))
Theorem:
(defthm vl-stmtlist-caseelim-of-vl-warninglist-fix-warnings (equal (vl-stmtlist-caseelim x ctx (vl-warninglist-fix warnings) ss) (vl-stmtlist-caseelim x ctx warnings ss)))
Theorem:
(defthm vl-stmtlist-caseelim-of-vl-scopestack-fix-ss (equal (vl-stmtlist-caseelim x ctx warnings (vl-scopestack-fix ss)) (vl-stmtlist-caseelim x ctx warnings ss)))
Theorem:
(defthm vl-stmt-caseelim-vl-stmt-equiv-congruence-on-x (implies (vl-stmt-equiv x x-equiv) (equal (vl-stmt-caseelim x ctx warnings ss) (vl-stmt-caseelim x-equiv ctx warnings ss))) :rule-classes :congruence)
Theorem:
(defthm vl-stmt-caseelim-vl-modelement-equiv-congruence-on-ctx (implies (vl-modelement-equiv ctx ctx-equiv) (equal (vl-stmt-caseelim x ctx warnings ss) (vl-stmt-caseelim x ctx-equiv warnings ss))) :rule-classes :congruence)
Theorem:
(defthm vl-stmt-caseelim-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-stmt-caseelim x ctx warnings ss) (vl-stmt-caseelim x ctx warnings-equiv ss))) :rule-classes :congruence)
Theorem:
(defthm vl-stmt-caseelim-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-stmt-caseelim x ctx warnings ss) (vl-stmt-caseelim x ctx warnings ss-equiv))) :rule-classes :congruence)
Theorem:
(defthm vl-stmtlist-caseelim-vl-stmtlist-equiv-congruence-on-x (implies (vl-stmtlist-equiv x x-equiv) (equal (vl-stmtlist-caseelim x ctx warnings ss) (vl-stmtlist-caseelim x-equiv ctx warnings ss))) :rule-classes :congruence)
Theorem:
(defthm vl-stmtlist-caseelim-vl-modelement-equiv-congruence-on-ctx (implies (vl-modelement-equiv ctx ctx-equiv) (equal (vl-stmtlist-caseelim x ctx warnings ss) (vl-stmtlist-caseelim x ctx-equiv warnings ss))) :rule-classes :congruence)
Theorem:
(defthm vl-stmtlist-caseelim-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-stmtlist-caseelim x ctx warnings ss) (vl-stmtlist-caseelim x ctx warnings-equiv ss))) :rule-classes :congruence)
Theorem:
(defthm vl-stmtlist-caseelim-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-stmtlist-caseelim x ctx warnings ss) (vl-stmtlist-caseelim x ctx warnings ss-equiv))) :rule-classes :congruence)