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
.
Equations
Construct a morphism in the opposite of a preorder category from an inequality.
Equations
Instances For
The equivalence between X →o Y
and the type of functors X ⥤ Y
between preorder categories
X
and Y
.
Equations
Instances For
The categorical equivalence between the category of monotone functions X →o Y
and the category
of functors X ⥤ Y
, where X
and Y
are preorder categories.
Equations
Instances For
A categorical equivalence between partial orders is just an order isomorphism.