Undecidability of D<: and Its Decidable FragmentsDistinguished Paper
Dependent Object Types (DOT) is a calculus with path dependent types, intersection types, and object self-references, which serves as the core calculus of Scala 3. Although the calculus has been proven sound, it remains open whether type checking in DOT is decidable. In this paper, we establish undecidability proofs of type checking and subtyping of D<:, a syntactic subset of DOT. It turns out that even for D<:, undecidability is surprisingly difficult to show, as evidenced by counterexamples for past attempts. To prove undecidability, we discover an equivalent definition of the D<: subtyping rules in normal form. Besides being easier to reason about, this definition makes the phenomenon of bad bounds explicit as a single inference rule. After removing this rule, we discover two decidable fragments of D<: subtyping and identify algorithms to decide them. We prove soundness and completeness of the algorithms with respect to the fragments, and we prove that the algorithms terminate. Our proofs are mechanized in a combination of Coq and Agda.
slides (pre-clean.pdf) | 575KiB |
Thu 23 JanDisplayed time zone: Saskatchewan, Central America change
14:00 - 15:05 | Type SystemsResearch Papers at Ile de France II (IDF II) Chair(s): Peter Thiemann University of Freiburg, Germany | ||
14:00 21mTalk | Undecidability of D<: and Its Decidable FragmentsDistinguished Paper Research Papers Link to publication DOI Media Attached File Attached | ||
14:21 21mTalk | Decidable Subtyping for Path Dependent Types Research Papers Julian Mackay Victoria University of Wellington, Alex Potanin Victoria University of Wellington, Jonathan Aldrich Carnegie Mellon University, Lindsay Groves Victoria University of Wellington Link to publication DOI Media Attached | ||
14:43 21mTalk | Dependent Type Systems as Macros Research Papers Stephen Chang Northeastern University, Michael Ballantyne PLT @ Northeastern University, Milo Turner PLT @ Northeastern University, William J. Bowman University of British Columbia Link to publication DOI Media Attached File Attached |