The areas / V24. Category theory
Mathlib.Order.Category.Preord
51 declarations. Mathlib docs · Source
theorem Preord.of.injEq E0 #
∀ (carrier : Type u_1) [str : Preorder carrier] (carrier_1 : Type u_1) (str_1 : Preorder carrier_1),
(↧carrier = ↧carrier_1) = (carrier = carrier_1 ∧ str ≍ str_1)
def Preord.Hom.ctorIdx E1 #
{X Y : Preord} → X.Hom Y → ℕ
def Preord.ctorIdx E1 #
Preord → ℕ
theorem Preord.of.inj E1 #
∀ {carrier : Type u_1} {str : Preorder carrier} {carrier_1 : Type u_1} {str_1 : Preorder carrier_1},
↧carrier = ↧carrier_1 → carrier = carrier_1 ∧ str ≍ str_1
structure Preord E1 #
Type (u_1 + 1)
The category of preorders.
ctor Preord.of E0 #
(carrier : Type u_1) → [str : Preorder carrier] → Preord
Construct a bundled Preord from the underlying type and typeclass.
abbrev Preord.carrier E1 #
Preord → Type u_1
The underlying preordered type.
instance Preord.str E0 #
(self : Preord) → Preorder ↑self
def Preord.delabOf E1 #
Lean.PrettyPrinter.Delaborator.Delab
This prints Preord.of X as ↧X.
instance Preord.instCoeSortType E0 #
CoeSort Preord (Type u)
structure Preord.Hom E1 #
Preord → Preord → Type u
The type of morphisms in Preord R.
theorem Preord.Hom.ext E1 #
∀ {X Y : Preord} {x y : X.Hom Y}, x.hom' = y.hom' → x = y
theorem Preord.Hom.ext_iff E0 #
∀ {X Y : Preord} {x y : X.Hom Y}, x = y ↔ x.hom' = y.hom'
abbrev Preord.Hom.hom' E1 #
{X Y : Preord} → X.Hom Y → ↑X →o ↑Y
The underlying OrderHom.
instance Preord.instCategory E0 #
CategoryTheory.Category.{u, u + 1} Preord
instance Preord.instConcreteCategoryOrderHomCarrier E0 #
CategoryTheory.ConcreteCategory Preord fun x1 x2 ↦ ↑x1 →o ↑x2
abbrev Preord.Hom.hom E1 #
{X Y : Preord} → X.Hom Y → ↑X →o ↑Y
Turn a morphism in Preord back into a OrderHom.
abbrev Preord.ofHom E1 #
{X Y : Type u} → [inst : Preorder X] → [inst_1 : Preorder Y] → (X →o Y) → (↧X ⟶ ↧Y)
Typecheck a OrderHom as a morphism in Preord.
def Preord.Hom.Simps.hom E1 #
(X Y : Preord) → X.Hom Y → ↑X →o ↑Y
Use the ConcreteCategory.hom projection for @[simps] lemmas.
theorem Preord.coe_id E0 #
∀ {X : Preord}, ⇑(CategoryTheory.ConcreteCategory.hom (CategoryTheory.CategoryStruct.id X)) = id
theorem Preord.coe_comp E0 #
∀ {X Y Z : Preord} {f : X ⟶ Y} {g : Y ⟶ Z},
⇑(CategoryTheory.ConcreteCategory.hom (CategoryTheory.CategoryStruct.comp f g)) =
⇑(CategoryTheory.ConcreteCategory.hom g) ∘ ⇑(CategoryTheory.ConcreteCategory.hom f)
theorem Preord.ext_iff E0 #
∀ {X Y : Preord} {f g : X ⟶ Y},
f = g ↔ ∀ (x : ↑X), (CategoryTheory.ConcreteCategory.hom f) x = (CategoryTheory.ConcreteCategory.hom g) x
theorem Preord.ext E1 #
∀ {X Y : Preord} {f g : X ⟶ Y},
(∀ (x : ↑X), (CategoryTheory.ConcreteCategory.hom f) x = (CategoryTheory.ConcreteCategory.hom g) x) → f = g
theorem Preord.coe_of E0 #
∀ (X : Type u) [inst : Preorder X], ↑↧X = X
theorem Preord.hom_id E0 #
∀ {X : Preord}, Preord.Hom.hom (CategoryTheory.CategoryStruct.id X) = OrderHom.id
theorem Preord.id_apply E0 #
∀ (X : Preord) (x : ↑X), (CategoryTheory.ConcreteCategory.hom (CategoryTheory.CategoryStruct.id X)) x = x
theorem Preord.hom_comp E0 #
∀ {X Y Z : Preord} (f : X ⟶ Y) (g : Y ⟶ Z),
Preord.Hom.hom (CategoryTheory.CategoryStruct.comp f g) = (Preord.Hom.hom g).comp (Preord.Hom.hom f)
theorem Preord.comp_apply E0 #
∀ {X Y Z : Preord} (f : X ⟶ Y) (g : Y ⟶ Z) (x : ↑X),
(CategoryTheory.ConcreteCategory.hom (CategoryTheory.CategoryStruct.comp f g)) x =
(CategoryTheory.ConcreteCategory.hom g) ((CategoryTheory.ConcreteCategory.hom f) x)
theorem Preord.hom_ext E1 #
∀ {X Y : Preord} {f g : X ⟶ Y}, Preord.Hom.hom f = Preord.Hom.hom g → f = g
theorem Preord.hom_ext_iff E0 #
∀ {X Y : Preord} {f g : X ⟶ Y}, f = g ↔ Preord.Hom.hom f = Preord.Hom.hom g
theorem Preord.hom_ofHom E0 #
∀ {X Y : Type u} [inst : Preorder X] [inst_1 : Preorder Y] (f : X →o Y), Preord.Hom.hom (Preord.ofHom f) = f
theorem Preord.ofHom_hom E0 #
∀ {X Y : Preord} (f : X ⟶ Y), Preord.ofHom (Preord.Hom.hom f) = f
theorem Preord.ofHom_id E0 #
∀ {X : Type u} [inst : Preorder X], Preord.ofHom OrderHom.id = CategoryTheory.CategoryStruct.id ↧X
theorem Preord.ofHom_comp E0 #
∀ {X Y Z : Type u} [inst : Preorder X] [inst_1 : Preorder Y] [inst_2 : Preorder Z] (f : X →o Y) (g : Y →o Z),
Preord.ofHom (g.comp f) = CategoryTheory.CategoryStruct.comp (Preord.ofHom f) (Preord.ofHom g)
theorem Preord.ofHom_apply E0 #
∀ {X Y : Type u} [inst : Preorder X] [inst_1 : Preorder Y] (f : X →o Y) (x : X),
(CategoryTheory.ConcreteCategory.hom (Preord.ofHom f)) x = f x
theorem Preord.inv_hom_apply E0 #
∀ {X Y : Preord} (e : X ≅ Y) (x : ↑X),
(CategoryTheory.ConcreteCategory.hom e.inv) ((CategoryTheory.ConcreteCategory.hom e.hom) x) = x
theorem Preord.hom_inv_apply E0 #
∀ {X Y : Preord} (e : X ≅ Y) (s : ↑Y),
(CategoryTheory.ConcreteCategory.hom e.hom) ((CategoryTheory.ConcreteCategory.hom e.inv) s) = s
instance Preord.instInhabited E0 #
Inhabited Preord
def Preord.Iso.mk E1 #
{α β : Preord} → ↑α ≃o ↑β → (α ≅ β)
Constructs an equivalence between preorders from an order isomorphism between them.
theorem Preord.Iso.mk_hom E0 #
∀ {α β : Preord} (e : ↑α ≃o ↑β), (Preord.Iso.mk e).hom = Preord.ofHom ↑e
theorem Preord.Iso.mk_inv E0 #
∀ {α β : Preord} (e : ↑α ≃o ↑β), (Preord.Iso.mk e).inv = Preord.ofHom ↑e.symm
def Preord.dual E1 #
CategoryTheory.Functor Preord Preord
OrderDual as a functor.
theorem Preord.dual_map E0 #
∀ {X Y : Preord} (f : X ⟶ Y), Preord.dual.map f = Preord.ofHom (OrderHom.dual (Preord.Hom.hom f))
def Preord.dualEquiv E1 #
Preord ≌ Preord
The equivalence between Preord and itself induced by OrderDual both ways.
theorem Preord.dualEquiv_inverse E0 #
Preord.dualEquiv.inverse = Preord.dual
theorem Preord.dualEquiv_functor E0 #
Preord.dualEquiv.functor = Preord.dual
def preordToCat E1 #
CategoryTheory.Functor Preord CategoryTheory.Cat
The embedding of Preord into Cat.
theorem preordToCat_obj E0 #
∀ (X : Preord), preordToCat.obj X = ↧↑X
theorem preordToCat_map E0 #
∀ {X Y : Preord} (f : X ⟶ Y), preordToCat.map f = ⋯.functor.toCatHom
instance instFaithfulPreordCatPreordToCat E0 #
preordToCat.Faithful
instance instFullPreordCatPreordToCat E0 #
preordToCat.Full