High-Level Signatures and Initial Semantics

Benedikt Ahrens, André Hirschowitz, Ambroise Lafont, Marco Maggesi

Presented at Computer Science Logic (CSL 2018), Birmingham, United Kingdom 4–7 September.

Abstract

We present a device for specifying and reasoning about syntax for datatypes, programming languages, and logic calculi. More precisely, we consider a general notion of "signature" for specifying syntactic constructions. Our signatures subsume classical algebraic signatures (i.e., signatures for languages with variable binding, such as the pure lambda calculus) and extend to much more general examples. In the spirit of Initial Semantics, we define the "syntax generated by a signature" to be the initial object - if it exists - in a suitable category of models. Our notions of signature and syntax are suited for compositionality and provide, beyond the desired algebra of terms, a well-behaved substitution and the associated inductive/recursive principles. Our signatures are "general" in the sense that the existence of an associated syntax is not automatically guaranteed. In this work, we identify a large and simple class of signatures which do generate a syntax. This paper builds upon ideas from a previous attempt by Hirschowitz-Maggesi, which, in turn, was directly inspired by some earlier work of Ghani-Uustalu-Hamana and Matthes-Uustalu. The main results presented in the paper are computer-checked within the UniMath system.

How to cite

B. Ahrens, A. Hirschowitz, A. Lafont, Marco Maggesi (2018)
High-Level Signatures and Initial Semantics.
In: D. Ghica, A. Jung (eds) 27th EACSL Annual Conference on Computer Science Logic (CSL 2018).
September 4-7, 2018 - Birmingham, GB.
Leibniz International Proceedings in Informatics (LIPIcs), vol 119.
Schloss Dagstuhl--Leibniz-Zentrum fuer Informatik.

DOI: 10.4230/LIPIcs.CSL.2018.4
URN: urn:nbn:de:0030-drops-96713
URL: http://drops.dagstuhl.de/opus/volltexte/2018/9671

Download

PDF available from DROPS - Dagstuhl Research Online Publication Server.

BibTeX Entry

@InProceedings{ahrens_et_al:LIPIcs:2018:9671,
  author =	{Benedikt Ahrens and Andr{\'e} Hirschowitz and Ambroise Lafont and Marco Maggesi},
  title =	{{High-Level Signatures and Initial Semantics}},
  booktitle =	{27th EACSL Annual Conference on Computer Science Logic  (CSL 2018)},
  pages =	{4:1--4:22},
  series =	{Leibniz International Proceedings in Informatics (LIPIcs)},
  ISBN =	{978-3-95977-088-0},
  ISSN =	{1868-8969},
  year =	{2018},
  volume =	{119},
  editor =	{Dan Ghica and Achim Jung},
  publisher =	{Schloss Dagstuhl--Leibniz-Zentrum fuer Informatik},
  address =	{Dagstuhl, Germany},
  URL =		{http://drops.dagstuhl.de/opus/volltexte/2018/9671},
  URN =		{urn:nbn:de:0030-drops-96713},
  doi =		{10.4230/LIPIcs.CSL.2018.4},
  annote =	{Keywords: initial semantics, signatures, syntax, monadic substitution, computer-checked proofs}
}

Marco Maggesi - University of Florence