Skip to content

Commit fdfa994

Browse files
Replace deprecated NoZeroSMulDivisors.iff_algebraMap_injective with Module.isTorsionFree_iff_algebraMap_injective
1 parent a7e8600 commit fdfa994

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

FltRegular/NumberTheory/Hilbert94.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ theorem Ideal.isPrincipal_pow_finrank_of_isPrincipal_map [IsDedekindDomain A] {I
9191
refine Function.Injective.of_comp (f := algebraMap B L) ?_
9292
rw [← RingHom.coe_comp, ← IsScalarTower.algebraMap_eq, IsScalarTower.algebraMap_eq A K L]
9393
exact (algebraMap K L).injective.comp (IsFractionRing.injective _ _)
94-
rw [← NoZeroSMulDivisors.iff_algebraMap_injective] at hAB
94+
rw [← Module.isTorsionFree_iff_algebraMap_injective] at hAB
9595
letI : Algebra (FractionRing A) (FractionRing B) := FractionRing.liftAlgebra _ _
9696
have : IsScalarTower A (FractionRing A) (FractionRing B) :=
9797
FractionRing.isScalarTower_liftAlgebra _ _

FltRegular/NumberTheory/Unramified.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ lemma prod_primesOverFinset_of_isUnramified [IsUnramified R S] [IsDedekindDomain
4848
∏ P ∈ primesOverFinset p S, P = p.map (algebraMap R S) := by
4949
classical
5050
have hpbot' : p.map (algebraMap R S) ≠ ⊥ := (Ideal.map_eq_bot_iff_of_injective
51-
(NoZeroSMulDivisors.iff_algebraMap_injective.mp inferInstance)).not.mpr hp
51+
(Module.isTorsionFree_iff_algebraMap_injective.mp inferInstance)).not.mpr hp
5252
rw [← associated_iff_eq.mp (factors_pow_count_prod hpbot')]
5353
apply Finset.prod_congr rfl
5454
intros P hP
@@ -70,7 +70,7 @@ lemma comap_map_eq_of_isUnramified [IsGalois K L] [IsUnramified R S] (I : Ideal
7070
refine Function.Injective.of_comp (f := algebraMap S L) ?_
7171
rw [← RingHom.coe_comp, ← IsScalarTower.algebraMap_eq, IsScalarTower.algebraMap_eq R K L]
7272
exact (algebraMap K L).injective.comp (IsFractionRing.injective _ _)
73-
have := NoZeroSMulDivisors.iff_algebraMap_injective.mpr hRS
73+
have := Module.isTorsionFree_iff_algebraMap_injective.mpr hRS
7474
by_cases hIbot : I = ⊥
7575
· rw [hIbot, Ideal.comap_bot_of_injective _ hRS, Ideal.map_bot]
7676
have h1 : Algebra.IsIntegral R S := IsIntegralClosure.isIntegral_algebra R L
@@ -149,7 +149,7 @@ lemma isUnramifiedAt_of_Separable_minpoly' [Algebra.IsSeparable K L]
149149
refine Function.Injective.of_comp (f := algebraMap S L) ?_
150150
rw [← RingHom.coe_comp, ← IsScalarTower.algebraMap_eq, IsScalarTower.algebraMap_eq R K L]
151151
exact (algebraMap K L).injective.comp (IsFractionRing.injective _ _)
152-
have := NoZeroSMulDivisors.iff_algebraMap_injective.mpr hRS
152+
have := Module.isTorsionFree_iff_algebraMap_injective.mpr hRS
153153
have := IsIntegralClosure.isNoetherian R K L S
154154
have := IsIntegralClosure.isDedekindDomain R K L S
155155
have := IsIntegralClosure.isFractionRing_of_finite_extension R K L S

0 commit comments

Comments
 (0)