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

200 declarations. Mathlib docs · Source

The category of commutative squares

In this file, we define a bundled version of CommSq which allows to consider commutative squares as objects in a category Square C.

The four objects in a commutative square are numbered as follows:

X₁ --> X₂
|      |
v      v
X₃ --> X₄

We define the flip functor, and two equivalences with the category Arrow (Arrow C), depending on whether we consider a commutative square as a horizontal morphism between two vertical maps (arrowArrowEquivalence) or a vertical morphism between two horizontal maps (arrowArrowEquivalence').

theorem CategoryTheory.Square.Hom.mk.inj E1 #

∀ {C : Type u} {inst : CategoryTheory.Category.{v, u} C} {sq₁ sq₂ : CategoryTheory.Square C} {τ₁ : sq₁.X₁ ⟶ sq₂.X₁}
  {τ₂ : sq₁.X₂ ⟶ sq₂.X₂} {τ₃ : sq₁.X₃ ⟶ sq₂.X₃} {τ₄ : sq₁.X₄ ⟶ sq₂.X₄}
  {comm₁₂ :
    autoParam (CategoryTheory.CategoryStruct.comp sq₁.f₁₂ τ₂ = CategoryTheory.CategoryStruct.comp τ₁ sq₂.f₁₂)
      CategoryTheory.Square.Hom.comm₁₂._autoParam}
  {comm₁₃ :
    autoParam (CategoryTheory.CategoryStruct.comp sq₁.f₁₃ τ₃ = CategoryTheory.CategoryStruct.comp τ₁ sq₂.f₁₃)
      CategoryTheory.Square.Hom.comm₁₃._autoParam}
  {comm₂₄ :
    autoParam (CategoryTheory.CategoryStruct.comp sq₁.f₂₄ τ₄ = CategoryTheory.CategoryStruct.comp τ₂ sq₂.f₂₄)
      CategoryTheory.Square.Hom.comm₂₄._autoParam}
  {comm₃₄ :
    autoParam (CategoryTheory.CategoryStruct.comp sq₁.f₃₄ τ₄ = CategoryTheory.CategoryStruct.comp τ₃ sq₂.f₃₄)
      CategoryTheory.Square.Hom.comm₃₄._autoParam}
  {τ₁_1 : sq₁.X₁ ⟶ sq₂.X₁} {τ₂_1 : sq₁.X₂ ⟶ sq₂.X₂} {τ₃_1 : sq₁.X₃ ⟶ sq₂.X₃} {τ₄_1 : sq₁.X₄ ⟶ sq₂.X₄}
  {comm₁₂_1 :
    autoParam (CategoryTheory.CategoryStruct.comp sq₁.f₁₂ τ₂_1 = CategoryTheory.CategoryStruct.comp τ₁_1 sq₂.f₁₂)
      CategoryTheory.Square.Hom.comm₁₂._autoParam}
  {comm₁₃_1 :
    autoParam (CategoryTheory.CategoryStruct.comp sq₁.f₁₃ τ₃_1 = CategoryTheory.CategoryStruct.comp τ₁_1 sq₂.f₁₃)
      CategoryTheory.Square.Hom.comm₁₃._autoParam}
  {comm₂₄_1 :
    autoParam (CategoryTheory.CategoryStruct.comp sq₁.f₂₄ τ₄_1 = CategoryTheory.CategoryStruct.comp τ₂_1 sq₂.f₂₄)
      CategoryTheory.Square.Hom.comm₂₄._autoParam}
  {comm₃₄_1 :
    autoParam (CategoryTheory.CategoryStruct.comp sq₁.f₃₄ τ₄_1 = CategoryTheory.CategoryStruct.comp τ₃_1 sq₂.f₃₄)
      CategoryTheory.Square.Hom.comm₃₄._autoParam},
  { τ₁ := τ₁, τ₂ := τ₂, τ₃ := τ₃, τ₄ := τ₄, comm₁₂ := comm₁₂, comm₁₃ := comm₁₃, comm₂₄ := comm₂₄, comm₃₄ := comm₃₄ } =
      { τ₁ := τ₁_1, τ₂ := τ₂_1, τ₃ := τ₃_1, τ₄ := τ₄_1, comm₁₂ := comm₁₂_1, comm₁₃ := comm₁₃_1, comm₂₄ := comm₂₄_1,
        comm₃₄ := comm₃₄_1 } →
    τ₁ = τ₁_1 ∧ τ₂ = τ₂_1 ∧ τ₃ = τ₃_1 ∧ τ₄ = τ₄_1

def CategoryTheory.Square.ctorIdx E1 #

{C : Type u} → {inst : CategoryTheory.Category.{v, u} C} → CategoryTheory.Square C → ℕ

theorem CategoryTheory.Square.mk.injEq E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X₁ X₂ X₃ X₄ : C} (f₁₂ : X₁ ⟶ X₂) (f₁₃ : X₁ ⟶ X₃)
  (f₂₄ : X₂ ⟶ X₄) (f₃₄ : X₃ ⟶ X₄)
  (fac : CategoryTheory.CategoryStruct.comp f₁₂ f₂₄ = CategoryTheory.CategoryStruct.comp f₁₃ f₃₄)
  (X₁_1 X₂_1 X₃_1 X₄_1 : C) (f₁₂_1 : X₁_1 ⟶ X₂_1) (f₁₃_1 : X₁_1 ⟶ X₃_1) (f₂₄_1 : X₂_1 ⟶ X₄_1) (f₃₄_1 : X₃_1 ⟶ X₄_1)
  (fac_1 : CategoryTheory.CategoryStruct.comp f₁₂_1 f₂₄_1 = CategoryTheory.CategoryStruct.comp f₁₃_1 f₃₄_1),
  ({ X₁ := X₁, X₂ := X₂, X₃ := X₃, X₄ := X₄, f₁₂ := f₁₂, f₁₃ := f₁₃, f₂₄ := f₂₄, f₃₄ := f₃₄, fac := fac } =
      { X₁ := X₁_1, X₂ := X₂_1, X₃ := X₃_1, X₄ := X₄_1, f₁₂ := f₁₂_1, f₁₃ := f₁₃_1, f₂₄ := f₂₄_1, f₃₄ := f₃₄_1,
        fac := fac_1 }) =
    (X₁ = X₁_1 ∧ X₂ = X₂_1 ∧ X₃ = X₃_1 ∧ X₄ = X₄_1 ∧ f₁₂ ≍ f₁₂_1 ∧ f₁₃ ≍ f₁₃_1 ∧ f₂₄ ≍ f₂₄_1 ∧ f₃₄ ≍ f₃₄_1)

theorem CategoryTheory.Square.mk.inj E1 #

∀ {C : Type u} {inst : CategoryTheory.Category.{v, u} C} {X₁ X₂ X₃ X₄ : C} {f₁₂ : X₁ ⟶ X₂} {f₁₃ : X₁ ⟶ X₃}
  {f₂₄ : X₂ ⟶ X₄} {f₃₄ : X₃ ⟶ X₄}
  {fac : CategoryTheory.CategoryStruct.comp f₁₂ f₂₄ = CategoryTheory.CategoryStruct.comp f₁₃ f₃₄}
  {X₁_1 X₂_1 X₃_1 X₄_1 : C} {f₁₂_1 : X₁_1 ⟶ X₂_1} {f₁₃_1 : X₁_1 ⟶ X₃_1} {f₂₄_1 : X₂_1 ⟶ X₄_1} {f₃₄_1 : X₃_1 ⟶ X₄_1}
  {fac_1 : CategoryTheory.CategoryStruct.comp f₁₂_1 f₂₄_1 = CategoryTheory.CategoryStruct.comp f₁₃_1 f₃₄_1},
  { X₁ := X₁, X₂ := X₂, X₃ := X₃, X₄ := X₄, f₁₂ := f₁₂, f₁₃ := f₁₃, f₂₄ := f₂₄, f₃₄ := f₃₄, fac := fac } =
      { X₁ := X₁_1, X₂ := X₂_1, X₃ := X₃_1, X₄ := X₄_1, f₁₂ := f₁₂_1, f₁₃ := f₁₃_1, f₂₄ := f₂₄_1, f₃₄ := f₃₄_1,
        fac := fac_1 } →
    X₁ = X₁_1 ∧ X₂ = X₂_1 ∧ X₃ = X₃_1 ∧ X₄ = X₄_1 ∧ f₁₂ ≍ f₁₂_1 ∧ f₁₃ ≍ f₁₃_1 ∧ f₂₄ ≍ f₂₄_1 ∧ f₃₄ ≍ f₃₄_1

theorem CategoryTheory.Square.Hom.mk.congr_simp E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {sq₁ sq₂ : CategoryTheory.Square C} (τ₁ τ₁_1 : sq₁.X₁ ⟶ sq₂.X₁)
  (e_τ₁ : τ₁ = τ₁_1) (τ₂ τ₂_1 : sq₁.X₂ ⟶ sq₂.X₂) (e_τ₂ : τ₂ = τ₂_1) (τ₃ τ₃_1 : sq₁.X₃ ⟶ sq₂.X₃) (e_τ₃ : τ₃ = τ₃_1)
  (τ₄ τ₄_1 : sq₁.X₄ ⟶ sq₂.X₄) (e_τ₄ : τ₄ = τ₄_1)
  (comm₁₂ : CategoryTheory.CategoryStruct.comp sq₁.f₁₂ τ₂ = CategoryTheory.CategoryStruct.comp τ₁ sq₂.f₁₂)
  (comm₁₃ : CategoryTheory.CategoryStruct.comp sq₁.f₁₃ τ₃ = CategoryTheory.CategoryStruct.comp τ₁ sq₂.f₁₃)
  (comm₂₄ : CategoryTheory.CategoryStruct.comp sq₁.f₂₄ τ₄ = CategoryTheory.CategoryStruct.comp τ₂ sq₂.f₂₄)
  (comm₃₄ : CategoryTheory.CategoryStruct.comp sq₁.f₃₄ τ₄ = CategoryTheory.CategoryStruct.comp τ₃ sq₂.f₃₄),
  { τ₁ := τ₁, τ₂ := τ₂, τ₃ := τ₃, τ₄ := τ₄, comm₁₂ := comm₁₂, comm₁₃ := comm₁₃, comm₂₄ := comm₂₄, comm₃₄ := comm₃₄ } =
    { τ₁ := τ₁_1, τ₂ := τ₂_1, τ₃ := τ₃_1, τ₄ := τ₄_1, comm₁₂ := ⋯, comm₁₃ := ⋯, comm₂₄ := ⋯, comm₃₄ := ⋯ }

theorem CategoryTheory.Square.Hom.mk.injEq E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {sq₁ sq₂ : CategoryTheory.Square C} (τ₁ : sq₁.X₁ ⟶ sq₂.X₁)
  (τ₂ : sq₁.X₂ ⟶ sq₂.X₂) (τ₃ : sq₁.X₃ ⟶ sq₂.X₃) (τ₄ : sq₁.X₄ ⟶ sq₂.X₄)
  (comm₁₂ :
    autoParam (CategoryTheory.CategoryStruct.comp sq₁.f₁₂ τ₂ = CategoryTheory.CategoryStruct.comp τ₁ sq₂.f₁₂)
      CategoryTheory.Square.Hom.comm₁₂._autoParam)
  (comm₁₃ :
    autoParam (CategoryTheory.CategoryStruct.comp sq₁.f₁₃ τ₃ = CategoryTheory.CategoryStruct.comp τ₁ sq₂.f₁₃)
      CategoryTheory.Square.Hom.comm₁₃._autoParam)
  (comm₂₄ :
    autoParam (CategoryTheory.CategoryStruct.comp sq₁.f₂₄ τ₄ = CategoryTheory.CategoryStruct.comp τ₂ sq₂.f₂₄)
      CategoryTheory.Square.Hom.comm₂₄._autoParam)
  (comm₃₄ :
    autoParam (CategoryTheory.CategoryStruct.comp sq₁.f₃₄ τ₄ = CategoryTheory.CategoryStruct.comp τ₃ sq₂.f₃₄)
      CategoryTheory.Square.Hom.comm₃₄._autoParam)
  (τ₁_1 : sq₁.X₁ ⟶ sq₂.X₁) (τ₂_1 : sq₁.X₂ ⟶ sq₂.X₂) (τ₃_1 : sq₁.X₃ ⟶ sq₂.X₃) (τ₄_1 : sq₁.X₄ ⟶ sq₂.X₄)
  (comm₁₂_1 :
    autoParam (CategoryTheory.CategoryStruct.comp sq₁.f₁₂ τ₂_1 = CategoryTheory.CategoryStruct.comp τ₁_1 sq₂.f₁₂)
      CategoryTheory.Square.Hom.comm₁₂._autoParam)
  (comm₁₃_1 :
    autoParam (CategoryTheory.CategoryStruct.comp sq₁.f₁₃ τ₃_1 = CategoryTheory.CategoryStruct.comp τ₁_1 sq₂.f₁₃)
      CategoryTheory.Square.Hom.comm₁₃._autoParam)
  (comm₂₄_1 :
    autoParam (CategoryTheory.CategoryStruct.comp sq₁.f₂₄ τ₄_1 = CategoryTheory.CategoryStruct.comp τ₂_1 sq₂.f₂₄)
      CategoryTheory.Square.Hom.comm₂₄._autoParam)
  (comm₃₄_1 :
    autoParam (CategoryTheory.CategoryStruct.comp sq₁.f₃₄ τ₄_1 = CategoryTheory.CategoryStruct.comp τ₃_1 sq₂.f₃₄)
      CategoryTheory.Square.Hom.comm₃₄._autoParam),
  ({ τ₁ := τ₁, τ₂ := τ₂, τ₃ := τ₃, τ₄ := τ₄, comm₁₂ := comm₁₂, comm₁₃ := comm₁₃, comm₂₄ := comm₂₄, comm₃₄ := comm₃₄ } =
      { τ₁ := τ₁_1, τ₂ := τ₂_1, τ₃ := τ₃_1, τ₄ := τ₄_1, comm₁₂ := comm₁₂_1, comm₁₃ := comm₁₃_1, comm₂₄ := comm₂₄_1,
        comm₃₄ := comm₃₄_1 }) =
    (τ₁ = τ₁_1 ∧ τ₂ = τ₂_1 ∧ τ₃ = τ₃_1 ∧ τ₄ = τ₄_1)

def CategoryTheory.Square.Hom.ctorIdx E1 #

{C : Type u} → {inst : CategoryTheory.Category.{v, u} C} → {sq₁ sq₂ : CategoryTheory.Square C} → sq₁.Hom sq₂ → ℕ

structure CategoryTheory.Square E1 #

(C : Type u) → [CategoryTheory.Category.{v, u} C] → Type (max u v)

The category of commutative squares in a category.

ctor CategoryTheory.Square.mk E0 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X₁ X₂ X₃ X₄ : C} →
      (f₁₂ : X₁ ⟶ X₂) →
        (f₁₃ : X₁ ⟶ X₃) →
          (f₂₄ : X₂ ⟶ X₄) →
            (f₃₄ : X₃ ⟶ X₄) →
              CategoryTheory.CategoryStruct.comp f₁₂ f₂₄ = CategoryTheory.CategoryStruct.comp f₁₃ f₃₄ →
                CategoryTheory.Square C

abbrev CategoryTheory.Square.X₁ E1 #

{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → CategoryTheory.Square C → C

the top-left object

abbrev CategoryTheory.Square.X₂ E1 #

{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → CategoryTheory.Square C → C

the top-right object

abbrev CategoryTheory.Square.X₃ E1 #

{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → CategoryTheory.Square C → C

the bottom-left object

abbrev CategoryTheory.Square.X₄ E1 #

{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → CategoryTheory.Square C → C

the bottom-right object

abbrev CategoryTheory.Square.f₁₂ E1 #

{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → (self : CategoryTheory.Square C) → self.X₁ ⟶ self.X₂

the top morphism

abbrev CategoryTheory.Square.f₁₃ E1 #

{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → (self : CategoryTheory.Square C) → self.X₁ ⟶ self.X₃

the left morphism

abbrev CategoryTheory.Square.f₂₄ E1 #

{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → (self : CategoryTheory.Square C) → self.X₂ ⟶ self.X₄

the right morphism

abbrev CategoryTheory.Square.f₃₄ E1 #

{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → (self : CategoryTheory.Square C) → self.X₃ ⟶ self.X₄

the bottom morphism

theorem CategoryTheory.Square.fac E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (self : CategoryTheory.Square C),
  CategoryTheory.CategoryStruct.comp self.f₁₂ self.f₂₄ = CategoryTheory.CategoryStruct.comp self.f₁₃ self.f₃₄

theorem CategoryTheory.Square.commSq E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C),
  CategoryTheory.CommSq sq.f₁₂ sq.f₁₃ sq.f₂₄ sq.f₃₄

structure CategoryTheory.Square.Hom E1 #

{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → CategoryTheory.Square C → CategoryTheory.Square C → Type v

A morphism between two commutative squares consists of 4 morphisms which extend these two squares into a commuting cube.

theorem CategoryTheory.Square.Hom.ext E1 #

∀ {C : Type u} {inst : CategoryTheory.Category.{v, u} C} {sq₁ sq₂ : CategoryTheory.Square C} {x y : sq₁.Hom sq₂},
  x.τ₁ = y.τ₁ → x.τ₂ = y.τ₂ → x.τ₃ = y.τ₃ → x.τ₄ = y.τ₄ → x = y

theorem CategoryTheory.Square.Hom.ext_iff E0 #

∀ {C : Type u} {inst : CategoryTheory.Category.{v, u} C} {sq₁ sq₂ : CategoryTheory.Square C} {x y : sq₁.Hom sq₂},
  x = y ↔ x.τ₁ = y.τ₁ ∧ x.τ₂ = y.τ₂ ∧ x.τ₃ = y.τ₃ ∧ x.τ₄ = y.τ₄

ctor CategoryTheory.Square.Hom.mk E0 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {sq₁ sq₂ : CategoryTheory.Square C} →
      (τ₁ : sq₁.X₁ ⟶ sq₂.X₁) →
        (τ₂ : sq₁.X₂ ⟶ sq₂.X₂) →
          (τ₃ : sq₁.X₃ ⟶ sq₂.X₃) →
            (τ₄ : sq₁.X₄ ⟶ sq₂.X₄) →
              autoParam (CategoryTheory.CategoryStruct.comp sq₁.f₁₂ τ₂ = CategoryTheory.CategoryStruct.comp τ₁ sq₂.f₁₂)
                  CategoryTheory.Square.Hom.comm₁₂._autoParam →
                autoParam
                    (CategoryTheory.CategoryStruct.comp sq₁.f₁₃ τ₃ = CategoryTheory.CategoryStruct.comp τ₁ sq₂.f₁₃)
                    CategoryTheory.Square.Hom.comm₁₃._autoParam →
                  autoParam
                      (CategoryTheory.CategoryStruct.comp sq₁.f₂₄ τ₄ = CategoryTheory.CategoryStruct.comp τ₂ sq₂.f₂₄)
                      CategoryTheory.Square.Hom.comm₂₄._autoParam →
                    autoParam
                        (CategoryTheory.CategoryStruct.comp sq₁.f₃₄ τ₄ = CategoryTheory.CategoryStruct.comp τ₃ sq₂.f₃₄)
                        CategoryTheory.Square.Hom.comm₃₄._autoParam →
                      sq₁.Hom sq₂

abbrev CategoryTheory.Square.Hom.τ₁ E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] → {sq₁ sq₂ : CategoryTheory.Square C} → sq₁.Hom sq₂ → (sq₁.X₁ ⟶ sq₂.X₁)

the top-left morphism

abbrev CategoryTheory.Square.Hom.τ₂ E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] → {sq₁ sq₂ : CategoryTheory.Square C} → sq₁.Hom sq₂ → (sq₁.X₂ ⟶ sq₂.X₂)

the top-right morphism

abbrev CategoryTheory.Square.Hom.τ₃ E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] → {sq₁ sq₂ : CategoryTheory.Square C} → sq₁.Hom sq₂ → (sq₁.X₃ ⟶ sq₂.X₃)

the bottom-left morphism

abbrev CategoryTheory.Square.Hom.τ₄ E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] → {sq₁ sq₂ : CategoryTheory.Square C} → sq₁.Hom sq₂ → (sq₁.X₄ ⟶ sq₂.X₄)

the bottom-right morphism

theorem CategoryTheory.Square.Hom.comm₁₂ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {sq₁ sq₂ : CategoryTheory.Square C} (self : sq₁.Hom sq₂),
  CategoryTheory.CategoryStruct.comp sq₁.f₁₂ self.τ₂ = CategoryTheory.CategoryStruct.comp self.τ₁ sq₂.f₁₂

theorem CategoryTheory.Square.Hom.comm₁₃ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {sq₁ sq₂ : CategoryTheory.Square C} (self : sq₁.Hom sq₂),
  CategoryTheory.CategoryStruct.comp sq₁.f₁₃ self.τ₃ = CategoryTheory.CategoryStruct.comp self.τ₁ sq₂.f₁₃

theorem CategoryTheory.Square.Hom.comm₂₄ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {sq₁ sq₂ : CategoryTheory.Square C} (self : sq₁.Hom sq₂),
  CategoryTheory.CategoryStruct.comp sq₁.f₂₄ self.τ₄ = CategoryTheory.CategoryStruct.comp self.τ₂ sq₂.f₂₄

theorem CategoryTheory.Square.Hom.comm₃₄ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {sq₁ sq₂ : CategoryTheory.Square C} (self : sq₁.Hom sq₂),
  CategoryTheory.CategoryStruct.comp sq₁.f₃₄ self.τ₄ = CategoryTheory.CategoryStruct.comp self.τ₃ sq₂.f₃₄

theorem CategoryTheory.Square.Hom.comm₁₃_assoc E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {sq₁ sq₂ : CategoryTheory.Square C} (self : sq₁.Hom sq₂)
  {Z : C} (h : sq₂.X₃ ⟶ Z),
  CategoryTheory.CategoryStruct.comp sq₁.f₁₃ (CategoryTheory.CategoryStruct.comp self.τ₃ h) =
    CategoryTheory.CategoryStruct.comp self.τ₁ (CategoryTheory.CategoryStruct.comp sq₂.f₁₃ h)

theorem CategoryTheory.Square.Hom.comm₂₄_assoc E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {sq₁ sq₂ : CategoryTheory.Square C} (self : sq₁.Hom sq₂)
  {Z : C} (h : sq₂.X₄ ⟶ Z),
  CategoryTheory.CategoryStruct.comp sq₁.f₂₄ (CategoryTheory.CategoryStruct.comp self.τ₄ h) =
    CategoryTheory.CategoryStruct.comp self.τ₂ (CategoryTheory.CategoryStruct.comp sq₂.f₂₄ h)

theorem CategoryTheory.Square.Hom.comm₁₂_assoc E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {sq₁ sq₂ : CategoryTheory.Square C} (self : sq₁.Hom sq₂)
  {Z : C} (h : sq₂.X₂ ⟶ Z),
  CategoryTheory.CategoryStruct.comp sq₁.f₁₂ (CategoryTheory.CategoryStruct.comp self.τ₂ h) =
    CategoryTheory.CategoryStruct.comp self.τ₁ (CategoryTheory.CategoryStruct.comp sq₂.f₁₂ h)

theorem CategoryTheory.Square.Hom.comm₃₄_assoc E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {sq₁ sq₂ : CategoryTheory.Square C} (self : sq₁.Hom sq₂)
  {Z : C} (h : sq₂.X₄ ⟶ Z),
  CategoryTheory.CategoryStruct.comp sq₁.f₃₄ (CategoryTheory.CategoryStruct.comp self.τ₄ h) =
    CategoryTheory.CategoryStruct.comp self.τ₃ (CategoryTheory.CategoryStruct.comp sq₂.f₃₄ h)

def CategoryTheory.Square.Hom.id E1 #

{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → (sq : CategoryTheory.Square C) → sq.Hom sq

The identity of a commutative square.

theorem CategoryTheory.Square.Hom.id_τ₂ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C),
  (CategoryTheory.Square.Hom.id sq).τ₂ = CategoryTheory.CategoryStruct.id sq.X₂

theorem CategoryTheory.Square.Hom.id_τ₄ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C),
  (CategoryTheory.Square.Hom.id sq).τ₄ = CategoryTheory.CategoryStruct.id sq.X₄

theorem CategoryTheory.Square.Hom.id_τ₃ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C),
  (CategoryTheory.Square.Hom.id sq).τ₃ = CategoryTheory.CategoryStruct.id sq.X₃

theorem CategoryTheory.Square.Hom.id_τ₁ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C),
  (CategoryTheory.Square.Hom.id sq).τ₁ = CategoryTheory.CategoryStruct.id sq.X₁

def CategoryTheory.Square.Hom.comp E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {sq₁ sq₂ sq₃ : CategoryTheory.Square C} → sq₁.Hom sq₂ → sq₂.Hom sq₃ → sq₁.Hom sq₃

The composition of morphisms of squares.

theorem CategoryTheory.Square.Hom.comp_τ₂ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {sq₁ sq₂ sq₃ : CategoryTheory.Square C} (f : sq₁.Hom sq₂)
  (g : sq₂.Hom sq₃), (f.comp g).τ₂ = CategoryTheory.CategoryStruct.comp f.τ₂ g.τ₂

theorem CategoryTheory.Square.Hom.comp_τ₁ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {sq₁ sq₂ sq₃ : CategoryTheory.Square C} (f : sq₁.Hom sq₂)
  (g : sq₂.Hom sq₃), (f.comp g).τ₁ = CategoryTheory.CategoryStruct.comp f.τ₁ g.τ₁

theorem CategoryTheory.Square.Hom.comp_τ₄ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {sq₁ sq₂ sq₃ : CategoryTheory.Square C} (f : sq₁.Hom sq₂)
  (g : sq₂.Hom sq₃), (f.comp g).τ₄ = CategoryTheory.CategoryStruct.comp f.τ₄ g.τ₄

theorem CategoryTheory.Square.Hom.comp_τ₃ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {sq₁ sq₂ sq₃ : CategoryTheory.Square C} (f : sq₁.Hom sq₂)
  (g : sq₂.Hom sq₃), (f.comp g).τ₃ = CategoryTheory.CategoryStruct.comp f.τ₃ g.τ₃

theorem CategoryTheory.Square.category_id_τ₃ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C),
  (CategoryTheory.CategoryStruct.id sq).τ₃ = CategoryTheory.CategoryStruct.id sq.X₃

theorem CategoryTheory.Square.category_comp_τ₂ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : CategoryTheory.Square C} (f : X.Hom Y) (g : Y.Hom Z),
  (CategoryTheory.CategoryStruct.comp f g).τ₂ = CategoryTheory.CategoryStruct.comp f.τ₂ g.τ₂

instance CategoryTheory.Square.category E0 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] → CategoryTheory.Category.{v, max u v} (CategoryTheory.Square C)

theorem CategoryTheory.Square.category_id_τ₄ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C),
  (CategoryTheory.CategoryStruct.id sq).τ₄ = CategoryTheory.CategoryStruct.id sq.X₄

theorem CategoryTheory.Square.category_id_τ₁ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C),
  (CategoryTheory.CategoryStruct.id sq).τ₁ = CategoryTheory.CategoryStruct.id sq.X₁

theorem CategoryTheory.Square.category_comp_τ₃ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : CategoryTheory.Square C} (f : X.Hom Y) (g : Y.Hom Z),
  (CategoryTheory.CategoryStruct.comp f g).τ₃ = CategoryTheory.CategoryStruct.comp f.τ₃ g.τ₃

theorem CategoryTheory.Square.category_comp_τ₁ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : CategoryTheory.Square C} (f : X.Hom Y) (g : Y.Hom Z),
  (CategoryTheory.CategoryStruct.comp f g).τ₁ = CategoryTheory.CategoryStruct.comp f.τ₁ g.τ₁

theorem CategoryTheory.Square.category_id_τ₂ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C),
  (CategoryTheory.CategoryStruct.id sq).τ₂ = CategoryTheory.CategoryStruct.id sq.X₂

theorem CategoryTheory.Square.category_comp_τ₄ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : CategoryTheory.Square C} (f : X.Hom Y) (g : Y.Hom Z),
  (CategoryTheory.CategoryStruct.comp f g).τ₄ = CategoryTheory.CategoryStruct.comp f.τ₄ g.τ₄

theorem CategoryTheory.Square.hom_ext_iff E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {sq₁ sq₂ : CategoryTheory.Square C} {f g : sq₁ ⟶ sq₂},
  f = g ↔ f.τ₁ = g.τ₁ ∧ f.τ₂ = g.τ₂ ∧ f.τ₃ = g.τ₃ ∧ f.τ₄ = g.τ₄

theorem CategoryTheory.Square.hom_ext E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {sq₁ sq₂ : CategoryTheory.Square C} {f g : sq₁ ⟶ sq₂},
  f.τ₁ = g.τ₁ → f.τ₂ = g.τ₂ → f.τ₃ = g.τ₃ → f.τ₄ = g.τ₄ → f = g

def CategoryTheory.Square.isoMk E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {sq₁ sq₂ : CategoryTheory.Square C} →
      (e₁ : sq₁.X₁ ≅ sq₂.X₁) →
        (e₂ : sq₁.X₂ ≅ sq₂.X₂) →
          (e₃ : sq₁.X₃ ≅ sq₂.X₃) →
            (e₄ : sq₁.X₄ ≅ sq₂.X₄) →
              CategoryTheory.CategoryStruct.comp sq₁.f₁₂ e₂.hom = CategoryTheory.CategoryStruct.comp e₁.hom sq₂.f₁₂ →
                CategoryTheory.CategoryStruct.comp sq₁.f₁₃ e₃.hom = CategoryTheory.CategoryStruct.comp e₁.hom sq₂.f₁₃ →
                  CategoryTheory.CategoryStruct.comp sq₁.f₂₄ e₄.hom =
                      CategoryTheory.CategoryStruct.comp e₂.hom sq₂.f₂₄ →
                    CategoryTheory.CategoryStruct.comp sq₁.f₃₄ e₄.hom =
                        CategoryTheory.CategoryStruct.comp e₃.hom sq₂.f₃₄ →
                      (sq₁ ≅ sq₂)

Constructor for isomorphisms in Square C

def CategoryTheory.Square.flip E1 #

{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → CategoryTheory.Square C → CategoryTheory.Square C

Flipping a square by switching the top-right and the bottom-left objects.

theorem CategoryTheory.Square.flip_X₄ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C), sq.flip.X₄ = sq.X₄

theorem CategoryTheory.Square.flip_f₃₄ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C), sq.flip.f₃₄ = sq.f₂₄

theorem CategoryTheory.Square.flip_X₃ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C), sq.flip.X₃ = sq.X₂

theorem CategoryTheory.Square.flip_X₁ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C), sq.flip.X₁ = sq.X₁

theorem CategoryTheory.Square.flip_X₂ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C), sq.flip.X₂ = sq.X₃

theorem CategoryTheory.Square.flip_f₁₂ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C), sq.flip.f₁₂ = sq.f₁₃

theorem CategoryTheory.Square.flip_f₂₄ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C), sq.flip.f₂₄ = sq.f₃₄

theorem CategoryTheory.Square.flip_f₁₃ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C), sq.flip.f₁₃ = sq.f₁₂

def CategoryTheory.Square.flipFunctor E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] → CategoryTheory.Functor (CategoryTheory.Square C) (CategoryTheory.Square C)

The functor which flips commutative squares.

theorem CategoryTheory.Square.flipFunctor_map_τ₃ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : CategoryTheory.Square C} (φ : X ⟶ Y),
  (CategoryTheory.Square.flipFunctor.map φ).τ₃ = φ.τ₂

theorem CategoryTheory.Square.flipFunctor_map_τ₁ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : CategoryTheory.Square C} (φ : X ⟶ Y),
  (CategoryTheory.Square.flipFunctor.map φ).τ₁ = φ.τ₁

theorem CategoryTheory.Square.flipFunctor_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C),
  CategoryTheory.Square.flipFunctor.obj sq = sq.flip

theorem CategoryTheory.Square.flipFunctor_map_τ₂ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : CategoryTheory.Square C} (φ : X ⟶ Y),
  (CategoryTheory.Square.flipFunctor.map φ).τ₂ = φ.τ₃

theorem CategoryTheory.Square.flipFunctor_map_τ₄ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : CategoryTheory.Square C} (φ : X ⟶ Y),
  (CategoryTheory.Square.flipFunctor.map φ).τ₄ = φ.τ₄

def CategoryTheory.Square.flipEquivalence E1 #

{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → CategoryTheory.Square C ≌ CategoryTheory.Square C

Flipping commutative squares is an auto-equivalence.

theorem CategoryTheory.Square.flipEquivalence_unitIso E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C],
  CategoryTheory.Square.flipEquivalence.unitIso =
    CategoryTheory.Iso.refl (CategoryTheory.Functor.id (CategoryTheory.Square C))

theorem CategoryTheory.Square.flipEquivalence_inverse E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C],
  CategoryTheory.Square.flipEquivalence.inverse = CategoryTheory.Square.flipFunctor

theorem CategoryTheory.Square.flipEquivalence_functor E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C],
  CategoryTheory.Square.flipEquivalence.functor = CategoryTheory.Square.flipFunctor

theorem CategoryTheory.Square.flipEquivalence_counitIso E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C],
  CategoryTheory.Square.flipEquivalence.counitIso =
    CategoryTheory.Iso.refl (CategoryTheory.Square.flipFunctor.comp CategoryTheory.Square.flipFunctor)

def CategoryTheory.Square.toArrowArrowFunctor E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    CategoryTheory.Functor (CategoryTheory.Square C) (CategoryTheory.Arrow (CategoryTheory.Arrow C))

The functor Square C ⥤ Arrow (Arrow C) which sends a commutative square sq to the obvious arrow from the left morphism of sq to the right morphism of sq.

theorem CategoryTheory.Square.toArrowArrowFunctor_obj_hom_right E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C),
  (CategoryTheory.Square.toArrowArrowFunctor.obj sq).hom.right = sq.f₃₄

theorem CategoryTheory.Square.toArrowArrowFunctor_obj_left_left E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C),
  (CategoryTheory.Square.toArrowArrowFunctor.obj sq).left.left = sq.X₁

theorem CategoryTheory.Square.toArrowArrowFunctor_map_right_right E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : CategoryTheory.Square C} (φ : X ⟶ Y),
  (CategoryTheory.Square.toArrowArrowFunctor.map φ).right.right = φ.τ₄

theorem CategoryTheory.Square.toArrowArrowFunctor_obj_right_right E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C),
  (CategoryTheory.Square.toArrowArrowFunctor.obj sq).right.right = sq.X₄

theorem CategoryTheory.Square.toArrowArrowFunctor_obj_hom_left E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C),
  (CategoryTheory.Square.toArrowArrowFunctor.obj sq).hom.left = sq.f₁₂

theorem CategoryTheory.Square.toArrowArrowFunctor_map_left_left E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : CategoryTheory.Square C} (φ : X ⟶ Y),
  (CategoryTheory.Square.toArrowArrowFunctor.map φ).left.left = φ.τ₁

theorem CategoryTheory.Square.toArrowArrowFunctor_obj_right_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C),
  (CategoryTheory.Square.toArrowArrowFunctor.obj sq).right.hom = sq.f₂₄

theorem CategoryTheory.Square.toArrowArrowFunctor_obj_right_left E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C),
  (CategoryTheory.Square.toArrowArrowFunctor.obj sq).right.left = sq.X₂

theorem CategoryTheory.Square.toArrowArrowFunctor_obj_left_right E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C),
  (CategoryTheory.Square.toArrowArrowFunctor.obj sq).left.right = sq.X₃

theorem CategoryTheory.Square.toArrowArrowFunctor_map_left_right E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : CategoryTheory.Square C} (φ : X ⟶ Y),
  (CategoryTheory.Square.toArrowArrowFunctor.map φ).left.right = φ.τ₃

theorem CategoryTheory.Square.toArrowArrowFunctor_map_right_left E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : CategoryTheory.Square C} (φ : X ⟶ Y),
  (CategoryTheory.Square.toArrowArrowFunctor.map φ).right.left = φ.τ₂

theorem CategoryTheory.Square.toArrowArrowFunctor_obj_left_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C),
  (CategoryTheory.Square.toArrowArrowFunctor.obj sq).left.hom = sq.f₁₃

def CategoryTheory.Square.fromArrowArrowFunctor E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    CategoryTheory.Functor (CategoryTheory.Arrow (CategoryTheory.Arrow C)) (CategoryTheory.Square C)

The functor Arrow (Arrow C) ⥤ Square C which sends a morphism Arrow.mk f ⟶ Arrow.mk g to the commutative square with f on the left side and g on the right side.

theorem CategoryTheory.Square.fromArrowArrowFunctor_map_τ₃ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : CategoryTheory.Arrow (CategoryTheory.Arrow C)}
  (φ : X ⟶ Y),
  (CategoryTheory.Square.fromArrowArrowFunctor.map φ).τ₃ =
    CategoryTheory.Arrow.Hom.right (CategoryTheory.Arrow.Hom.left φ)

theorem CategoryTheory.Square.fromArrowArrowFunctor_obj_f₃₄ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (f : CategoryTheory.Arrow (CategoryTheory.Arrow C)),
  (CategoryTheory.Square.fromArrowArrowFunctor.obj f).f₃₄ = CategoryTheory.Arrow.Hom.right f.hom

theorem CategoryTheory.Square.fromArrowArrowFunctor_obj_X₃ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (f : CategoryTheory.Arrow (CategoryTheory.Arrow C)),
  (CategoryTheory.Square.fromArrowArrowFunctor.obj f).X₃ = f.left.right

theorem CategoryTheory.Square.fromArrowArrowFunctor_obj_X₂ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (f : CategoryTheory.Arrow (CategoryTheory.Arrow C)),
  (CategoryTheory.Square.fromArrowArrowFunctor.obj f).X₂ = f.right.left

theorem CategoryTheory.Square.fromArrowArrowFunctor_obj_f₁₃ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (f : CategoryTheory.Arrow (CategoryTheory.Arrow C)),
  (CategoryTheory.Square.fromArrowArrowFunctor.obj f).f₁₃ = f.left.hom

theorem CategoryTheory.Square.fromArrowArrowFunctor_obj_X₁ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (f : CategoryTheory.Arrow (CategoryTheory.Arrow C)),
  (CategoryTheory.Square.fromArrowArrowFunctor.obj f).X₁ = f.left.left

theorem CategoryTheory.Square.fromArrowArrowFunctor_obj_X₄ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (f : CategoryTheory.Arrow (CategoryTheory.Arrow C)),
  (CategoryTheory.Square.fromArrowArrowFunctor.obj f).X₄ = f.right.right

theorem CategoryTheory.Square.fromArrowArrowFunctor_obj_f₁₂ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (f : CategoryTheory.Arrow (CategoryTheory.Arrow C)),
  (CategoryTheory.Square.fromArrowArrowFunctor.obj f).f₁₂ = CategoryTheory.Arrow.Hom.left f.hom

theorem CategoryTheory.Square.fromArrowArrowFunctor_obj_f₂₄ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (f : CategoryTheory.Arrow (CategoryTheory.Arrow C)),
  (CategoryTheory.Square.fromArrowArrowFunctor.obj f).f₂₄ = f.right.hom

theorem CategoryTheory.Square.fromArrowArrowFunctor_map_τ₁ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : CategoryTheory.Arrow (CategoryTheory.Arrow C)}
  (φ : X ⟶ Y),
  (CategoryTheory.Square.fromArrowArrowFunctor.map φ).τ₁ =
    CategoryTheory.Arrow.Hom.left (CategoryTheory.Arrow.Hom.left φ)

theorem CategoryTheory.Square.fromArrowArrowFunctor_map_τ₂ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : CategoryTheory.Arrow (CategoryTheory.Arrow C)}
  (φ : X ⟶ Y),
  (CategoryTheory.Square.fromArrowArrowFunctor.map φ).τ₂ =
    CategoryTheory.Arrow.Hom.left (CategoryTheory.Arrow.Hom.right φ)

theorem CategoryTheory.Square.fromArrowArrowFunctor_map_τ₄ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : CategoryTheory.Arrow (CategoryTheory.Arrow C)}
  (φ : X ⟶ Y),
  (CategoryTheory.Square.fromArrowArrowFunctor.map φ).τ₄ =
    CategoryTheory.Arrow.Hom.right (CategoryTheory.Arrow.Hom.right φ)

def CategoryTheory.Square.arrowArrowEquivalence E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] → CategoryTheory.Square C ≌ CategoryTheory.Arrow (CategoryTheory.Arrow C)

The equivalence Square C ≌ Arrow (Arrow C) which sends a commutative square sq to the obvious arrow from the left morphism of sq to the right morphism of sq.

theorem CategoryTheory.Square.arrowArrowEquivalence_functor E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C],
  CategoryTheory.Square.arrowArrowEquivalence.functor = CategoryTheory.Square.toArrowArrowFunctor

theorem CategoryTheory.Square.arrowArrowEquivalence_inverse E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C],
  CategoryTheory.Square.arrowArrowEquivalence.inverse = CategoryTheory.Square.fromArrowArrowFunctor

theorem CategoryTheory.Square.arrowArrowEquivalence_unitIso E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C],
  CategoryTheory.Square.arrowArrowEquivalence.unitIso =
    CategoryTheory.Iso.refl (CategoryTheory.Functor.id (CategoryTheory.Square C))

theorem CategoryTheory.Square.arrowArrowEquivalence_counitIso E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C],
  CategoryTheory.Square.arrowArrowEquivalence.counitIso =
    CategoryTheory.Iso.refl (CategoryTheory.Square.fromArrowArrowFunctor.comp CategoryTheory.Square.toArrowArrowFunctor)

def CategoryTheory.Square.toArrowArrowFunctor' E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    CategoryTheory.Functor (CategoryTheory.Square C) (CategoryTheory.Arrow (CategoryTheory.Arrow C))

The functor Square C ⥤ Arrow (Arrow C) which sends a commutative square sq to the obvious arrow from the top morphism of sq to the bottom morphism of sq.

theorem CategoryTheory.Square.toArrowArrowFunctor'_obj_left_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C),
  (CategoryTheory.Square.toArrowArrowFunctor'.obj sq).left.hom = sq.f₁₂

theorem CategoryTheory.Square.toArrowArrowFunctor'_obj_right_right E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C),
  (CategoryTheory.Square.toArrowArrowFunctor'.obj sq).right.right = sq.X₄

theorem CategoryTheory.Square.toArrowArrowFunctor'_map_right_left E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : CategoryTheory.Square C} (φ : X ⟶ Y),
  (CategoryTheory.Square.toArrowArrowFunctor'.map φ).right.left = φ.τ₃

theorem CategoryTheory.Square.toArrowArrowFunctor'_map_left_right E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : CategoryTheory.Square C} (φ : X ⟶ Y),
  (CategoryTheory.Square.toArrowArrowFunctor'.map φ).left.right = φ.τ₂

theorem CategoryTheory.Square.toArrowArrowFunctor'_map_left_left E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : CategoryTheory.Square C} (φ : X ⟶ Y),
  (CategoryTheory.Square.toArrowArrowFunctor'.map φ).left.left = φ.τ₁

theorem CategoryTheory.Square.toArrowArrowFunctor'_map_right_right E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : CategoryTheory.Square C} (φ : X ⟶ Y),
  (CategoryTheory.Square.toArrowArrowFunctor'.map φ).right.right = φ.τ₄

theorem CategoryTheory.Square.toArrowArrowFunctor'_obj_hom_right E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C),
  (CategoryTheory.Square.toArrowArrowFunctor'.obj sq).hom.right = sq.f₂₄

theorem CategoryTheory.Square.toArrowArrowFunctor'_obj_left_left E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C),
  (CategoryTheory.Square.toArrowArrowFunctor'.obj sq).left.left = sq.X₁

theorem CategoryTheory.Square.toArrowArrowFunctor'_obj_hom_left E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C),
  (CategoryTheory.Square.toArrowArrowFunctor'.obj sq).hom.left = sq.f₁₃

theorem CategoryTheory.Square.toArrowArrowFunctor'_obj_right_left E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C),
  (CategoryTheory.Square.toArrowArrowFunctor'.obj sq).right.left = sq.X₃

theorem CategoryTheory.Square.toArrowArrowFunctor'_obj_right_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C),
  (CategoryTheory.Square.toArrowArrowFunctor'.obj sq).right.hom = sq.f₃₄

theorem CategoryTheory.Square.toArrowArrowFunctor'_obj_left_right E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C),
  (CategoryTheory.Square.toArrowArrowFunctor'.obj sq).left.right = sq.X₂

def CategoryTheory.Square.fromArrowArrowFunctor' E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    CategoryTheory.Functor (CategoryTheory.Arrow (CategoryTheory.Arrow C)) (CategoryTheory.Square C)

The functor Arrow (Arrow C) ⥤ Square C which sends a morphism Arrow.mk f ⟶ Arrow.mk g to the commutative square with f on the top side and g on the bottom side.

theorem CategoryTheory.Square.fromArrowArrowFunctor'_obj_X₂ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (f : CategoryTheory.Arrow (CategoryTheory.Arrow C)),
  (CategoryTheory.Square.fromArrowArrowFunctor'.obj f).X₂ = f.left.right

theorem CategoryTheory.Square.fromArrowArrowFunctor'_obj_X₃ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (f : CategoryTheory.Arrow (CategoryTheory.Arrow C)),
  (CategoryTheory.Square.fromArrowArrowFunctor'.obj f).X₃ = f.right.left

theorem CategoryTheory.Square.fromArrowArrowFunctor'_map_τ₃ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : CategoryTheory.Arrow (CategoryTheory.Arrow C)}
  (φ : X ⟶ Y),
  (CategoryTheory.Square.fromArrowArrowFunctor'.map φ).τ₃ =
    CategoryTheory.Arrow.Hom.left (CategoryTheory.Arrow.Hom.right φ)

theorem CategoryTheory.Square.fromArrowArrowFunctor'_obj_f₁₃ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (f : CategoryTheory.Arrow (CategoryTheory.Arrow C)),
  (CategoryTheory.Square.fromArrowArrowFunctor'.obj f).f₁₃ = CategoryTheory.Arrow.Hom.left f.hom

theorem CategoryTheory.Square.fromArrowArrowFunctor'_obj_X₄ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (f : CategoryTheory.Arrow (CategoryTheory.Arrow C)),
  (CategoryTheory.Square.fromArrowArrowFunctor'.obj f).X₄ = f.right.right

theorem CategoryTheory.Square.fromArrowArrowFunctor'_obj_X₁ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (f : CategoryTheory.Arrow (CategoryTheory.Arrow C)),
  (CategoryTheory.Square.fromArrowArrowFunctor'.obj f).X₁ = f.left.left

theorem CategoryTheory.Square.fromArrowArrowFunctor'_map_τ₄ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : CategoryTheory.Arrow (CategoryTheory.Arrow C)}
  (φ : X ⟶ Y),
  (CategoryTheory.Square.fromArrowArrowFunctor'.map φ).τ₄ =
    CategoryTheory.Arrow.Hom.right (CategoryTheory.Arrow.Hom.right φ)

theorem CategoryTheory.Square.fromArrowArrowFunctor'_map_τ₂ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : CategoryTheory.Arrow (CategoryTheory.Arrow C)}
  (φ : X ⟶ Y),
  (CategoryTheory.Square.fromArrowArrowFunctor'.map φ).τ₂ =
    CategoryTheory.Arrow.Hom.right (CategoryTheory.Arrow.Hom.left φ)

theorem CategoryTheory.Square.fromArrowArrowFunctor'_map_τ₁ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : CategoryTheory.Arrow (CategoryTheory.Arrow C)}
  (φ : X ⟶ Y),
  (CategoryTheory.Square.fromArrowArrowFunctor'.map φ).τ₁ =
    CategoryTheory.Arrow.Hom.left (CategoryTheory.Arrow.Hom.left φ)

theorem CategoryTheory.Square.fromArrowArrowFunctor'_obj_f₂₄ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (f : CategoryTheory.Arrow (CategoryTheory.Arrow C)),
  (CategoryTheory.Square.fromArrowArrowFunctor'.obj f).f₂₄ = CategoryTheory.Arrow.Hom.right f.hom

theorem CategoryTheory.Square.fromArrowArrowFunctor'_obj_f₁₂ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (f : CategoryTheory.Arrow (CategoryTheory.Arrow C)),
  (CategoryTheory.Square.fromArrowArrowFunctor'.obj f).f₁₂ = f.left.hom

theorem CategoryTheory.Square.fromArrowArrowFunctor'_obj_f₃₄ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (f : CategoryTheory.Arrow (CategoryTheory.Arrow C)),
  (CategoryTheory.Square.fromArrowArrowFunctor'.obj f).f₃₄ = f.right.hom

def CategoryTheory.Square.arrowArrowEquivalence' E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] → CategoryTheory.Square C ≌ CategoryTheory.Arrow (CategoryTheory.Arrow C)

The equivalence Square C ≌ Arrow (Arrow C) which sends a commutative square sq to the obvious arrow from the top morphism of sq to the bottom morphism of sq.

theorem CategoryTheory.Square.arrowArrowEquivalence'_inverse E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C],
  CategoryTheory.Square.arrowArrowEquivalence'.inverse = CategoryTheory.Square.fromArrowArrowFunctor'

theorem CategoryTheory.Square.arrowArrowEquivalence'_unitIso E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C],
  CategoryTheory.Square.arrowArrowEquivalence'.unitIso =
    CategoryTheory.Iso.refl (CategoryTheory.Functor.id (CategoryTheory.Square C))

theorem CategoryTheory.Square.arrowArrowEquivalence'_functor E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C],
  CategoryTheory.Square.arrowArrowEquivalence'.functor = CategoryTheory.Square.toArrowArrowFunctor'

theorem CategoryTheory.Square.arrowArrowEquivalence'_counitIso E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C],
  CategoryTheory.Square.arrowArrowEquivalence'.counitIso =
    CategoryTheory.Iso.refl
      (CategoryTheory.Square.fromArrowArrowFunctor'.comp CategoryTheory.Square.toArrowArrowFunctor')

def CategoryTheory.Square.evaluation₁ E1 #

{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → CategoryTheory.Functor (CategoryTheory.Square C) C

The top-left evaluation Square C ⥤ C.

theorem CategoryTheory.Square.evaluation₁_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C),
  CategoryTheory.Square.evaluation₁.obj sq = sq.X₁

theorem CategoryTheory.Square.evaluation₁_map E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : CategoryTheory.Square C} (φ : X ⟶ Y),
  CategoryTheory.Square.evaluation₁.map φ = φ.τ₁

def CategoryTheory.Square.evaluation₂ E1 #

{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → CategoryTheory.Functor (CategoryTheory.Square C) C

The top-right evaluation Square C ⥤ C.

theorem CategoryTheory.Square.evaluation₂_map E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : CategoryTheory.Square C} (φ : X ⟶ Y),
  CategoryTheory.Square.evaluation₂.map φ = φ.τ₂

theorem CategoryTheory.Square.evaluation₂_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C),
  CategoryTheory.Square.evaluation₂.obj sq = sq.X₂

def CategoryTheory.Square.evaluation₃ E1 #

{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → CategoryTheory.Functor (CategoryTheory.Square C) C

The bottom-left evaluation Square C ⥤ C.

theorem CategoryTheory.Square.evaluation₃_map E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : CategoryTheory.Square C} (φ : X ⟶ Y),
  CategoryTheory.Square.evaluation₃.map φ = φ.τ₃

theorem CategoryTheory.Square.evaluation₃_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C),
  CategoryTheory.Square.evaluation₃.obj sq = sq.X₃

def CategoryTheory.Square.evaluation₄ E1 #

{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → CategoryTheory.Functor (CategoryTheory.Square C) C

The bottom-right evaluation Square C ⥤ C.

theorem CategoryTheory.Square.evaluation₄_map E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : CategoryTheory.Square C} (φ : X ⟶ Y),
  CategoryTheory.Square.evaluation₄.map φ = φ.τ₄

theorem CategoryTheory.Square.evaluation₄_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C),
  CategoryTheory.Square.evaluation₄.obj sq = sq.X₄

def CategoryTheory.Square.op E1 #

{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → CategoryTheory.Square C → CategoryTheory.Square Cᵒᵖ

The map Square C → Square Cᵒᵖ which switches X₁ and X₃, but does not move X₂ and X₃.

theorem CategoryTheory.Square.op_f₁₂ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C), sq.op.f₁₂ = sq.f₂₄.op

theorem CategoryTheory.Square.op_f₂₄ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C), sq.op.f₂₄ = sq.f₁₂.op

theorem CategoryTheory.Square.op_X₃ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C), sq.op.X₃ = Opposite.op sq.X₃

theorem CategoryTheory.Square.op_X₁ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C), sq.op.X₁ = Opposite.op sq.X₄

theorem CategoryTheory.Square.op_X₂ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C), sq.op.X₂ = Opposite.op sq.X₂

theorem CategoryTheory.Square.op_f₁₃ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C), sq.op.f₁₃ = sq.f₃₄.op

theorem CategoryTheory.Square.op_X₄ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C), sq.op.X₄ = Opposite.op sq.X₁

theorem CategoryTheory.Square.op_f₃₄ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square C), sq.op.f₃₄ = sq.f₁₃.op

def CategoryTheory.Square.unop E1 #

{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → CategoryTheory.Square Cᵒᵖ → CategoryTheory.Square C

The map Square Cᵒᵖ → Square C which switches X₁ and X₃, but does not move X₂ and X₃.

theorem CategoryTheory.Square.unop_X₂ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square Cᵒᵖ),
  sq.unop.X₂ = Opposite.unop sq.X₂

theorem CategoryTheory.Square.unop_X₁ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square Cᵒᵖ),
  sq.unop.X₁ = Opposite.unop sq.X₄

theorem CategoryTheory.Square.unop_f₁₂ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square Cᵒᵖ), sq.unop.f₁₂ = sq.f₂₄.unop

theorem CategoryTheory.Square.unop_X₃ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square Cᵒᵖ),
  sq.unop.X₃ = Opposite.unop sq.X₃

theorem CategoryTheory.Square.unop_f₁₃ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square Cᵒᵖ), sq.unop.f₁₃ = sq.f₃₄.unop

theorem CategoryTheory.Square.unop_f₂₄ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square Cᵒᵖ), sq.unop.f₂₄ = sq.f₁₂.unop

theorem CategoryTheory.Square.unop_X₄ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square Cᵒᵖ),
  sq.unop.X₄ = Opposite.unop sq.X₁

theorem CategoryTheory.Square.unop_f₃₄ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : CategoryTheory.Square Cᵒᵖ), sq.unop.f₃₄ = sq.f₁₃.unop

def CategoryTheory.Square.opFunctor E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    CategoryTheory.Functor (CategoryTheory.Square C)ᵒᵖ (CategoryTheory.Square Cᵒᵖ)

The functor (Square C)ᵒᵖ ⥤ Square Cᵒᵖ.

theorem CategoryTheory.Square.opFunctor_map_τ₁ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : (CategoryTheory.Square C)ᵒᵖ} (φ : X ⟶ Y),
  (CategoryTheory.Square.opFunctor.map φ).τ₁ = φ.unop.τ₄.op

theorem CategoryTheory.Square.opFunctor_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (sq : (CategoryTheory.Square C)ᵒᵖ),
  CategoryTheory.Square.opFunctor.obj sq = (Opposite.unop sq).op

theorem CategoryTheory.Square.opFunctor_map_τ₂ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : (CategoryTheory.Square C)ᵒᵖ} (φ : X ⟶ Y),
  (CategoryTheory.Square.opFunctor.map φ).τ₂ = φ.unop.τ₂.op

theorem CategoryTheory.Square.opFunctor_map_τ₃ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : (CategoryTheory.Square C)ᵒᵖ} (φ : X ⟶ Y),
  (CategoryTheory.Square.opFunctor.map φ).τ₃ = φ.unop.τ₃.op

theorem CategoryTheory.Square.opFunctor_map_τ₄ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : (CategoryTheory.Square C)ᵒᵖ} (φ : X ⟶ Y),
  (CategoryTheory.Square.opFunctor.map φ).τ₄ = φ.unop.τ₁.op

def CategoryTheory.Square.unopFunctor E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    CategoryTheory.Functor (CategoryTheory.Square Cᵒᵖ)ᵒᵖ (CategoryTheory.Square C)

The functor (Square Cᵒᵖ)ᵒᵖ ⥤ Square Cᵒᵖ.

def CategoryTheory.Square.opEquivalence E1 #

{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → (CategoryTheory.Square C)ᵒᵖ ≌ CategoryTheory.Square Cᵒᵖ

The equivalence (Square C)ᵒᵖ ≌ Square Cᵒᵖ.

def CategoryTheory.Square.map E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {D : Type u'} →
      [inst_1 : CategoryTheory.Category.{v', u'} D] →
        CategoryTheory.Square C → CategoryTheory.Functor C D → CategoryTheory.Square D

The image of a commutative square by a functor.

theorem CategoryTheory.Square.map_X₄ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} D]
  (sq : CategoryTheory.Square C) (F : CategoryTheory.Functor C D), (sq.map F).X₄ = F.obj sq.X₄

theorem CategoryTheory.Square.map_f₁₃ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} D]
  (sq : CategoryTheory.Square C) (F : CategoryTheory.Functor C D), (sq.map F).f₁₃ = F.map sq.f₁₃

theorem CategoryTheory.Square.map_f₃₄ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} D]
  (sq : CategoryTheory.Square C) (F : CategoryTheory.Functor C D), (sq.map F).f₃₄ = F.map sq.f₃₄

theorem CategoryTheory.Square.map_X₁ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} D]
  (sq : CategoryTheory.Square C) (F : CategoryTheory.Functor C D), (sq.map F).X₁ = F.obj sq.X₁

theorem CategoryTheory.Square.map_f₁₂ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} D]
  (sq : CategoryTheory.Square C) (F : CategoryTheory.Functor C D), (sq.map F).f₁₂ = F.map sq.f₁₂

theorem CategoryTheory.Square.map_X₂ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} D]
  (sq : CategoryTheory.Square C) (F : CategoryTheory.Functor C D), (sq.map F).X₂ = F.obj sq.X₂

theorem CategoryTheory.Square.map_X₃ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} D]
  (sq : CategoryTheory.Square C) (F : CategoryTheory.Functor C D), (sq.map F).X₃ = F.obj sq.X₃

theorem CategoryTheory.Square.map_f₂₄ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} D]
  (sq : CategoryTheory.Square C) (F : CategoryTheory.Functor C D), (sq.map F).f₂₄ = F.map sq.f₂₄

def CategoryTheory.Functor.mapSquare E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {D : Type u'} →
      [inst_1 : CategoryTheory.Category.{v', u'} D] →
        CategoryTheory.Functor C D → CategoryTheory.Functor (CategoryTheory.Square C) (CategoryTheory.Square D)

The functor Square C ⥤ Square D induced by a functor C ⥤ D.

theorem CategoryTheory.Functor.mapSquare_map_τ₁ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} D]
  (F : CategoryTheory.Functor C D) {X Y : CategoryTheory.Square C} (φ : X ⟶ Y), (F.mapSquare.map φ).τ₁ = F.map φ.τ₁

theorem CategoryTheory.Functor.mapSquare_map_τ₄ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} D]
  (F : CategoryTheory.Functor C D) {X Y : CategoryTheory.Square C} (φ : X ⟶ Y), (F.mapSquare.map φ).τ₄ = F.map φ.τ₄

theorem CategoryTheory.Functor.mapSquare_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} D]
  (F : CategoryTheory.Functor C D) (sq : CategoryTheory.Square C), F.mapSquare.obj sq = sq.map F

theorem CategoryTheory.Functor.mapSquare_map_τ₂ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} D]
  (F : CategoryTheory.Functor C D) {X Y : CategoryTheory.Square C} (φ : X ⟶ Y), (F.mapSquare.map φ).τ₂ = F.map φ.τ₂

theorem CategoryTheory.Functor.mapSquare_map_τ₃ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} D]
  (F : CategoryTheory.Functor C D) {X Y : CategoryTheory.Square C} (φ : X ⟶ Y), (F.mapSquare.map φ).τ₃ = F.map φ.τ₃

def CategoryTheory.NatTrans.mapSquare E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {D : Type u'} →
      [inst_1 : CategoryTheory.Category.{v', u'} D] →
        {F G : CategoryTheory.Functor C D} → (F ⟶ G) → (F.mapSquare ⟶ G.mapSquare)

The natural transformation F.mapSquare ⟶ G.mapSquare induces by a natural transformation F ⟶ G.

theorem CategoryTheory.NatTrans.mapSquare_app_τ₁ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} D]
  {F G : CategoryTheory.Functor C D} (τ : F ⟶ G) (sq : CategoryTheory.Square C),
  ((CategoryTheory.NatTrans.mapSquare τ).app sq).τ₁ = τ.app sq.X₁

theorem CategoryTheory.NatTrans.mapSquare_app_τ₂ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} D]
  {F G : CategoryTheory.Functor C D} (τ : F ⟶ G) (sq : CategoryTheory.Square C),
  ((CategoryTheory.NatTrans.mapSquare τ).app sq).τ₂ = τ.app sq.X₂

theorem CategoryTheory.NatTrans.mapSquare_app_τ₄ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} D]
  {F G : CategoryTheory.Functor C D} (τ : F ⟶ G) (sq : CategoryTheory.Square C),
  ((CategoryTheory.NatTrans.mapSquare τ).app sq).τ₄ = τ.app sq.X₄

theorem CategoryTheory.NatTrans.mapSquare_app_τ₃ E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} D]
  {F G : CategoryTheory.Functor C D} (τ : F ⟶ G) (sq : CategoryTheory.Square C),
  ((CategoryTheory.NatTrans.mapSquare τ).app sq).τ₃ = τ.app sq.X₃

def CategoryTheory.Square.mapFunctor E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {D : Type u'} →
      [inst_1 : CategoryTheory.Category.{v', u'} D] →
        CategoryTheory.Functor (CategoryTheory.Functor C D)
          (CategoryTheory.Functor (CategoryTheory.Square C) (CategoryTheory.Square D))

The functor (C ⥤ D) ⥤ Square C ⥤ Square D.

theorem CategoryTheory.Square.mapFunctor_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} D]
  (F : CategoryTheory.Functor C D), CategoryTheory.Square.mapFunctor.obj F = F.mapSquare

theorem CategoryTheory.Square.mapFunctor_map E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} D]
  {X Y : CategoryTheory.Functor C D} (τ : X ⟶ Y),
  CategoryTheory.Square.mapFunctor.map τ = CategoryTheory.NatTrans.mapSquare τ