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 / V26. Homological algebra

Mathlib.Algebra.Category.ModuleCat.ChangeOfRings

132 declarations. Mathlib docs · Source

Change Of Rings

Main definitions

  • ModuleCat.restrictScalars: given rings R, S and a ring homomorphism R ⟶ S, then restrictScalars : ModuleCat S ⥤ ModuleCat R is defined by M ↦ M where an S-module M is seen as an R-module by r • m := f r • m and S-linear map l : M ⟶ M' is R-linear as well.

  • ModuleCat.extendScalars: given commutative rings R, S and ring homomorphism f : R ⟶ S, then extendScalars : ModuleCat R ⥤ ModuleCat S is defined by M ↦ S ⨂ M where the module structure is defined by s • (s' ⊗ m) := (s * s') ⊗ m and R-linear map l : M ⟶ M' is sent to S-linear map s ⊗ m ↦ s ⊗ l m : S ⨂ M ⟶ S ⨂ M'.

  • ModuleCat.coextendScalars: given rings R, S and a ring homomorphism R ⟶ S then coextendScalars : ModuleCat R ⥤ ModuleCat S is defined by M ↦ (S →ₗ[R] M) where S is seen as an R-module by restriction of scalars and l ↦ l ∘ _.

Main results

  • ModuleCat.extendRestrictScalarsAdj: given commutative rings R, S and a ring homomorphism f : R →+* S, the extension and restriction of scalars by f are adjoint functors.
  • ModuleCat.restrictCoextendScalarsAdj: given rings R, S and a ring homomorphism f : R ⟶ S then coextendScalars f is the right adjoint of restrictScalars f.

Notation

Let R, S be rings and f : R →+* S

  • if M is an R-module, s : S and m : M, then s ⊗ₜ[R, f] m is the pure tensor s ⊗ m : S ⊗[R, f] M.

theorem ModuleCat.restrictScalarsComp'App.congr_simp E1 #

∀ {R₁ : Type u₁} {R₂ : Type u₂} {R₃ : Type u₃} [inst : Ring R₁] [inst_1 : Ring R₂] [inst_2 : Ring R₃] (f : R₁ →+* R₂)
  (g : R₂ →+* R₃) (gf : R₁ →+* R₃) (hgf : gf = g.comp f) (M : ModuleCat R₃),
  ModuleCat.restrictScalarsComp'App f g gf hgf M = ModuleCat.restrictScalarsComp'App f g gf hgf M

theorem ModuleCat.restrictScalarsId'App.congr_simp E1 #

∀ {R : Type u₁} [inst : Ring R] (f : R →+* R) (hf : f = RingHom.id R) (M : ModuleCat R),
  ModuleCat.restrictScalarsId'App f hf M = ModuleCat.restrictScalarsId'App f hf M

def ModuleCat.RestrictScalars.obj' E1 #

{R : Type u₁} → {S : Type u₂} → [inst : Ring R] → [inst_1 : Ring S] → (R →+* S) → ModuleCat S → ModuleCat R

Any S-module M is also an R-module via a ring homomorphism f : R ⟶ S by defining r • m := f r • m (Module.compHom). This is called restriction of scalars.

def ModuleCat.RestrictScalars.map' E1 #

{R : Type u₁} →
  {S : Type u₂} →
    [inst : Ring R] →
      [inst_1 : Ring S] →
        (f : R →+* S) →
          {M M' : ModuleCat S} → (M ⟶ M') → (ModuleCat.RestrictScalars.obj' f M ⟶ ModuleCat.RestrictScalars.obj' f M')

Given an S-linear map g : M → M' between S-modules, g is also R-linear between M and M' by means of restriction of scalars.

def ModuleCat.restrictScalars E3 #

{R : Type u₁} →
  {S : Type u₂} → [inst : Ring R] → [inst_1 : Ring S] → (R →+* S) → CategoryTheory.Functor (ModuleCat S) (ModuleCat R)

The restriction of scalars operation is functorial. For any f : R →+* S a ring homomorphism,

  • an S-module M can be considered as R-module by r • m = f r • m
  • an S-linear map is also R-linear

theorem ModuleCat.smul_restrictScalars E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : Ring R] [inst_1 : Ring S] (f : R →+* S) (r : R) (M : ModuleCat S),
  ((ModuleCat.restrictScalars f).obj M).smul r = M.smul (f r)

theorem ModuleCat.forget₂_map_restrictScalars E1 #

∀ {R : Type u₁} {S : Type u₂} [inst : Ring R] [inst_1 : Ring S] (f : R →+* S) {M N : ModuleCat S} (g : M ⟶ N),
  (CategoryTheory.forget₂ (ModuleCat R) Ab).map ((ModuleCat.restrictScalars f).map g) =
    (CategoryTheory.forget₂ (ModuleCat S) Ab).map g

instance ModuleCat.instFaithfulRestrictScalars E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : Ring R] [inst_1 : Ring S] (f : R →+* S), (ModuleCat.restrictScalars f).Faithful

instance ModuleCat.instPreservesMonomorphismsRestrictScalars E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : Ring R] [inst_1 : Ring S] (f : R →+* S),
  (ModuleCat.restrictScalars f).PreservesMonomorphisms

instance ModuleCat.instReflectsIsomorphismsRestrictScalars E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Ring R] [inst_1 : Ring S] (f : R →+* S),
  (ModuleCat.restrictScalars f).ReflectsIsomorphisms

instance ModuleCat.instModuleCarrierObjRestrictScalars E0 #

{R : Type u₁} →
  {S : Type u₂} →
    [inst : Ring R] →
      [inst_1 : Ring S] → {f : R →+* S} → {M : ModuleCat S} → Module S ↑((ModuleCat.restrictScalars f).obj M)

theorem ModuleCat.restrictScalars.map_apply E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : Ring R] [inst_1 : Ring S] (f : R →+* S) {M M' : ModuleCat S} (g : M ⟶ M')
  (x : ↑((ModuleCat.restrictScalars f).obj M)),
  (CategoryTheory.ConcreteCategory.hom ((ModuleCat.restrictScalars f).map g)) x =
    (CategoryTheory.ConcreteCategory.hom g) x

theorem ModuleCat.restrictScalars.smul_def E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : Ring R] [inst_1 : Ring S] (f : R →+* S) {M : ModuleCat S} (r : R)
  (m : ↑((ModuleCat.restrictScalars f).obj M)),
  r • m =
    f r •
      have this := m;
      this

theorem ModuleCat.restrictScalars.smul_def' E1 #

∀ {R : Type u₁} {S : Type u₂} [inst : Ring R] [inst_1 : Ring S] (f : R →+* S) {M : ModuleCat S} (r : R) (m : ↑M),
  (r •
      have this := m;
      this) =
    f r • m

instance ModuleCat.sMulCommClass_mk E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : Ring R] [inst_1 : CommRing S] (f : R →+* S) (M : Type v) [I : AddCommGroup M]
  [inst_2 : Module S M], SMulCommClass R S M

def ModuleCat.semilinearMapAddEquiv E1 #

{R : Type u₁} →
  {S : Type u₂} →
    [inst : Ring R] →
      [inst_1 : Ring S] →
        (f : R →+* S) →
          (M : ModuleCat R) → (N : ModuleCat S) → (↑M →ₛₗ[f] ↑N) ≃+ (M ⟶ (ModuleCat.restrictScalars f).obj N)

Semilinear maps M →ₛₗ[f] N identify to morphisms M ⟶ (ModuleCat.restrictScalars f).obj N.

theorem ModuleCat.semilinearMapAddEquiv_symm_apply_apply E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : Ring R] [inst_1 : Ring S] (f : R →+* S) (M : ModuleCat R) (N : ModuleCat S)
  (g : M ⟶ (ModuleCat.restrictScalars f).obj N) (a : ↑M),
  ((ModuleCat.semilinearMapAddEquiv f M N).symm g) a = (CategoryTheory.ConcreteCategory.hom g) a

theorem ModuleCat.semilinearMapAddEquiv_apply E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : Ring R] [inst_1 : Ring S] (f : R →+* S) (M : ModuleCat R) (N : ModuleCat S)
  (g : ↑M →ₛₗ[f] ↑N),
  (ModuleCat.semilinearMapAddEquiv f M N) g = ModuleCat.ofHom { toFun := ⇑g, map_add' := ⋯, map_smul' := ⋯ }

def ModuleCat.restrictScalarsCongr E1 #

{R : Type u₁} →
  {S : Type u₂} →
    [inst : Ring R] →
      [inst_1 : Ring S] → {f g : R →+* S} → f = g → (ModuleCat.restrictScalars f ≅ ModuleCat.restrictScalars g)

Restrictions scalars along equal ring homomorphisms are naturally isomorphic.

theorem ModuleCat.restrictScalarsCongr_symm E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : Ring R] [inst_1 : Ring S] {f g : R →+* S} (e : f = g),
  (ModuleCat.restrictScalarsCongr e).symm = ModuleCat.restrictScalarsCongr ⋯

theorem ModuleCat.restrictScalarsCongr_hom_app E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : Ring R] [inst_1 : Ring S] {f g : R →+* S} (e : f = g) (M : ModuleCat S) (x : ↑M),
  (CategoryTheory.ConcreteCategory.hom ((ModuleCat.restrictScalarsCongr e).hom.app M)) x = x

theorem ModuleCat.restrictScalarsCongr_inv_app E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : Ring R] [inst_1 : Ring S] {f g : R →+* S} (e : f = g) (M : ModuleCat S) (x : ↑M),
  (CategoryTheory.ConcreteCategory.hom ((ModuleCat.restrictScalarsCongr e).inv.app M)) x = x

def ModuleCat.restrictScalarsId'App E1 #

{R : Type u₁} →
  [inst : Ring R] → (f : R →+* R) → f = RingHom.id R → (M : ModuleCat R) → (ModuleCat.restrictScalars f).obj M ≅ M

For an R-module M, the restriction of scalars of M by the identity morphism identifies to M.

theorem ModuleCat.restrictScalarsId'App_hom_apply E0 #

∀ {R : Type u₁} [inst : Ring R] (f : R →+* R) (hf : f = RingHom.id R) (M : ModuleCat R) (x : ↑M),
  (CategoryTheory.ConcreteCategory.hom (ModuleCat.restrictScalarsId'App f hf M).hom) x = x

theorem ModuleCat.restrictScalarsId'App_inv_apply E0 #

∀ {R : Type u₁} [inst : Ring R] (f : R →+* R) (hf : f = RingHom.id R) (M : ModuleCat R) (x : ↑M),
  (CategoryTheory.ConcreteCategory.hom (ModuleCat.restrictScalarsId'App f hf M).inv) x = x

def ModuleCat.restrictScalarsId' E1 #

{R : Type u₁} →
  [inst : Ring R] →
    (f : R →+* R) → f = RingHom.id R → (ModuleCat.restrictScalars f ≅ CategoryTheory.Functor.id (ModuleCat R))

The restriction of scalars by a ring morphism that is the identity identifies to the identity functor.

theorem ModuleCat.restrictScalarsId'_inv_app E0 #

∀ {R : Type u₁} [inst : Ring R] (f : R →+* R) (hf : f = RingHom.id R) (X : ModuleCat R),
  (ModuleCat.restrictScalarsId' f hf).inv.app X = (ModuleCat.restrictScalarsId'App f hf X).inv

theorem ModuleCat.restrictScalarsId'_hom_app E0 #

∀ {R : Type u₁} [inst : Ring R] (f : R →+* R) (hf : f = RingHom.id R) (X : ModuleCat R),
  (ModuleCat.restrictScalarsId' f hf).hom.app X = (ModuleCat.restrictScalarsId'App f hf X).hom

theorem ModuleCat.restrictScalarsId'App_hom_naturality E1 #

∀ {R : Type u₁} [inst : Ring R] (f : R →+* R) (hf : f = RingHom.id R) {M N : ModuleCat R} (φ : M ⟶ N),
  CategoryTheory.CategoryStruct.comp ((ModuleCat.restrictScalars f).map φ)
      (ModuleCat.restrictScalarsId'App f hf N).hom =
    CategoryTheory.CategoryStruct.comp (ModuleCat.restrictScalarsId'App f hf M).hom φ

theorem ModuleCat.restrictScalarsId'App_hom_naturality_assoc E1 #

∀ {R : Type u₁} [inst : Ring R] (f : R →+* R) (hf : f = RingHom.id R) {M N : ModuleCat R} (φ : M ⟶ N) {Z : ModuleCat R}
  (h : N ⟶ Z),
  CategoryTheory.CategoryStruct.comp ((ModuleCat.restrictScalars f).map φ)
      (CategoryTheory.CategoryStruct.comp (ModuleCat.restrictScalarsId'App f hf N).hom h) =
    CategoryTheory.CategoryStruct.comp (ModuleCat.restrictScalarsId'App f hf M).hom
      (CategoryTheory.CategoryStruct.comp φ h)

theorem ModuleCat.restrictScalarsId'App_inv_naturality_assoc E1 #

∀ {R : Type u₁} [inst : Ring R] (f : R →+* R) (hf : f = RingHom.id R) {M N : ModuleCat R} (φ : M ⟶ N) {Z : ModuleCat R}
  (h : (ModuleCat.restrictScalars f).obj N ⟶ Z),
  CategoryTheory.CategoryStruct.comp φ
      (CategoryTheory.CategoryStruct.comp (ModuleCat.restrictScalarsId'App f hf N).inv h) =
    CategoryTheory.CategoryStruct.comp (ModuleCat.restrictScalarsId'App f hf M).inv
      (CategoryTheory.CategoryStruct.comp ((ModuleCat.restrictScalars f).map φ) h)

theorem ModuleCat.restrictScalarsId'App_inv_naturality E1 #

∀ {R : Type u₁} [inst : Ring R] (f : R →+* R) (hf : f = RingHom.id R) {M N : ModuleCat R} (φ : M ⟶ N),
  CategoryTheory.CategoryStruct.comp φ (ModuleCat.restrictScalarsId'App f hf N).inv =
    CategoryTheory.CategoryStruct.comp (ModuleCat.restrictScalarsId'App f hf M).inv
      ((ModuleCat.restrictScalars f).map φ)

abbrev ModuleCat.restrictScalarsId E1 #

(R : Type u₁) → [inst : Ring R] → ModuleCat.restrictScalars (RingHom.id R) ≅ CategoryTheory.Functor.id (ModuleCat R)

The restriction of scalars by the identity morphism identifies to the identity functor.

def ModuleCat.restrictScalarsComp'App E1 #

{R₁ : Type u₁} →
  {R₂ : Type u₂} →
    {R₃ : Type u₃} →
      [inst : Ring R₁] →
        [inst_1 : Ring R₂] →
          [inst_2 : Ring R₃] →
            (f : R₁ →+* R₂) →
              (g : R₂ →+* R₃) →
                (gf : R₁ →+* R₃) →
                  gf = g.comp f →
                    (M : ModuleCat R₃) →
                      (ModuleCat.restrictScalars gf).obj M ≅
                        (ModuleCat.restrictScalars f).obj ((ModuleCat.restrictScalars g).obj M)

For each R₃-module M, restriction of scalars of M by a composition of ring morphisms identifies to successively restricting scalars.

theorem ModuleCat.restrictScalarsComp'App_hom_apply E0 #

∀ {R₁ : Type u₁} {R₂ : Type u₂} {R₃ : Type u₃} [inst : Ring R₁] [inst_1 : Ring R₂] [inst_2 : Ring R₃] (f : R₁ →+* R₂)
  (g : R₂ →+* R₃) (gf : R₁ →+* R₃) (hgf : gf = g.comp f) (M : ModuleCat R₃) (x : ↑M),
  (CategoryTheory.ConcreteCategory.hom (ModuleCat.restrictScalarsComp'App f g gf hgf M).hom) x = x

theorem ModuleCat.restrictScalarsComp'App_inv_apply E0 #

∀ {R₁ : Type u₁} {R₂ : Type u₂} {R₃ : Type u₃} [inst : Ring R₁] [inst_1 : Ring R₂] [inst_2 : Ring R₃] (f : R₁ →+* R₂)
  (g : R₂ →+* R₃) (gf : R₁ →+* R₃) (hgf : gf = g.comp f) (M : ModuleCat R₃) (x : ↑M),
  (CategoryTheory.ConcreteCategory.hom (ModuleCat.restrictScalarsComp'App f g gf hgf M).inv) x = x

def ModuleCat.restrictScalarsComp' E1 #

{R₁ : Type u₁} →
  {R₂ : Type u₂} →
    {R₃ : Type u₃} →
      [inst : Ring R₁] →
        [inst_1 : Ring R₂] →
          [inst_2 : Ring R₃] →
            (f : R₁ →+* R₂) →
              (g : R₂ →+* R₃) →
                (gf : R₁ →+* R₃) →
                  gf = g.comp f →
                    (ModuleCat.restrictScalars gf ≅ (ModuleCat.restrictScalars g).comp (ModuleCat.restrictScalars f))

The restriction of scalars by a composition of ring morphisms identifies to the composition of the restriction of scalars functors.

theorem ModuleCat.restrictScalarsComp'_inv_app E0 #

∀ {R₁ : Type u₁} {R₂ : Type u₂} {R₃ : Type u₃} [inst : Ring R₁] [inst_1 : Ring R₂] [inst_2 : Ring R₃] (f : R₁ →+* R₂)
  (g : R₂ →+* R₃) (gf : R₁ →+* R₃) (hgf : gf = g.comp f) (X : ModuleCat R₃),
  (ModuleCat.restrictScalarsComp' f g gf hgf).inv.app X = (ModuleCat.restrictScalarsComp'App f g gf hgf X).inv

theorem ModuleCat.restrictScalarsComp'_hom_app E0 #

∀ {R₁ : Type u₁} {R₂ : Type u₂} {R₃ : Type u₃} [inst : Ring R₁] [inst_1 : Ring R₂] [inst_2 : Ring R₃] (f : R₁ →+* R₂)
  (g : R₂ →+* R₃) (gf : R₁ →+* R₃) (hgf : gf = g.comp f) (X : ModuleCat R₃),
  (ModuleCat.restrictScalarsComp' f g gf hgf).hom.app X = (ModuleCat.restrictScalarsComp'App f g gf hgf X).hom

theorem ModuleCat.restrictScalarsComp'App_hom_naturality_assoc E1 #

∀ {R₁ : Type u₁} {R₂ : Type u₂} {R₃ : Type u₃} [inst : Ring R₁] [inst_1 : Ring R₂] [inst_2 : Ring R₃] (f : R₁ →+* R₂)
  (g : R₂ →+* R₃) (gf : R₁ →+* R₃) (hgf : gf = g.comp f) {M N : ModuleCat R₃} (φ : M ⟶ N) {Z : ModuleCat R₁}
  (h : (ModuleCat.restrictScalars f).obj ((ModuleCat.restrictScalars g).obj N) ⟶ Z),
  CategoryTheory.CategoryStruct.comp ((ModuleCat.restrictScalars gf).map φ)
      (CategoryTheory.CategoryStruct.comp (ModuleCat.restrictScalarsComp'App f g gf hgf N).hom h) =
    CategoryTheory.CategoryStruct.comp (ModuleCat.restrictScalarsComp'App f g gf hgf M).hom
      (CategoryTheory.CategoryStruct.comp ((ModuleCat.restrictScalars f).map ((ModuleCat.restrictScalars g).map φ)) h)

theorem ModuleCat.restrictScalarsComp'App_hom_naturality E1 #

∀ {R₁ : Type u₁} {R₂ : Type u₂} {R₃ : Type u₃} [inst : Ring R₁] [inst_1 : Ring R₂] [inst_2 : Ring R₃] (f : R₁ →+* R₂)
  (g : R₂ →+* R₃) (gf : R₁ →+* R₃) (hgf : gf = g.comp f) {M N : ModuleCat R₃} (φ : M ⟶ N),
  CategoryTheory.CategoryStruct.comp ((ModuleCat.restrictScalars gf).map φ)
      (ModuleCat.restrictScalarsComp'App f g gf hgf N).hom =
    CategoryTheory.CategoryStruct.comp (ModuleCat.restrictScalarsComp'App f g gf hgf M).hom
      ((ModuleCat.restrictScalars f).map ((ModuleCat.restrictScalars g).map φ))

theorem ModuleCat.restrictScalarsComp'App_inv_naturality E1 #

∀ {R₁ : Type u₁} {R₂ : Type u₂} {R₃ : Type u₃} [inst : Ring R₁] [inst_1 : Ring R₂] [inst_2 : Ring R₃] (f : R₁ →+* R₂)
  (g : R₂ →+* R₃) (gf : R₁ →+* R₃) (hgf : gf = g.comp f) {M N : ModuleCat R₃} (φ : M ⟶ N),
  CategoryTheory.CategoryStruct.comp ((ModuleCat.restrictScalars f).map ((ModuleCat.restrictScalars g).map φ))
      (ModuleCat.restrictScalarsComp'App f g gf hgf N).inv =
    CategoryTheory.CategoryStruct.comp (ModuleCat.restrictScalarsComp'App f g gf hgf M).inv
      ((ModuleCat.restrictScalars gf).map φ)

theorem ModuleCat.restrictScalarsComp'App_inv_naturality_assoc E1 #

∀ {R₁ : Type u₁} {R₂ : Type u₂} {R₃ : Type u₃} [inst : Ring R₁] [inst_1 : Ring R₂] [inst_2 : Ring R₃] (f : R₁ →+* R₂)
  (g : R₂ →+* R₃) (gf : R₁ →+* R₃) (hgf : gf = g.comp f) {M N : ModuleCat R₃} (φ : M ⟶ N) {Z : ModuleCat R₁}
  (h : (ModuleCat.restrictScalars gf).obj N ⟶ Z),
  CategoryTheory.CategoryStruct.comp ((ModuleCat.restrictScalars f).map ((ModuleCat.restrictScalars g).map φ))
      (CategoryTheory.CategoryStruct.comp (ModuleCat.restrictScalarsComp'App f g gf hgf N).inv h) =
    CategoryTheory.CategoryStruct.comp (ModuleCat.restrictScalarsComp'App f g gf hgf M).inv
      (CategoryTheory.CategoryStruct.comp ((ModuleCat.restrictScalars gf).map φ) h)

abbrev ModuleCat.restrictScalarsComp E1 #

{R₁ : Type u₁} →
  {R₂ : Type u₂} →
    {R₃ : Type u₃} →
      [inst : Ring R₁] →
        [inst_1 : Ring R₂] →
          [inst_2 : Ring R₃] →
            (f : R₁ →+* R₂) →
              (g : R₂ →+* R₃) →
                ModuleCat.restrictScalars (g.comp f) ≅ (ModuleCat.restrictScalars g).comp (ModuleCat.restrictScalars f)

The restriction of scalars by a composition of ring morphisms identifies to the composition of the restriction of scalars functors.

def ModuleCat.restrictScalarsEquivalenceOfRingEquiv E1 #

{R : Type u_1} → {S : Type u_2} → [inst : Ring R] → [inst_1 : Ring S] → R ≃+* S → (ModuleCat S ≌ ModuleCat R)

The equivalence of categories ModuleCat S ≌ ModuleCat R induced by e : R ≃+* S.

theorem ModuleCat.restrictScalarsEquivalenceOfRingEquiv_unitIso E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Ring R] [inst_1 : Ring S] (e : R ≃+* S),
  (ModuleCat.restrictScalarsEquivalenceOfRingEquiv e).unitIso =
    (ModuleCat.restrictScalarsId S).symm ≪≫ ModuleCat.restrictScalarsComp' (↑e.symm) e.toRingHom (RingHom.id S) ⋯

theorem ModuleCat.restrictScalarsEquivalenceOfRingEquiv_counitIso E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Ring R] [inst_1 : Ring S] (e : R ≃+* S),
  (ModuleCat.restrictScalarsEquivalenceOfRingEquiv e).counitIso =
    (ModuleCat.restrictScalarsComp' e.toRingHom e.symm.toRingHom (RingHom.id R) ⋯).symm ≪≫ ModuleCat.restrictScalarsId R

theorem ModuleCat.restrictScalarsEquivalenceOfRingEquiv_functor E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Ring R] [inst_1 : Ring S] (e : R ≃+* S),
  (ModuleCat.restrictScalarsEquivalenceOfRingEquiv e).functor = ModuleCat.restrictScalars e.toRingHom

theorem ModuleCat.restrictScalarsEquivalenceOfRingEquiv_inverse E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Ring R] [inst_1 : Ring S] (e : R ≃+* S),
  (ModuleCat.restrictScalarsEquivalenceOfRingEquiv e).inverse = ModuleCat.restrictScalars ↑e.symm

instance ModuleCat.restrictScalars_isEquivalence_of_ringEquiv E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Ring R] [inst_1 : Ring S] (e : R ≃+* S),
  (ModuleCat.restrictScalars e.toRingHom).IsEquivalence

def ModuleCat.restrictScalarsIsoOfEquiv E1 #

{R S : Type v} →
  [inst : Ring R] → [inst_1 : Ring S] → (e : R ≃+* S) → (ModuleCat.restrictScalars e.toRingHom).obj ↧S ≅ ↧R

If R and S are isomorphic rings, S viewed as an R-module is isomorphic to R.

theorem ModuleCat.restrictScalarsIsoOfEquiv_hom_apply E0 #

∀ {R S : Type v} [inst : Ring R] [inst_1 : Ring S] (e : R ≃+* S) (x : S),
  (CategoryTheory.ConcreteCategory.hom (ModuleCat.restrictScalarsIsoOfEquiv e).hom) x = e.symm x

theorem ModuleCat.restrictScalarsIsoOfEquiv_inv_apply E0 #

∀ {R S : Type v} [inst : Ring R] [inst_1 : Ring S] (e : R ≃+* S) (x : R),
  (CategoryTheory.ConcreteCategory.hom (ModuleCat.restrictScalarsIsoOfEquiv e).inv) x = e x

instance ModuleCat.instAdditiveRestrictScalars E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Ring R] [inst_1 : Ring S] (f : R →+* S), (ModuleCat.restrictScalars f).Additive

instance ModuleCat.restrictScalarsEquivalenceOfRingEquiv_additive E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Ring R] [inst_1 : Ring S] (e : R ≃+* S),
  (ModuleCat.restrictScalarsEquivalenceOfRingEquiv e).functor.Additive

instance ModuleCat.Algebra.instLinearRestrictScalars E0 #

∀ {R₀ : Type u_1} {R : Type u_2} {S : Type u_3} [inst : CommSemiring R₀] [inst_1 : Ring R] [inst_2 : Ring S]
  [inst_3 : Algebra R₀ R] [inst_4 : Algebra R₀ S] (f : R →ₐ[R₀] S),
  CategoryTheory.Functor.Linear R₀ (ModuleCat.restrictScalars f.toRingHom)

instance ModuleCat.Algebra.restrictScalarsEquivalenceOfRingEquiv_linear E0 #

∀ {R₀ : Type u_1} {R : Type u_2} {S : Type u_3} [inst : CommSemiring R₀] [inst_1 : Ring R] [inst_2 : Ring S]
  [inst_3 : Algebra R₀ R] [inst_4 : Algebra R₀ S] (e : R ≃ₐ[R₀] S),
  CategoryTheory.Functor.Linear R₀ (ModuleCat.restrictScalarsEquivalenceOfRingEquiv e.toRingEquiv).functor

def ChangeOfRings.«term_⊗ₜ[_,_]_» E1 #

Lean.TrailingParserDescr

Tensor product of elements along a base change.

This notation is necessary because we need to reason about s ⊗ₜ m where s : S and m : M; without this notation, one needs to work with s : (restrictScalars f).obj ⟨S⟩.

def ModuleCat.ExtendScalars.obj' E1 #

{R : Type u₁} → {S : Type u₂} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → ModuleCat R → ModuleCat S

Extension of scalars turns an R-module into an S-module by M ↦ S ⨂ M

def ModuleCat.ExtendScalars.map' E1 #

{R : Type u₁} →
  {S : Type u₂} →
    [inst : CommRing R] →
      [inst_1 : CommRing S] →
        (f : R →+* S) →
          {M1 M2 : ModuleCat R} → (M1 ⟶ M2) → (ModuleCat.ExtendScalars.obj' f M1 ⟶ ModuleCat.ExtendScalars.obj' f M2)

Extension of scalars is a functor where an R-module M is sent to S ⊗ M and l : M1 ⟶ M2 is sent to s ⊗ m ↦ s ⊗ l m

theorem ModuleCat.ExtendScalars.map'_id E1 #

∀ {R : Type u₁} {S : Type u₂} [inst : CommRing R] [inst_1 : CommRing S] (f : R →+* S) {M : ModuleCat R},
  ModuleCat.ExtendScalars.map' f (CategoryTheory.CategoryStruct.id M) =
    CategoryTheory.CategoryStruct.id (ModuleCat.ExtendScalars.obj' f M)

theorem ModuleCat.ExtendScalars.map'_comp E1 #

∀ {R : Type u₁} {S : Type u₂} [inst : CommRing R] [inst_1 : CommRing S] (f : R →+* S) {M₁ M₂ M₃ : ModuleCat R}
  (l₁₂ : M₁ ⟶ M₂) (l₂₃ : M₂ ⟶ M₃),
  ModuleCat.ExtendScalars.map' f (CategoryTheory.CategoryStruct.comp l₁₂ l₂₃) =
    CategoryTheory.CategoryStruct.comp (ModuleCat.ExtendScalars.map' f l₁₂) (ModuleCat.ExtendScalars.map' f l₂₃)

def ModuleCat.extendScalars E3 #

{R : Type u₁} →
  {S : Type u₂} →
    [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → CategoryTheory.Functor (ModuleCat R) (ModuleCat S)

Extension of scalars is a functor where an R-module M is sent to S ⊗ M and l : M1 ⟶ M2 is sent to s ⊗ m ↦ s ⊗ l m

theorem ModuleCat.ExtendScalars.smul_tmul E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : CommRing R] [inst_1 : CommRing S] (f : R →+* S) {M : ModuleCat R} (s s' : S)
  (m : ↑M), s • s' ⊗ₜ[R] m = (s * s') ⊗ₜ[R] m

theorem ModuleCat.ExtendScalars.map_tmul E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : CommRing R] [inst_1 : CommRing S] (f : R →+* S) {M M' : ModuleCat R} (g : M ⟶ M')
  (s : S) (m : ↑M),
  (CategoryTheory.ConcreteCategory.hom ((ModuleCat.extendScalars f).map g)) (s ⊗ₜ[R] m) =
    s ⊗ₜ[R] (CategoryTheory.ConcreteCategory.hom g) m

theorem ModuleCat.ExtendScalars.hom_ext E1 #

∀ {R : Type u₁} {S : Type u₂} [inst : CommRing R] [inst_1 : CommRing S] {f : R →+* S} {M : ModuleCat R}
  {N : ModuleCat S} {α β : (ModuleCat.extendScalars f).obj M ⟶ N},
  (∀ (m : ↑M),
      (CategoryTheory.ConcreteCategory.hom α) (1 ⊗ₜ[R] m) = (CategoryTheory.ConcreteCategory.hom β) (1 ⊗ₜ[R] m)) →
    α = β

theorem ModuleCat.ExtendScalars.hom_ext_iff E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : CommRing R] [inst_1 : CommRing S] {f : R →+* S} {M : ModuleCat R}
  {N : ModuleCat S} {α β : (ModuleCat.extendScalars f).obj M ⟶ N},
  α = β ↔
    ∀ (m : ↑M),
      (CategoryTheory.ConcreteCategory.hom α) (1 ⊗ₜ[R] m) = (CategoryTheory.ConcreteCategory.hom β) (1 ⊗ₜ[R] m)

instance ModuleCat.CoextendScalars.hasSMul E0 #

{R : Type u₁} →
  {S : Type u₂} →
    [inst : Ring R] →
      [inst_1 : Ring S] →
        (f : R →+* S) →
          (M : Type v) →
            [inst_2 : AddCommMonoid M] →
              [inst_3 : Module R M] → SMul S (↑((ModuleCat.restrictScalars f).obj ↧S) →ₗ[R] M)

Given an R-module M, consider Hom(S, M) -- the R-linear maps between S (as an R-module by means of restriction of scalars) and M. S acts on Hom(S, M) by s • g = x ↦ g (x • s)

theorem ModuleCat.CoextendScalars.smul_apply' E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : Ring R] [inst_1 : Ring S] (f : R →+* S) (M : Type v) [inst_2 : AddCommMonoid M]
  [inst_3 : Module R M] (s : S) (g : ↑((ModuleCat.restrictScalars f).obj ↧S) →ₗ[R] M) (s' : S), (s • g) s' = g (s' * s)

instance ModuleCat.CoextendScalars.mulAction E0 #

{R : Type u₁} →
  {S : Type u₂} →
    [inst : Ring R] →
      [inst_1 : Ring S] →
        (f : R →+* S) →
          (M : Type v) →
            [inst_2 : AddCommMonoid M] →
              [inst_3 : Module R M] → MulAction S (↑((ModuleCat.restrictScalars f).obj ↧S) →ₗ[R] M)

instance ModuleCat.CoextendScalars.distribMulAction E0 #

{R : Type u₁} →
  {S : Type u₂} →
    [inst : Ring R] →
      [inst_1 : Ring S] →
        (f : R →+* S) →
          (M : Type v) →
            [inst_2 : AddCommMonoid M] →
              [inst_3 : Module R M] → DistribMulAction S (↑((ModuleCat.restrictScalars f).obj ↧S) →ₗ[R] M)

instance ModuleCat.CoextendScalars.isModule E0 #

{R : Type u₁} →
  {S : Type u₂} →
    [inst : Ring R] →
      [inst_1 : Ring S] →
        (f : R →+* S) →
          (M : Type v) →
            [inst_2 : AddCommMonoid M] →
              [inst_3 : Module R M] → Module S (↑((ModuleCat.restrictScalars f).obj ↧S) →ₗ[R] M)

S acts on Hom(S, M) by s • g = x ↦ g (x • s), this action defines an S-module structure on Hom(S, M).

def ModuleCat.CoextendScalars.obj' E1 #

{R : Type u₁} → {S : Type u₂} → [inst : Ring R] → [inst_1 : Ring S] → (R →+* S) → ModuleCat R → ModuleCat S

If M is an R-module, then the set of R-linear maps S →ₗ[R] M is an S-module with scalar multiplication defined by s • l := x ↦ l (x • s).

This is an implementation detail: use (coextendScalars f).obj instead.

def ModuleCat.CoextendScalars.map' E1 #

{R : Type u₁} →
  {S : Type u₂} →
    [inst : Ring R] →
      [inst_1 : Ring S] →
        (f : R →+* S) →
          {M M' : ModuleCat R} → (M ⟶ M') → (ModuleCat.CoextendScalars.obj' f M ⟶ ModuleCat.CoextendScalars.obj' f M')

If M, M' are R-modules, then any R-linear map g : M ⟶ M' induces an S-linear map (S →ₗ[R] M) ⟶ (S →ₗ[R] M') defined by h ↦ g ∘ h

theorem ModuleCat.CoextendScalars.map'_hom_apply_apply E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : Ring R] [inst_1 : Ring S] (f : R →+* S) {M M' : ModuleCat R} (g : M ⟶ M')
  (h : ↑((ModuleCat.restrictScalars f).obj ↧S) →ₗ[R] ↑M) (x : ↑((ModuleCat.restrictScalars f).obj ↧S)),
  ((ModuleCat.Hom.hom (ModuleCat.CoextendScalars.map' f g)) h) x = (ModuleCat.Hom.hom g) (h x)

def ModuleCat.coextendScalars E3 #

{R : Type u₁} →
  {S : Type u₂} → [inst : Ring R] → [inst_1 : Ring S] → (R →+* S) → CategoryTheory.Functor (ModuleCat R) (ModuleCat S)

For any rings R, S and a ring homomorphism f : R →+* S, there is a functor from R-module to S-module defined by M ↦ (S →ₗ[R] M) where S is considered as an R-module via restriction of scalars and g : M ⟶ M' is sent to h ↦ g ∘ h.

The definition of (coextendScalars f).obj is given by CoextendScalars.equiv.

def ModuleCat.CoextendScalars.equiv E1 #

{R : Type u₁} →
  {S : Type u₂} →
    [inst : Ring R] →
      [inst_1 : Ring S] →
        (f : R →+* S) →
          (M : ModuleCat R) →
            ↑((ModuleCat.coextendScalars f).obj M) ≃ₗ[S] ↑((ModuleCat.restrictScalars f).obj ↧S) →ₗ[R] ↑M

The carrier of (coextendScalars f).obj M is S →ₗ[R] M where S is considered as an R-module via restriction of scalars.

instance ModuleCat.CoextendScalars.instCoeFunCarrierObjCoextendScalarsForall E0 #

{R : Type u₁} →
  {S : Type u₂} →
    [inst : Ring R] →
      [inst_1 : Ring S] →
        (f : R →+* S) → (M : ModuleCat R) → CoeFun ↑((ModuleCat.coextendScalars f).obj M) fun x ↦ S → ↑M

theorem ModuleCat.CoextendScalars.ext_iff E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : Ring R] [inst_1 : Ring S] {f : R →+* S} {M : ModuleCat R}
  {g g' : ↑((ModuleCat.coextendScalars f).obj M)},
  g = g' ↔ (ModuleCat.CoextendScalars.equiv f M) g = (ModuleCat.CoextendScalars.equiv f M) g'

theorem ModuleCat.CoextendScalars.ext E1 #

∀ {R : Type u₁} {S : Type u₂} [inst : Ring R] [inst_1 : Ring S] {f : R →+* S} {M : ModuleCat R}
  {g g' : ↑((ModuleCat.coextendScalars f).obj M)},
  (ModuleCat.CoextendScalars.equiv f M) g = (ModuleCat.CoextendScalars.equiv f M) g' → g = g'

theorem ModuleCat.CoextendScalars.smul_apply E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : Ring R] [inst_1 : Ring S] (f : R →+* S) (M : ModuleCat R)
  (g : ↑((ModuleCat.coextendScalars f).obj M)) (s s' : S),
  ((ModuleCat.CoextendScalars.equiv f M) (s • g)) s' = ((ModuleCat.CoextendScalars.equiv f M) g) (s' * s)

theorem ModuleCat.CoextendScalars.map_apply E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : Ring R] [inst_1 : Ring S] (f : R →+* S) {M M' : ModuleCat R} (g : M ⟶ M')
  (x : ↑((ModuleCat.coextendScalars f).obj M)) (s : S),
  ((ModuleCat.CoextendScalars.equiv f M')
        ((CategoryTheory.ConcreteCategory.hom ((ModuleCat.coextendScalars f).map g)) x))
      s =
    (CategoryTheory.ConcreteCategory.hom g) (((ModuleCat.CoextendScalars.equiv f M) x) s)

def ModuleCat.RestrictionCoextensionAdj.HomEquiv.fromRestriction E1 #

{R : Type u₁} →
  {S : Type u₂} →
    [inst : Ring R] →
      [inst_1 : Ring S] →
        (f : R →+* S) →
          {X : ModuleCat R} →
            {Y : ModuleCat S} → ((ModuleCat.restrictScalars f).obj Y ⟶ X) → (Y ⟶ (ModuleCat.coextendScalars f).obj X)

Given R-module X and S-module Y, any g : (restrictScalars f).obj Y ⟶ X corresponds to Y ⟶ (coextendScalars f).obj X by sending y ↦ (s ↦ g (s • y))

theorem ModuleCat.RestrictionCoextensionAdj.HomEquiv.fromRestriction_hom_apply_apply E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : Ring R] [inst_1 : Ring S] (f : R →+* S) {X : ModuleCat R} {Y : ModuleCat S}
  (g : (ModuleCat.restrictScalars f).obj Y ⟶ X) (y : ↑Y) (s : S),
  ((ModuleCat.CoextendScalars.equiv f X)
        ((ModuleCat.Hom.hom (ModuleCat.RestrictionCoextensionAdj.HomEquiv.fromRestriction f g)) y))
      s =
    (CategoryTheory.ConcreteCategory.hom g) (s • y)

This should be autogenerated by @[simps] but we need to give s the correct type here.

def ModuleCat.RestrictionCoextensionAdj.HomEquiv.toRestriction E1 #

{R : Type u₁} →
  {S : Type u₂} →
    [inst : Ring R] →
      [inst_1 : Ring S] →
        (f : R →+* S) →
          {X : ModuleCat R} →
            {Y : ModuleCat S} → (Y ⟶ (ModuleCat.coextendScalars f).obj X) → ((ModuleCat.restrictScalars f).obj Y ⟶ X)

Given R-module X and S-module Y, any g : Y ⟶ (coextendScalars f).obj X corresponds to (restrictScalars f).obj Y ⟶ X by y ↦ g y 1

theorem ModuleCat.RestrictionCoextensionAdj.HomEquiv.toRestriction_hom_apply E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : Ring R] [inst_1 : Ring S] (f : R →+* S) {X : ModuleCat R} {Y : ModuleCat S}
  (g : Y ⟶ (ModuleCat.coextendScalars f).obj X) (y : ↑((ModuleCat.restrictScalars f).obj Y)),
  (ModuleCat.Hom.hom (ModuleCat.RestrictionCoextensionAdj.HomEquiv.toRestriction f g)) y =
    ((ModuleCat.CoextendScalars.equiv f X) ((ModuleCat.Hom.hom g) y)) 1

This should be autogenerated by @[simps] but we need to give 1 the correct type here.

def ModuleCat.RestrictionCoextensionAdj.app' E1 #

{R : Type u₁} →
  {S : Type u₂} →
    [inst : Ring R] →
      [inst_1 : Ring S] →
        (f : R →+* S) →
          (Y : ModuleCat S) → ↑Y →ₗ[S] ↑(((ModuleCat.restrictScalars f).comp (ModuleCat.coextendScalars f)).obj Y)

Auxiliary definition for unit', to address timeouts.

def ModuleCat.RestrictionCoextensionAdj.unit' E1 #

{R : Type u₁} →
  {S : Type u₂} →
    [inst : Ring R] →
      [inst_1 : Ring S] →
        (f : R →+* S) →
          CategoryTheory.Functor.id (ModuleCat S) ⟶ (ModuleCat.restrictScalars f).comp (ModuleCat.coextendScalars f)

The natural transformation from identity functor to the composition of restriction and coextension of scalars.

theorem ModuleCat.RestrictionCoextensionAdj.unit'_app E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : Ring R] [inst_1 : Ring S] (f : R →+* S) (Y : ModuleCat S),
  (ModuleCat.RestrictionCoextensionAdj.unit' f).app Y = ModuleCat.ofHom (ModuleCat.RestrictionCoextensionAdj.app' f Y)

def ModuleCat.RestrictionCoextensionAdj.counit' E1 #

{R : Type u₁} →
  {S : Type u₂} →
    [inst : Ring R] →
      [inst_1 : Ring S] →
        (f : R →+* S) →
          (ModuleCat.coextendScalars f).comp (ModuleCat.restrictScalars f) ⟶ CategoryTheory.Functor.id (ModuleCat R)

The natural transformation from the composition of coextension and restriction of scalars to identity functor.

theorem ModuleCat.RestrictionCoextensionAdj.counit'_app E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : Ring R] [inst_1 : Ring S] (f : R →+* S) (X : ModuleCat R),
  (ModuleCat.RestrictionCoextensionAdj.counit' f).app X =
    ModuleCat.ofHom { toFun := fun g ↦ ((ModuleCat.CoextendScalars.equiv f X) g) 1, map_add' := ⋯, map_smul' := ⋯ }

def ModuleCat.restrictCoextendScalarsAdj E3 #

{R : Type u₁} →
  {S : Type u₂} →
    [inst : Ring R] → [inst_1 : Ring S] → (f : R →+* S) → ModuleCat.restrictScalars f ⊣ ModuleCat.coextendScalars f

Restriction of scalars is left adjoint to coextension of scalars.

instance ModuleCat.instIsLeftAdjointRestrictScalars E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : Ring R] [inst_1 : Ring S] (f : R →+* S),
  (ModuleCat.restrictScalars f).IsLeftAdjoint

instance ModuleCat.instIsRightAdjointCoextendScalars E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : Ring R] [inst_1 : Ring S] (f : R →+* S),
  (ModuleCat.coextendScalars f).IsRightAdjoint

def ModuleCat.ExtendRestrictScalarsAdj.HomEquiv.toRestrictScalars E1 #

{R : Type u₁} →
  {S : Type u₂} →
    [inst : CommRing R] →
      [inst_1 : CommRing S] →
        (f : R →+* S) →
          {X : ModuleCat R} →
            {Y : ModuleCat S} → ((ModuleCat.extendScalars f).obj X ⟶ Y) → (X ⟶ (ModuleCat.restrictScalars f).obj Y)

Given R-module X and S-module Y and a map g : (extendScalars f).obj X ⟶ Y, i.e. S-linear map S ⨂ X → Y, there is a X ⟶ (restrictScalars f).obj Y, i.e. R-linear map X ⟶ Y by x ↦ g (1 ⊗ x).

theorem ModuleCat.ExtendRestrictScalarsAdj.HomEquiv.toRestrictScalars_hom_apply E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : CommRing R] [inst_1 : CommRing S] (f : R →+* S) {X : ModuleCat R}
  {Y : ModuleCat S} (g : (ModuleCat.extendScalars f).obj X ⟶ Y) (x : ↑X),
  (ModuleCat.Hom.hom (ModuleCat.ExtendRestrictScalarsAdj.HomEquiv.toRestrictScalars f g)) x =
    (CategoryTheory.ConcreteCategory.hom g) (1 ⊗ₜ[R] x)

def ModuleCat.ExtendRestrictScalarsAdj.HomEquiv.evalAt E1 #

{R : Type u₁} →
  {S : Type u₂} →
    [inst : CommRing R] →
      [inst_1 : CommRing S] →
        (f : R →+* S) →
          {X : ModuleCat R} →
            {Y : ModuleCat S} →
              S →
                (X ⟶ (ModuleCat.restrictScalars f).obj Y) →
                  have this := Module.compHom (↑Y) f;
                  ↑X →ₗ[R] ↑Y

The map S → X →ₗ[R] Y given by fun s x => s • (g x)

theorem ModuleCat.ExtendRestrictScalarsAdj.HomEquiv.evalAt_apply E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : CommRing R] [inst_1 : CommRing S] (f : R →+* S) {X : ModuleCat R}
  {Y : ModuleCat S} (s : S) (g : X ⟶ (ModuleCat.restrictScalars f).obj Y) (x : ↑X),
  (ModuleCat.ExtendRestrictScalarsAdj.HomEquiv.evalAt f s g) x = s • (CategoryTheory.ConcreteCategory.hom g) x

def ModuleCat.ExtendRestrictScalarsAdj.HomEquiv.fromExtendScalars E1 #

{R : Type u₁} →
  {S : Type u₂} →
    [inst : CommRing R] →
      [inst_1 : CommRing S] →
        (f : R →+* S) →
          {X : ModuleCat R} →
            {Y : ModuleCat S} → (X ⟶ (ModuleCat.restrictScalars f).obj Y) → ((ModuleCat.extendScalars f).obj X ⟶ Y)

Given R-module X and S-module Y and a map X ⟶ (restrictScalars f).obj Y, i.e R-linear map X ⟶ Y, there is a map (extend_scalars f).obj X ⟶ Y, i.e S-linear map S ⨂ X → Y by s ⊗ x ↦ s • g x.

theorem ModuleCat.ExtendRestrictScalarsAdj.HomEquiv.fromExtendScalars_hom_apply E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : CommRing R] [inst_1 : CommRing S] (f : R →+* S) {X : ModuleCat R}
  {Y : ModuleCat S} (g : X ⟶ (ModuleCat.restrictScalars f).obj Y)
  (z : TensorProduct R ↑((ModuleCat.restrictScalars f).obj ↧S) ↑X),
  (ModuleCat.Hom.hom (ModuleCat.ExtendRestrictScalarsAdj.HomEquiv.fromExtendScalars f g)) z =
    (TensorProduct.lift
        { toFun := fun s ↦ ModuleCat.ExtendRestrictScalarsAdj.HomEquiv.evalAt f s g, map_add' := ⋯, map_smul' := ⋯ })
      z

def ModuleCat.ExtendRestrictScalarsAdj.homEquiv E1 #

{R : Type u₁} →
  {S : Type u₂} →
    [inst : CommRing R] →
      [inst_1 : CommRing S] →
        (f : R →+* S) →
          {X : ModuleCat R} →
            {Y : ModuleCat S} → ((ModuleCat.extendScalars f).obj X ⟶ Y) ≃ (X ⟶ (ModuleCat.restrictScalars f).obj Y)

Given R-module X and S-module Y, S-linear maps (extendScalars f).obj X ⟶ Y bijectively correspond to R-linear maps X ⟶ (restrictScalars f).obj Y.

theorem ModuleCat.ExtendRestrictScalarsAdj.homEquiv_symm_apply E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : CommRing R] [inst_1 : CommRing S] (f : R →+* S) {X : ModuleCat R}
  {Y : ModuleCat S} (g : X ⟶ (ModuleCat.restrictScalars f).obj Y),
  (ModuleCat.ExtendRestrictScalarsAdj.homEquiv f).symm g =
    ModuleCat.ExtendRestrictScalarsAdj.HomEquiv.fromExtendScalars f g

def ModuleCat.ExtendRestrictScalarsAdj.Unit.map E1 #

{R : Type u₁} →
  {S : Type u₂} →
    [inst : CommRing R] →
      [inst_1 : CommRing S] →
        (f : R →+* S) → {X : ModuleCat R} → X ⟶ ((ModuleCat.extendScalars f).comp (ModuleCat.restrictScalars f)).obj X

For any R-module X, there is a natural R-linear map from X to X ⨂ S by sending x ↦ x ⊗ 1

def ModuleCat.ExtendRestrictScalarsAdj.unit E1 #

{R : Type u₁} →
  {S : Type u₂} →
    [inst : CommRing R] →
      [inst_1 : CommRing S] →
        (f : R →+* S) →
          CategoryTheory.Functor.id (ModuleCat R) ⟶ (ModuleCat.extendScalars f).comp (ModuleCat.restrictScalars f)

The natural transformation from identity functor on R-module to the composition of extension and restriction of scalars.

theorem ModuleCat.ExtendRestrictScalarsAdj.unit_app E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : CommRing R] [inst_1 : CommRing S] (f : R →+* S) (x : ModuleCat R),
  (ModuleCat.ExtendRestrictScalarsAdj.unit f).app x = ModuleCat.ExtendRestrictScalarsAdj.Unit.map f

def ModuleCat.ExtendRestrictScalarsAdj.Counit.map E1 #

{R : Type u₁} →
  {S : Type u₂} →
    [inst : CommRing R] →
      [inst_1 : CommRing S] →
        (f : R →+* S) → {Y : ModuleCat S} → ((ModuleCat.restrictScalars f).comp (ModuleCat.extendScalars f)).obj Y ⟶ Y

For any S-module Y, there is a natural R-linear map from S ⨂ Y to Y by s ⊗ y ↦ s • y

theorem ModuleCat.ExtendRestrictScalarsAdj.Counit.map_hom_apply E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : CommRing R] [inst_1 : CommRing S] (f : R →+* S) {Y : ModuleCat S}
  (a : TensorProduct R S ↑Y),
  (ModuleCat.Hom.hom (ModuleCat.ExtendRestrictScalarsAdj.Counit.map f)) a =
    (TensorProduct.lift
        { toFun := fun s ↦ { toFun := fun y ↦ s • y, map_add' := ⋯, map_smul' := ⋯ }, map_add' := ⋯, map_smul' := ⋯ })
      a

theorem ModuleCat.ExtendRestrictScalarsAdj.Counit.map_apply_one_tmul E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : CommRing R] [inst_1 : CommRing S] (f : R →+* S) {Y : ModuleCat S} (y : ↑Y),
  (CategoryTheory.ConcreteCategory.hom (ModuleCat.ExtendRestrictScalarsAdj.Counit.map f)) (1 ⊗ₜ[R] y) = y

def ModuleCat.ExtendRestrictScalarsAdj.counit E1 #

{R : Type u₁} →
  {S : Type u₂} →
    [inst : CommRing R] →
      [inst_1 : CommRing S] →
        (f : R →+* S) →
          (ModuleCat.restrictScalars f).comp (ModuleCat.extendScalars f) ⟶ CategoryTheory.Functor.id (ModuleCat S)

The natural transformation from the composition of restriction and extension of scalars to the identity functor on S-module.

theorem ModuleCat.ExtendRestrictScalarsAdj.counit_app E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : CommRing R] [inst_1 : CommRing S] (f : R →+* S) (x : ModuleCat S),
  (ModuleCat.ExtendRestrictScalarsAdj.counit f).app x = ModuleCat.ExtendRestrictScalarsAdj.Counit.map f

def ModuleCat.extendRestrictScalarsAdj E3 #

{R : Type u₁} →
  {S : Type u₂} →
    [inst : CommRing R] →
      [inst_1 : CommRing S] → (f : R →+* S) → ModuleCat.extendScalars f ⊣ ModuleCat.restrictScalars f

Given commutative rings R, S and a ring hom f : R →+* S, the extension and restriction of scalars by f are adjoint to each other.

theorem ModuleCat.extendRestrictScalarsAdj_homEquiv_apply E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : CommRing R] [inst_1 : CommRing S] {f : R →+* S} {M : ModuleCat R}
  {N : ModuleCat S} (φ : (ModuleCat.extendScalars f).obj M ⟶ N) (m : ↑M),
  (CategoryTheory.ConcreteCategory.hom (((ModuleCat.extendRestrictScalarsAdj f).homEquiv M N) φ)) m =
    (CategoryTheory.ConcreteCategory.hom φ) (1 ⊗ₜ[R] m)

theorem ModuleCat.extendRestrictScalarsAdj_unit_app_apply E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : CommRing R] [inst_1 : CommRing S] (f : R →+* S) (M : ModuleCat R) (m : ↑M),
  (CategoryTheory.ConcreteCategory.hom ((ModuleCat.extendRestrictScalarsAdj f).unit.app M)) m = 1 ⊗ₜ[R] m

theorem ModuleCat.extendRestrictScalarsAdj_counit_app_apply_one_tmul E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : CommRing R] [inst_1 : CommRing S] (f : R →+* S) (M : ModuleCat S) (m : ↑M),
  (CategoryTheory.ConcreteCategory.hom ((ModuleCat.extendRestrictScalarsAdj f).counit.app M)) (1 ⊗ₜ[R] m) = m

instance ModuleCat.instIsLeftAdjointExtendScalars E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : CommRing R] [inst_1 : CommRing S] (f : R →+* S),
  (ModuleCat.extendScalars f).IsLeftAdjoint

instance ModuleCat.instIsRightAdjointRestrictScalars E0 #

∀ {R : Type u₁} {S : Type u₂} [inst : CommRing R] [inst_1 : CommRing S] (f : R →+* S),
  (ModuleCat.restrictScalars f).IsRightAdjoint

instance ModuleCat.preservesLimit_restrictScalars E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Ring R] [inst_1 : Ring S] (f : R →+* S) {J : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_1, u_3} J] (F : CategoryTheory.Functor J (ModuleCat S))
  [Small.{v, max u_3 v} ↑(F.comp (CategoryTheory.forget (ModuleCat S))).sections],
  CategoryTheory.Limits.PreservesLimit F (ModuleCat.restrictScalars f)

instance ModuleCat.preservesColimit_restrictScalars E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Ring R] [inst_1 : Ring S] (f : R →+* S) {J : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_1, u_3} J] (F : CategoryTheory.Functor J (ModuleCat S))
  [CategoryTheory.Limits.HasColimit (F.comp (CategoryTheory.forget₂ (ModuleCat S) AddCommGrpCat))],
  CategoryTheory.Limits.PreservesColimit F (ModuleCat.restrictScalars f)

def ModuleCat.extendScalarsId E1 #

(R : Type u₁) → [inst : CommRing R] → ModuleCat.extendScalars (RingHom.id R) ≅ CategoryTheory.Functor.id (ModuleCat R)

The extension of scalars by the identity of a ring is isomorphic to the identity functor.

theorem ModuleCat.extendScalarsId_inv_app_apply E0 #

∀ {R : Type u₁} [inst : CommRing R] (M : ModuleCat R) (m : ↑M),
  (CategoryTheory.ConcreteCategory.hom ((ModuleCat.extendScalarsId R).inv.app M)) m = 1 ⊗ₜ[R] m

theorem ModuleCat.homEquiv_extendScalarsId E1 #

∀ {R : Type u₁} [inst : CommRing R] (M : ModuleCat R),
  ((ModuleCat.extendRestrictScalarsAdj (RingHom.id R)).homEquiv M ((CategoryTheory.Functor.id (ModuleCat R)).obj M))
      ((ModuleCat.extendScalarsId R).hom.app M) =
    (ModuleCat.restrictScalarsId R).inv.app M

theorem ModuleCat.extendScalarsId_hom_app_one_tmul E1 #

∀ {R : Type u₁} [inst : CommRing R] (M : ModuleCat R) (m : ↑M),
  (CategoryTheory.ConcreteCategory.hom ((ModuleCat.extendScalarsId R).hom.app M)) (1 ⊗ₜ[R] m) = m

def ModuleCat.extendScalarsComp E1 #

{R₁ R₂ R₃ : Type u₁} →
  [inst : CommRing R₁] →
    [inst_1 : CommRing R₂] →
      [inst_2 : CommRing R₃] →
        (f₁₂ : R₁ →+* R₂) →
          (f₂₃ : R₂ →+* R₃) →
            ModuleCat.extendScalars (f₂₃.comp f₁₂) ≅ (ModuleCat.extendScalars f₁₂).comp (ModuleCat.extendScalars f₂₃)

The extension of scalars by a composition of commutative ring morphisms identifies to the composition of the extension of scalars functors.

theorem ModuleCat.homEquiv_extendScalarsComp E1 #

∀ {R₁ R₂ R₃ : Type u₁} [inst : CommRing R₁] [inst_1 : CommRing R₂] [inst_2 : CommRing R₃] (f₁₂ : R₁ →+* R₂)
  (f₂₃ : R₂ →+* R₃) (M : ModuleCat R₁),
  ((ModuleCat.extendRestrictScalarsAdj (f₂₃.comp f₁₂)).homEquiv M
        (((ModuleCat.extendScalars f₁₂).comp (ModuleCat.extendScalars f₂₃)).obj M))
      ((ModuleCat.extendScalarsComp f₁₂ f₂₃).hom.app M) =
    CategoryTheory.CategoryStruct.comp ((ModuleCat.extendRestrictScalarsAdj f₁₂).unit.app M)
      (CategoryTheory.CategoryStruct.comp
        ((ModuleCat.restrictScalars f₁₂).map
          ((ModuleCat.extendRestrictScalarsAdj f₂₃).unit.app (ModuleCat.ExtendScalars.obj' f₁₂ M)))
        ((ModuleCat.restrictScalarsComp f₁₂ f₂₃).inv.app
          ((ModuleCat.extendScalars f₂₃).obj (ModuleCat.ExtendScalars.obj' f₁₂ M))))

theorem ModuleCat.extendScalarsComp_hom_app_one_tmul E1 #

∀ {R₁ R₂ R₃ : Type u₁} [inst : CommRing R₁] [inst_1 : CommRing R₂] [inst_2 : CommRing R₃] (f₁₂ : R₁ →+* R₂)
  (f₂₃ : R₂ →+* R₃) (M : ModuleCat R₁) (m : ↑M),
  (CategoryTheory.ConcreteCategory.hom ((ModuleCat.extendScalarsComp f₁₂ f₂₃).hom.app M)) (1 ⊗ₜ[R₁] m) =
    1 ⊗ₜ[R₂] (1 ⊗ₜ[R₁] m)

theorem ModuleCat.extendScalars_assoc_assoc E1 #

∀ {R₁ R₂ R₃ R₄ : Type u₁} [inst : CommRing R₁] [inst_1 : CommRing R₂] [inst_2 : CommRing R₃] [inst_3 : CommRing R₄]
  (f₁₂ : R₁ →+* R₂) (f₂₃ : R₂ →+* R₃) (f₃₄ : R₃ →+* R₄) {Z : CategoryTheory.Functor (ModuleCat R₁) (ModuleCat R₄)}
  (h : ((ModuleCat.extendScalars f₁₂).comp (ModuleCat.extendScalars f₂₃)).comp (ModuleCat.extendScalars f₃₄) ⟶ Z),
  CategoryTheory.CategoryStruct.comp (ModuleCat.extendScalarsComp (f₂₃.comp f₁₂) f₃₄).hom
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.Functor.whiskerRight (ModuleCat.extendScalarsComp f₁₂ f₂₃).hom (ModuleCat.extendScalars f₃₄))
        h) =
    CategoryTheory.CategoryStruct.comp (ModuleCat.extendScalarsComp f₁₂ (f₃₄.comp f₂₃)).hom
      (CategoryTheory.CategoryStruct.comp
        ((ModuleCat.extendScalars f₁₂).whiskerLeft (ModuleCat.extendScalarsComp f₂₃ f₃₄).hom)
        (CategoryTheory.CategoryStruct.comp
          ((ModuleCat.extendScalars f₁₂).associator (ModuleCat.extendScalars f₂₃) (ModuleCat.extendScalars f₃₄)).inv h))

theorem ModuleCat.extendScalars_assoc E1 #

∀ {R₁ R₂ R₃ R₄ : Type u₁} [inst : CommRing R₁] [inst_1 : CommRing R₂] [inst_2 : CommRing R₃] [inst_3 : CommRing R₄]
  (f₁₂ : R₁ →+* R₂) (f₂₃ : R₂ →+* R₃) (f₃₄ : R₃ →+* R₄),
  CategoryTheory.CategoryStruct.comp (ModuleCat.extendScalarsComp (f₂₃.comp f₁₂) f₃₄).hom
      (CategoryTheory.Functor.whiskerRight (ModuleCat.extendScalarsComp f₁₂ f₂₃).hom (ModuleCat.extendScalars f₃₄)) =
    CategoryTheory.CategoryStruct.comp (ModuleCat.extendScalarsComp f₁₂ (f₃₄.comp f₂₃)).hom
      (CategoryTheory.CategoryStruct.comp
        ((ModuleCat.extendScalars f₁₂).whiskerLeft (ModuleCat.extendScalarsComp f₂₃ f₃₄).hom)
        ((ModuleCat.extendScalars f₁₂).associator (ModuleCat.extendScalars f₂₃) (ModuleCat.extendScalars f₃₄)).inv)

theorem ModuleCat.extendScalars_assoc' E1 #

∀ {R₁ R₂ R₃ R₄ : Type u₁} [inst : CommRing R₁] [inst_1 : CommRing R₂] [inst_2 : CommRing R₃] [inst_3 : CommRing R₄]
  (f₁₂ : R₁ →+* R₂) (f₂₃ : R₂ →+* R₃) (f₃₄ : R₃ →+* R₄),
  CategoryTheory.CategoryStruct.comp (ModuleCat.extendScalarsComp (f₂₃.comp f₁₂) f₃₄).hom
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.Functor.whiskerRight (ModuleCat.extendScalarsComp f₁₂ f₂₃).hom (ModuleCat.extendScalars f₃₄))
        (CategoryTheory.CategoryStruct.comp
          ((ModuleCat.extendScalars f₁₂).associator (ModuleCat.extendScalars f₂₃) (ModuleCat.extendScalars f₃₄)).hom
          (CategoryTheory.CategoryStruct.comp
            ((ModuleCat.extendScalars f₁₂).whiskerLeft (ModuleCat.extendScalarsComp f₂₃ f₃₄).inv)
            (ModuleCat.extendScalarsComp f₁₂ (f₃₄.comp f₂₃)).inv))) =
    CategoryTheory.CategoryStruct.id (ModuleCat.extendScalars (f₃₄.comp (f₂₃.comp f₁₂)))

The associativity compatibility for the extension of scalars, in the exact form that is needed in the definition CommRingCat.moduleCatExtendScalarsPseudofunctor in the file Mathlib/Algebra/Category/ModuleCat/Pseudofunctor.lean

theorem ModuleCat.extendScalars_id_comp_assoc E1 #

∀ {R₁ R₂ : Type u₁} [inst : CommRing R₁] [inst_1 : CommRing R₂] (f₁₂ : R₁ →+* R₂)
  {Z : CategoryTheory.Functor (ModuleCat R₁) (ModuleCat R₂)} (h : ModuleCat.extendScalars f₁₂ ⟶ Z),
  CategoryTheory.CategoryStruct.comp (ModuleCat.extendScalarsComp (RingHom.id R₁) f₁₂).hom
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.Functor.whiskerRight (ModuleCat.extendScalarsId R₁).hom (ModuleCat.extendScalars f₁₂))
        (CategoryTheory.CategoryStruct.comp (ModuleCat.extendScalars f₁₂).leftUnitor.hom h)) =
    h

theorem ModuleCat.extendScalars_id_comp E1 #

∀ {R₁ R₂ : Type u₁} [inst : CommRing R₁] [inst_1 : CommRing R₂] (f₁₂ : R₁ →+* R₂),
  CategoryTheory.CategoryStruct.comp (ModuleCat.extendScalarsComp (RingHom.id R₁) f₁₂).hom
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.Functor.whiskerRight (ModuleCat.extendScalarsId R₁).hom (ModuleCat.extendScalars f₁₂))
        (ModuleCat.extendScalars f₁₂).leftUnitor.hom) =
    CategoryTheory.CategoryStruct.id (ModuleCat.extendScalars (f₁₂.comp (RingHom.id R₁)))

theorem ModuleCat.extendScalars_comp_id_assoc E1 #

∀ {R₁ R₂ : Type u₁} [inst : CommRing R₁] [inst_1 : CommRing R₂] (f₁₂ : R₁ →+* R₂)
  {Z : CategoryTheory.Functor (ModuleCat R₁) (ModuleCat R₂)} (h : ModuleCat.extendScalars f₁₂ ⟶ Z),
  CategoryTheory.CategoryStruct.comp (ModuleCat.extendScalarsComp f₁₂ (RingHom.id R₂)).hom
      (CategoryTheory.CategoryStruct.comp ((ModuleCat.extendScalars f₁₂).whiskerLeft (ModuleCat.extendScalarsId R₂).hom)
        (CategoryTheory.CategoryStruct.comp (ModuleCat.extendScalars f₁₂).rightUnitor.hom h)) =
    h

theorem ModuleCat.extendScalars_comp_id E1 #

∀ {R₁ R₂ : Type u₁} [inst : CommRing R₁] [inst_1 : CommRing R₂] (f₁₂ : R₁ →+* R₂),
  CategoryTheory.CategoryStruct.comp (ModuleCat.extendScalarsComp f₁₂ (RingHom.id R₂)).hom
      (CategoryTheory.CategoryStruct.comp ((ModuleCat.extendScalars f₁₂).whiskerLeft (ModuleCat.extendScalarsId R₂).hom)
        (ModuleCat.extendScalars f₁₂).rightUnitor.hom) =
    CategoryTheory.CategoryStruct.id (ModuleCat.extendScalars ((RingHom.id R₂).comp f₁₂))