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
@@ -93,7 +93,7 @@ theorem resolve_begin_eq_head_of_negCross_compat {db : DB} {r : RangeRead} {res
(hmore : res.more = false) (hne : res.keys ≠ []) (hbegin : r.begin.offset < 0)
(hend : 2 ≤ r.end_.offset)
(hhi : ∀ k ∈ res.keys, ((k : Key) : WithTop Key) < r.end_.key)
(hcross : ((res.keys.head hne : Key) : WithTop Key) < r.begin.key)
(_hcross : ((res.keys.head hne : Key) : WithTop Key) < r.begin.key)
(hnonclamp : beginSlack r < reportedBelowBegin r res) :
resolve db r.begin = ((res.keys.head hne : Key) : WithTop Key) := by
set head : Key := res.keys.head hne with hhead
@@ -633,7 +633,7 @@ theorem minimal_closedForm_of_negCross_overshoot_rev {r : RangeRead} {res : Resu
intro k hk
exact hhi k (by simpa [res'] using hk)
have hhead' : res'.keys.head hne' = res.keys.getLast hne := by
simpa [res'] using List.head_reverse (l := res.keys) (by simpa [res'] using hne')
simp [res']
have hcross' : ((res'.keys.head hne' : Key) : WithTop Key) < r'.begin.key := by
rw [hhead']
rw [show res.keys.getLastD ([] : Key) = res.keys.getLast hne from