The generator curve and its point codes
This chapter fixes the field, the curve, the base point and the coding of points by rationals. The specification of the polynomial and the elliptic model of integer indices both build on these definitions, so they form a chapter of their own, before either.
Everything takes place over \(K_0=\mathbb Q(s)\), \(s^2=2\), written in the basis \(1,s\), so that each field equation is two rational equations.
DefinitionThe field \(K_0=\mathbb Q(\sqrt2)\)#✓
Let \(K_0=\mathbb Q(s)\) with \(s^2=2\). Every element of \(K_0\) is uniquely \(u+vs\) with \(u,v\in\mathbb Q\), its components; addition is componentwise and $\((a+bs)(c+es)=(ac+2be)+(ae+bc)s .\)$ The conjugate of \(z=u+vs\) is \(\bar z=u-vs\), the norm is \(\operatorname N(z)=z\bar z=u^2-2v^2\in\mathbb Q\) and the trace is \(\operatorname{Tr}(z)=2u\). The two real embeddings are \(\sigma_+(u+vs)=u+v\sqrt2\) and \(\sigma_-(u+vs)=u-v\sqrt2\); \(\operatorname N(z)=\sigma_+(z)\sigma_-(z)\). An element is totally positive if both embeddings are positive, and its sign vector is the pair of signs of \(\sigma_+(z),\sigma_-(z)\).
The subring \(\mathbb Z[s]=\{u+vs:u,v\in\mathbb Z\}\) has fraction field \(K_0\). Two fixed elements recur throughout the chapter: $\(\epsilon=1+s,\qquad \delta=3-s .\)$
The field is \(\mathbb Q\) adjoined a square root of \(2\); \(2\) is not a rational square, so \(K_0\) is a field of degree two over \(\mathbb Q\).
abbrev K0 : Type := QuadraticAlgebra ℚ 2 0
def sqrt2 : K0 := ⟨0, 1⟩
def epsilon : K0 := ⟨1, 1⟩
abbrev K0 : Type := QuadraticAlgebra ℚ 2 0
ZInQKernel/Hypotheses/MordellWeil.lean:25
Used by 23
The handful of explicit identities and sign facts used throughout (the square of \(d\), powers of \(\epsilon=1+s\), \(\delta=\epsilon^4d\), norms, total positivity of \(d\) and \(\delta\)) are collected in one closed statement.
LemmaExplicit identities in \(K_0\)#✓
With \(s^2=2\), \(\epsilon=1+s\), \(\delta=3-s\) and \(d=75-53s\), the following closed statements hold in \(K_0\) and in \(\mathbb Z\):
- \(d^2=11243-7950s\) and \(\operatorname N(d)=75^2-2\cdot53^2=7\);
- \(\epsilon(s-1)=1\), \(\epsilon^2=3+2s\), \(\epsilon^4=17+12s\), \(\epsilon^6=99+70s\) and \(\operatorname N(\epsilon)=-1\);
- \(d\,\epsilon^4=\delta\), that is \((75-53s)(17+12s)=3-s\); \(\delta^2=11-6s\); \(\operatorname N(\delta)=7\); \(\operatorname N(s)=-2\);
- \(75>0\) and \(75^2>2\cdot53^2\); \(3>0\) and \(3^2>2\cdot1^2\); \(1^2<2\cdot1^2\); \(2\le2^2\);
- \(2^6\cdot7^4=392^2=153664\), \(7^2<392\) and \(676=26^2\).
An element \(u+vs\) with \(u,v\in\mathbb Q\) is totally positive exactly when \(u>0\) and \(u^2>2v^2\). So item 4 says that \(d\) and \(\delta\) are totally positive, that \(\epsilon\) has sign vector \((+,-)\) (as \(\sigma_-(\epsilon)=1-\sqrt2<0<\sigma_+(\epsilon)\)), and that \(\sigma_\pm(\delta)=3\mp\sqrt2\) lies in \([1,5]\) (both bounds amount to \(\sqrt2\le2\)).
All items are equalities of explicit elements of \(K_0\) (two rational components each) or comparisons of explicit integers: a finite computation.
Proof sketch. Expand with \(s^2=2\) and compare components; evaluate the integers. For the positivity criterion: \(u\pm v\sqrt2>0\) for both signs is \(u>|v|\sqrt2\), i.e. \(u>0\) and \(u^2>2v^2\).
ZInQ.k0_identities · 15 lines
theorem k0_identities :
-- 1.
(genD ^ 2 = ⟨11243, -7950⟩ ∧ QuadraticAlgebra.norm genD = 7 ∧ (75 : ℤ) ^ 2 - 2 * 53 ^ 2 = 7) ∧
-- 2.
(epsilon * (sqrt2 - 1) = 1 ∧ epsilon ^ 2 = ⟨3, 2⟩ ∧ epsilon ^ 4 = ⟨17, 12⟩ ∧
epsilon ^ 6 = ⟨99, 70⟩ ∧ QuadraticAlgebra.norm epsilon = -1) ∧
-- 3.
(genD * epsilon ^ 4 = delta ∧ (⟨75, -53⟩ * ⟨17, 12⟩ : K0) = ⟨3, -1⟩ ∧ delta ^ 2 = ⟨11, -6⟩ ∧
QuadraticAlgebra.norm delta = 7 ∧ QuadraticAlgebra.norm sqrt2 = -2) ∧
-- 4.
((0 : ℤ) < 75 ∧ (2 : ℤ) * 53 ^ 2 < 75 ^ 2 ∧ (0 : ℤ) < 3 ∧ (2 : ℤ) * 1 ^ 2 < 3 ^ 2 ∧
(1 : ℤ) ^ 2 < 2 * 1 ^ 2 ∧ (2 : ℤ) ≤ 2 ^ 2) ∧
-- 5.
((2 : ℤ) ^ 6 * 7 ^ 4 = 392 ^ 2 ∧ (392 : ℤ) ^ 2 = 153664 ∧ (7 : ℤ) ^ 2 < 392 ∧
(676 : ℤ) = 26 ^ 2)
theorem totallyPositive_iff (z : K0) : TotallyPositive z ↔ 0 < z.re ∧ 2 * z.im ^ 2 < z.re ^ 2
theorem k0_signs :
TotallyPositive genD ∧ TotallyPositive delta ∧ signVector epsilon = (1, -1) ∧
K0.embPlus delta ∈ Set.Icc (1 : ℝ) 5 ∧ K0.embMinus delta ∈ Set.Icc (1 : ℝ) 5
def genD : K0 := ⟨75, -53⟩
ZInQKernel/Hypotheses/MordellWeil.lean:31
def epsilon : K0 := ⟨1, 1⟩
ZInQKernel/Model/Field/Basic.lean:124
def sqrt2 : K0 := ⟨0, 1⟩
ZInQKernel/Hypotheses/MordellWeil.lean:28
def delta : K0 := ⟨3, -1⟩
ZInQKernel/Model/Field/Basic.lean:127
abbrev K0 : Type := QuadraticAlgebra ℚ 2 0
ZInQKernel/Hypotheses/MordellWeil.lean:25
def TotallyPositive (z : K0) : Prop := 0 < embPlus z ∧ 0 < embMinus z
ZInQKernel/Model/Field/Basic.lean:103
noncomputable def signVector (z : K0) : SignType × SignType :=
(SignType.sign (embPlus z), SignType.sign (embMinus z))
ZInQKernel/Model/Field/Basic.lean:106
noncomputable def embPlus : K0 →+* ℝ :=
(QuadraticAlgebra.lift ⟨Real.sqrt 2, real_sqrt_two_mul_self⟩).toRingHom
ZInQKernel/Model/Field/Basic.lean:81
noncomputable def embMinus : K0 →+* ℝ :=
(QuadraticAlgebra.lift ⟨-Real.sqrt 2, real_neg_sqrt_two_mul_self⟩).toRingHom
ZInQKernel/Model/Field/Basic.lean:85
Uses 1 · Used by 8
The curve is \(E:y^2=x^3-d^2x\) with \(d=75-53s\), and the base point is \(P_0=\bigl(\frac{1641-1160s}{8},\frac{-123720+87483s}{32}\bigr)\); that its coordinates satisfy the curve equation is a closed identity in \(K_0\).
DefinitionThe generator curve \(E\)#✓
Put \(d=75-53s\in\mathbb Z[s]\), so that $\(d^2=11243-7950s,\qquad A:=-d^2=-11243+7950s,\qquad \operatorname N(d)=75^2-2\cdot53^2=7 .\)$ The curve \(E\) over \(K_0\) is the short Weierstrass curve $\(E:\ y^2=x^3-d^2x=x^3+Ax .\)$ Its discriminant \(-64A^3=64d^6\) is nonzero, so \(E\) is an elliptic curve. Its group of \(K_0\)-rational points, with the usual chord-and-tangent law and identity \(O\), is written \(E(K_0)\). Since \(x^3-d^2x=x(x-d)(x+d)\), the points of order dividing two are $\(E(K_0)[2]=\{O,\ (0,0),\ (d,0),\ (-d,0)\}.\)$
The group law is the standard one for \(y^2=x^3+Ax\): \(-(x,y)=(x,-y)\); if \(x_1\ne x_2\) the sum of \((x_1,y_1)\) and \((x_2,y_2)\) has \(\lambda=(y_2-y_1)/(x_2-x_1)\); if the points are equal with \(y_1\ne0\), \(\lambda=(3x_1^2+A)/(2y_1)\); in both cases \(x_3=\lambda^2-x_1-x_2\) and \(y_3=\lambda(x_1-x_3)-y_1\); and \((x,y)+(x,-y)=O\).
def genCurve : WeierstrassCurve K0 where
a₁ := 0
a₂ := 0
a₃ := 0
a₄ := -genD ^ 2
a₆ := 0
theorem genCurve_two_torsion (P : genCurve.toAffine.Point) :
2 • P = 0 ↔ P = 0 ∨ P = genT0 ∨ P = genTd ∨ P = genTnegd
abbrev K0 : Type := QuadraticAlgebra ℚ 2 0
ZInQKernel/Hypotheses/MordellWeil.lean:25
def genD : K0 := ⟨75, -53⟩
ZInQKernel/Hypotheses/MordellWeil.lean:31
def genCurve : WeierstrassCurve K0 where
a₁ := 0
a₂ := 0
a₃ := 0
a₄ := -genD ^ 2
a₆ := 0
ZInQKernel/Hypotheses/MordellWeil.lean:34
def genT0 : genCurve.toAffine.Point := Point.mk genCurve_equation_zero
ZInQKernel/Model/Field/Curve.lean:68
def genTd : genCurve.toAffine.Point := Point.mk genCurve_equation_genD
ZInQKernel/Model/Field/Curve.lean:70
def genTnegd : genCurve.toAffine.Point := Point.mk genCurve_equation_neg_genD
ZInQKernel/Model/Field/Curve.lean:72
Uses 2 · Used by 14
LemmaThe coordinates of \(P_0\) satisfy the curve equation#✓
Let \(x_0=\frac{1641-1160s}{8}\) and \(y_0=\frac{-123720+87483s}{32}\) in \(K_0\). Then $\(y_0^2=x_0^3-d^2x_0\qquad(d^2=11243-7950s),\)$ and \(y_0\ne0\).
This is a closed identity between explicit elements of \(K_0\): after expanding with \(s^2=2\), both components of \(y_0^2-x_0^3+d^2x_0\) are explicit rationals, and the claim is that both vanish. It is a finite computation.
Proof sketch. Expand both sides with the product rule of \(K_0\) and compare the two rational components. Alternatively, it follows from the certificate for \(R\): the point \(2R\) of \(C\) is sent by the inverse change of variables to \((x_0,y_0)\), and the change of variables preserves the curve equations; that route needs no separate arithmetic, but the direct expansion is shorter.
theorem genP0_equation : genCurve.toAffine.Equation genX0 genY0
def genCurve : WeierstrassCurve K0 where
a₁ := 0
a₂ := 0
a₃ := 0
a₄ := -genD ^ 2
a₆ := 0
ZInQKernel/Hypotheses/MordellWeil.lean:34
def genX0 : K0 := ⟨1641 / 8, -145⟩
ZInQKernel/Model/Field/Curve.lean:95
def genY0 : K0 := ⟨-15465 / 4, 87483 / 32⟩
ZInQKernel/Model/Field/Curve.lean:98
Uses 1 · Used by 2
DefinitionThe point \(P_0\)#✓
The point \(P_0\in E(K_0)\) is the affine point $\(P_0=\left(\frac{1641-1160s}{8},\ \frac{-123720+87483s}{32}\right) =\left(\tfrac{1641}{8}-145s,\ -\tfrac{15465}{4}+\tfrac{87483}{32}s\right).\)$ Its four rational coordinates are \(\frac{1641}{8},-145,-\frac{15465}{4},\frac{87483}{32}\).
That these coordinates satisfy the equation of \(E\) is a closed finite identity in \(K_0\), proved separately. Proposition 3.1 shows that \(P_0\) has infinite order and generates \(2E(K_0)\).
def genP0 : genCurve.toAffine.Point := Point.mk genP0_equation
def genCurve : WeierstrassCurve K0 where
a₁ := 0
a₂ := 0
a₃ := 0
a₄ := -genD ^ 2
a₆ := 0
ZInQKernel/Hypotheses/MordellWeil.lean:34
theorem genP0_equation : genCurve.toAffine.Equation genX0 genY0
ZInQKernel/Model/Field/Curve.lean:114
Uses 2 · Used by 20
A point is coded by five rationals: \((1,0,0,0,0)\) for the identity and \((0,x_0,x_1,y_0,y_1)\) for an affine point with \(x=x_0+x_1s\), \(y=y_0+y_1s\); \(\iota(n)\) is the code of \([n]P_0\). The integer index and the coordinates play distinct roles throughout.
DefinitionPoint codes#✓
The code of a point of \(E(K_0)\) is the element of \(\mathbb Q^5\) $\(\operatorname{code}(O)=(1,0,0,0,0),\qquad \operatorname{code}(x,y)=(0,x_0,x_1,y_0,y_1)\quad\text{where }x=x_0+x_1s,\ y=y_0+y_1s,\)$ with \(x_0,x_1,y_0,y_1\in\mathbb Q\) the components of the coordinates. For \(n\in\mathbb Z\), $\(\iota(n)=\operatorname{code}([n]P_0)\in\mathbb Q^5 .\)$ A canonical code is the code of a point of \(E(K_0)\); a code of a point of \(2E(K_0)\) is a code of a point of the carrier \(D=2E(K_0)\).
The integer index \(n\) and the five rational coordinates of \(\iota(n)\) play different roles: the index is what the later chapters compute with, the coordinates are what the polynomial sees. Since \(P_0\) has infinite order, distinct indices have distinct codes.
def pointCode : genCurve.toAffine.Point → Fin 5 → ℚ
| .zero => ![1, 0, 0, 0, 0]
| .some x y _ => ![0, x.re, x.im, y.re, y.im]
noncomputable def iota (n : ℤ) : Fin 5 → ℚ := pointCode (n • genP0)
def genCurve : WeierstrassCurve K0 where
a₁ := 0
a₂ := 0
a₃ := 0
a₄ := -genD ^ 2
a₆ := 0
ZInQKernel/Hypotheses/MordellWeil.lean:34
def pointCode : genCurve.toAffine.Point → Fin 5 → ℚ
| .zero => ![1, 0, 0, 0, 0]
| .some x y _ => ![0, x.re, x.im, y.re, y.im]
ZInQKernel/Model/Field/Codes.lean:22
def genP0 : genCurve.toAffine.Point := Point.mk genP0_equation
ZInQKernel/Model/Field/Curve.lean:118
Uses 1 · Used by 42
Loading dependency explorer…
The dependency explorer needs JavaScript and its graph data.