The areas / V25. Higher structures in categories
Mathlib.CategoryTheory.Preadditive.HomOrthogonal
14 declarations. Mathlib docs · Source
Hom orthogonal families.
A family of objects in a category with zero morphisms is "hom orthogonal" if the only morphism between distinct objects is the zero morphism.
We show that in any category with zero morphisms and finite biproducts,
a morphism between biproducts drawn from a hom orthogonal family s : ι → C
can be decomposed into a block diagonal matrix with entries in the endomorphism rings of the s i.
When the category is preadditive, this decomposition is an additive equivalence,
and intertwines composition and matrix multiplication.
When the category is R-linear, the decomposition is an R-linear equivalence.
If every object in the hom orthogonal family has an endomorphism ring with invariant basis number (e.g. if each object in the family is simple, so its endomorphism ring is a division ring, or otherwise if each endomorphism ring is commutative), then decompositions of an object as a biproduct of the family have uniquely defined multiplicities. We state this as:
theorem HomOrthogonal.equiv_of_iso (o : HomOrthogonal s) {f : α → ι} {g : β → ι}
(i : (⨁ fun a => s (f a)) ≅ ⨁ fun b => s (g b)) : ∃ e : α ≃ β, ∀ a, g (e a) = f a
This is preliminary to defining semisimple categories.
The hypothesis that End (s i) has invariant basis number is automatically satisfied
if s i is simple (as then End (s i) is a division ring).
theorem CategoryTheory.HomOrthogonal.matrixDecomposition.congr_simp E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {ι : Type u_1} {s : ι → C}
[inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] [inst_2 : CategoryTheory.Limits.HasFiniteBiproducts C]
(o : CategoryTheory.HomOrthogonal s) {α β : Type} [inst_3 : Finite α] [inst_4 : Finite β] {f : α → ι} {g : β → ι},
o.matrixDecomposition = o.matrixDecomposition
def CategoryTheory.HomOrthogonal E1 #
{C : Type u} → [CategoryTheory.Category.{v, u} C] → {ι : Type u_1} → (ι → C) → Prop
A family of objects is "hom orthogonal" if there is at most one morphism between distinct objects.
(In a category with zero morphisms, that must be the zero morphism.)
def CategoryTheory.HomOrthogonal.matrixDecomposition E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
{ι : Type u_1} →
{s : ι → C} →
[inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
[inst_2 : CategoryTheory.Limits.HasFiniteBiproducts C] →
CategoryTheory.HomOrthogonal s →
{α β : Type} →
[inst_3 : Finite α] →
[inst_4 : Finite β] →
{f : α → ι} →
{g : β → ι} →
((⨁ fun a ↦ s (f a)) ⟶ ⨁ fun b ↦ s (g b)) ≃
((i : ι) → Matrix (↑(g ⁻¹' {i})) (↑(f ⁻¹' {i})) (CategoryTheory.End (s i)))
Morphisms between two direct sums over a hom orthogonal family s : ι → C
are equivalent to block diagonal matrices,
with blocks indexed by ι,
and matrix entries in i-th block living in the endomorphisms of s i.
theorem CategoryTheory.HomOrthogonal.matrixDecomposition_apply_asHom E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {ι : Type u_1} {s : ι → C}
[inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] [inst_2 : CategoryTheory.Limits.HasFiniteBiproducts C]
(o : CategoryTheory.HomOrthogonal s) {α β : Type} [inst_3 : Finite α] [inst_4 : Finite β] {f : α → ι} {g : β → ι}
(z : (⨁ fun a ↦ s (f a)) ⟶ ⨁ fun b ↦ s (g b)) (i : ι) (j : ↑(g ⁻¹' {i})) (k : ↑(f ⁻¹' {i})),
(o.matrixDecomposition z i j k).asHom =
CategoryTheory.CategoryStruct.comp (CategoryTheory.eqToHom ⋯)
(CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.components z ↑k ↑j)
(CategoryTheory.eqToHom ⋯))
theorem CategoryTheory.HomOrthogonal.matrixDecomposition_symm_apply E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {ι : Type u_1} {s : ι → C}
[inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] [inst_2 : CategoryTheory.Limits.HasFiniteBiproducts C]
(o : CategoryTheory.HomOrthogonal s) {α β : Type} [inst_3 : Finite α] [inst_4 : Finite β] {f : α → ι} {g : β → ι}
(z : (i : ι) → Matrix (↑(g ⁻¹' {i})) (↑(f ⁻¹' {i})) (CategoryTheory.End (s i))),
o.matrixDecomposition.symm z =
CategoryTheory.Limits.biproduct.matrix fun j k ↦
if h : f j = g k then CategoryTheory.CategoryStruct.comp (z (f j) ⟨k, ⋯⟩ ⟨j, ⋯⟩).asHom (CategoryTheory.eqToHom ⋯)
else 0
def CategoryTheory.HomOrthogonal.matrixDecompositionAddEquiv E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
{ι : Type u_1} →
{s : ι → C} →
[inst_1 : CategoryTheory.Preadditive C] →
[inst_2 : CategoryTheory.Limits.HasFiniteBiproducts C] →
CategoryTheory.HomOrthogonal s →
{α β : Type} →
[inst_3 : Finite α] →
[inst_4 : Finite β] →
{f : α → ι} →
{g : β → ι} →
((⨁ fun a ↦ s (f a)) ⟶ ⨁ fun b ↦ s (g b)) ≃+
((i : ι) → Matrix (↑(g ⁻¹' {i})) (↑(f ⁻¹' {i})) (CategoryTheory.End (s i)))
HomOrthogonal.matrixDecomposition as an additive equivalence.
theorem CategoryTheory.HomOrthogonal.matrixDecompositionAddEquiv_apply_asHom E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {ι : Type u_1} {s : ι → C}
[inst_1 : CategoryTheory.Preadditive C] [inst_2 : CategoryTheory.Limits.HasFiniteBiproducts C]
(o : CategoryTheory.HomOrthogonal s) {α β : Type} [inst_3 : Finite α] [inst_4 : Finite β] {f : α → ι} {g : β → ι}
(z : (⨁ fun a ↦ s (f a)) ⟶ ⨁ fun b ↦ s (g b)) (i : ι) (j : ↑(g ⁻¹' {i})) (k : ↑(f ⁻¹' {i})),
(o.matrixDecompositionAddEquiv z i j k).asHom =
CategoryTheory.CategoryStruct.comp (CategoryTheory.eqToHom ⋯)
(CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.biproduct.components z ↑k ↑j)
(CategoryTheory.eqToHom ⋯))
theorem CategoryTheory.HomOrthogonal.matrixDecompositionAddEquiv_symm_apply E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {ι : Type u_1} {s : ι → C}
[inst_1 : CategoryTheory.Preadditive C] [inst_2 : CategoryTheory.Limits.HasFiniteBiproducts C]
(o : CategoryTheory.HomOrthogonal s) {α β : Type} [inst_3 : Finite α] [inst_4 : Finite β] {f : α → ι} {g : β → ι}
(z : (i : ι) → Matrix (↑(g ⁻¹' {i})) (↑(f ⁻¹' {i})) (CategoryTheory.End (s i))),
o.matrixDecompositionAddEquiv.symm z =
CategoryTheory.Limits.biproduct.matrix fun j k ↦
if h : f j = g k then CategoryTheory.CategoryStruct.comp (z (f j) ⟨k, ⋯⟩ ⟨j, ⋯⟩).asHom (CategoryTheory.eqToHom ⋯)
else 0
theorem CategoryTheory.HomOrthogonal.matrixDecomposition_id E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {ι : Type u_1} {s : ι → C}
[inst_1 : CategoryTheory.Preadditive C] [inst_2 : CategoryTheory.Limits.HasFiniteBiproducts C]
(o : CategoryTheory.HomOrthogonal s) {α : Type} [inst_3 : Finite α] {f : α → ι} (i : ι),
o.matrixDecomposition (CategoryTheory.CategoryStruct.id (⨁ fun a ↦ s (f a))) i = 1
theorem CategoryTheory.HomOrthogonal.matrixDecomposition_comp E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {ι : Type u_1} {s : ι → C}
[inst_1 : CategoryTheory.Preadditive C] [inst_2 : CategoryTheory.Limits.HasFiniteBiproducts C]
(o : CategoryTheory.HomOrthogonal s) {α β γ : Type} [inst_3 : Finite α] [inst_4 : Fintype β] [inst_5 : Finite γ]
{f : α → ι} {g : β → ι} {h : γ → ι} (z : (⨁ fun a ↦ s (f a)) ⟶ ⨁ fun b ↦ s (g b))
(w : (⨁ fun b ↦ s (g b)) ⟶ ⨁ fun c ↦ s (h c)) (i : ι),
o.matrixDecomposition (CategoryTheory.CategoryStruct.comp z w) i =
o.matrixDecomposition w i * o.matrixDecomposition z i
def CategoryTheory.HomOrthogonal.matrixDecompositionLinearEquiv E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
{ι : Type u_1} →
{s : ι → C} →
[inst_1 : CategoryTheory.Preadditive C] →
[inst_2 : CategoryTheory.Limits.HasFiniteBiproducts C] →
{R : Type u_2} →
[inst_3 : Semiring R] →
[inst_4 : CategoryTheory.Linear R C] →
CategoryTheory.HomOrthogonal s →
{α β : Type} →
[inst_5 : Finite α] →
[inst_6 : Finite β] →
{f : α → ι} →
{g : β → ι} →
((⨁ fun a ↦ s (f a)) ⟶ ⨁ fun b ↦ s (g b)) ≃ₗ[R]
(i : ι) → Matrix (↑(g ⁻¹' {i})) (↑(f ⁻¹' {i})) (CategoryTheory.End (s i))
HomOrthogonal.MatrixDecomposition as an R-linear equivalence.
theorem CategoryTheory.HomOrthogonal.matrixDecompositionLinearEquiv_symm_apply E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {ι : Type u_1} {s : ι → C}
[inst_1 : CategoryTheory.Preadditive C] [inst_2 : CategoryTheory.Limits.HasFiniteBiproducts C] {R : Type u_2}
[inst_3 : Semiring R] [inst_4 : CategoryTheory.Linear R C] (o : CategoryTheory.HomOrthogonal s) {α β : Type}
[inst_5 : Finite α] [inst_6 : Finite β] {f : α → ι} {g : β → ι}
(a : (i : ι) → Matrix (↑(g ⁻¹' {i})) (↑(f ⁻¹' {i})) (CategoryTheory.End (s i))),
o.matrixDecompositionLinearEquiv.symm a = o.matrixDecompositionAddEquiv.invFun a
theorem CategoryTheory.HomOrthogonal.matrixDecompositionLinearEquiv_apply E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {ι : Type u_1} {s : ι → C}
[inst_1 : CategoryTheory.Preadditive C] [inst_2 : CategoryTheory.Limits.HasFiniteBiproducts C] {R : Type u_2}
[inst_3 : Semiring R] [inst_4 : CategoryTheory.Linear R C] (o : CategoryTheory.HomOrthogonal s) {α β : Type}
[inst_5 : Finite α] [inst_6 : Finite β] {f : α → ι} {g : β → ι} (a : (⨁ fun a ↦ s (f a)) ⟶ ⨁ fun b ↦ s (g b)) (i : ι),
o.matrixDecompositionLinearEquiv a i = o.matrixDecompositionAddEquiv.toFun a i
theorem CategoryTheory.HomOrthogonal.equiv_of_iso E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {ι : Type u_1} {s : ι → C}
[inst_1 : CategoryTheory.Preadditive C] [inst_2 : CategoryTheory.Limits.HasFiniteBiproducts C]
[∀ (i : ι), InvariantBasisNumber (CategoryTheory.End (s i))],
CategoryTheory.HomOrthogonal s →
∀ {α β : Type} [inst_4 : Finite α] [inst_5 : Finite β] {f : α → ι} {g : β → ι}
(i : (⨁ fun a ↦ s (f a)) ≅ ⨁ fun b ↦ s (g b)), ∃ e, ∀ (a : α), g (e a) = f a
Given a hom orthogonal family s : ι → C
for which each End (s i) is a ring with invariant basis number (e.g. if each s i is simple),
if two direct sums over s are isomorphic, then they have the same multiplicities.