Metraipolis › archive › dc_a261af675ed8
Revisiting Soundness for Occurrence Typing, Semantically — arXiv:2609.16299
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.16299
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-15T22:02:52.485Z
- SHA-256 of the archived text
38777ab299b792ea0ab0d02563b5a6953c5022edc1145a48552f172f79fad014- Stable URL of this page
https://metraipolis.com/documento/dc_a261af675ed8
How to cite
Revisiting Soundness for Occurrence Typing, Semantically — arXiv:2609.16299 — arXiv (en), https://arxiv.org/abs/2609.16299 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_a261af675ed8 (Metraipolis archive dc_a261af675ed8, sha256 38777ab299b792ea0ab0d02563b5a6953c5022edc1145a48552f172f79fad014)
BibTeX
@misc{dca261af675ed8,
title = {Revisiting Soundness for Occurrence Typing, Semantically — arXiv:2609.16299},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.16299},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_a261af675ed8; sha256 38777ab299b792ea0ab0d02563b5a6953c5022edc1145a48552f172f79fad014},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.16299. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Over the past two decades, numerous systems have brought some of the benefits of dependent typing to a wide variety of new programming languages, often by restricting which terms can appear inside types. Such techniques are known as refinement types, occurrence typing, liquid types, and path dependent types, among others. However, the restrictions adopted by these systems often break the substitution property, because they explicitly disallow the ability to substitute arbitrary terms for variables inside types. This leads to significant complexity in the design and metatheory of these systems, increasing the possibility of significant errors. We consider a specific line of work on occurrence typing, namely, the calculus underlying Typed Racket due to Tobin-Hochstadt and Felleisen 2010. We show that the fundamental challenge of substitution into types resulted in multiple flaws in the formalism and the syntactic type soundness theorem of this work. These flaws are replicated in several other papers building on this work, and also surface as a soundness bug in Typed Racket itself. We identify and repair these problems, revising the core calculus of Typed Racket and giving a \emph{semantic type soundness} proof using step-indexed logical relations, formalized in Lean. We argue that this approach is simpler than it may seem, and easily scales to handle the complexity of the occurrence typing in Typed Racket.
Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-09-16 in cs.PL).
Categorie arXiv: Programming Languages (cs.PL).
Pagina del lavoro: https://arxiv.org/abs/2609.16299 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-15T21:51:28.763Z dalla pagina https://arxiv.org/catchup/cs.PL/2026-09-16?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).