Epigram prime: a demonstration

MSFP '10 Pub Date : 2010-09-25 DOI:10.1145/1863597.1863610
Peter Morris
{"title":"Epigram prime: a demonstration","authors":"Peter Morris","doi":"10.1145/1863597.1863610","DOIUrl":null,"url":null,"abstract":"It would not be too much of a stretch to imagine that dependent types will be the next big thing in programming language research. The key benefit is that by allowing types to be indexed by data, it is possible to expose more and more of the structure that lies behind the programs we write. This leads to many pay-offs, especially in refined program control and in program verification. The appearance of GADTs in Haskell has shown that there is an appetite for this kind of type discipline in the functional programming community; we believe, however, that the full benefits will only be seen with a language that is designed from the ground up around the idea of dependent types.\n The Epigram project has been at the fore-front of research in to dependently typed functional programming since 2004 [4]. While its initial prototype implementation proved to be as notorious as it was influential - It nonetheless provided inspiration for many features in the latest version of the Agda programming language [5], and beyond. After a long period of development hell, the Epigram team [2] are well on the way to being able to release a system that will finally put the toys that we've been working on in the hands of people who are impatient to have them, including ourselves. We hope that the real impact of Epigram 2 will, once again, be its influence on other, more mature, languages. The key motivation to Epigram remains that the solution to many of the challenges to writing programs in dependently typed languages lies with the types themselves. By explaining, using the type system, what the problem is, we can then use the system to help us find the solution - this is the power of dependent types at work.\n In this demonstration, I will introduce the current state of the system and will show off some of the new features, which we hope will be of interest the MSFP audience. Of the new elements, the most fundamental change is in the underlying Type Theory, which is based on Observational Type Theory (OTT) [1]. Thanks to OTT, Epigram 2 provides the ability to reason extensionally about programs, while for the first time maintaining decidable type checking. I will also demonstrate how it has been possible to extended the equality to allow certain algebraic properties, for instance the functor laws, to hold definitionally. Our Type Theory also implements a reflective approach to data types [3], we will see how we can use this to write generic programs inductively over the structure of data types.","PeriodicalId":355206,"journal":{"name":"MSFP '10","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2010-09-25","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"MSFP '10","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/1863597.1863610","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

It would not be too much of a stretch to imagine that dependent types will be the next big thing in programming language research. The key benefit is that by allowing types to be indexed by data, it is possible to expose more and more of the structure that lies behind the programs we write. This leads to many pay-offs, especially in refined program control and in program verification. The appearance of GADTs in Haskell has shown that there is an appetite for this kind of type discipline in the functional programming community; we believe, however, that the full benefits will only be seen with a language that is designed from the ground up around the idea of dependent types. The Epigram project has been at the fore-front of research in to dependently typed functional programming since 2004 [4]. While its initial prototype implementation proved to be as notorious as it was influential - It nonetheless provided inspiration for many features in the latest version of the Agda programming language [5], and beyond. After a long period of development hell, the Epigram team [2] are well on the way to being able to release a system that will finally put the toys that we've been working on in the hands of people who are impatient to have them, including ourselves. We hope that the real impact of Epigram 2 will, once again, be its influence on other, more mature, languages. The key motivation to Epigram remains that the solution to many of the challenges to writing programs in dependently typed languages lies with the types themselves. By explaining, using the type system, what the problem is, we can then use the system to help us find the solution - this is the power of dependent types at work. In this demonstration, I will introduce the current state of the system and will show off some of the new features, which we hope will be of interest the MSFP audience. Of the new elements, the most fundamental change is in the underlying Type Theory, which is based on Observational Type Theory (OTT) [1]. Thanks to OTT, Epigram 2 provides the ability to reason extensionally about programs, while for the first time maintaining decidable type checking. I will also demonstrate how it has been possible to extended the equality to allow certain algebraic properties, for instance the functor laws, to hold definitionally. Our Type Theory also implements a reflective approach to data types [3], we will see how we can use this to write generic programs inductively over the structure of data types.
警句:一个示范
可以毫不夸张地想象,依赖类型将成为编程语言研究的下一个重要领域。关键的好处是,通过允许按数据对类型进行索引,有可能暴露出我们编写的程序背后越来越多的结构。这带来了许多好处,特别是在精细的程序控制和程序验证方面。gdt在Haskell中的出现表明,函数式编程社区对这种类型的规范有兴趣;然而,我们相信,只有围绕依赖类型的思想从头开始设计的语言才能充分发挥其优势。自2004年以来,Epigram项目一直处于依赖类型函数式编程研究的前沿[4]。虽然它最初的原型实现被证明是臭名昭著的,但它仍然为Agda编程语言的最新版本[5]以及其他版本的许多特性提供了灵感。经过长时间的开发地狱,Epigram团队[2]正在顺利地发布一个系统,最终将我们一直致力于的玩具交到那些迫不及待想要拥有它们的人手中,包括我们自己。我们希望《警句2》的真正影响将再次体现在它对其他更成熟的语言的影响上。使用Epigram的主要动机仍然是,用依赖类型语言编写程序的许多挑战的解决方案在于类型本身。通过解释,使用类型系统,问题是什么,然后我们可以使用这个系统来帮助我们找到解决方案——这就是依赖类型在工作中的力量。在这个演示中,我将介绍系统的当前状态,并展示一些新特性,我们希望这些特性会引起MSFP读者的兴趣。在这些新元素中,最根本的变化是基于观测类型理论(OTT)的基础类型理论[1]。多亏了OTT, Epigram 2提供了扩展程序推理的能力,同时第一次维护了可确定的类型检查。我还将演示如何扩展等式,使某些代数性质,例如函子律,在定义上成立。我们的类型理论也实现了对数据类型的反射方法[3],我们将看到如何使用这种方法在数据类型的结构上归纳地编写泛型程序。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信