Homogeneous x-coordinate doubling formulas
DefinitionKeystoneDoublingmazur-n25
For a Weierstrass curve with invariants , the file defines the homogeneous doubling pair
This pair represents the projective x-coordinate of and is matched to the even division-polynomial formulas.
Definition code
import Mathlib.AlgebraicGeometry.EllipticCurve.DivisionPolynomial.Degree
import Mathlib.AlgebraicGeometry.EllipticCurve.DivisionPolynomial.Basic
import Mathlib.NumberTheory.EllipticDivisibilitySequence
import Mathlib.Tactic
/-!
# Keystone doubling — the division-polynomial duplication identities
`PsiSq_two_mul : W.ΨSq (2*m) = dupDenH (W.Φ m) (W.ΨSq m)` and the numerator analogue. These are the
x-coordinate duplication formulas; via a Ψ₃-saturated `linear_combination` over `prePsi_adjacent_somos`
(Adj) + `preΨ_invariant` (Inv, = Ward `InvarRel` on ψ) + `b_relation` (bRel), then cancel `Ψ₃≠0`.
All four parity×num/den cofactor certificates were CAS-verified (see `KEYSTONE_DOUBLING_CERT.md`).
-/
namespace WeierstrassCurve
open Polynomial
variable {R : Type*} [CommRing R] (W : WeierstrassCurve R)
/-- Homogeneous x-doubling numerator on `R[X]` representatives. -/
@[expose] public noncomputable def dupNumP (Xc Zc : R[X]) : R[X] :=
Xc ^ 4 - C W.b₄ * Xc ^ 2 * Zc ^ 2 - C (2 * W.b₆) * Xc * Zc ^ 3 - C W.b₈ * Zc ^ 4
/-- Homogeneous x-doubling denominator on `R[X]` representatives. -/
@[expose] public noncomputable def dupDenP (Xc Zc : R[X]) : R[X] :=
C 4 * Xc ^ 3 * Zc + C W.b₂ * Xc ^ 2 * Zc ^ 2 + C (2 * W.b₄) * Xc * Zc ^ 3 + C W.b₆ * Zc ^ 4
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.