• Nem Talált Eredményt

A calculus of single substitutions for simple type theory

N/A
N/A
Protected

Academic year: 2022

Ossza meg "A calculus of single substitutions for simple type theory"

Copied!
2
0
0

Teljes szövegt

(1)

13th Joint Conference on Mathematics and Computer Science, October 1 – 3, 2020, ELTE, Hungary 85

A calculus of single substitutions for simple type theory

Ambrus Kaposi, Norbert Luksa

Department of Programming Languages and Compilers , E¨otv¨os Lor´and University {akaposi|luksan}@inf.elte.hu

Church’s simple type theory (or simply typed lambda calculus) is the main foundational language for describing type systems for programming languages. Polymorphic type systems [3] and depen- dent type systems [6] both build on the foundation of simple type theory. Traditionally [4], simple type theory is described as a relation on preterms together with an operational semantics given as a binary relation on preterms. Typing and operational semantics are usually related through preservation: if a term has type A and is related to another term by the operational semantics, then this new term also has typeA.

Algebraic descriptions of type theory [2] were recently back-ported to simple type theory using the term simply typed category with families (CwF) [1]. In an algebraic description, there are only well-typed terms which are quotiented by definitional equality, hence type preservation is trivial. In this work we investigate an alternative description of simple type theory, which does not build on a category naturally giving rise to parallel substitutions, but on single weakenings and single substitutions. In our calculus, parallel substitutions are not even mentioned. Our calculus is close to the usual informally written syntax of simple type theory. The main substitution operator takes terms t : Tm(Γ.B+ +∆)A, and u : TmΓB and results in a substituted term t[Γ, u,∆] : Tm(Γ ++∆)Awhere the ++ operator concatenates contexts.

Compared to simply typed CwFs, our calculus has fewer operators (four fewer as we don’t need to talk about parallel substitutions) but six more equations (as we need to describe interactions of single substitutions and weakenings). Contextual CwFs have the property that every context is built out of a finite number of types. We show that models of our calculus are equivalent to contextual simply typed CwFs with a base type and function space. We expect that our calculus is close to calculi with only normal forms such as hereditary substitutions [5]. We plan to investigate its generalisation to dependent types, obtaining a telescopic variant of CwFs.

References

[1] Simon Castellan, Pierre Clairambault, and Peter Dybjer. “Categories with Families: Uni- typed, Simply Typed, and Dependently Typed”. In: CoRR abs/1904.00827 (2019). arXiv:

1904.00827.url:http://arxiv.org/abs/1904.00827.

[2] Peter Dybjer. “Internal Type Theory”. In: Lecture Notes in Computer Science. Springer, 1996, pp. 120–134.

[3] Jean-Yves Girard. “The System F of Variable Types, Fifteen Years Later.” In:Theor. Com- put. Sci. 45.2 (1986), pp. 159–192. url:http://dblp.uni- trier.de/db/journals/tcs/

tcs45.html#Girard86.

[4] Robert Harper. Practical Foundations for Programming Languages. 2nd. New York, NY, USA: Cambridge University Press, 2016.

[5] Chantal Keller and Thorsten Altenkirch. “Hereditary Substitutions for Simple Types, For- malized”. In:Proceedings of the 3rd ACM SIGPLAN Workshop on Mathematically Structured Functional Programming, MSFP@ICFP 2010, Baltimore, MD, USA, September 25, 2010. Ed.

by Venanzio Capretta and James Chapman. ACM, 2010, pp. 3–10.isbn: 978-1-4503-0255-5.

doi:10.1145/1863597.1863601.url:https://doi.org/10.1145/1863597.1863601.

(2)

86 13th Joint Conference on Mathematics and Computer Science, October 1 – 3, 2020, ELTE, Hungary

[6] Per Martin-L¨of. “Constructive Mathematics and Computer Programming”. In: Proc. Of a Discussion Meeting of the Royal Society of London on Mathematical Logic and Programming Languages. London, United Kingdom: Prentice-Hall, Inc., 1985, pp. 167–184. isbn: 0-13- 561465-1. url: http://dl.acm.org/citation.cfm?id=3721.3731.

Hivatkozások

KAPCSOLÓDÓ DOKUMENTUMOK

This shows that the analogues of the Product theorem (valid for bounded rank families of simple groups of Lie type, see Theorem 2.1.4) do not hold for the family of finite

In this section we present an application of the previously developed theory to Chebyshev type problems for generalized polynomials and generalized trigonometric polynomials,

This class of problems is related to other distribution type questions (mass escape, return time distribution), it also appears in the number theory (Diophantine approximations, as

The following theorem claims this bound for every finite simple group of Lie type..

In the present work we open a new research direction for applying of the abstract algebraic theory of line groups and their representations via their use for describing of

6 Recursion Milner–Mycroft type inference Type system HM(X) ..3. 9 Recursive type, existential type

Taiani has been presented an algebraic proof of (1) in spirit of classical theory of equations by using some property of the Vandermonde's determinant.. The purpose of this note is

Erdős, Some applications of graph theory and combinatorial methods to number theory and geometry, Algebraic Methods in Graph Theory, Coll.. évi Kürschák József matematikai