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
@@ -40,7 +40,7 @@ theorem clampNonposBottom_of_anchor_neg_long {r : RangeRead} {res : Result} {db
db.keys.filter (fun k : Key => decide (((k : Key) : WithTop Key) < resolve db r.end_)) := by
rcases hcomp.2 with ⟨hm, _, _⟩ | ⟨-, heq⟩
· simp [hmore] at hm
· rw [heq, RangeRead.completeKeys, if_neg (by simp [hrev])]
· rw [heq, RangeRead.completeKeys, ite_eq_right (by simp [hrev])]
unfold RangeRead.inRange
rw [hL]
apply List.filter_congr
@@ -142,7 +142,7 @@ theorem minimal_closedForm_of_negCross_nonclamp_long_nonpos {r : RangeRead} {res
have hnonclamp : ∀ db, RangeRead.Compatible db r res → 0 ≤ r.begin.anchor db := by
intro db hcomp
by_contra hneg
push_neg at hneg
push Not at hneg
exact hnotbottom
(clampNonposBottom_of_anchor_neg_long hcomp hrev hmore hne hbegin hend hlong hneg)
have hread₀ : Readable r res := ⟨db₀, hcomp₀⟩