A unifying type-theory for higher-order (amortized) cost analysis
A unifying type-theory for higher-order (amortized) cost analysis
复制标题
高阶(摊销)成本分析的统一类型理论
DOI:
10.1145/3434308
复制
发表时间:
2021
影响因子:
--
通讯作者:
Hoffmann, Jan
中科院分区:
文献类型:
--
作者:
Rajani, Vineet;Gaboardi, Marco;Garg, Deepak;Hoffmann, Jan
This paper presents λ-amor, a new type-theoretic framework for amortized cost analysis of higher-order functional programs and shows that existing type systems for cost analysis can be embedded in it. λ-amor introduces a new modal type for representing potentials – costs that have been accounted for, but not yet incurred, which are central to amortized analysis. Additionally, λ-amor relies on standard type-theoretic concepts like affineness, refinement types and an indexed cost monad. λ-amor is proved sound using a rather simple logical relation. We embed two existing type systems for cost analysis in λ-amor showing that, despite its simplicity, λ-amor can simulate cost analysis for different evaluation strategies (call-by-name and call-by-value), in different styles (effect-based and coeffect-based), and with or without amortization. One of the embeddings also implies that λ-amor is relatively complete for all terminating PCF programs.
登录
查看更多内容
DOI:
10.1145/2951913.2951939
发表时间:
2016
期刊:
--
影响因子:
--
作者:
Gaboardi M
通讯作者:
Gaboardi M
DOI:
10.1137/0606031
发表时间:
1985-04
期刊:
Siam Journal on Algebraic and Discrete Methods
影响因子:
--
作者:
R. Tarjan
通讯作者:
R. Tarjan
影响因子:
1.5
作者:
McDermott D
通讯作者:
McDermott D
DOI:
--
发表时间:
2019
期刊:
Proc. ACM Program. Lang.
影响因子:
--
作者:
G. A. Kavvos;Edward Morehouse;Daniel R. Licata;N. Danner
通讯作者:
N. Danner
DOI:
--
发表时间:
2014
期刊:
ACM SIGPLAN International Conference on Functional Programming
影响因子:
--
作者:
T. Petříček;Dominic A. Orchard;A. Mycroft
通讯作者:
A. Mycroft