Recursively simplify indices on selects and multiplicities on multiconcats throughout an expression.
(vl-expr-selresolve x ss warnings) → (mv warnings new-x)
Theorem:
(defthm return-type-of-vl-expr-selresolve.warnings (b* (((mv ?warnings ?new-x) (vl-expr-selresolve x ss warnings))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm return-type-of-vl-expr-selresolve.new-x (b* (((mv ?warnings ?new-x) (vl-expr-selresolve x ss warnings))) (vl-expr-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm return-type-of-vl-exprlist-selresolve.warnings (b* (((mv ?warnings ?new-x) (vl-exprlist-selresolve x ss warnings))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm return-type-of-vl-exprlist-selresolve.new-x (b* (((mv ?warnings ?new-x) (vl-exprlist-selresolve x ss warnings))) (and (vl-exprlist-p new-x) (equal (len new-x) (len x)))) :rule-classes :rewrite)
Theorem:
(defthm vl-expr-selresolve-of-vl-expr-fix-x (equal (vl-expr-selresolve (vl-expr-fix x) ss warnings) (vl-expr-selresolve x ss warnings)))
Theorem:
(defthm vl-expr-selresolve-of-vl-scopestack-fix-ss (equal (vl-expr-selresolve x (vl-scopestack-fix ss) warnings) (vl-expr-selresolve x ss warnings)))
Theorem:
(defthm vl-expr-selresolve-of-vl-warninglist-fix-warnings (equal (vl-expr-selresolve x ss (vl-warninglist-fix warnings)) (vl-expr-selresolve x ss warnings)))
Theorem:
(defthm vl-exprlist-selresolve-of-vl-exprlist-fix-x (equal (vl-exprlist-selresolve (vl-exprlist-fix x) ss warnings) (vl-exprlist-selresolve x ss warnings)))
Theorem:
(defthm vl-exprlist-selresolve-of-vl-scopestack-fix-ss (equal (vl-exprlist-selresolve x (vl-scopestack-fix ss) warnings) (vl-exprlist-selresolve x ss warnings)))
Theorem:
(defthm vl-exprlist-selresolve-of-vl-warninglist-fix-warnings (equal (vl-exprlist-selresolve x ss (vl-warninglist-fix warnings)) (vl-exprlist-selresolve x ss warnings)))
Theorem:
(defthm vl-expr-selresolve-vl-expr-equiv-congruence-on-x (implies (vl-expr-equiv x x-equiv) (equal (vl-expr-selresolve x ss warnings) (vl-expr-selresolve x-equiv ss warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-expr-selresolve-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-expr-selresolve x ss warnings) (vl-expr-selresolve x ss-equiv warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-expr-selresolve-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-expr-selresolve x ss warnings) (vl-expr-selresolve x ss warnings-equiv))) :rule-classes :congruence)
Theorem:
(defthm vl-exprlist-selresolve-vl-exprlist-equiv-congruence-on-x (implies (vl-exprlist-equiv x x-equiv) (equal (vl-exprlist-selresolve x ss warnings) (vl-exprlist-selresolve x-equiv ss warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-exprlist-selresolve-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-exprlist-selresolve x ss warnings) (vl-exprlist-selresolve x ss-equiv warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-exprlist-selresolve-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-exprlist-selresolve x ss warnings) (vl-exprlist-selresolve x ss warnings-equiv))) :rule-classes :congruence)