On type-cases, union elimination, and occurrence typing

13Citations
Citations of this article
6Readers
Mendeley users who have this article in their library.

Abstract

We extend classic union and intersection type systems with a type-case construction and show that the combination of the union elimination rule of the former and the typing rules for type-cases of our extension encompasses occurrence typing. To apply this system in practice, we define a canonical form for the expressions of our extension, called MSC-form. We show that an expression of the extension is typable if and only if its MSC-form is, and reduce the problem of typing the latter to the one of reconstructing annotations for that term. We provide a sound algorithm that performs this reconstruction and a proof-of-concept implementation.

Cite

CITATION STYLE

APA

Castagna, G., Laurent, M., Nguyan, K., & Lutze, M. (2022). On type-cases, union elimination, and occurrence typing. Proceedings of the ACM on Programming Languages, 6(POPL). https://doi.org/10.1145/3498674

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free