Skip to content

Commit faaff5e

Browse files
committed
refactor(RingTheory/RamificationInertia/Inertia): swap inertiaDeg and inertiaDeg' (#41325)
This PR swaps `inertiaDeg` and `inertiaDeg'`. Co-authored-by: tb65536 <thomas.l.browning@gmail.com>
1 parent eea4c07 commit faaff5e

14 files changed

Lines changed: 212 additions & 156 deletions

File tree

Mathlib/NumberTheory/NumberField/ClassNumber.lean

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ The way this theorem should be used is to first compute `⌊(M K)⌋₊` and the
143143
to deal with the finite number of primes `p` in the interval. -/
144144
theorem isPrincipalIdealRing_of_isPrincipal_of_pow_le_of_mem_primesOver_of_mem_Icc
145145
(h : ∀ p ∈ Finset.Icc 1 ⌊(M K)⌋₊, p.Prime → ∀ (P : Ideal (𝓞 K)),
146-
P ∈ primesOver (span {(p : ℤ)}) (𝓞 K) → p ^ P.inertiaDeg' ℤ ≤ ⌊(M K)⌋₊ →
146+
P ∈ primesOver (span {(p : ℤ)}) (𝓞 K) → p ^ P.inertiaDeg ℤ ≤ ⌊(M K)⌋₊ →
147147
Submodule.IsPrincipal P) : IsPrincipalIdealRing (𝓞 K) := by
148148
refine isPrincipalIdealRing_of_isPrincipal_of_norm_le_of_isPrime <|
149149
fun ⟨P, HP⟩ hP hPN ↦ ?_
@@ -157,18 +157,18 @@ theorem isPrincipalIdealRing_of_isPrincipal_of_pow_le_of_mem_primesOver_of_mem_I
157157
simpa [h, span_singleton_neg p, ← submodule_span_eq, ← hp] using over_under P
158158
have hspan : span {↑p.natAbs} = span {p} := by
159159
rcases abs_choice p with h | h <;> simp [h]
160-
have hple : p.natAbs ^ P.inertiaDeg' ℤ ≤ ⌊(M K)⌋₊ := by
160+
have hple : p.natAbs ^ P.inertiaDeg ℤ ≤ ⌊(M K)⌋₊ := by
161161
refine le_floor ?_
162162
have : P.IsMaximal := hP.isMaximal (by simpa using HP.2)
163163
have : (span {p}).IsMaximal := (hpprime (.under ℤ P)).isMaximal_span_singleton
164-
simpa only [hspan, ← cast_pow, ← natAbs_pow_inertiaDeg' p P] using hPN
164+
simpa only [hspan, ← cast_pow, ← natAbs_pow_inertiaDeg p P] using hPN
165165
have hpabsprime := Int.prime_iff_natAbs_prime.mp (hpprime (hP.under _))
166166
refine h _ ?_ hpabsprime _ ⟨hP, ?_⟩ hple
167-
· suffices 0 < P.inertiaDeg'by
167+
· suffices 0 < P.inertiaDeg ℤ by
168168
exact Finset.mem_Icc.mpr ⟨hpabsprime.one_le, le_trans (le_pow this) hple⟩
169169
have := (isPrime_of_prime (prime_span_singleton_iff.mpr <|
170170
hpprime (hP.under _))).isMaximal <| by simp [((hpprime (hP.under _))).ne_zero]
171-
exact inertiaDeg'_pos ..
171+
exact inertiaDeg_pos ..
172172
· exact hspan ▸ hlies
173173

174174
/-- Let `K` be a number field such that `K/ℚ` is Galois and let `M K` be the Minkowski bound of `K`.
@@ -183,15 +183,15 @@ to deal with the finite number of primes `p` in the interval. -/
183183
theorem isPrincipalIdealRing_of_isPrincipal_of_lt_or_isPrincipal_of_mem_primesOver_of_mem_Icc
184184
[IsGalois ℚ K] (h : ∀ p ∈ Finset.Icc 1 ⌊(M K)⌋₊, p.Prime →
185185
∃ P ∈ primesOver (span {(p : ℤ)}) (𝓞 K),
186-
⌊(M K)⌋₊ < p ^ P.inertiaDeg' ℤ ∨
186+
⌊(M K)⌋₊ < p ^ P.inertiaDeg ℤ ∨
187187
Submodule.IsPrincipal P) :
188188
IsPrincipalIdealRing (𝓞 K) := by
189189
refine isPrincipalIdealRing_of_isPrincipal_of_pow_le_of_mem_primesOver_of_mem_Icc
190190
(fun p hpmem hp P ⟨hP1, hP2⟩ hple ↦ ?_)
191191
obtain ⟨Q, ⟨hQ1, hQ2⟩, H⟩ := h p hpmem hp
192192
have := (isPrime_of_prime (prime_span_singleton_iff.mpr (prime_iff_prime_int.mp hp))).isMaximal
193193
(by simp [hp.ne_zero])
194-
by_cases h : ⌊(M K)⌋₊ < p ^ P.inertiaDeg'
194+
by_cases h : ⌊(M K)⌋₊ < p ^ P.inertiaDeg ℤ
195195
· linarith
196196
rw [inertiaDeg_eq_of_isGaloisGroup (span {↑p}) Q P (K ≃ₐ[ℚ] K)] at H
197197
obtain ⟨σ, rfl⟩ := exists_smul_eq_of_isGaloisGroup (span ({↑p} : Set ℤ)) Q P (K ≃ₐ[ℚ] K)

Mathlib/NumberTheory/NumberField/Completion/Ramification.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,15 @@ variable (w)
8686
open scoped Classical in
8787
/-- The inertia degree of `w` over `v`. -/
8888
protected noncomputable def inertiaDeg : ℕ :=
89-
if _ : w.1.LiesOver v.1 then (⊥ : Ideal w.Completion).inertiaDeg' v.Completion else 0
89+
if _ : w.1.LiesOver v.1 then (⊥ : Ideal w.Completion).inertiaDeg v.Completion else 0
9090

9191
theorem inertiaDeg_of_liesOver [w.1.LiesOver v.1] :
92-
v.inertiaDeg w = (⊥ : Ideal w.Completion).inertiaDeg' v.Completion := by
92+
v.inertiaDeg w = (⊥ : Ideal w.Completion).inertiaDeg v.Completion := by
9393
simp only [InfinitePlace.inertiaDeg, dif_pos]
9494

9595
theorem inertiaDeg_eq_finrank [w.1.LiesOver v.1] :
9696
v.inertiaDeg w = Module.finrank v.Completion w.Completion := by
97-
rw [inertiaDeg_of_liesOver, Ideal.inertiaDeg'_eq_of_isMaximal ⊥]
97+
rw [inertiaDeg_of_liesOver, Ideal.inertiaDeg_eq_of_isMaximal ⊥]
9898
exact Algebra.finrank_eq_of_equiv_equiv (RingEquiv.quotientBot v.Completion)
9999
(RingEquiv.quotientBot w.Completion) (by ext; simp [RingHom.algebraMap_toAlgebra])
100100

Mathlib/NumberTheory/NumberField/Cyclotomic/Galois.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ theorem mem_zpowers_galEquivZMod_of_mem_stabilizer {σ : Gal(K/ℚ)} (hσ : σ
122122
have h₀ : IsPrimitiveRoot (Ideal.Quotient.mk P hζ.toInteger) n := by
123123
refine hζ.toInteger_isPrimitiveRoot.idealQuotient_mk
124124
(by simpa using IsMaximal.ne_top inferInstance) ?_
125-
rw [← pow_inertiaDeg' p]
125+
rw [← pow_inertiaDeg p]
126126
exact Nat.Coprime.pow_left _ hn
127127
have h₁ := IsFractionRing.stabilizerHom_apply_apply_mk Gal(K/ℚ) (Ideal.span {(p : ℤ)}) P
128128
(ℤ ⧸ span {(p : ℤ)}) (𝓞 K ⧸ P) ⟨σ, hσ⟩ hζ.toInteger

Mathlib/NumberTheory/NumberField/Cyclotomic/Ideal.lean

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ instance liesOver_span_zeta_sub_one : (span {hζ.toInteger - 1}).LiesOver 𝒑 :
9797
rw [span_singleton_le_iff_mem, mem_comap, algebraMap_int_eq, map_natCast]
9898
exact p_mem_span_zeta_sub_one p k hζ
9999

100-
theorem inertiaDeg_span_zeta_sub_one : inertiaDeg' (span {hζ.toInteger - 1}) ℤ = 1 := by
100+
theorem inertiaDeg_span_zeta_sub_one : inertiaDeg (span {hζ.toInteger - 1}) ℤ = 1 := by
101101
have : IsMaximal (span {hζ.toInteger - 1}) := .of_liesOver_isMaximal _ 𝒑
102-
rw [← Nat.pow_right_inj hp.out.one_lt, pow_one, pow_inertiaDeg',
102+
rw [← Nat.pow_right_inj hp.out.one_lt, pow_one, pow_inertiaDeg,
103103
absNorm_span_zeta_sub_one]
104104

105105
attribute [local instance] FractionRing.liftAlgebra in
@@ -156,7 +156,7 @@ theorem eq_span_zeta_sub_one_of_liesOver (P : Ideal (𝓞 K)) [hP₁ : P.IsPrime
156156

157157
include hK in
158158
theorem inertiaDeg_eq_of_prime_pow (P : Ideal (𝓞 K)) [hP₁ : P.IsPrime] [hP₂ : P.LiesOver 𝒑] :
159-
inertiaDeg' P ℤ = 1 := by
159+
inertiaDeg P ℤ = 1 := by
160160
rw [eq_span_zeta_sub_one_of_liesOver p k K hK.zeta_spec P, inertiaDeg_span_zeta_sub_one]
161161

162162
include hK in
@@ -228,7 +228,7 @@ theorem isCoprime_of_not_zeta_sub_one_dvd {x : 𝓞 K} (hx : ¬ hζ.toInteger -
228228
(prime_span_singleton_iff.mpr
229229
hζ.zeta_sub_one_prime').irreducible.gcd_eq_one_iff, dvd_span_singleton, mem_span_singleton]
230230

231-
theorem inertiaDeg_span_zeta_sub_one' : inertiaDeg' (span {hζ.toInteger - 1}) ℤ = 1 := by
231+
theorem inertiaDeg_span_zeta_sub_one' : inertiaDeg (span {hζ.toInteger - 1}) ℤ = 1 := by
232232
rw [← pow_one p] at hK hζ
233233
exact inertiaDeg_span_zeta_sub_one p 0
234234

@@ -259,7 +259,7 @@ theorem eq_span_zeta_sub_one_of_liesOver' (P : Ideal (𝓞 K)) [hP₁ : P.IsPrim
259259

260260
include hK in
261261
theorem inertiaDeg_eq_of_prime (P : Ideal (𝓞 K)) [hP₁ : P.IsPrime] [hP₂ : P.LiesOver 𝒑] :
262-
inertiaDeg' P ℤ = 1 := by
262+
inertiaDeg P ℤ = 1 := by
263263
rw [eq_span_zeta_sub_one_of_liesOver' p K hK.zeta_spec P, inertiaDeg_span_zeta_sub_one']
264264

265265
include hK in
@@ -291,7 +291,7 @@ open NumberField.Ideal Polynomial
291291
variable {m} [NeZero m] [hK : IsCyclotomicExtension {m} ℚ K]
292292

293293
theorem inertiaDeg_eq_of_not_dvd (hm : ¬ p ∣ m) :
294-
inertiaDeg' P ℤ = orderOf (p : ZMod m) := by
294+
inertiaDeg P ℤ = orderOf (p : ZMod m) := by
295295
replace hm : p.Coprime m := hp.out.coprime_iff_not_dvd.mpr hm
296296
let ζ := (zeta_spec m ℚ K).toInteger
297297
have h₁ : ¬ p ∣ exponent ζ := by
@@ -427,7 +427,7 @@ theorem ramificationIdxIn_eq (hn : n = p ^ (k + 1) * m) (hm : ¬ p ∣ m) :
427427
(inertiaDegIn_ramificationIdxIn_aux n K hn hm).2
428428

429429
theorem inertiaDeg_eq (hn : n = p ^ (k + 1) * m) (hm : ¬ p ∣ m) :
430-
inertiaDeg' P ℤ = orderOf (p : ZMod m) := by
430+
inertiaDeg P ℤ = orderOf (p : ZMod m) := by
431431
have : IsGalois ℚ K := isGalois {n} ℚ K
432432
rw [← inertiaDegIn_eq_inertiaDeg 𝒑 P Gal(K/ℚ), inertiaDegIn_eq n K hn hm]
433433

Mathlib/NumberTheory/NumberField/Discriminant/Different.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ lemma not_dvd_discr_iff_forall_liesOver [IsIntegralClosure 𝒪 ℤ K] {p : ℤ}
189189
exact ⟨P, hP, ⟨h₁.symm⟩, h₂⟩
190190
· rintro ⟨P, hP, hP', hP''⟩
191191
have := Ideal.absNorm_dvd_absNorm_of_le (Ideal.dvd_iff_le.mp hP'')
192-
rw [absNorm_differentIdeal K, ← Ideal.natAbs_pow_inertiaDeg' p,
192+
rw [absNorm_differentIdeal K, ← Ideal.natAbs_pow_inertiaDeg p,
193193
← Int.natAbs_pow, Int.natAbs_dvd_natAbs] at this
194-
exact (dvd_pow_self _ (Ideal.inertiaDeg'_pos ..).ne').trans this
194+
exact (dvd_pow_self _ (Ideal.inertiaDeg_pos ..).ne').trans this
195195

196196
/-- A prime `p` does not divide `discr K` if and only if `p` (as the ideal `span {p}`) is
197197
unramified in the ring of integers `𝒪`.

Mathlib/NumberTheory/NumberField/Ideal/KummerDedekind.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ The residual degree of the ideal corresponding to the class of `Q ∈ ℤ[X]` mo
209209
-/
210210
theorem inertiaDeg_primesOverSpanEquivMonicFactorsMod_symm_apply (hp : ¬ p ∣ exponent θ)
211211
{Q : ℤ[X]} (hQ : Q.map (Int.castRingHom (ZMod p)) ∈ monicFactorsMod θ p) :
212-
inertiaDeg' ((primesOverSpanEquivMonicFactorsMod hp).symm
212+
inertiaDeg ((primesOverSpanEquivMonicFactorsMod hp).symm
213213
⟨Q.map (Int.castRingHom (ZMod p)), hQ⟩ : Ideal (𝓞 K)) ℤ =
214214
natDegree (Q.map (Int.castRingHom (ZMod p))) := by
215215
-- This is needed for `inertiaDeg_algebraMap` below to work
@@ -218,14 +218,14 @@ theorem inertiaDeg_primesOverSpanEquivMonicFactorsMod_symm_apply (hp : ¬ p ∣
218218
apply Ideal.primesOver.isMaximal
219219
have := liesOver_primesOverSpanEquivMonicFactorsMod_symm hp hQ
220220
rw [primesOverSpanEquivMonicFactorsMod_symm_apply_eq_span,
221-
inertiaDeg'_eq_of_isMaximal (span {(p : ℤ)}),
221+
inertiaDeg_eq_of_isMaximal (span {(p : ℤ)}),
222222
← finrank_quotient_span_eq_natDegree]
223223
refine Algebra.finrank_eq_of_equiv_equiv (Int.quotientSpanNatEquivZMod p) ?_ (by ext; simp)
224224
exact (ZModXQuotSpanEquivQuotSpanPair hp hQ).symm
225225

226226
theorem inertiaDeg_primesOverSpanEquivMonicFactorsMod_symm_apply' (hp : ¬ p ∣ exponent θ)
227227
{Q : (ZMod p)[X]} (hQ : Q ∈ monicFactorsMod θ p) :
228-
inertiaDeg'
228+
inertiaDeg
229229
((primesOverSpanEquivMonicFactorsMod hp).symm ⟨Q, hQ⟩ : Ideal (𝓞 K)) ℤ = natDegree Q := by
230230
obtain ⟨S, rfl⟩ := (map_surjective _ (ZMod.ringHom_surjective (Int.castRingHom (ZMod p)))) Q
231231
rw [inertiaDeg_primesOverSpanEquivMonicFactorsMod_symm_apply]

Mathlib/NumberTheory/RamificationInertia/Basic.lean

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -527,8 +527,8 @@ open scoped Classical in
527527
theorem Factors.finrank_pow_ramificationIdx [p.IsMaximal]
528528
(P : (factors (map (algebraMap R S) p)).toFinset) :
529529
finrank (R ⧸ p) (S ⧸ (P : Ideal S) ^ ramificationIdx' p P.1) =
530-
ramificationIdx' p P.1 * inertiaDeg p (P : Ideal S) := by
531-
rw [finrank_prime_pow_ramificationIdx, inertiaDeg_algebraMap]
530+
ramificationIdx' p P.1 * inertiaDeg' p (P : Ideal S) := by
531+
rw [finrank_prime_pow_ramificationIdx, inertiaDeg'_algebraMap]
532532
exacts [Factors.ne_bot p P, NeZero.ne _]
533533

534534
open scoped Classical in
@@ -537,7 +537,7 @@ instance Factors.finiteDimensional_quotient_pow [Module.Finite R S] [p.IsMaximal
537537
FiniteDimensional (R ⧸ p) (S ⧸ (P : Ideal S) ^ ramificationIdx' p P.1) := by
538538
refine .of_finrank_pos ?_
539539
rw [pos_iff_ne_zero, Factors.finrank_pow_ramificationIdx]
540-
exact mul_ne_zero (Factors.ramificationIdx_ne_zero p P) (inertiaDeg_pos p P.1).ne'
540+
exact mul_ne_zero (Factors.ramificationIdx_ne_zero p P) (inertiaDeg'_pos p P.1).ne'
541541

542542
universe w
543543

@@ -595,10 +595,10 @@ here `S` is a finite `R`-module (and thus `Frac(S) : Frac(R)` is a finite extens
595595
is maximal. -/
596596
theorem sum_ramification_inertia {p : Ideal R} [p.IsMaximal] (hp0 : p ≠ ⊥) :
597597
∑ P ∈ IsDedekindDomain.primesOverFinset p S,
598-
ramificationIdx' p P * inertiaDeg p P = finrank K L := by
598+
ramificationIdx' p P * inertiaDeg' p P = finrank K L := by
599599
set e := ramificationIdx' p (S := S)
600600
calc
601-
∑ P ∈ (factors (map (algebraMap R S) p)).toFinset, e P * inertiaDeg p P =
601+
∑ P ∈ (factors (map (algebraMap R S) p)).toFinset, e P * inertiaDeg' p P =
602602
∑ P ∈ (factors (map (algebraMap R S) p)).toFinset.attach,
603603
finrank (R ⧸ p) (S ⧸ (P : Ideal S) ^ e P) := ?_
604604
_ = finrank (R ⧸ p)
@@ -616,7 +616,7 @@ theorem sum_ramification_inertia {p : Ideal R} [p.IsMaximal] (hp0 : p ≠ ⊥) :
616616

617617
theorem inertiaDeg_le_finrank [NoZeroSMulDivisors R S] {p : Ideal R} [p.IsMaximal]
618618
(P : Ideal S) [hP₁ : P.IsPrime] [hP₂ : P.LiesOver p] (hp0 : p ≠ ⊥) :
619-
p.inertiaDeg P ≤ Module.finrank K L := by
619+
p.inertiaDeg' P ≤ Module.finrank K L := by
620620
classical
621621
have hP : P ∈ IsDedekindDomain.primesOverFinset p S :=
622622
(IsDedekindDomain.mem_primesOverFinset_iff hp0 _).mpr ⟨hP₁, hP₂⟩
@@ -634,7 +634,7 @@ theorem ramificationIdx_le_finrank [NoZeroSMulDivisors R S] {p : Ideal R} [p.IsM
634634
(IsDedekindDomain.mem_primesOverFinset_iff hp0 _).mpr ⟨hP₁, hP₂⟩
635635
rw [← sum_ramification_inertia S K L hp0, ← Finset.add_sum_erase _ _ hP]
636636
refine le_trans (Nat.le_mul_of_pos_right _ ?_) (Nat.le_add_right _ _)
637-
exact Nat.pos_iff_ne_zero.mpr <| inertiaDeg_ne_zero p P
637+
exact Nat.pos_iff_ne_zero.mpr <| inertiaDeg'_ne_zero p P
638638

639639
theorem card_primesOverFinset_le_finrank [NoZeroSMulDivisors R S] {p : Ideal R} [p.IsMaximal]
640640
(hp0 : p ≠ ⊥) : Finset.card (IsDedekindDomain.primesOverFinset p S) ≤ Module.finrank K L := by
@@ -644,13 +644,13 @@ theorem card_primesOverFinset_le_finrank [NoZeroSMulDivisors R S] {p : Ideal R}
644644
have : P.LiesOver p := ((IsDedekindDomain.mem_primesOverFinset_iff hp0 _).mp hP).2
645645
refine Right.one_le_mul ?_ ?_
646646
· exact Nat.pos_iff_ne_zero.mpr <| IsDedekindDomain.ramificationIdx'_ne_zero_of_liesOver _ hp0
647-
· exact Nat.pos_iff_ne_zero.mpr <| inertiaDeg_ne_zero p P
647+
· exact Nat.pos_iff_ne_zero.mpr <| inertiaDeg'_ne_zero p P
648648

649649
/-- `Ideal.sum_ramification_inertia`, in the local (DVR) case. -/
650650
lemma ramificationIdx_mul_inertiaDeg_of_isLocalRing [IsLocalRing S] {p : Ideal R} [p.IsMaximal]
651651
(hp0 : p ≠ ⊥) :
652652
ramificationIdx' p (IsLocalRing.maximalIdeal S) *
653-
p.inertiaDeg (IsLocalRing.maximalIdeal S) = Module.finrank K L := by
653+
p.inertiaDeg' (IsLocalRing.maximalIdeal S) = Module.finrank K L := by
654654
have := FaithfulSMul.of_field_isFractionRing R S K L
655655
simp_rw [← sum_ramification_inertia S K L hp0, IsLocalRing.primesOverFinset_eq S hp0,
656656
Finset.sum_singleton]

Mathlib/NumberTheory/RamificationInertia/Galois.lean

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ open scoped Classical in
6767
maximal ideal `p` of `A` are the same, which we define as `Ideal.inertiaDegIn`. -/
6868
noncomputable def inertiaDegIn {A : Type*} [CommRing A] (p : Ideal A)
6969
(B : Type*) [CommRing B] [Algebra A B] : ℕ :=
70-
if h : ∃ P : Ideal B, P.IsPrime ∧ P.LiesOver p then h.choose.inertiaDeg' A else 0
70+
if h : ∃ P : Ideal B, P.IsPrime ∧ P.LiesOver p then h.choose.inertiaDeg A else 0
7171

7272
section MulAction
7373

@@ -145,9 +145,9 @@ theorem ramificationIdx_eq_of_isGaloisGroup :
145145
include p G in
146146
/-- All the `Ideal.inertiaDeg` over a fixed maximal ideal are the same. -/
147147
theorem inertiaDeg_eq_of_isGaloisGroup :
148-
P.inertiaDeg' A = Q.inertiaDeg' A := by
148+
P.inertiaDeg A = Q.inertiaDeg A := by
149149
rcases exists_smul_eq_of_isGaloisGroup p P Q G with ⟨σ, rfl⟩
150-
rw [inertiaDeg'_smul]
150+
rw [inertiaDeg_smul]
151151

152152
include p G in
153153
/-- The `ramificationIdxIn` is equal to any ramification index over the same ideal. -/
@@ -168,7 +168,7 @@ theorem ramificationIdxIn_ne_zero [Module.Finite A B] [FaithfulSMul A B] {p : Id
168168
include G in
169169
/-- The `inertiaDegIn` is equal to any ramification index over the same ideal. -/
170170
theorem inertiaDegIn_eq_inertiaDeg :
171-
inertiaDegIn p B = P.inertiaDeg' A := by
171+
inertiaDegIn p B = P.inertiaDeg A := by
172172
have h : ∃ P : Ideal B, P.IsPrime ∧ P.LiesOver p := ⟨P, hPp, hp⟩
173173
obtain ⟨_, _⟩ := h.choose_spec
174174
rw [inertiaDegIn, dif_pos h]
@@ -179,7 +179,7 @@ theorem inertiaDegIn_ne_zero [Module.Finite A B] [FaithfulSMul A B] {p : Ideal A
179179
inertiaDegIn p B ≠ 0 := by
180180
obtain ⟨P⟩ := (inferInstance : Nonempty (primesOver p B))
181181
rw [inertiaDegIn_eq_inertiaDeg p P G]
182-
exact (P.1.inertiaDeg'_pos A).ne'
182+
exact (P.1.inertiaDeg_pos A).ne'
183183

184184
section tower
185185

@@ -194,7 +194,7 @@ theorem inertiaDegIn_mul_inertiaDegIn :
194194
obtain ⟨⟨Q, _, _⟩⟩ := (inferInstance : Nonempty (primesOver P C))
195195
have : Q.LiesOver p := LiesOver.trans Q P p
196196
rw [inertiaDegIn_eq_inertiaDeg p P G, inertiaDegIn_eq_inertiaDeg p Q GAC,
197-
inertiaDegIn_eq_inertiaDeg P Q GBC, ← inertiaDeg'_tower P Q]
197+
inertiaDegIn_eq_inertiaDeg P Q GBC, ← inertiaDeg_tower P Q]
198198

199199
variable {p} in
200200
include G GAC GBC in
@@ -286,7 +286,7 @@ open Algebra
286286
attribute [local instance] Ideal.Quotient.field in
287287
theorem card_stabilizer_eq_card_inertia_mul_finrank (p : Ideal R) [p.IsPrime]
288288
(P : Ideal S) [P.LiesOver p] [P.IsPrime] [PerfectField p.ResidueField] :
289-
Nat.card (MulAction.stabilizer G P) = Nat.card (inertia G P) * P.inertiaDeg' R := by
289+
Nat.card (MulAction.stabilizer G P) = Nat.card (inertia G P) * P.inertiaDeg R := by
290290
let := Localization.AtPrime.algebraOfLiesOver p P
291291
have heq : (algebraMap (S ⧸ P) P.ResidueField).comp (algebraMap (R ⧸ p) (S ⧸ P)) =
292292
(algebraMap p.ResidueField P.ResidueField).comp (algebraMap (R ⧸ p) p.ResidueField) := by
@@ -301,14 +301,14 @@ theorem card_stabilizer_eq_card_inertia_mul_finrank (p : Ideal R) [p.IsPrime]
301301
Ideal.IsFractionRing.finite_of_isInvariant G p P p.ResidueField P.ResidueField
302302
have : Subgroup.index _ = _ := Nat.card_congr
303303
(IsFractionRing.stabilizerQuotientInertiaEquiv G p P p.ResidueField P.ResidueField).toEquiv
304-
rw [inertiaDeg'_eq p P, ← IsGalois.card_aut_eq_finrank p.ResidueField P.ResidueField, ← this,
304+
rw [inertiaDeg_eq p P, ← IsGalois.card_aut_eq_finrank p.ResidueField P.ResidueField, ← this,
305305
← ((inertia G P).subgroupOf (MulAction.stabilizer G P)).card_mul_index,
306306
Nat.card_congr (Subgroup.subgroupOfEquivOfLe (inertia_le_stabilizer (M := G) P)).toEquiv,
307307
AddSubgroup.subgroupOf_inertia]
308308

309309
lemma ncard_primesOver_mul_card_inertia_mul_finrank (p : Ideal R) [p.IsPrime]
310310
(P : Ideal S) [P.LiesOver p] [P.IsPrime] [PerfectField p.ResidueField] :
311-
(p.primesOver S).ncard * Nat.card (P.inertia G) * P.inertiaDeg' R = Nat.card G := by
311+
(p.primesOver S).ncard * Nat.card (P.inertia G) * P.inertiaDeg R = Nat.card G := by
312312
rw [mul_assoc, ← card_stabilizer_eq_card_inertia_mul_finrank p P,
313313
← IsInvariant.orbit_eq_primesOver R S G p P]
314314
simpa using Nat.card_congr (MulAction.orbitProdStabilizerEquivGroup G P)

Mathlib/NumberTheory/RamificationInertia/HilbertTheory.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ private lemma ramificationIdxIn_eq_and_inertiaDegIn_eq (hp : p ≠ ⊥) :
296296
exact 𝓟D.ramificationIdx_above_le P
297297
· rw [inertiaDegIn_eq_inertiaDeg p P Gal(L/K),
298298
inertiaDegIn_eq_inertiaDeg _ P (stabilizer Gal(L/K) P)]
299-
exact inertiaDeg'_above_le 𝓟D P
299+
exact inertiaDeg_above_le 𝓟D P
300300
· have := ncard_primesOver_mul_ramificationIdxIn_mul_inertiaDegIn 𝓟D B (stabilizer Gal(L/K) P)
301301
rw [primesOver_eq_singleton K L P D 𝓞D, Set.ncard_singleton, one_mul] at this
302302
rw [this, IsGaloisGroup.card_eq_finrank (stabilizer Gal(L/K) P) D L,
@@ -339,9 +339,9 @@ Let `D` be the decomposition field of `P` in `L/K`. Let `𝓟D` be a prime ideal
339339
then the inertia degree of `𝓟D` over `K` is equal to `1`.
340340
-/
341341
theorem inertiaDeg_eq (hp : p ≠ ⊥) :
342-
𝓟D.inertiaDeg' A = 1 := by
342+
𝓟D.inertiaDeg A = 1 := by
343343
obtain ⟨_, _, _, _, _, _⟩ := instances A K L P D 𝓞D 𝓟D hp
344-
have := inertiaDeg'_tower (R := A) 𝓟D P
344+
have := inertiaDeg_tower (R := A) 𝓟D P
345345
rwa [← inertiaDegIn_eq_inertiaDeg p P Gal(L/K), ← inertiaDegIn_eq A K L P D 𝓞D 𝓟D hp,
346346
← inertiaDegIn_eq_inertiaDeg 𝓟D P (stabilizer Gal(L/K) P),
347347
right_eq_mul₀ <| inertiaDegIn_ne_zero (stabilizer Gal(L/K) P)] at this

0 commit comments

Comments
 (0)