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 / V07. Linear algebra

Mathlib.Algebra.Module.Bimodule

14 declarations. Mathlib docs · Source

Bimodules

One frequently encounters situations in which several sets of scalars act on a single space, subject to compatibility condition(s). A distinguished instance of this is the theory of bimodules: one has two rings R, S acting on an additive group M, with R acting covariantly ("on the left") and S acting contravariantly ("on the right"). The compatibility condition is just: (r • m) • s = r • (m • s) for all r : R, s : S, m : M.

This situation can be set up in Mathlib as:

variable (R S M : Type*) [Ring R] [Ring S]
variable [AddCommGroup M] [Module R M] [Module Sᵐᵒᵖ M] [SMulCommClass R Sᵐᵒᵖ M]

The key fact is:

example : Module (R ⊗[ℕ] Sᵐᵒᵖ) M := TensorProduct.Algebra.module

Note that the corresponding result holds for the canonically isomorphic ring R ⊗[ℤ] Sᵐᵒᵖ but it is preferable to use the R ⊗[ℕ] Sᵐᵒᵖ instance since it works without additive inverses.

Bimodules are thus just a special case of Modules and most of their properties follow from the theory of Modules. In particular a two-sided Submodule of a bimodule is simply a term of type Submodule (R ⊗[ℕ] Sᵐᵒᵖ) M.

This file is a place to collect results which are specific to bimodules.

Main definitions

  • Subbimodule.mk
  • Subbimodule.smul_mem
  • Subbimodule.smul_mem'
  • Subbimodule.toSubmodule
  • Subbimodule.toSubmodule'

Implementation notes

For many definitions and lemmas it is preferable to set things up without opposites, i.e., as: [Module S M] [SMulCommClass R S M] rather than [Module Sᵐᵒᵖ M] [SMulCommClass R Sᵐᵒᵖ M]. The corresponding results for opposites then follow automatically and do not require taking advantage of the fact that (Sᵐᵒᵖ)ᵐᵒᵖ is defeq to S.

TODO

Develop the theory of two-sided ideals, which have type Submodule (R ⊗[ℕ] Rᵐᵒᵖ) R.

def Subbimodule.mk E3 #

{R : Type u_1} →
  {A : Type u_2} →
    {B : Type u_3} →
      {M : Type u_4} →
        [inst : CommSemiring R] →
          [inst_1 : AddCommMonoid M] →
            [inst_2 : Module R M] →
              [inst_3 : Semiring A] →
                [inst_4 : Semiring B] →
                  [inst_5 : Module A M] →
                    [inst_6 : Module B M] →
                      [inst_7 : Algebra R A] →
                        [inst_8 : Algebra R B] →
                          [inst_9 : IsScalarTower R A M] →
                            [inst_10 : IsScalarTower R B M] →
                              [inst_11 : SMulCommClass A B M] →
                                (p : AddSubmonoid M) →
                                  (∀ (a : A) {m : M}, m ∈ p → a • m ∈ p) →
                                    (∀ (b : B) {m : M}, m ∈ p → b • m ∈ p) → Submodule (TensorProduct R A B) M

A constructor for a subbimodule which demands closure under the two sets of scalars individually, rather than jointly via their tensor product.

Note that R plays no role but it is convenient to make this generalisation to support the cases R = ℕ and R = ℤ which both show up naturally. See also Subbimodule.baseChange.

theorem Subbimodule.coe_mk E0 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} {M : Type u_4} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] [inst_3 : Semiring A] [inst_4 : Semiring B] [inst_5 : Module A M] [inst_6 : Module B M]
  [inst_7 : Algebra R A] [inst_8 : Algebra R B] [inst_9 : IsScalarTower R A M] [inst_10 : IsScalarTower R B M]
  [inst_11 : SMulCommClass A B M] (p : AddSubmonoid M) (hA : ∀ (a : A) {m : M}, m ∈ p → a • m ∈ p)
  (hB : ∀ (b : B) {m : M}, m ∈ p → b • m ∈ p), ↑(Subbimodule.mk p hA hB) = ↑p

theorem Subbimodule.smul_mem E3 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} {M : Type u_4} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] [inst_3 : Semiring A] [inst_4 : Semiring B] [inst_5 : Module A M] [inst_6 : Module B M]
  [inst_7 : Algebra R A] [inst_8 : Algebra R B] [inst_9 : IsScalarTower R A M] [inst_10 : IsScalarTower R B M]
  [inst_11 : SMulCommClass A B M] (p : Submodule (TensorProduct R A B) M) (a : A) {m : M}, m ∈ p → a • m ∈ p

theorem Subbimodule.smul_mem' E3 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} {M : Type u_4} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] [inst_3 : Semiring A] [inst_4 : Semiring B] [inst_5 : Module A M] [inst_6 : Module B M]
  [inst_7 : Algebra R A] [inst_8 : Algebra R B] [inst_9 : IsScalarTower R A M] [inst_10 : IsScalarTower R B M]
  [inst_11 : SMulCommClass A B M] (p : Submodule (TensorProduct R A B) M) (b : B) {m : M}, m ∈ p → b • m ∈ p

def Subbimodule.baseChange E1 #

{R : Type u_1} →
  {A : Type u_2} →
    {B : Type u_3} →
      {M : Type u_4} →
        [inst : CommSemiring R] →
          [inst_1 : AddCommMonoid M] →
            [inst_2 : Module R M] →
              [inst_3 : Semiring A] →
                [inst_4 : Semiring B] →
                  [inst_5 : Module A M] →
                    [inst_6 : Module B M] →
                      [inst_7 : Algebra R A] →
                        [inst_8 : Algebra R B] →
                          [inst_9 : IsScalarTower R A M] →
                            [inst_10 : IsScalarTower R B M] →
                              [inst_11 : SMulCommClass A B M] →
                                (S : Type u_5) →
                                  [inst_12 : CommSemiring S] →
                                    [inst_13 : Module S M] →
                                      [inst_14 : Algebra S A] →
                                        [inst_15 : Algebra S B] →
                                          [inst_16 : IsScalarTower S A M] →
                                            [inst_17 : IsScalarTower S B M] →
                                              Submodule (TensorProduct R A B) M → Submodule (TensorProduct S A B) M

If A and B are also Algebras over yet another set of scalars S then we may "base change" from R to S.

theorem Subbimodule.coe_baseChange E0 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} {M : Type u_4} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] [inst_3 : Semiring A] [inst_4 : Semiring B] [inst_5 : Module A M] [inst_6 : Module B M]
  [inst_7 : Algebra R A] [inst_8 : Algebra R B] [inst_9 : IsScalarTower R A M] [inst_10 : IsScalarTower R B M]
  [inst_11 : SMulCommClass A B M] (S : Type u_5) [inst_12 : CommSemiring S] [inst_13 : Module S M]
  [inst_14 : Algebra S A] [inst_15 : Algebra S B] [inst_16 : IsScalarTower S A M] [inst_17 : IsScalarTower S B M]
  (p : Submodule (TensorProduct R A B) M), ↑(Subbimodule.baseChange S p) = ↑p

def Subbimodule.toSubmodule E3 #

{R : Type u_1} →
  {A : Type u_2} →
    {B : Type u_3} →
      {M : Type u_4} →
        [inst : CommSemiring R] →
          [inst_1 : AddCommMonoid M] →
            [inst_2 : Module R M] →
              [inst_3 : Semiring A] →
                [inst_4 : Semiring B] →
                  [inst_5 : Module A M] →
                    [inst_6 : Module B M] →
                      [inst_7 : Algebra R A] →
                        [inst_8 : Algebra R B] →
                          [inst_9 : IsScalarTower R A M] →
                            [inst_10 : IsScalarTower R B M] →
                              [inst_11 : SMulCommClass A B M] → Submodule (TensorProduct R A B) M → Submodule A M

Forgetting the B action, a Submodule over A ⊗[R] B is just a Submodule over A.

theorem Subbimodule.coe_toSubmodule E0 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} {M : Type u_4} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] [inst_3 : Semiring A] [inst_4 : Semiring B] [inst_5 : Module A M] [inst_6 : Module B M]
  [inst_7 : Algebra R A] [inst_8 : Algebra R B] [inst_9 : IsScalarTower R A M] [inst_10 : IsScalarTower R B M]
  [inst_11 : SMulCommClass A B M] (p : Submodule (TensorProduct R A B) M), ↑(Subbimodule.toSubmodule p) = ↑p

def Subbimodule.toSubmodule' E3 #

{R : Type u_1} →
  {A : Type u_2} →
    {B : Type u_3} →
      {M : Type u_4} →
        [inst : CommSemiring R] →
          [inst_1 : AddCommMonoid M] →
            [inst_2 : Module R M] →
              [inst_3 : Semiring A] →
                [inst_4 : Semiring B] →
                  [inst_5 : Module A M] →
                    [inst_6 : Module B M] →
                      [inst_7 : Algebra R A] →
                        [inst_8 : Algebra R B] →
                          [inst_9 : IsScalarTower R A M] →
                            [inst_10 : IsScalarTower R B M] →
                              [inst_11 : SMulCommClass A B M] → Submodule (TensorProduct R A B) M → Submodule B M

Forgetting the A action, a Submodule over A ⊗[R] B is just a Submodule over B.

theorem Subbimodule.coe_toSubmodule' E0 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} {M : Type u_4} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] [inst_3 : Semiring A] [inst_4 : Semiring B] [inst_5 : Module A M] [inst_6 : Module B M]
  [inst_7 : Algebra R A] [inst_8 : Algebra R B] [inst_9 : IsScalarTower R A M] [inst_10 : IsScalarTower R B M]
  [inst_11 : SMulCommClass A B M] (p : Submodule (TensorProduct R A B) M), ↑(Subbimodule.toSubmodule' p) = ↑p

def Subbimodule.toSubbimoduleInt E1 #

(R : Type u_1) →
  (S : Type u_2) →
    (M : Type u_3) →
      [inst : Ring R] →
        [inst_1 : Ring S] →
          [inst_2 : AddCommGroup M] →
            [inst_3 : Module R M] →
              [inst_4 : Module S M] →
                [inst_5 : SMulCommClass R S M] → Submodule (TensorProduct ℕ R S) M → Submodule (TensorProduct ℤ R S) M

A Submodule over R ⊗[ℕ] S is naturally also a Submodule over the canonically-isomorphic ring R ⊗[ℤ] S.

theorem Subbimodule.coe_toSubbimoduleInt E0 #

∀ (R : Type u_1) (S : Type u_2) (M : Type u_3) [inst : Ring R] [inst_1 : Ring S] [inst_2 : AddCommGroup M]
  [inst_3 : Module R M] [inst_4 : Module S M] [inst_5 : SMulCommClass R S M] (p : Submodule (TensorProduct ℕ R S) M),
  ↑(Subbimodule.toSubbimoduleInt R S M p) = ↑p

def Subbimodule.toSubbimoduleNat E1 #

(R : Type u_1) →
  (S : Type u_2) →
    (M : Type u_3) →
      [inst : Ring R] →
        [inst_1 : Ring S] →
          [inst_2 : AddCommGroup M] →
            [inst_3 : Module R M] →
              [inst_4 : Module S M] →
                [inst_5 : SMulCommClass R S M] → Submodule (TensorProduct ℤ R S) M → Submodule (TensorProduct ℕ R S) M

A Submodule over R ⊗[ℤ] S is naturally also a Submodule over the canonically-isomorphic ring R ⊗[ℕ] S.

theorem Subbimodule.coe_toSubbimoduleNat E0 #

∀ (R : Type u_1) (S : Type u_2) (M : Type u_3) [inst : Ring R] [inst_1 : Ring S] [inst_2 : AddCommGroup M]
  [inst_3 : Module R M] [inst_4 : Module S M] [inst_5 : SMulCommClass R S M] (p : Submodule (TensorProduct ℤ R S) M),
  ↑(Subbimodule.toSubbimoduleNat R S M p) = ↑p