The areas / V24. Category theory
Mathlib.CategoryTheory.Bicategory.LocallyDiscrete
30 declarations. Mathlib docs · Source
theorem CategoryTheory.LocallyDiscrete.mk.injEq E0 #
∀ {C : Type u} (as as_1 : C), ({ as := as } = { as := as_1 }) = (as = as_1)
theorem CategoryTheory.LocallyDiscrete.mk.inj E1 #
∀ {C : Type u} {as as_1 : C}, { as := as } = { as := as_1 } → as = as_1
def CategoryTheory.LocallyDiscrete.ctorIdx E1 #
{C : Type u} → CategoryTheory.LocallyDiscrete C → ℕ
structure CategoryTheory.LocallyDiscrete E1 #
Type u → Type u
A wrapper for promoting any category to a bicategory, with the only 2-morphisms being equalities.
theorem CategoryTheory.LocallyDiscrete.ext_iff E0 #
∀ {C : Type u} {x y : CategoryTheory.LocallyDiscrete C}, x = y ↔ x.as = y.as
theorem CategoryTheory.LocallyDiscrete.ext E1 #
∀ {C : Type u} {x y : CategoryTheory.LocallyDiscrete C}, x.as = y.as → x = y
ctor CategoryTheory.LocallyDiscrete.mk E0 #
{C : Type u} → C → CategoryTheory.LocallyDiscrete C
abbrev CategoryTheory.LocallyDiscrete.as E1 #
{C : Type u} → CategoryTheory.LocallyDiscrete C → C
A wrapper for promoting any category to a bicategory, with the only 2-morphisms being equalities.
theorem CategoryTheory.LocallyDiscrete.mk_as E0 #
∀ {C : Type u} (a : CategoryTheory.LocallyDiscrete C), { as := a.as } = a
def CategoryTheory.LocallyDiscrete.locallyDiscreteEquiv E1 #
{C : Type u} → CategoryTheory.LocallyDiscrete C ≃ C
LocallyDiscrete C is equivalent to the original type C.
theorem CategoryTheory.LocallyDiscrete.locallyDiscreteEquiv_symm_apply_as E0 #
∀ {C : Type u} (as : C), (CategoryTheory.LocallyDiscrete.locallyDiscreteEquiv.symm as).as = as
theorem CategoryTheory.LocallyDiscrete.locallyDiscreteEquiv_apply E0 #
∀ {C : Type u} (self : CategoryTheory.LocallyDiscrete C),
CategoryTheory.LocallyDiscrete.locallyDiscreteEquiv self = self.as
instance CategoryTheory.LocallyDiscrete.instDecidableEq E0 #
{C : Type u} → [DecidableEq C] → DecidableEq (CategoryTheory.LocallyDiscrete C)
instance CategoryTheory.LocallyDiscrete.instInhabited E0 #
{C : Type u} → [Inhabited C] → Inhabited (CategoryTheory.LocallyDiscrete C)
instance CategoryTheory.LocallyDiscrete.categoryStruct E0 #
{C : Type u} →
[CategoryTheory.CategoryStruct.{v, u} C] → CategoryTheory.CategoryStruct.{v, u} (CategoryTheory.LocallyDiscrete C)
theorem CategoryTheory.LocallyDiscrete.id_as E0 #
∀ {C : Type u} [inst : CategoryTheory.CategoryStruct.{v, u} C] (a : CategoryTheory.LocallyDiscrete C),
(CategoryTheory.CategoryStruct.id a).as = CategoryTheory.CategoryStruct.id a.as
theorem CategoryTheory.LocallyDiscrete.comp_as E0 #
∀ {C : Type u} [inst : CategoryTheory.CategoryStruct.{v, u} C] {a b c : CategoryTheory.LocallyDiscrete C} (f : a ⟶ b)
(g : b ⟶ c), (CategoryTheory.CategoryStruct.comp f g).as = CategoryTheory.CategoryStruct.comp f.as g.as
instance CategoryTheory.LocallyDiscrete.homSmallCategory E0 #
{C : Type u} →
[inst : CategoryTheory.CategoryStruct.{v, u} C] →
(a b : CategoryTheory.LocallyDiscrete C) → CategoryTheory.SmallCategory (a ⟶ b)
instance CategoryTheory.LocallyDiscrete.subsingleton2Hom E0 #
∀ {C : Type u} [inst : CategoryTheory.CategoryStruct.{v, u} C] {a b : CategoryTheory.LocallyDiscrete C} (f g : a ⟶ b),
Subsingleton (f ⟶ g)
This instance is used to see through the synonym a ⟶ b = Discrete (a.as ⟶ b.as).
instance CategoryTheory.locallyDiscreteBicategory E0 #
(C : Type u) → [CategoryTheory.Category.{v, u} C] → CategoryTheory.Bicategory (CategoryTheory.LocallyDiscrete C)
The locally discrete bicategory on a category is a bicategory in which the objects and the 1-morphisms are the same as those in the underlying category, and the 2-morphisms are the equalities between 1-morphisms.
instance CategoryTheory.locallyDiscreteBicategory.strict E0 #
∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C],
CategoryTheory.Bicategory.Strict (CategoryTheory.LocallyDiscrete C)
A locally discrete bicategory is strict.
abbrev CategoryTheory.Bicategory.IsLocallyDiscrete E1 #
(B : Type u_1) → [CategoryTheory.Bicategory B] → Prop
A bicategory is locally discrete if the categories of 1-morphisms are discrete.
instance CategoryTheory.Bicategory.instIsLocallyDiscreteLocallyDiscrete E0 #
∀ (C : Type u_1) [inst : CategoryTheory.Category.{v_1, u_1} C],
CategoryTheory.Bicategory.IsLocallyDiscrete (CategoryTheory.LocallyDiscrete C)
instance CategoryTheory.Bicategory.instStrictOfIsLocallyDiscrete E0 #
∀ (B : Type u_1) [inst : CategoryTheory.Bicategory B] [CategoryTheory.Bicategory.IsLocallyDiscrete B],
CategoryTheory.Bicategory.Strict B
def Quiver.Hom.toLoc E1 #
{C : Type u} → [inst : CategoryTheory.CategoryStruct.{v, u} C] → {a b : C} → (a ⟶ b) → ({ as := a } ⟶ { as := b })
The 1-morphism in LocallyDiscrete C associated to a given morphism f : a ⟶ b in C
theorem Quiver.Hom.toLoc_as E0 #
∀ {C : Type u} [inst : CategoryTheory.CategoryStruct.{v, u} C] {a b : C} (f : a ⟶ b), f.toLoc.as = f
theorem Quiver.Hom.id_toLoc E0 #
∀ {C : Type u} [inst : CategoryTheory.CategoryStruct.{v, u} C] (a : C),
(CategoryTheory.CategoryStruct.id a).toLoc = CategoryTheory.CategoryStruct.id { as := a }
theorem Quiver.Hom.comp_toLoc E0 #
∀ {C : Type u} [inst : CategoryTheory.CategoryStruct.{v, u} C] {a b c : C} (f : a ⟶ b) (g : b ⟶ c),
(CategoryTheory.CategoryStruct.comp f g).toLoc = CategoryTheory.CategoryStruct.comp f.toLoc g.toLoc
theorem CategoryTheory.LocallyDiscrete.eqToHom_toLoc E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {a b : C} (h : a = b),
(CategoryTheory.eqToHom h).toLoc = CategoryTheory.eqToHom ⋯
theorem CategoryTheory.CommSq.toLoc E1 #
∀ {C : Type u_1} [inst : CategoryTheory.Category.{u_2, u_1} C] {X₁ X₂ X₃ X₄ : C} {t : X₁ ⟶ X₂} {l : X₁ ⟶ X₃}
{r : X₂ ⟶ X₄} {b : X₃ ⟶ X₄}, CategoryTheory.CommSq t l r b → CategoryTheory.CommSq t.toLoc l.toLoc r.toLoc b.toLoc