arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1812.04090cs.PLcs.LO
收藏

功能命令程序的关系成本分析

Relational Cost Analysis for Functional-Imperative Programs

Weihao Qu, Marco Gaboardi, Deepak Garg

摘要:

关系成本分析旨在正式建立两个项目评估成本差异的界限。作为一个特殊的情况下,也可以使用关系成本分析,以建立在两个不同的输入相同的程序的评估成本的差异的界限。执行关系成本分析的一种方法是使用关系类型和效果系统,该系统支持对两个程序的两次执行之间的关系进行推理。基于这一基本思想,我们提出了一个类型和效果的系统,称为ARel,推理数组操作,高阶函数命令式程序的相对成本。我们的方法的关键成分是一个新的轻量级类型细化规则,我们使用它来跟踪两个数组之间的关系(差异)。这种纪律结合霍尔风格的三元组内置的类型,使我们能够表达和建立精确的相对成本的几个有趣的程序,迫切需要更新他们的数据。

英文摘要:

Relational cost analysis aims at formally establishing bounds on the difference in the evaluation costs of two programs. As a particular case, one can also use relational cost analysis to establish bounds on the difference in the evaluation cost of the same program on two different inputs. One way to perform relational cost analysis is to use a relational type-and-effect system that supports reasoning about relations between two executions of two programs. Building on this basic idea, we present a type-and-effect system, called ARel, for reasoning about the relative cost of array-manipulating, higher-order functional-imperative programs. The key ingredient of our approach is a new lightweight type refinement discipline that we use to track relations (differences) between two arrays. This discipline combined with Hoare-style triples built into the types allows us to express and establish precise relative costs of several interesting programs which imperatively update their data.

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

↑