类型的几何学(长版)
The Geometry of Types (Long Version)
摘要:
我们表明,高阶函数程序的时间复杂度分析可以有效地减少到一个可以说是更简单的(虽然计算等价)验证问题,即检查一阶不等式的有效性。这是通过给出线性依赖类型的有效推理算法来完成的,该算法在给定PCF项的情况下,在输出中产生线性依赖类型和该项的成本表达式,以及一组证明义务。实际上,当所有证明义务都有效时,输出类型判断是可推导的。这与线性依赖类型的已知相对完整性相结合,确保没有信息丢失,即,没有假阳性或假阴性此外,这一程序反映了原问题的困难:简单的PCF条款产生了一系列易于解决的举证义务。然后,后者可以被放置在一个格式适合自动或半自动验证的外部求解器。正在进行的实验评估产生了令人鼓舞的结果,这是简要介绍了文件。
英文摘要:
We show that time complexity analysis of higher-order functional programs can be effectively reduced to an arguably simpler (although computationally equivalent) verification problem, namely checking first-order inequalities for validity. This is done by giving an efficient inference algorithm for linear dependent types which, given a PCF term, produces in output both a linear dependent type and a cost expression for the term, together with a set of proof obligations. Actually, the output type judgement is derivable iff all proof obligations are valid. This, coupled with the already known relative completeness of linear dependent types, ensures that no information is lost, i.e., that there are no false positives or negatives. Moreover, the procedure reflects the difficulty of the original problem: simple PCF terms give rise to sets of proof obligations which are easy to solve. The latter can then be put in a format suitable for automatic or semi-automatic verification by external solvers. Ongoing experimental evaluation has produced encouraging results, which are briefly presented in the paper.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。