Strong Dinatural Transformations and Generalised Codensity Monads

📅 2025-10-08
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This paper addresses the problem of generalizing pointwise codensity monads to monads generated by bifunctors with mixed variance. Methodologically, it introduces a novel “dicodensity monad” based on strong (Barr) dinaturality, establishes necessary and sufficient conditions for its isomorphism with the codensity structure induced by a bifunctor, and integrates Cayley representation, internal hom-objects, and Eilenberg–Moore algebra theory for categorical modeling. The main contributions are: (i) the first systematic formulation of the dicodensity monad framework, providing a semantic foundation for continuation monads with universal quantification in polymorphic λ-calculi; and (ii) a unifying characterization—via instantiations such as hom-functors—of monads arising from semirings and algebraic theories, particularly diverse monadic structures in ordered nondeterministic computation. This significantly extends the applicability of density-based constructions in type semantics and programming language semantics.

Technology Category

Application Category

📝 Abstract
We introduce dicodensity monads: a generalisation of pointwise codensity monads generated by functors to monads generated by mixed-variant bifunctors. Our construction is based on the notion of strong dinaturality (also known as Barr dinaturality), and is inspired by denotational models of certain types in polymorphic lambda calculi - in particular, a form of continuation monads with universally quantified variables, such as the Church encoding of the list monad in System F. Extending some previous results on Cayley-style representations, we provide a set of sufficient conditions to establish an isomorphism between a monad and the dicodensity monad for a given bifunctor. Then, we focus on the class of monads obtained by instantiating our construction with hom-functors and, more generally, bifunctors given by objects of homomorphisms (that is, internalised hom-sets between Eilenberg--Moore algebras). This gives us, for example, novel presentations of monads generated by different kinds of semirings and other theories used to model ordered nondeterministic computations.
Problem

Research questions and friction points this paper is trying to address.

Generalizing codensity monads using mixed-variant bifunctors
Establishing isomorphisms between monads and dicodensity monads
Presenting novel monad constructions for computational modeling
Innovation

Methods, ideas, or system contributions that make the work stand out.

Generalized codensity monads via strong dinaturality
Isomorphism conditions between monads and dicodensity monads
Novel monad presentations using hom-functors and semirings
🔎 Similar Papers
No similar papers found.