The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V10. Commutative algebra II: valuations, Dedekind domains, local algebra

Mathlib.RingTheory.RamificationInertia.Ramification

25 declarations and 15 deprecated aliases. Mathlib docs · Source

Ramification index

Let S/R be an extension of rings, and let q be a prime ideal of S lying over a prime ideal p of R. Let Sq be the localization of S and q, and let pSq be the image of p in Sq. Then the ramification index of q over R is defined to be the length of the quotient Sq/pSq as an Sq-module.

Main definitions

  • Ideal.ramificationIdx q R: The ramification index of q over R.

Main statements

  • ramificationIdx'_eq_ramificationIdx: The ramification index agrees with the usual definition in the case of Dedekind domains.
  • ramificationIdx_tower: Ramification index is multiplicative in towers.

def Ideal.ramificationIdx E3 #

{S : Type u_1} → [inst : CommRing S] → Ideal S → (R : Type u_2) → [inst_1 : CommRing R] → [Algebra R S] → ℕ

Let S/R be an extension of rings, and let q be a prime ideal of S lying over a prime ideal p of R. Let Sq be the localization of S and q, and let pSq be the image of p in Sq. Then the ramification index of q over R is defined to be the length of the quotient Sq/pSq as an Sq-module.

When q is not prime, we use a junk value of 0.

This will eventually replace the existing definition of Ideal.ramificationIdx'.

theorem Ideal.ramificationIdx_def E0 #

∀ {S : Type u_1} [inst : CommRing S] (q : Ideal S) (R : Type u_2) [inst_1 : CommRing R] [inst_2 : Algebra R S]
  [inst_3 : q.IsPrime],
  q.ramificationIdx R =
    (Module.length (Localization.AtPrime q)
        (Localization.AtPrime q ⧸ Ideal.map (algebraMap R (Localization.AtPrime q)) (Ideal.under R q))).toNat

theorem Ideal.ramificationIdx_of_not_isPrime E1 #

∀ {S : Type u_1} [inst : CommRing S] (q : Ideal S) (R : Type u_2) [inst_1 : CommRing R] [inst_2 : Algebra R S],
  ¬q.IsPrime → q.ramificationIdx R = 0

theorem Ideal.ramificationIdx_eq_one E1 #

∀ {S : Type u_1} [inst : CommRing S] (q : Ideal S) (R : Type u_2) [inst_1 : CommRing R] [inst_2 : Algebra R S]
  [inst_3 : q.IsPrime] [Algebra.EssFiniteType R S] [Algebra.IsUnramifiedAt R q], q.ramificationIdx R = 1

theorem Ideal.ramificationIdx_bot_eq_one E0 #

∀ {S : Type u_1} [inst : CommRing S] (R : Type u_2) [inst_1 : CommRing R] [inst_2 : Algebra R S] [IsDomain S],
  ⊥.ramificationIdx R = 1

The ramification index of the zero ideal is 1.

theorem Ideal.ramificationIdx_eq_one_iff_of_isSeparable E1 #

∀ {S : Type u_1} [inst : CommRing S] {q : Ideal S} {R : Type u_2} [inst_1 : CommRing R] [inst_2 : Algebra R S]
  [inst_3 : q.IsPrime] [Algebra.EssFiniteType R S]
  [inst_5 : Algebra (Localization.AtPrime (Ideal.under R q)) (Localization.AtPrime q)]
  [inst_6 : IsScalarTower R (Localization.AtPrime (Ideal.under R q)) (Localization.AtPrime q)]
  [Algebra.IsSeparable (Ideal.under R q).ResidueField q.ResidueField],
  q.ramificationIdx R = 1 ↔ Algebra.IsUnramifiedAt R q

theorem Ideal.ramificationIdx_eq_one_iff E0 #

∀ {S : Type u_1} [inst : CommRing S] {q : Ideal S} {R : Type u_2} [inst_1 : CommRing R] [inst_2 : Algebra R S]
  [inst_3 : q.IsPrime] [Algebra.EssFiniteType R S] [Algebra.HasSeparableResidueFieldsAt R S (Ideal.under R q)],
  q.ramificationIdx R = 1 ↔ Algebra.IsUnramifiedAt R q

theorem Ideal.ramificationIdx_eq E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] (p : Ideal R)
  (q : Ideal S) [q.LiesOver p] [inst_4 : q.IsPrime],
  q.ramificationIdx R =
    (Module.length (Localization.AtPrime q)
        (Localization.AtPrime q ⧸ Ideal.map (algebraMap R (Localization.AtPrime q)) p)).toNat

theorem Ideal.ramificationIdx_pos_of_mem_minimalPrimes E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] (p : Ideal R)
  (q : Ideal S) [q.LiesOver p] [inst_4 : q.IsPrime],
  q ∈ (Ideal.map (algebraMap R S) p).minimalPrimes →
    ∀ [IsNoetherianRing (Localization.AtPrime q ⧸ Ideal.map (algebraMap R (Localization.AtPrime q)) p)],
      0 < q.ramificationIdx R

theorem Ideal.ramificationIdx_pos_of_isDedekindDomain E2 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] {p : Ideal R}
  (q : Ideal S) [inst_3 : q.IsPrime] [q.LiesOver p],
  Ideal.map (algebraMap R S) p ≠ ⊥ →
    ∀ [Ring.DimensionLEOne S]
      [IsNoetherianRing (Localization.AtPrime q ⧸ Ideal.map (algebraMap R (Localization.AtPrime q)) p)],
      0 < q.ramificationIdx R

This theorem proves positivity of ramificationIdx when S is a Dedekind domain.

In particular, the dimension and Noetherian assumptions hold under [IsDedekindDomain S].

See Ideal.ramificationIdx_pos for a version that holds when S is finite as an R-module.

theorem Ideal.ramificationIdx_pos_of_isDedekindDomain' E2 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] {p : Ideal R}
  (q : Ideal S) [inst_3 : q.IsPrime] [q.LiesOver p],
  p ≠ ⊥ →
    ∀ [FaithfulSMul R S] [Ring.DimensionLEOne S]
      [IsNoetherianRing (Localization.AtPrime q ⧸ Ideal.map (algebraMap R (Localization.AtPrime q)) p)],
      0 < q.ramificationIdx R

This theorem proves positivity of ramificationIdx when S is a Dedekind domain.

In particular, the dimension and Noetherian assumptions hold under [IsDedekindDomain S].

See Ideal.ramificationIdx_pos for a version that holds when S is finite as an R-module.

theorem Ideal.ramificationIdx_pos E2 #

∀ (R : Type u_1) {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] (q : Ideal S)
  [inst_3 : q.IsPrime] [Algebra.IsIntegral R S]
  [IsNoetherianRing (Localization.AtPrime q ⧸ Ideal.map (algebraMap R (Localization.AtPrime q)) (Ideal.under R q))],
  0 < q.ramificationIdx R

This theorem proves positivity of ramificationIdx when S is finite as an R-module.

In particular, the integrality and Noetherian assumptions hold under [Module.Finite R S].

See Ideal.ramificationIdx_pos_of_isDedekindDomain for a version that holds when S is a Dedekind domain.

theorem Ideal.IsDedekindDomain.ramificationIdx_eq_of_map_eq_pow E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] (p : Ideal R)
  (q : Ideal S) [q.LiesOver p] [inst_4 : q.IsPrime] (e : ℕ) [inst_5 : IsDomain (Localization.AtPrime q)]
  [IsDiscreteValuationRing (Localization.AtPrime q)],
  Ideal.map (algebraMap R (Localization.AtPrime q)) p = IsLocalRing.maximalIdeal (Localization.AtPrime q) ^ e →
    q.ramificationIdx R = e

theorem Ideal.IsDedekindDomain.ramificationIdx_eq_normalizedFactors_count E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] (p : Ideal R)
  (q : Ideal S) [inst_3 : IsDedekindDomain S] [q.LiesOver p],
  Ideal.map (algebraMap R S) p ≠ ⊥ →
    q.ramificationIdx R = Multiset.count q (UniqueFactorizationMonoid.normalizedFactors (Ideal.map (algebraMap R S) p))

theorem Ideal.IsDedekindDomain.ramificationIdx_eq_factors_count E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] (p : Ideal R)
  (q : Ideal S) [inst_3 : IsDedekindDomain S] [q.LiesOver p],
  Ideal.map (algebraMap R S) p ≠ ⊥ →
    q.ramificationIdx R = Multiset.count q (UniqueFactorizationMonoid.factors (Ideal.map (algebraMap R S) p))

theorem Ideal.IsDedekindDomain.ramificationIdx_eq_multiplicity E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] (p : Ideal R)
  (q : Ideal S) [IsDedekindDomain S] [q.IsPrime] [q.LiesOver p],
  Ideal.map (algebraMap R S) p ≠ ⊥ → q.ramificationIdx R = multiplicity q (Ideal.map (algebraMap R S) p)

theorem Ideal.ramificationIdx'_eq_ramificationIdx' E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] (p : Ideal R)
  (q : Ideal S) [IsDedekindDomain S] [q.LiesOver p] [hq : q.IsPrime],
  Ideal.map (algebraMap R S) p ≠ ⊥ → p.ramificationIdx' q = q.ramificationIdx R

theorem Ideal.ramificationIdx'_eq_ramificationIdx E3 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] (p : Ideal R)
  (q : Ideal S) [IsDomain R] [IsDedekindDomain S] [Module.IsTorsionFree R S] [q.LiesOver p] [hq : q.IsPrime],
  p ≠ ⊥ → p.ramificationIdx' q = q.ramificationIdx R

theorem Ideal.ramificationIdx_tower' E1 #

∀ {R : Type u_1} {S : Type u_2} {T : Type u_3} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : CommRing T]
  [inst_3 : Algebra R S] [inst_4 : Algebra R T] [inst_5 : Algebra S T] [IsScalarTower R S T] (q : Ideal S) (r : Ideal T)
  [inst_7 : q.IsPrime] [inst_8 : r.IsPrime] [r.LiesOver q]
  [inst_10 : Algebra (Localization.AtPrime q) (Localization.AtPrime r)]
  [IsScalarTower S (Localization.AtPrime q) (Localization.AtPrime r)]
  [Module.Flat (Localization.AtPrime q) (Localization.AtPrime r)],
  r.ramificationIdx R = q.ramificationIdx R * r.ramificationIdx S

See ramificationIdx_tower for a version that does not assume primality.

theorem Ideal.ramificationIdx_tower E3 #

∀ {R : Type u_1} {S : Type u_2} {T : Type u_3} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : CommRing T]
  [inst_3 : Algebra R S] [inst_4 : Algebra R T] [inst_5 : Algebra S T] [IsScalarTower R S T] (q : Ideal S) (r : Ideal T)
  [r.LiesOver q] [Module.Flat S T], r.ramificationIdx R = q.ramificationIdx R * r.ramificationIdx S

See ramificationIdx_tower' for a version that only assumes local flatness.

theorem Ideal.ramificationIdx_below_dvd E1 #

∀ {R : Type u_1} {S : Type u_2} {T : Type u_3} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : CommRing T]
  [inst_3 : Algebra R S] [inst_4 : Algebra R T] [inst_5 : Algebra S T] [IsScalarTower R S T] (q : Ideal S) (r : Ideal T)
  [r.LiesOver q] [Module.Flat S T], q.ramificationIdx R ∣ r.ramificationIdx R

theorem Ideal.ramificationIdx_above_dvd E1 #

∀ {R : Type u_1} {S : Type u_2} {T : Type u_3} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : CommRing T]
  [inst_3 : Algebra R S] [inst_4 : Algebra R T] [inst_5 : Algebra S T] [IsScalarTower R S T] (q : Ideal S) (r : Ideal T)
  [r.LiesOver q] [Module.Flat S T], r.ramificationIdx S ∣ r.ramificationIdx R

theorem Ideal.ramificationIdx_below_le E1 #

∀ {R : Type u_1} {S : Type u_2} {T : Type u_3} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : CommRing T]
  [inst_3 : Algebra R S] [inst_4 : Algebra R T] [inst_5 : Algebra S T] [IsScalarTower R S T] (q : Ideal S) (r : Ideal T)
  [r.IsPrime] [r.LiesOver q] [Module.Finite R T] [Module.Flat S T], q.ramificationIdx R ≤ r.ramificationIdx R

theorem Ideal.ramificationIdx_above_le E1 #

∀ {R : Type u_1} {S : Type u_2} {T : Type u_3} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : CommRing T]
  [inst_3 : Algebra R S] [inst_4 : Algebra R T] [inst_5 : Algebra S T] [IsScalarTower R S T] (q : Ideal S) (r : Ideal T)
  [r.IsPrime] [r.LiesOver q] [Module.Finite R T] [Module.Flat S T], r.ramificationIdx S ≤ r.ramificationIdx R

theorem Ideal.ramificationIdx_smul E0 #

∀ (R : Type u_1) {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] (q : Ideal S)
  {G : Type u_4} [inst_3 : Group G] [inst_4 : MulSemiringAction G S] [SMulCommClass G R S] (g : G),
  (g • q).ramificationIdx R = q.ramificationIdx R

Deprecated aliases

NameNew nameSince
Ideal.ramificationIdx'_above_dvdIdeal.ramificationIdx_above_dvd2026-07-01
Ideal.ramificationIdx'_above_leIdeal.ramificationIdx_above_le2026-07-01
Ideal.ramificationIdx'_below_dvdIdeal.ramificationIdx_below_dvd2026-07-01
Ideal.ramificationIdx'_below_leIdeal.ramificationIdx_below_le2026-07-01
Ideal.ramificationIdx'_defIdeal.ramificationIdx_def2026-07-01
Ideal.ramificationIdx'_eqIdeal.ramificationIdx_eq2026-07-01
Ideal.ramificationIdx'_eq_oneIdeal.ramificationIdx_eq_one2026-07-01
Ideal.ramificationIdx'_eq_one_iffIdeal.ramificationIdx_eq_one_iff2026-07-01
Ideal.ramificationIdx'_of_not_isPrimeIdeal.ramificationIdx_of_not_isPrime2026-07-01
Ideal.ramificationIdx'_posIdeal.ramificationIdx_pos2026-07-01
Ideal.ramificationIdx'_smulIdeal.ramificationIdx_smul2026-07-01
Ideal.ramificationIdx'_towerIdeal.ramificationIdx_tower2026-07-01
Ideal.ramificationIdx'_tower'Ideal.ramificationIdx_tower'2026-07-01
Ideal.ramificationIdx_eq_ramificationIdx'Ideal.ramificationIdx'_eq_ramificationIdx2026-07-01
Ideal.ramificationIdx_eq_ramificationIdx''Ideal.ramificationIdx'_eq_ramificationIdx'2026-07-01