一种高阶语言的静态代价分析
A static cost analysis for a higher-order language
摘要:
我们开发了一个静态的复杂性分析高阶函数语言与结构列表递归。表达式的复杂度是由代价和势组成的一对。前者被定义为在标准的大步操作语义中表达式的求值派生的大小。后者是对使用该表达的价值的“未来”成本的衡量。转换函数tr将目标表达式映射到复杂性。我们的主要结果是下面的合理性定理:如果t是目标语言中的一个术语,那么tr(t)的成本分量是计算t的成本的上界。在Coq中形式化了可靠性定理的证明,提供了目标语言中任何表达式的成本的经认证的上限。
英文摘要:
We develop a static complexity analysis for a higher-order functional language with structural list recursion. The complexity of an expression is a pair consisting of a cost and a potential. The former is defined to be the size of the expression's evaluation derivation in a standard big-step operational semantics. The latter is a measure of the "future" cost of using the value of that expression. A translation function tr maps target expressions to complexities. Our main result is the following Soundness Theorem: If t is a term in the target language, then the cost component of tr(t) is an upper bound on the cost of evaluating t. The proof of the Soundness Theorem is formalized in Coq, providing certified upper bounds on the cost of any expression in the target language.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。