The adjacent Somos-4 relation
DefinitionWardSomosmazur-n25
For a normalized elliptic divisibility sequence , the file defines the adjacent recurrence predicate
This relation is the local Somos-4 identity from which the conservation and invariant modules are built.
Definition code
import Mathlib.NumberTheory.EllipticDivisibilitySequence
import Mathlib.Tactic
namespace FLT.EDS
variable {R : Type*} [CommRing R]
/-- The adjacent Somos relation at an integer index. -/
@[expose] public def AdjRel (b c d : R) (m : ℤ) : Prop :=
normEDS b c d (m + 2) * normEDS b c d (m - 2)
= b ^ 2 * normEDS b c d (m + 1) * normEDS b c d (m - 1)
- c * normEDS b c d m ^ 2
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.