A cost-aware logical framework
Yue Niu, Jonathan Sterling, Harrison Grodin, Robert Harper
摘要
We present calf , a c ost- a ware l ogical f ramework 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 of phase distinctions , we argue that the cost structure of programs motivates a phase distinction between intension and extension . 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, calf presents 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 evaluate calf as a general framework for cost analysis by implementing two fundamental techniques for algorithm analysis: the method of recurrence relations and physicist’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 and parallel complexity of merge sort, all fully mechanized in the Agda proof assistant. Lastly we substantiate the soundness of quantitative reasoning in calf by means of a model construction.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 11 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Automatic Amortized Resource Analysis with Regular Recursive Types 引用了 A unifying type-theory for higher-order (amortized) cost analysis
- A unifying type-theory for higher-order (amortized) cost analysis 引用了 Liquidate your assets: reasoning about resource usage in liquid Haskell
- Robust Resource Bounds with Static Analysis and Bayesian Inference 引用了 Automatic Amortized Resource Analysis with Regular Recursive Types
- Robust Resource Bounds with Static Analysis and Bayesian Inference 引用了 Liquidate your assets: reasoning about resource usage in liquid Haskell
- Decalf: A Directed, Effectful Cost-Aware Logical Framework 引用了 The fire triangle: how to mix substitution, dependent elimination, and effects
- Decalf: A Directed, Effectful Cost-Aware Logical Framework 引用了 A unifying type-theory for higher-order (amortized) cost analysis
- A Metalanguage for Cost-Aware Denotational Semantics 引用了 The fire triangle: how to mix substitution, dependent elimination, and effects
- Polynomial Time and Dependent Types 引用了 A unifying type-theory for higher-order (amortized) cost analysis
引用它的顶会 Paper11
- Decalf: A Directed, Effectful Cost-Aware Logical FrameworkHarrison Grodin, Yue Niu, Jonathan Sterling, Robert HarperPOPL 2024 · 11 次引用
- Robust Resource Bounds with Static Analysis and Bayesian InferenceLong Pham, Feras A. Saad, Jan HoffmannPLDI 2024 · 6 次引用
- Automatic Amortized Resource Analysis with Regular Recursive TypesJessie Grosen, David M. Kahn, Jan HoffmannLICS 2023 · 5 次引用
- A Metalanguage for Cost-Aware Denotational SemanticsYue Niu, Robert HarperLICS 2023 · 5 次引用
- Polynomial Time and Dependent TypesRobert AtkeyPOPL 2024 · 5 次引用
它引用的 Paper6
- The fire triangle: how to mix substitution, dependent elimination, and effectsPierre-Marie Pédrot, Nicolas TabareauPOPL 2020 · 42 次引用
- Liquidate your assets: reasoning about resource usage in liquid HaskellMartin A. T. Handley, Niki Vazou, Graham HuttonPOPL 2020 · 38 次引用
- Normalization for Cubical Type TheoryJonathan Sterling, Carlo AngiuliLICS 2021 · 28 次引用
- A unifying type-theory for higher-order (amortized) cost analysisVineet Rajani, Marco Gaboardi, Deepak Garg, Jan HoffmannPOPL 2021 · 26 次引用
- The taming of the rew: a type theory with computational assumptionsJesper Cockx, Nicolas Tabareau, Théo WinterhalterPOPL 2021 · 24 次引用
相关 Paper
- Static prediction of parallel computation graphsStefan K. MullerPOPL 2022 · 4 次引用
- Abstraction Functions as Types: Modular Verification of Cost and Behavior in Dependent Type TheoryHarrison Grodin, Runming Li, Robert HarperPOPL 2026 · 2 次引用
- Proof Repair across Quotient Type EquivalencesCosmo Viola, Max Fan, Talia RingerOOPSLA 2025 · 1 次引用
- Internal and Observational Parametricity for Cubical AgdaAntoine Van Muylder, Andreas Nuyts, Dominique DevriesePOPL 2024 · 2 次引用
- Algebraic Effects Meet Hoare Logic in Cubical AgdaDonnacha Oisín Kidney, Zhixuan Yang, Nicolas WuPOPL 2024 · 2 次引用
