首页> 外文会议>Interactive theorem proving >Efficient Mendler-Style Lambda-Encodings in Cedille
【24h】

Efficient Mendler-Style Lambda-Encodings in Cedille

机译:Cedille中的高效Mendler样式Lambda编码

获取原文
获取原文并翻译 | 示例

摘要

It is common to model inductive datatypes as least fixed points of functors. We show that within the Cedille type theory we can relax functoriality constraints and generically derive an induction principle for Mendler-style lambda-encoded inductive datatypes, which arise as least fixed points of covariant schemes where the morphism lifting is defined only on identities. Additionally, we implement a destructor for these lambda-encodings that runs in constant-time. As a result, we can define lambda-encoded natural numbers with an induction principle and a constant-time predecessor function so that the normal form of a numeral requires only linear space. The paper also includes several more advanced examples.
机译:通常将归纳数据类型建模为函子的最小不动点。我们显示,在Cedille类型理论中,我们可以放宽对功能的约束,并一般性地导出Mendler式lambda编码的归纳数据类型的归纳原理,该归纳原理是协变方案的最小不动点,其中仅在身份上定义了态射提升。此外,我们为这些可恒定运行的lambda编码实现了一个析构函数。结果,我们可以用归纳原理和恒定时间的前任函数定义经过lambda编码的自然数,这样数字的正常形式只需要线性空间。本文还包括几个更高级的示例。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号