The conserved numerator and denominator of a Somos-4 sequence
DefinitionWardConservationmazur-n25
For the normalized elliptic divisibility sequence , the file defines
and
Their ratio is the Ward–Somos conserved quantity. These definitions provide the numerator and denominator used to propagate the elliptic divisibility sequence identities.
Definition code
import Mathlib.NumberTheory.EllipticDivisibilitySequence
import Mathlib.Tactic
namespace FLT.EDS
variable {R : Type*} [CommRing R]
/-- The Somos-4 numerator `N_n` and denominator `D_n`; `N_n / D_n` is the conserved quantity. -/
@[expose] public def Nseq (b c d : R) (n : ℤ) : R :=
normEDS b c d (n+2) * normEDS b c d (n-1)^2
+ normEDS b c d (n+1)^2 * normEDS b c d (n-2) + b^2 * normEDS b c d n ^ 3
@[expose] public def Dseq (b c d : R) (n : ℤ) : R :=
normEDS b c d (n+1) * normEDS b c d n * normEDS b c d (n-1)
end FLT.EDS
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.