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.Basic

125 declarations and 2 deprecated aliases. Mathlib docs · Source

def ModuleCat.ctorIdx E1 #

{R : Type u} → {inst : Ring R} → ModuleCat R → ℕ

def ModuleCat.Hom.ctorIdx E1 #

{R : Type u} → {inst : Ring R} → {M N : ModuleCat R} → M.Hom N → ℕ

structure ModuleCat E3 #

(R : Type u) → [Ring R] → Type (max u (v + 1))

The category of R-modules and their morphisms.

Note that in the case of R = ℤ, we cannot impose here that the ℤ-multiplication field from the module structure is defeq to the one coming from the isAddCommGroup structure (contrary to what we do for all module structures in mathlib), which creates some difficulties down the road.

abbrev ModuleCat.carrier E1 #

{R : Type u} → [inst : Ring R] → ModuleCat R → Type v

the underlying type of an object in ModuleCat R

instance ModuleCat.isAddCommGroup E0 #

{R : Type u} → [inst : Ring R] → (self : ModuleCat R) → AddCommGroup ↑self

instance ModuleCat.isModule E0 #

{R : Type u} → [inst : Ring R] → (self : ModuleCat R) → Module R ↑self

instance ModuleCat.instCoeSortType E0 #

(R : Type u) → [inst : Ring R] → CoeSort (ModuleCat R) (Type v)

abbrev ModuleCat.of E1 #

(R : Type u) → [inst : Ring R] → (X : Type v) → [inst_1 : AddCommGroup X] → [Module R X] → ModuleCat R

The object in the category of R-algebras associated to a type equipped with the appropriate typeclasses. This is the preferred way to construct a term of ModuleCat R.

def ModuleCat.delabOf E1 #

Lean.PrettyPrinter.Delaborator.Delab

This prints ModuleCat.of R X as ↧X.

theorem ModuleCat.coe_of E0 #

∀ (R : Type u) [inst : Ring R] (X : Type v) [inst_1 : Ring X] [inst_2 : Module R X], ↑↧X = X

structure ModuleCat.Hom E1 #

{R : Type u} → [inst : Ring R] → ModuleCat R → ModuleCat R → Type v

The type of morphisms in ModuleCat R.

theorem ModuleCat.Hom.ext E1 #

∀ {R : Type u} {inst : Ring R} {M N : ModuleCat R} {x y : M.Hom N}, x.hom' = y.hom' → x = y

theorem ModuleCat.Hom.ext_iff E0 #

∀ {R : Type u} {inst : Ring R} {M N : ModuleCat R} {x y : M.Hom N}, x = y ↔ x.hom' = y.hom'

abbrev ModuleCat.Hom.hom' E1 #

{R : Type u} → [inst : Ring R] → {M N : ModuleCat R} → M.Hom N → ↑M →ₗ[R] ↑N

The underlying linear map.

instance ModuleCat.moduleCategory E0 #

(R : Type u) → [inst : Ring R] → CategoryTheory.Category.{v, max (v + 1) u} (ModuleCat R)

instance ModuleCat.instConcreteCategoryLinearMapIdCarrier E0 #

(R : Type u) → [inst : Ring R] → CategoryTheory.ConcreteCategory (ModuleCat R) fun x1 x2 ↦ ↑x1 →ₗ[R] ↑x2

abbrev ModuleCat.Hom.hom E1 #

{R : Type u} → [inst : Ring R] → {A B : ModuleCat R} → A.Hom B → ↑A →ₗ[R] ↑B

Turn a morphism in ModuleCat back into a LinearMap.

abbrev ModuleCat.ofHom E1 #

{R : Type u} →
  [inst : Ring R] →
    {X Y : Type v} →
      [inst_1 : AddCommGroup X] →
        [inst_2 : Module R X] → [inst_3 : AddCommGroup Y] → [inst_4 : Module R Y] → (X →ₗ[R] Y) → (↧X ⟶ ↧Y)

Typecheck a LinearMap as a morphism in ModuleCat.

def ModuleCat.Hom.Simps.hom E1 #

{R : Type u} → [inst : Ring R] → (A B : ModuleCat R) → A.Hom B → ↑A →ₗ[R] ↑B

Use the ConcreteCategory.hom projection for @[simps] lemmas.

theorem ModuleCat.hom_id E0 #

∀ {R : Type u} [inst : Ring R] {M : ModuleCat R}, ModuleCat.Hom.hom (CategoryTheory.CategoryStruct.id M) = LinearMap.id

theorem ModuleCat.id_apply E0 #

∀ {R : Type u} [inst : Ring R] (M : ModuleCat R) (x : ↑M),
  (CategoryTheory.ConcreteCategory.hom (CategoryTheory.CategoryStruct.id M)) x = x

theorem ModuleCat.hom_comp E0 #

∀ {R : Type u} [inst : Ring R] {M N O : ModuleCat R} (f : M ⟶ N) (g : N ⟶ O),
  ModuleCat.Hom.hom (CategoryTheory.CategoryStruct.comp f g) = ModuleCat.Hom.hom g ∘ₗ ModuleCat.Hom.hom f

theorem ModuleCat.comp_apply E0 #

∀ {R : Type u} [inst : Ring R] {M N O : ModuleCat R} (f : M ⟶ N) (g : N ⟶ O) (x : ↑M),
  (CategoryTheory.ConcreteCategory.hom (CategoryTheory.CategoryStruct.comp f g)) x =
    (CategoryTheory.ConcreteCategory.hom g) ((CategoryTheory.ConcreteCategory.hom f) x)

theorem ModuleCat.hom_ext_iff E0 #

∀ {R : Type u} [inst : Ring R] {M N : ModuleCat R} {f g : M ⟶ N}, f = g ↔ ModuleCat.Hom.hom f = ModuleCat.Hom.hom g

theorem ModuleCat.hom_ext E1 #

∀ {R : Type u} [inst : Ring R] {M N : ModuleCat R} {f g : M ⟶ N}, ModuleCat.Hom.hom f = ModuleCat.Hom.hom g → f = g

theorem ModuleCat.hom_bijective E1 #

∀ {R : Type u} [inst : Ring R] {M N : ModuleCat R}, Function.Bijective ModuleCat.Hom.hom

theorem ModuleCat.hom_injective E1 #

∀ {R : Type u} [inst : Ring R] {M N : ModuleCat R}, Function.Injective ModuleCat.Hom.hom

Convenience shortcut for ModuleCat.hom_bijective.injective.

theorem ModuleCat.hom_surjective E1 #

∀ {R : Type u} [inst : Ring R] {M N : ModuleCat R}, Function.Surjective ModuleCat.Hom.hom

Convenience shortcut for ModuleCat.hom_bijective.surjective.

theorem ModuleCat.hom_ofHom E0 #

∀ {R : Type u} [inst : Ring R] {X Y : Type v} [inst_1 : AddCommGroup X] [inst_2 : Module R X] [inst_3 : AddCommGroup Y]
  [inst_4 : Module R Y] (f : X →ₗ[R] Y), ModuleCat.Hom.hom (ModuleCat.ofHom f) = f

theorem ModuleCat.ofHom_hom E0 #

∀ {R : Type u} [inst : Ring R] {M N : ModuleCat R} (f : M ⟶ N), ModuleCat.ofHom (ModuleCat.Hom.hom f) = f

theorem ModuleCat.ofHom_id E0 #

∀ {R : Type u} [inst : Ring R] {M : Type v} [inst_1 : AddCommGroup M] [inst_2 : Module R M],
  ModuleCat.ofHom LinearMap.id = CategoryTheory.CategoryStruct.id ↧M

theorem ModuleCat.ofHom_comp E0 #

∀ {R : Type u} [inst : Ring R] {M N O : Type v} [inst_1 : AddCommGroup M] [inst_2 : AddCommGroup N]
  [inst_3 : AddCommGroup O] [inst_4 : Module R M] [inst_5 : Module R N] [inst_6 : Module R O] (f : M →ₗ[R] N)
  (g : N →ₗ[R] O), ModuleCat.ofHom (g ∘ₗ f) = CategoryTheory.CategoryStruct.comp (ModuleCat.ofHom f) (ModuleCat.ofHom g)

theorem ModuleCat.ofHom_apply E0 #

∀ {R : Type u} [inst : Ring R] {M N : Type v} [inst_1 : AddCommGroup M] [inst_2 : AddCommGroup N] [inst_3 : Module R M]
  [inst_4 : Module R N] (f : M →ₗ[R] N) (x : M), (CategoryTheory.ConcreteCategory.hom (ModuleCat.ofHom f)) x = f x

theorem ModuleCat.inv_hom_apply E0 #

∀ {R : Type u} [inst : Ring R] {M N : ModuleCat R} (e : M ≅ N) (x : ↑M),
  (CategoryTheory.ConcreteCategory.hom e.inv) ((CategoryTheory.ConcreteCategory.hom e.hom) x) = x

theorem ModuleCat.hom_inv_apply E0 #

∀ {R : Type u} [inst : Ring R] {M N : ModuleCat R} (e : M ≅ N) (x : ↑N),
  (CategoryTheory.ConcreteCategory.hom e.hom) ((CategoryTheory.ConcreteCategory.hom e.inv) x) = x

def ModuleCat.homEquiv E1 #

{R : Type u} → [inst : Ring R] → {M N : ModuleCat R} → (M ⟶ N) ≃ (↑M →ₗ[R] ↑N)

ModuleCat.Hom.hom bundled as an Equiv.

def ModuleCat.equivalenceSemimoduleCat E1 #

{R : Type u} → [inst : Ring R] → ModuleCat R ≌ SemimoduleCat R

The categorical equivalence between ModuleCat and SemimoduleCat.

In the inverse direction, data (such as the negation operation) is created which may lead to diamonds when applied to semi-modules that already have an existing additive group structure.

theorem ModuleCat.forget_obj E1 #

∀ (R : Type u) [inst : Ring R] {M : ModuleCat R}, (CategoryTheory.forget (ModuleCat R)).obj M = ↑M

instance ModuleCat.hasForgetToAddCommGroup E0 #

(R : Type u) → [inst : Ring R] → CategoryTheory.HasForget₂ (ModuleCat R) AddCommGrpCat

theorem ModuleCat.forget₂_obj E0 #

∀ (R : Type u) [inst : Ring R] (X : ModuleCat R), (CategoryTheory.forget₂ (ModuleCat R) AddCommGrpCat).obj X = ↧↑X

theorem ModuleCat.forget₂_obj_moduleCat_of E1 #

∀ (R : Type u) [inst : Ring R] (X : Type v) [inst_1 : AddCommGroup X] [inst_2 : Module R X],
  (CategoryTheory.forget₂ (ModuleCat R) AddCommGrpCat).obj ↧X = ↧X

theorem ModuleCat.forget₂_map E0 #

∀ (R : Type u) [inst : Ring R] (X Y : ModuleCat R) (f : X ⟶ Y),
  (CategoryTheory.forget₂ (ModuleCat R) AddCommGrpCat).map f = AddCommGrpCat.ofHom ↑(ModuleCat.Hom.hom f)

instance ModuleCat.instInhabited E0 #

(R : Type u) → [inst : Ring R] → Inhabited (ModuleCat R)

theorem ModuleCat.of_coe E0 #

∀ (R : Type u) [inst : Ring R] (X : ModuleCat R), ↧↑X = X

theorem ModuleCat.isZero_of_subsingleton E1 #

∀ {R : Type u} [inst : Ring R] (M : ModuleCat R) [Subsingleton ↑M], CategoryTheory.Limits.IsZero M

instance ModuleCat.instHasZeroObject E0 #

∀ {R : Type u} [inst : Ring R], CategoryTheory.Limits.HasZeroObject (ModuleCat R)

def ModuleCat.«term↟_» E1 #

Lean.ParserDescr

Reinterpreting a linear map in the category of R-modules

def LinearEquiv.toModuleIso E1 #

{R : Type u} →
  [inst : Ring R] →
    {X₁ X₂ : Type v} →
      {g₁ : AddCommGroup X₁} →
        {g₂ : AddCommGroup X₂} → {m₁ : Module R X₁} → {m₂ : Module R X₂} → (X₁ ≃ₗ[R] X₂) → (↧X₁ ≅ ↧X₂)

Build an isomorphism in the category Module R from a LinearEquiv between Modules.

theorem LinearEquiv.toModuleIso_inv E0 #

∀ {R : Type u} [inst : Ring R] {X₁ X₂ : Type v} {g₁ : AddCommGroup X₁} {g₂ : AddCommGroup X₂} {m₁ : Module R X₁}
  {m₂ : Module R X₂} (e : X₁ ≃ₗ[R] X₂), e.toModuleIso.inv = ModuleCat.ofHom ↑e.symm

theorem LinearEquiv.toModuleIso_hom E0 #

∀ {R : Type u} [inst : Ring R] {X₁ X₂ : Type v} {g₁ : AddCommGroup X₁} {g₂ : AddCommGroup X₂} {m₁ : Module R X₁}
  {m₂ : Module R X₂} (e : X₁ ≃ₗ[R] X₂), e.toModuleIso.hom = ModuleCat.ofHom ↑e

def CategoryTheory.Iso.toLinearEquiv E1 #

{R : Type u} → [inst : Ring R] → {X Y : ModuleCat R} → (X ≅ Y) → ↑X ≃ₗ[R] ↑Y

Build a LinearEquiv from an isomorphism in the category ModuleCat R.

theorem CategoryTheory.Iso.toLinearEquiv_apply E0 #

∀ {R : Type u} [inst : Ring R] {X Y : ModuleCat R} (i : X ≅ Y) (x : ↑X),
  i.toLinearEquiv x = (CategoryTheory.ConcreteCategory.hom i.hom) x

theorem CategoryTheory.Iso.toLinearEquiv_symm E0 #

∀ {R : Type u} [inst : Ring R] {X Y : ModuleCat R} (i : X ≅ Y), i.toLinearEquiv.symm = i.symm.toLinearEquiv

theorem CategoryTheory.Iso.toLinearMap_toLinearEquiv E0 #

∀ {R : Type u} [inst : Ring R] {X Y : ModuleCat R} (i : X ≅ Y), ↑i.toLinearEquiv = ModuleCat.Hom.hom i.hom

def linearEquivIsoModuleIso E1 #

{R : Type u} →
  [inst : Ring R] →
    {X Y : Type u} →
      [inst_1 : AddCommGroup X] →
        [inst_2 : AddCommGroup Y] → [inst_3 : Module R X] → [inst_4 : Module R Y] → (X ≃ₗ[R] Y) ≅ ↧X ≅ ↧Y

linear equivalences between Modules are the same as (isomorphic to) isomorphisms in ModuleCat

theorem linearEquivIsoModuleIso_hom E0 #

∀ {R : Type u} [inst : Ring R] {X Y : Type u} [inst_1 : AddCommGroup X] [inst_2 : AddCommGroup Y] [inst_3 : Module R X]
  [inst_4 : Module R Y], linearEquivIsoModuleIso.hom = TypeCat.ofHom fun e ↦ e.toModuleIso

theorem linearEquivIsoModuleIso_inv E0 #

∀ {R : Type u} [inst : Ring R] {X Y : Type u} [inst_1 : AddCommGroup X] [inst_2 : AddCommGroup Y] [inst_3 : Module R X]
  [inst_4 : Module R Y], linearEquivIsoModuleIso.inv = TypeCat.ofHom fun i ↦ i.toLinearEquiv

instance ModuleCat.instAddHom E0 #

{R : Type u} → [inst : Ring R] → {M N : ModuleCat R} → Add (M ⟶ N)

theorem ModuleCat.hom_add E0 #

∀ {R : Type u} [inst : Ring R] {M N : ModuleCat R} (f g : M ⟶ N),
  ModuleCat.Hom.hom (f + g) = ModuleCat.Hom.hom f + ModuleCat.Hom.hom g

instance ModuleCat.instZeroHom E0 #

{R : Type u} → [inst : Ring R] → {M N : ModuleCat R} → Zero (M ⟶ N)

theorem ModuleCat.hom_zero E0 #

∀ {R : Type u} [inst : Ring R] {M N : ModuleCat R}, ModuleCat.Hom.hom 0 = 0

instance ModuleCat.instSMulNatHom E0 #

{R : Type u} → [inst : Ring R] → {M N : ModuleCat R} → SMul ℕ (M ⟶ N)

theorem ModuleCat.hom_nsmul E0 #

∀ {R : Type u} [inst : Ring R] {M N : ModuleCat R} (n : ℕ) (f : M ⟶ N),
  ModuleCat.Hom.hom (n • f) = n • ModuleCat.Hom.hom f

instance ModuleCat.instNegHom E0 #

{R : Type u} → [inst : Ring R] → {M N : ModuleCat R} → Neg (M ⟶ N)

theorem ModuleCat.hom_neg E0 #

∀ {R : Type u} [inst : Ring R] {M N : ModuleCat R} (f : M ⟶ N), ModuleCat.Hom.hom (-f) = -ModuleCat.Hom.hom f

instance ModuleCat.instSubHom E0 #

{R : Type u} → [inst : Ring R] → {M N : ModuleCat R} → Sub (M ⟶ N)

theorem ModuleCat.hom_sub E0 #

∀ {R : Type u} [inst : Ring R] {M N : ModuleCat R} (f g : M ⟶ N),
  ModuleCat.Hom.hom (f - g) = ModuleCat.Hom.hom f - ModuleCat.Hom.hom g

instance ModuleCat.instSMulIntHom E0 #

{R : Type u} → [inst : Ring R] → {M N : ModuleCat R} → SMul ℤ (M ⟶ N)

theorem ModuleCat.hom_zsmul E0 #

∀ {R : Type u} [inst : Ring R] {M N : ModuleCat R} (n : ℤ) (f : M ⟶ N),
  ModuleCat.Hom.hom (n • f) = n • ModuleCat.Hom.hom f

instance ModuleCat.instAddCommGroupHom E0 #

{R : Type u} → [inst : Ring R] → {M N : ModuleCat R} → AddCommGroup (M ⟶ N)

theorem ModuleCat.hom_sum E0 #

∀ {R : Type u} [inst : Ring R] {M N : ModuleCat R} {ι : Type u_1} (f : ι → (M ⟶ N)) (s : Finset ι),
  ModuleCat.Hom.hom (∑ i ∈ s, f i) = ∑ i ∈ s, ModuleCat.Hom.hom (f i)

instance ModuleCat.instPreadditive E0 #

{R : Type u} → [inst : Ring R] → CategoryTheory.Preadditive (ModuleCat R)

instance ModuleCat.forget₂_addCommGrp_additive E0 #

∀ {R : Type u} [inst : Ring R], (CategoryTheory.forget₂ (ModuleCat R) AddCommGrpCat).Additive

def ModuleCat.homAddEquiv E1 #

{R : Type u} → [inst : Ring R] → {M N : ModuleCat R} → (M ⟶ N) ≃+ (↑M →ₗ[R] ↑N)

ModuleCat.Hom.hom bundled as an additive equivalence.

theorem ModuleCat.homAddEquiv_symm_apply_hom E0 #

∀ {R : Type u} [inst : Ring R] {M N : ModuleCat R} (f : ↑M →ₗ[R] ↑N),
  ModuleCat.Hom.hom (ModuleCat.homAddEquiv.symm f) = f

theorem ModuleCat.homAddEquiv_apply E0 #

∀ {R : Type u} [inst : Ring R] {M N : ModuleCat R} (f : M.Hom N), ModuleCat.homAddEquiv f = f.hom

theorem ModuleCat.subsingleton_of_isZero E1 #

∀ {R : Type u} [inst : Ring R] {M : ModuleCat R}, CategoryTheory.Limits.IsZero M → Subsingleton ↑M

theorem ModuleCat.isZero_iff_subsingleton E1 #

∀ {R : Type u} [inst : Ring R] {M : ModuleCat R}, CategoryTheory.Limits.IsZero M ↔ Subsingleton ↑M

theorem ModuleCat.isZero_of_iff_subsingleton E0 #

∀ {R : Type u} [inst : Ring R] {M : Type u_1} [inst_1 : AddCommGroup M] [inst_2 : Module R M],
  CategoryTheory.Limits.IsZero ↧M ↔ Subsingleton M

theorem ModuleCat.ofHom_zero E0 #

∀ {R : Type u} [inst : Ring R] {M N : Type v} [inst_1 : AddCommGroup M] [inst_2 : Module R M] [inst_3 : AddCommGroup N]
  [inst_4 : Module R N], ModuleCat.ofHom 0 = 0

theorem ModuleCat.ofHom_add E0 #

∀ {R : Type u} [inst : Ring R] {M N : Type v} [inst_1 : AddCommGroup M] [inst_2 : Module R M] [inst_3 : AddCommGroup N]
  [inst_4 : Module R N] (f g : M →ₗ[R] N), ModuleCat.ofHom (f + g) = ModuleCat.ofHom f + ModuleCat.ofHom g

instance ModuleCat.instSMulHom E0 #

{R : Type u} →
  [inst : Ring R] →
    {M N : ModuleCat R} →
      {S : Type u_1} → [inst_1 : Monoid S] → [inst_2 : DistribMulAction S ↑N] → [SMulCommClass R S ↑N] → SMul S (M ⟶ N)

theorem ModuleCat.hom_smul E0 #

∀ {R : Type u} [inst : Ring R] {M N : ModuleCat R} {S : Type u_1} [inst_1 : Monoid S] [inst_2 : DistribMulAction S ↑N]
  [inst_3 : SMulCommClass R S ↑N] (s : S) (f : M ⟶ N), ModuleCat.Hom.hom (s • f) = s • ModuleCat.Hom.hom f

instance ModuleCat.Hom.instModule E0 #

{R : Type u} →
  [inst : Ring R] →
    {M N : ModuleCat R} →
      {S : Type u_1} → [inst_1 : Semiring S] → [inst_2 : Module S ↑N] → [SMulCommClass R S ↑N] → Module S (M ⟶ N)

def ModuleCat.homLinearEquiv E1 #

{R : Type u} →
  [inst : Ring R] →
    {M N : ModuleCat R} →
      {S : Type u_1} →
        [inst_1 : Semiring S] → [inst_2 : Module S ↑N] → [inst_3 : SMulCommClass R S ↑N] → (M ⟶ N) ≃ₗ[S] ↑M →ₗ[R] ↑N

ModuleCat.Hom.hom bundled as a linear equivalence.

theorem ModuleCat.homLinearEquiv_symm_apply E0 #

∀ {R : Type u} [inst : Ring R] {M N : ModuleCat R} {S : Type u_1} [inst_1 : Semiring S] [inst_2 : Module S ↑N]
  [inst_3 : SMulCommClass R S ↑N] (a : ↑M →ₗ[R] ↑N), ModuleCat.homLinearEquiv.symm a = ModuleCat.homAddEquiv.invFun a

theorem ModuleCat.homLinearEquiv_apply E0 #

∀ {R : Type u} [inst : Ring R] {M N : ModuleCat R} {S : Type u_1} [inst_1 : Semiring S] [inst_2 : Module S ↑N]
  [inst_3 : SMulCommClass R S ↑N] (a : M ⟶ N), ModuleCat.homLinearEquiv a = ModuleCat.homAddEquiv.toFun a

def ModuleCat.Algebra.instModuleCarrier E1 #

{S₀ : Type u₀} →
  [inst : CommSemiring S₀] → {S : Type u} → [inst_1 : Ring S] → [Algebra S₀ S] → {M : ModuleCat S} → Module S₀ ↑M

Let S be an S₀-algebra. Then S-modules are modules over S₀.

theorem ModuleCat.Algebra.instIsScalarTowerCarrier E1 #

∀ {S₀ : Type u₀} [inst : CommSemiring S₀] {S : Type u} [inst_1 : Ring S] [inst_2 : Algebra S₀ S] {M : ModuleCat S},
  IsScalarTower S₀ S ↑M

theorem ModuleCat.Algebra.instSMulCommClassCarrier E1 #

∀ {S₀ : Type u₀} [inst : CommSemiring S₀] {S : Type u} [inst_1 : Ring S] [inst_2 : Algebra S₀ S] {M : ModuleCat S},
  SMulCommClass S S₀ ↑M

def ModuleCat.Algebra.instLinear E1 #

{S₀ : Type u₀} →
  [inst : CommSemiring S₀] → {S : Type u} → [inst_1 : Ring S] → [Algebra S₀ S] → CategoryTheory.Linear S₀ (ModuleCat S)

Let S be an S₀-algebra. Then the category of S-modules is S₀-linear.

instance ModuleCat.instLinear E0 #

{S : Type u} → [inst : CommRing S] → CategoryTheory.Linear S (ModuleCat S)

theorem ModuleCat.lsmul_eq_smul_id E1 #

∀ {S : Type u} [inst : CommRing S] (M : ModuleCat S) (s : S),
  ModuleCat.ofHom ((LinearMap.lsmul S ↑M) s) = s • CategoryTheory.CategoryStruct.id M

theorem ModuleCat.Iso.homCongr_eq_arrowCongr E1 #

∀ {S : Type u} [inst : CommRing S] {X Y X' Y' : ModuleCat S} (i : X ≅ X') (j : Y ≅ Y') (f : X ⟶ Y),
  (i.homCongr j) f = { hom' := (i.toLinearEquiv.arrowCongr j.toLinearEquiv) (ModuleCat.Hom.hom f) }

theorem ModuleCat.Iso.conj_eq_conj E1 #

∀ {S : Type u} [inst : CommRing S] {X X' : ModuleCat S} (i : X ≅ X') (f : CategoryTheory.End X),
  i.conj f = { asHom := { hom' := i.toLinearEquiv.conj (ModuleCat.Hom.hom f.asHom) } }

def ModuleCat.endRingEquiv E1 #

{R : Type u} → [inst : Ring R] → (M : ModuleCat R) → CategoryTheory.End M ≃+* (↑M →ₗ[R] ↑M)

ModuleCat.Hom.hom as an isomorphism of rings.

theorem ModuleCat.endRingEquiv_symm_apply_asHom_hom E0 #

∀ {R : Type u} [inst : Ring R] (M : ModuleCat R) (f : ↑M →ₗ[R] ↑M), ModuleCat.Hom.hom (M.endRingEquiv.symm f).asHom = f

theorem ModuleCat.endRingEquiv_apply E0 #

∀ {R : Type u} [inst : Ring R] (M : ModuleCat R) (f : CategoryTheory.End M),
  M.endRingEquiv f = ModuleCat.Hom.hom f.asHom

def ModuleCat.smul E1 #

{R : Type u} →
  [inst : Ring R] →
    (M : ModuleCat R) → R →+* CategoryTheory.End ((CategoryTheory.forget₂ (ModuleCat R) AddCommGrpCat).obj M)

The scalar multiplication on an object of ModuleCat R considered as a morphism of rings from R to the endomorphisms of the underlying abelian group.

theorem ModuleCat.smul_naturality E1 #

∀ {R : Type u} [inst : Ring R] {M N : ModuleCat R} (f : M ⟶ N) (r : R),
  CategoryTheory.CategoryStruct.comp ((CategoryTheory.forget₂ (ModuleCat R) AddCommGrpCat).map f) (N.smul r).asHom =
    CategoryTheory.CategoryStruct.comp (M.smul r).asHom ((CategoryTheory.forget₂ (ModuleCat R) AddCommGrpCat).map f)

def ModuleCat.smulNatTrans E1 #

(R : Type u) → [inst : Ring R] → R →+* CategoryTheory.End (CategoryTheory.forget₂ (ModuleCat R) AddCommGrpCat)

The scalar multiplication on ModuleCat R considered as a morphism of rings to the endomorphisms of the forgetful functor to AddCommGrpCat.

theorem ModuleCat.smulNatTrans_apply_asHom_app E0 #

∀ (R : Type u) [inst : Ring R] (r : R) (M : ModuleCat R), ((ModuleCat.smulNatTrans R) r).asHom.app M = (M.smul r).asHom

def ModuleCat.mkOfSMul' E1 #

{R : Type u} → [inst : Ring R] → {A : AddCommGrpCat} → (R →+* CategoryTheory.End A) → AddCommGrpCat

Given A : AddCommGrpCat and a ring morphism R →+* End A, this is a type synonym for A, on which we shall define a structure of R-module.

instance ModuleCat.instAddCommGroupCarrierMkOfSMul' E0 #

{R : Type u} →
  [inst : Ring R] → {A : AddCommGrpCat} → (φ : R →+* CategoryTheory.End A) → AddCommGroup ↑(ModuleCat.mkOfSMul' φ)

instance ModuleCat.instSMulCarrierMkOfSMul' E0 #

{R : Type u} →
  [inst : Ring R] → {A : AddCommGrpCat} → (φ : R →+* CategoryTheory.End A) → SMul R ↑(ModuleCat.mkOfSMul' φ)

theorem ModuleCat.mkOfSMul'_smul E0 #

∀ {R : Type u} [inst : Ring R] {A : AddCommGrpCat} (φ : R →+* CategoryTheory.End A) (r : R)
  (x : ↑(ModuleCat.mkOfSMul' φ)), r • x = (CategoryTheory.ConcreteCategory.hom (φ r).asHom) x

instance ModuleCat.instModuleCarrierMkOfSMul' E0 #

{R : Type u} →
  [inst : Ring R] → {A : AddCommGrpCat} → (φ : R →+* CategoryTheory.End A) → Module R ↑(ModuleCat.mkOfSMul' φ)

abbrev ModuleCat.mkOfSMul E1 #

{R : Type u} → [inst : Ring R] → {A : AddCommGrpCat} → (R →+* CategoryTheory.End A) → ModuleCat R

Given A : AddCommGrpCat and a ring morphism R →+* End A, this is an object in ModuleCat R, whose underlying abelian group is A and whose scalar multiplication is given by R.

theorem ModuleCat.mkOfSMul_smul E1 #

∀ {R : Type u} [inst : Ring R] {A : AddCommGrpCat} (φ : R →+* CategoryTheory.End A) (r : R),
  (ModuleCat.mkOfSMul φ).smul r = φ r

def ModuleCat.homMk E1 #

{R : Type u} →
  [inst : Ring R] →
    {M N : ModuleCat R} →
      (φ :
          (CategoryTheory.forget₂ (ModuleCat R) AddCommGrpCat).obj M ⟶
            (CategoryTheory.forget₂ (ModuleCat R) AddCommGrpCat).obj N) →
        (∀ (r : R),
            CategoryTheory.CategoryStruct.comp φ (N.smul r).asHom =
              CategoryTheory.CategoryStruct.comp (M.smul r).asHom φ) →
          (M ⟶ N)

Constructor for morphisms in ModuleCat R which takes as inputs a morphism between the underlying objects in AddCommGrpCat and the compatibility with the scalar multiplication.

theorem ModuleCat.homMk_hom_apply E0 #

∀ {R : Type u} [inst : Ring R] {M N : ModuleCat R}
  (φ :
    (CategoryTheory.forget₂ (ModuleCat R) AddCommGrpCat).obj M ⟶
      (CategoryTheory.forget₂ (ModuleCat R) AddCommGrpCat).obj N)
  (hφ :
    ∀ (r : R),
      CategoryTheory.CategoryStruct.comp φ (N.smul r).asHom = CategoryTheory.CategoryStruct.comp (M.smul r).asHom φ)
  (a : ↑((CategoryTheory.forget₂ (ModuleCat R) AddCommGrpCat).obj M)),
  (ModuleCat.Hom.hom (ModuleCat.homMk φ hφ)) a = (CategoryTheory.ConcreteCategory.hom φ) a

theorem ModuleCat.forget₂_map_homMk E1 #

∀ {R : Type u} [inst : Ring R] {M N : ModuleCat R}
  (φ :
    (CategoryTheory.forget₂ (ModuleCat R) AddCommGrpCat).obj M ⟶
      (CategoryTheory.forget₂ (ModuleCat R) AddCommGrpCat).obj N)
  (hφ :
    ∀ (r : R),
      CategoryTheory.CategoryStruct.comp φ (N.smul r).asHom = CategoryTheory.CategoryStruct.comp (M.smul r).asHom φ),
  (CategoryTheory.forget₂ (ModuleCat R) AddCommGrpCat).map (ModuleCat.homMk φ hφ) = φ

def ModuleCat.isoMk E1 #

{R : Type u} →
  [inst : Ring R] →
    {M N : ModuleCat R} →
      (φ : (CategoryTheory.forget₂ (ModuleCat R) Ab).obj M ≅ (CategoryTheory.forget₂ (ModuleCat R) Ab).obj N) →
        (∀ (r : R),
            CategoryTheory.CategoryStruct.comp φ.hom (N.smul r).asHom =
              CategoryTheory.CategoryStruct.comp (M.smul r).asHom φ.hom) →
          (M ≅ N)

Constructor for isomorphisms in ModuleCat R taking an isomorphism in AddCommGrpCat and a compatibility condition.

theorem ModuleCat.isoMk_hom E0 #

∀ {R : Type u} [inst : Ring R] {M N : ModuleCat R}
  (φ : (CategoryTheory.forget₂ (ModuleCat R) Ab).obj M ≅ (CategoryTheory.forget₂ (ModuleCat R) Ab).obj N)
  (hφ :
    ∀ (r : R),
      CategoryTheory.CategoryStruct.comp φ.hom (N.smul r).asHom =
        CategoryTheory.CategoryStruct.comp (M.smul r).asHom φ.hom),
  (ModuleCat.isoMk φ hφ).hom = ModuleCat.homMk φ.hom hφ

theorem ModuleCat.isoMk_inv E0 #

∀ {R : Type u} [inst : Ring R] {M N : ModuleCat R}
  (φ : (CategoryTheory.forget₂ (ModuleCat R) Ab).obj M ≅ (CategoryTheory.forget₂ (ModuleCat R) Ab).obj N)
  (hφ :
    ∀ (r : R),
      CategoryTheory.CategoryStruct.comp φ.hom (N.smul r).asHom =
        CategoryTheory.CategoryStruct.comp (M.smul r).asHom φ.hom),
  (ModuleCat.isoMk φ hφ).inv = ModuleCat.homMk φ.inv ⋯

theorem ModuleCat.isoMk_symm E0 #

∀ {R : Type u} [inst : Ring R] {M N : ModuleCat R}
  (φ : (CategoryTheory.forget₂ (ModuleCat R) Ab).obj M ≅ (CategoryTheory.forget₂ (ModuleCat R) Ab).obj N)
  (hφ :
    ∀ (r : R),
      CategoryTheory.CategoryStruct.comp φ.hom (N.smul r).asHom =
        CategoryTheory.CategoryStruct.comp (M.smul r).asHom φ.hom),
  (ModuleCat.isoMk φ hφ).symm = ModuleCat.isoMk φ.symm ⋯

instance ModuleCat.instReflectsIsomorphismsForgetLinearMapIdCarrier E0 #

∀ {R : Type u} [inst : Ring R], (CategoryTheory.forget (ModuleCat R)).ReflectsIsomorphisms

instance ModuleCat.instReflectsIsomorphismsAddCommGrpCatForget₂LinearMapIdCarrierAddMonoidHomCarrier E0 #

∀ {R : Type u} [inst : Ring R], (CategoryTheory.forget₂ (ModuleCat R) AddCommGrpCat).ReflectsIsomorphisms

def ModuleCat.ofHom₂ E1 #

{R : Type u_1} → [inst : CommRing R] → {M N P : ModuleCat R} → (↑M →ₗ[R] ↑N →ₗ[R] ↑P) → (M ⟶ ↧(N ⟶ P))

Turn a bilinear map into a homomorphism.

theorem ModuleCat.ofHom₂_hom_apply_hom E0 #

∀ {R : Type u_1} [inst : CommRing R] {M N P : ModuleCat R} (f : ↑M →ₗ[R] ↑N →ₗ[R] ↑P) (x : ↑M),
  ModuleCat.Hom.hom ((ModuleCat.Hom.hom (ModuleCat.ofHom₂ f)) x) = f x

def ModuleCat.Hom.hom₂ E1 #

{R : Type u_1} → [inst : CommRing R] → {M N P : ModuleCat R} → (M ⟶ ↧(N ⟶ P)) → ↑M →ₗ[R] ↑N →ₗ[R] ↑P

Turn a homomorphism into a bilinear map.

theorem ModuleCat.Hom.hom₂_apply E0 #

∀ {R : Type u_1} [inst : CommRing R] {M N P : ModuleCat R} (f : M ⟶ ↧(N ⟶ P)) (x : ↑M),
  (ModuleCat.Hom.hom₂ f) x = (ModuleCat.ofHom ↑ModuleCat.homLinearEquiv).hom' (f.hom' x)

theorem ModuleCat.Hom.hom₂_ofHom₂ E0 #

∀ {R : Type u_1} [inst : CommRing R] {M N P : ModuleCat R} (f : ↑M →ₗ[R] ↑N →ₗ[R] ↑P),
  ModuleCat.Hom.hom₂ (ModuleCat.ofHom₂ f) = f

theorem ModuleCat.ofHom₂_hom₂ E0 #

∀ {R : Type u_1} [inst : CommRing R] {M N P : ModuleCat R} (f : M ⟶ ↧(N ⟶ P)),
  ModuleCat.ofHom₂ (ModuleCat.Hom.hom₂ f) = f

instance instNontrivialCarrierObjModuleCatOfFullOfFaithful E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Ring R] [inst_1 : Ring S]
  (F : CategoryTheory.Functor (ModuleCat R) (ModuleCat S)) [F.Full] [F.Faithful] (M : ModuleCat R) [h : Nontrivial ↑M],
  Nontrivial ↑(F.obj M)

Deprecated aliases

NameNew nameSince
LinearMap.comp_id_moduleCat2026-10-06
LinearMap.id_moduleCat_comp2026-10-06