Point counts of Weierstrass curves over finite fields #
Over a finite field F of odd characteristic, completing the square turns the equation of a
Weierstrass curve W into Y² = g(X) with the monic cubic
g = X³ + (b₂/4) X² + (b₄/2) X + b₆/4. The fibre of the affine curve over x then has
1 + χ(g(x)) points, where χ is the quadratic character of F, and summing over x gives
#E(F) = q + 1 + ∑ₓ χ(g(x)) for q = #F.
Main definitions #
WeierstrassCurve.cubicPoly α β γ: the monic cubicX³ + α X² + β X + γ.WeierstrassCurve.ofCubic α β γ: the Weierstrass curveY² = X³ + α X² + β X + γ.WeierstrassCurve.cubicCharSum α β γ: the character sum∑ₓ χ(x³ + α x² + β x + γ).
Main results #
WeierstrassCurve.Affine.natCard_point_eq_one_add_equation: forΔ ≠ 0, the points are the point at infinity and the affine solutions of the Weierstrass equation.WeierstrassCurve.Δ_ofCubic: completing the square preserves the discriminant.WeierstrassCurve.natCard_fiber: the fibre overxhas1 + χ(g(x))points.WeierstrassCurve.natCard_point_eq:#E(F) = q + 1 + ∑ₓ χ(g(x)).WeierstrassCurve.natCard_point_zmod_two: overZMod 2there are between1and5points.
References #
- J. Katz, Y. Lindell, Introduction to Modern Cryptography, Section 9.3.4:
Example 9.69 (p. 346) counts the points of
y² = f(x)overℤ_pthrough quadratic residues.
Finiteness and the point count #
The number of points is one (the point at infinity) plus the number of nonsingular affine points.
Curves Y² = g(X) for a monic cubic g #
The monic cubic X³ + α X² + β X + γ.
The Weierstrass curve Y² = X³ + α X² + β X + γ.
Instances For
The character sum ∑ₓ χ(x³ + α x² + β x + γ) of the quadratic character χ of F.
Completing the square #
Completing the square: W.Equation x y ↔ (2y + a₁x + a₃)² = 4 g(x) with
g = X³ + (b₂/4) X² + (b₄/2) X + b₆/4.
The point count #
The fibre of the affine curve over x has 1 + χ(g(x)) points, where
g = X³ + (b₂/4) X² + (b₄/2) X + b₆/4.
The number of affine solutions of the Weierstrass equation is q + ∑ₓ χ(g(x)).
Point count. An elliptic curve over a finite field F of odd characteristic has
q + 1 + ∑ₓ χ(g(x)) points, where g = X³ + (b₂/4) X² + (b₄/2) X + b₆/4.