Resource-Bounded Type Theory: Compositional Cost Analysis via Graded Modalities

We present a compositional framework for certifying resource bounds in typed programs. Terms are typed with synthesized bounds b drawn from an abstract resource lattice (L, ⪯, ⊕, ⊔, ⊥), enabling uniform treatment of time, memory, gas, and domain-specific costs. We introduce a graded feasibility modality □ᵣ with counit and monotonicity laws. Our main result is a syntactic cost soundness theorem for the recursion-free simply-typed fragment: if a closed term has synthesized bound b under budget r, its operational cost is bounded by b. We provide a syntactic term model in the presheaf topos Setᴸ—where resource bounds index a cost-stratified family of definable values—with cost extraction as a natural transformation. We prove canonical forms via reification and establish initiality of the syntactic model: it embeds uniquely into all resource-bounded models. A case study demonstrates compositional reasoning for binary search using Lean’s native recursion with separate bound proofs.

Authors

Publication Details

Journal
Maryland Shared Open Access Repository (USMAI Consortium)
Published
2025-12-07
DOI
https://doi.org/10.13016/m2swpd-uz3o
Primary Topic
Logic, programming, and type systems
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Resource-Bounded Type Theory: Compositional Cost Analysis via Graded Modalities

Mirco A. Mannucci, Corey Thuro
Maryland Shared Open Access Repository (USMAI Consortium)
Logic, programming, and type systems
article

Resource-Bounded Type Theory: Compositional Cost Analysis via Graded Modalities

Mirco A. Mannucci, Corey Thuro
article en

Abstract

We present a compositional framework for certifying resource bounds in typed programs. Terms are typed with synthesized bounds b drawn from an abstract resource lattice (L, ⪯, ⊕, ⊔, ⊥), enabling uniform treatment of time, memory, gas, and domain-specific costs. We introduce a graded feasibility modality □ᵣ with counit and monotonicity laws. Our main result is a syntactic cost soundness theorem for the recursion-free simply-typed fragment: if a closed term has synthesized bound b under budget r, its operational cost is bounded by b. We provide a syntactic term model in the presheaf topos Setᴸ—where resource bounds index a cost-stratified family of definable values—with cost extraction as a natural transformation. We prove canonical forms via reification and establish initiality of the syntactic model: it embeds uniquely into all resource-bounded models. A case study demonstrates compositional reasoning for binary search using Lean’s native recursion with separate bound proofs.

Maryland Shared Open Access Repository (USMAI Consortium)
Openalex Percentile: Top 16%
Logic, programming, and type systems
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Resource-Bounded Type Theory: Compositional Cost Analysis via Graded Modalities — Mirco A. Mannucci, Corey Thuro · Maryland Shared Open Access Repository (USMAI Consortium) (2025) | TGRS Research Map | TGRS