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 #
homOfLEandleOfHomprovide translations between inequalities in the preorder, and morphisms in the associated category.Monotone.functoris 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
Express an inequality as a morphism in the corresponding preorder category.
Equations
Instances For
Extract the underlying inequality from a morphism in a preorder category.
Extract the underlying inequality from a morphism in a preorder category.
Equations
Instances For
Construct a morphism in the opposite of a preorder category from an inequality.
Equations
Instances For
Equations
Equations
The equivalence of categories from the order dual of a preordered type X
to the opposite category of the preorder X.
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.