【24h】

The Geometry of Types

机译:类型的几何

获取原文

摘要

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.
机译:我们表明,可以将高阶函数程序的时间复杂度分析有效地减少到可以说更简单(尽管在计算上是等效的)的验证问题,即检查一阶不等式的有效性。这是通过为线性相关类型提供有效的推理算法来完成的,给定PCF术语,该算法会在输出中同时生成线性相关类型和该术语的成本表达式以及一组证明义务。实际上,如果所有证明义务均有效,则可以推导输出类型判断。结合线性相关类型的已知相对完整性,可以确保不会丢失任何信息,即不会出现误报或漏报。而且,该程序反映了原始问题的难度:简单的PCF条款产生了易于解决的证明义务集。然后可以采用适合外部外部求解器自动或半自动验证的格式。正在进行的实验评估产生了令人鼓舞的结果,本文简要介绍了这些结果。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号