We present an approach to support partiality in type-level computation without compromising expressiveness or type safety. Existing frameworks for type-level computation either require totality or implicitly assume it. For example, type families in Haskell provide a powerful, modular means of defining type-level computation. However, their current design implicitly assumes that type families are total, introducing nonsensical types and significantly complicating the metatheory of type families and their extensions. We propose an alternative design, using qualified types to pair type-level computations with predicates that capture their domains. Our approach naturally captures the intuitive partiality of type families, simplifying their metatheory. As evidence, we present the first complete proof of consistency for a language with closed type families.
Wed 6 SepDisplayed time zone: Belfast change
16:40 - 17:50 | |||
16:40 23mTalk | Constrained Type Families Research Papers DOI | ||
17:03 23mTalk | Automating Sized-Type Inference for Complexity Analysis Research Papers Martin Avanzini University of Innsbruck, Austria, Ugo Dal Lago University of Bologna, Italy / Inria, France DOI | ||
17:26 23mTalk | Inferring Scope through Syntactic Sugar Research Papers Justin Pombrio Brown University, USA, Shriram Krishnamurthi Brown University, USA, Mitchell Wand Northeastern University, USA DOI |