Fix all Lean build warnings

- Update deprecated lemmas (ite_eq_left/right, ENat casts, List.Sublist, ...)
- Replace push_neg with push Not and resolve unused-variable warnings
- Convert flexible simp/simp_all calls to explicit simp only lists
- Remove unscoped maxHeartbeats options, open scoped Classical, and unused tactics
- Add missing module docstrings and clean up style linter hits
- Wrap over-long lines and flatten the deeply nested
  minimal_conflictRangeClosedForm_total proof

`lake build` now completes with zero warnings.
This commit is contained in:
andrew committed 2026-11-17 10:04:35 -05:00
1 parent a54a5f82f8
commit af318a7d32
51 files changed
+2542 -1357

No files matched your search

+2 -2
View File
@@ -38,7 +38,7 @@ theorem reportedBelowBegin_le_cnt_resolve_end {db : DB} {r : RangeRead} {res : R
have hlenle : res.keys.length ≤ (RangeRead.completeKeys db r).length :=
hpre.length_le
have hck : (RangeRead.completeKeys db r).length ≤ cnt db (resolve db r.end_) := by
rw [RangeRead.completeKeys, if_neg (by simp [hrev]), RangeRead.inRange]
rw [RangeRead.completeKeys, ite_eq_right (by simp [hrev]), RangeRead.inRange]
calc (db.keys.filter
(fun k : Key => decide (resolve db r.begin ≤ (k : WithTop Key) ∧
(k : WithTop Key) < resolve db r.end_))).length
@@ -101,7 +101,7 @@ theorem clampNonposBottom_of_anchor_neg_trunc {r : RangeRead} {res : Result} {db
have hL : resolve db r.begin = (([] : Key) : WithTop Key) := resolve_eq_nil hanchor
have hck : RangeRead.completeKeys db r =
db.keys.filter (fun k : Key => decide (((k : Key) : WithTop Key) < resolve db r.end_)) := by
rw [RangeRead.completeKeys, if_neg (by simp [hrev])]
rw [RangeRead.completeKeys, ite_eq_right (by simp [hrev])]
unfold RangeRead.inRange
rw [hL]
apply List.filter_congr