arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.16353cs.PL
收藏

多项式类型化片段自动摊销资源分析

Typable Fragments of Polynomial Automatic Amortized Resource Analysis

Long Pham, Jan Hoffmann

摘要:

自动摊销资源分析(AARA)作为一种全自动的资源分析技术,可能无法返回程序的最坏情况成本边界,这从根本上是由于资源分析的不可判定性。对于不熟悉AARA技术细节的程序员来说,很难预测一个程序是否能在AARA中成功分析。受此问题的启发,本文确定了可以在基于类型的多项式AARA中分析的程序类别。首先,它表明,一元多项式AARA中的可类型化的函数的集合与复杂性类PTIME一致。其次,文章给出了可类型性的一个充分条件,公理化地要求给定程序的每个子表达式都是多项式时间的。证明了在一定的句法限制下,该条件蕴涵多元多项式AARA的可类型性。

英文摘要:

Being a fully automated technique for resource analysis, automatic amortized resource analysis (AARA) can fail in returning worst-case cost bounds of programs, fundamentally due to the undecidability of resource analysis. For programmers who are unfamiliar with the technical details of AARA, it is difficult to predict whether a program can be successfully analyzed in AARA. Motivated by this problem, this article identifies classes of programs that can be analyzed in type-based polynomial AARA. Firstly, it is shown that the set of functions that are typable in univariate polynomial AARA coincides with the complexity class PTIME. Secondly, the article presents a sufficient condition for typability that axiomatically requires every sub-expression of a given program to be polynomial-time. It is proved that this condition implies typability in multivariate polynomial AARA under some syntactic restrictions.

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

↑