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 / V24. Category theory

Mathlib.CategoryTheory.CatCommSq

34 declarations. Mathlib docs · Source

def CategoryTheory.CatCommSq.ctorIdx E1 #

{C₁ : Type u_1} →
  {C₂ : Type u_2} →
    {C₃ : Type u_3} →
      {C₄ : Type u_4} →
        {inst : CategoryTheory.Category.{v_1, u_1} C₁} →
          {inst_1 : CategoryTheory.Category.{v_2, u_2} C₂} →
            {inst_2 : CategoryTheory.Category.{v_3, u_3} C₃} →
              {inst_3 : CategoryTheory.Category.{v_4, u_4} C₄} →
                {T : CategoryTheory.Functor C₁ C₂} →
                  {L : CategoryTheory.Functor C₁ C₃} →
                    {R : CategoryTheory.Functor C₂ C₄} →
                      {B : CategoryTheory.Functor C₃ C₄} → CategoryTheory.CatCommSq T L R B → ℕ

class CategoryTheory.CatCommSq E1 #

{C₁ : Type u_1} →
  {C₂ : Type u_2} →
    {C₃ : Type u_3} →
      {C₄ : Type u_4} →
        [inst : CategoryTheory.Category.{v_1, u_1} C₁] →
          [inst_1 : CategoryTheory.Category.{v_2, u_2} C₂] →
            [inst_2 : CategoryTheory.Category.{v_3, u_3} C₃] →
              [inst_3 : CategoryTheory.Category.{v_4, u_4} C₄] →
                CategoryTheory.Functor C₁ C₂ →
                  CategoryTheory.Functor C₁ C₃ →
                    CategoryTheory.Functor C₂ C₄ → CategoryTheory.Functor C₃ C₄ → Type (max u_1 v_4)

CatCommSq T L R B expresses that there is a 2-commutative square of functors, where the functors T, L, R and B are respectively the left, top, right and bottom functors of the square.

theorem CategoryTheory.CatCommSq.ext E1 #

∀ {C₁ : Type u_1} {C₂ : Type u_2} {C₃ : Type u_3} {C₄ : Type u_4} {inst : CategoryTheory.Category.{v_1, u_1} C₁}
  {inst_1 : CategoryTheory.Category.{v_2, u_2} C₂} {inst_2 : CategoryTheory.Category.{v_3, u_3} C₃}
  {inst_3 : CategoryTheory.Category.{v_4, u_4} C₄} {T : CategoryTheory.Functor C₁ C₂} {L : CategoryTheory.Functor C₁ C₃}
  {R : CategoryTheory.Functor C₂ C₄} {B : CategoryTheory.Functor C₃ C₄} {x y : CategoryTheory.CatCommSq T L R B},
  CategoryTheory.CatCommSq.iso T L R B = CategoryTheory.CatCommSq.iso T L R B → x = y

theorem CategoryTheory.CatCommSq.ext_iff E0 #

∀ {C₁ : Type u_1} {C₂ : Type u_2} {C₃ : Type u_3} {C₄ : Type u_4} {inst : CategoryTheory.Category.{v_1, u_1} C₁}
  {inst_1 : CategoryTheory.Category.{v_2, u_2} C₂} {inst_2 : CategoryTheory.Category.{v_3, u_3} C₃}
  {inst_3 : CategoryTheory.Category.{v_4, u_4} C₄} {T : CategoryTheory.Functor C₁ C₂} {L : CategoryTheory.Functor C₁ C₃}
  {R : CategoryTheory.Functor C₂ C₄} {B : CategoryTheory.Functor C₃ C₄} {x y : CategoryTheory.CatCommSq T L R B},
  x = y ↔ CategoryTheory.CatCommSq.iso T L R B = CategoryTheory.CatCommSq.iso T L R B

ctor CategoryTheory.CatCommSq.mk E0 #

{C₁ : Type u_1} →
  {C₂ : Type u_2} →
    {C₃ : Type u_3} →
      {C₄ : Type u_4} →
        [inst : CategoryTheory.Category.{v_1, u_1} C₁] →
          [inst_1 : CategoryTheory.Category.{v_2, u_2} C₂] →
            [inst_2 : CategoryTheory.Category.{v_3, u_3} C₃] →
              [inst_3 : CategoryTheory.Category.{v_4, u_4} C₄] →
                {T : CategoryTheory.Functor C₁ C₂} →
                  {L : CategoryTheory.Functor C₁ C₃} →
                    {R : CategoryTheory.Functor C₂ C₄} →
                      {B : CategoryTheory.Functor C₃ C₄} → (T.comp R ≅ L.comp B) → CategoryTheory.CatCommSq T L R B

abbrev CategoryTheory.CatCommSq.iso E1 #

{C₁ : Type u_1} →
  {C₂ : Type u_2} →
    {C₃ : Type u_3} →
      {C₄ : Type u_4} →
        {inst : CategoryTheory.Category.{v_1, u_1} C₁} →
          {inst_1 : CategoryTheory.Category.{v_2, u_2} C₂} →
            {inst_2 : CategoryTheory.Category.{v_3, u_3} C₃} →
              {inst_3 : CategoryTheory.Category.{v_4, u_4} C₄} →
                (T : CategoryTheory.Functor C₁ C₂) →
                  (L : CategoryTheory.Functor C₁ C₃) →
                    (R : CategoryTheory.Functor C₂ C₄) →
                      (B : CategoryTheory.Functor C₃ C₄) →
                        [self : CategoryTheory.CatCommSq T L R B] → T.comp R ≅ L.comp B

Assuming [CatCommSq T L R B], iso T L R B is the isomorphism T ⋙ R ≅ L ⋙ B given by the 2-commutative square.

def CategoryTheory.CatCommSq.vId E1 #

{C₁ : Type u_1} →
  {C₂ : Type u_2} →
    [inst : CategoryTheory.Category.{v_1, u_1} C₁] →
      [inst_1 : CategoryTheory.Category.{v_2, u_2} C₂] →
        (T : CategoryTheory.Functor C₁ C₂) →
          CategoryTheory.CatCommSq T (CategoryTheory.Functor.id C₁) (CategoryTheory.Functor.id C₂) T

The vertical identity CatCommSq

theorem CategoryTheory.CatCommSq.vId_iso_hom_app E0 #

∀ {C₁ : Type u_1} {C₂ : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C₁]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} C₂] (T : CategoryTheory.Functor C₁ C₂) (X : C₁),
  (CategoryTheory.CatCommSq.iso T (CategoryTheory.Functor.id C₁) (CategoryTheory.Functor.id C₂) T).hom.app X =
    CategoryTheory.CategoryStruct.id (T.obj X)

theorem CategoryTheory.CatCommSq.vId_iso_inv_app E0 #

∀ {C₁ : Type u_1} {C₂ : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C₁]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} C₂] (T : CategoryTheory.Functor C₁ C₂) (X : C₁),
  (CategoryTheory.CatCommSq.iso T (CategoryTheory.Functor.id C₁) (CategoryTheory.Functor.id C₂) T).inv.app X =
    CategoryTheory.CategoryStruct.id (T.obj X)

def CategoryTheory.CatCommSq.hId E1 #

{C₁ : Type u_1} →
  {C₃ : Type u_3} →
    [inst : CategoryTheory.Category.{v_1, u_1} C₁] →
      [inst_1 : CategoryTheory.Category.{v_3, u_3} C₃] →
        (L : CategoryTheory.Functor C₁ C₃) →
          CategoryTheory.CatCommSq (CategoryTheory.Functor.id C₁) L L (CategoryTheory.Functor.id C₃)

The horizontal identity CatCommSq

theorem CategoryTheory.CatCommSq.hId_iso_hom_app E0 #

∀ {C₁ : Type u_1} {C₃ : Type u_3} [inst : CategoryTheory.Category.{v_1, u_1} C₁]
  [inst_1 : CategoryTheory.Category.{v_3, u_3} C₃] (L : CategoryTheory.Functor C₁ C₃) (X : C₁),
  (CategoryTheory.CatCommSq.iso (CategoryTheory.Functor.id C₁) L L (CategoryTheory.Functor.id C₃)).hom.app X =
    CategoryTheory.CategoryStruct.id (L.obj X)

theorem CategoryTheory.CatCommSq.hId_iso_inv_app E0 #

∀ {C₁ : Type u_1} {C₃ : Type u_3} [inst : CategoryTheory.Category.{v_1, u_1} C₁]
  [inst_1 : CategoryTheory.Category.{v_3, u_3} C₃] (L : CategoryTheory.Functor C₁ C₃) (X : C₁),
  (CategoryTheory.CatCommSq.iso (CategoryTheory.Functor.id C₁) L L (CategoryTheory.Functor.id C₃)).inv.app X =
    CategoryTheory.CategoryStruct.id (L.obj X)

theorem CategoryTheory.CatCommSq.iso_hom_naturality E0 #

∀ {C₁ : Type u_1} {C₂ : Type u_2} {C₃ : Type u_3} {C₄ : Type u_4} [inst : CategoryTheory.Category.{v_1, u_1} C₁]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} C₂] [inst_2 : CategoryTheory.Category.{v_3, u_3} C₃]
  [inst_3 : CategoryTheory.Category.{v_4, u_4} C₄] (T : CategoryTheory.Functor C₁ C₂) (L : CategoryTheory.Functor C₁ C₃)
  (R : CategoryTheory.Functor C₂ C₄) (B : CategoryTheory.Functor C₃ C₄) [h : CategoryTheory.CatCommSq T L R B]
  {x y : C₁} (f : x ⟶ y),
  CategoryTheory.CategoryStruct.comp (R.map (T.map f)) ((CategoryTheory.CatCommSq.iso T L R B).hom.app y) =
    CategoryTheory.CategoryStruct.comp ((CategoryTheory.CatCommSq.iso T L R B).hom.app x) (B.map (L.map f))

theorem CategoryTheory.CatCommSq.iso_hom_naturality_assoc E0 #

∀ {C₁ : Type u_1} {C₂ : Type u_2} {C₃ : Type u_3} {C₄ : Type u_4} [inst : CategoryTheory.Category.{v_1, u_1} C₁]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} C₂] [inst_2 : CategoryTheory.Category.{v_3, u_3} C₃]
  [inst_3 : CategoryTheory.Category.{v_4, u_4} C₄] (T : CategoryTheory.Functor C₁ C₂) (L : CategoryTheory.Functor C₁ C₃)
  (R : CategoryTheory.Functor C₂ C₄) (B : CategoryTheory.Functor C₃ C₄) [h : CategoryTheory.CatCommSq T L R B]
  {x y : C₁} (f : x ⟶ y) {Z : C₄} (h_1 : B.obj (L.obj y) ⟶ Z),
  CategoryTheory.CategoryStruct.comp (R.map (T.map f))
      (CategoryTheory.CategoryStruct.comp ((CategoryTheory.CatCommSq.iso T L R B).hom.app y) h_1) =
    CategoryTheory.CategoryStruct.comp ((CategoryTheory.CatCommSq.iso T L R B).hom.app x)
      (CategoryTheory.CategoryStruct.comp (B.map (L.map f)) h_1)

theorem CategoryTheory.CatCommSq.iso_inv_naturality E0 #

∀ {C₁ : Type u_1} {C₂ : Type u_2} {C₃ : Type u_3} {C₄ : Type u_4} [inst : CategoryTheory.Category.{v_1, u_1} C₁]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} C₂] [inst_2 : CategoryTheory.Category.{v_3, u_3} C₃]
  [inst_3 : CategoryTheory.Category.{v_4, u_4} C₄] (T : CategoryTheory.Functor C₁ C₂) (L : CategoryTheory.Functor C₁ C₃)
  (R : CategoryTheory.Functor C₂ C₄) (B : CategoryTheory.Functor C₃ C₄) [h : CategoryTheory.CatCommSq T L R B]
  {x y : C₁} (f : x ⟶ y),
  CategoryTheory.CategoryStruct.comp (B.map (L.map f)) ((CategoryTheory.CatCommSq.iso T L R B).inv.app y) =
    CategoryTheory.CategoryStruct.comp ((CategoryTheory.CatCommSq.iso T L R B).inv.app x) (R.map (T.map f))

theorem CategoryTheory.CatCommSq.iso_inv_naturality_assoc E0 #

∀ {C₁ : Type u_1} {C₂ : Type u_2} {C₃ : Type u_3} {C₄ : Type u_4} [inst : CategoryTheory.Category.{v_1, u_1} C₁]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} C₂] [inst_2 : CategoryTheory.Category.{v_3, u_3} C₃]
  [inst_3 : CategoryTheory.Category.{v_4, u_4} C₄] (T : CategoryTheory.Functor C₁ C₂) (L : CategoryTheory.Functor C₁ C₃)
  (R : CategoryTheory.Functor C₂ C₄) (B : CategoryTheory.Functor C₃ C₄) [h : CategoryTheory.CatCommSq T L R B]
  {x y : C₁} (f : x ⟶ y) {Z : C₄} (h_1 : R.obj (T.obj y) ⟶ Z),
  CategoryTheory.CategoryStruct.comp (B.map (L.map f))
      (CategoryTheory.CategoryStruct.comp ((CategoryTheory.CatCommSq.iso T L R B).inv.app y) h_1) =
    CategoryTheory.CategoryStruct.comp ((CategoryTheory.CatCommSq.iso T L R B).inv.app x)
      (CategoryTheory.CategoryStruct.comp (R.map (T.map f)) h_1)

def CategoryTheory.CatCommSq.hComp E1 #

{C₁ : Type u_1} →
  {C₂ : Type u_2} →
    {C₃ : Type u_3} →
      {C₄ : Type u_4} →
        {C₅ : Type u_5} →
          {C₆ : Type u_6} →
            [inst : CategoryTheory.Category.{v_1, u_1} C₁] →
              [inst_1 : CategoryTheory.Category.{v_2, u_2} C₂] →
                [inst_2 : CategoryTheory.Category.{v_3, u_3} C₃] →
                  [inst_3 : CategoryTheory.Category.{v_4, u_4} C₄] →
                    [inst_4 : CategoryTheory.Category.{v_5, u_5} C₅] →
                      [inst_5 : CategoryTheory.Category.{v_6, u_6} C₆] →
                        (T₁ : CategoryTheory.Functor C₁ C₂) →
                          (T₂ : CategoryTheory.Functor C₂ C₃) →
                            (V₁ : CategoryTheory.Functor C₁ C₄) →
                              (V₂ : CategoryTheory.Functor C₂ C₅) →
                                (V₃ : CategoryTheory.Functor C₃ C₆) →
                                  (B₁ : CategoryTheory.Functor C₄ C₅) →
                                    (B₂ : CategoryTheory.Functor C₅ C₆) →
                                      [CategoryTheory.CatCommSq T₁ V₁ V₂ B₁] →
                                        [CategoryTheory.CatCommSq T₂ V₂ V₃ B₂] →
                                          CategoryTheory.CatCommSq (T₁.comp T₂) V₁ V₃ (B₁.comp B₂)

Horizontal composition of 2-commutative squares

theorem CategoryTheory.CatCommSq.hComp_iso_hom_app E0 #

∀ {C₁ : Type u_1} {C₂ : Type u_2} {C₃ : Type u_3} {C₄ : Type u_4} {C₅ : Type u_5} {C₆ : Type u_6}
  [inst : CategoryTheory.Category.{v_1, u_1} C₁] [inst_1 : CategoryTheory.Category.{v_2, u_2} C₂]
  [inst_2 : CategoryTheory.Category.{v_3, u_3} C₃] [inst_3 : CategoryTheory.Category.{v_4, u_4} C₄]
  [inst_4 : CategoryTheory.Category.{v_5, u_5} C₅] [inst_5 : CategoryTheory.Category.{v_6, u_6} C₆]
  (T₁ : CategoryTheory.Functor C₁ C₂) (T₂ : CategoryTheory.Functor C₂ C₃) (V₁ : CategoryTheory.Functor C₁ C₄)
  (V₂ : CategoryTheory.Functor C₂ C₅) (V₃ : CategoryTheory.Functor C₃ C₆) (B₁ : CategoryTheory.Functor C₄ C₅)
  (B₂ : CategoryTheory.Functor C₅ C₆) [inst_6 : CategoryTheory.CatCommSq T₁ V₁ V₂ B₁]
  [inst_7 : CategoryTheory.CatCommSq T₂ V₂ V₃ B₂] (X : C₁),
  (CategoryTheory.CatCommSq.iso (T₁.comp T₂) V₁ V₃ (B₁.comp B₂)).hom.app X =
    CategoryTheory.CategoryStruct.comp ((CategoryTheory.CatCommSq.iso T₂ V₂ V₃ B₂).hom.app (T₁.obj X))
      (B₂.map ((CategoryTheory.CatCommSq.iso T₁ V₁ V₂ B₁).hom.app X))

theorem CategoryTheory.CatCommSq.hComp_iso_inv_app E0 #

∀ {C₁ : Type u_1} {C₂ : Type u_2} {C₃ : Type u_3} {C₄ : Type u_4} {C₅ : Type u_5} {C₆ : Type u_6}
  [inst : CategoryTheory.Category.{v_1, u_1} C₁] [inst_1 : CategoryTheory.Category.{v_2, u_2} C₂]
  [inst_2 : CategoryTheory.Category.{v_3, u_3} C₃] [inst_3 : CategoryTheory.Category.{v_4, u_4} C₄]
  [inst_4 : CategoryTheory.Category.{v_5, u_5} C₅] [inst_5 : CategoryTheory.Category.{v_6, u_6} C₆]
  (T₁ : CategoryTheory.Functor C₁ C₂) (T₂ : CategoryTheory.Functor C₂ C₃) (V₁ : CategoryTheory.Functor C₁ C₄)
  (V₂ : CategoryTheory.Functor C₂ C₅) (V₃ : CategoryTheory.Functor C₃ C₆) (B₁ : CategoryTheory.Functor C₄ C₅)
  (B₂ : CategoryTheory.Functor C₅ C₆) [inst_6 : CategoryTheory.CatCommSq T₁ V₁ V₂ B₁]
  [inst_7 : CategoryTheory.CatCommSq T₂ V₂ V₃ B₂] (X : C₁),
  (CategoryTheory.CatCommSq.iso (T₁.comp T₂) V₁ V₃ (B₁.comp B₂)).inv.app X =
    CategoryTheory.CategoryStruct.comp (B₂.map ((CategoryTheory.CatCommSq.iso T₁ V₁ V₂ B₁).inv.app X))
      ((CategoryTheory.CatCommSq.iso T₂ V₂ V₃ B₂).inv.app (T₁.obj X))

abbrev CategoryTheory.CatCommSq.hComp' E1 #

{C₁ : Type u_1} →
  {C₂ : Type u_2} →
    {C₃ : Type u_3} →
      {C₄ : Type u_4} →
        {C₅ : Type u_5} →
          {C₆ : Type u_6} →
            [inst : CategoryTheory.Category.{v_1, u_1} C₁] →
              [inst_1 : CategoryTheory.Category.{v_2, u_2} C₂] →
                [inst_2 : CategoryTheory.Category.{v_3, u_3} C₃] →
                  [inst_3 : CategoryTheory.Category.{v_4, u_4} C₄] →
                    [inst_4 : CategoryTheory.Category.{v_5, u_5} C₅] →
                      [inst_5 : CategoryTheory.Category.{v_6, u_6} C₆] →
                        {T₁ : CategoryTheory.Functor C₁ C₂} →
                          {T₂ : CategoryTheory.Functor C₂ C₃} →
                            {V₁ : CategoryTheory.Functor C₁ C₄} →
                              {V₂ : CategoryTheory.Functor C₂ C₅} →
                                {V₃ : CategoryTheory.Functor C₃ C₆} →
                                  {B₁ : CategoryTheory.Functor C₄ C₅} →
                                    {B₂ : CategoryTheory.Functor C₅ C₆} →
                                      CategoryTheory.CatCommSq T₁ V₁ V₂ B₁ →
                                        CategoryTheory.CatCommSq T₂ V₂ V₃ B₂ →
                                          CategoryTheory.CatCommSq (T₁.comp T₂) V₁ V₃ (B₁.comp B₂)

A variant of hComp where both squares can be explicitly provided.

def CategoryTheory.CatCommSq.vComp E1 #

{C₁ : Type u_1} →
  {C₂ : Type u_2} →
    {C₃ : Type u_3} →
      {C₄ : Type u_4} →
        {C₅ : Type u_5} →
          {C₆ : Type u_6} →
            [inst : CategoryTheory.Category.{v_1, u_1} C₁] →
              [inst_1 : CategoryTheory.Category.{v_2, u_2} C₂] →
                [inst_2 : CategoryTheory.Category.{v_3, u_3} C₃] →
                  [inst_3 : CategoryTheory.Category.{v_4, u_4} C₄] →
                    [inst_4 : CategoryTheory.Category.{v_5, u_5} C₅] →
                      [inst_5 : CategoryTheory.Category.{v_6, u_6} C₆] →
                        (L₁ : CategoryTheory.Functor C₁ C₂) →
                          (L₂ : CategoryTheory.Functor C₂ C₃) →
                            (H₁ : CategoryTheory.Functor C₁ C₄) →
                              (H₂ : CategoryTheory.Functor C₂ C₅) →
                                (H₃ : CategoryTheory.Functor C₃ C₆) →
                                  (R₁ : CategoryTheory.Functor C₄ C₅) →
                                    (R₂ : CategoryTheory.Functor C₅ C₆) →
                                      [CategoryTheory.CatCommSq H₁ L₁ R₁ H₂] →
                                        [CategoryTheory.CatCommSq H₂ L₂ R₂ H₃] →
                                          CategoryTheory.CatCommSq H₁ (L₁.comp L₂) (R₁.comp R₂) H₃

Vertical composition of 2-commutative squares

theorem CategoryTheory.CatCommSq.vComp_iso_hom_app E0 #

∀ {C₁ : Type u_1} {C₂ : Type u_2} {C₃ : Type u_3} {C₄ : Type u_4} {C₅ : Type u_5} {C₆ : Type u_6}
  [inst : CategoryTheory.Category.{v_1, u_1} C₁] [inst_1 : CategoryTheory.Category.{v_2, u_2} C₂]
  [inst_2 : CategoryTheory.Category.{v_3, u_3} C₃] [inst_3 : CategoryTheory.Category.{v_4, u_4} C₄]
  [inst_4 : CategoryTheory.Category.{v_5, u_5} C₅] [inst_5 : CategoryTheory.Category.{v_6, u_6} C₆]
  (L₁ : CategoryTheory.Functor C₁ C₂) (L₂ : CategoryTheory.Functor C₂ C₃) (H₁ : CategoryTheory.Functor C₁ C₄)
  (H₂ : CategoryTheory.Functor C₂ C₅) (H₃ : CategoryTheory.Functor C₃ C₆) (R₁ : CategoryTheory.Functor C₄ C₅)
  (R₂ : CategoryTheory.Functor C₅ C₆) [inst_6 : CategoryTheory.CatCommSq H₁ L₁ R₁ H₂]
  [inst_7 : CategoryTheory.CatCommSq H₂ L₂ R₂ H₃] (X : C₁),
  (CategoryTheory.CatCommSq.iso H₁ (L₁.comp L₂) (R₁.comp R₂) H₃).hom.app X =
    CategoryTheory.CategoryStruct.comp (R₂.map ((CategoryTheory.CatCommSq.iso H₁ L₁ R₁ H₂).hom.app X))
      ((CategoryTheory.CatCommSq.iso H₂ L₂ R₂ H₃).hom.app (L₁.obj X))

theorem CategoryTheory.CatCommSq.vComp_iso_inv_app E0 #

∀ {C₁ : Type u_1} {C₂ : Type u_2} {C₃ : Type u_3} {C₄ : Type u_4} {C₅ : Type u_5} {C₆ : Type u_6}
  [inst : CategoryTheory.Category.{v_1, u_1} C₁] [inst_1 : CategoryTheory.Category.{v_2, u_2} C₂]
  [inst_2 : CategoryTheory.Category.{v_3, u_3} C₃] [inst_3 : CategoryTheory.Category.{v_4, u_4} C₄]
  [inst_4 : CategoryTheory.Category.{v_5, u_5} C₅] [inst_5 : CategoryTheory.Category.{v_6, u_6} C₆]
  (L₁ : CategoryTheory.Functor C₁ C₂) (L₂ : CategoryTheory.Functor C₂ C₃) (H₁ : CategoryTheory.Functor C₁ C₄)
  (H₂ : CategoryTheory.Functor C₂ C₅) (H₃ : CategoryTheory.Functor C₃ C₆) (R₁ : CategoryTheory.Functor C₄ C₅)
  (R₂ : CategoryTheory.Functor C₅ C₆) [inst_6 : CategoryTheory.CatCommSq H₁ L₁ R₁ H₂]
  [inst_7 : CategoryTheory.CatCommSq H₂ L₂ R₂ H₃] (X : C₁),
  (CategoryTheory.CatCommSq.iso H₁ (L₁.comp L₂) (R₁.comp R₂) H₃).inv.app X =
    CategoryTheory.CategoryStruct.comp ((CategoryTheory.CatCommSq.iso H₂ L₂ R₂ H₃).inv.app (L₁.obj X))
      (R₂.map ((CategoryTheory.CatCommSq.iso H₁ L₁ R₁ H₂).inv.app X))

abbrev CategoryTheory.CatCommSq.vComp' E1 #

{C₁ : Type u_1} →
  {C₂ : Type u_2} →
    {C₃ : Type u_3} →
      {C₄ : Type u_4} →
        {C₅ : Type u_5} →
          {C₆ : Type u_6} →
            [inst : CategoryTheory.Category.{v_1, u_1} C₁] →
              [inst_1 : CategoryTheory.Category.{v_2, u_2} C₂] →
                [inst_2 : CategoryTheory.Category.{v_3, u_3} C₃] →
                  [inst_3 : CategoryTheory.Category.{v_4, u_4} C₄] →
                    [inst_4 : CategoryTheory.Category.{v_5, u_5} C₅] →
                      [inst_5 : CategoryTheory.Category.{v_6, u_6} C₆] →
                        {L₁ : CategoryTheory.Functor C₁ C₂} →
                          {L₂ : CategoryTheory.Functor C₂ C₃} →
                            {H₁ : CategoryTheory.Functor C₁ C₄} →
                              {H₂ : CategoryTheory.Functor C₂ C₅} →
                                {H₃ : CategoryTheory.Functor C₃ C₆} →
                                  {R₁ : CategoryTheory.Functor C₄ C₅} →
                                    {R₂ : CategoryTheory.Functor C₅ C₆} →
                                      CategoryTheory.CatCommSq H₁ L₁ R₁ H₂ →
                                        CategoryTheory.CatCommSq H₂ L₂ R₂ H₃ →
                                          CategoryTheory.CatCommSq H₁ (L₁.comp L₂) (R₁.comp R₂) H₃

A variant of vComp where both squares can be explicitly provided.

def CategoryTheory.CatCommSq.hInv E1 #

{C₁ : Type u_1} →
  {C₂ : Type u_2} →
    {C₃ : Type u_3} →
      {C₄ : Type u_4} →
        [inst : CategoryTheory.Category.{v_1, u_1} C₁] →
          [inst_1 : CategoryTheory.Category.{v_2, u_2} C₂] →
            [inst_2 : CategoryTheory.Category.{v_3, u_3} C₃] →
              [inst_3 : CategoryTheory.Category.{v_4, u_4} C₄] →
                (T : C₁ ≌ C₂) →
                  (L : CategoryTheory.Functor C₁ C₃) →
                    (R : CategoryTheory.Functor C₂ C₄) →
                      (B : C₃ ≌ C₄) →
                        CategoryTheory.CatCommSq T.functor L R B.functor →
                          CategoryTheory.CatCommSq T.inverse R L B.inverse

Horizontal inverse of a 2-commutative square

theorem CategoryTheory.CatCommSq.hInv_iso_inv_app E0 #

∀ {C₁ : Type u_1} {C₂ : Type u_2} {C₃ : Type u_3} {C₄ : Type u_4} [inst : CategoryTheory.Category.{v_1, u_1} C₁]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} C₂] [inst_2 : CategoryTheory.Category.{v_3, u_3} C₃]
  [inst_3 : CategoryTheory.Category.{v_4, u_4} C₄] (T : C₁ ≌ C₂) (L : CategoryTheory.Functor C₁ C₃)
  (R : CategoryTheory.Functor C₂ C₄) (B : C₃ ≌ C₄) (x : CategoryTheory.CatCommSq T.functor L R B.functor) (X : C₂),
  (CategoryTheory.CatCommSq.iso T.inverse R L B.inverse).inv.app X =
    CategoryTheory.CategoryStruct.comp (B.inverse.map (R.map (T.counitIso.inv.app X)))
      (CategoryTheory.CategoryStruct.comp
        (B.inverse.map ((CategoryTheory.CatCommSq.iso T.functor L R B.functor).hom.app (T.inverse.obj X)))
        (B.unitIso.inv.app (L.obj (T.inverse.obj X))))

theorem CategoryTheory.CatCommSq.hInv_iso_hom_app E0 #

∀ {C₁ : Type u_1} {C₂ : Type u_2} {C₃ : Type u_3} {C₄ : Type u_4} [inst : CategoryTheory.Category.{v_1, u_1} C₁]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} C₂] [inst_2 : CategoryTheory.Category.{v_3, u_3} C₃]
  [inst_3 : CategoryTheory.Category.{v_4, u_4} C₄] (T : C₁ ≌ C₂) (L : CategoryTheory.Functor C₁ C₃)
  (R : CategoryTheory.Functor C₂ C₄) (B : C₃ ≌ C₄) (x : CategoryTheory.CatCommSq T.functor L R B.functor) (X : C₂),
  (CategoryTheory.CatCommSq.iso T.inverse R L B.inverse).hom.app X =
    CategoryTheory.CategoryStruct.comp (B.unitIso.hom.app (L.obj (T.inverse.obj X)))
      (CategoryTheory.CategoryStruct.comp
        (B.inverse.map ((CategoryTheory.CatCommSq.iso T.functor L R B.functor).inv.app (T.inverse.obj X)))
        (B.inverse.map (R.map (T.counitIso.hom.app X))))

theorem CategoryTheory.CatCommSq.hInv_hInv E1 #

∀ {C₁ : Type u_1} {C₂ : Type u_2} {C₃ : Type u_3} {C₄ : Type u_4} [inst : CategoryTheory.Category.{v_1, u_1} C₁]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} C₂] [inst_2 : CategoryTheory.Category.{v_3, u_3} C₃]
  [inst_3 : CategoryTheory.Category.{v_4, u_4} C₄] (T : C₁ ≌ C₂) (L : CategoryTheory.Functor C₁ C₃)
  (R : CategoryTheory.Functor C₂ C₄) (B : C₃ ≌ C₄) (h : CategoryTheory.CatCommSq T.functor L R B.functor),
  CategoryTheory.CatCommSq.hInv T.symm R L B.symm (CategoryTheory.CatCommSq.hInv T L R B h) = h

def CategoryTheory.CatCommSq.hInvEquiv E1 #

{C₁ : Type u_1} →
  {C₂ : Type u_2} →
    {C₃ : Type u_3} →
      {C₄ : Type u_4} →
        [inst : CategoryTheory.Category.{v_1, u_1} C₁] →
          [inst_1 : CategoryTheory.Category.{v_2, u_2} C₂] →
            [inst_2 : CategoryTheory.Category.{v_3, u_3} C₃] →
              [inst_3 : CategoryTheory.Category.{v_4, u_4} C₄] →
                (T : C₁ ≌ C₂) →
                  (L : CategoryTheory.Functor C₁ C₃) →
                    (R : CategoryTheory.Functor C₂ C₄) →
                      (B : C₃ ≌ C₄) →
                        CategoryTheory.CatCommSq T.functor L R B.functor ≃
                          CategoryTheory.CatCommSq T.inverse R L B.inverse

In a square of categories, when the top and bottom functors are part of equivalence of categories, it is equivalent to show 2-commutativity for the functors of these equivalences or for their inverses.

def CategoryTheory.CatCommSq.vInv E1 #

{C₁ : Type u_1} →
  {C₂ : Type u_2} →
    {C₃ : Type u_3} →
      {C₄ : Type u_4} →
        [inst : CategoryTheory.Category.{v_1, u_1} C₁] →
          [inst_1 : CategoryTheory.Category.{v_2, u_2} C₂] →
            [inst_2 : CategoryTheory.Category.{v_3, u_3} C₃] →
              [inst_3 : CategoryTheory.Category.{v_4, u_4} C₄] →
                (T : CategoryTheory.Functor C₁ C₂) →
                  (L : C₁ ≌ C₃) →
                    (R : C₂ ≌ C₄) →
                      (B : CategoryTheory.Functor C₃ C₄) →
                        CategoryTheory.CatCommSq T L.functor R.functor B →
                          CategoryTheory.CatCommSq B L.inverse R.inverse T

Vertical inverse of a 2-commutative square

theorem CategoryTheory.CatCommSq.vInv_iso_hom_app E0 #

∀ {C₁ : Type u_1} {C₂ : Type u_2} {C₃ : Type u_3} {C₄ : Type u_4} [inst : CategoryTheory.Category.{v_1, u_1} C₁]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} C₂] [inst_2 : CategoryTheory.Category.{v_3, u_3} C₃]
  [inst_3 : CategoryTheory.Category.{v_4, u_4} C₄] (T : CategoryTheory.Functor C₁ C₂) (L : C₁ ≌ C₃) (R : C₂ ≌ C₄)
  (B : CategoryTheory.Functor C₃ C₄) (x : CategoryTheory.CatCommSq T L.functor R.functor B) (X : C₃),
  (CategoryTheory.CatCommSq.iso B L.inverse R.inverse T).hom.app X =
    CategoryTheory.CategoryStruct.comp (R.inverse.map (B.map (L.counitIso.inv.app X)))
      (CategoryTheory.CategoryStruct.comp
        (R.inverse.map ((CategoryTheory.CatCommSq.iso T L.functor R.functor B).inv.app (L.inverse.obj X)))
        (R.unitIso.inv.app (T.obj (L.inverse.obj X))))

theorem CategoryTheory.CatCommSq.vInv_iso_inv_app E0 #

∀ {C₁ : Type u_1} {C₂ : Type u_2} {C₃ : Type u_3} {C₄ : Type u_4} [inst : CategoryTheory.Category.{v_1, u_1} C₁]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} C₂] [inst_2 : CategoryTheory.Category.{v_3, u_3} C₃]
  [inst_3 : CategoryTheory.Category.{v_4, u_4} C₄] (T : CategoryTheory.Functor C₁ C₂) (L : C₁ ≌ C₃) (R : C₂ ≌ C₄)
  (B : CategoryTheory.Functor C₃ C₄) (x : CategoryTheory.CatCommSq T L.functor R.functor B) (X : C₃),
  (CategoryTheory.CatCommSq.iso B L.inverse R.inverse T).inv.app X =
    CategoryTheory.CategoryStruct.comp (R.unitIso.hom.app (T.obj (L.inverse.obj X)))
      (CategoryTheory.CategoryStruct.comp
        (R.inverse.map ((CategoryTheory.CatCommSq.iso T L.functor R.functor B).hom.app (L.inverse.obj X)))
        (R.inverse.map (B.map (L.counitIso.hom.app X))))

theorem CategoryTheory.CatCommSq.vInv_vInv E1 #

∀ {C₁ : Type u_1} {C₂ : Type u_2} {C₃ : Type u_3} {C₄ : Type u_4} [inst : CategoryTheory.Category.{v_1, u_1} C₁]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} C₂] [inst_2 : CategoryTheory.Category.{v_3, u_3} C₃]
  [inst_3 : CategoryTheory.Category.{v_4, u_4} C₄] (T : CategoryTheory.Functor C₁ C₂) (L : C₁ ≌ C₃) (R : C₂ ≌ C₄)
  (B : CategoryTheory.Functor C₃ C₄) (h : CategoryTheory.CatCommSq T L.functor R.functor B),
  CategoryTheory.CatCommSq.vInv B L.symm R.symm T (CategoryTheory.CatCommSq.vInv T L R B h) = h

def CategoryTheory.CatCommSq.vInvEquiv E1 #

{C₁ : Type u_1} →
  {C₂ : Type u_2} →
    {C₃ : Type u_3} →
      {C₄ : Type u_4} →
        [inst : CategoryTheory.Category.{v_1, u_1} C₁] →
          [inst_1 : CategoryTheory.Category.{v_2, u_2} C₂] →
            [inst_2 : CategoryTheory.Category.{v_3, u_3} C₃] →
              [inst_3 : CategoryTheory.Category.{v_4, u_4} C₄] →
                (T : CategoryTheory.Functor C₁ C₂) →
                  (L : C₁ ≌ C₃) →
                    (R : C₂ ≌ C₄) →
                      (B : CategoryTheory.Functor C₃ C₄) →
                        CategoryTheory.CatCommSq T L.functor R.functor B ≃
                          CategoryTheory.CatCommSq B L.inverse R.inverse T

In a square of categories, when the left and right functors are part of equivalence of categories, it is equivalent to show 2-commutativity for the functors of these equivalences or for their inverses.