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 / V08. Multilinear algebra and forms

Mathlib.LinearAlgebra.TensorProduct.RightExactness

46 declarations. Mathlib docs · Source

Right-exactness properties of tensor product

Modules

  • LinearMap.rTensor_surjective asserts that when one tensors a surjective map on the right, one still gets a surjective linear map. More generally, LinearMap.rTensor_range computes the range of LinearMap.rTensor

  • LinearMap.lTensor_surjective asserts that when one tensors a surjective map on the left, one still gets a surjective linear map. More generally, LinearMap.lTensor_range computes the range of LinearMap.lTensor

  • TensorProduct.rTensor_exact says that when one tensors a short exact sequence on the right, one still gets a short exact sequence (right-exactness of TensorProduct.rTensor), and rTensor.equiv gives the LinearEquiv that follows from this combined with LinearMap.rTensor_surjective.

  • TensorProduct.lTensor_exact says that when one tensors a short exact sequence on the left, one still gets a short exact sequence (right-exactness of TensorProduct.rTensor) and lTensor.equiv gives the LinearEquiv that follows from this combined with LinearMap.lTensor_surjective.

  • For N : Submodule R M, LinearMap.exact_subtype_mkQ N says that the inclusion of the submodule and the quotient map form an exact pair, and lTensor_mkQ compute ker (lTensor Q (N.mkQ)) and similarly for rTensor_mkQ

  • TensorProduct.map_ker computes the kernel of TensorProduct.map f g' in the presence of two short exact sequences.

The proofs are those of [bourbaki1989] (chap. 2, §3, n°6)

Algebras

In the case of a tensor product of algebras, these results can be particularized to compute some kernels.

  • Algebra.TensorProduct.ker_map computes the kernel of Algebra.TensorProduct.map f g

  • Algebra.TensorProduct.lTensor_ker and Algebra.TensorProduct.rTensor_ker compute the kernels of Algebra.TensorProduct.map f id and Algebra.TensorProduct.map id g

Note on implementation

  • All kernels are computed by applying the first isomorphism theorem and establishing some isomorphisms.

  • The proofs are essentially done twice, once for lTensor and then for rTensor. It is possible to apply TensorProduct.flip to deduce one of them from the other. However, this approach will lead to different isomorphisms, and it is not quicker.

  • The proofs of Ideal.map_includeLeft_eq and Ideal.map_includeRight_eq could be easier if I ⊗[R] B was naturally an A ⊗[R] B module, and the map to A ⊗[R] B was known to be linear. This depends on the B-module structure on a tensor product whose use rapidly conflicts with everything…

TODO

  • Treat the noncommutative case

  • Treat the case of modules over semirings (For a possible definition of an exact sequence of commutative semigroups, see [Grillet-1969b], Pierre-Antoine Grillet, The tensor product of commutative semigroups, Trans. Amer. Math. Soc. 138 (1969), 281-293, doi:10.1090/S0002-9947-1969-0237688-1 .)

theorem rTensor.inverse_of_rightInverse.congr_simp E1 #

∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} {P : Type u_4} [inst : CommRing R] [inst_1 : AddCommGroup M]
  [inst_2 : AddCommGroup N] [inst_3 : AddCommGroup P] [inst_4 : Module R M] [inst_5 : Module R N] [inst_6 : Module R P]
  {f : M →ₗ[R] N} {g g_1 : N →ₗ[R] P} (e_g : g = g_1) (Q : Type u_5) [inst_7 : AddCommGroup Q] [inst_8 : Module R Q]
  {h h_1 : P → N} (e_h : h = h_1) (hfg : Function.Exact ⇑f ⇑g) (hgh : Function.RightInverse h ⇑g),
  rTensor.inverse_of_rightInverse Q hfg hgh = rTensor.inverse_of_rightInverse Q ⋯ ⋯

theorem lTensor.inverse_of_rightInverse.congr_simp E1 #

∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} {P : Type u_4} [inst : CommRing R] [inst_1 : AddCommGroup M]
  [inst_2 : AddCommGroup N] [inst_3 : AddCommGroup P] [inst_4 : Module R M] [inst_5 : Module R N] [inst_6 : Module R P]
  {f : M →ₗ[R] N} {g g_1 : N →ₗ[R] P} (e_g : g = g_1) (Q : Type u_5) [inst_7 : AddCommGroup Q] [inst_8 : Module R Q]
  {h h_1 : P → N} (e_h : h = h_1) (hfg : Function.Exact ⇑f ⇑g) (hgh : Function.RightInverse h ⇑g),
  lTensor.inverse_of_rightInverse Q hfg hgh = lTensor.inverse_of_rightInverse Q ⋯ ⋯

theorem rTensor.toFun.congr_simp E1 #

∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} {P : Type u_4} [inst : CommRing R] [inst_1 : AddCommGroup M]
  [inst_2 : AddCommGroup N] [inst_3 : AddCommGroup P] [inst_4 : Module R M] [inst_5 : Module R N] [inst_6 : Module R P]
  {f : M →ₗ[R] N} {g g_1 : N →ₗ[R] P} (e_g : g = g_1) (Q : Type u_5) [inst_7 : AddCommGroup Q] [inst_8 : Module R Q]
  (hfg : Function.Exact ⇑f ⇑g), rTensor.toFun Q hfg = rTensor.toFun Q ⋯

theorem lTensor.toFun.congr_simp E1 #

∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} {P : Type u_4} [inst : CommRing R] [inst_1 : AddCommGroup M]
  [inst_2 : AddCommGroup N] [inst_3 : AddCommGroup P] [inst_4 : Module R M] [inst_5 : Module R N] [inst_6 : Module R P]
  {f : M →ₗ[R] N} {g g_1 : N →ₗ[R] P} (e_g : g = g_1) (Q : Type u_5) [inst_7 : AddCommGroup Q] [inst_8 : Module R Q]
  (hfg : Function.Exact ⇑f ⇑g), lTensor.toFun Q hfg = lTensor.toFun Q ⋯

theorem le_comap_range_lTensor E1 #

∀ {R : Type u_1} [inst : CommSemiring R] {N : Type u_3} {P : Type u_4} {Q : Type u_5} [inst_1 : AddCommMonoid N]
  [inst_2 : AddCommMonoid P] [inst_3 : AddCommMonoid Q] [inst_4 : Module R N] [inst_5 : Module R P]
  [inst_6 : Module R Q] (g : N →ₗ[R] P) (q : Q),
  g.range ≤ Submodule.comap ((TensorProduct.mk R Q P) q) (LinearMap.lTensor Q g).range

theorem le_comap_range_rTensor E1 #

∀ {R : Type u_1} [inst : CommSemiring R] {N : Type u_3} {P : Type u_4} {Q : Type u_5} [inst_1 : AddCommMonoid N]
  [inst_2 : AddCommMonoid P] [inst_3 : AddCommMonoid Q] [inst_4 : Module R N] [inst_5 : Module R P]
  [inst_6 : Module R Q] (g : N →ₗ[R] P) (q : Q),
  g.range ≤ Submodule.comap ((TensorProduct.mk R P Q).flip q) (LinearMap.rTensor Q g).range

theorem LinearMap.lTensor_surjective E1 #

∀ {R : Type u_1} [inst : CommSemiring R] {N : Type u_3} {P : Type u_4} (Q : Type u_5) [inst_1 : AddCommMonoid N]
  [inst_2 : AddCommMonoid P] [inst_3 : AddCommMonoid Q] [inst_4 : Module R N] [inst_5 : Module R P]
  [inst_6 : Module R Q] {g : N →ₗ[R] P}, Function.Surjective ⇑g → Function.Surjective ⇑(LinearMap.lTensor Q g)

If g is surjective, then lTensor Q g is surjective

theorem LinearMap.lTensor_range E1 #

∀ {R : Type u_1} [inst : CommSemiring R] {N : Type u_3} {P : Type u_4} (Q : Type u_5) [inst_1 : AddCommMonoid N]
  [inst_2 : AddCommMonoid P] [inst_3 : AddCommMonoid Q] [inst_4 : Module R N] [inst_5 : Module R P]
  [inst_6 : Module R Q] {g : N →ₗ[R] P}, (LinearMap.lTensor Q g).range = (LinearMap.lTensor Q g.range.subtype).range

theorem LinearMap.baseChange_surjective E1 #

∀ {R : Type u_1} [inst : CommSemiring R] {N : Type u_3} {P : Type u_4} [inst_1 : AddCommMonoid N]
  [inst_2 : AddCommMonoid P] [inst_3 : Module R N] [inst_4 : Module R P] {g : N →ₗ[R] P} (A : Type u_6)
  [inst_5 : Semiring A] [inst_6 : Algebra R A], Function.Surjective ⇑g → Function.Surjective ⇑(LinearMap.baseChange A g)

If g is surjective, then g.baseChange A is surjective.

theorem LinearMap.rTensor_surjective E1 #

∀ {R : Type u_1} [inst : CommSemiring R] {N : Type u_3} {P : Type u_4} (Q : Type u_5) [inst_1 : AddCommMonoid N]
  [inst_2 : AddCommMonoid P] [inst_3 : AddCommMonoid Q] [inst_4 : Module R N] [inst_5 : Module R P]
  [inst_6 : Module R Q] {g : N →ₗ[R] P}, Function.Surjective ⇑g → Function.Surjective ⇑(LinearMap.rTensor Q g)

If g is surjective, then rTensor Q g is surjective

theorem LinearMap.rTensor_range E1 #

∀ {R : Type u_1} [inst : CommSemiring R] {N : Type u_3} {P : Type u_4} (Q : Type u_5) [inst_1 : AddCommMonoid N]
  [inst_2 : AddCommMonoid P] [inst_3 : AddCommMonoid Q] [inst_4 : Module R N] [inst_5 : Module R P]
  [inst_6 : Module R Q] {g : N →ₗ[R] P}, (LinearMap.rTensor Q g).range = (LinearMap.rTensor Q g.range.subtype).range

theorem LinearMap.rTensor_exact_iff_lTensor_exact E1 #

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

theorem LinearMap.range_baseChange 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] {A : Type u_6} [inst_5 : Semiring A]
  [inst_6 : Algebra R A] (f : M →ₗ[R] N), (LinearMap.baseChange A f).range = Submodule.baseChange A f.range

theorem Submodule.baseChange_map 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] {A : Type u_6} [inst_5 : Semiring A]
  [inst_6 : Algebra R A] (f : M →ₗ[R] N) (p : Submodule R M),
  Submodule.baseChange A (Submodule.map f p) = Submodule.map (LinearMap.baseChange A f) (Submodule.baseChange A p)

theorem TensorProduct.map_surjective E0 #

∀ {R : Type u_1} [inst : CommSemiring R] {N : Type u_3} {P : Type u_4} [inst_1 : AddCommMonoid N]
  [inst_2 : AddCommMonoid P] [inst_3 : Module R N] [inst_4 : Module R P] {g : N →ₗ[R] P},
  Function.Surjective ⇑g →
    ∀ {N' : Type u_6} {P' : Type u_7} [inst_5 : AddCommMonoid N'] [inst_6 : AddCommMonoid P'] [inst_7 : Module R N']
      [inst_8 : Module R P'] {g' : N' →ₗ[R] P'}, Function.Surjective ⇑g' → Function.Surjective ⇑(TensorProduct.map g g')

def lTensor.toFun E1 #

{R : Type u_1} →
  {M : Type u_2} →
    {N : Type u_3} →
      {P : Type u_4} →
        [inst : CommRing R] →
          [inst_1 : AddCommGroup M] →
            [inst_2 : AddCommGroup N] →
              [inst_3 : AddCommGroup P] →
                [inst_4 : Module R M] →
                  [inst_5 : Module R N] →
                    [inst_6 : Module R P] →
                      {f : M →ₗ[R] N} →
                        {g : N →ₗ[R] P} →
                          (Q : Type u_5) →
                            [inst_7 : AddCommGroup Q] →
                              [inst_8 : Module R Q] →
                                Function.Exact ⇑f ⇑g →
                                  TensorProduct R Q N ⧸ (LinearMap.lTensor Q f).range →ₗ[R] TensorProduct R Q P

The direct map in lTensor.equiv

def lTensor.inverse_of_rightInverse E1 #

{R : Type u_1} →
  {M : Type u_2} →
    {N : Type u_3} →
      {P : Type u_4} →
        [inst : CommRing R] →
          [inst_1 : AddCommGroup M] →
            [inst_2 : AddCommGroup N] →
              [inst_3 : AddCommGroup P] →
                [inst_4 : Module R M] →
                  [inst_5 : Module R N] →
                    [inst_6 : Module R P] →
                      {f : M →ₗ[R] N} →
                        {g : N →ₗ[R] P} →
                          (Q : Type u_5) →
                            [inst_7 : AddCommGroup Q] →
                              [inst_8 : Module R Q] →
                                {h : P → N} →
                                  Function.Exact ⇑f ⇑g →
                                    Function.RightInverse h ⇑g →
                                      TensorProduct R Q P →ₗ[R] TensorProduct R Q N ⧸ (LinearMap.lTensor Q f).range

The inverse map in lTensor.linearEquiv_of_rightInverse (computably, given a right inverse).

theorem lTensor.inverse_of_rightInverse_apply E0 #

∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} {P : Type u_4} [inst : CommRing R] [inst_1 : AddCommGroup M]
  [inst_2 : AddCommGroup N] [inst_3 : AddCommGroup P] [inst_4 : Module R M] [inst_5 : Module R N] [inst_6 : Module R P]
  {f : M →ₗ[R] N} {g : N →ₗ[R] P} (Q : Type u_5) [inst_7 : AddCommGroup Q] [inst_8 : Module R Q]
  (hfg : Function.Exact ⇑f ⇑g) {h : P → N} (hgh : Function.RightInverse h ⇑g) (y : TensorProduct R Q N),
  (lTensor.inverse_of_rightInverse Q hfg hgh) ((LinearMap.lTensor Q g) y) = Submodule.Quotient.mk y

theorem lTensor.inverse_of_rightInverse_comp_lTensor E1 #

∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} {P : Type u_4} [inst : CommRing R] [inst_1 : AddCommGroup M]
  [inst_2 : AddCommGroup N] [inst_3 : AddCommGroup P] [inst_4 : Module R M] [inst_5 : Module R N] [inst_6 : Module R P]
  {f : M →ₗ[R] N} {g : N →ₗ[R] P} (Q : Type u_5) [inst_7 : AddCommGroup Q] [inst_8 : Module R Q]
  (hfg : Function.Exact ⇑f ⇑g) {h : P → N} (hgh : Function.RightInverse h ⇑g),
  lTensor.inverse_of_rightInverse Q hfg hgh ∘ₗ LinearMap.lTensor Q g = (LinearMap.lTensor Q f).range.mkQ

def lTensor.inverse E1 #

{R : Type u_1} →
  {M : Type u_2} →
    {N : Type u_3} →
      {P : Type u_4} →
        [inst : CommRing R] →
          [inst_1 : AddCommGroup M] →
            [inst_2 : AddCommGroup N] →
              [inst_3 : AddCommGroup P] →
                [inst_4 : Module R M] →
                  [inst_5 : Module R N] →
                    [inst_6 : Module R P] →
                      {f : M →ₗ[R] N} →
                        {g : N →ₗ[R] P} →
                          (Q : Type u_5) →
                            [inst_7 : AddCommGroup Q] →
                              [inst_8 : Module R Q] →
                                Function.Exact ⇑f ⇑g →
                                  Function.Surjective ⇑g →
                                    TensorProduct R Q P →ₗ[R] TensorProduct R Q N ⧸ (LinearMap.lTensor Q f).range

The inverse map in lTensor.equiv

theorem lTensor.inverse_apply E0 #

∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} {P : Type u_4} [inst : CommRing R] [inst_1 : AddCommGroup M]
  [inst_2 : AddCommGroup N] [inst_3 : AddCommGroup P] [inst_4 : Module R M] [inst_5 : Module R N] [inst_6 : Module R P]
  {f : M →ₗ[R] N} {g : N →ₗ[R] P} (Q : Type u_5) [inst_7 : AddCommGroup Q] [inst_8 : Module R Q]
  (hfg : Function.Exact ⇑f ⇑g) (hg : Function.Surjective ⇑g) (y : TensorProduct R Q N),
  (lTensor.inverse Q hfg hg) ((LinearMap.lTensor Q g) y) = Submodule.Quotient.mk y

theorem lTensor.inverse_comp_lTensor E1 #

∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} {P : Type u_4} [inst : CommRing R] [inst_1 : AddCommGroup M]
  [inst_2 : AddCommGroup N] [inst_3 : AddCommGroup P] [inst_4 : Module R M] [inst_5 : Module R N] [inst_6 : Module R P]
  {f : M →ₗ[R] N} {g : N →ₗ[R] P} (Q : Type u_5) [inst_7 : AddCommGroup Q] [inst_8 : Module R Q]
  (hfg : Function.Exact ⇑f ⇑g) (hg : Function.Surjective ⇑g),
  lTensor.inverse Q hfg hg ∘ₗ LinearMap.lTensor Q g = (LinearMap.lTensor Q f).range.mkQ

def lTensor.linearEquiv_of_rightInverse E1 #

{R : Type u_1} →
  {M : Type u_2} →
    {N : Type u_3} →
      {P : Type u_4} →
        [inst : CommRing R] →
          [inst_1 : AddCommGroup M] →
            [inst_2 : AddCommGroup N] →
              [inst_3 : AddCommGroup P] →
                [inst_4 : Module R M] →
                  [inst_5 : Module R N] →
                    [inst_6 : Module R P] →
                      {f : M →ₗ[R] N} →
                        {g : N →ₗ[R] P} →
                          (Q : Type u_5) →
                            [inst_7 : AddCommGroup Q] →
                              [inst_8 : Module R Q] →
                                Function.Exact ⇑f ⇑g →
                                  {h : P → N} →
                                    Function.RightInverse h ⇑g →
                                      (TensorProduct R Q N ⧸ (LinearMap.lTensor Q f).range) ≃ₗ[R] TensorProduct R Q P

For a surjective g : N → P, the natural equivalence between Q ⊗ N ⧸ (image of (id Q) ⊗ f) to Q ⊗ P (computably, given a right inverse).

def lTensor.equiv E1 #

{R : Type u_1} →
  {M : Type u_2} →
    {N : Type u_3} →
      {P : Type u_4} →
        [inst : CommRing R] →
          [inst_1 : AddCommGroup M] →
            [inst_2 : AddCommGroup N] →
              [inst_3 : AddCommGroup P] →
                [inst_4 : Module R M] →
                  [inst_5 : Module R N] →
                    [inst_6 : Module R P] →
                      {f : M →ₗ[R] N} →
                        {g : N →ₗ[R] P} →
                          (Q : Type u_5) →
                            [inst_7 : AddCommGroup Q] →
                              [inst_8 : Module R Q] →
                                Function.Exact ⇑f ⇑g →
                                  Function.Surjective ⇑g →
                                    (TensorProduct R Q N ⧸ (LinearMap.lTensor Q f).range) ≃ₗ[R] TensorProduct R Q P

For a surjective g : N → P, the natural equivalence between Q ⊗ N ⧸ (image of (id Q) ⊗ f) to Q ⊗ P.

theorem lTensor_exact E1 #

∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} {P : Type u_4} [inst : CommRing R] [inst_1 : AddCommGroup M]
  [inst_2 : AddCommGroup N] [inst_3 : AddCommGroup P] [inst_4 : Module R M] [inst_5 : Module R N] [inst_6 : Module R P]
  {f : M →ₗ[R] N} {g : N →ₗ[R] P} (Q : Type u_5) [inst_7 : AddCommGroup Q] [inst_8 : Module R Q],
  Function.Exact ⇑f ⇑g → Function.Surjective ⇑g → Function.Exact ⇑(LinearMap.lTensor Q f) ⇑(LinearMap.lTensor Q g)

Tensoring an exact pair on the left gives an exact pair

theorem lTensor_mkQ E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] (Q : Type u_5)
  [inst_3 : AddCommGroup Q] [inst_4 : Module R Q] (N : Submodule R M),
  (LinearMap.lTensor Q N.mkQ).ker = (LinearMap.lTensor Q N.subtype).range

Right-exactness of tensor product

def rTensor.toFun E1 #

{R : Type u_1} →
  {M : Type u_2} →
    {N : Type u_3} →
      {P : Type u_4} →
        [inst : CommRing R] →
          [inst_1 : AddCommGroup M] →
            [inst_2 : AddCommGroup N] →
              [inst_3 : AddCommGroup P] →
                [inst_4 : Module R M] →
                  [inst_5 : Module R N] →
                    [inst_6 : Module R P] →
                      {f : M →ₗ[R] N} →
                        {g : N →ₗ[R] P} →
                          (Q : Type u_5) →
                            [inst_7 : AddCommGroup Q] →
                              [inst_8 : Module R Q] →
                                Function.Exact ⇑f ⇑g →
                                  TensorProduct R N Q ⧸ (LinearMap.rTensor Q f).range →ₗ[R] TensorProduct R P Q

The direct map in rTensor.equiv

def rTensor.inverse_of_rightInverse E1 #

{R : Type u_1} →
  {M : Type u_2} →
    {N : Type u_3} →
      {P : Type u_4} →
        [inst : CommRing R] →
          [inst_1 : AddCommGroup M] →
            [inst_2 : AddCommGroup N] →
              [inst_3 : AddCommGroup P] →
                [inst_4 : Module R M] →
                  [inst_5 : Module R N] →
                    [inst_6 : Module R P] →
                      {f : M →ₗ[R] N} →
                        {g : N →ₗ[R] P} →
                          (Q : Type u_5) →
                            [inst_7 : AddCommGroup Q] →
                              [inst_8 : Module R Q] →
                                {h : P → N} →
                                  Function.Exact ⇑f ⇑g →
                                    Function.RightInverse h ⇑g →
                                      TensorProduct R P Q →ₗ[R] TensorProduct R N Q ⧸ (LinearMap.rTensor Q f).range

The inverse map in rTensor.linearEquiv_of_rightInverse (computably, given a right inverse)

theorem rTensor.inverse_of_rightInverse_apply E0 #

∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} {P : Type u_4} [inst : CommRing R] [inst_1 : AddCommGroup M]
  [inst_2 : AddCommGroup N] [inst_3 : AddCommGroup P] [inst_4 : Module R M] [inst_5 : Module R N] [inst_6 : Module R P]
  {f : M →ₗ[R] N} {g : N →ₗ[R] P} (Q : Type u_5) [inst_7 : AddCommGroup Q] [inst_8 : Module R Q]
  (hfg : Function.Exact ⇑f ⇑g) {h : P → N} (hgh : Function.RightInverse h ⇑g) (y : TensorProduct R N Q),
  (rTensor.inverse_of_rightInverse Q hfg hgh) ((LinearMap.rTensor Q g) y) = Submodule.Quotient.mk y

theorem rTensor.inverse_of_rightInverse_comp_rTensor E1 #

∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} {P : Type u_4} [inst : CommRing R] [inst_1 : AddCommGroup M]
  [inst_2 : AddCommGroup N] [inst_3 : AddCommGroup P] [inst_4 : Module R M] [inst_5 : Module R N] [inst_6 : Module R P]
  {f : M →ₗ[R] N} {g : N →ₗ[R] P} (Q : Type u_5) [inst_7 : AddCommGroup Q] [inst_8 : Module R Q]
  (hfg : Function.Exact ⇑f ⇑g) {h : P → N} (hgh : Function.RightInverse h ⇑g),
  rTensor.inverse_of_rightInverse Q hfg hgh ∘ₗ LinearMap.rTensor Q g = (LinearMap.rTensor Q f).range.mkQ

def rTensor.inverse E1 #

{R : Type u_1} →
  {M : Type u_2} →
    {N : Type u_3} →
      {P : Type u_4} →
        [inst : CommRing R] →
          [inst_1 : AddCommGroup M] →
            [inst_2 : AddCommGroup N] →
              [inst_3 : AddCommGroup P] →
                [inst_4 : Module R M] →
                  [inst_5 : Module R N] →
                    [inst_6 : Module R P] →
                      {f : M →ₗ[R] N} →
                        {g : N →ₗ[R] P} →
                          (Q : Type u_5) →
                            [inst_7 : AddCommGroup Q] →
                              [inst_8 : Module R Q] →
                                Function.Exact ⇑f ⇑g →
                                  Function.Surjective ⇑g →
                                    TensorProduct R P Q →ₗ[R] TensorProduct R N Q ⧸ (LinearMap.rTensor Q f).range

The inverse map in rTensor.equiv

theorem rTensor.inverse_apply E0 #

∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} {P : Type u_4} [inst : CommRing R] [inst_1 : AddCommGroup M]
  [inst_2 : AddCommGroup N] [inst_3 : AddCommGroup P] [inst_4 : Module R M] [inst_5 : Module R N] [inst_6 : Module R P]
  {f : M →ₗ[R] N} {g : N →ₗ[R] P} (Q : Type u_5) [inst_7 : AddCommGroup Q] [inst_8 : Module R Q]
  (hfg : Function.Exact ⇑f ⇑g) (hg : Function.Surjective ⇑g) (y : TensorProduct R N Q),
  (rTensor.inverse Q hfg hg) ((LinearMap.rTensor Q g) y) = Submodule.Quotient.mk y

theorem rTensor.inverse_comp_rTensor E1 #

∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} {P : Type u_4} [inst : CommRing R] [inst_1 : AddCommGroup M]
  [inst_2 : AddCommGroup N] [inst_3 : AddCommGroup P] [inst_4 : Module R M] [inst_5 : Module R N] [inst_6 : Module R P]
  {f : M →ₗ[R] N} {g : N →ₗ[R] P} (Q : Type u_5) [inst_7 : AddCommGroup Q] [inst_8 : Module R Q]
  (hfg : Function.Exact ⇑f ⇑g) (hg : Function.Surjective ⇑g),
  rTensor.inverse Q hfg hg ∘ₗ LinearMap.rTensor Q g = (LinearMap.rTensor Q f).range.mkQ

def rTensor.linearEquiv_of_rightInverse E1 #

{R : Type u_1} →
  {M : Type u_2} →
    {N : Type u_3} →
      {P : Type u_4} →
        [inst : CommRing R] →
          [inst_1 : AddCommGroup M] →
            [inst_2 : AddCommGroup N] →
              [inst_3 : AddCommGroup P] →
                [inst_4 : Module R M] →
                  [inst_5 : Module R N] →
                    [inst_6 : Module R P] →
                      {f : M →ₗ[R] N} →
                        {g : N →ₗ[R] P} →
                          (Q : Type u_5) →
                            [inst_7 : AddCommGroup Q] →
                              [inst_8 : Module R Q] →
                                Function.Exact ⇑f ⇑g →
                                  {h : P → N} →
                                    Function.RightInverse h ⇑g →
                                      (TensorProduct R N Q ⧸ (LinearMap.rTensor Q f).range) ≃ₗ[R] TensorProduct R P Q

For a surjective g : N → P, the natural equivalence between N ⊗ Q ⧸ (image of f ⊗ (id Q)) and P ⊗ Q (computably, given a right inverse).

def rTensor.equiv E1 #

{R : Type u_1} →
  {M : Type u_2} →
    {N : Type u_3} →
      {P : Type u_4} →
        [inst : CommRing R] →
          [inst_1 : AddCommGroup M] →
            [inst_2 : AddCommGroup N] →
              [inst_3 : AddCommGroup P] →
                [inst_4 : Module R M] →
                  [inst_5 : Module R N] →
                    [inst_6 : Module R P] →
                      {f : M →ₗ[R] N} →
                        {g : N →ₗ[R] P} →
                          (Q : Type u_5) →
                            [inst_7 : AddCommGroup Q] →
                              [inst_8 : Module R Q] →
                                Function.Exact ⇑f ⇑g →
                                  Function.Surjective ⇑g →
                                    (TensorProduct R N Q ⧸ (LinearMap.rTensor Q f).range) ≃ₗ[R] TensorProduct R P Q

For a surjective g : N → P, the natural equivalence between N ⊗ Q ⧸ (image of f ⊗ (id Q)) and P ⊗ Q.

theorem rTensor_exact E1 #

∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} {P : Type u_4} [inst : CommRing R] [inst_1 : AddCommGroup M]
  [inst_2 : AddCommGroup N] [inst_3 : AddCommGroup P] [inst_4 : Module R M] [inst_5 : Module R N] [inst_6 : Module R P]
  {f : M →ₗ[R] N} {g : N →ₗ[R] P} (Q : Type u_5) [inst_7 : AddCommGroup Q] [inst_8 : Module R Q],
  Function.Exact ⇑f ⇑g → Function.Surjective ⇑g → Function.Exact ⇑(LinearMap.rTensor Q f) ⇑(LinearMap.rTensor Q g)

Tensoring an exact pair on the right gives an exact pair

theorem rTensor_mkQ E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] (Q : Type u_5)
  [inst_3 : AddCommGroup Q] [inst_4 : Module R Q] (N : Submodule R M),
  (LinearMap.rTensor Q N.mkQ).ker = (LinearMap.rTensor Q N.subtype).range

Right-exactness of tensor product (rTensor)

theorem LinearMap.ker_tensorProductMk E1 #

∀ {R : Type u_1} [inst : CommRing R] (Q : Type u_5) [inst_1 : AddCommGroup Q] [inst_2 : Module R Q] {I : Ideal R},
  ((TensorProduct.mk R (R ⧸ I) Q) 1).ker = I • ⊤

theorem TensorProduct.map_ker E0 #

∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} {P : Type u_4} [inst : CommRing R] [inst_1 : AddCommGroup M]
  [inst_2 : AddCommGroup N] [inst_3 : AddCommGroup P] [inst_4 : Module R M] [inst_5 : Module R N] [inst_6 : Module R P]
  {f : M →ₗ[R] N} {g : N →ₗ[R] P},
  Function.Exact ⇑f ⇑g →
    Function.Surjective ⇑g →
      ∀ {M' : Type u_6} {N' : Type u_7} {P' : Type u_8} [inst_7 : AddCommGroup M'] [inst_8 : AddCommGroup N']
        [inst_9 : AddCommGroup P'] [inst_10 : Module R M'] [inst_11 : Module R N'] [inst_12 : Module R P']
        {f' : M' →ₗ[R] N'} {g' : N' →ₗ[R] P'},
        Function.Exact ⇑f' ⇑g' →
          Function.Surjective ⇑g' →
            (TensorProduct.map g g').ker = (LinearMap.lTensor N f').range ⊔ (LinearMap.rTensor N' f).range

Kernel of a product map (right-exactness of tensor product)

theorem Ideal.map_includeLeft_eq E0 #

∀ {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] (I : Ideal A),
  Submodule.restrictScalars R (Ideal.map Algebra.TensorProduct.includeLeft I) =
    (LinearMap.rTensor B (Submodule.restrictScalars R I).subtype).range

The ideal of A ⊗[R] B generated by I is the image of I ⊗[R] B

theorem Ideal.map_includeRight_eq E0 #

∀ {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] (I : Ideal B),
  Submodule.restrictScalars R (Ideal.map Algebra.TensorProduct.includeRight I) =
    (LinearMap.lTensor A (Submodule.restrictScalars R I).subtype).range

The ideal of A ⊗[R] B generated by I is the image of A ⊗[R] I

theorem TensorProduct.AlgebraTensorModule.range_lTensor_idealMap 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] (S : Type u_4) [inst_5 : CommSemiring S] [inst_6 : Algebra R S]
  [inst_7 : Algebra S A] [inst_8 : IsScalarTower R S A] (I : Ideal B),
  ((TensorProduct.AlgebraTensorModule.lTensor S A) (↑R (Submodule.subtype I))).range =
    Submodule.restrictScalars S (Ideal.map Algebra.TensorProduct.includeRight I)

theorem Algebra.TensorProduct.lTensor_ker E1 #

∀ {R : Type u_4} [inst : CommRing R] {A : Type u_6} {C : Type u_8} {D : Type u_9} [inst_1 : Ring A] [inst_2 : Ring C]
  [inst_3 : Ring D] [inst_4 : Algebra R A] [inst_5 : Algebra R C] [inst_6 : Algebra R D] (g : C →ₐ[R] D),
  Function.Surjective ⇑g →
    RingHom.ker (Algebra.TensorProduct.map (AlgHom.id R A) g) =
      Ideal.map Algebra.TensorProduct.includeRight (RingHom.ker g)

If g is surjective, then the kernel of (id A) ⊗ g is generated by the kernel of g

theorem Algebra.TensorProduct.rTensor_ker E1 #

∀ {R : Type u_4} {S : Type u_5} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] {A : Type u_6}
  {B : Type u_7} {C : Type u_8} [inst_3 : Ring A] [inst_4 : Ring B] [inst_5 : Ring C] [inst_6 : Algebra R A]
  [inst_7 : Algebra R B] [inst_8 : Algebra R C] [inst_9 : Algebra S A] [inst_10 : Algebra S B]
  [inst_11 : IsScalarTower R S A] [inst_12 : IsScalarTower R S B] (f : A →ₐ[S] B),
  Function.Surjective ⇑f →
    RingHom.ker (Algebra.TensorProduct.map f (AlgHom.id R C)) =
      Ideal.map Algebra.TensorProduct.includeLeft (RingHom.ker f)

If f is surjective, then the kernel of f ⊗ (id B) is generated by the kernel of f

theorem Algebra.TensorProduct.map_surjective E0 #

∀ {R : Type u_4} {S : Type u_5} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] {A : Type u_6}
  {B : Type u_7} {C : Type u_8} {D : Type u_9} [inst_3 : Ring A] [inst_4 : Ring B] [inst_5 : Ring C] [inst_6 : Ring D]
  [inst_7 : Algebra R A] [inst_8 : Algebra R B] [inst_9 : Algebra R C] [inst_10 : Algebra R D] [inst_11 : Algebra S A]
  [inst_12 : Algebra S B] [inst_13 : IsScalarTower R S A] [inst_14 : IsScalarTower R S B] (f : A →ₐ[S] B)
  (g : C →ₐ[R] D),
  Function.Surjective ⇑f → Function.Surjective ⇑g → Function.Surjective ⇑(Algebra.TensorProduct.map f g)

theorem Algebra.TensorProduct.map_ker E0 #

∀ {R : Type u_4} {S : Type u_5} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] {A : Type u_6}
  {B : Type u_7} {C : Type u_8} {D : Type u_9} [inst_3 : Ring A] [inst_4 : Ring B] [inst_5 : Ring C] [inst_6 : Ring D]
  [inst_7 : Algebra R A] [inst_8 : Algebra R B] [inst_9 : Algebra R C] [inst_10 : Algebra R D] [inst_11 : Algebra S A]
  [inst_12 : Algebra S B] [inst_13 : IsScalarTower R S A] [inst_14 : IsScalarTower R S B] (f : A →ₐ[S] B)
  (g : C →ₐ[R] D),
  Function.Surjective ⇑f →
    Function.Surjective ⇑g →
      RingHom.ker (Algebra.TensorProduct.map f g) =
        Ideal.map Algebra.TensorProduct.includeLeft (RingHom.ker f) ⊔
          Ideal.map Algebra.TensorProduct.includeRight (RingHom.ker g)

If f and g are surjective morphisms of algebras, then the kernel of Algebra.TensorProduct.map f g is generated by the kernels of f and g