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.Category.KleisliCat

10 declarations. Mathlib docs · Source

def CategoryTheory.KleisliCat E1 #

(Type u → Type v) → Type (u + 1)

The Kleisli category on the (type-)monad m. Note that the monad is not assumed to be lawful yet.

def CategoryTheory.KleisliCat.mk E1 #

(m : Type u → Type u_1) → Type u → CategoryTheory.KleisliCat m

Construct an object of the Kleisli category from a type.

instance CategoryTheory.KleisliCat.categoryStruct E0 #

{m : Type u → Type v} → [Monad m] → CategoryTheory.CategoryStruct.{max u v, u + 1} (CategoryTheory.KleisliCat m)

theorem CategoryTheory.KleisliCat.ext_iff E0 #

∀ {m : Type u → Type v} [inst : Monad m] {α β : CategoryTheory.KleisliCat m} {f g : α ⟶ β}, f = g ↔ ∀ (x : α), f x = g x

theorem CategoryTheory.KleisliCat.ext E1 #

∀ {m : Type u → Type v} [inst : Monad m] (α β : CategoryTheory.KleisliCat m) (f g : α ⟶ β),
  (∀ (x : α), f x = g x) → f = g

instance CategoryTheory.KleisliCat.category E0 #

{m : Type u → Type v} →
  [inst : Monad m] → [LawfulMonad m] → CategoryTheory.Category.{max u v, u + 1} (CategoryTheory.KleisliCat m)

theorem CategoryTheory.KleisliCat.id_def E0 #

∀ {m : Type u_1 → Type u_2} [inst : Monad m] (α : CategoryTheory.KleisliCat m),
  CategoryTheory.CategoryStruct.id α = pure

theorem CategoryTheory.KleisliCat.comp_def E0 #

∀ {m : Type u_1 → Type u_2} [inst : Monad m] (α β γ : CategoryTheory.KleisliCat m) (xs : α ⟶ β) (ys : β ⟶ γ) (a : α),
  CategoryTheory.CategoryStruct.comp xs ys a = xs a >>= ys

instance CategoryTheory.instInhabitedKleisliCatId E0 #

Inhabited (CategoryTheory.KleisliCat id)

instance CategoryTheory.instInhabitedMkId E0 #

{α : Type u} → [Inhabited α] → Inhabited (CategoryTheory.KleisliCat.mk id α)