The third x-only ladder step is differential addition after doubling
ProvedKeystoneLadder.XOnly.xLadderRep_threemazur-n25
Let be a field, let be a Weierstrass curve over , let , put , let be homogeneous doubling, let be total differential addition, and let be the raw x-only ladder representative at index . Then
This explicit base case anchors the odd branch of the ladder correctness argument. Formalization note: decidable equality on is used by the total addition branch.
Preamble
import Mathlib
import Definitions.Def_KeystoneLadder
set_option linter.unusedSectionVars false
set_option linter.unusedSimpArgs false
set_option linter.unusedTactic false
set_option linter.overlappingInstances false
open Polynomial
open WeierstrassCurve
open WeierstrassCurve.Affine
open KeystoneLadder
universe u
variable {k : Type u} [Field k] [DecidableEq k]
variable (E : WeierstrassCurve k)
open KeystoneLadder.XOnlyFormal statement
@[simp]
theorem KeystoneLadder.XOnly.xLadderRep_three (x : k) :
xLadderRep E x 3 =
diffAddOrInfVec E (xAffVec x) (doubleVec E (xAffVec x)) (xAffVec x) := by sorrySource
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.