Software Open Access

# A Path to DOT: Formalizing Fully Path-Dependent Types (Artifact)

Rapoport, Marianna; Lhoták, Ondřej

### Dublin Core Export

<?xml version='1.0' encoding='utf-8'?>
<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
<dc:contributor>Wang, Lu</dc:contributor>
<dc:contributor>Zhao, Yaoyu</dc:contributor>
<dc:creator>Rapoport, Marianna</dc:creator>
<dc:creator>Lhoták, Ondřej</dc:creator>
<dc:date>2019-07-05</dc:date>
<dc:description>This is the artifact for our OOPSLA'19 paper that presents pDOT, a generalization of the Dependent Object Types calculus with support for paths of arbitrary length. This artifact contains the type soundness proof of pDOT mechanized in Coq.

Paper abstract:

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_1\dots a_n.T$$ that depend on the runtime value of a path $$x.a_1 \dots a_n$$ 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.</dc:description>
<dc:identifier>https://zenodo.org/record/3366234</dc:identifier>
<dc:identifier>10.5281/zenodo.3366234</dc:identifier>
<dc:identifier>oai:zenodo.org:3366234</dc:identifier>
<dc:relation>doi:10.5281/zenodo.3366233</dc:relation>
<dc:rights>info:eu-repo/semantics/openAccess</dc:rights>
<dc:subject>Scala, DOT, type systems, type safety, Coq</dc:subject>
<dc:title>A Path to DOT: Formalizing Fully Path-Dependent Types (Artifact)</dc:title>
<dc:type>info:eu-repo/semantics/other</dc:type>
<dc:type>software</dc:type>
</oai_dc:dc>

131
100
views