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

-3
View File
@@ -195,13 +195,10 @@ theorem evalCountToggled_eq_cnt_toggle {db : DB} {bounds : List Key}
· simp [hlt, hmem]
try ring
· simp [hlt]
try ring
· rw [dite_eq_right hmem, cnt_insert_eq db k hmem e]
by_cases hlt : (k : WithTop Key) < e
· simp [hlt, hmem]
try ring
· simp [hlt]
try ring
/-- **One toggle witness in finite count form.** A database satisfying a system
`S` while violating every constraint in a chosen list `bad` after toggling `k`