Work

Deriving an Erlang Interpreter from a Mechanised Formal Semantics of Core Erlang

Year: 2025
Type: conference-paper
Abstract: We present an interpreter for Erlang in Haskell, derived from a formal semantics for Core Erlang mechanised in Coq. The interpreter function is derived from the Coq inductive definitions that make up the semantics by extracting Haskell code from Gallina functions provably equivalent to the inductive definitions, and optimising the result. The semantics is inherently non-deterministic, and it is made deterministic by introducing a scheduler component; we also present a computation graph that shows all the non-deterministic choices that arise during computation. The paper concludes with an evaluation of the work and preliminary performance data.
Language: English
Open Access status: gold
OpenAlex ID: W7086918708
FWCI: 0.991
Cites: 34
Cited by: 1
Related to: