Affiliation:
1. University of Hong Kong, China
Abstract
In recent years dependent types have become a hot topic in programming language research. A key reason why dependent types are interesting is that they allow unifying types and terms, which enables both additional
expressiveness
and
economy of concepts
. Unfortunately there has been much less work on dependently typed calculi for object-oriented programming. This is partly because it is widely acknowledged that the combination between dependent types and subtyping is particularly challenging.
This paper presents λ
I
≤
, which is a dependently typed generalization of System
F
≤
. The resulting calculus follows the style of Pure Type Systems, and contains a single unified syntactic sort that accounts for expressions, types and kinds. To address the challenges posed by the combination of dependent types and subtyping, λ
I
≤
employs a novel technique that unifies
typing
and
subtyping
. In λ
I
≤
there is only a judgement that is akin to a typed version of subtyping. Both the typing relation, as well as type well-formedness are just special cases of the subtyping relation. The resulting calculus has a rich metatheory and enjoys of several standard and desirable properties, such as
subject reduction
,
transitivity of subtyping
,
narrowing
as well as standard
substitution lemmas
. All the metatheory of λ
I
≤
is mechanically proved in the Coq theorem prover. Furthermore, (and as far as we are aware) λ
I
≤
is the first dependently typed calculus that completely subsumes System
F
≤
, while preserving various desirable properties.
Funder
Research Grants Council, University Grants Committee
Publisher
Association for Computing Machinery (ACM)
Subject
Safety, Risk, Reliability and Quality,Software
Reference56 articles.
1. Andreas Abel and Dulma Rodriguez. 2008. Syntactic metatheory of higher-order subtyping. In CSL ’08. 446–460. 10.1007/978-3-540-87531-4_32 Andreas Abel and Dulma Rodriguez. 2008. Syntactic metatheory of higher-order subtyping. In CSL ’08. 446–460. 10.1007/978-3-540-87531-4_32
2. Open Call-by-Value
3. ΠΣ: Dependent Types without the Sugar
4. The Essence of Dependent Object Types
5. Nada Amin Adriaan Moors and Martin Odersky. 2012. Dependent object types. In FOOL ’12. ACM. Nada Amin Adriaan Moors and Martin Odersky. 2012. Dependent object types. In FOOL ’12. ACM.
Cited by
5 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献