Commutative squares #
This file provide an API for commutative squares in categories.
If top
, left
, right
and bottom
are four morphisms which are the edges
of a square, CommSq top left right bottom
is the predicate that this
square is commutative.
The structure CommSq
is extended in CategoryTheory/Shapes/Limits/CommSq.lean
as IsPullback
and IsPushout
in order to define pullback and pushout squares.
Future work #
Refactor LiftStruct
from Arrow.lean
and lifting properties using CommSq.lean
.
The square commutes.
The proposition that a square
W ---f---> X
| |
g h
| |
v v
Y ---i---> Z
is a commuting square.
Instances For
The commutative square in the opposite category associated to a commutative square.
The commutative square associated to a commutative square in the opposite category.
Alias of CategoryTheory.Functor.map_commSq
.
- l : B ⟶ X
The lift.
- fac_left : CategoryTheory.CategoryStruct.comp i s.l = f
The upper left triangle commutes.
- fac_right : CategoryTheory.CategoryStruct.comp s.l p = g
The lower right triangle commutes.
Now we consider a square:
A ---f---> X
| |
i p
| |
v v
B ---g---> Y
The datum of a lift in a commutative square, i.e. an up-right-diagonal morphism which makes both triangles commute.
Instances For
A LiftStruct
for a commutative square gives a LiftStruct
for the
corresponding square in the opposite category.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A LiftStruct
for a commutative square in the opposite category
gives a LiftStruct
for the corresponding square in the original category.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equivalences of LiftStruct
for a square and the corresponding square
in the opposite category.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equivalences of LiftStruct
for a square in the oppositive category and
the corresponding square in the original category.
Equations
- One or more equations did not get rendered due to their size.
Instances For
- exists_lift : Nonempty (CategoryTheory.CommSq.LiftStruct sq)
Square has a
LiftStruct
.
The assertion that a square has a LiftStruct
.
Instances
A choice of a diagonal morphism that is part of a LiftStruct
when
the square has a lift.
Equations
- CategoryTheory.CommSq.lift sq = (Nonempty.some (_ : Nonempty (CategoryTheory.CommSq.LiftStruct sq))).l