Combining predicate transformer semantics for effects: A case study in parsing regular languages

0Citations
Citations of this article
5Readers
Mendeley users who have this article in their library.

Abstract

This paper describes how to verify a parser for regular expressions in a functional programming language using predicate transformer semantics for a variety of effects. Where our previous work in this area focused on the semantics for a single effect, parsing requires a combination of effects: non-determinism, general recursion and mutable state. Reasoning about such combinations of effects is notoriously difficult, yet our approach using predicate transformers enables the careful separation of program syntax, correctness proofs and termination proofs.

Cite

CITATION STYLE

APA

Baanen, A., & Swierstra, W. (2020). Combining predicate transformer semantics for effects: A case study in parsing regular languages. In Electronic Proceedings in Theoretical Computer Science, EPTCS (Vol. 317, pp. 39–56). Open Publishing Association. https://doi.org/10.4204/EPTCS.317.3

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