The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V24. Category theory

Mathlib.CategoryTheory.FinCategory.Basic

12 declarations. Mathlib docs · Source

Finite categories

A category is finite in this sense if it has finitely many objects, and finitely many morphisms.

Implementation notes

Prior to https://github.com/leanprover-community/mathlib4/pull/14046, FinCategory required a DecidableEq instance on the object and morphism types. This does not seem to have had any practical payoff (i.e. making some definition constructive) so we have removed these requirements to avoid having to supply instances or delay with non-defeq conflicts between instances.

def CategoryTheory.FinCategory.ctorIdx E1 #

{J : Type v} → {inst : CategoryTheory.SmallCategory J} → CategoryTheory.FinCategory J → ℕ

instance CategoryTheory.discreteFintype E0 #

{α : Type u_1} → [Fintype α] → Fintype (CategoryTheory.Discrete α)

instance CategoryTheory.instFiniteDiscrete E0 #

∀ {α : Type u_1} [Finite α], Finite (CategoryTheory.Discrete α)

instance CategoryTheory.discreteHomFintype E0 #

{α : Type u_1} → (X Y : CategoryTheory.Discrete α) → Fintype (X ⟶ Y)

class CategoryTheory.FinCategory E1 #

(J : Type v) → [CategoryTheory.SmallCategory J] → Type v

A category with a Fintype of objects, and a Fintype for each morphism space.

ctor CategoryTheory.FinCategory.mk E0 #

{J : Type v} →
  [inst : CategoryTheory.SmallCategory J] →
    autoParam (Fintype J) CategoryTheory.FinCategory.fintypeObj._autoParam →
      autoParam ((j j' : J) → Fintype (j ⟶ j')) CategoryTheory.FinCategory.fintypeHom._autoParam →
        CategoryTheory.FinCategory J

instance CategoryTheory.FinCategory.fintypeObj E0 #

{J : Type v} → {inst : CategoryTheory.SmallCategory J} → [self : CategoryTheory.FinCategory J] → Fintype J

instance CategoryTheory.FinCategory.fintypeHom E0 #

{J : Type v} →
  {inst : CategoryTheory.SmallCategory J} → [self : CategoryTheory.FinCategory J] → (j j' : J) → Fintype (j ⟶ j')

instance CategoryTheory.finCategoryDiscreteOfFintype E0 #

(J : Type v) → [Fintype J] → CategoryTheory.FinCategory (CategoryTheory.Discrete J)

instance CategoryTheory.instFinCategoryOfFintypeOfIsThin E0 #

{J : Type u} → [Fintype J] → [inst : CategoryTheory.SmallCategory J] → [Quiver.IsThin J] → CategoryTheory.FinCategory J

instance CategoryTheory.finCategoryOpposite E0 #

{J : Type v} → [inst : CategoryTheory.SmallCategory J] → [CategoryTheory.FinCategory J] → CategoryTheory.FinCategory Jᵒᵖ

The opposite of a finite category is finite.

instance CategoryTheory.finCategoryUlift E0 #

{J : Type v} →
  [inst : CategoryTheory.SmallCategory J] →
    [CategoryTheory.FinCategory J] → CategoryTheory.FinCategory (CategoryTheory.ULiftHom (ULift.{w, v} J))

Applying ULift to morphisms and objects of a category preserves finiteness.