Hostname: page-component-77f85d65b8-t6st2 Total loading time: 0 Render date: 2026-04-18T14:36:30.040Z Has data issue: false hasContentIssue false

Proof-directed program transformation: A functional account of efficient regular expression matching

Published online by Cambridge University Press:  24 May 2021

ANDRZEJ FILINSKI*
Affiliation:
Department of Computer Science, University of Copenhagen, Denmark (e-mail: andrzej@di.ku.dk)
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the 'Save PDF' action button.

We show how to systematically derive an efficient regular expression (regex) matcher using a variety of program transformation techniques, but very little specialized formal language and automata theory. Starting from the standard specification of the set-theoretic semantics of regular expressions, we proceed via a continuation-based backtracking matcher, to a classical, table-driven state machine. All steps of the development are supported by self-contained (and machine-verified) equational correctness proofs.

Information

Type
Research Article
Copyright
© The Author(s), 2021. Published by Cambridge University Press
Submit a response

Discussions

No Discussions have been published for this article.