English

Revisiting Elementary Denotational Semantics

Programming Languages 2017-10-24 v4 Logic in Computer Science

Abstract

Operational semantics have been enormously successful, in large part due to its flexibility and simplicity, but they are not compositional. Denotational semantics, on the other hand, are compositional but the lattice-theoretic models are complex and difficult to scale to large languages. However, there are elementary models of the λ\lambda-calculus that are much less complex: by Coppo, Dezani-Ciancaglini, and Salle (1979), Engeler (1981), and Plotkin (1993). This paper takes first steps toward answering the question: can elementary models be good for the day-to-day work of language specification, mechanization, and compiler correctness? The elementary models in the literature are simple, but they are not as intuitive as they could be. To remedy this, we create a new model that represents functions literally as finite graphs. Regarding mechanization, we give the first machine-checked proof of soundness and completeness of an elementary model with respect to an operational semantics. Regarding compiler correctness, we define a polyvariant inliner for the call-by-value λ\lambda-calculus and prove that its output is contextually equivalent to its input. Toward scaling elementary models to larger languages, we formulate our semantics in a monadic style, give a semantics for System F with general recursion, and mechanize the proof of type soundness.

Keywords

Cite

@article{arxiv.1707.03762,
  title  = {Revisiting Elementary Denotational Semantics},
  author = {Jeremy G. Siek},
  journal= {arXiv preprint arXiv:1707.03762},
  year   = {2017}
}

Comments

25 pages, revision of POPL 2018 submission, now under submission to ESOP 2018

R2 v1 2026-06-22T20:44:55.507Z