Good reduction criterion at a prime
ProvedPrimeLocal.not_dvd_discr_iff_hasGoodReductionFor an integral Weierstrass model that is minimal at q, the reduction at q is good if and only if q does not divide the discriminant.
Preamble
import Mathlib import Definitions.Def_EllipticCurve_ZeroComponentAt import Definitions.Def_FLTPrelim_GaloisRep import Definitions.Def_FLTPrelim_Ramification import Definitions.Def_FLTPrelim_CofixedLine set_option synthInstance.maxHeartbeats 400000 set_option backward.isDefEq.respectTransparency.types false open WeierstrassCurve WeierstrassCurve.Affine WeierstrassCurve.Affine.Point open scoped WeierstrassCurve.Affine NNReal
Formal statement
namespace PrimeLocal
theorem not_dvd_discr_iff_hasGoodReduction (W : WeierstrassCurve ℤ) (q : ℕ) [Fact q.Prime] [WeierstrassCurve.IsMinimal ℤ_[q] (W.map (Int.castRingHom ℚ_[q]))] :
(W.map (Int.castRingHom ℚ_[q])).HasGoodReduction ℤ_[q] ↔ ¬ (q : ℤ) ∣ W.Δ := by sorry
end PrimeLocalSource