Resource-Bounded Type Theory: Compositional Cost Analysis via Graded Modalities
| dc.contributor.author | Mannucci, Mirco A. | |
| dc.contributor.author | Thuro, Corey | |
| dc.date.accessioned | 2026-01-22T16:18:57Z | |
| dc.date.issued | 2025-12-07 | |
| dc.description.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. | |
| dc.description.uri | http://arxiv.org/abs/2512.06952 | |
| dc.format.extent | 20 pages | |
| dc.genre | journal articles | |
| dc.genre | preprints | |
| dc.identifier | doi:10.13016/m2swpd-uz3o | |
| dc.identifier.uri | https://doi.org/10.48550/arXiv.2512.06952 | |
| dc.identifier.uri | http://hdl.handle.net/11603/41520 | |
| dc.language.iso | en | |
| dc.relation.isAvailableAt | The University of Maryland, Baltimore County (UMBC) | |
| dc.relation.ispartof | UMBC Mathematics and Statistics Department | |
| dc.relation.ispartof | UMBC Student Collection | |
| dc.rights | Attribution 4.0 International | |
| dc.rights.uri | https://creativecommons.org/licenses/by/4.0/ | |
| dc.subject | Computer Science - Computational Engineering, Finance, and Science | |
| dc.subject | Computer Science - Logic in Computer Science | |
| dc.subject | Mathematics - Logic | |
| dc.title | Resource-Bounded Type Theory: Compositional Cost Analysis via Graded Modalities | |
| dc.type | Text |
Files
Original bundle
1 - 1 of 1
