Codensity monad

From HandWiki
Revision as of 22:28, 6 February 2024 by Corlink (talk | contribs) (over-write)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

In mathematics, especially in category theory, the codensity monad is a fundamental construction associating a monad to a wide class of functors.

Definition

The codensity monad of a functor [math]\displaystyle{ G: D \to C }[/math] is defined to be the right Kan extension of [math]\displaystyle{ G }[/math] along itself, provided that this Kan extension exists. Thus, by definition it is in particular a functor [math]\displaystyle{ T^G : C \to C. }[/math] The monad structure on [math]\displaystyle{ T^G }[/math] stems from the universal property of the right Kan extension.

The codensity monad exists whenever [math]\displaystyle{ D }[/math] is a small category (has only a set, as opposed to a proper class, of morphisms) and [math]\displaystyle{ C }[/math] possesses all (small, i.e., set-indexed) limits. It also exists whenever [math]\displaystyle{ G }[/math] has a left adjoint.

By the general formula computing right Kan extensions in terms of ends, the codensity monad is given by the following formula: [math]\displaystyle{ T^G(c) = \int_{d \in D} G(d)^{C(c, G(d))}, }[/math] where [math]\displaystyle{ C(c, G(d)) }[/math] denotes the set of morphisms in [math]\displaystyle{ C }[/math] between the indicated objects and the integral denotes the end. The codensity monad therefore amounts to considering maps from [math]\displaystyle{ c }[/math] to an object in the image of [math]\displaystyle{ G, }[/math] and maps from the set of such morphisms to [math]\displaystyle{ G(d), }[/math] compatible for all the possible [math]\displaystyle{ d. }[/math] Thus, as is noted by Avery,[1] codensity monads share some kinship with the concept of integration and double dualization.

Examples

Codensity monads of right adjoints

If the functor [math]\displaystyle{ G }[/math] admits a left adjoint [math]\displaystyle{ F, }[/math] the codensity monad is given by the composite [math]\displaystyle{ G \circ F, }[/math] together with the standard unit and multiplication maps.

Concrete examples for functors not admitting a left adjoint

In several interesting cases, the functor [math]\displaystyle{ G }[/math] is an inclusion of a full subcategory not admitting a left adjoint. For example, the codensity monad of the inclusion of FinSet into Set is the ultrafilter monad associating to any set [math]\displaystyle{ M }[/math] the set of ultrafilters on [math]\displaystyle{ M. }[/math] This was proven by Kennison and Gildenhuys,[2] though without using the term "codensity". In this formulation, the statement is reviewed by Leinster.[3]

A related example is discussed by Leinster:[4] the codensity monad of the inclusion of finite-dimensional vector spaces (over a fixed field [math]\displaystyle{ k }[/math]) into all vector spaces is the double dualization monad given by sending a vector space [math]\displaystyle{ V }[/math] to its double dual [math]\displaystyle{ V^{**} = \operatorname{Hom}(\operatorname{Hom}(V, k), k). }[/math]

Thus, in this example, the end formula mentioned above simplifies to considering (in the notation above) only one object [math]\displaystyle{ d, }[/math] namely a one-dimensional vector space, as opposed to considering all objects in [math]\displaystyle{ D. }[/math] Adámek[5] show that, in a number of situations, the codensity monad of the inclusion [math]\displaystyle{ D := C^{fp} \subseteq C }[/math] of finitely presented objects (also known as compact objects) is a double dualization monad with respect to a sufficiently nice cogenerating object. This recovers both the inclusion of finite sets in sets (where a cogenerator is the set of two elements), and also the inclusion of finite-dimensional vector spaces in vector spaces (where the cogenerator is the ground field).

Sipoş showed that the algebras over the codensity monad of the inclusion of finite sets (regarded as discrete topological spaces) into topological spaces are equivalent to Stone spaces.[6] Avery shows that the Giry monad arises as the codensity monad of natural forgetful functors between certain categories of convex vector spaces to measurable spaces.[1]

Relation to Isbell duality

Di Liberti[7] shows that the codensity monad is closely related to Isbell duality: for a given small category [math]\displaystyle{ C, }[/math] Isbell duality refers to the adjunction [math]\displaystyle{ \mathcal O : Set^{C^{op}} \rightleftarrows (Set^C)^{op} : Spec }[/math] between the category of presheaves on [math]\displaystyle{ C }[/math] (that is, functors from the opposite category of [math]\displaystyle{ C }[/math] to sets) and the opposite category of copresheaves on [math]\displaystyle{ C. }[/math] The monad [math]\displaystyle{ Spec \circ \mathcal O }[/math] induced by this adjunction is shown to be the codensity monad of the Yoneda embedding [math]\displaystyle{ y: C \to Set^{C^{op}}. }[/math] Conversely, the codensity monad of a full small dense subcategory [math]\displaystyle{ K }[/math] in a cocomplete category [math]\displaystyle{ C }[/math] is shown to be induced by Isbell duality.[8]

See also

References

Footnotes

  1. 1.0 1.1 Avery, Tom (2016). "Codensity and the Giry monad". Journal of Pure and Applied Algebra 220 (3). doi:10.1016/j.jpaa.2015.08.017. 
  2. Kennison, J.F.; Gildenhuys, Dion (1971). "Equational completion, model induced triples and pro-objects". Journal of Pure and Applied Algebra 1 (4). doi:10.1016/0022-4049(71)90001-6. 
  3. Leinster 2013, §3.
  4. Leinster 2013, §7.
  5. Adámek, Jirí; Sousa, Lurdes (2019). D-Ultrafilters and their Monads. 
  6. Sipoş, Andrei (2018). "Codensity and stone spaces". Mathematica Slovaca 68. doi:10.1515/ms-2017-0080. 
  7. Di Liberti 2019.
  8. Di Liberti 2019, §2.