Skip to content

chore: bump lean 4.31 - #175

Open
kejace wants to merge 2 commits into
mainfrom
bump-lean-4.31
Open

chore: bump lean 4.31#175
kejace wants to merge 2 commits into
mainfrom
bump-lean-4.31

Conversation

@kejace

@kejace kejace commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Forked CompPoly, updated to 4.31, then changed our CompElliptic to depend on said package.
Finally made our repo depend on CompElliptic @ 4.31

Let's see how this builds

kejace and others added 2 commits June 29, 2026 11:42
Now that l-adic/CompPoly has a 4.31 branch and l-adic/CompElliptic builds against
it, the dependency chain that capped us at v4.30.0 is unblocked.

- lean-toolchain: v4.30.0 -> v4.31.0
- lakefile.toml: mathlib pin v4.30.0 -> v4.31.0
- vendor/CompElliptic submodule: d6e88aa -> c1f6f90 ("Use l-adic CompPoly for
  Lean 4.31"); .gitmodules now tracks l-adic/CompElliptic @ codex/use-l-adic-comppoly
  (which requires l-adic/CompPoly @ codex/lean-4.31-cleanup).
- lake-manifest.json: regenerated (mathlib fabf563a, CompPoly via l-adic fork).

Only code breakage was Kimchi/Circuit/VarBaseMul/Ladder.lean: Mathlib 4.31's
`convert (h.mul_left N) using 1` stopped rfl-closing the Int.instDvd vs semigroupDvd
instance subterm, emitting a spurious `Int.instDvd = semigroupDvd` goal. Fixed
instance-safely by rebuilding the divisibility witness through the goal's own
instance (obtain ⟨c,hc⟩ := h; exact ⟨N*c, by linear_combination N*hc⟩) — no convert,
no signature changes.

CompElliptic/CompPoly's Pratt/Lucas primality certificate stays axiom-clean under
4.31 (no native_decide/ofReduceBool). Verified: lake build Kimchi green (8582 jobs);
check-style OK (19 files); axiom gate all 25 roots reduce to
[propext, Classical.choice, Quot.sound, pallas_card, vesta_card].

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@kejace kejace changed the title Bump lean 4.31 chore: bump lean 4.31 Jul 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant