TL;DR
This paper introduces a new type system extension, CF<:, that tracks variable references and escape behavior to improve safety guarantees in programming languages, with formal proofs and practical implications.
Contribution
It presents CF<:, a conservative extension of System F<: that tracks captured variables and references, enabling enhanced safety reasoning.
Findings
Embedded System F<: terms in CF<:
Expressiveness for capturing variable escape behaviors
Mechanized soundness proofs in Coq
Abstract
Type systems usually characterize the shape of values but not their free variables. However, there are many desirable safety properties one could guarantee if one could track how references can escape. For example, one may implement algebraic effect handlers using capabilities -- a value which permits one to perform the effect -- safely if one can guarantee that the capability itself does not escape the scope bound by the effect handler. To this end, we study the calculus, a conservative and lightweight extension of , to track how values and their references can be captured and escape. We show that existing terms in embed naturally in our calculus, and that many natural problems can be expressed in a system that tracks variable references like we do in . We also give mechanized proofs of the soundness…
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.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
