Implementing Set-Theoretic Types

Set-theoretic types provide a rich type algebra that supports unrestricted unions, intersections, and negations, together with a decidable type constraint-solving algorithm known as tallying. These types are particularly well suited for typing dynamic languages, where functions often exhibit both generic and overloaded behavior. However, the complexity of their implementation has hindered their widespread adoption. In this paper, we introduce a modular representation for set-theoretic types and revisit the algorithms for subtyping and tallying. We compare our approach with the historical CDuce implementation and evaluate the performance impact of some optimizations and design choices.

Data and Resources

Additional Info

Field Value
Source https://hal.science/hal-05369012
Author Laurent, Mickaël, Nguyen, Kim
Maintainer CCSD
Last Updated December 2, 2026, 00:56 (UTC)
Created December 2, 2026, 00:56 (UTC)
Identifier hal-05369012
Language en
Rights https://creativecommons.org/licenses/by/4.0/
contributor Univerzita Karlova [Praha, Česká republika] = Charles University [Prague, Czech Republic] = Université Charles [Prague, Republique tchèque] (UK)
creator Laurent, Mickaël
date 2025-11-13T00:00:00
harvest_object_id a64327d6-fb75-4717-9456-c59b6b9a9ffa
harvest_source_id 3374d638-d20b-4672-ba96-a23232d55657
harvest_source_title test moissonnage SELUNE
metadata_modified 2026-10-04T00:00:00
set_spec type:UNDEFINED