Decalf:一个有向、效果驱动的费用感知逻辑框架
Decalf: A Directed, Effectful Cost-Aware Logical Framework
AI总结:
本文提出Decalf,一个有向、效果驱动的费用感知逻辑框架,用于研究具有效果的函数程序的定量特性。该框架通过内部相位区分程序行为与其由效果测量的费用,扩展了Calf,以容纳其他效果,如概率选择,这需要重新制定Calf的费用分析方法:而不是依赖可分离的费用概念,这里费用界只是另一个程序。形式上,每个类型都配备了内在的偏序关系,允许效果程序进行费用不等式比较。这种方法为标准方法隔离费用递归提供了一个简洁的替代方案,并可扩展到高阶、效果驱动的程序。
摘要:
我们提出了Decalf,一个有向、效果驱动的费用感知逻辑框架,用于研究具有效果的函数程序的定量特性。类似于Calf,该语言基于程序行为与其由效果测量的费用之间的内部相位区分。Decalf通过容纳其他效果(如概率选择)扩展了Calf,这需要重新制定Calf的费用分析方法:而不是依赖可分离的费用概念,这里费用界只是另一个程序。形式上,每个类型都配备了内在的偏序关系,允许效果程序进行费用不等式比较。这种方法为标准方法隔离费用递归提供了一个简洁的替代方案,并可扩展到高阶、效果驱动的程序。该开发首先介绍了Decalf类型系统,该系统基于术语之间的内在费用顺序,该顺序在行为相位中限制为扩展性相等。此公式随后应用于示例,包括纯和效果驱动的排序算法。最后,通过在增强的单纯集范畴中的模型对Decalf进行语义证明。
英文摘要:
We present Decalf, a directed, effectful cost-aware logical framework for studying quantitative aspects of functional programs with effects. Like Calf, the language is based on an internal phase distinction between the behavior of a program and its cost measured by an effect. Decalf extends Calf by accommodating other effects, such as probabilistic choice, which requires a reformulation of Calf's approach to cost analysis: rather than rely on a separable notion of cost, here a cost bound is simply another program. Formally, every type is equipped with an intrinsic preorder, allowing effectful programs to be compared for cost inequality. This approach serves as a streamlined alternative to the standard method of isolating a cost recurrence and readily extends to higher-order, effectful programs. The development proceeds by first introducing the Decalf type system, which is based on an intrinsic cost ordering among terms that restricts in the behavioral phase to extensional equality. This formulation is then applied to illustrative examples, including pure and effectful sorting algorithms. Finally, Decalf is semantically justified via a model in the topos of augmented simplicial sets.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。