PRESENTABLE SIGNATURES AND INITIAL SEMANTICS

被引:1
作者
Ahrens, Benedikt [1 ]
Hirschowitz, Andre [2 ]
Lafont, Ambroise [3 ]
Maggesi, Marco [4 ]
机构
[1] Univ Birmingham, Birmingham, W Midlands, England
[2] Univ Cote dAzur, LJAD, CNRS, Nice, France
[3] Univ New South Wales, Sydney, NSW, Australia
[4] Univ Firenze, Florence, Italy
基金
英国工程与自然科学研究理事会;
关键词
initial semantics; signature; syntax; monadic substitution; computer-checked proof; SYNTAX; MODULES; MONADS;
D O I
10.23638/LMCS-17(2:17)2021
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
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.
引用
收藏
页码:17:1 / 17:28
页数:28
相关论文
共 39 条
[1]  
ABADI M, 1990, CONFERENCE RECORD OF THE SEVENTEENTH ANNUAL ACM SYMPOSIUM ON PRINCIPLES OF PROGRAMMING LANGUAGES, P31, DOI 10.1145/96709.96712
[2]   On tree coalgebras and coalgebra presentations [J].
Adámek, J ;
Porst, HE .
THEORETICAL COMPUTER SCIENCE, 2004, 311 (1-3) :257-283
[3]  
Ahrens B., 2019, Logical Methods in Computer Science, V15
[4]   Modules over relative monads for syntax and semantics [J].
Ahrens, Benedikt .
MATHEMATICAL STRUCTURES IN COMPUTER SCIENCE, 2016, 26 (01) :3-37
[5]   Univalent categories and the Rezk completion [J].
Ahrens, Benedikt ;
Kapulkin, Krzysztof ;
Shulman, Michael .
MATHEMATICAL STRUCTURES IN COMPUTER SCIENCE, 2015, 25 (05) :1010-1039
[6]  
Ahrens B, 2011, J FORMALIZ REASON, V4, P25
[7]  
Altenkirch T, 1999, LECT NOTES COMPUT SC, V1683, P453
[8]   MONADS NEED NOT BE ENDOFUNCTORS [J].
Altenkirch, Thorsten ;
Chapman, James ;
Uustalu, Tarmo .
LOGICAL METHODS IN COMPUTER SCIENCE, 2015, 11 (01)
[9]  
Andre Hirschowitz, 2020, LIPICS, V167
[10]  
[Anonymous], 1997, Prentice Hall International series in computer science