Voir la notice de l'article provenant de la source Theory and Applications of Categories website
Call-by-push-value is a "semantic machine code", providing a set of simple primitives from which both the call-by-value and call-by-name paradigms are built. We present its operational semantics as a stack machine, suggesting a term judgement of stacks. We then see that CBPV, incorporating these stack terms, has a simple categorical semantics based on an adjunction between values and stacks. There are no coherence requirements.
We describe this semantics incrementally. First, we introduce locally indexed categories and the opGrothendieck construction, and use these to give the basic structure for interpreting the three judgements: values, stacks and computations. Then we look at the universal property required to interpret each type constructor. We define a model to be a strong adjunction with countable coproducts, countable products and exponentials.
We see a wide range of instances of this structure: we give examples for divergence, storage, erratic choice, continuations, possible worlds and games (with or without a bracketing condition), in each case resolving the strong monad from the literature into a strong adjunction. And we give ways of constructing models from other models.
Finally, we see that call-by-value and call-by-name are interpreted within the Kleisli and co-Kleisli parts, respectively, of a call-by-push-value adjunction.
@article{TAC_2005_14_a4, author = {Paul Blain Levy}, title = {Adjunction models for call-by-push-value with stacks}, journal = {Theory and applications of categories}, pages = {75--110}, publisher = {mathdoc}, volume = {14}, year = {2005}, language = {en}, url = {http://geodesic.mathdoc.fr/item/TAC_2005_14_a4/} }
Paul Blain Levy. Adjunction models for call-by-push-value with stacks. Theory and applications of categories, Tome 14 (2005), pp. 75-110. http://geodesic.mathdoc.fr/item/TAC_2005_14_a4/