Eliminate
(vl-range-wildelim x ctx warnings) → (mv warnings new-x)
Function:
(defun vl-range-wildelim (x ctx warnings) (declare (xargs :guard (and (vl-range-p x) (vl-context-p ctx) (vl-warninglist-p warnings)))) (let ((__function__ 'vl-range-wildelim)) (declare (ignorable __function__)) (b* ((x (vl-range-fix x)) (warnings (vl-warninglist-fix warnings))) (b* (((vl-range x) x) ((mv warnings msb-prime) (vl-expr-wildelim x.msb ctx warnings)) ((mv warnings lsb-prime) (vl-expr-wildelim x.lsb ctx warnings)) (x-prime (change-vl-range x :msb msb-prime :lsb lsb-prime))) (mv warnings x-prime)))))
Theorem:
(defthm vl-warninglist-p-of-vl-range-wildelim.warnings (b* (((mv ?warnings ?new-x) (vl-range-wildelim x ctx warnings))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-range-p-of-vl-range-wildelim.new-x (b* (((mv ?warnings ?new-x) (vl-range-wildelim x ctx warnings))) (vl-range-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-range-wildelim-of-vl-range-fix-x (equal (vl-range-wildelim (vl-range-fix x) ctx warnings) (vl-range-wildelim x ctx warnings)))
Theorem:
(defthm vl-range-wildelim-vl-range-equiv-congruence-on-x (implies (vl-range-equiv x x-equiv) (equal (vl-range-wildelim x ctx warnings) (vl-range-wildelim x-equiv ctx warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-range-wildelim-of-vl-context-fix-ctx (equal (vl-range-wildelim x (vl-context-fix ctx) warnings) (vl-range-wildelim x ctx warnings)))
Theorem:
(defthm vl-range-wildelim-vl-context-equiv-congruence-on-ctx (implies (vl-context-equiv ctx ctx-equiv) (equal (vl-range-wildelim x ctx warnings) (vl-range-wildelim x ctx-equiv warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-range-wildelim-of-vl-warninglist-fix-warnings (equal (vl-range-wildelim x ctx (vl-warninglist-fix warnings)) (vl-range-wildelim x ctx warnings)))
Theorem:
(defthm vl-range-wildelim-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-range-wildelim x ctx warnings) (vl-range-wildelim x ctx warnings-equiv))) :rule-classes :congruence)