Skip to content

Commit fbaa01c

Browse files
committed
chore(RingTheory/Smooth): demote superseded instance to theorem (#32720)
`Algebra.Smooth.flat_of_isNoetherianRing` is now superseded by `Algebra.Smooth.flat`, so the former does not need to be an `instance`.
1 parent 02a656b commit fbaa01c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Mathlib/RingTheory/Smooth/Flat.lean

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,16 @@ lemma FormallySmooth.flat_of_algHom_of_isNoetherianRing (f : S →ₐ[R] A) (hf
4747
variable (R A)
4848

4949
/-- If `A` is `R`-smooth and `R` is Noetherian, then `A` is `R`-flat. -/
50-
instance Smooth.flat_of_isNoetherianRing [IsNoetherianRing R] [Algebra.Smooth R A] :
50+
theorem Smooth.flat_of_isNoetherianRing [IsNoetherianRing R] [Smooth R A] :
5151
Module.Flat R A := by
5252
obtain ⟨k, f, hf⟩ := (FiniteType.iff_quotient_mvPolynomial'' (R := R) (S := A)).mp inferInstance
5353
exact FormallySmooth.flat_of_algHom_of_isNoetherianRing f hf
5454

5555
/-- Any smooth algebra is flat. -/
56-
instance Smooth.flat [Algebra.Smooth R A] : Module.Flat R A := by
56+
instance Smooth.flat [Smooth R A] : Module.Flat R A := by
5757
obtain ⟨A₀, B₀, _, _, _, _, _, _, _, _, ⟨e⟩⟩ := exists_finiteType ℤ R A
5858
have : IsNoetherianRing A₀ := Algebra.FiniteType.isNoetherianRing ℤ _
59+
have : Module.Flat A₀ B₀ := Smooth.flat_of_isNoetherianRing _ _
5960
exact .of_linearEquiv e.toLinearEquiv
6061

6162
end Algebra

0 commit comments

Comments
 (0)