Upgrade to Lean 4.35 and add comparator check

- Move to lean-toolchain v4.35.0 and mathlib v4.35.0
- Opt out of the module-system warning with `allowNonModules`
- Adapt to Lean/Mathlib 4.35 changes: drop now-redundant
  `List.filter_congr` blocks and no-op `ring` calls
- Add `Challenge.lean`, `Solution.lean`, and `comparator.json`

`lake comparator` now accepts the solution against the trusted challenge.
This commit is contained in:
andrew committed 2026-11-17 10:28:15 -05:00
1 parent fc8335c380
commit bd5b3c885c
10 files changed
+48 -30

No files matched your search

@@ -63,10 +63,6 @@ theorem countP_lt_eq_add_filter_withTop (l : List Key) (hnd : l.Nodup) {a : Key}
Key)))).length =
(l.filter (fun x : Key => decide (a ≤ x ∧ x < ke))).length := by
congr 1
apply List.filter_congr
intro k _
rw [decide_eq_decide]
simp only [WithTop.coe_le_coe, WithTop.coe_lt_coe]
rw [hcoe, h, hf]
/-- **The begin resolution in the nonclamping negative-offset complete cell.** When the