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 / V10. Commutative algebra II: valuations, Dedekind domains, local algebra

Mathlib.RingTheory.Flat.Basic

70 declarations. Mathlib docs · Source

Flat modules

A module M over a commutative semiring R is mono-flat if for all monomorphisms of modules (i.e., injective linear maps) N →ₗ[R] P, the canonical map N ⊗ M → P ⊗ M is injective (cf. [Katsov2004], [KatsovNam2011]). To show a module is mono-flat, it suffices to check inclusions of finitely generated submodules N into finitely generated modules P, and P can be further assumed to lie in the same universe as R.

M is flat if · ⊗ M preserves finite limits (equivalently, pullbacks, or equalizers). If R is a ring, an R-module M is flat if and only if it is mono-flat, and to show a module is flat, it suffices to check inclusions of finitely generated ideals into R. See https://stacks.math.columbia.edu/tag/00HD.

Currently, Module.Flat is defined to be equivalent to mono-flatness over a semiring. It is left as a TODO item to introduce the genuine flatness over semirings and rename the current Module.Flat to Module.MonoFlat.

Main declaration

  • Module.Flat: the predicate asserting that an R-module M is flat.

Main theorems

  • Module.Flat.of_retract: retracts of flat modules are flat
  • Module.Flat.of_linearEquiv: modules linearly equivalent to a flat module are flat
  • Module.Flat.directSum: arbitrary direct sums of flat modules are flat
  • Module.Flat.of_free: free modules are flat
  • Module.Flat.of_projective: projective modules are flat
  • Module.Flat.preserves_injective_linearMap: If M is a flat module then tensoring with M preserves injectivity of linear maps. This lemma is fully universally polymorphic in all arguments, i.e. R, M and linear maps N → N' can all have different universe levels.
  • Module.Flat.iff_rTensor_preserves_injective_linearMap: a module is flat iff tensoring modules in the higher universe preserves injectivity.
  • Module.Flat.lTensor_exact: If M is a flat module then tensoring with M is an exact functor. This lemma is fully universally polymorphic in all arguments, i.e. R, M and linear maps N → N' → N'' can all have different universe levels.
  • Module.Flat.iff_lTensor_exact: a module is flat iff tensoring modules in the higher universe is an exact functor.

TODO

  • Generalize flatness to noncommutative semirings.

Flatness over a semiring

Flatness over a ring

theorem Submodule.quotEquivOfEq.congr_simp E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] (p p' : Submodule R M)
  (h : p = p'), p.quotEquivOfEq p' h = p.quotEquivOfEq p' h

theorem LinearMap.rTensor_injective_of_fg E1 #

∀ {R : Type u} {M : Type v} {N : Type u_1} {P : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] [inst_3 : AddCommMonoid N] [inst_4 : Module R N] [inst_5 : AddCommMonoid P]
  [inst_6 : Module R P] {f : N →ₗ[R] P},
  (∀ (N' : Submodule R N) (P' : Submodule R P),
      N'.FG → P'.FG → ∀ (h : N' ≤ Submodule.comap f P'), Function.Injective ⇑(LinearMap.rTensor M (f.restrict h))) →
    Function.Injective ⇑(LinearMap.rTensor M f)

theorem LinearMap.rTensor_injective_iff_subtype E1 #

∀ {R : Type u} {M : Type v} {N : Type u_1} {P : Type u_2} {Q : Type u_3} [inst : CommSemiring R]
  [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [inst_3 : AddCommMonoid N] [inst_4 : Module R N]
  [inst_5 : AddCommMonoid P] [inst_6 : Module R P] [inst_7 : AddCommMonoid Q] [inst_8 : Module R Q] {f : N →ₗ[R] P},
  Function.Injective ⇑f →
    ∀ (e : P ≃ₗ[R] Q),
      Function.Injective ⇑(LinearMap.rTensor M f) ↔ Function.Injective ⇑(LinearMap.rTensor M (↑e ∘ₗ f).range.subtype)

class Module.Flat E3 #

(R : Type u) → (M : Type v) → [inst : CommSemiring R] → [inst_1 : AddCommMonoid M] → [Module R M] → Prop

An R-module M is flat if for every finitely generated submodule N of every finitely generated R-module P in the same universe as R, the canonical map N ⊗ M → P ⊗ M is injective. This implies the same is true for arbitrary R-modules N and P and injective linear maps N →ₗ[R] P, see Flat.rTensor_preserves_injective_linearMap. To show a module over a ring R is flat, it suffices to consider the case P = R, see Flat.iff_rTensor_injective.

ctor Module.Flat.mk E0 #

∀ {R : Type u} {M : Type v} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M],
  (∀ ⦃P : Type u⦄ [inst_3 : AddCommMonoid P] [inst_4 : Module R P] [Module.Finite R P] (N : Submodule R P),
      N.FG → Function.Injective ⇑(LinearMap.rTensor M N.subtype)) →
    Module.Flat R M

theorem Module.flat_iff E0 #

∀ (R : Type u) (M : Type v) [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M],
  Module.Flat R M ↔
    ∀ ⦃P : Type u⦄ [inst_3 : AddCommMonoid P] [inst_4 : Module R P] [Module.Finite R P] (N : Submodule R P),
      N.FG → Function.Injective ⇑(LinearMap.rTensor M N.subtype)

theorem Module.Flat.out E1 #

∀ {R : Type u} {M : Type v} {inst : CommSemiring R} {inst_1 : AddCommMonoid M} {inst_2 : Module R M}
  [self : Module.Flat R M] ⦃P : Type u⦄ [inst_3 : AddCommMonoid P] [inst_4 : Module R P] [Module.Finite R P]
  (N : Submodule R P), N.FG → Function.Injective ⇑(LinearMap.rTensor M N.subtype)

theorem Module.Flat.rTensor_preserves_injective_linearMap E1 #

∀ {R : Type u} {M : Type v} {N : Type u_1} {P : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] [inst_3 : AddCommMonoid N] [inst_4 : Module R N] [inst_5 : AddCommMonoid P]
  [inst_6 : Module R P] [Module.Flat R M] (f : N →ₗ[R] P),
  Function.Injective ⇑f → Function.Injective ⇑(LinearMap.rTensor M f)

If M is a flat module, then f ⊗ 𝟙 M is injective for all injective linear maps f.

theorem Module.Flat.lTensor_preserves_injective_linearMap E1 #

∀ {R : Type u} {M : Type v} {N : Type u_1} {P : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] [inst_3 : AddCommMonoid N] [inst_4 : Module R N] [inst_5 : AddCommMonoid P]
  [inst_6 : Module R P] [Module.Flat R M] (f : N →ₗ[R] P),
  Function.Injective ⇑f → Function.Injective ⇑(LinearMap.lTensor M f)

If M is a flat module, then 𝟙 M ⊗ f is injective for all injective linear maps f.

theorem Module.Flat.iff_rTensor_preserves_injective_linearMapₛ E1 #

∀ {R : Type u} {M : Type v} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [Small.{v', u} R],
  Module.Flat R M ↔
    ∀ ⦃N N' : Type v'⦄ [inst_4 : AddCommMonoid N] [inst_5 : AddCommMonoid N'] [inst_6 : Module R N]
      [inst_7 : Module R N'] (f : N →ₗ[R] N'), Function.Injective ⇑f → Function.Injective ⇑(LinearMap.rTensor M f)

M is flat if and only if f ⊗ 𝟙 M is injective whenever f is an injective linear map in a universe that R fits in.

theorem Module.Flat.iff_lTensor_preserves_injective_linearMapₛ E1 #

∀ {R : Type u} {M : Type v} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [Small.{v', u} R],
  Module.Flat R M ↔
    ∀ ⦃N N' : Type v'⦄ [inst_4 : AddCommMonoid N] [inst_5 : AddCommMonoid N'] [inst_6 : Module R N]
      [inst_7 : Module R N'] (f : N →ₗ[R] N'), Function.Injective ⇑f → Function.Injective ⇑(LinearMap.lTensor M f)

M is flat if and only if 𝟙 M ⊗ f is injective whenever f is an injective linear map in a universe that R fits in.

theorem Module.Flat.iff_rTensor_injectiveₛ E1 #

∀ {R : Type u} {M : Type v} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M],
  Module.Flat R M ↔
    ∀ ⦃P : Type u⦄ [inst_3 : AddCommMonoid P] [inst_4 : Module R P] (N : Submodule R P),
      Function.Injective ⇑(LinearMap.rTensor M N.subtype)

An easier-to-use version of Module.flat_iff, with finiteness conditions removed.

theorem Module.Flat.iff_lTensor_injectiveₛ E1 #

∀ {R : Type u} {M : Type v} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M],
  Module.Flat R M ↔
    ∀ ⦃P : Type u⦄ [inst_3 : AddCommMonoid P] [inst_4 : Module R P] (N : Submodule R P),
      Function.Injective ⇑(LinearMap.lTensor M N.subtype)

instance Module.Flat.instSubalgebraToSubmodule E0 #

∀ {R : Type u} [inst : CommSemiring R] {S : Type v} [inst_1 : Semiring S] [inst_2 : Algebra R S] (A : Subalgebra R S)
  [Module.Flat R ↥A], Module.Flat R ↥(Subalgebra.toSubmodule A)

instance Module.Flat.self E0 #

∀ {R : Type u} [inst : CommSemiring R], Module.Flat R R

theorem Module.Flat.of_retract E3 #

∀ {R : Type u} {M : Type v} {N : Type u_1} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : AddCommMonoid N] [inst_4 : Module R N] [f : Module.Flat R M] (i : N →ₗ[R] M) (r : M →ₗ[R] N),
  r ∘ₗ i = LinearMap.id → Module.Flat R N

A retract of a flat R-module is flat.

theorem Module.Flat.of_linearEquiv E3 #

∀ {R : Type u} {M : Type v} {N : Type u_1} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : AddCommMonoid N] [inst_4 : Module R N] [Module.Flat R M] (e : N ≃ₗ[R] M), Module.Flat R N

An R-module linearly equivalent to a flat R-module is flat.

theorem Module.Flat.equiv_iff E0 #

∀ {R : Type u} {M : Type v} {N : Type u_1} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : AddCommMonoid N] [inst_4 : Module R N] (e : M ≃ₗ[R] N), Module.Flat R M ↔ Module.Flat R N

If an R-module M is linearly equivalent to another R-module N, then M is flat if and only if N is flat.

instance Module.Flat.ulift E0 #

∀ {R : Type u} {M : Type v} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [Module.Flat R M],
  Module.Flat R (ULift.{v', v} M)

theorem Module.Flat.of_ulift E1 #

∀ {R : Type u} {M : Type v} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [Module.Flat R (ULift.{v', v} M)], Module.Flat R M

instance Module.Flat.shrink E0 #

∀ {R : Type u} {M : Type v} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : Small.{v', v} M] [Module.Flat R M], Module.Flat R (Shrink.{v', v} M)

theorem Module.Flat.of_shrink E1 #

∀ {R : Type u} {M : Type v} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : Small.{v', v} M] [Module.Flat R (Shrink.{v', v} M)], Module.Flat R M

theorem Module.Flat.directSum_iff E0 #

∀ {R : Type u} [inst : CommSemiring R] {ι : Type v} {M : ι → Type w} [inst_1 : (i : ι) → AddCommMonoid (M i)]
  [inst_2 : (i : ι) → Module R (M i)], Module.Flat R (DirectSum ι fun i ↦ M i) ↔ ∀ (i : ι), Module.Flat R (M i)

theorem Module.Flat.dfinsupp_iff E0 #

∀ {R : Type u} [inst : CommSemiring R] {ι : Type v} {M : ι → Type w} [inst_1 : (i : ι) → AddCommMonoid (M i)]
  [inst_2 : (i : ι) → Module R (M i)], Module.Flat R (Π₀ (i : ι), M i) ↔ ∀ (i : ι), Module.Flat R (M i)

instance Module.Flat.directSum E3 #

∀ {R : Type u} [inst : CommSemiring R] {ι : Type v} {M : ι → Type w} [inst_1 : (i : ι) → AddCommMonoid (M i)]
  [inst_2 : (i : ι) → Module R (M i)] [∀ (i : ι), Module.Flat R (M i)], Module.Flat R (DirectSum ι fun i ↦ M i)

A direct sum of flat R-modules is flat.

instance Module.Flat.dfinsupp E0 #

∀ {R : Type u} [inst : CommSemiring R] {ι : Type v} {M : ι → Type w} [inst_1 : (i : ι) → AddCommMonoid (M i)]
  [inst_2 : (i : ι) → Module R (M i)] [∀ (i : ι), Module.Flat R (M i)], Module.Flat R (Π₀ (i : ι), M i)

instance Module.Flat.finsupp E0 #

∀ {R : Type u} [inst : CommSemiring R] (ι : Type v), Module.Flat R (ι →₀ R)

Free R-modules over discrete types are flat.

instance Module.Flat.of_projective E3 #

∀ {R : Type u} {M : Type v} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [Module.Projective R M], Module.Flat R M

instance Module.Flat.of_free E3 #

∀ {R : Type u} {M : Type v} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [Module.Free R M],
  Module.Flat R M

instance Module.Flat.instTensorProduct E0 #

∀ {R : Type u} {M : Type v} {N : Type u_1} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : AddCommMonoid N] [inst_4 : Module R N] {S : Type u_4} [inst_5 : CommSemiring S] [inst_6 : Algebra R S]
  [inst_7 : Module S M] [inst_8 : IsScalarTower R S M] [Module.Flat S M] [Module.Flat R N],
  Module.Flat S (TensorProduct R M N)

theorem Module.Flat.linearIndependent_one_tmul E1 #

∀ {R : Type u} {M : Type v} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {S : Type u_4}
  [inst_3 : Semiring S] [inst_4 : Algebra R S] [Module.Flat R S] {ι : Type u_5} {v : ι → M},
  LinearIndependent R v → LinearIndependent S fun x ↦ 1 ⊗ₜ[R] v x

theorem Module.Flat.tensorProduct_mk_injective E1 #

∀ (R : Type u) (M : Type v) [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] (S : Type u_4)
  [inst_3 : Semiring S] [inst_4 : Algebra R S] [FaithfulSMul R S] [Module.Flat R M],
  Function.Injective ⇑((TensorProduct.mk R S M) 1)

See also Module.FaithfullyFlat.tensorProduct_mk_injective.

theorem LinearMap.baseChangeHom_injective E1 #

∀ (R : Type u) (M : Type v) {N : Type u_1} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : AddCommMonoid N] [inst_4 : Module R N] (S : Type u_4) [inst_5 : Semiring S] [inst_6 : Algebra R S]
  [FaithfulSMul R S] [Module.Flat R N], Function.Injective ⇑(LinearMap.baseChangeHom R S M N)

theorem LinearMap.baseChange_inj E0 #

∀ (R : Type u) (M : Type v) {N : Type u_1} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : AddCommMonoid N] [inst_4 : Module R N] (S : Type u_4) [inst_5 : Semiring S] [inst_6 : Algebra R S]
  [FaithfulSMul R S] [Module.Flat R N] {f g : M →ₗ[R] N}, LinearMap.baseChange S f = LinearMap.baseChange S g ↔ f = g

theorem LinearMap.isIdempotentElem_baseChange_iff E0 #

∀ (R : Type u) (M : Type v) [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] (S : Type u_4)
  [inst_3 : Semiring S] [inst_4 : Algebra R S] [FaithfulSMul R S] [Module.Flat R M] {f : M →ₗ[R] M},
  IsIdempotentElem (LinearMap.baseChange S f) ↔ IsIdempotentElem f

theorem Module.Flat.iff_rTensor_preserves_injective_linearMap' E1 #

∀ {R : Type u} {M : Type v} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [Small.{v', u} R],
  Module.Flat R M ↔
    ∀ ⦃N N' : Type v'⦄ [inst_4 : AddCommGroup N] [inst_5 : AddCommGroup N'] [inst_6 : Module R N] [inst_7 : Module R N']
      (f : N →ₗ[R] N'), Function.Injective ⇑f → Function.Injective ⇑(LinearMap.rTensor M f)

M is flat if and only if f ⊗ 𝟙 M is injective whenever f is an injective linear map. See Module.Flat.iff_rTensor_preserves_injective_linearMap to specialize the universe of N, N', N'' to Type (max u v).

theorem Module.Flat.iff_rTensor_preserves_injective_linearMap E3 #

∀ {R : Type u} {M : Type v} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M],
  Module.Flat R M ↔
    ∀ ⦃N N' : Type (max u v)⦄ [inst_3 : AddCommGroup N] [inst_4 : AddCommGroup N'] [inst_5 : Module R N]
      [inst_6 : Module R N'] (f : N →ₗ[R] N'), Function.Injective ⇑f → Function.Injective ⇑(LinearMap.rTensor M f)

M is flat if and only if f ⊗ 𝟙 M is injective whenever f is an injective linear map. See Module.Flat.iff_rTensor_preserves_injective_linearMap' to generalize the universe of N, N', N'' to any universe that is higher than R and M.

theorem Module.Flat.iff_lTensor_preserves_injective_linearMap' E1 #

∀ {R : Type u} {M : Type v} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [Small.{v', u} R],
  Module.Flat R M ↔
    ∀ ⦃N N' : Type v'⦄ [inst_4 : AddCommGroup N] [inst_5 : AddCommGroup N'] [inst_6 : Module R N] [inst_7 : Module R N']
      (f : N →ₗ[R] N'), Function.Injective ⇑f → Function.Injective ⇑(LinearMap.lTensor M f)

M is flat if and only if 𝟙 M ⊗ f is injective whenever f is an injective linear map. See Module.Flat.iff_lTensor_preserves_injective_linearMap to specialize the universe of N, N', N'' to Type (max u v).

theorem Module.Flat.iff_lTensor_preserves_injective_linearMap E1 #

∀ {R : Type u} {M : Type v} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M],
  Module.Flat R M ↔
    ∀ ⦃N N' : Type (max u v)⦄ [inst_3 : AddCommGroup N] [inst_4 : AddCommGroup N'] [inst_5 : Module R N]
      [inst_6 : Module R N'] (f : N →ₗ[R] N'), Function.Injective ⇑f → Function.Injective ⇑(LinearMap.lTensor M f)

M is flat if and only if 𝟙 M ⊗ f is injective whenever f is an injective linear map. See Module.Flat.iff_lTensor_preserves_injective_linearMap' to generalize the universe of N, N', N'' to any universe that is higher than R and M.

theorem Module.Flat.lTensor_exact E3 #

∀ {R : Type u} (M : Type v) [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [Module.Flat R M]
  ⦃N : Type u_1⦄ ⦃N' : Type u_2⦄ ⦃N'' : Type u_3⦄ [inst_4 : AddCommGroup N] [inst_5 : AddCommGroup N']
  [inst_6 : AddCommGroup N''] [inst_7 : Module R N] [inst_8 : Module R N'] [inst_9 : Module R N''] ⦃f : N →ₗ[R] N'⦄
  ⦃g : N' →ₗ[R] N''⦄, Function.Exact ⇑f ⇑g → Function.Exact ⇑(LinearMap.lTensor M f) ⇑(LinearMap.lTensor M g)

If M is flat then M ⊗ - is an exact functor.

theorem Module.Flat.rTensor_exact E1 #

∀ {R : Type u} (M : Type v) [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [Module.Flat R M]
  ⦃N : Type u_1⦄ ⦃N' : Type u_2⦄ ⦃N'' : Type u_3⦄ [inst_4 : AddCommGroup N] [inst_5 : AddCommGroup N']
  [inst_6 : AddCommGroup N''] [inst_7 : Module R N] [inst_8 : Module R N'] [inst_9 : Module R N''] ⦃f : N →ₗ[R] N'⦄
  ⦃g : N' →ₗ[R] N''⦄, Function.Exact ⇑f ⇑g → Function.Exact ⇑(LinearMap.rTensor M f) ⇑(LinearMap.rTensor M g)

If M is flat then - ⊗ M is an exact functor.

theorem Module.Flat.iff_lTensor_exact' E1 #

∀ {R : Type u} {M : Type v} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [Small.{v', u} R],
  Module.Flat R M ↔
    ∀ ⦃N N' N'' : Type v'⦄ [inst_4 : AddCommGroup N] [inst_5 : AddCommGroup N'] [inst_6 : AddCommGroup N'']
      [inst_7 : Module R N] [inst_8 : Module R N'] [inst_9 : Module R N''] ⦃f : N →ₗ[R] N'⦄ ⦃g : N' →ₗ[R] N''⦄,
      Function.Exact ⇑f ⇑g → Function.Exact ⇑(LinearMap.lTensor M f) ⇑(LinearMap.lTensor M g)

M is flat if and only if M ⊗ - is an exact functor. See Module.Flat.iff_lTensor_exact to specialize the universe of N, N', N'' to Type (max u v).

theorem Module.Flat.iff_lTensor_exact E3 #

∀ {R : Type u} {M : Type v} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M],
  Module.Flat R M ↔
    ∀ ⦃N N' N'' : Type (max u v)⦄ [inst_3 : AddCommGroup N] [inst_4 : AddCommGroup N'] [inst_5 : AddCommGroup N'']
      [inst_6 : Module R N] [inst_7 : Module R N'] [inst_8 : Module R N''] ⦃f : N →ₗ[R] N'⦄ ⦃g : N' →ₗ[R] N''⦄,
      Function.Exact ⇑f ⇑g → Function.Exact ⇑(LinearMap.lTensor M f) ⇑(LinearMap.lTensor M g)

M is flat if and only if M ⊗ - is an exact functor. See Module.Flat.iff_lTensor_exact' to generalize the universe of N, N', N'' to any universe that is higher than R and M.

theorem Module.Flat.iff_rTensor_exact' E1 #

∀ {R : Type u} {M : Type v} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [Small.{v', u} R],
  Module.Flat R M ↔
    ∀ ⦃N N' N'' : Type v'⦄ [inst_4 : AddCommGroup N] [inst_5 : AddCommGroup N'] [inst_6 : AddCommGroup N'']
      [inst_7 : Module R N] [inst_8 : Module R N'] [inst_9 : Module R N''] ⦃f : N →ₗ[R] N'⦄ ⦃g : N' →ₗ[R] N''⦄,
      Function.Exact ⇑f ⇑g → Function.Exact ⇑(LinearMap.rTensor M f) ⇑(LinearMap.rTensor M g)

M is flat if and only if - ⊗ M is an exact functor. See Module.Flat.iff_rTensor_exact to specialize the universe of N, N', N'' to Type (max u v).

theorem Module.Flat.iff_rTensor_exact E1 #

∀ {R : Type u} {M : Type v} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M],
  Module.Flat R M ↔
    ∀ ⦃N N' N'' : Type (max u v)⦄ [inst_3 : AddCommGroup N] [inst_4 : AddCommGroup N'] [inst_5 : AddCommGroup N'']
      [inst_6 : Module R N] [inst_7 : Module R N'] [inst_8 : Module R N''] ⦃f : N →ₗ[R] N'⦄ ⦃g : N' →ₗ[R] N''⦄,
      Function.Exact ⇑f ⇑g → Function.Exact ⇑(LinearMap.rTensor M f) ⇑(LinearMap.rTensor M g)

M is flat if and only if - ⊗ M is an exact functor. See Module.Flat.iff_rTensor_exact' to generalize the universe of N, N', N'' to any universe that is higher than R and M.

theorem Algebra.TensorProduct.includeLeft_injective E1 #

∀ {R : Type u_1} {S : Type u_2} {A : Type u_3} {B : Type u_4} [inst : CommSemiring R] [inst_1 : Semiring A]
  [inst_2 : Algebra R A] [inst_3 : Semiring B] [inst_4 : Algebra R B] [inst_5 : CommSemiring S] [inst_6 : Algebra S A]
  [Module.Flat R A], Function.Injective ⇑(algebraMap R B) → Function.Injective ⇑Algebra.TensorProduct.includeLeft

theorem Algebra.TensorProduct.includeRight_injective E1 #

∀ {R : Type u_1} {A : Type u_3} {B : Type u_4} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Semiring B] [inst_4 : Algebra R B] [Module.Flat R B],
  Function.Injective ⇑(algebraMap R A) → Function.Injective ⇑Algebra.TensorProduct.includeRight

theorem Submodule.toBaseChange_injective E1 #

∀ {R : Type u_1} (A : Type u_3) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] [Module.Flat R A]
  {M : Type u_5} [inst_4 : AddCommMonoid M] [inst_5 : Module R M] (p : Submodule R M),
  Function.Injective ⇑(Submodule.toBaseChange A p)

def Submodule.toBaseChange.toLinearEquiv E1 #

{R : Type u_1} →
  (A : Type u_3) →
    [inst : CommSemiring R] →
      [inst_1 : Semiring A] →
        [inst_2 : Algebra R A] →
          [Module.Flat R A] →
            {M : Type u_5} →
              [inst_4 : AddCommMonoid M] →
                [inst_5 : Module R M] → (p : Submodule R M) → TensorProduct R A ↥p ≃ₗ[A] ↥(Submodule.baseChange A p)

Submodule.toBaseChange as a LinearEquiv.

theorem Submodule.toBaseChange.toLinearEquiv_apply E0 #

∀ {R : Type u_1} (A : Type u_3) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Module.Flat R A] {M : Type u_5} [inst_4 : AddCommMonoid M] [inst_5 : Module R M] (p : Submodule R M)
  (x : TensorProduct R A ↥p), (Submodule.toBaseChange.toLinearEquiv A p) x = (Submodule.toBaseChange A p) x

theorem Submodule.toBaseChange.toLinearEquiv_symm_apply E0 #

∀ {R : Type u_1} (A : Type u_3) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  [inst_3 : Module.Flat R A] {M : Type u_5} [inst_4 : AddCommMonoid M] [inst_5 : Module R M] (p : Submodule R M) (a : A)
  (m : ↥p), (Submodule.toBaseChange.toLinearEquiv A p).symm ⟨a ⊗ₜ[R] ↑m, ⋯⟩ = a ⊗ₜ[R] m

theorem TensorProduct.nontrivial_of_linearMap_injective_of_flat_left E1 #

∀ (R : Type u_1) [inst : CommSemiring R] (M : Type u_2) (N : Type u_3) [inst_1 : AddCommMonoid M]
  [inst_2 : AddCommMonoid N] [inst_3 : Module R M] [inst_4 : Module R N] (f : R →ₗ[R] N),
  Function.Injective ⇑f → ∀ [Module.Flat R M] [Nontrivial M], Nontrivial (TensorProduct R M N)

If M, N are R-modules, there exists an injective R-linear map from R to N, and M is a nontrivial flat R-module, then M ⊗[R] N is nontrivial.

theorem TensorProduct.nontrivial_of_linearMap_injective_of_flat_right E1 #

∀ (R : Type u_1) [inst : CommSemiring R] (M : Type u_2) (N : Type u_3) [inst_1 : AddCommMonoid M]
  [inst_2 : AddCommMonoid N] [inst_3 : Module R M] [inst_4 : Module R N] (f : R →ₗ[R] M),
  Function.Injective ⇑f → ∀ [Module.Flat R N] [Nontrivial N], Nontrivial (TensorProduct R M N)

If M, N are R-modules, there exists an injective R-linear map from R to M, and N is a nontrivial flat R-module, then M ⊗[R] N is nontrivial.

theorem TensorProduct.map_injective_of_flat_flat E0 #

∀ {R : Type u_1} [inst : CommSemiring R] {M : Type u_2} {N : Type u_3} [inst_1 : AddCommMonoid M]
  [inst_2 : AddCommMonoid N] [inst_3 : Module R M] [inst_4 : Module R N] {P : Type u_4} {Q : Type u_5}
  [inst_5 : AddCommMonoid P] [inst_6 : Module R P] [inst_7 : AddCommMonoid Q] [inst_8 : Module R Q] (f : P →ₗ[R] M)
  (g : Q →ₗ[R] N) [Module.Flat R M] [Module.Flat R Q],
  Function.Injective ⇑f → Function.Injective ⇑g → Function.Injective ⇑(TensorProduct.map f g)

Tensor product of injective maps are injective under some flatness conditions. Also see TensorProduct.map_injective_of_flat_flat' and TensorProduct.map_injective_of_flat_flat_of_isDomain for different flatness conditions.

theorem TensorProduct.map_injective_of_flat_flat' E0 #

∀ {R : Type u_1} [inst : CommSemiring R] {M : Type u_2} {N : Type u_3} [inst_1 : AddCommMonoid M]
  [inst_2 : AddCommMonoid N] [inst_3 : Module R M] [inst_4 : Module R N] {P : Type u_4} {Q : Type u_5}
  [inst_5 : AddCommMonoid P] [inst_6 : Module R P] [inst_7 : AddCommMonoid Q] [inst_8 : Module R Q] (f : P →ₗ[R] M)
  (g : Q →ₗ[R] N) [Module.Flat R P] [Module.Flat R N],
  Function.Injective ⇑f → Function.Injective ⇑g → Function.Injective ⇑(TensorProduct.map f g)

Tensor product of injective maps are injective under some flatness conditions. Also see TensorProduct.map_injective_of_flat_flat and TensorProduct.map_injective_of_flat_flat_of_isDomain for different flatness conditions.

theorem LinearIndependent.tmul_of_flat_left E1 #

∀ {R : Type u_1} [inst : CommSemiring R] {M : Type u_2} {N : Type u_3} [inst_1 : AddCommMonoid M]
  [inst_2 : AddCommMonoid N] [inst_3 : Module R M] [inst_4 : Module R N] {ι : Type u_6} {κ : Type u_7} {v : ι → M}
  {w : κ → N} [Module.Flat R M],
  LinearIndependent R v → LinearIndependent R w → LinearIndependent R fun i ↦ v i.1 ⊗ₜ[R] w i.2

Tensor product of linearly independent families is linearly independent under some flatness conditions.

The flatness condition could be removed over domains. See LinearIndependent.tmul_of_isDomain.

theorem TensorProduct.LinearIndepOn.tmul_of_flat_left E1 #

∀ {R : Type u_1} [inst : CommSemiring R] {M : Type u_2} {N : Type u_3} [inst_1 : AddCommMonoid M]
  [inst_2 : AddCommMonoid N] [inst_3 : Module R M] [inst_4 : Module R N] {ι : Type u_6} {κ : Type u_7} {v : ι → M}
  {w : κ → N} {s : Set ι} {t : Set κ} [Module.Flat R M],
  LinearIndepOn R v s → LinearIndepOn R w t → LinearIndepOn R (fun i ↦ v i.1 ⊗ₜ[R] w i.2) (s ×ˢ t)

Tensor product of linearly independent families is linearly independent under some flatness conditions.

The flatness condition could be removed over domains. See LinearIndepOn.tmul_of_isDomain.

theorem LinearIndependent.tmul_of_flat_right E1 #

∀ {R : Type u_1} [inst : CommSemiring R] {M : Type u_2} {N : Type u_3} [inst_1 : AddCommMonoid M]
  [inst_2 : AddCommMonoid N] [inst_3 : Module R M] [inst_4 : Module R N] {ι : Type u_6} {κ : Type u_7} {v : ι → M}
  {w : κ → N} [Module.Flat R N],
  LinearIndependent R v → LinearIndependent R w → LinearIndependent R fun i ↦ v i.1 ⊗ₜ[R] w i.2

Tensor product of linearly independent families is linearly independent under some flatness conditions.

The flatness condition could be removed over domains. See LinearIndependent.tmul_of_isDomain.

theorem TensorProduct.LinearIndepOn.tmul_of_flat_right E1 #

∀ {R : Type u_1} [inst : CommSemiring R] {M : Type u_2} {N : Type u_3} [inst_1 : AddCommMonoid M]
  [inst_2 : AddCommMonoid N] [inst_3 : Module R M] [inst_4 : Module R N] {ι : Type u_6} {κ : Type u_7} {v : ι → M}
  {w : κ → N} {s : Set ι} {t : Set κ} [Module.Flat R N],
  LinearIndepOn R v s → LinearIndepOn R w t → LinearIndepOn R (fun i ↦ v i.1 ⊗ₜ[R] w i.2) (s ×ˢ t)

Tensor product of linearly independent families is linearly independent under some flatness conditions.

The flatness condition could be removed over domains. See LinearIndepOn.tmul_of_isDomain.

theorem Module.Flat.tensorProduct_mapIncl_injective_of_right E1 #

∀ {R : Type u_1} [inst : CommSemiring R] {M : Type u_2} {N : Type u_3} [inst_1 : AddCommMonoid M]
  [inst_2 : AddCommMonoid N] [inst_3 : Module R M] [inst_4 : Module R N] (p : Submodule R M) (q : Submodule R N)
  [Module.Flat R M] [Module.Flat R ↥q], Function.Injective ⇑(TensorProduct.mapIncl p q)

If p and q are submodules of M and N respectively, and M and q are flat, then p ⊗ q → M ⊗ N is injective.

theorem Module.Flat.tensorProduct_mapIncl_injective_of_left E1 #

∀ {R : Type u_1} [inst : CommSemiring R] {M : Type u_2} {N : Type u_3} [inst_1 : AddCommMonoid M]
  [inst_2 : AddCommMonoid N] [inst_3 : Module R M] [inst_4 : Module R N] (p : Submodule R M) (q : Submodule R N)
  [Module.Flat R ↥p] [Module.Flat R N], Function.Injective ⇑(TensorProduct.mapIncl p q)

If p and q are submodules of M and N respectively, and N and p are flat, then p ⊗ q → M ⊗ N is injective.

theorem Algebra.TensorProduct.nontrivial_of_algebraMap_injective_of_flat_left E1 #

∀ (R : Type u_1) [inst : CommSemiring R] (A : Type u_2) (B : Type u_3) [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B],
  Function.Injective ⇑(algebraMap R B) → ∀ [Module.Flat R A] [Nontrivial A], Nontrivial (TensorProduct R A B)

If A, B are R-algebras, R injects into B, and A is a nontrivial flat R-algebra, then A ⊗[R] B is nontrivial.

theorem Algebra.TensorProduct.nontrivial_of_algebraMap_injective_of_flat_right E1 #

∀ (R : Type u_1) [inst : CommSemiring R] (A : Type u_2) (B : Type u_3) [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B],
  Function.Injective ⇑(algebraMap R A) → ∀ [Module.Flat R B] [Nontrivial B], Nontrivial (TensorProduct R A B)

If A, B are R-algebras, R injects into A, and B is a nontrivial flat R-algebra, then A ⊗[R] B is nontrivial.

theorem IsTensorProduct.map_id_injective_of_flat_left E0 #

∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : AddCommMonoid N] [inst_3 : Module R M] [inst_4 : Module R N] {M₁ : Type u_4} {M₂ : Type u_5} {N₂ : Type u_7}
  [inst_5 : AddCommMonoid M₁] [inst_6 : AddCommMonoid M₂] [inst_7 : Module R M₁] [inst_8 : Module R M₂]
  [inst_9 : AddCommMonoid N₂] [inst_10 : Module R N₂] {f : M₁ →ₗ[R] M₂ →ₗ[R] M} (hf : IsTensorProduct f)
  {g : M₁ →ₗ[R] N₂ →ₗ[R] N} (hg : IsTensorProduct g) (i : M₂ →ₗ[R] N₂),
  Function.Injective ⇑i → ∀ [Module.Flat R M₁], Function.Injective ⇑(hf.map hg LinearMap.id i)

theorem IsTensorProduct.map_id_injective_of_flat_right E0 #

∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : AddCommMonoid N] [inst_3 : Module R M] [inst_4 : Module R N] {M₁ : Type u_4} {M₂ : Type u_5} {N₁ : Type u_6}
  [inst_5 : AddCommMonoid M₁] [inst_6 : AddCommMonoid M₂] [inst_7 : Module R M₁] [inst_8 : Module R M₂]
  [inst_9 : AddCommMonoid N₁] [inst_10 : Module R N₁] {f : M₁ →ₗ[R] M₂ →ₗ[R] M} (hf : IsTensorProduct f)
  {g : N₁ →ₗ[R] M₂ →ₗ[R] N} (hg : IsTensorProduct g) (i : M₁ →ₗ[R] N₁),
  Function.Injective ⇑i → ∀ [Module.Flat R M₂], Function.Injective ⇑(hf.map hg i LinearMap.id)

theorem IsTensorProduct.map_injective_of_flat_right_left E0 #

∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : AddCommMonoid N] [inst_3 : Module R M] [inst_4 : Module R N] {M₁ : Type u_4} {M₂ : Type u_5} {N₁ : Type u_6}
  {N₂ : Type u_7} [inst_5 : AddCommMonoid M₁] [inst_6 : AddCommMonoid M₂] [inst_7 : Module R M₁] [inst_8 : Module R M₂]
  [inst_9 : AddCommMonoid N₁] [inst_10 : AddCommMonoid N₂] [inst_11 : Module R N₁] [inst_12 : Module R N₂]
  {f : M₁ →ₗ[R] M₂ →ₗ[R] M} {g : N₁ →ₗ[R] N₂ →ₗ[R] N} (hf : IsTensorProduct f) (hg : IsTensorProduct g)
  (i₁ : M₁ →ₗ[R] N₁) (i₂ : M₂ →ₗ[R] N₂),
  Function.Injective ⇑i₁ →
    Function.Injective ⇑i₂ → ∀ [Module.Flat R M₂] [Module.Flat R N₁], Function.Injective ⇑(hf.map hg i₁ i₂)

If M₂ and N₁ are flat R-modules, i₁ : M₁ →ₗ[R] N₁ and i₂ : M₂ →ₗ[R] N₂ are injective linear maps, then the linear map i : M ≅ M₁ ⊗[R] M₂ →ₗ[R] N₁ ⊗[R] N₂ ≅ N induced by i₁ and i₂ is injective. See IsTensorProduct.map_injective_of_flat' for different flatness conditions.

theorem IsTensorProduct.map_injective_of_flat_left_right E0 #

∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : AddCommMonoid N] [inst_3 : Module R M] [inst_4 : Module R N] {M₁ : Type u_4} {M₂ : Type u_5} {N₁ : Type u_6}
  {N₂ : Type u_7} [inst_5 : AddCommMonoid M₁] [inst_6 : AddCommMonoid M₂] [inst_7 : Module R M₁] [inst_8 : Module R M₂]
  [inst_9 : AddCommMonoid N₁] [inst_10 : AddCommMonoid N₂] [inst_11 : Module R N₁] [inst_12 : Module R N₂]
  {f : M₁ →ₗ[R] M₂ →ₗ[R] M} {g : N₁ →ₗ[R] N₂ →ₗ[R] N} (hf : IsTensorProduct f) (hg : IsTensorProduct g)
  (i₁ : M₁ →ₗ[R] N₁) (i₂ : M₂ →ₗ[R] N₂),
  Function.Injective ⇑i₁ →
    Function.Injective ⇑i₂ → ∀ [Module.Flat R M₁] [Module.Flat R N₂], Function.Injective ⇑(hf.map hg i₁ i₂)

If M₁ and N₂ are flat R-modules, i₁ : M₁ →ₗ[R] N₁ and i₂ : M₂ →ₗ[R] N₂ are injective linear maps, then the linear map i : M ≅ M₁ ⊗[R] M₂ →ₗ[R] N₁ ⊗[R] N₂ ≅ N induced by i₁ and i₂ is injective. See IsTensorProduct.map_injective_of_flat for different flatness conditions.

theorem IsSMulRegular.of_flat_of_isBaseChange E1 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} {N : Type u_4} [inst : CommSemiring R] [inst_1 : CommSemiring S]
  [inst_2 : Algebra R S] [Module.Flat R S] [inst_4 : AddCommMonoid M] [inst_5 : Module R M] [inst_6 : AddCommMonoid N]
  [inst_7 : Module R N] [inst_8 : Module S N] [inst_9 : IsScalarTower R S N] {f : M →ₗ[R] N},
  IsBaseChange S f → ∀ {x : R}, IsSMulRegular M x → IsSMulRegular N ((algebraMap R S) x)

theorem IsSMulRegular.of_flat E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Algebra R S]
  [Module.Flat R S] {x : R}, IsSMulRegular R x → IsSMulRegular S ((algebraMap R S) x)

theorem IsReduced.tensorProduct_of_flat_of_forall_fg E1 #

∀ {R : Type u_1} {C : Type u_2} {A : Type u_3} [inst : CommSemiring R] [inst_1 : CommSemiring C] [inst_2 : Semiring A]
  [inst_3 : Algebra R A] [inst_4 : Algebra R C] [Module.Flat R C],
  (∀ (B : Subalgebra R A), B.FG → IsReduced (TensorProduct R C ↥B)) → IsReduced (TensorProduct R C A)

Let R be a commutative semiring, let C be a commutative R-algebra, and let A be an R-algebra. If C ⊗[R] B is reduced for all finitely generated subalgebras B of A, then C ⊗[R] A is also reduced.