Pullback and pushout squares, and bicartesian squares #
We provide another API for pullbacks and pushouts.
IsPullback fst snd f g
is the proposition that
P --fst--> X
| |
snd f
| |
v v
Y ---g---> Z
is a pullback square.
(And similarly for IsPushout
.)
We provide the glue to go back and forth to the usual IsLimit
API for pullbacks, and prove
IsPullback (pullback.fst : pullback f g ⟶ X) (pullback.snd : pullback f g ⟶ Y) f g
for the usual pullback f g
provided by the HasLimit
API.
We don't attempt to restate everything we know about pullbacks in this language, but do restate the pasting lemmas.
We define bicartesian squares, and show that the pullback and pushout squares for a biproduct are bicartesian.
The (not necessarily limiting) PullbackCone h i
implicit in the statement
that we have CommSq f g h i
.
Equations
Instances For
The (not necessarily limiting) PushoutCocone f g
implicit in the statement
that we have CommSq f g h i
.
Equations
Instances For
The pushout cocone in the opposite category associated to the cone of a commutative square identifies to the cocone of the flipped commutative square in the opposite category
Equations
- One or more equations did not get rendered due to their size.
Instances For
The pullback cone in the opposite category associated to the cocone of a commutative square identifies to the cone of the flipped commutative square in the opposite category
Equations
- One or more equations did not get rendered due to their size.
Instances For
The pushout cocone obtained from the pullback cone associated to a commutative square in the opposite category identifies to the cocone associated to the flipped square.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The pullback cone obtained from the pushout cone associated to a commutative square in the opposite category identifies to the cone associated to the flipped square.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The proposition that a square
P --fst--> X
| |
snd f
| |
v v
Y ---g---> Z
is a pullback square. (Also known as a fibered product or cartesian square.)
- w : CategoryTheory.CategoryStruct.comp fst f = CategoryTheory.CategoryStruct.comp snd g
- isLimit' : Nonempty (CategoryTheory.Limits.IsLimit (CategoryTheory.Limits.PullbackCone.mk fst snd (_ : CategoryTheory.CategoryStruct.comp fst f = CategoryTheory.CategoryStruct.comp snd g)))
the pullback cone is a limit
Instances For
The proposition that a square
Z ---f---> X
| |
g inl
| |
v v
Y --inr--> P
is a pushout square. (Also known as a fiber coproduct or cocartesian square.)
- w : CategoryTheory.CategoryStruct.comp f inl = CategoryTheory.CategoryStruct.comp g inr
- isColimit' : Nonempty (CategoryTheory.Limits.IsColimit (CategoryTheory.Limits.PushoutCocone.mk inl inr (_ : CategoryTheory.CategoryStruct.comp f inl = CategoryTheory.CategoryStruct.comp g inr)))
the pushout cocone is a colimit
Instances For
A bicartesian square is a commutative square
W ---f---> X
| |
g h
| |
v v
Y ---i---> Z
that is both a pullback square and a pushout square.
- isLimit' : Nonempty (CategoryTheory.Limits.IsLimit (CategoryTheory.Limits.PullbackCone.mk f g (_ : CategoryTheory.CategoryStruct.comp f h = CategoryTheory.CategoryStruct.comp g i)))
- isColimit' : Nonempty (CategoryTheory.Limits.IsColimit (CategoryTheory.Limits.PushoutCocone.mk h i (_ : CategoryTheory.CategoryStruct.comp f h = CategoryTheory.CategoryStruct.comp g i)))
the pushout cocone is a colimit
Instances For
We begin by providing some glue between IsPullback
and the IsLimit
and HasLimit
APIs.
(And similarly for IsPushout
.)
The (limiting) PullbackCone f g
implicit in the statement
that we have an IsPullback fst snd f g
.
Equations
- CategoryTheory.IsPullback.cone h = CategoryTheory.CommSq.cone (_ : CategoryTheory.CommSq fst snd f g)
Instances For
The cone obtained from IsPullback fst snd f g
is a limit cone.
Equations
- One or more equations did not get rendered due to their size.
Instances For
If c
is a limiting pullback cone, then we have an IsPullback c.fst c.snd f g
.
A variant of of_isLimit
that is more useful with apply
.
The pullback provided by HasPullback f g
fits into an IsPullback
.
If c
is a limiting binary product cone, and we have a terminal object,
then we have IsPullback c.fst c.snd 0 0
(where each 0
is the unique morphism to the terminal object).
A variant of of_is_product
that is more useful with apply
.
Any object at the top left of a pullback square is
isomorphic to the pullback provided by the HasLimit
API.
Equations
- CategoryTheory.IsPullback.isoPullback h = (CategoryTheory.Limits.limit.isoLimitCone { cone := CategoryTheory.IsPullback.cone h, isLimit := CategoryTheory.IsPullback.isLimit h }).symm
Instances For
The (colimiting) PushoutCocone f g
implicit in the statement
that we have an IsPushout f g inl inr
.
Equations
- CategoryTheory.IsPushout.cocone h = CategoryTheory.CommSq.cocone (_ : CategoryTheory.CommSq f g inl inr)
Instances For
The cocone obtained from IsPushout f g inl inr
is a colimit cocone.
Equations
- One or more equations did not get rendered due to their size.
Instances For
If c
is a colimiting pushout cocone, then we have an IsPushout f g c.inl c.inr
.
A variant of of_isColimit
that is more useful with apply
.
The pushout provided by HasPushout f g
fits into an IsPushout
.
If c
is a colimiting binary coproduct cocone, and we have an initial object,
then we have IsPushout 0 0 c.inl c.inr
(where each 0
is the unique morphism from the initial object).
A variant of of_is_coproduct
that is more useful with apply
.
Any object at the top left of a pullback square is
isomorphic to the pullback provided by the HasLimit
API.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The square with 0 : 0 ⟶ 0
on the left and 𝟙 X
on the right is a pullback square.
The square with 0 : 0 ⟶ 0
on the top and 𝟙 X
on the bottom is a pullback square.
The square with 0 : 0 ⟶ 0
on the right and 𝟙 X
on the left is a pullback square.
The square with 0 : 0 ⟶ 0
on the bottom and 𝟙 X
on the top is a pullback square.
Paste two pullback squares "vertically" to obtain another pullback square.
Paste two pullback squares "horizontally" to obtain another pullback square.
Given a pullback square assembled from a commuting square on the top and a pullback square on the bottom, the top square is a pullback square.
Given a pullback square assembled from a commuting square on the left and a pullback square on the right, the left square is a pullback square.
The square
X --inl--> X ⊞ Y
| |
0 snd
| |
v v
0 ---0-----> Y
is a pullback square.
The square
Y --inr--> X ⊞ Y
| |
0 fst
| |
v v
0 ---0-----> X
is a pullback square.
Equations
- One or more equations did not get rendered due to their size.
The pullback of biprod.inl
and biprod.inr
is the zero object.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The square with 0 : 0 ⟶ 0
on the right and 𝟙 X
on the left is a pushout square.
The square with 0 : 0 ⟶ 0
on the bottom and 𝟙 X
on the top is a pushout square.
The square with 0 : 0 ⟶ 0
on the right left 𝟙 X
on the right is a pushout square.
The square with 0 : 0 ⟶ 0
on the top and 𝟙 X
on the bottom is a pushout square.
Paste two pushout squares "vertically" to obtain another pushout square.
Paste two pushout squares "horizontally" to obtain another pushout square.
Given a pushout square assembled from a pushout square on the top and a commuting square on the bottom, the bottom square is a pushout square.
Given a pushout square assembled from a pushout square on the left and a commuting square on the right, the right square is a pushout square.
The square
X --inl--> X ⊞ Y
| |
0 snd
| |
v v
0 ---0-----> Y
is a pushout square.
The square
Y --inr--> X ⊞ Y
| |
0 fst
| |
v v
0 ---0-----> X
is a pushout square.
Equations
- One or more equations did not get rendered due to their size.
The pushout of biprod.fst
and biprod.snd
is the zero object.
Equations
- One or more equations did not get rendered due to their size.
Instances For
If f : X ⟶ Y
, g g' : Y ⟶ Z
forms a pullback square, then f
is the equalizer of
g
and g'
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
If f f' : X ⟶ Y
, g : Y ⟶ Z
forms a pushout square, then g
is the coequalizer of
f
and f'
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
X ⊞ Y --fst--> X
| |
snd 0
| |
v v
Y -----0---> 0
is a bicartesian square.
0 -----0---> X
| |
0 inl
| |
v v
Y --inr--> X ⊞ Y
is a bicartesian square.
X ⊞ Y --fst--> X
| |
snd 0
| |
v v
Y -----0---> 0
is a bicartesian square.
0 -----0---> X
| |
0 inl
| |
v v
Y --inr--> X ⊞ Y
is a bicartesian square.
Alias of CategoryTheory.Functor.map_isPullback
.
Alias of CategoryTheory.Functor.map_isPushout
.