【24h】

Universe of Binding and Computation

机译:结合和计算宇宙

获取原文

摘要

We construct a logical framework supporting datatypes that mix binding and computation, implemented as a universe in the depen-dently typed programming language Agda 2. We represent binding pronominally, using well-scoped de Bruijn indices, so that types can be used to reason about the scoping of variables. We equip our universe with datatype-generic implementations of weaken-ing, substitution, exchange, contraction, and subordination-based strengthening, so that programmers need not reimplement these op-erations for each individual language they define. In our mixed, pronominal setting, weakening and substitution hold only under some conditions on types, but we show that these conditions can be discharged automatically in many cases. Finally, we program a variety of standard difficult test cases from the literature, such as normalization-by-evaluation for the untyped A-calculus, demon-strating that we can express detailed invariants about variable usage in a program's type while still writing clean and clear code.
机译:我们构建一个支持数据类型的逻辑框架,这些数据类型混合绑定和计算,实现为Depe-Dented Clyened编程语言AGDA 2中的宇宙。我们代表绑定的统治,使用井 - 范围的de Bruijn指数,因此可以使用这些类型来推理变量的范围。我们用DataType泛型实现的宇宙提供了弱化,替代,交换,收缩和基于从属的加强,因此程序员不需要为他们定义的每个单独的语言重新实施这些Op-eration。在我们的混合,分批设置,弱化和替代仅在某些类型的条件下持有,但我们表明这些条件可以在许多情况下自动排放。最后,我们从文献中编程了各种标准困难测试用例,例如逐个评估术语的归一化的A-Scalulus,说明表明我们可以在程序类型中表达关于可变使用情况的详细不变,同时仍然编写清洁和清除代码。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号