A cost-aware logical framework
A cost-aware logical framework
复制标题
成本意识逻辑框架
DOI:
10.1145/3498670
复制
发表时间:
2022
影响因子:
--
通讯作者:
Harper, Robert
中科院分区:
文献类型:
--
作者:
Niu, Yue;Sterling, Jonathan;Grodin, Harrison;Harper, Robert
We presentcalf, acost-awarelogicalframework for studying quantitative aspects of functional programs. Taking inspiration from recent work that reconstructs traditional aspects of programming languages in terms of a modal account ofphase distinctions, we argue that the cost structure of programs motivates a phase distinction betweenintensionandextension. Armed with this technology, we contribute a synthetic account of cost structure as a computational effect in which cost-aware programs enjoy an internal noninterference property: input/output behavior cannot depend on cost. As a full-spectrum dependent type theory,calfpresents a unified language for programming and specification of both cost and behavior that can be integrated smoothly with existing mathematical libraries available in type theoretic proof assistants.We evaluatecalfas a general framework for cost analysis by implementing two fundamental techniques for algorithm analysis: themethod of recurrence relationsandphysicist’s method for amortized analysis. We deploy these techniques on a variety of case studies: we prove a tight, closed bound for Euclid’s algorithm, verify the amortized complexity of batched queues, and derive tight, closed bounds for the sequential andparallelcomplexity of merge sort, all fully mechanized in the Agda proof assistant. Lastly we substantiate the soundness of quantitative reasoning incalfby means of a model construction.
登录
查看更多内容
DOI:
10.1137/0606031
发表时间:
1985-04
期刊:
Siam Journal on Algebraic and Discrete Methods
影响因子:
--
作者:
R. Tarjan
通讯作者:
R. Tarjan
DOI:
10.1145/357233.357238
发表时间:
1984
期刊:
ACM Trans. Program. Lang. Syst.
影响因子:
--
作者:
R. Constable;Daniel R. Zlatin
通讯作者:
Daniel R. Zlatin
DOI:
10.1016/0020-0190(82)90015-1
发表时间:
1982
期刊:
Inf. Process. Lett.
影响因子:
--
作者:
F. Burton
通讯作者:
F. Burton
影响因子:
3.3
作者:
R. Constable;Karl Crary;W. Sieg;Richard Sommer;C. Talcott
通讯作者:
C. Talcott
DOI:
10.23638/lmcs-16(1:2)2020
发表时间:
2017
期刊:
Log. Methods Comput. Sci.
影响因子:
--
作者:
E. Rijke;Michael Shulman;Bas Spitters
通讯作者:
Bas Spitters