Documentation

CslibFrontier.Foundations.AlgebraicGeometry.EllipticCurve.Hasse

Hasse's bound via Manin's proof #

Let F be a finite field of odd characteristic with q elements, let g = X³ + α X² + β X + γ over F with Δ ≠ 0, and let S = ∑ₓ χ(g(x)) (WeierstrassCurve.cubicCharSum). On the twist of Y² = g(X) over F(T) (WeierstrassCurve.Manin.twist), the Frobenius point P₁ = (D T^q, D^((q+3)/2)) has height q and P₁ - P₀ has height q + 1 + S, where D = g(T). The parallelogram law and d P₀ = 1 then force d (P₁ - n • P₀) = n² + S n + q for every integer n. Heights are nonnegative and q is odd, so S² ≤ 4 q. Together with the point count #E(F) = q + 1 + S (WeierstrassCurve.natCard_point_eq) this is Hasse's bound. The argument is Manin's elementary proof [Man56]; the implementation notes of ManinHeight map its steps to this development.

The height of P₁ - P₀ comes from the group law: x(P₁ - P₀) / D = N / (T^q - T)² with N = D (D^m + 1)² - (α + T^q + T) (T^q - T)² and m = q / 2. Since T^q - T = ∏_c (T - c), the reduced denominator is ∏_c (T - c)^(1 + χ(g(c))); the exponent of each factor is read off from Euler's criterion g(c)^m = χ(g(c)) and from the simple roots of g.

Main definitions #

Main results #

References #

Two facts about integer sequences #

Simple roots of the cubic and reduced fractions #

theorem WeierstrassCurve.Manin.derivative_cubicPoly_eval_ne_zero {k : Type u_1} [Field k] {α β γ : k} (hΔ : (ofCubic α β γ).Δ ≠ 0) {c : k} (hc : (cubicPoly α β γ).IsRoot c) :

If Δ ≠ 0, the roots of g are simple: g'(c) ≠ 0 at every root c. This is the nonsingularity of Y² = g(X) at (c, 0).

theorem WeierstrassCurve.Manin.rootMultiplicity_cubicPoly_le_one {k : Type u_1} [Field k] {α β γ : k} (hΔ : (ofCubic α β γ).Δ ≠ 0) (c : k) :

If Δ ≠ 0, every root of g has multiplicity at most one.

The Frobenius point P₁ #

theorem WeierstrassCurve.Manin.equation_P₁ {F : Type u_1} [Field F] [Fintype F] (hF : ringChar F ≠ 2) (α β γ : F) :
(twistPoly α β γ).toAffine.Equation (cubicPoly α β γ * Polynomial.X ^ Fintype.card F) (cubicPoly α β γ ^ ((Fintype.card F + 3) / 2))

P₁ = (D T^q, D^((q+3)/2)) lies on the twist over F[T], since D^q = g(T^q).

noncomputable def WeierstrassCurve.Manin.P₁ {F : Type u_1} [Field F] [Fintype F] (α β γ : F) :
(twist α β γ).toAffine.Point

The Frobenius point P₁ = (D T^q, D^((q+3)/2)) of the twist (0 if these coordinates are singular, which does not happen in odd characteristic when Δ ≠ 0, see P₁_eq).

theorem WeierstrassCurve.Manin.P₁_eq {F : Type u_1} [Field F] [Fintype F] {α β γ : F} (hF : ringChar F ≠ 2) (hΔ : (ofCubic α β γ).Δ ≠ 0) :
theorem WeierstrassCurve.Manin.d_P₁ {F : Type u_1} [Field F] [Fintype F] {α β γ : F} (hF : ringChar F ≠ 2) (hΔ : (ofCubic α β γ).Δ ≠ 0) :
d (P₁ α β γ) = Fintype.card F

d P₁ = q.

The height of P₁ - P₀ #

theorem WeierstrassCurve.Manin.d_P₁_sub_P₀ {F : Type u_1} [Field F] [Fintype F] {α β γ : F} [DecidableEq F] (hF : ringChar F ≠ 2) (hΔ : (ofCubic α β γ).Δ ≠ 0) :
↑(d (P₁ α β γ - P₀ α β γ)) = ↑(Fintype.card F) + 1 + cubicCharSum α β γ

Manin's value d (P₁ - P₀) = q + 1 + S, where S = ∑ₓ χ(g(x)).

theorem WeierstrassCurve.Manin.d_P₁_sub_zsmul_P₀ {F : Type u_1} [Field F] [Fintype F] {α β γ : F} [DecidableEq F] (hF : ringChar F ≠ 2) (hΔ : (ofCubic α β γ).Δ ≠ 0) (n : ℤ) :
↑(d (P₁ α β γ - n • P₀ α β γ)) = n ^ 2 + cubicCharSum α β γ * n + ↑(Fintype.card F)

Manin's closed form: d (P₁ - n • P₀) = n² + S n + q for every n : ℤ. This is a two-sided induction from the parallelogram law with P = P₁ - n • P₀ and Q = P₀, starting from d P₁ = q and d (P₁ - P₀) = q + 1 + S.

theorem WeierstrassCurve.cubicCharSum_sq_le {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] (hF : ringChar F ≠ 2) {α β γ : F} (hΔ : (ofCubic α β γ).Δ ≠ 0) :
cubicCharSum α β γ ^ 2 ≤ 4 * ↑(Fintype.card F)

Manin's bound on the character sum: S² ≤ 4 q when Y² = g(X) is elliptic over a finite field of odd characteristic with q elements.

theorem WeierstrassCurve.hasse_bound {F : Type u_1} [Field F] [Fintype F] (hF : ringChar F ≠ 2) (W : WeierstrassCurve F) [W.IsElliptic] :
(↑(Nat.card W.toAffine.Point) - (↑(Fintype.card F) + 1)) ^ 2 ≤ 4 * ↑(Fintype.card F)

Hasse's bound: an elliptic curve E over a finite field F of odd characteristic with q elements has (#E(F) - (q + 1))² ≤ 4 q.

Hasse's bound, real form: |#E(F) - (q + 1)| ≤ 2 √q.

theorem WeierstrassCurve.hasse_bound_zmod {p : ℕ} [Fact (Nat.Prime p)] (W : WeierstrassCurve (ZMod p)) [W.IsElliptic] :
↑p + 1 - 2 * √↑p ≤ ↑(Nat.card W.toAffine.Point) ∧ ↑(Nat.card W.toAffine.Point) ≤ ↑p + 1 + 2 * √↑p

Hasse's bound over ZMod p for every prime p (Theorem 9.72 of [KL20]): p + 1 - 2 √p ≤ #E(ZMod p) ≤ p + 1 + 2 √p.