The areas / V25. Higher structures in categories
Mathlib.CategoryTheory.Linear.Basic
35 declarations. Mathlib docs · Source
def CategoryTheory.Linear.ctorIdx E1 #
{R : Type w} →
{inst : Semiring R} →
{C : Type u} →
{inst_1 : CategoryTheory.Category.{v, u} C} →
{inst_2 : CategoryTheory.Preadditive C} → CategoryTheory.Linear R C → ℕ
class CategoryTheory.Linear E1 #
(R : Type w) →
[Semiring R] →
(C : Type u) → [inst : CategoryTheory.Category.{v, u} C] → [CategoryTheory.Preadditive C] → Type (max (max u v) w)
A category is called R-linear if P ⟶ Q is an R-module such that composition is
R-linear in both variables.
ctor CategoryTheory.Linear.mk E0 #
{R : Type w} →
[inst : Semiring R] →
{C : Type u} →
[inst_1 : CategoryTheory.Category.{v, u} C] →
[inst_2 : CategoryTheory.Preadditive C] →
(homModule : autoParam ((X Y : C) → Module R (X ⟶ Y)) CategoryTheory.Linear.homModule._autoParam) →
autoParam
(∀ (X Y Z : C) (r : R) (f : X ⟶ Y) (g : Y ⟶ Z),
CategoryTheory.CategoryStruct.comp (r • f) g = r • CategoryTheory.CategoryStruct.comp f g)
CategoryTheory.Linear.smul_comp._autoParam →
autoParam
(∀ (X Y Z : C) (f : X ⟶ Y) (r : R) (g : Y ⟶ Z),
CategoryTheory.CategoryStruct.comp f (r • g) = r • CategoryTheory.CategoryStruct.comp f g)
CategoryTheory.Linear.comp_smul._autoParam →
CategoryTheory.Linear R C
instance CategoryTheory.Linear.homModule E0 #
{R : Type w} →
{inst : Semiring R} →
{C : Type u} →
{inst_1 : CategoryTheory.Category.{v, u} C} →
{inst_2 : CategoryTheory.Preadditive C} → [self : CategoryTheory.Linear R C] → (X Y : C) → Module R (X ⟶ Y)
theorem CategoryTheory.Linear.smul_comp E0 #
∀ {R : Type w} {inst : Semiring R} {C : Type u} {inst_1 : CategoryTheory.Category.{v, u} C}
{inst_2 : CategoryTheory.Preadditive C} [self : CategoryTheory.Linear R C] (X Y Z : C) (r : R) (f : X ⟶ Y)
(g : Y ⟶ Z), CategoryTheory.CategoryStruct.comp (r • f) g = r • CategoryTheory.CategoryStruct.comp f g
compatibility of the scalar multiplication with the post-composition
theorem CategoryTheory.Linear.comp_smul E0 #
∀ {R : Type w} {inst : Semiring R} {C : Type u} {inst_1 : CategoryTheory.Category.{v, u} C}
{inst_2 : CategoryTheory.Preadditive C} [self : CategoryTheory.Linear R C] (X Y Z : C) (f : X ⟶ Y) (r : R)
(g : Y ⟶ Z), CategoryTheory.CategoryStruct.comp f (r • g) = r • CategoryTheory.CategoryStruct.comp f g
compatibility of the scalar multiplication with the pre-composition
instance CategoryTheory.Linear.preadditiveNatLinear E0 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] → [inst_1 : CategoryTheory.Preadditive C] → CategoryTheory.Linear ℕ C
instance CategoryTheory.Linear.preadditiveIntLinear E0 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] → [inst_1 : CategoryTheory.Preadditive C] → CategoryTheory.Linear ℤ C
instance CategoryTheory.Linear.instModuleEnd E0 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Preadditive C] →
{R : Type w} → [inst_2 : Semiring R] → [CategoryTheory.Linear R C] → (X : C) → Module R (CategoryTheory.End X)
theorem CategoryTheory.End.smul_asHom E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {R : Type w}
[inst_2 : Semiring R] [inst_3 : CategoryTheory.Linear R C] {X : C} (r : R) (e : CategoryTheory.End X),
(r • e).asHom = r • e.asHom
def CategoryTheory.End.linearEquiv E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Preadditive C] →
{R : Type w} →
[inst_2 : Semiring R] → [inst_3 : CategoryTheory.Linear R C] → {X : C} → CategoryTheory.End X ≃ₗ[R] X ⟶ X
The linear equivalence End X ≃ₗ[R] (X ⟶ X) when X is
an object of a R-linear category.
theorem CategoryTheory.End.linearEquiv_apply E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {R : Type w}
[inst_2 : Semiring R] [inst_3 : CategoryTheory.Linear R C] {X : C} (a : CategoryTheory.End X),
CategoryTheory.End.linearEquiv a = CategoryTheory.End.addEquiv.toFun a
theorem CategoryTheory.End.linearEquiv_symm_apply E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {R : Type w}
[inst_2 : Semiring R] [inst_3 : CategoryTheory.Linear R C] {X : C} (a : X ⟶ X),
CategoryTheory.End.linearEquiv.symm a = CategoryTheory.End.addEquiv.invFun a
instance CategoryTheory.Linear.instAlgebraEnd E0 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Preadditive C] →
{R : Type w} →
[inst_2 : CommSemiring R] → [CategoryTheory.Linear R C] → (X : C) → Algebra R (CategoryTheory.End X)
instance CategoryTheory.Linear.oppositeCategory E0 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Preadditive C] →
{R : Type w} → [inst_2 : Semiring R] → [CategoryTheory.Linear R C] → CategoryTheory.Linear R Cᵒᵖ
theorem CategoryTheory.Linear.unop_smul E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {R : Type w}
[inst_2 : Semiring R] [inst_3 : CategoryTheory.Linear R C] {X Y : Cᵒᵖ} (r : R) (f : X ⟶ Y), (r • f).unop = r • f.unop
theorem CategoryTheory.Linear.op_smul E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {R : Type w}
[inst_2 : Semiring R] [inst_3 : CategoryTheory.Linear R C] {X Y : C} (r : R) (f : X ⟶ Y), (r • f).op = r • f.op
instance CategoryTheory.Linear.inducedCategory E0 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Preadditive C] →
{R : Type w} →
[inst_2 : Semiring R] →
[CategoryTheory.Linear R C] →
{D : Type u'} → (F : D → C) → CategoryTheory.Linear R (CategoryTheory.InducedCategory C F)
def CategoryTheory.InducedCategory.homLinearEquiv E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Preadditive C] →
{R : Type w} →
[inst_2 : Semiring R] →
[inst_3 : CategoryTheory.Linear R C] →
{D : Type u'} → {F : D → C} → {X Y : CategoryTheory.InducedCategory C F} → (X ⟶ Y) ≃ₗ[R] F X ⟶ F Y
The linear equivalence (X ⟶ Y) ≃+ (F X ⟶ F Y) when F : D → C and
C is a R-linear category.
theorem CategoryTheory.InducedCategory.homLinearEquiv_apply E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {R : Type w}
[inst_2 : Semiring R] [inst_3 : CategoryTheory.Linear R C] {D : Type u'} {F : D → C}
{X Y : CategoryTheory.InducedCategory C F} (a : X ⟶ Y), CategoryTheory.InducedCategory.homLinearEquiv a = a.hom
theorem CategoryTheory.InducedCategory.homLinearEquiv_symm_apply_hom E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {R : Type w}
[inst_2 : Semiring R] [inst_3 : CategoryTheory.Linear R C] {D : Type u'} {F : D → C}
{X Y : CategoryTheory.InducedCategory C F} (a : F X ⟶ F Y),
(CategoryTheory.InducedCategory.homLinearEquiv.symm a).hom = a
instance CategoryTheory.Linear.fullSubcategory E0 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Preadditive C] →
{R : Type w} →
[inst_2 : Semiring R] →
[CategoryTheory.Linear R C] →
(Z : CategoryTheory.ObjectProperty C) → CategoryTheory.Linear R Z.FullSubcategory
def CategoryTheory.Linear.leftComp E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Preadditive C] →
(R : Type w) →
[inst_2 : Semiring R] →
[inst_3 : CategoryTheory.Linear R C] → {X Y : C} → (Z : C) → (X ⟶ Y) → (Y ⟶ Z) →ₗ[R] X ⟶ Z
Composition by a fixed left argument as an R-linear map.
theorem CategoryTheory.Linear.leftComp_apply E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] (R : Type w)
[inst_2 : Semiring R] [inst_3 : CategoryTheory.Linear R C] {X Y : C} (Z : C) (f : X ⟶ Y) (g : Y ⟶ Z),
(CategoryTheory.Linear.leftComp R Z f) g = CategoryTheory.CategoryStruct.comp f g
def CategoryTheory.Linear.rightComp E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Preadditive C] →
(R : Type w) →
[inst_2 : Semiring R] →
[inst_3 : CategoryTheory.Linear R C] → (X : C) → {Y Z : C} → (Y ⟶ Z) → (X ⟶ Y) →ₗ[R] X ⟶ Z
Composition by a fixed right argument as an R-linear map.
theorem CategoryTheory.Linear.rightComp_apply E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] (R : Type w)
[inst_2 : Semiring R] [inst_3 : CategoryTheory.Linear R C] (X : C) {Y Z : C} (g : Y ⟶ Z) (f : X ⟶ Y),
(CategoryTheory.Linear.rightComp R X g) f = CategoryTheory.CategoryStruct.comp f g
instance CategoryTheory.Linear.instEpiHSMulHomOfInvertible E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] (R : Type w)
[inst_2 : Semiring R] [inst_3 : CategoryTheory.Linear R C] {X Y : C} (f : X ⟶ Y) [CategoryTheory.Epi f] (r : R)
[Invertible r], CategoryTheory.Epi (r • f)
instance CategoryTheory.Linear.instMonoHSMulHomOfInvertible E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] (R : Type w)
[inst_2 : Semiring R] [inst_3 : CategoryTheory.Linear R C] {X Y : C} (f : X ⟶ Y) [CategoryTheory.Mono f] (r : R)
[Invertible r], CategoryTheory.Mono (r • f)
def CategoryTheory.Linear.homCongr E1 #
(k : Type u_1) →
{C : Type u_2} →
[inst : CategoryTheory.Category.{v_1, u_2} C] →
[inst_1 : Semiring k] →
[inst_2 : CategoryTheory.Preadditive C] →
[inst_3 : CategoryTheory.Linear k C] → {X Y W Z : C} → (X ≅ Y) → (W ≅ Z) → (X ⟶ W) ≃ₗ[k] Y ⟶ Z
Given isomorphic objects X ≅ Y, W ≅ Z in a k-linear category, we have a k-linear
isomorphism between Hom(X, W) and Hom(Y, Z).
theorem CategoryTheory.Linear.homCongr_apply E0 #
∀ (k : Type u_1) {C : Type u_2} [inst : CategoryTheory.Category.{v_1, u_2} C] [inst_1 : Semiring k]
[inst_2 : CategoryTheory.Preadditive C] [inst_3 : CategoryTheory.Linear k C] {X Y W Z : C} (f₁ : X ≅ Y) (f₂ : W ≅ Z)
(f : X ⟶ W),
(CategoryTheory.Linear.homCongr k f₁ f₂) f =
CategoryTheory.CategoryStruct.comp (CategoryTheory.CategoryStruct.comp f₁.inv f) f₂.hom
theorem CategoryTheory.Linear.homCongr_symm_apply E0 #
∀ (k : Type u_1) {C : Type u_2} [inst : CategoryTheory.Category.{v_1, u_2} C] [inst_1 : Semiring k]
[inst_2 : CategoryTheory.Preadditive C] [inst_3 : CategoryTheory.Linear k C] {X Y W Z : C} (f₁ : X ≅ Y) (f₂ : W ≅ Z)
(f : Y ⟶ Z),
(CategoryTheory.Linear.homCongr k f₁ f₂).symm f =
CategoryTheory.CategoryStruct.comp f₁.hom (CategoryTheory.CategoryStruct.comp f f₂.inv)
theorem CategoryTheory.Linear.units_smul_comp E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {R : Type w}
[inst_2 : Semiring R] [inst_3 : CategoryTheory.Linear R C] {X Y Z : C} (r : Rˣ) (f : X ⟶ Y) (g : Y ⟶ Z),
CategoryTheory.CategoryStruct.comp (r • f) g = r • CategoryTheory.CategoryStruct.comp f g
theorem CategoryTheory.Linear.comp_units_smul E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {R : Type w}
[inst_2 : Semiring R] [inst_3 : CategoryTheory.Linear R C] {X Y Z : C} (f : X ⟶ Y) (r : Rˣ) (g : Y ⟶ Z),
CategoryTheory.CategoryStruct.comp f (r • g) = r • CategoryTheory.CategoryStruct.comp f g
def CategoryTheory.Linear.comp E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Preadditive C] →
{S : Type w} →
[inst_2 : CommSemiring S] →
[inst_3 : CategoryTheory.Linear S C] → (X Y Z : C) → (X ⟶ Y) →ₗ[S] (Y ⟶ Z) →ₗ[S] X ⟶ Z
Composition as a bilinear map.
theorem CategoryTheory.Linear.comp_apply E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {S : Type w}
[inst_2 : CommSemiring S] [inst_3 : CategoryTheory.Linear S C] (X Y Z : C) (f : X ⟶ Y),
(CategoryTheory.Linear.comp X Y Z) f = CategoryTheory.Linear.leftComp S Z f