A rational two-torsion obstruction
OpenLangTrotter.trace_even_of_integral_rootelliptic-curvesnumber-theory
If r is an integral root of x³+Ax+B, then at every odd model-good prime the point (r,0) is nonzero rational two-torsion. Consequently #E(F_p) and a_p are even. This applies to non-CM curves as well.
Preamble
import Mathlib
/-!
Lang–Trotter, non-CM fixed-trace version. Local review draft only.
All definitions below have explicit bodies: no axioms, opaque arithmetic
interfaces, arbitrary trace sequences, or unspecified existential constants.
`realLimit` is totalized; convergence on the intended domain is a separate
KNOWN infrastructure obligation, not an extra Lang–Trotter assumption.
-/
namespace LangTrotter
noncomputable section
-- Integral short equation E : y² = x³ + A*x + B.
def discriminant (A B : ℤ) : ℤ := -16 * (4 * A ^ 3 + 27 * B ^ 2)
def jInvariant (A B : ℤ) : ℚ :=
1728 * (4 * (A : ℚ) ^ 3) / (4 * (A : ℚ) ^ 3 + 27 * (B : ℚ) ^ 2)
-- Exactly the rational geometric-CM j-invariants (class-number-one theorem).
-- This is not the weaker condition End_Q(E) = Z.
def rationalCMJ : Finset ℚ :=
{0, 1728, -3375, 8000, -32768, 54000, 287496, -884736,
-12288000, 16581375, -884736000, -147197952000, -262537412640768000}
def NonCM (A B : ℤ) : Prop := jInvariant A B ∉ rationalCMJ
-- Nat.card avoids requiring a field instance for an arbitrary natural p.
-- At primes p this is exactly 1 + the number of affine solutions over F_p.
-- Values at nonprimes, in particular p=0, have no arithmetic significance.
def pointCount (A B : ℤ) (p : ℕ) : ℕ :=
1 + Nat.card {xy : ZMod p × ZMod p //
xy.2 ^ 2 = xy.1 ^ 3 + (A : ZMod p) * xy.1 + (B : ZMod p)}
def trace (A B : ℤ) (p : ℕ) : ℤ :=
(p : ℤ) + 1 - (pointCount A B p : ℤ)
def ModelGood (A B : ℤ) (p : ℕ) : Prop :=
Nat.Prime p ∧ ¬ (p : ℤ) ∣ discriminant A B
-- The interval is inclusive: primes p ≤ N, not p < N.
def count (A B a : ℤ) (N : ℕ) : ℕ := by
classical
exact ((Finset.range (N + 1)).filter fun p =>
ModelGood A B p ∧ trace A B p = a).card
def primeCount (N : ℕ) : ℕ := by
classical
exact ((Finset.range (N + 1)).filter Nat.Prime).card
def residueCount (A B a : ℤ) (m N : ℕ) : ℕ := by
classical
exact ((Finset.range (N + 1)).filter fun p =>
ModelGood A B p ∧ (trace A B p - a) % (m : ℤ) = 0).card
-- sSup of the singleton consisting of the limit, whenever a limit exists.
-- Off the intended domain this is merely a totalized value, not a claimed limit.
def realLimit (f : ℕ → ℝ) : ℝ :=
sSup {L : ℝ | Filter.Tendsto f Filter.atTop (nhds L)}
def residueRatio (A B a : ℤ) (m : ℕ) (N : ℕ) : ℝ :=
(residueCount A B a m N : ℝ) / (primeCount N : ℝ)
def residueDensity (A B a : ℤ) (m : ℕ) : ℝ :=
realLimit (residueRatio A B a m)
-- Factorials exhaust all finite congruence conditions, including prime powers.
-- A product of distinct small primes would NOT do the same job.
def densitySequence (A B a : ℤ) (n : ℕ) : ℝ :=
(Nat.factorial n : ℝ) * residueDensity A B a (Nat.factorial n)
-- Chebotarev identifies residueDensity with #G(m)_a / #G(m).
-- Thus this is the standard NON-CM constant (2/pi)*lim_m m*#G(m)_a/#G(m),
-- along the divisibility-cofinal sequence m=n!, not a fitted parameter.
def langTrotterConstant (A B a : ℤ) : ℝ :=
(2 / Real.pi) * realLimit (densitySequence A B a)
def normalizedCount (A B a : ℤ) (N : ℕ) : ℝ :=
(count A B a N : ℝ) * Real.log (N : ℝ) / Real.sqrt (N : ℝ)
end
end LangTrotter
Formal statement
namespace LangTrotter
theorem trace_even_of_integral_root (A B r : ℤ)
(hr : r ^ 3 + A * r + B = 0) (p : ℕ)
(hp : ModelGood A B p) (hp2 : p ≠ 2) :
Even (trace A B p) := by sorry
end LangTrotter
Source
S. Lang and H. Trotter, Frobenius distributions in GL2-extensions, LNM 504 (1976), https://doi.org/10.1007/BFb0082087; S. Baier and N. Jones, IMRN 2009, 433–461, Conjecture 1, Remark 1 and equation (17), https://arxiv.org/html/0801.3946
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.