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

Anne Baanen, Wouter Swierstra
5/1/2020
cs.LOcs.PL
transformer-attention

Official code: Vierkantor/refinement-parsers (9 stars, TeX, last commit 2020-10-08).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

Article on using refinement calculus and algebraic effects for parsing

91TeX, AgdaFeb 18, 20196 years ago

Similar Papers

Cite this paper

@article{baanen2020combining,
  title  = {Combining predicate transformer semantics for effects: a case study in parsing regular languages},
  author = {Anne Baanen and Wouter Swierstra},
  year   = {2020},
  eprint = {2005.00197},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2005.00197}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2005.00197.svg)](https://codeofpaper.com/paper/2005.00197)

Discussion