Singleton Types Here Singleton Types There Singleton Types Everywhere

被引:9
|
作者
Monnier, Stefan [1 ]
Haguenauer, David [1 ]
机构
[1] Univ Montreal, Montreal, PQ H3C 3J7, Canada
来源
PLPV'10: PROCEEDINGS OF THE 2010 ACM SIGPLAN WORKSHOP ON PROGRAMMING LANGUAGES MEETS PROGRAM VERIFICATION | 2010年
关键词
Dependent types; singleton types; certified compilation; POLYMORPHISM; ERASURE;
D O I
10.1145/1707790.1707792
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Singleton types are often considered a poor man's substitute for dependent types. But their generalization in the form of GADTs has found quite a following. The main advantage of singleton types and GADTs is to preserve the so-called phase distinction, which seems to be so important to make use of the usual compilation techniques. Of course, they considerably restrict the programmers, which often leads them to duplicate code at both the term and type levels, so as to reflect at the type level what happens at the term level, in order to be able to reason about it. In this article, we show how to automate such a duplication while eliminating the problematic dependencies. More specifically, we show how to compile the Calculus of Constructions into lambda(H), a non-dependently-typed language, while still preserving all the typing information. Since lambda(H) has been shown to be amenable to type preserving CPS and closure conversion, it shows a way to preserve types when doing code extraction and more generally when using all the common compiler techniques.
引用
收藏
页码:1 / 7
页数:7
相关论文
共 50 条
  • [21] 'Rosewood' - Singleton,J
    DiLuzio, A
    CINEFORUM, 1997, 37 (02): : 42 - 42
  • [22] Birthweight of the subsequent singleton pregnancy following a first twin or singleton pregnancy
    Basnet, Prativa
    Skjaerven, Rolv
    Harmon, Quaker E.
    Wilcox, Allen J.
    Klungsoyr, Kari
    Sorbye, Linn Marie
    Morken, Nils-Halvdan
    Kvalvik, Liv G.
    ACTA OBSTETRICIA ET GYNECOLOGICA SCANDINAVICA, 2023, 102 (12) : 1674 - 1681
  • [23] Medial patellar luxation grade IV according to the Singleton system can be classified into skeletally immature and skeletally matured types
    Nagahiro, Yukari
    Murakami, Sawako
    Shimada, Masakazu
    Inoue, Haruno
    Tanaka, Aki
    Kanno, Nobuo
    Harada, Yasuji
    Hara, Yasushi
    AMERICAN JOURNAL OF VETERINARY RESEARCH, 2023, 84 (07)
  • [24] Is our Sun a singleton?
    Davies, M. B.
    Malmberg, D.
    Chambers, J. E.
    Church, R. P.
    De Angeli, F.
    Mackey, D.
    Wilkinson, M. I.
    PHYSICA SCRIPTA, 2008, T130
  • [25] Singleton and Wilburn reply
    Singleton, D. (dougs@csufresno.edu), 1600, American Physical Society (108):
  • [26] DISCUSSION OF SINGLETON,AO
    HUNNICUT.AJ
    SINGLETO.AO
    ARCHIVES OF SURGERY, 1968, 96 (04) : 566 - &
  • [27] Masked singleton effects
    Held, Bjoern
    Ansorge, Ulrich
    Mueller, Hermann J.
    ATTENTION PERCEPTION & PSYCHOPHYSICS, 2010, 72 (08) : 2069 - 2086
  • [28] Theresa A. Singleton
    Douglas V. Armstrong
    Historical Archaeology, 2014, 48 (2) : 1 - 8
  • [29] On Neighborhood Singleton Consistencies
    Paparrizou, Anastasia
    Stergiou, Kostas
    PROCEEDINGS OF THE TWENTY-SIXTH INTERNATIONAL JOINT CONFERENCE ON ARTIFICIAL INTELLIGENCE, 2017, : 736 - 742
  • [30] John Singleton Copley
    不详
    LIBRARY JOURNAL, 1949, 74 (01) : 62 - 62