Abstracting Definitional Interpreters

David Darais, Nicholas Labich, Phuc C. Nguyen, David Van Horn
7/15/2017
cs.PL

Official code: plum-umd/abstracting-definitional-interpreters (75 stars, TeX, last commit 2017-11-25).

Abstract

In this functional pearl, we examine the use of definitional interpreters as a basis for abstract interpretation of higher-order programming languages. As it turns out, definitional interpreters, especially those written in monadic style, can provide a nice basis for a wide variety of collecting semantics, abstract interpretations, symbolic executions, and their intermixings.

Show full abstract

But the real insight of this story is a replaying of an insight from Reynold's landmark paper, Definitional Interpreters for Higher-Order Programming Languages, in which he observes definitional interpreters enable the defined-language to inherit properties of the defining-language. We show the same holds true for definitional abstract interpreters. Remarkably, we observe that abstract definitional interpreters can inherit the so-called "pushdown control flow" property, wherein function calls and returns are precisely matched in the abstract semantics, simply by virtue of the function call mechanism of the defining-language. The first approaches to achieve this property for higher-order languages appeared within the last ten years, and have since been the subject of many papers. These approaches start from a state-machine semantics and uniformly involve significant technical engineering to recover the precision of pushdown control flow. In contrast, starting from a definitional interpreter, the pushdown control flow property is inherent in the meta-language and requires no further technical mechanism to achieve.

View on arXivView PDF

Code Implementations(1)

Abstracting Definitional Interpreters

752TeX, RacketJul 14, 20129 years ago

Similar Papers

Cite this paper

@article{darais2017abstracting,
  title  = {Abstracting Definitional Interpreters},
  author = {David Darais and Nicholas Labich and Phuc C. Nguyen and David Van Horn},
  year   = {2017},
  eprint = {1707.04755},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1707.04755}
}

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/1707.04755.svg)](https://codeofpaper.com/paper/1707.04755)

Discussion