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:
1 parent
a54a5f82f8
commit
af318a7d32
51 files changed
+2542
-1357
No files matched your search
@@ -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⟩
|
||||
|
||||
|
||||
Reference in new issue
Block a user