Monads, partial evaluations, and rewriting
Authors:
Preprint
Abstract
Monads can be interpreted as encoding formal expressions, or formal operations in the sense of universal algebra. We give a construction which formalizes the idea of "evaluating an expression partially": for example, "2+3" can be obtained as a partial evaluation of "2+2+1". This construction can be given for any monad, and it is linked to the famous bar construction, of which it gives an operational interpretation: the bar construction induces a simplicial set, and its 1-cells are partial evaluations. We study the properties of partial evaluations for general monads. We prove that whenever the monad is weakly cartesian, partial evaluations can be composed via the usual Kan filler property of simplicial sets, of which we give an interpretation in terms of substitution of terms. In terms of rewritings, partial evaluations give an abstract reduction system which is reflexive, confluent, and transitive whenever the monad is weakly cartesian. For the case of probability monads, partial evaluations correspond to what probabilists call conditional expectation of random variables. This manuscript is part of a work in progress on a general rewriting interpretation of the bar construction.Keywords
All Related Versions
This publication has 9 references indexed in Scilit:
- A probability monad as the colimit of spaces of finite samplesTheory and Applications of Categories, 2019
- From probability monads to commutative effectusesJournal of Logical and Algebraic Methods in Programming, 2018
- Towards 3-Dimensional Rewriting TheoryLogical Methods in Computer Science, 2014
- The monads of classical algebra are seldom weakly cartesianJournal of Homotopy and Related Structures, 2013
- The monad of probability measures over compact ordered spaces and its Eilenberg–Moore algebrasTopology and its Applications, 2008
- Directed Algebraic Topology, Categories and Higher CategoriesApplied Categorical Structures, 2007
- The Category Theoretic Understanding of Universal Algebra: Lawvere Theories and MonadsElectronic Notes in Theoretical Computer Science, 2007
- Generic morphisms, parametric representationsand weakly cartesian monadsTheory and Applications of Categories, 2004
- Classifying spaces and spectral sequencesPublications mathématiques de l'IHÉS, 1968