Type Universes as Allocation Effects
Paulette Koronkevich, William J. Bowman

TL;DR
This paper connects type universes in dependent type theories to memory allocation, proposing a framework where universe hierarchies influence heap structure and enable reasoning about memory safety and termination.
Contribution
It introduces a novel perspective linking universe hierarchies to heap allocation, providing a declarative system for reasoning about memory without explicit read/write analysis.
Findings
Standard ramified universe hierarchy guarantees termination by preventing heap cycles.
Impredicative universe extension may allow cyclic ground data structures with termination.
Universe polymorphism enables fine-grained heap region management.
Abstract
In this paper, we explore a connection between type universes and memory allocation. Type universe hierarchies are used in dependent type theories to ensure consistency, by forbidding a type from quantifying over all types. Instead, the types of types (universes) form a hierarchy, and a type can only quantify over types in other universes (with some exceptions), restricting cyclic reasoning in proofs. We present a perspective where universes also describe \emph{where} values are allocated in the heap, and the choice of universe algebra imposes a structure on the heap overall. The resulting type system provides a simple declarative system for reasoning about and restricting memory allocation, without reasoning about reads or writes. We present a theoretical framework for equipping a type system with higher-order references restricted by a universe hierarchy, and conjecture that many…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsHistory and Developments in Astronomy · Stellar, planetary, and galactic studies · Astronomy and Astrophysical Research
