Ward’s invariant numerator and denominator for division polynomials
DefinitionPsiInvariantmazur-n25
For a Weierstrass curve and an integer , the file defines a parity-adjusted numerator
and denominator
where is the appropriate square-division-polynomial factor for even and for odd . These carriers translate the Ward–Somos conserved quantity into the division-polynomial setting.
Definition code
import Mathlib.AlgebraicGeometry.EllipticCurve.DivisionPolynomial.Degree
import Mathlib.NumberTheory.EllipticDivisibilitySequence
import Mathlib.Tactic
import Mathlib.AlgebraicGeometry.EllipticCurve.DivisionPolynomial.Basic
import Definitions.Def_WardSomos
open Polynomial
open scoped Polynomial
open FLT.EDS
namespace WeierstrassCurve
noncomputable section
variable {R : Type*} [CommRing R]
@[expose] public def preΨInvN (W : WeierstrassCurve R) (m : ℤ) : R[X] :=
W.preΨ (m + 2) * W.preΨ (m - 1) ^ 2
+ W.preΨ (m + 1) ^ 2 * W.preΨ (m - 2)
+ (if Even m then W.Ψ₂Sq ^ 2 else 1) * W.preΨ m ^ 3
@[expose] public def preΨInvD (W : WeierstrassCurve R) (m : ℤ) : R[X] :=
W.preΨ (m + 1) * W.preΨ m * W.preΨ (m - 1)
end
end WeierstrassCurve
Source
B. Mazur, Modular curves and the Eisenstein ideal, Publ. IHES 47 (1977); Lean formalization of the order-25 case for this mission. Modules in the MazurProof/Keystone/Tate families are adapted from anthropics/fermats-last-theorem (Apache-2.0) via the xiangyazi24/FLT fork.