Lune

LICS2023顶会

Automatic Amortized Resource Analysis with Regular Recursive Types

Jessie Grosen, David M. Kahn, Jan Hoffmann

摘要

The goal of automatic resource bound analysis is to statically infer symbolic bounds on the resource consumption of the evaluation of a program. A longstanding challenge for automatic resource analysis is the inference of bounds that are functions of complex custom data structures. This article builds on type-based automatic amortized resource analysis (AARA) to address this challenge. AARA is based on the potential method of amortized analysis and reduces bound inference to standard type inference with additional linear constraint solving, even when deriving non-linear bounds. A key component of AARA are resource functions that generate the space of possible bounds for values of a given type while enjoying necessary closure properties.

Existing work on AARA defined such functions for many data structures such as lists of lists but the question of whether such functions exist for arbitrary data structures remained open. This work answers this questions positively by uniformly constructing resource polynomials for algebraic data structures defined by regular recursive types. These functions are a generalization of all previously proposed polynomial resource functions and can be seen as a general notion of polynomials for values of a given recursive type. A resource type system for FPC, a core language with recursive types, demonstrates how resource polynomials can be integrated with AARA while preserving all benefits of past techniques. The article also proposes the use of new techniques useful for stating the rules of this type system succinctly and proving it sound against a small-step cost semantics. First, multivariate potential annotations are stated in terms of free semimodules, substantially abstracting details of the presentation of annotations and the proofs of their properties. Second, a logical relation giving semantic meaning to resource types enables a proof of soundness by a single induction on typing derivations.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • A cost-aware logical framework 引用了 A unifying type-theory for higher-order (amortized) cost analysis
  • A cost-aware logical framework 引用了 Recurrence extraction for functional programs through call-by-push-value
  • Integrating Resource Analyses via Resource Decomposition 引用了 A cost-aware logical framework
  • Integrating Resource Analyses via Resource Decomposition 引用了 Verifying and Synthesizing Constant-Resource Implementations with Types
  • Integrating Resource Analyses via Resource Decomposition 引用了 Robust Resource Bounds with Static Analysis and Bayesian Inference
  • Integrating Resource Analyses via Resource Decomposition 引用了 Recurrence extraction for functional programs through call-by-push-value
  • A unifying type-theory for higher-order (amortized) cost analysis 引用了 Recurrence extraction for functional programs through call-by-push-value
  • Robust Resource Bounds with Static Analysis and Bayesian Inference 引用了 A cost-aware logical framework
  • Robust Resource Bounds with Static Analysis and Bayesian Inference 引用了 Recurrence extraction for functional programs through call-by-push-value
  • Denotational Foundations for Expected Cost Analysis 引用了 A cost-aware logical framework
  • Denotational Foundations for Expected Cost Analysis 引用了 A unifying type-theory for higher-order (amortized) cost analysis
  • Denotational Foundations for Expected Cost Analysis 引用了 Recurrence extraction for functional programs through call-by-push-value
  • Handling Exceptions and Effects with Automatic Resource Analysis 引用了 A cost-aware logical framework
  • Handling Exceptions and Effects with Automatic Resource Analysis 引用了 A unifying type-theory for higher-order (amortized) cost analysis
  • Handling Exceptions and Effects with Automatic Resource Analysis 引用了 Verifying and Synthesizing Constant-Resource Implementations with Types
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper4

  1. Robust Resource Bounds with Static Analysis and Bayesian InferenceLong Pham, Feras A. Saad, Jan HoffmannPLDI 2024 · 6 次引用
  2. Denotational Foundations for Expected Cost AnalysisPedro H. Azevedo de AmorimOOPSLA 2025 · 4 次引用
  3. Integrating Resource Analyses via Resource DecompositionLong Pham, Yue Niu, Nathaniel Glover, Feras Saad 等OOPSLA 2025
  4. Handling Exceptions and Effects with Automatic Resource AnalysisEthan Chu, Yiyang Guo, Jan HoffmannOOPSLA 2026

它引用的 Paper4

  1. Verifying and Synthesizing Constant-Resource Implementations with TypesVan Chan Ngo, Mario Dehesa-Azuara, Matthew Fredrikson, Jan HoffmannS&P 2017 · 51 次引用
  2. A unifying type-theory for higher-order (amortized) cost analysisVineet Rajani, Marco Gaboardi, Deepak Garg, Jan HoffmannPOPL 2021 · 26 次引用
  3. A cost-aware logical frameworkYue Niu, Jonathan Sterling, Harrison Grodin, Robert HarperPOPL 2022 · 23 次引用
  4. Recurrence extraction for functional programs through call-by-push-valueG. A. Kavvos, Edward Morehouse, Daniel R. Licata, Norman DannerPOPL 2020 · 20 次引用

相关 Paper

  1. Automatic Linear Resource Bound Analysis for Rust via Prophecy PotentialsQihao Lian, Di WangOOPSLA 2025 · 1 次引用
  2. Automated Amortised Analysis of Skew Heaps and Leftist HeapsArmin Walch, Georg Moser, Berry Schoenmakers, Florian ZulegerCAV 2026
  3. Synthesis with Asymptotic Resource BoundsQinheping Hu, John Cyphert, Loris D'Antoni, Thomas W. RepsCAV 2021 · 5 次引用
  4. Resource-Aware Soundness for Big-Step SemanticsRiccardo Bianchini, Francesco Dagnino, Paola Giannini, Elena ZuccaOOPSLA 2023 · 6 次引用
  5. ATLAS: Automated Amortised Complexity Analysis of Self-adjusting Data StructuresLorenz Leutgeb, Georg Moser, Florian ZulegerCAV 2021 · 9 次引用
黄昏的海面,两侧是细线勾勒的悬崖