Dedekind's different theorem: a prime ramifies iff it divides the different
ProvedFamousTheorems.dedekind_different_ramification_7bDedekind's different theorem. Let be Dedekind domains with finite and torsion-free over , and suppose that the fraction field extension is separable. Let be the different ideal of over . A prime of is unramified over if and only if does not divide .
Dedekind proved this for number fields in 1882. Together with the relation between the different and the discriminant, it shows that the primes of that ramify in are exactly those dividing the discriminant, and so that only finitely many primes ramify.
Formalization note. Mathlib's not_dvd_differentIdeal_iff. differentIdeal A B is the inverse of the dual of under the trace form. The algebra structure of over is the one induced by (FractionRing.liftAlgebra), and separability is stated as a hypothesis under it. Algebra.IsUnramifiedAt A P says that the localization is unramified over : it is formally unramified, so the residue field extension is separable and the ramification index is .
import Mathlib
namespace FamousTheorems
theorem dedekind_different_ramification_7b {A B : Type*} [CommRing A] [CommRing B] [Algebra A B] [IsDomain A] [IsDedekindDomain A]
[IsDedekindDomain B] [Module.IsTorsionFree A B] [Module.Finite A B] (P : Ideal B) [P.IsPrime] :
letI := FractionRing.liftAlgebra A (FractionRing B)
Algebra.IsSeparable (FractionRing A) (FractionRing B) →
(¬P ∣ differentIdeal A B ↔ Algebra.IsUnramifiedAt A P) := by sorry
end FamousTheorems