A Verified Earley Parser

Martin Rau, Tobias Nipkow

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

An Earley parser is a top-down parsing technique that is capable of parsing arbitrary context-free grammars. We present a functional implementation of an Earley parser verified using the interactive theorem prover Isabelle/HOL. Our formalization builds upon Cliff Jones' extensive, refinement-based paper proof. We implement and prove soundness and completeness of a functional recognizer modeling Jay Earley's original imperative implementation and extend it with the necessary data structures to enable the construction of parse trees following the work of Elizabeth Scott. Building upon this foundation, we develop a functional parser and prove its soundness. We round off the paper by providing an informal argument and empirical data regarding the running time and space complexity of our implementation.

Original languageEnglish
Title of host publication15th International Conference on Interactive Theorem Proving, ITP 2024
EditorsYves Bertot, Temur Kutsia, Michael Norrish
PublisherSchloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing
ISBN (Electronic)9783959773379
DOIs
StatePublished - Sep 2024
Event15th International Conference on Interactive Theorem Proving, ITP 2024 - Tbilisi, Georgia
Duration: 9 Sep 202414 Sep 2024

Publication series

NameLeibniz International Proceedings in Informatics, LIPIcs
Volume309
ISSN (Print)1868-8969

Conference

Conference15th International Conference on Interactive Theorem Proving, ITP 2024
Country/TerritoryGeorgia
CityTbilisi
Period9/09/2414/09/24

Keywords

  • Earley
  • Isabelle
  • Parsers
  • Verification

Fingerprint

Dive into the research topics of 'A Verified Earley Parser'. Together they form a unique fingerprint.

Cite this