pith. sign in

arxiv: 2507.13792 · v5 · pith:EKAXBCURnew · submitted 2025-07-18 · 💻 cs.PL

Don't exhaust, don't waste: Resource-aware soundness for big-step semantics

classification 💻 cs.PL
keywords semanticsresourceresource-awaresoundnesstypebesidesbig-stepeither
0
0 comments X
read the original abstract

We extend the semantics and type system of a lambda calculus equipped with common constructs to be "resource-aware". That is, the semantics keeps track of the usage of resources, and is stuck, besides in case of type errors, if either a needed resource is exhausted, or a provided resource would be wasted. In such way, the type system guarantees, besides standard soundness, that for well-typed programs there is a computation where no resource gets either exhausted or wasted. The extension is parametric on an arbitrary "grade algebra", modeling an assortment of possible usages, and does not require ad-hoc changes to the underlying language. To this end, the semantics needs to be formalized in big-step style; as a consequence, expressing and proving (resource-aware) soundness is challenging, and is achieved by applying recent techniques based on coinductive reasoning.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Same Coeffect, Different Base: Connecting Two Dominant Approaches to Graded Types

    cs.PL 2026-06 conditional novelty 8.0

    Translations between graded-base and linear-base graded coeffect calculi establish that both express the same context dependence while preserving types, grades, and operational semantics.