arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2304.02082cs.LOmath.CT
收藏

分级 lambda 演算的一个完备的 V-等式系统

A Complete V-Equational System for Graded lambda-Calculus

Fredrik Dahlqvist, Renato Neves

AI总结:

本文为引入分级模态类型的 lambda 演算提出了一个可靠且完备的 V-等式系统,放宽了线性约束,允许受控地多次使用资源,并通过 Lipschitz 指数余单子构建了相应的模型,应用于定时和概率行为程序的分级度量等式系统。

摘要:

现代编程经常需要基于度量或类似结构的广义程序等价概念。先前的工作通过引入 V-等式的概念解决了这一挑战,即由 quantale V 的元素标记的等式,它涵盖了(超)度量、经典和模糊(不)等式等。它还为 lambda 演算的线性变体引入了 V-等式系统,其中任何给定资源必须恰好使用一次。在本文中,我们通过添加分级模态类型放宽了(通常过于严格的)线性约束,允许以受控方式多次使用资源。我们表明,这种控制在为程序员提供更多表达能力的同时,与 V-等式的交互也比线性或笛卡尔情况更丰富。我们的主要结果是为带有由我们称为 Lipschitz 指数余单子的分级模态类型的 lambda 演算引入了一个可靠且完备的 V-等式系统。我们还展示了如何通过泛构造规范地构建这样的余单子,并使用我们的结果为具有定时和概率行为的程序推导出分级度量等式系统(及相应的模型)。

英文摘要:

Modern programming frequently requires generalised notions of program equivalence based on a metric or a similar structure. Previous work addressed this challenge by introducing the notion of a V-equation, i.e. an equation labelled by an element of a quantale V, which covers inter alia (ultra-)metric, classical, and fuzzy (in)equations. It also introduced a V-equational system for the linear variant of lambda-calculus where any given resource must be used exactly once. In this paper we drop the (often too strict) linearity constraint by adding graded modal types which allow multiple uses of a resource in a controlled manner. We show that such a control, whilst providing more expressivity to the programmer, also interacts more richly with V-equations than the linear or Cartesian cases. Our main result is the introduction of a sound and complete V-equational system for a lambda-calculus with graded modal types interpreted by what we call a Lipschitz exponential comonad. We also show how to build such comonads canonically via a universal construction, and use our results to derive graded metric equational systems (and corresponding models) for programs with timed and probabilistic behaviour.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑