Conversation
…y checks Adds gen_pc_loop.py, which uses Sage to compute a_p and reduction type for elliptic curves over ℤ and renders a Lean file that recomputes each local Euler factor from a point count over 𝔽ₚ and checks it against the LMFDB value by `decide`. The generated MinimalAt predicate applies Kraus' criterion (KrausAt) at p = 2, 3 rather than testing valuations alone: at these primes v_p(c₄) ≥ 4, v_p(c₆) ≥ 6, v_p(Δ) ≥ 12 is not sufficient to conclude non-minimality, and without the extra check on the descended pair (c₄/p⁴, c₆/p⁶) the certificate mis-fires on genuinely minimal models (e.g. 112.c5, minimal with v₂(Δ) = 14, v₂(c₄) = 4, v₂(c₆) = 6); Kraus' criterion is what makes MinimalAt correct at the two primes where naive valuation bounds are unconditionally reliable for p ≥ 5 but not below it. Includes five generated certificates under generated/ for the curves in CURVES.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Euler-factor certificate generator with Kraus-criterion minimality checks
Compiles against Lean v4.34.0 with mathlib and cslib on live.lean-lang.
Collaborators: Zachary Feng, Håvard Damm-Johnsen (the work started during the LMFDB-Lean workshop at UEA in June 2026.)