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
@@ -29,7 +29,6 @@ the front of the (reversed) complete keys, so the reported keys are no longer a
|
||||
|
||||
open FormalConflictRange
|
||||
|
||||
set_option maxHeartbeats 1200000
|
||||
|
||||
namespace FormalConflictRange
|
||||
|
||||
@@ -118,7 +117,8 @@ theorem between_add_offset_le_one {r : RangeRead} {res : Result} {db : DB}
|
||||
rw [cnt_coe]
|
||||
exact countP_lt_eq_of_getElem db.sorted hjlt hjeq
|
||||
have hLleBegin : ((L : Key) : WithTop Key) ≤ r.begin.key := le_of_lt hcross
|
||||
have hcnt_begin : cnt db r.begin.key = j + (between db ((L : Key) : WithTop Key) r.begin.key).length := by
|
||||
have hcnt_begin : cnt db r.begin.key = j + (between db ((L : Key) : WithTop Key)
|
||||
r.begin.key).length := by
|
||||
rw [cnt_eq_add_between db hLleBegin, hcntL]
|
||||
have hanchor : r.begin.anchor db = (j : Int) +
|
||||
((between db ((L : Key) : WithTop Key) r.begin.key).length : Int) +
|
||||
|
||||
Reference in new issue
Block a user