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

+6 -2
View File
@@ -1,5 +1,9 @@
import FormalConflictRange.NegCrossComplete
/-!
# The negative-begin complete bottom cell.
-/
open FormalConflictRange
namespace FormalConflictRange
@@ -12,7 +16,7 @@ abbrev negCrossHeadBottom (r : RangeRead) (res : Result) : Prop :=
res.keys.headD ([] : Key) = ([] : Key)
/-- The closed form for the negative-begin complete bottom cell: `[⊥, end_.key)`. -/
noncomputable def closedFormNegCrossHeadBottom (r : RangeRead) (res : Result) :
noncomputable def closedFormNegCrossHeadBottom (r : RangeRead) (_res : Result) :
ConflictRange :=
⟨(([] : Key) : WithTop Key), r.end_.key⟩
@@ -121,7 +125,7 @@ abbrev negCrossHeadBottomRev (r : RangeRead) (res : Result) : Prop :=
res.keys.getLastD ([] : Key) = ([] : Key)
/-- The closed form for the reversed negative-begin complete bottom cell. -/
noncomputable def closedFormNegCrossHeadBottomRev (r : RangeRead) (res : Result) :
noncomputable def closedFormNegCrossHeadBottomRev (r : RangeRead) (_res : Result) :
ConflictRange :=
⟨(([] : Key) : WithTop Key), r.end_.key⟩