We present a device for specifying and reasoning about syntax for datatypes, programming languages, and logic calculi. More precisely, we study a notion of "signature" for specifying syntactic constructions.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. In our framework, the existence of an associated syntax to a signature is not automatically guaranteed. We identify, via the notion of presentation of a signature, a large class of signatures that do generate a syntax.Our (presentable) signatures subsume classical algebraic signatures (i.e., signatures for languages with variable binding, such as the pure lambda calculus) and extend them to include several other significant examples of syntactic constructions.One key feature of our notions of signature, syntax, and presentation is that they are highly compositional, in the sense that complex examples can be obtained by gluing simpler ones. Moreover, through the Initial Semantics approach, our framework provides, beyond the desired algebra of terms, a well-behaved substitution and the induction and recursion principles associated to the 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-Uust alu.The main results presented in the paper are computer-checked within the UniMath system.

Presentable signatures and initial semantics / Benedikt Ahrens; André Hirschowitz; Ambroise Lafont; Marco Maggesi. - In: LOGICAL METHODS IN COMPUTER SCIENCE. - ISSN 1860-5974. - STAMPA. - 17:(2021), pp. 1-28. [10.23638/LMCS-17(2:17)2021]

Presentable signatures and initial semantics

Benedikt Ahrens;Marco Maggesi
2021

Abstract

We present a device for specifying and reasoning about syntax for datatypes, programming languages, and logic calculi. More precisely, we study a notion of "signature" for specifying syntactic constructions.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. In our framework, the existence of an associated syntax to a signature is not automatically guaranteed. We identify, via the notion of presentation of a signature, a large class of signatures that do generate a syntax.Our (presentable) signatures subsume classical algebraic signatures (i.e., signatures for languages with variable binding, such as the pure lambda calculus) and extend them to include several other significant examples of syntactic constructions.One key feature of our notions of signature, syntax, and presentation is that they are highly compositional, in the sense that complex examples can be obtained by gluing simpler ones. Moreover, through the Initial Semantics approach, our framework provides, beyond the desired algebra of terms, a well-behaved substitution and the induction and recursion principles associated to the 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-Uust alu.The main results presented in the paper are computer-checked within the UniMath system.
2021
17
1
28
Benedikt Ahrens; André Hirschowitz; Ambroise Lafont; Marco Maggesi
File in questo prodotto:
File Dimensione Formato  
1805.03740.pdf

accesso aperto

Descrizione: Versione presa dalla pagina web della rivista
Tipologia: Pdf editoriale (Version of record)
Licenza: Open Access
Dimensione 503.17 kB
Formato Adobe PDF
503.17 kB Adobe PDF

I documenti in FLORE sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificatore per citare o creare un link a questa risorsa: https://hdl.handle.net/2158/1242503
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? 1
social impact