Lefebvre's variations, No. 225 — on a theme by Deuring and Waterhouse: a curve over with trace whenever (the CM family)
ProvedLefebvreVariations.exists_isElliptic_trace_eq_two_mul_of_sq_add_sqLefebvre's variations — posed by Erwan Lefebvre.
Let be a prime and let with (so or , and may be taken of either sign and in either order). Then there exists an elliptic curve with
that is, with Frobenius trace . Since and may be swapped and negated, this gives the four traces .
Classical proof: in with ; the twists , , of the curve with have Frobenius times a unit, so their traces are (Gauss; the point count is a quartic Jacobsthal / Jacobi sum). The full statement of Deuring's theorem is about all with ; this is the part that the single CM field gives, here .
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 such that for every representation (that is, for all integers ); 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_two_mul_of_sq_add_sq (p : ℕ) [Fact p.Prime] (a b : ℤ)
(hab : a ^ 2 + b ^ 2 = p) :
∃ E : WeierstrassCurve (ZMod p), E.IsElliptic ∧
(p : ℤ) + 1 - (Nat.card E.toAffine.Point : ℤ) = 2 * a := by sorry
end LefebvreVariations