A Gentle Introduction to Guarantee Type Theory
A guarantee type is a type with a condition that must hold. Its scope tells us where we can rely on that condition. Guarantee Type Theory is a way to express what must hold about a value, a step or a whole execution. The language specifies what we can observe in each case. A guarantee must hold for every observation at its chosen scope. We show how guarantees combine and what survives an operation. For immutable values we prove that every well-typed expression denotes a value its type allows. For resources, we follow the duty to close a handle as it changes hands. If the duty was present on entry and nobody owes it on return, that path must have closed the handle.
Authors
- William Kirkman-Moller
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-26
- DOI
- https://doi.org/10.5281/zenodo.24569245
- Primary Topic
- Logic, programming, and type systems
- Type
- preprint