Full torsion bound at an unramified odd Dedekind prime
OpenMazurReduction.dedekind_torsion_card_boundFor an integral Weierstrass model over a Dedekind domain R with fraction field K, good reduction at a height-one prime v with finite residue field bounds the entire K-rational torsion group: it is finite and its cardinality divides that of the special fibre, provided v(p)=exp(-1) for an odd rational prime p. All torsion orders, including multiples of p, are covered. Named downstream consumer: the order-18 elliptic quotient over the real cubic coefficient field, whose chosen unramified prime above 17 has a 21-point special fibre.
Retired because its embedded residue-field type setup caused the generated verification interface to fail. The identical mathematical statement with a published structural type interface replaces it as MazurReduction.dedekind_torsion_card_bound_v2.
import Mathlib
open IsDedekindDomain IsDedekindDomain.HeightOneSpectrum IsLocalRing
open WeierstrassCurve WeierstrassCurve.Affine WithZero
open scoped WeierstrassCurve.Affine
namespace IsDedekindDomain.HeightOneSpectrum
noncomputable instance instFieldQuotientHeightOneIdeal
{R : Type*} [CommRing R] [IsDedekindDomain R] (v : HeightOneSpectrum R) :
Field (R ⧸ v.asIdeal) := Ideal.Quotient.field _
end IsDedekindDomain.HeightOneSpectrum
theorem MazurReduction.dedekind_torsion_card_bound
{R K : Type*} [CommRing R] [IsDedekindDomain R] [Field K]
[DecidableEq K] [Algebra R K] [IsFractionRing R K]
(v : HeightOneSpectrum R) [Finite (R ⧸ v.asIdeal)]
(p : ℕ) [Fact p.Prime] (hp : 2 < p)
(hv : v.valuation K (p : K) = exp (-1 : ℤ))
(W : WeierstrassCurve R) [(W.map (algebraMap R K)).IsElliptic]
[(W.map (algebraMap R (R ⧸ v.asIdeal))).IsElliptic] :
Finite (AddCommGroup.torsion (W.map (algebraMap R K)).toAffine.Point) ∧
Nat.card (AddCommGroup.torsion (W.map (algebraMap R K)).toAffine.Point) ∣
Nat.card (W.map (algebraMap R (R ⧸ v.asIdeal))).toAffine.Point := by sorry