Refinement Kinds: Type-Safe Programming with Practical Type-Level Computation
This work introduces the novel concept of {\em kind refinement},
which we develop in the context of an explicitly
polymorphic ML-like language with type-level computation.
Just as type
refinements embed rich specifications by means of comprehension
principles expressed by predicates over values in the type domain,
kind refinements provide rich {\em kind} specifications by means of
predicates over {\em types} in the kind domain.
By leveraging our powerful refinement kind discipline, types in our
language are not just used to statically classify program
expressions and values, but also conveniently manipulated as
tree-like data structures, with their kinds refined by logical
constraints on such structures. Remarkably, the resulting typing
and kinding disciplines allow for powerful forms of type reflection,
ad-hoc polymorphism and type-directed meta-programming, which are
often found in modern software development, but not typically expressible in a
type-safe manner in general purpose languages.
We validate our approach both formally and pragmatically
by establishing the standard meta-theoretical results of type safety and
via a prototype implementation of a kind checker, type checker and
interpreter for our language.
Thu 24 OctDisplayed time zone: Beirut change
16:00 - 17:30 | |||
16:00 22mTalk | Mergeable Replicated Data Types OOPSLA Gowtham Kaki Purdue University, Swarn Priya Purdue University, KC Sivaramakrishnan IIT Madras, Suresh Jagannathan Purdue University Link to publication DOI | ||
16:22 22mTalk | Refinement Kinds: Type-Safe Programming with Practical Type-Level Computation OOPSLA Luís Caires Universidade Nova de Lisboa and NOVA LINCS, Bernardo Toninho Universidade Nova de Lisboa and NOVA LINCS DOI | ||
16:45 22mTalk | System FR: Formalized Foundations for the Stainless Verifier OOPSLA DOI | ||
17:07 22mTalk | Complete Monitors for Gradual Types OOPSLA Ben Greenman PLT @ Northeastern University, Matthias Felleisen PLT @ Northeastern University, Christos Dimoulas PLT @ Northwestern University DOI |