Skip to content

Commit 08af479

Browse files
committed
feat(RingTheory): let B be a faithfully flat A-algebra, then A is a local ring if B is (#39611)
Let `B` be a faithfully flat `A`-algebra, then `A` is a local ring if `B` is.
1 parent 028b72c commit 08af479

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Mathlib/RingTheory/Flat/FaithfullyFlat/Algebra.lean

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,3 +154,16 @@ lemma PrimeSpectrum.comap_surjective_of_faithfullyFlat :
154154
@[deprecated (since := "2025-12-10")]
155155
alias PrimeSpectrum.specComap_surjective_of_faithfullyFlat :=
156156
PrimeSpectrum.comap_surjective_of_faithfullyFlat
157+
158+
section IsLocalRing
159+
160+
variable (A B)
161+
162+
instance Module.FaithfullyFlat.isLocalHom : IsLocalHom (algebraMap A B) :=
163+
IsLocalHom.of_comap_surjective (algebraMap A B) PrimeSpectrum.comap_surjective_of_faithfullyFlat
164+
165+
/-- Let `B` be a faithfully flat `A`-algebra, then `A` is a local ring if `B` is. -/
166+
theorem Module.FaithfullyFlat.isLocalRing [IsLocalRing B] : IsLocalRing A :=
167+
(algebraMap A B).domain_isLocalRing
168+
169+
end IsLocalRing

0 commit comments

Comments
 (0)