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.Limits.Shapes.Pullback.Pasting

68 declarations. Mathlib docs · Source

Pasting lemma

This file proves the pasting lemma for pullbacks. That is, given the following diagram:

  X₁ - f₁ -> X₂ - f₂ -> X₃
  |          |          |
  i₁         i₂         i₃
  ∨          ∨          ∨
  Y₁ - g₁ -> Y₂ - g₂ -> Y₃

if the right square is a pullback, then the left square is a pullback iff the big square is a pullback.

Main results

  • pasteHorizIsPullback shows that the big square is a pullback if both the small squares are.
  • leftSquareIsPullback shows that the left square is a pullback if the other two are.
  • pullbackRightPullbackFstIso shows, using the pullback API, that W ×[X] (X ×[Z] Y) ≅ W ×[Z] Y.
  • pullbackLeftPullbackSndIso shows, using the pullback API, that (X ×[Z] Y) ×[Y] W ≅ X ×[Z] W.

abbrev CategoryTheory.Limits.PullbackCone.pasteHoriz E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X₃ Y₁ Y₂ Y₃ : C} →
      {g₁ : Y₁ ⟶ Y₂} →
        {g₂ : Y₂ ⟶ Y₃} →
          {i₃ : X₃ ⟶ Y₃} →
            (t₂ : CategoryTheory.Limits.PullbackCone g₂ i₃) →
              {i₂ : t₂.pt ⟶ Y₂} →
                CategoryTheory.Limits.PullbackCone g₁ i₂ →
                  i₂ = t₂.fst → CategoryTheory.Limits.PullbackCone (CategoryTheory.CategoryStruct.comp g₁ g₂) i₃

The PullbackCone obtained by pasting two PullbackCone's horizontally

abbrev CategoryTheory.Limits.PushoutCocone.pasteVert E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X₃ Y₁ Y₂ Y₃ : C} →
      {g₁ : Y₂ ⟶ Y₁} →
        {g₂ : Y₃ ⟶ Y₂} →
          {i₃ : Y₃ ⟶ X₃} →
            (t₂ : CategoryTheory.Limits.PushoutCocone g₂ i₃) →
              {i₂ : Y₂ ⟶ t₂.pt} →
                CategoryTheory.Limits.PushoutCocone g₁ i₂ →
                  i₂ = t₂.inl → CategoryTheory.Limits.PushoutCocone (CategoryTheory.CategoryStruct.comp g₂ g₁) i₃

The PullbackCone obtained by pasting two PullbackCone's vertically

def CategoryTheory.Limits.pasteHorizIsPullback E3 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X₃ Y₁ Y₂ Y₃ : C} →
      {g₁ : Y₁ ⟶ Y₂} →
        {g₂ : Y₂ ⟶ Y₃} →
          {i₃ : X₃ ⟶ Y₃} →
            {t₂ : CategoryTheory.Limits.PullbackCone g₂ i₃} →
              {i₂ : t₂.pt ⟶ Y₂} →
                {t₁ : CategoryTheory.Limits.PullbackCone g₁ i₂} →
                  (hi₂ : i₂ = t₂.fst) →
                    CategoryTheory.Limits.IsLimit t₂ →
                      CategoryTheory.Limits.IsLimit t₁ → CategoryTheory.Limits.IsLimit (t₂.pasteHoriz t₁ hi₂)

Given

X₁ - f₁ -> X₂ - f₂ -> X₃
|          |          |
i₁         i₂         i₃
↓          ↓          ↓
Y₁ - g₁ -> Y₂ - g₂ -> Y₃

Then the big square is a pullback if both the small squares are.

def CategoryTheory.Limits.pasteVertIsPushout E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X₃ Y₁ Y₂ Y₃ : C} →
      {g₁ : Y₂ ⟶ Y₁} →
        {g₂ : Y₃ ⟶ Y₂} →
          {i₃ : Y₃ ⟶ X₃} →
            {t₂ : CategoryTheory.Limits.PushoutCocone g₂ i₃} →
              {i₂ : Y₂ ⟶ t₂.pt} →
                {t₁ : CategoryTheory.Limits.PushoutCocone g₁ i₂} →
                  (hi₂ : i₂ = t₂.inl) →
                    CategoryTheory.Limits.IsColimit t₂ →
                      CategoryTheory.Limits.IsColimit t₁ → CategoryTheory.Limits.IsColimit (t₂.pasteVert t₁ hi₂)

Given

Y₃ - i₃ -> X₃
|          |
g₂         f₂
∨          ∨
Y₂ - i₂ -> X₂
|          |
g₁         f₁
∨          ∨
Y₁ - i₁ -> X₁

The big square is a pushout if both the small squares are.

def CategoryTheory.Limits.leftSquareIsPullback E3 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X₃ Y₁ Y₂ Y₃ : C} →
      {g₁ : Y₁ ⟶ Y₂} →
        {g₂ : Y₂ ⟶ Y₃} →
          {i₃ : X₃ ⟶ Y₃} →
            {t₂ : CategoryTheory.Limits.PullbackCone g₂ i₃} →
              {i₂ : t₂.pt ⟶ Y₂} →
                (t₁ : CategoryTheory.Limits.PullbackCone g₁ i₂) →
                  (hi₂ : i₂ = t₂.fst) →
                    CategoryTheory.Limits.IsLimit t₂ →
                      CategoryTheory.Limits.IsLimit (t₂.pasteHoriz t₁ hi₂) → CategoryTheory.Limits.IsLimit t₁

Given

X₁ - f₁ -> X₂ - f₂ -> X₃
|          |          |
i₁         i₂         i₃
↓          ↓          ↓
Y₁ - g₁ -> Y₂ - g₂ -> Y₃

Then the left square is a pullback if the right square and the big square are.

def CategoryTheory.Limits.botSquareIsPushout E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X₃ Y₁ Y₂ Y₃ : C} →
      {g₁ : Y₂ ⟶ Y₁} →
        {g₂ : Y₃ ⟶ Y₂} →
          {i₃ : Y₃ ⟶ X₃} →
            {t₂ : CategoryTheory.Limits.PushoutCocone g₂ i₃} →
              {i₂ : Y₂ ⟶ t₂.pt} →
                (t₁ : CategoryTheory.Limits.PushoutCocone g₁ i₂) →
                  (hi₂ : i₂ = t₂.inl) →
                    CategoryTheory.Limits.IsColimit t₂ →
                      CategoryTheory.Limits.IsColimit (t₂.pasteVert t₁ hi₂) → CategoryTheory.Limits.IsColimit t₁

Given

Y₃ - i₃ -> X₃
|          |
g₂         f₂
∨          ∨
Y₂ - i₂ -> X₂
|          |
g₁         f₁
∨          ∨
Y₁ - i₁ -> X₁

The bottom square is a pushout if the top square and the big square are.

def CategoryTheory.Limits.pasteHorizIsPullbackEquiv E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X₃ Y₁ Y₂ Y₃ : C} →
      {g₁ : Y₁ ⟶ Y₂} →
        {g₂ : Y₂ ⟶ Y₃} →
          {i₃ : X₃ ⟶ Y₃} →
            {t₂ : CategoryTheory.Limits.PullbackCone g₂ i₃} →
              {i₂ : t₂.pt ⟶ Y₂} →
                (t₁ : CategoryTheory.Limits.PullbackCone g₁ i₂) →
                  (hi₂ : i₂ = t₂.fst) →
                    CategoryTheory.Limits.IsLimit t₂ →
                      CategoryTheory.Limits.IsLimit (t₂.pasteHoriz t₁ hi₂) ≃ CategoryTheory.Limits.IsLimit t₁

Given that the right square is a pullback, the pasted square is a pullback iff the left square is.

def CategoryTheory.Limits.pasteVertIsPushoutEquiv E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X₃ Y₁ Y₂ Y₃ : C} →
      {g₁ : Y₂ ⟶ Y₁} →
        {g₂ : Y₃ ⟶ Y₂} →
          {i₃ : Y₃ ⟶ X₃} →
            {t₂ : CategoryTheory.Limits.PushoutCocone g₂ i₃} →
              {i₂ : Y₂ ⟶ t₂.pt} →
                (t₁ : CategoryTheory.Limits.PushoutCocone g₁ i₂) →
                  (hi₂ : i₂ = t₂.inl) →
                    CategoryTheory.Limits.IsColimit t₂ →
                      CategoryTheory.Limits.IsColimit (t₂.pasteVert t₁ hi₂) ≃ CategoryTheory.Limits.IsColimit t₁

Given that the top square is a pushout, the pasted square is a pushout iff the bottom square is.

abbrev CategoryTheory.Limits.PullbackCone.pasteVert E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X₁ X₂ X₃ Y₁ : C} →
      {f₁ : X₂ ⟶ X₁} →
        {f₂ : X₃ ⟶ X₂} →
          {i₁ : Y₁ ⟶ X₁} →
            (t₁ : CategoryTheory.Limits.PullbackCone i₁ f₁) →
              {i₂ : t₁.pt ⟶ X₂} →
                CategoryTheory.Limits.PullbackCone i₂ f₂ →
                  i₂ = t₁.snd → CategoryTheory.Limits.PullbackCone i₁ (CategoryTheory.CategoryStruct.comp f₂ f₁)

The PullbackCone obtained by pasting two PullbackCone's vertically

abbrev CategoryTheory.Limits.PushoutCocone.pasteHoriz E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X₁ X₂ X₃ Y₁ : C} →
      {f₁ : X₁ ⟶ X₂} →
        {f₂ : X₂ ⟶ X₃} →
          {i₁ : X₁ ⟶ Y₁} →
            (t₁ : CategoryTheory.Limits.PushoutCocone i₁ f₁) →
              {i₂ : X₂ ⟶ t₁.pt} →
                CategoryTheory.Limits.PushoutCocone i₂ f₂ →
                  i₂ = t₁.inr → CategoryTheory.Limits.PushoutCocone i₁ (CategoryTheory.CategoryStruct.comp f₁ f₂)

The pushout cocone obtained by pasting two pushout cocones horizontally.

def CategoryTheory.Limits.PullbackCone.pasteVertFlip E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X₁ X₂ X₃ Y₁ : C} →
      {f₁ : X₂ ⟶ X₁} →
        {f₂ : X₃ ⟶ X₂} →
          {i₁ : Y₁ ⟶ X₁} →
            (t₁ : CategoryTheory.Limits.PullbackCone i₁ f₁) →
              {i₂ : t₁.pt ⟶ X₂} →
                (t₂ : CategoryTheory.Limits.PullbackCone i₂ f₂) →
                  (hi₂ : i₂ = t₁.snd) → (t₁.pasteVert t₂ hi₂).flip ≅ t₁.flip.pasteHoriz t₂.flip hi₂

Pasting two pullback cones vertically is isomorphic to the pullback cone obtained by flipping them, pasting horizontally, and then flipping the result again.

def CategoryTheory.Limits.PushoutCocone.pasteHorizFlip E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X₁ X₂ X₃ Y₁ : C} →
      {f₁ : X₁ ⟶ X₂} →
        {f₂ : X₂ ⟶ X₃} →
          {i₁ : X₁ ⟶ Y₁} →
            (t₁ : CategoryTheory.Limits.PushoutCocone i₁ f₁) →
              {i₂ : X₂ ⟶ t₁.pt} →
                (t₂ : CategoryTheory.Limits.PushoutCocone i₂ f₂) →
                  (hi₂ : i₂ = t₁.inr) → (t₁.pasteHoriz t₂ hi₂).flip ≅ t₁.flip.pasteVert t₂.flip hi₂

Pasting two pushout cocones horizontally is isomorphic to the pushout cocone obtained by flipping them, pasting vertically, and then flipping the result again.

def CategoryTheory.Limits.PullbackCone.pasteHorizFlip E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X₃ Y₁ Y₂ Y₃ : C} →
      {g₁ : Y₁ ⟶ Y₂} →
        {g₂ : Y₂ ⟶ Y₃} →
          {i₃ : X₃ ⟶ Y₃} →
            (t₂ : CategoryTheory.Limits.PullbackCone g₂ i₃) →
              {i₂ : t₂.pt ⟶ Y₂} →
                (t₁ : CategoryTheory.Limits.PullbackCone g₁ i₂) →
                  (hi₂ : i₂ = t₂.fst) → (t₂.pasteHoriz t₁ hi₂).flip ≅ t₂.flip.pasteVert t₁.flip hi₂

Pasting two pullback cones horizontally is isomorphic to the pullback cone obtained by flipping them, pasting vertically, and then flipping the result again.

def CategoryTheory.Limits.PushoutCocone.pasteVertFlip E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X₃ Y₁ Y₂ Y₃ : C} →
      {g₁ : Y₂ ⟶ Y₁} →
        {g₂ : Y₃ ⟶ Y₂} →
          {i₃ : Y₃ ⟶ X₃} →
            (t₂ : CategoryTheory.Limits.PushoutCocone g₂ i₃) →
              {i₂ : Y₂ ⟶ t₂.pt} →
                (t₁ : CategoryTheory.Limits.PushoutCocone g₁ i₂) →
                  (hi₂ : i₂ = t₂.inl) → (t₂.pasteVert t₁ hi₂).flip ≅ t₂.flip.pasteHoriz t₁.flip hi₂

Pasting two pushout cocones vertically is isomorphic to the pushout cocone obtained by flipping them, pasting horizontally, and then flipping the result again.

def CategoryTheory.Limits.pasteVertIsPullback E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X₁ X₂ X₃ Y₁ : C} →
      {f₁ : X₂ ⟶ X₁} →
        {f₂ : X₃ ⟶ X₂} →
          {i₁ : Y₁ ⟶ X₁} →
            {t₁ : CategoryTheory.Limits.PullbackCone i₁ f₁} →
              {i₂ : t₁.pt ⟶ X₂} →
                {t₂ : CategoryTheory.Limits.PullbackCone i₂ f₂} →
                  (hi₂ : i₂ = t₁.snd) →
                    CategoryTheory.Limits.IsLimit t₁ →
                      CategoryTheory.Limits.IsLimit t₂ → CategoryTheory.Limits.IsLimit (t₁.pasteVert t₂ hi₂)

Given

Y₃ - i₃ -> X₃
|          |
g₂         f₂
∨          ∨
Y₂ - i₂ -> X₂
|          |
g₁         f₁
∨          ∨
Y₁ - i₁ -> X₁

The big square is a pullback if both the small squares are.

def CategoryTheory.Limits.pasteHorizIsPushout E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X₁ X₂ X₃ Y₁ : C} →
      {f₁ : X₁ ⟶ X₂} →
        {f₂ : X₂ ⟶ X₃} →
          {i₁ : X₁ ⟶ Y₁} →
            {t₁ : CategoryTheory.Limits.PushoutCocone i₁ f₁} →
              {i₂ : X₂ ⟶ t₁.pt} →
                {t₂ : CategoryTheory.Limits.PushoutCocone i₂ f₂} →
                  (hi₂ : i₂ = t₁.inr) →
                    CategoryTheory.Limits.IsColimit t₁ →
                      CategoryTheory.Limits.IsColimit t₂ → CategoryTheory.Limits.IsColimit (t₁.pasteHoriz t₂ hi₂)

Given

X₁ - f₁ -> X₂ - f₂ -> X₃
|          |          |
i₁         i₂         i₃
∨          ∨          ∨
Y₁ - g₁ -> Y₂ - g₂ -> Y₃

Then the big square is a pushout if both the small squares are.

def CategoryTheory.Limits.topSquareIsPullback E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X₁ X₂ X₃ Y₁ : C} →
      {f₁ : X₂ ⟶ X₁} →
        {f₂ : X₃ ⟶ X₂} →
          {i₁ : Y₁ ⟶ X₁} →
            {t₁ : CategoryTheory.Limits.PullbackCone i₁ f₁} →
              {i₂ : t₁.pt ⟶ X₂} →
                (t₂ : CategoryTheory.Limits.PullbackCone i₂ f₂) →
                  (hi₂ : i₂ = t₁.snd) →
                    CategoryTheory.Limits.IsLimit t₁ →
                      CategoryTheory.Limits.IsLimit (t₁.pasteVert t₂ hi₂) → CategoryTheory.Limits.IsLimit t₂

Given

Y₃ - i₃ -> X₃
|          |
g₂         f₂
∨          ∨
Y₂ - i₂ -> X₂
|          |
g₁         f₁
∨          ∨
Y₁ - i₁ -> X₁

The top square is a pullback if the bottom square and the big square are.

def CategoryTheory.Limits.rightSquareIsPushout E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X₁ X₂ X₃ Y₁ : C} →
      {f₁ : X₁ ⟶ X₂} →
        {f₂ : X₂ ⟶ X₃} →
          {i₁ : X₁ ⟶ Y₁} →
            {t₁ : CategoryTheory.Limits.PushoutCocone i₁ f₁} →
              {i₂ : X₂ ⟶ t₁.pt} →
                (t₂ : CategoryTheory.Limits.PushoutCocone i₂ f₂) →
                  (hi₂ : i₂ = t₁.inr) →
                    CategoryTheory.Limits.IsColimit t₁ →
                      CategoryTheory.Limits.IsColimit (t₁.pasteHoriz t₂ hi₂) → CategoryTheory.Limits.IsColimit t₂

Given

X₁ - f₁ -> X₂ - f₂ -> X₃ | | | i₁ i₂ i₃ ∨ ∨ ∨ Y₁ - g₁ -> Y₂ - g₂ -> Y₃

Then the right square is a pushout if the left square and the big square are.

def CategoryTheory.Limits.pasteVertIsPullbackEquiv E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X₁ X₂ X₃ Y₁ : C} →
      {f₁ : X₂ ⟶ X₁} →
        {f₂ : X₃ ⟶ X₂} →
          {i₁ : Y₁ ⟶ X₁} →
            {t₁ : CategoryTheory.Limits.PullbackCone i₁ f₁} →
              {i₂ : t₁.pt ⟶ X₂} →
                (t₂ : CategoryTheory.Limits.PullbackCone i₂ f₂) →
                  (hi₂ : i₂ = t₁.snd) →
                    CategoryTheory.Limits.IsLimit t₁ →
                      CategoryTheory.Limits.IsLimit (t₁.pasteVert t₂ hi₂) ≃ CategoryTheory.Limits.IsLimit t₂

Given that the bottom square is a pullback, the pasted square is a pullback iff the top square is.

def CategoryTheory.Limits.pasteHorizIsPushoutEquiv E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X₁ X₂ X₃ Y₁ : C} →
      {f₁ : X₁ ⟶ X₂} →
        {f₂ : X₂ ⟶ X₃} →
          {i₁ : X₁ ⟶ Y₁} →
            {t₁ : CategoryTheory.Limits.PushoutCocone i₁ f₁} →
              {i₂ : X₂ ⟶ t₁.pt} →
                (t₂ : CategoryTheory.Limits.PushoutCocone i₂ f₂) →
                  (hi₂ : i₂ = t₁.inr) →
                    CategoryTheory.Limits.IsColimit t₁ →
                      CategoryTheory.Limits.IsColimit (t₁.pasteHoriz t₂ hi₂) ≃ CategoryTheory.Limits.IsColimit t₂

Given that the left square is a pushout, the pasted square is a pushout iff the right square is.

instance CategoryTheory.Limits.instHasPullbackComp E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : X ⟶ Z) (g : Y ⟶ Z) (f' : W ⟶ X)
  [inst_1 : CategoryTheory.Limits.HasPullback f g]
  [CategoryTheory.Limits.HasPullback f' (CategoryTheory.Limits.pullback.fst f g)],
  CategoryTheory.Limits.HasPullback (CategoryTheory.CategoryStruct.comp f' f) g

instance CategoryTheory.Limits.instHasPushoutComp E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : Z ⟶ X) (g : Z ⟶ Y) (f' : X ⟶ W)
  [inst_1 : CategoryTheory.Limits.HasPushout f g]
  [CategoryTheory.Limits.HasPushout f' (CategoryTheory.Limits.pushout.inl f g)],
  CategoryTheory.Limits.HasPushout (CategoryTheory.CategoryStruct.comp f f') g

def CategoryTheory.Limits.pullbackRightPullbackFstIso E3 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {W X Y Z : C} →
      (f : X ⟶ Z) →
        (g : Y ⟶ Z) →
          (f' : W ⟶ X) →
            [inst_1 : CategoryTheory.Limits.HasPullback f g] →
              [inst_2 : CategoryTheory.Limits.HasPullback f' (CategoryTheory.Limits.pullback.fst f g)] →
                CategoryTheory.Limits.pullback f' (CategoryTheory.Limits.pullback.fst f g) ≅
                  CategoryTheory.Limits.pullback (CategoryTheory.CategoryStruct.comp f' f) g

The canonical isomorphism W ×[X] (X ×[Z] Y) ≅ W ×[Z] Y

def CategoryTheory.Limits.pushoutRightPushoutInlIso E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {W X Y Z : C} →
      (f : Z ⟶ X) →
        (g : Z ⟶ Y) →
          (f' : X ⟶ W) →
            [inst_1 : CategoryTheory.Limits.HasPushout f g] →
              [inst_2 : CategoryTheory.Limits.HasPushout f' (CategoryTheory.Limits.pushout.inl f g)] →
                CategoryTheory.Limits.pushout f' (CategoryTheory.Limits.pushout.inl f g) ≅
                  CategoryTheory.Limits.pushout (CategoryTheory.CategoryStruct.comp f f') g

The canonical isomorphism W ⨿[X] (X ⨿[Z] Y) ≅ W ⨿[Z] Y

theorem CategoryTheory.Limits.pullbackRightPullbackFstIso_hom_fst E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : X ⟶ Z) (g : Y ⟶ Z) (f' : W ⟶ X)
  [inst_1 : CategoryTheory.Limits.HasPullback f g]
  [inst_2 : CategoryTheory.Limits.HasPullback f' (CategoryTheory.Limits.pullback.fst f g)],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullbackRightPullbackFstIso f g f').hom
      (CategoryTheory.Limits.pullback.fst (CategoryTheory.CategoryStruct.comp f' f) g) =
    CategoryTheory.Limits.pullback.fst f' (CategoryTheory.Limits.pullback.fst f g)

theorem CategoryTheory.Limits.inl_pushoutRightPushoutInlIso_inv E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : Z ⟶ X) (g : Z ⟶ Y) (f' : X ⟶ W)
  [inst_1 : CategoryTheory.Limits.HasPushout f g]
  [inst_2 : CategoryTheory.Limits.HasPushout f' (CategoryTheory.Limits.pushout.inl f g)],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inl (CategoryTheory.CategoryStruct.comp f f') g)
      (CategoryTheory.Limits.pushoutRightPushoutInlIso f g f').inv =
    CategoryTheory.Limits.pushout.inl f' (CategoryTheory.Limits.pushout.inl f g)

theorem CategoryTheory.Limits.pullbackRightPullbackFstIso_hom_fst_assoc E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : X ⟶ Z) (g : Y ⟶ Z) (f' : W ⟶ X)
  [inst_1 : CategoryTheory.Limits.HasPullback f g]
  [inst_2 : CategoryTheory.Limits.HasPullback f' (CategoryTheory.Limits.pullback.fst f g)] {Z_1 : C} (h : W ⟶ Z_1),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullbackRightPullbackFstIso f g f').hom
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.Limits.pullback.fst (CategoryTheory.CategoryStruct.comp f' f) g) h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullback.fst f' (CategoryTheory.Limits.pullback.fst f g))
      h

theorem CategoryTheory.Limits.inl_pushoutRightPushoutInlIso_inv_assoc E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : Z ⟶ X) (g : Z ⟶ Y) (f' : X ⟶ W)
  [inst_1 : CategoryTheory.Limits.HasPushout f g]
  [inst_2 : CategoryTheory.Limits.HasPushout f' (CategoryTheory.Limits.pushout.inl f g)] {Z_1 : C}
  (h : CategoryTheory.Limits.pushout f' (CategoryTheory.Limits.pushout.inl f g) ⟶ Z_1),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inl (CategoryTheory.CategoryStruct.comp f f') g)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushoutRightPushoutInlIso f g f').inv h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inl f' (CategoryTheory.Limits.pushout.inl f g)) h

theorem CategoryTheory.Limits.pullbackRightPullbackFstIso_hom_snd E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : X ⟶ Z) (g : Y ⟶ Z) (f' : W ⟶ X)
  [inst_1 : CategoryTheory.Limits.HasPullback f g]
  [inst_2 : CategoryTheory.Limits.HasPullback f' (CategoryTheory.Limits.pullback.fst f g)],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullbackRightPullbackFstIso f g f').hom
      (CategoryTheory.Limits.pullback.snd (CategoryTheory.CategoryStruct.comp f' f) g) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullback.snd f' (CategoryTheory.Limits.pullback.fst f g))
      (CategoryTheory.Limits.pullback.snd f g)

theorem CategoryTheory.Limits.inr_pushoutRightPushoutInlIso_inv E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : Z ⟶ X) (g : Z ⟶ Y) (f' : X ⟶ W)
  [inst_1 : CategoryTheory.Limits.HasPushout f g]
  [inst_2 : CategoryTheory.Limits.HasPushout f' (CategoryTheory.Limits.pushout.inl f g)],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inr (CategoryTheory.CategoryStruct.comp f f') g)
      (CategoryTheory.Limits.pushoutRightPushoutInlIso f g f').inv =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inr f g)
      (CategoryTheory.Limits.pushout.inr f' (CategoryTheory.Limits.pushout.inl f g))

theorem CategoryTheory.Limits.inr_pushoutRightPushoutInlIso_inv_assoc E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : Z ⟶ X) (g : Z ⟶ Y) (f' : X ⟶ W)
  [inst_1 : CategoryTheory.Limits.HasPushout f g]
  [inst_2 : CategoryTheory.Limits.HasPushout f' (CategoryTheory.Limits.pushout.inl f g)] {Z_1 : C}
  (h : CategoryTheory.Limits.pushout f' (CategoryTheory.Limits.pushout.inl f g) ⟶ Z_1),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inr (CategoryTheory.CategoryStruct.comp f f') g)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushoutRightPushoutInlIso f g f').inv h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inr f g)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inr f' (CategoryTheory.Limits.pushout.inl f g))
        h)

theorem CategoryTheory.Limits.pullbackRightPullbackFstIso_hom_snd_assoc E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : X ⟶ Z) (g : Y ⟶ Z) (f' : W ⟶ X)
  [inst_1 : CategoryTheory.Limits.HasPullback f g]
  [inst_2 : CategoryTheory.Limits.HasPullback f' (CategoryTheory.Limits.pullback.fst f g)] {Z_1 : C} (h : Y ⟶ Z_1),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullbackRightPullbackFstIso f g f').hom
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.Limits.pullback.snd (CategoryTheory.CategoryStruct.comp f' f) g) h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullback.snd f' (CategoryTheory.Limits.pullback.fst f g))
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullback.snd f g) h)

theorem CategoryTheory.Limits.pullbackRightPullbackFstIso_inv_fst E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : X ⟶ Z) (g : Y ⟶ Z) (f' : W ⟶ X)
  [inst_1 : CategoryTheory.Limits.HasPullback f g]
  [inst_2 : CategoryTheory.Limits.HasPullback f' (CategoryTheory.Limits.pullback.fst f g)],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullbackRightPullbackFstIso f g f').inv
      (CategoryTheory.Limits.pullback.fst f' (CategoryTheory.Limits.pullback.fst f g)) =
    CategoryTheory.Limits.pullback.fst (CategoryTheory.CategoryStruct.comp f' f) g

theorem CategoryTheory.Limits.pullbackRightPullbackFstIso_inv_fst_assoc E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : X ⟶ Z) (g : Y ⟶ Z) (f' : W ⟶ X)
  [inst_1 : CategoryTheory.Limits.HasPullback f g]
  [inst_2 : CategoryTheory.Limits.HasPullback f' (CategoryTheory.Limits.pullback.fst f g)] {Z_1 : C} (h : W ⟶ Z_1),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullbackRightPullbackFstIso f g f').inv
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.Limits.pullback.fst f' (CategoryTheory.Limits.pullback.fst f g)) h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullback.fst (CategoryTheory.CategoryStruct.comp f' f) g)
      h

theorem CategoryTheory.Limits.inl_pushoutRightPushoutInlIso_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : Z ⟶ X) (g : Z ⟶ Y) (f' : X ⟶ W)
  [inst_1 : CategoryTheory.Limits.HasPushout f g]
  [inst_2 : CategoryTheory.Limits.HasPushout f' (CategoryTheory.Limits.pushout.inl f g)],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inl f' (CategoryTheory.Limits.pushout.inl f g))
      (CategoryTheory.Limits.pushoutRightPushoutInlIso f g f').hom =
    CategoryTheory.Limits.pushout.inl (CategoryTheory.CategoryStruct.comp f f') g

theorem CategoryTheory.Limits.inl_pushoutRightPushoutInlIso_hom_assoc E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : Z ⟶ X) (g : Z ⟶ Y) (f' : X ⟶ W)
  [inst_1 : CategoryTheory.Limits.HasPushout f g]
  [inst_2 : CategoryTheory.Limits.HasPushout f' (CategoryTheory.Limits.pushout.inl f g)] {Z_1 : C}
  (h : CategoryTheory.Limits.pushout (CategoryTheory.CategoryStruct.comp f f') g ⟶ Z_1),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inl f' (CategoryTheory.Limits.pushout.inl f g))
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushoutRightPushoutInlIso f g f').hom h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inl (CategoryTheory.CategoryStruct.comp f f') g) h

theorem CategoryTheory.Limits.pullbackRightPullbackFstIso_inv_snd_snd_assoc E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : X ⟶ Z) (g : Y ⟶ Z) (f' : W ⟶ X)
  [inst_1 : CategoryTheory.Limits.HasPullback f g]
  [inst_2 : CategoryTheory.Limits.HasPullback f' (CategoryTheory.Limits.pullback.fst f g)] {Z_1 : C} (h : Y ⟶ Z_1),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullbackRightPullbackFstIso f g f').inv
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.Limits.pullback.snd f' (CategoryTheory.Limits.pullback.fst f g))
        (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullback.snd f g) h)) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullback.snd (CategoryTheory.CategoryStruct.comp f' f) g)
      h

theorem CategoryTheory.Limits.pullbackRightPullbackFstIso_inv_snd_snd E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : X ⟶ Z) (g : Y ⟶ Z) (f' : W ⟶ X)
  [inst_1 : CategoryTheory.Limits.HasPullback f g]
  [inst_2 : CategoryTheory.Limits.HasPullback f' (CategoryTheory.Limits.pullback.fst f g)],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullbackRightPullbackFstIso f g f').inv
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.Limits.pullback.snd f' (CategoryTheory.Limits.pullback.fst f g))
        (CategoryTheory.Limits.pullback.snd f g)) =
    CategoryTheory.Limits.pullback.snd (CategoryTheory.CategoryStruct.comp f' f) g

theorem CategoryTheory.Limits.pullbackRightPullbackFstIso_inv_snd_fst_assoc E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : X ⟶ Z) (g : Y ⟶ Z) (f' : W ⟶ X)
  [inst_1 : CategoryTheory.Limits.HasPullback f g]
  [inst_2 : CategoryTheory.Limits.HasPullback f' (CategoryTheory.Limits.pullback.fst f g)] {Z_1 : C} (h : X ⟶ Z_1),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullbackRightPullbackFstIso f g f').inv
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.Limits.pullback.snd f' (CategoryTheory.Limits.pullback.fst f g))
        (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullback.fst f g) h)) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullback.fst (CategoryTheory.CategoryStruct.comp f' f) g)
      (CategoryTheory.CategoryStruct.comp f' h)

theorem CategoryTheory.Limits.pullbackRightPullbackFstIso_inv_snd_fst E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : X ⟶ Z) (g : Y ⟶ Z) (f' : W ⟶ X)
  [inst_1 : CategoryTheory.Limits.HasPullback f g]
  [inst_2 : CategoryTheory.Limits.HasPullback f' (CategoryTheory.Limits.pullback.fst f g)],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullbackRightPullbackFstIso f g f').inv
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.Limits.pullback.snd f' (CategoryTheory.Limits.pullback.fst f g))
        (CategoryTheory.Limits.pullback.fst f g)) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullback.fst (CategoryTheory.CategoryStruct.comp f' f) g)
      f'

instance CategoryTheory.Limits.instHasPullbackComp_1 E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : X ⟶ Z) (g : Y ⟶ Z) (g' : W ⟶ Y)
  [inst_1 : CategoryTheory.Limits.HasPullback f g]
  [CategoryTheory.Limits.HasPullback (CategoryTheory.Limits.pullback.snd f g) g'],
  CategoryTheory.Limits.HasPullback f (CategoryTheory.CategoryStruct.comp g' g)

instance CategoryTheory.Limits.instHasPushoutComp_1 E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : Z ⟶ X) (g : Z ⟶ Y) (g' : Y ⟶ W)
  [inst_1 : CategoryTheory.Limits.HasPushout f g]
  [CategoryTheory.Limits.HasPushout (CategoryTheory.Limits.pushout.inr f g) g'],
  CategoryTheory.Limits.HasPushout f (CategoryTheory.CategoryStruct.comp g g')

def CategoryTheory.Limits.pullbackLeftPullbackSndIso E3 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {W X Y Z : C} →
      (f : X ⟶ Z) →
        (g : Y ⟶ Z) →
          (g' : W ⟶ Y) →
            [inst_1 : CategoryTheory.Limits.HasPullback f g] →
              [inst_2 : CategoryTheory.Limits.HasPullback (CategoryTheory.Limits.pullback.snd f g) g'] →
                CategoryTheory.Limits.pullback (CategoryTheory.Limits.pullback.snd f g) g' ≅
                  CategoryTheory.Limits.pullback f (CategoryTheory.CategoryStruct.comp g' g)

The canonical isomorphism (X ×[Z] Y) ×[Y] W ≅ X ×[Z] W

def CategoryTheory.Limits.pushoutLeftPushoutInrIso E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {W X Y Z : C} →
      (f : Z ⟶ X) →
        (g : Z ⟶ Y) →
          (g' : Y ⟶ W) →
            [inst_1 : CategoryTheory.Limits.HasPushout f g] →
              [inst_2 : CategoryTheory.Limits.HasPushout (CategoryTheory.Limits.pushout.inr f g) g'] →
                CategoryTheory.Limits.pushout (CategoryTheory.Limits.pushout.inr f g) g' ≅
                  CategoryTheory.Limits.pushout f (CategoryTheory.CategoryStruct.comp g g')

The canonical isomorphism (X ⨿[Z] Y) ⨿[Y] W ≅ X ⨿[Z] W

theorem CategoryTheory.Limits.inl_pushoutLeftPushoutInrIso_inv E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : Z ⟶ X) (g : Z ⟶ Y) (g' : Y ⟶ W)
  [inst_1 : CategoryTheory.Limits.HasPushout f g]
  [inst_2 : CategoryTheory.Limits.HasPushout (CategoryTheory.Limits.pushout.inr f g) g'],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inl f (CategoryTheory.CategoryStruct.comp g g'))
      (CategoryTheory.Limits.pushoutLeftPushoutInrIso f g g').inv =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inl f g)
      (CategoryTheory.Limits.pushout.inl (CategoryTheory.Limits.pushout.inr f g) g')

theorem CategoryTheory.Limits.inl_pushoutLeftPushoutInrIso_inv_assoc E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : Z ⟶ X) (g : Z ⟶ Y) (g' : Y ⟶ W)
  [inst_1 : CategoryTheory.Limits.HasPushout f g]
  [inst_2 : CategoryTheory.Limits.HasPushout (CategoryTheory.Limits.pushout.inr f g) g'] {Z_1 : C}
  (h : CategoryTheory.Limits.pushout (CategoryTheory.Limits.pushout.inr f g) g' ⟶ Z_1),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inl f (CategoryTheory.CategoryStruct.comp g g'))
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushoutLeftPushoutInrIso f g g').inv h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inl f g)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inl (CategoryTheory.Limits.pushout.inr f g) g')
        h)

theorem CategoryTheory.Limits.pullbackLeftPullbackSndIso_hom_fst_assoc E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : X ⟶ Z) (g : Y ⟶ Z) (g' : W ⟶ Y)
  [inst_1 : CategoryTheory.Limits.HasPullback f g]
  [inst_2 : CategoryTheory.Limits.HasPullback (CategoryTheory.Limits.pullback.snd f g) g'] {Z_1 : C} (h : X ⟶ Z_1),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullbackLeftPullbackSndIso f g g').hom
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.Limits.pullback.fst f (CategoryTheory.CategoryStruct.comp g' g)) h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullback.fst (CategoryTheory.Limits.pullback.snd f g) g')
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullback.fst f g) h)

theorem CategoryTheory.Limits.pullbackLeftPullbackSndIso_hom_fst E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : X ⟶ Z) (g : Y ⟶ Z) (g' : W ⟶ Y)
  [inst_1 : CategoryTheory.Limits.HasPullback f g]
  [inst_2 : CategoryTheory.Limits.HasPullback (CategoryTheory.Limits.pullback.snd f g) g'],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullbackLeftPullbackSndIso f g g').hom
      (CategoryTheory.Limits.pullback.fst f (CategoryTheory.CategoryStruct.comp g' g)) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullback.fst (CategoryTheory.Limits.pullback.snd f g) g')
      (CategoryTheory.Limits.pullback.fst f g)

theorem CategoryTheory.Limits.inr_pushoutLeftPushoutInrIso_inv E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : Z ⟶ X) (g : Z ⟶ Y) (g' : Y ⟶ W)
  [inst_1 : CategoryTheory.Limits.HasPushout f g]
  [inst_2 : CategoryTheory.Limits.HasPushout (CategoryTheory.Limits.pushout.inr f g) g'],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inr f (CategoryTheory.CategoryStruct.comp g g'))
      (CategoryTheory.Limits.pushoutLeftPushoutInrIso f g g').inv =
    CategoryTheory.Limits.pushout.inr (CategoryTheory.Limits.pushout.inr f g) g'

theorem CategoryTheory.Limits.inr_pushoutLeftPushoutInrIso_inv_assoc E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : Z ⟶ X) (g : Z ⟶ Y) (g' : Y ⟶ W)
  [inst_1 : CategoryTheory.Limits.HasPushout f g]
  [inst_2 : CategoryTheory.Limits.HasPushout (CategoryTheory.Limits.pushout.inr f g) g'] {Z_1 : C}
  (h : CategoryTheory.Limits.pushout (CategoryTheory.Limits.pushout.inr f g) g' ⟶ Z_1),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inr f (CategoryTheory.CategoryStruct.comp g g'))
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushoutLeftPushoutInrIso f g g').inv h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inr (CategoryTheory.Limits.pushout.inr f g) g') h

theorem CategoryTheory.Limits.pullbackLeftPullbackSndIso_hom_snd_assoc E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : X ⟶ Z) (g : Y ⟶ Z) (g' : W ⟶ Y)
  [inst_1 : CategoryTheory.Limits.HasPullback f g]
  [inst_2 : CategoryTheory.Limits.HasPullback (CategoryTheory.Limits.pullback.snd f g) g'] {Z_1 : C} (h : W ⟶ Z_1),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullbackLeftPullbackSndIso f g g').hom
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.Limits.pullback.snd f (CategoryTheory.CategoryStruct.comp g' g)) h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullback.snd (CategoryTheory.Limits.pullback.snd f g) g')
      h

theorem CategoryTheory.Limits.pullbackLeftPullbackSndIso_hom_snd E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : X ⟶ Z) (g : Y ⟶ Z) (g' : W ⟶ Y)
  [inst_1 : CategoryTheory.Limits.HasPullback f g]
  [inst_2 : CategoryTheory.Limits.HasPullback (CategoryTheory.Limits.pullback.snd f g) g'],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullbackLeftPullbackSndIso f g g').hom
      (CategoryTheory.Limits.pullback.snd f (CategoryTheory.CategoryStruct.comp g' g)) =
    CategoryTheory.Limits.pullback.snd (CategoryTheory.Limits.pullback.snd f g) g'

theorem CategoryTheory.Limits.pullbackLeftPullbackSndIso_inv_fst E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : X ⟶ Z) (g : Y ⟶ Z) (g' : W ⟶ Y)
  [inst_1 : CategoryTheory.Limits.HasPullback f g]
  [inst_2 : CategoryTheory.Limits.HasPullback (CategoryTheory.Limits.pullback.snd f g) g'],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullbackLeftPullbackSndIso f g g').inv
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.Limits.pullback.fst (CategoryTheory.Limits.pullback.snd f g) g')
        (CategoryTheory.Limits.pullback.fst f g)) =
    CategoryTheory.Limits.pullback.fst f (CategoryTheory.CategoryStruct.comp g' g)

theorem CategoryTheory.Limits.pullbackLeftPullbackSndIso_inv_fst_assoc E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : X ⟶ Z) (g : Y ⟶ Z) (g' : W ⟶ Y)
  [inst_1 : CategoryTheory.Limits.HasPullback f g]
  [inst_2 : CategoryTheory.Limits.HasPullback (CategoryTheory.Limits.pullback.snd f g) g'] {Z_1 : C} (h : X ⟶ Z_1),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullbackLeftPullbackSndIso f g g').inv
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.Limits.pullback.fst (CategoryTheory.Limits.pullback.snd f g) g')
        (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullback.fst f g) h)) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullback.fst f (CategoryTheory.CategoryStruct.comp g' g))
      h

theorem CategoryTheory.Limits.pullbackLeftPullbackSndIso_inv_snd_snd E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : X ⟶ Z) (g : Y ⟶ Z) (g' : W ⟶ Y)
  [inst_1 : CategoryTheory.Limits.HasPullback f g]
  [inst_2 : CategoryTheory.Limits.HasPullback (CategoryTheory.Limits.pullback.snd f g) g'],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullbackLeftPullbackSndIso f g g').inv
      (CategoryTheory.Limits.pullback.snd (CategoryTheory.Limits.pullback.snd f g) g') =
    CategoryTheory.Limits.pullback.snd f (CategoryTheory.CategoryStruct.comp g' g)

theorem CategoryTheory.Limits.inr_pushoutLeftPushoutInrIso_hom_assoc E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : Z ⟶ X) (g : Z ⟶ Y) (g' : Y ⟶ W)
  [inst_1 : CategoryTheory.Limits.HasPushout f g]
  [inst_2 : CategoryTheory.Limits.HasPushout (CategoryTheory.Limits.pushout.inr f g) g'] {Z_1 : C}
  (h : CategoryTheory.Limits.pushout f (CategoryTheory.CategoryStruct.comp g g') ⟶ Z_1),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inr (CategoryTheory.Limits.pushout.inr f g) g')
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushoutLeftPushoutInrIso f g g').hom h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inr f (CategoryTheory.CategoryStruct.comp g g')) h

theorem CategoryTheory.Limits.pullbackLeftPullbackSndIso_inv_snd_snd_assoc E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : X ⟶ Z) (g : Y ⟶ Z) (g' : W ⟶ Y)
  [inst_1 : CategoryTheory.Limits.HasPullback f g]
  [inst_2 : CategoryTheory.Limits.HasPullback (CategoryTheory.Limits.pullback.snd f g) g'] {Z_1 : C} (h : W ⟶ Z_1),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullbackLeftPullbackSndIso f g g').inv
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.Limits.pullback.snd (CategoryTheory.Limits.pullback.snd f g) g') h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullback.snd f (CategoryTheory.CategoryStruct.comp g' g))
      h

theorem CategoryTheory.Limits.inr_pushoutLeftPushoutInrIso_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : Z ⟶ X) (g : Z ⟶ Y) (g' : Y ⟶ W)
  [inst_1 : CategoryTheory.Limits.HasPushout f g]
  [inst_2 : CategoryTheory.Limits.HasPushout (CategoryTheory.Limits.pushout.inr f g) g'],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inr (CategoryTheory.Limits.pushout.inr f g) g')
      (CategoryTheory.Limits.pushoutLeftPushoutInrIso f g g').hom =
    CategoryTheory.Limits.pushout.inr f (CategoryTheory.CategoryStruct.comp g g')

theorem CategoryTheory.Limits.pullbackLeftPullbackSndIso_inv_fst_snd_assoc E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : X ⟶ Z) (g : Y ⟶ Z) (g' : W ⟶ Y)
  [inst_1 : CategoryTheory.Limits.HasPullback f g]
  [inst_2 : CategoryTheory.Limits.HasPullback (CategoryTheory.Limits.pullback.snd f g) g'] {Z_1 : C} (h : Y ⟶ Z_1),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullbackLeftPullbackSndIso f g g').inv
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.Limits.pullback.fst (CategoryTheory.Limits.pullback.snd f g) g')
        (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullback.snd f g) h)) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullback.snd f (CategoryTheory.CategoryStruct.comp g' g))
      (CategoryTheory.CategoryStruct.comp g' h)

theorem CategoryTheory.Limits.pullbackLeftPullbackSndIso_inv_fst_snd E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : X ⟶ Z) (g : Y ⟶ Z) (g' : W ⟶ Y)
  [inst_1 : CategoryTheory.Limits.HasPullback f g]
  [inst_2 : CategoryTheory.Limits.HasPullback (CategoryTheory.Limits.pullback.snd f g) g'],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullbackLeftPullbackSndIso f g g').inv
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.Limits.pullback.fst (CategoryTheory.Limits.pullback.snd f g) g')
        (CategoryTheory.Limits.pullback.snd f g)) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullback.snd f (CategoryTheory.CategoryStruct.comp g' g))
      g'

theorem CategoryTheory.Limits.inl_inl_pushoutLeftPushoutInrIso_hom_assoc E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : X ⟶ Y) (g : X ⟶ Z) (g' : Z ⟶ W)
  [inst_1 : CategoryTheory.Limits.HasPushout f g]
  [inst_2 : CategoryTheory.Limits.HasPushout (CategoryTheory.Limits.pushout.inr f g) g'] {Z_1 : C}
  (h : CategoryTheory.Limits.pushout f (CategoryTheory.CategoryStruct.comp g g') ⟶ Z_1),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inl f g)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inl (CategoryTheory.Limits.pushout.inr f g) g')
        (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushoutLeftPushoutInrIso f g g').hom h)) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inl f (CategoryTheory.CategoryStruct.comp g g')) h

theorem CategoryTheory.Limits.inl_inl_pushoutLeftPushoutInrIso_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : X ⟶ Y) (g : X ⟶ Z) (g' : Z ⟶ W)
  [inst_1 : CategoryTheory.Limits.HasPushout f g]
  [inst_2 : CategoryTheory.Limits.HasPushout (CategoryTheory.Limits.pushout.inr f g) g'],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inl f g)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inl (CategoryTheory.Limits.pushout.inr f g) g')
        (CategoryTheory.Limits.pushoutLeftPushoutInrIso f g g').hom) =
    CategoryTheory.Limits.pushout.inl f (CategoryTheory.CategoryStruct.comp g g')

theorem CategoryTheory.Limits.inr_inl_pushoutLeftPushoutInrIso_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : X ⟶ Y) (g : X ⟶ Z) (g' : Z ⟶ W)
  [inst_1 : CategoryTheory.Limits.HasPushout f g]
  [inst_2 : CategoryTheory.Limits.HasPushout (CategoryTheory.Limits.pushout.inr f g) g'],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inr f g)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inl (CategoryTheory.Limits.pushout.inr f g) g')
        (CategoryTheory.Limits.pushoutLeftPushoutInrIso f g g').hom) =
    CategoryTheory.CategoryStruct.comp g'
      (CategoryTheory.Limits.pushout.inr f (CategoryTheory.CategoryStruct.comp g g'))

theorem CategoryTheory.Limits.inr_inl_pushoutLeftPushoutInrIso_hom_assoc E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : X ⟶ Y) (g : X ⟶ Z) (g' : Z ⟶ W)
  [inst_1 : CategoryTheory.Limits.HasPushout f g]
  [inst_2 : CategoryTheory.Limits.HasPushout (CategoryTheory.Limits.pushout.inr f g) g'] {Z_1 : C}
  (h : CategoryTheory.Limits.pushout f (CategoryTheory.CategoryStruct.comp g g') ⟶ Z_1),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inr f g)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inl (CategoryTheory.Limits.pushout.inr f g) g')
        (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushoutLeftPushoutInrIso f g g').hom h)) =
    CategoryTheory.CategoryStruct.comp g'
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.Limits.pushout.inr f (CategoryTheory.CategoryStruct.comp g g')) h)

theorem CategoryTheory.Limits.inr_inr_pushoutRightPushoutInlIso_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : X ⟶ Y) (g : X ⟶ Z) (f' : Y ⟶ W)
  [inst_1 : CategoryTheory.Limits.HasPushout f g]
  [inst_2 : CategoryTheory.Limits.HasPushout f' (CategoryTheory.Limits.pushout.inl f g)],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inr f g)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inr f' (CategoryTheory.Limits.pushout.inl f g))
        (CategoryTheory.Limits.pushoutRightPushoutInlIso f g f').hom) =
    CategoryTheory.Limits.pushout.inr (CategoryTheory.CategoryStruct.comp f f') g

theorem CategoryTheory.Limits.inr_inr_pushoutRightPushoutInlIso_hom_assoc E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : X ⟶ Y) (g : X ⟶ Z) (f' : Y ⟶ W)
  [inst_1 : CategoryTheory.Limits.HasPushout f g]
  [inst_2 : CategoryTheory.Limits.HasPushout f' (CategoryTheory.Limits.pushout.inl f g)] {Z_1 : C}
  (h : CategoryTheory.Limits.pushout (CategoryTheory.CategoryStruct.comp f f') g ⟶ Z_1),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inr f g)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inr f' (CategoryTheory.Limits.pushout.inl f g))
        (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushoutRightPushoutInlIso f g f').hom h)) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inr (CategoryTheory.CategoryStruct.comp f f') g) h

theorem CategoryTheory.Limits.inr_inl_pushoutRightPushoutInlIso_hom_assoc E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : X ⟶ Y) (g : X ⟶ Z) (f' : Y ⟶ W)
  [inst_1 : CategoryTheory.Limits.HasPushout f g]
  [inst_2 : CategoryTheory.Limits.HasPushout f' (CategoryTheory.Limits.pushout.inl f g)] {Z_1 : C}
  (h : CategoryTheory.Limits.pushout (CategoryTheory.CategoryStruct.comp f f') g ⟶ Z_1),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inl f g)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inr f' (CategoryTheory.Limits.pushout.inl f g))
        (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushoutRightPushoutInlIso f g f').hom h)) =
    CategoryTheory.CategoryStruct.comp f'
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.Limits.pushout.inl (CategoryTheory.CategoryStruct.comp f f') g) h)

theorem CategoryTheory.Limits.inr_inl_pushoutRightPushoutInlIso_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {W X Y Z : C} (f : X ⟶ Y) (g : X ⟶ Z) (f' : Y ⟶ W)
  [inst_1 : CategoryTheory.Limits.HasPushout f g]
  [inst_2 : CategoryTheory.Limits.HasPushout f' (CategoryTheory.Limits.pushout.inl f g)],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inl f g)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pushout.inr f' (CategoryTheory.Limits.pushout.inl f g))
        (CategoryTheory.Limits.pushoutRightPushoutInlIso f g f').hom) =
    CategoryTheory.CategoryStruct.comp f'
      (CategoryTheory.Limits.pushout.inl (CategoryTheory.CategoryStruct.comp f f') g)