Lefebvre's variations, No. 228 — on a theme by Deuring and Waterhouse: a curve over with trace whenever (the CM family)
ProvedLefebvreVariations.exists_isElliptic_trace_eq_of_sq_add_three_sq_eq_four_mulLefebvre's variations — posed by Erwan Lefebvre.
Let be a prime and let with
Then there exists an elliptic curve with . (For there is no solution; for the solutions are and .)
Classical proof: means has norm . The six twists , , of the curve with have Frobenius equal to times a sixth root of unity, so their traces are exactly the numbers with for some , namely and where (Gauss, cubic Jacobi sums). The statement is the part of Deuring's theorem supplied by the CM field .
Formalization Note The field is ZMod p with [Fact p.Prime]. A curve is a WeierstrassCurve (ZMod p) (general form, coefficients ), and E.IsElliptic says its discriminant is a unit, that is nonzero. E.toAffine.Point is Mathlib's type of points of : the point at infinity together with the nonsingular affine solutions, so Nat.card E.toAffine.Point is including the point at infinity. The trace is written (p : ℤ) + 1 - Nat.card E.toAffine.Point. The hypothesis is written with all quantities in ℤ.
Why this is a Lefebvre variation. It is one of the two missing steps of a Lean-verified reduction of the open statement PrescribedPointCount.exists_isElliptic_trace_eq_of_not_dvd (the ordinary case of Deuring's existence theorem). In the reduction that statement is split by a case analysis into this family and the complementary pairs , namely the pairs with for every integer ; the complementary statement is the other open step. This statement is a special case of the base statement, not an ingredient that implies it alone.
Attribution. Series Lefebvre's variations, posed by Erwan Lefebvre.
import Mathlib set_option autoImplicit false
namespace LefebvreVariations
theorem exists_isElliptic_trace_eq_of_sq_add_three_sq_eq_four_mul (p : ℕ) [Fact p.Prime] (t m : ℤ)
(h : t ^ 2 + 3 * m ^ 2 = 4 * p) :
∃ E : WeierstrassCurve (ZMod p), E.IsElliptic ∧
(p : ℤ) + 1 - (Nat.card E.toAffine.Point : ℤ) = t := by sorry
end LefebvreVariations