Preorders as categories #
We install a category instance on any preorder. This is not to be confused with the category of
preorders, defined in Order.Category.Preorder
.
We show that monotone functions between preorders correspond to functors of the associated categories.
Main definitions #
homOfLE
andleOfHom
provide translations between inequalities in the preorder, and morphisms in the associated category.Monotone.functor
is the functor associated to a monotone function.
The category structure coming from a preorder. There is a morphism X ⟶ Y
if and only if X ≤ Y
.
Because we don't allow morphisms to live in Prop
,
we have to define X ⟶ Y
as ULift (PLift (X ≤ Y))
.
See CategoryTheory.homOfLE
and CategoryTheory.leOfHom
.
See https://stacks.math.columbia.edu/tag/00D3.
Equations
- Preorder.smallCategory α = CategoryTheory.Category.mk
Express an inequality as a morphism in the corresponding preorder category.
Equations
- CategoryTheory.homOfLE h = { down := { down := h } }
Instances For
A monotone function between preorders induces a functor between the associated categories.
Equations
- Monotone.functor h = CategoryTheory.Functor.mk { obj := f, map := fun {X Y} g => CategoryTheory.homOfLE (_ : f X ≤ f Y) }
Instances For
A functor between preorder categories is monotone.
A categorical equivalence between partial orders is just an order isomorphism.
Equations
- One or more equations did not get rendered due to their size.