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 / V12. Number theory

Mathlib.NumberTheory.RamificationInertia.Ramification

30 declarations and 25 deprecated aliases. Mathlib docs · Source

Ramification index

Given P : Ideal S lying over p : Ideal R for the ring extension f : R →+* S (assuming P and p are prime or maximal where needed), the ramification index Ideal.ramificationIdx' p P is the multiplicity of P in map f p.

Implementation notes

Often the above theory is set up in the case where:

  • R is the ring of integers of a number field K,
  • L is a finite separable extension of K,
  • S is the integral closure of R in L,
  • p and P are maximal ideals,
  • P is an ideal lying over p.

We will try to relax the above hypotheses as much as possible.

Notation

In this file, e stands for the ramification index of P over p, leaving p and P implicit.

def Ideal.ramificationIdx' E1 #

{R : Type u} → [inst : CommRing R] → {S : Type v} → [inst_1 : CommRing S] → [Algebra R S] → Ideal R → Ideal S → ℕ

The ramification index of P over p is the largest exponent n such that p is contained in P^n.

In particular, if p is not contained in P^n, then the ramification index is 0.

If there is no largest such n (e.g. because p = ⊥), then ramificationIdx' is defined to be 0.

Note: This definition of ramification index will eventually be replaced by Ideal.ramificationIdx.

theorem Ideal.ramificationIdx'_eq_find E1 #

∀ {R : Type u} [inst : CommRing R] {S : Type v} [inst_1 : CommRing S] [inst_2 : Algebra R S] {p : Ideal R} {P : Ideal S}
  [inst_3 : DecidablePred fun n ↦ ∀ (k : ℕ), Ideal.map (algebraMap R S) p ≤ P ^ k → k ≤ n]
  (h : ∃ n, ∀ (k : ℕ), Ideal.map (algebraMap R S) p ≤ P ^ k → k ≤ n), p.ramificationIdx' P = Nat.find h

theorem Ideal.ramificationIdx'_eq_zero E1 #

∀ {R : Type u} [inst : CommRing R] {S : Type v} [inst_1 : CommRing S] [inst_2 : Algebra R S] {p : Ideal R}
  {P : Ideal S}, (∀ (n : ℕ), ∃ k, Ideal.map (algebraMap R S) p ≤ P ^ k ∧ n < k) → p.ramificationIdx' P = 0

theorem Ideal.ramificationIdx'_spec E1 #

∀ {R : Type u} [inst : CommRing R] {S : Type v} [inst_1 : CommRing S] [inst_2 : Algebra R S] {p : Ideal R} {P : Ideal S}
  {n : ℕ}, Ideal.map (algebraMap R S) p ≤ P ^ n → ¬Ideal.map (algebraMap R S) p ≤ P ^ (n + 1) → p.ramificationIdx' P = n

theorem Ideal.ramificationIdx'_lt E1 #

∀ {R : Type u} [inst : CommRing R] {S : Type v} [inst_1 : CommRing S] [inst_2 : Algebra R S] {p : Ideal R} {P : Ideal S}
  {n : ℕ}, ¬Ideal.map (algebraMap R S) p ≤ P ^ n → p.ramificationIdx' P < n

theorem Ideal.ramificationIdx'_bot E0 #

∀ {R : Type u} [inst : CommRing R] {S : Type v} [inst_1 : CommRing S] [inst_2 : Algebra R S] {P : Ideal S},
  ⊥.ramificationIdx' P = 0

theorem Ideal.ramificationIdx'_of_not_le E0 #

∀ {R : Type u} [inst : CommRing R] {S : Type v} [inst_1 : CommRing S] [inst_2 : Algebra R S] {p : Ideal R}
  {P : Ideal S}, ¬Ideal.map (algebraMap R S) p ≤ P → p.ramificationIdx' P = 0

theorem Ideal.ramificationIdx'_bot' E1 #

∀ {R : Type u} [inst : CommRing R] {S : Type v} [inst_1 : CommRing S] [inst_2 : Algebra R S] {p : Ideal R},
  p ≠ ⊥ → Function.Injective ⇑(algebraMap R S) → p.ramificationIdx' ⊥ = 0

theorem Ideal.ramificationIdx'_ne_zero E1 #

∀ {R : Type u} [inst : CommRing R] {S : Type v} [inst_1 : CommRing S] [inst_2 : Algebra R S] {p : Ideal R} {P : Ideal S}
  {e : ℕ},
  e ≠ 0 → Ideal.map (algebraMap R S) p ≤ P ^ e → ¬Ideal.map (algebraMap R S) p ≤ P ^ (e + 1) → p.ramificationIdx' P ≠ 0

theorem Ideal.le_pow_of_le_ramificationIdx' E1 #

∀ {R : Type u} [inst : CommRing R] {S : Type v} [inst_1 : CommRing S] [inst_2 : Algebra R S] {p : Ideal R} {P : Ideal S}
  {n : ℕ}, n ≤ p.ramificationIdx' P → Ideal.map (algebraMap R S) p ≤ P ^ n

theorem Ideal.le_pow_ramificationIdx' E1 #

∀ {R : Type u} [inst : CommRing R] {S : Type v} [inst_1 : CommRing S] [inst_2 : Algebra R S] {p : Ideal R}
  {P : Ideal S}, Ideal.map (algebraMap R S) p ≤ P ^ p.ramificationIdx' P

theorem Ideal.le_comap_pow_ramificationIdx' E1 #

∀ {R : Type u} [inst : CommRing R] {S : Type v} [inst_1 : CommRing S] [inst_2 : Algebra R S] {p : Ideal R}
  {P : Ideal S}, p ≤ Ideal.comap (algebraMap R S) (P ^ p.ramificationIdx' P)

theorem Ideal.le_comap_of_ramificationIdx'_ne_zero E1 #

∀ {R : Type u} [inst : CommRing R] {S : Type v} [inst_1 : CommRing S] [inst_2 : Algebra R S] {p : Ideal R}
  {P : Ideal S}, p.ramificationIdx' P ≠ 0 → p ≤ Ideal.comap (algebraMap R S) P

theorem Ideal.ramificationIdx'_comap_eq E0 #

∀ {R : Type u} [inst : CommRing R] {S : Type v} [inst_1 : CommRing S] [inst_2 : Algebra R S] (p : Ideal R)
  {S₁ : Type u_1} [inst_3 : CommRing S₁] [inst_4 : Algebra R S₁] (e : S ≃ₐ[R] S₁) (P : Ideal S₁),
  p.ramificationIdx' (Ideal.comap e P) = p.ramificationIdx' P

theorem Ideal.ramificationIdx'_map_eq E0 #

∀ {R : Type u} [inst : CommRing R] {S : Type v} [inst_1 : CommRing S] [inst_2 : Algebra R S] (p : Ideal R)
  {S₁ : Type u_1} [inst_3 : CommRing S₁] [inst_4 : Algebra R S₁] {E : Type u_2} [inst_5 : EquivLike E S S₁]
  [AlgEquivClass E R S S₁] (P : Ideal S) (e : E), p.ramificationIdx' (Ideal.map e P) = p.ramificationIdx' P

theorem Ideal.ramificationIdx'_ne_one_iff E0 #

∀ {R : Type u} [inst : CommRing R] {S : Type v} [inst_1 : CommRing S] [inst_2 : Algebra R S] {p : Ideal R}
  {P : Ideal S}, Ideal.map (algebraMap R S) p ≤ P → (p.ramificationIdx' P ≠ 1 ↔ Ideal.map (algebraMap R S) p ≤ P ^ 2)

theorem Ideal.ramificationIdx'_eq_one_of_map_localization E1 #

∀ {R : Type u} [inst : CommRing R] {S : Type v} [inst_1 : CommRing S] [inst_2 : Algebra R S] {p : Ideal R} {P : Ideal S}
  [inst_3 : P.IsPrime] [IsNoetherianRing S],
  Ideal.map (algebraMap R S) p ≤ P →
    P ≠ ⊥ →
      P.primeCompl ≤ nonZeroDivisors S →
        Ideal.map (algebraMap R (Localization.AtPrime P)) p = IsLocalRing.maximalIdeal (Localization.AtPrime P) →
          p.ramificationIdx' P = 1

The converse is true when S is a Dedekind domain. See Ideal.ramificationIdx'_eq_one_iff_of_isDedekindDomain.

theorem Ideal.ramificationIdx'_map_self_eq_one E1 #

∀ {R : Type u} [inst : CommRing R] {S : Type v} [inst_1 : CommRing S] [inst_2 : Algebra R S] {p : Ideal R}
  [IsDedekindDomain S],
  Ideal.map (algebraMap R S) p ≠ ⊤ →
    Ideal.map (algebraMap R S) p ≠ ⊥ → p.ramificationIdx' (Ideal.map (algebraMap R S) p) = 1

theorem Ideal.ramificationIdx'_le_ramificationIdx' E1 #

∀ {R : Type u} [inst : CommRing R] {S : Type v} [inst_1 : CommRing S] [inst_2 : Algebra R S] (p : Ideal R) (P : Ideal S)
  {T : Type u_2} [inst_3 : CommRing T] [inst_4 : Algebra R T] [inst_5 : Algebra S T] [IsScalarTower R S T]
  (Q : Ideal T),
  p = Ideal.comap (algebraMap R S) P → p.ramificationIdx' Q ≠ 0 → P.ramificationIdx' Q ≤ p.ramificationIdx' Q

theorem Ideal.IsDedekindDomain.ramificationIdx'_eq_normalizedFactors_count E1 #

∀ {R : Type u} [inst : CommRing R] {S : Type v} [inst_1 : CommRing S] [inst_2 : Algebra R S] {p : Ideal R} {P : Ideal S}
  [inst_3 : IsDedekindDomain S],
  Ideal.map (algebraMap R S) p ≠ ⊥ →
    P.IsPrime →
      P ≠ ⊥ →
        p.ramificationIdx' P =
          Multiset.count P (UniqueFactorizationMonoid.normalizedFactors (Ideal.map (algebraMap R S) p))

theorem Ideal.IsDedekindDomain.ramificationIdx'_eq_multiplicity E1 #

∀ {R : Type u} [inst : CommRing R] {S : Type v} [inst_1 : CommRing S] [inst_2 : Algebra R S] {p : Ideal R} {P : Ideal S}
  [IsDedekindDomain S],
  Ideal.map (algebraMap R S) p ≠ ⊥ → P.IsPrime → p.ramificationIdx' P = multiplicity P (Ideal.map (algebraMap R S) p)

theorem Ideal.IsDedekindDomain.ramificationIdx'_eq_factors_count E1 #

∀ {R : Type u} [inst : CommRing R] {S : Type v} [inst_1 : CommRing S] [inst_2 : Algebra R S] {p : Ideal R} {P : Ideal S}
  [inst_3 : IsDedekindDomain S],
  Ideal.map (algebraMap R S) p ≠ ⊥ →
    P.IsPrime →
      P ≠ ⊥ → p.ramificationIdx' P = Multiset.count P (UniqueFactorizationMonoid.factors (Ideal.map (algebraMap R S) p))

theorem Ideal.IsDedekindDomain.ramificationIdx'_ne_zero E1 #

∀ {R : Type u} [inst : CommRing R] {S : Type v} [inst_1 : CommRing S] [inst_2 : Algebra R S] {p : Ideal R} {P : Ideal S}
  [IsDedekindDomain S],
  Ideal.map (algebraMap R S) p ≠ ⊥ → P.IsPrime → Ideal.map (algebraMap R S) p ≤ P → p.ramificationIdx' P ≠ 0

theorem Ideal.IsDedekindDomain.ramificationIdx'_ne_zero_of_liesOver E1 #

∀ {R : Type u} [inst : CommRing R] {S : Type v} [inst_1 : CommRing S] [inst_2 : Algebra R S] [IsDedekindDomain S]
  [IsDomain R] [Module.IsTorsionFree R S] (P : Ideal S) [hP : P.IsPrime] {p : Ideal R},
  p ≠ ⊥ → ∀ [hPp : P.LiesOver p], p.ramificationIdx' P ≠ 0

theorem Ideal.IsDedekindDomain.ramificationIdx'_eq_one_iff E0 #

∀ {R : Type u} [inst : CommRing R] {S : Type v} [inst_1 : CommRing S] [inst_2 : Algebra R S] [IsDedekindDomain S]
  {p : Ideal R} {P : Ideal S} [inst_4 : P.IsPrime],
  P ≠ ⊥ →
    Ideal.map (algebraMap R S) p ≤ P →
      (p.ramificationIdx' P = 1 ↔
        Ideal.map (algebraMap R (Localization.AtPrime P)) p = IsLocalRing.maximalIdeal (Localization.AtPrime P))

theorem Ideal.IsDedekindDomain.ramificationIdx'_le_ramificationIdx' E1 #

∀ {R : Type u} [inst : CommRing R] {S : Type v} [inst_1 : CommRing S] [inst_2 : Algebra R S] [IsDedekindDomain S]
  [IsDomain R] [Module.IsTorsionFree R S] {S₀ : Type u_2} [inst_6 : CommRing S₀] [inst_7 : Algebra R S₀]
  [inst_8 : Algebra S₀ S] [IsScalarTower R S₀ S] (p : Ideal R) (P : Ideal S₀) (Q : Ideal S) [Q.LiesOver p]
  [hP : P.LiesOver p] [Q.IsPrime], p ≠ ⊥ → P.ramificationIdx' Q ≤ p.ramificationIdx' Q

theorem Ideal.IsDedekindDomain.emultiplicity_map_eq_zero_of_ne E1 #

∀ {R : Type u} [inst : CommRing R] {S : Type v} [inst_1 : CommRing S] [inst_2 : Algebra R S] [IsDedekindDomain S]
  [IsDedekindDomain R] {v : Ideal R} {w : Ideal S} {p : Ideal R},
  Irreducible v → Prime p → v ≠ p → ∀ [w.LiesOver v], emultiplicity w (Ideal.map (algebraMap R S) p) = 0

theorem Ideal.IsDedekindDomain.emultiplicity_map_eq_ramificationIdx'_mul E1 #

∀ {R : Type u} [inst : CommRing R] {S : Type v} [inst_1 : CommRing S] [inst_2 : Algebra R S] [IsDedekindDomain S]
  [IsDedekindDomain R] [FaithfulSMul R S] {v : Ideal R} {w : Ideal S} {I : Ideal R},
  I ≠ ⊥ →
    Irreducible v →
      Irreducible w →
        w ≠ ⊥ →
          ∀ [w.LiesOver v], emultiplicity w (Ideal.map (algebraMap R S) I) = ↑(v.ramificationIdx' w) * emultiplicity v I

If v is an irreducible ideal of R, w is an irreducible ideal of S lying over v, and I is an ideal of R, then the multiplicity of w in I.map (algebraMap R S) is given by the multiplicity of v in I multiplied by the ramification index of w over v.

theorem Ideal.ramificationIdx'_algebra_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 S T] [inst_5 : Algebra R T] [IsScalarTower R S T] [IsDedekindDomain S]
  [IsDedekindDomain T] {p : Ideal R} {P : Ideal S} {Q : Ideal T} [hpm : P.IsPrime] [hqm : Q.IsPrime],
  Ideal.map (algebraMap S T) P ≠ ⊥ →
    Ideal.map (algebraMap R T) p ≠ ⊥ →
      Ideal.map (algebraMap S T) P ≤ Q → p.ramificationIdx' Q = p.ramificationIdx' P * P.ramificationIdx' Q

Let T / S / R be a tower of algebras, p, P, Q be ideals in R, S, T respectively, and P and Q are prime. If P = Q ∩ S, then e (Q | p) = e (P | p) * e (Q | P).

theorem Ideal.ramificationIdx'_algebra_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 S T] [inst_5 : Algebra R T] [IsScalarTower R S T] [IsDedekindDomain S]
  [IsDedekindDomain T] [IsDomain R] [Module.IsTorsionFree R S] [Module.IsTorsionFree S T] (p : Ideal R) (P : Ideal S)
  (Q : Ideal T) [Q.IsPrime] [Q.LiesOver P] [P.LiesOver p],
  p.ramificationIdx' Q = p.ramificationIdx' P * P.ramificationIdx' Q

Deprecated aliases

NameNew nameSince
Ideal.IsDedekindDomain.emultiplicity_map_eq_ramificationIdx_mulIdeal.IsDedekindDomain.emultiplicity_map_eq_ramificationIdx'_mul2026-07-01
Ideal.IsDedekindDomain.ramificationIdx_eq_one_iffIdeal.IsDedekindDomain.ramificationIdx'_eq_one_iff2026-07-01
Ideal.IsDedekindDomain.ramificationIdx_le_ramificationIdxIdeal.IsDedekindDomain.ramificationIdx'_le_ramificationIdx'2026-07-01
Ideal.IsDedekindDomain.ramificationIdx_ne_zeroIdeal.IsDedekindDomain.ramificationIdx'_ne_zero2026-07-01
Ideal.IsDedekindDomain.ramificationIdx_ne_zero_of_liesOverIdeal.IsDedekindDomain.ramificationIdx'_ne_zero_of_liesOver2026-07-01
Ideal.le_comap_of_ramificationIdx_ne_zeroIdeal.le_comap_of_ramificationIdx'_ne_zero2026-07-01
Ideal.le_comap_pow_ramificationIdxIdeal.le_comap_pow_ramificationIdx'2026-07-01
Ideal.le_pow_of_le_ramificationIdxIdeal.le_pow_of_le_ramificationIdx'2026-07-01
Ideal.le_pow_ramificationIdxIdeal.le_pow_ramificationIdx'2026-07-01
Ideal.ramificationIdx_algebra_towerIdeal.ramificationIdx'_algebra_tower2026-07-01
Ideal.ramificationIdx_algebra_tower'Ideal.ramificationIdx'_algebra_tower'2026-07-01
Ideal.ramificationIdx_botIdeal.ramificationIdx'_bot2026-07-01
Ideal.ramificationIdx_bot'Ideal.ramificationIdx'_bot'2026-07-01
Ideal.ramificationIdx_comap_eqIdeal.ramificationIdx'_comap_eq2026-07-01
Ideal.ramificationIdx_eq_findIdeal.ramificationIdx'_eq_find2026-07-01
Ideal.ramificationIdx_eq_one_of_map_localizationIdeal.ramificationIdx'_eq_one_of_map_localization2026-07-01
Ideal.ramificationIdx_eq_zeroIdeal.ramificationIdx'_eq_zero2026-07-01
Ideal.ramificationIdx_le_ramificationIdxIdeal.ramificationIdx'_le_ramificationIdx'2026-07-01
Ideal.ramificationIdx_ltIdeal.ramificationIdx'_lt2026-07-01
Ideal.ramificationIdx_map_eqIdeal.ramificationIdx'_map_eq2026-07-01
Ideal.ramificationIdx_map_self_eq_oneIdeal.ramificationIdx'_map_self_eq_one2026-07-01
Ideal.ramificationIdx_ne_one_iffIdeal.ramificationIdx'_ne_one_iff2026-07-01
Ideal.ramificationIdx_ne_zeroIdeal.ramificationIdx'_ne_zero2026-07-01
Ideal.ramificationIdx_of_not_leIdeal.ramificationIdx'_of_not_le2026-07-01
Ideal.ramificationIdx_specIdeal.ramificationIdx'_spec2026-07-01