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
- One or more equations did not get rendered due to their size.
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
- CategoryTheory.uniqueToTop = { default := CategoryTheory.homOfLE ⋯, uniq := ⋯ }
Equations
- CategoryTheory.uniqueFromBot = { default := CategoryTheory.homOfLE ⋯, uniq := ⋯ }
The equivalence between X →o Y and the type of functors X ⥤ Y between preorder categories
X and Y.
Equations
- OrderHom.equivFunctor = { toFun := OrderHom.toFunctor, invFun := fun (F : CategoryTheory.Functor X Y) => F.toOrderHom, left_inv := ⋯, right_inv := ⋯ }
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
- One or more equations did not get rendered due to their size.
Instances For
A categorical equivalence between partial orders is just an order isomorphism.