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