The Dependent Object Types (DOT) calculus aims to formalize the Scala programming language with a focus on path-dependent types – types such as x.a.b.T that depend on the runtime value of a path x.a.b to an object. Unfortunately, existing formulations of DOT can model only types of the form x.A which depend on variables rather than general paths. This restriction makes it impossible to model nested module dependencies. Nesting small components inside larger ones is a necessary ingredient of a modular, scalable language. DOT’s variable restriction thus undermines its ability to fully formalize a variety of programming-language features including Scala’s module system, family polymorphism, and covariant specialization.
This paper presents the pDOT calculus, which generalizes DOT to support types that depend on paths of arbitrary length, as well as singleton types to track path equality. We show that naive approaches to add paths to DOT make it inherently unsound, and present necessary conditions for such a calculus to be sound. We discuss the key changes necessary to adapt the techniques of the DOT soundness proofs so that they can be applied to pDOT. Our paper comes with a Coq-mechanized type-safety proof of pDOT. With support for paths of arbitrary length, pDOT can realize DOT’s full potential for formalizing Scala-like calculi.
Wed 23 OctDisplayed time zone: Beirut change
16:00 - 17:30 | |||
16:00 22mTalk | Formal Foundations of Serverless Computing OOPSLA Abhinav Jangda University of Massachusetts Amherst, Donald Pinckney University of Massachusetts Amherst, Yuriy Brun University of Massachusetts Amherst, Arjun Guha University of Massachusetts, Amherst Link to publication DOI Pre-print | ||
16:22 22mTalk | A Formalization of Java’s Concurrent Access Modes OOPSLA John Bender University of California, Los Angeles, Jens Palsberg University of California, Los Angeles DOI | ||
16:45 22mTalk | A Path to DOT: Formalizing Fully Path-Dependent Types OOPSLA DOI Pre-print Media Attached | ||
17:07 22mTalk | Qubit Allocation as a Combination of Subgraph Isomorphism and Token Swapping OOPSLA Marcos Yukio Siraichi UFMG, Vinícius Fernandes dos Santos UFMG, Caroline Collange INRIA, Fernando Magno Quintão Pereira UFMG DOI Pre-print |