Bimonadic semantics for basic pattern matching calculi

0Citations
Citations of this article
3Readers
Mendeley users who have this article in their library.
Get full text

Abstract

The pattern matching calculi introduced by the first author are a refinement of the λ-calculus that integrates mechanisms appropriate for fine-grained modelling of non-strict pattern matching. While related work in the literature only uses a single monad, typically Maybe, for matchings, we present an axiomatic approach to semantics of these pattern matching calculi using two monads, one for expressions and one for matchings. Although these two monads only need to be relatively lightly coupled, this semantics implies soundness of all core PMC rules, and is a useful tool for exploration of the design space for pattern matching calculi. Using lifting and Maybe monads, we obtain standard Haskell semantics, and by adding another level of Maybe to both, we obtain a denotational semantics of the "matching failure as exceptions" approach of Erwig and Peyton Jones. Using list-like monads opens up interesting extensions in the direction of functional-logic programming. © Springer-Verlag Berlin Heidelberg 2006.

Cite

CITATION STYLE

APA

Kahl, W., Carette, J., & Ji, X. (2006). Bimonadic semantics for basic pattern matching calculi. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 4014 LNCS, pp. 253–273). Springer Verlag. https://doi.org/10.1007/11783596_16

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free