The areas / V24. Category theory
Mathlib.CategoryTheory.Monad.Adjunction
74 declarations. Mathlib docs · Source
Adjunctions and (co)monads
We develop the basic relationship between adjunctions and (co)monads.
Given an adjunction h : L ⊣ R, we have h.toMonad : Monad C and h.toComonad : Comonad D.
We then have
Monad.comparison (h : L ⊣ R) : D ⥤ h.toMonad.algebra
sending Y : D to the Eilenberg-Moore algebra for L ⋙ R with underlying object R.obj X,
and dually Comonad.comparison.
We say R : D ⥤ C is MonadicRightAdjoint, if it is a right adjoint and its Monad.comparison
is an equivalence of categories. (Similarly for ComonadicLeftAdjoint.)
Finally we prove that reflective functors are MonadicRightAdjoint and coreflective functors are
ComonadicLeftAdjoint.
def CategoryTheory.ComonadicLeftAdjoint.ctorIdx E1 #
{C : Type u₁} →
{inst : CategoryTheory.Category.{v₁, u₁} C} →
{D : Type u₂} →
{inst_1 : CategoryTheory.Category.{v₂, u₂} D} →
{L : CategoryTheory.Functor C D} → CategoryTheory.ComonadicLeftAdjoint L → ℕ
def CategoryTheory.MonadicRightAdjoint.ctorIdx E1 #
{C : Type u₁} →
{inst : CategoryTheory.Category.{v₁, u₁} C} →
{D : Type u₂} →
{inst_1 : CategoryTheory.Category.{v₂, u₂} D} →
{R : CategoryTheory.Functor D C} → CategoryTheory.MonadicRightAdjoint R → ℕ
def CategoryTheory.Adjunction.toMonad E1 #
{C : Type u₁} →
[inst : CategoryTheory.Category.{v₁, u₁} C] →
{D : Type u₂} →
[inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
{L : CategoryTheory.Functor C D} → {R : CategoryTheory.Functor D C} → (L ⊣ R) → CategoryTheory.Monad C
For a pair of functors L : C ⥤ D, R : D ⥤ C, an adjunction h : L ⊣ R induces a monad on
the category C.
theorem CategoryTheory.Adjunction.toMonad_η E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{L : CategoryTheory.Functor C D} {R : CategoryTheory.Functor D C} (h : L ⊣ R), h.toMonad.η = h.unit
theorem CategoryTheory.Adjunction.toMonad_μ E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{L : CategoryTheory.Functor C D} {R : CategoryTheory.Functor D C} (h : L ⊣ R),
h.toMonad.μ = CategoryTheory.Functor.whiskerRight (L.whiskerLeft h.counit) R
theorem CategoryTheory.Adjunction.toMonad_coe E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{L : CategoryTheory.Functor C D} {R : CategoryTheory.Functor D C} (h : L ⊣ R), h.toMonad.toFunctor = L.comp R
def CategoryTheory.Adjunction.toComonad E1 #
{C : Type u₁} →
[inst : CategoryTheory.Category.{v₁, u₁} C] →
{D : Type u₂} →
[inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
{L : CategoryTheory.Functor C D} → {R : CategoryTheory.Functor D C} → (L ⊣ R) → CategoryTheory.Comonad D
For a pair of functors L : C ⥤ D, R : D ⥤ C, an adjunction h : L ⊣ R induces a comonad on
the category D.
theorem CategoryTheory.Adjunction.toComonad_δ E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{L : CategoryTheory.Functor C D} {R : CategoryTheory.Functor D C} (h : L ⊣ R),
h.toComonad.δ = CategoryTheory.Functor.whiskerRight (R.whiskerLeft h.unit) L
theorem CategoryTheory.Adjunction.toComonad_ε E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{L : CategoryTheory.Functor C D} {R : CategoryTheory.Functor D C} (h : L ⊣ R), h.toComonad.ε = h.counit
theorem CategoryTheory.Adjunction.toComonad_coe E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{L : CategoryTheory.Functor C D} {R : CategoryTheory.Functor D C} (h : L ⊣ R), h.toComonad.toFunctor = R.comp L
def CategoryTheory.Adjunction.adjToMonadIso E1 #
{C : Type u₁} → [inst : CategoryTheory.Category.{v₁, u₁} C] → (T : CategoryTheory.Monad C) → T.adj.toMonad ≅ T
The monad induced by the Eilenberg-Moore adjunction is the original monad.
theorem CategoryTheory.Adjunction.adjToMonadIso_inv_toNatTrans_app E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (T : CategoryTheory.Monad C) (X : C),
(CategoryTheory.Adjunction.adjToMonadIso T).inv.app X = CategoryTheory.CategoryStruct.id (T.obj X)
theorem CategoryTheory.Adjunction.adjToMonadIso_hom_toNatTrans_app E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (T : CategoryTheory.Monad C) (X : C),
(CategoryTheory.Adjunction.adjToMonadIso T).hom.app X = CategoryTheory.CategoryStruct.id (T.obj X)
def CategoryTheory.Adjunction.adjToComonadIso E1 #
{C : Type u₁} → [inst : CategoryTheory.Category.{v₁, u₁} C] → (G : CategoryTheory.Comonad C) → G.adj.toComonad ≅ G
The comonad induced by the Eilenberg-Moore adjunction is the original comonad.
theorem CategoryTheory.Adjunction.adjToComonadIso_inv_toNatTrans_app E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (G : CategoryTheory.Comonad C) (X : C),
(CategoryTheory.Adjunction.adjToComonadIso G).inv.app X = CategoryTheory.CategoryStruct.id (G.obj X)
theorem CategoryTheory.Adjunction.adjToComonadIso_hom_toNatTrans_app E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (G : CategoryTheory.Comonad C) (X : C),
(CategoryTheory.Adjunction.adjToComonadIso G).hom.app X = CategoryTheory.CategoryStruct.id (G.obj X)
def CategoryTheory.Adjunction.unitAsIsoOfIso E1 #
{C : Type u₁} →
[inst : CategoryTheory.Category.{v₁, u₁} C] →
{D : Type u₂} →
[inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
{L : CategoryTheory.Functor C D} →
{R : CategoryTheory.Functor D C} →
(L ⊣ R) → (L.comp R ≅ CategoryTheory.Functor.id C) → (CategoryTheory.Functor.id C ≅ L.comp R)
Given an adjunction L ⊣ R, if L ⋙ R is abstractly isomorphic to the identity functor, then the
unit is an isomorphism.
theorem CategoryTheory.Adjunction.isIso_unit_of_iso E1 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{L : CategoryTheory.Functor C D} {R : CategoryTheory.Functor D C} (adj : L ⊣ R)
(i : L.comp R ≅ CategoryTheory.Functor.id C), CategoryTheory.IsIso adj.unit
def CategoryTheory.Adjunction.fullyFaithfulLOfCompIsoId E1 #
{C : Type u₁} →
[inst : CategoryTheory.Category.{v₁, u₁} C] →
{D : Type u₂} →
[inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
{L : CategoryTheory.Functor C D} →
{R : CategoryTheory.Functor D C} → (L ⊣ R) → (L.comp R ≅ CategoryTheory.Functor.id C) → L.FullyFaithful
Given an adjunction L ⊣ R, if L ⋙ R is isomorphic to the identity functor, then L is
fully faithful.
def CategoryTheory.Adjunction.counitAsIsoOfIso E1 #
{C : Type u₁} →
[inst : CategoryTheory.Category.{v₁, u₁} C] →
{D : Type u₂} →
[inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
{L : CategoryTheory.Functor C D} →
{R : CategoryTheory.Functor D C} →
(L ⊣ R) → (R.comp L ≅ CategoryTheory.Functor.id D) → (R.comp L ≅ CategoryTheory.Functor.id D)
Given an adjunction L ⊣ R, if R ⋙ L is abstractly isomorphic to the identity functor, then the
counit is an isomorphism.
theorem CategoryTheory.Adjunction.isIso_counit_of_iso E1 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{L : CategoryTheory.Functor C D} {R : CategoryTheory.Functor D C} (adj : L ⊣ R)
(j : R.comp L ≅ CategoryTheory.Functor.id D), CategoryTheory.IsIso adj.counit
def CategoryTheory.Adjunction.fullyFaithfulROfCompIsoId E1 #
{C : Type u₁} →
[inst : CategoryTheory.Category.{v₁, u₁} C] →
{D : Type u₂} →
[inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
{L : CategoryTheory.Functor C D} →
{R : CategoryTheory.Functor D C} → (L ⊣ R) → (R.comp L ≅ CategoryTheory.Functor.id D) → R.FullyFaithful
Given an adjunction L ⊣ R, if R ⋙ L is isomorphic to the identity functor, then R is
fully faithful.
def CategoryTheory.Monad.comparison E1 #
{C : Type u₁} →
[inst : CategoryTheory.Category.{v₁, u₁} C] →
{D : Type u₂} →
[inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
{L : CategoryTheory.Functor C D} →
{R : CategoryTheory.Functor D C} → (h : L ⊣ R) → CategoryTheory.Functor D h.toMonad.Algebra
Given any adjunction L ⊣ R, there is a comparison functor CategoryTheory.Monad.comparison R
sending objects Y : D to Eilenberg-Moore algebras for L ⋙ R with underlying object R.obj X.
We later show that this is full when R is full, faithful when R is faithful,
and essentially surjective when R is reflective.
theorem CategoryTheory.Monad.comparison_obj_a E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{L : CategoryTheory.Functor C D} {R : CategoryTheory.Functor D C} (h : L ⊣ R) (X : D),
((CategoryTheory.Monad.comparison h).obj X).a = R.map (h.counit.app X)
theorem CategoryTheory.Monad.comparison_obj_A E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{L : CategoryTheory.Functor C D} {R : CategoryTheory.Functor D C} (h : L ⊣ R) (X : D),
((CategoryTheory.Monad.comparison h).obj X).A = R.obj X
theorem CategoryTheory.Monad.comparison_map_f E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{L : CategoryTheory.Functor C D} {R : CategoryTheory.Functor D C} (h : L ⊣ R) {X Y : D} (f : X ⟶ Y),
((CategoryTheory.Monad.comparison h).map f).f = R.map f
def CategoryTheory.Monad.comparisonForget E1 #
{C : Type u₁} →
[inst : CategoryTheory.Category.{v₁, u₁} C] →
{D : Type u₂} →
[inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
{L : CategoryTheory.Functor C D} →
{R : CategoryTheory.Functor D C} → (h : L ⊣ R) → (CategoryTheory.Monad.comparison h).comp h.toMonad.forget ≅ R
The underlying object of (Monad.comparison R).obj X is just R.obj X.
theorem CategoryTheory.Monad.comparisonForget_hom_app E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{L : CategoryTheory.Functor C D} {R : CategoryTheory.Functor D C} (h : L ⊣ R) (x : D),
(CategoryTheory.Monad.comparisonForget h).hom.app x =
CategoryTheory.CategoryStruct.id (((CategoryTheory.Monad.comparison h).comp h.toMonad.forget).obj x)
theorem CategoryTheory.Monad.comparisonForget_inv_app E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{L : CategoryTheory.Functor C D} {R : CategoryTheory.Functor D C} (h : L ⊣ R) (x : D),
(CategoryTheory.Monad.comparisonForget h).inv.app x = CategoryTheory.CategoryStruct.id (R.obj x)
theorem CategoryTheory.Monad.left_comparison E1 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{L : CategoryTheory.Functor C D} {R : CategoryTheory.Functor D C} (h : L ⊣ R),
L.comp (CategoryTheory.Monad.comparison h) = h.toMonad.free
instance CategoryTheory.instFaithfulAlgebraToMonadComparison E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{L : CategoryTheory.Functor C D} {R : CategoryTheory.Functor D C} [R.Faithful] (h : L ⊣ R),
(CategoryTheory.Monad.comparison h).Faithful
instance CategoryTheory.instFullAlgebraToMonadAdjComparison E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (T : CategoryTheory.Monad C),
(CategoryTheory.Monad.comparison T.adj).Full
instance CategoryTheory.instEssSurjAlgebraToMonadAdjComparison E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (T : CategoryTheory.Monad C),
(CategoryTheory.Monad.comparison T.adj).EssSurj
def CategoryTheory.Comonad.comparison E1 #
{C : Type u₁} →
[inst : CategoryTheory.Category.{v₁, u₁} C] →
{D : Type u₂} →
[inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
{L : CategoryTheory.Functor C D} →
{R : CategoryTheory.Functor D C} → (h : L ⊣ R) → CategoryTheory.Functor C h.toComonad.Coalgebra
Given any adjunction L ⊣ R, there is a comparison functor CategoryTheory.Comonad.comparison L
sending objects X : C to Eilenberg-Moore coalgebras for L ⋙ R with underlying object
L.obj X.
theorem CategoryTheory.Comonad.comparison_obj_a E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{L : CategoryTheory.Functor C D} {R : CategoryTheory.Functor D C} (h : L ⊣ R) (X : C),
((CategoryTheory.Comonad.comparison h).obj X).a = L.map (h.unit.app X)
theorem CategoryTheory.Comonad.comparison_map_f E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{L : CategoryTheory.Functor C D} {R : CategoryTheory.Functor D C} (h : L ⊣ R) {X Y : C} (f : X ⟶ Y),
((CategoryTheory.Comonad.comparison h).map f).f = L.map f
theorem CategoryTheory.Comonad.comparison_obj_A E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{L : CategoryTheory.Functor C D} {R : CategoryTheory.Functor D C} (h : L ⊣ R) (X : C),
((CategoryTheory.Comonad.comparison h).obj X).A = L.obj X
def CategoryTheory.Comonad.comparisonForget E1 #
{C : Type u₁} →
[inst : CategoryTheory.Category.{v₁, u₁} C] →
{D : Type u₂} →
[inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
{L : CategoryTheory.Functor C D} →
{R : CategoryTheory.Functor D C} →
(h : L ⊣ R) → (CategoryTheory.Comonad.comparison h).comp h.toComonad.forget ≅ L
The underlying object of (Comonad.comparison L).obj X is just L.obj X.
theorem CategoryTheory.Comonad.comparisonForget_inv_app E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{L : CategoryTheory.Functor C D} {R : CategoryTheory.Functor D C} (h : L ⊣ R) (x : C),
(CategoryTheory.Comonad.comparisonForget h).inv.app x = CategoryTheory.CategoryStruct.id (L.obj x)
theorem CategoryTheory.Comonad.comparisonForget_hom_app E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{L : CategoryTheory.Functor C D} {R : CategoryTheory.Functor D C} (h : L ⊣ R) (x : C),
(CategoryTheory.Comonad.comparisonForget h).hom.app x =
CategoryTheory.CategoryStruct.id (((CategoryTheory.Comonad.comparison h).comp h.toComonad.forget).obj x)
theorem CategoryTheory.Comonad.left_comparison E1 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{L : CategoryTheory.Functor C D} {R : CategoryTheory.Functor D C} (h : L ⊣ R),
R.comp (CategoryTheory.Comonad.comparison h) = h.toComonad.cofree
instance CategoryTheory.Comonad.comparison_faithful_of_faithful E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{L : CategoryTheory.Functor C D} {R : CategoryTheory.Functor D C} [L.Faithful] (h : L ⊣ R),
(CategoryTheory.Comonad.comparison h).Faithful
instance CategoryTheory.instFullCoalgebraToComonadAdjComparison E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (G : CategoryTheory.Comonad C),
(CategoryTheory.Comonad.comparison G.adj).Full
instance CategoryTheory.instEssSurjCoalgebraToComonadAdjComparison E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (G : CategoryTheory.Comonad C),
(CategoryTheory.Comonad.comparison G.adj).EssSurj
class CategoryTheory.MonadicRightAdjoint E1 #
{C : Type u₁} →
[inst : CategoryTheory.Category.{v₁, u₁} C] →
{D : Type u₂} →
[inst_1 : CategoryTheory.Category.{v₂, u₂} D] → CategoryTheory.Functor D C → Type (max (max (max u₁ u₂) v₁) v₂)
A right adjoint functor R : D ⥤ C is monadic if the comparison functor Monad.comparison R
from D to the category of Eilenberg-Moore algebras for the adjunction is an equivalence.
ctor CategoryTheory.MonadicRightAdjoint.mk E0 #
{C : Type u₁} →
[inst : CategoryTheory.Category.{v₁, u₁} C] →
{D : Type u₂} →
[inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
{R : CategoryTheory.Functor D C} →
(L : CategoryTheory.Functor C D) →
(adj : L ⊣ R) → (CategoryTheory.Monad.comparison adj).IsEquivalence → CategoryTheory.MonadicRightAdjoint R
abbrev CategoryTheory.MonadicRightAdjoint.L E1 #
{C : Type u₁} →
{inst : CategoryTheory.Category.{v₁, u₁} C} →
{D : Type u₂} →
{inst_1 : CategoryTheory.Category.{v₂, u₂} D} →
(R : CategoryTheory.Functor D C) → [self : CategoryTheory.MonadicRightAdjoint R] → CategoryTheory.Functor C D
a choice of left adjoint for R
abbrev CategoryTheory.MonadicRightAdjoint.adj E1 #
{C : Type u₁} →
{inst : CategoryTheory.Category.{v₁, u₁} C} →
{D : Type u₂} →
{inst_1 : CategoryTheory.Category.{v₂, u₂} D} →
{R : CategoryTheory.Functor D C} →
[self : CategoryTheory.MonadicRightAdjoint R] → CategoryTheory.MonadicRightAdjoint.L R ⊣ R
R is a right adjoint
instance CategoryTheory.MonadicRightAdjoint.eqv E0 #
∀ {C : Type u₁} {inst : CategoryTheory.Category.{v₁, u₁} C} {D : Type u₂} {inst_1 : CategoryTheory.Category.{v₂, u₂} D}
{R : CategoryTheory.Functor D C} [self : CategoryTheory.MonadicRightAdjoint R],
(CategoryTheory.Monad.comparison CategoryTheory.MonadicRightAdjoint.adj).IsEquivalence
def CategoryTheory.monadicLeftAdjoint E1 #
{C : Type u₁} →
[inst : CategoryTheory.Category.{v₁, u₁} C] →
{D : Type u₂} →
[inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
(R : CategoryTheory.Functor D C) → [CategoryTheory.MonadicRightAdjoint R] → CategoryTheory.Functor C D
The left adjoint functor to R given by [MonadicRightAdjoint R].
def CategoryTheory.monadicAdjunction E1 #
{C : Type u₁} →
[inst : CategoryTheory.Category.{v₁, u₁} C] →
{D : Type u₂} →
[inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
(R : CategoryTheory.Functor D C) →
[inst_2 : CategoryTheory.MonadicRightAdjoint R] → CategoryTheory.monadicLeftAdjoint R ⊣ R
The adjunction monadicLeftAdjoint R ⊣ R given by [MonadicRightAdjoint R].
instance CategoryTheory.instIsEquivalenceAlgebraToMonadMonadicAdjunctionComparison E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
(R : CategoryTheory.Functor D C) [inst_2 : CategoryTheory.MonadicRightAdjoint R],
(CategoryTheory.Monad.comparison (CategoryTheory.monadicAdjunction R)).IsEquivalence
instance CategoryTheory.instIsRightAdjointOfMonadicRightAdjoint E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
(R : CategoryTheory.Functor D C) [CategoryTheory.MonadicRightAdjoint R], R.IsRightAdjoint
instance CategoryTheory.instMonadicRightAdjointAlgebraForget E0 #
{C : Type u₁} →
[inst : CategoryTheory.Category.{v₁, u₁} C] →
(T : CategoryTheory.Monad C) → CategoryTheory.MonadicRightAdjoint T.forget
class CategoryTheory.ComonadicLeftAdjoint E1 #
{C : Type u₁} →
[inst : CategoryTheory.Category.{v₁, u₁} C] →
{D : Type u₂} →
[inst_1 : CategoryTheory.Category.{v₂, u₂} D] → CategoryTheory.Functor C D → Type (max (max (max u₁ u₂) v₁) v₂)
A left adjoint functor L : C ⥤ D is comonadic if the comparison functor Comonad.comparison L
from C to the category of Eilenberg-Moore algebras for the adjunction is an equivalence.
ctor CategoryTheory.ComonadicLeftAdjoint.mk E0 #
{C : Type u₁} →
[inst : CategoryTheory.Category.{v₁, u₁} C] →
{D : Type u₂} →
[inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
{L : CategoryTheory.Functor C D} →
(R : CategoryTheory.Functor D C) →
(adj : L ⊣ R) →
(CategoryTheory.Comonad.comparison adj).IsEquivalence → CategoryTheory.ComonadicLeftAdjoint L
abbrev CategoryTheory.ComonadicLeftAdjoint.R E1 #
{C : Type u₁} →
{inst : CategoryTheory.Category.{v₁, u₁} C} →
{D : Type u₂} →
{inst_1 : CategoryTheory.Category.{v₂, u₂} D} →
(L : CategoryTheory.Functor C D) → [self : CategoryTheory.ComonadicLeftAdjoint L] → CategoryTheory.Functor D C
a choice of right adjoint for L
abbrev CategoryTheory.ComonadicLeftAdjoint.adj E1 #
{C : Type u₁} →
{inst : CategoryTheory.Category.{v₁, u₁} C} →
{D : Type u₂} →
{inst_1 : CategoryTheory.Category.{v₂, u₂} D} →
{L : CategoryTheory.Functor C D} →
[self : CategoryTheory.ComonadicLeftAdjoint L] → L ⊣ CategoryTheory.ComonadicLeftAdjoint.R L
L is a left adjoint
instance CategoryTheory.ComonadicLeftAdjoint.eqv E0 #
∀ {C : Type u₁} {inst : CategoryTheory.Category.{v₁, u₁} C} {D : Type u₂} {inst_1 : CategoryTheory.Category.{v₂, u₂} D}
{L : CategoryTheory.Functor C D} [self : CategoryTheory.ComonadicLeftAdjoint L],
(CategoryTheory.Comonad.comparison CategoryTheory.ComonadicLeftAdjoint.adj).IsEquivalence
def CategoryTheory.comonadicRightAdjoint E1 #
{C : Type u₁} →
[inst : CategoryTheory.Category.{v₁, u₁} C] →
{D : Type u₂} →
[inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
(L : CategoryTheory.Functor C D) → [CategoryTheory.ComonadicLeftAdjoint L] → CategoryTheory.Functor D C
The right adjoint functor to L given by [ComonadicLeftAdjoint L].
def CategoryTheory.comonadicAdjunction E1 #
{C : Type u₁} →
[inst : CategoryTheory.Category.{v₁, u₁} C] →
{D : Type u₂} →
[inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
(L : CategoryTheory.Functor C D) →
[inst_2 : CategoryTheory.ComonadicLeftAdjoint L] → L ⊣ CategoryTheory.comonadicRightAdjoint L
The adjunction L ⊣ comonadicRightAdjoint L given by [ComonadicLeftAdjoint L].
instance CategoryTheory.instIsEquivalenceCoalgebraToComonadComonadicAdjunctionComparison E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
(L : CategoryTheory.Functor C D) [inst_2 : CategoryTheory.ComonadicLeftAdjoint L],
(CategoryTheory.Comonad.comparison (CategoryTheory.comonadicAdjunction L)).IsEquivalence
instance CategoryTheory.instIsLeftAdjointOfComonadicLeftAdjoint E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
(L : CategoryTheory.Functor C D) [CategoryTheory.ComonadicLeftAdjoint L], L.IsLeftAdjoint
instance CategoryTheory.instComonadicLeftAdjointCoalgebraForget E0 #
{C : Type u₁} →
[inst : CategoryTheory.Category.{v₁, u₁} C] →
(G : CategoryTheory.Comonad C) → CategoryTheory.ComonadicLeftAdjoint G.forget
instance CategoryTheory.μ_iso_of_reflective E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{R : CategoryTheory.Functor D C} [inst_2 : CategoryTheory.Reflective R],
CategoryTheory.IsIso (CategoryTheory.reflectorAdjunction R).toMonad.μ
instance CategoryTheory.δ_iso_of_coreflective E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{R : CategoryTheory.Functor D C} [inst_2 : CategoryTheory.Coreflective R],
CategoryTheory.IsIso (CategoryTheory.coreflectorAdjunction R).toComonad.δ
instance CategoryTheory.Reflective.instIsIsoAppUnitReflectorAdjunctionA E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{R : CategoryTheory.Functor D C} [inst_2 : CategoryTheory.Reflective R]
(X : (CategoryTheory.reflectorAdjunction R).toMonad.Algebra),
CategoryTheory.IsIso ((CategoryTheory.reflectorAdjunction R).unit.app X.A)
instance CategoryTheory.Reflective.comparison_essSurj E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{R : CategoryTheory.Functor D C} [inst_2 : CategoryTheory.Reflective R],
(CategoryTheory.Monad.comparison (CategoryTheory.reflectorAdjunction R)).EssSurj
theorem CategoryTheory.Reflective.comparison_full E1 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{R : CategoryTheory.Functor D C} [R.Full] {L : CategoryTheory.Functor C D} (adj : L ⊣ R),
(CategoryTheory.Monad.comparison adj).Full
instance CategoryTheory.Coreflective.instIsIsoAppCounitCoreflectorAdjunctionA E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{R : CategoryTheory.Functor D C} [inst_2 : CategoryTheory.Coreflective R]
(X : (CategoryTheory.coreflectorAdjunction R).toComonad.Coalgebra),
CategoryTheory.IsIso ((CategoryTheory.coreflectorAdjunction R).counit.app X.A)
instance CategoryTheory.Coreflective.comparison_essSurj E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{R : CategoryTheory.Functor D C} [inst_2 : CategoryTheory.Coreflective R],
(CategoryTheory.Comonad.comparison (CategoryTheory.coreflectorAdjunction R)).EssSurj
theorem CategoryTheory.Coreflective.comparison_full E1 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{R : CategoryTheory.Functor D C} [R.Full] {L : CategoryTheory.Functor C D} (adj : R ⊣ L),
(CategoryTheory.Comonad.comparison adj).Full
instance CategoryTheory.monadicOfReflective E0 #
{C : Type u₁} →
[inst : CategoryTheory.Category.{v₁, u₁} C] →
{D : Type u₂} →
[inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
{R : CategoryTheory.Functor D C} → [CategoryTheory.Reflective R] → CategoryTheory.MonadicRightAdjoint R
Any reflective inclusion has a monadic right adjoint. cf Prop 5.3.3 of [Riehl][riehl2017]
instance CategoryTheory.comonadicOfCoreflective E0 #
{C : Type u₁} →
[inst : CategoryTheory.Category.{v₁, u₁} C] →
{D : Type u₂} →
[inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
{R : CategoryTheory.Functor D C} → [CategoryTheory.Coreflective R] → CategoryTheory.ComonadicLeftAdjoint R
Any coreflective inclusion has a comonadic left adjoint. cf Dual statement of Prop 5.3.3 of [Riehl][riehl2017]