ComputingComputer ScienceFormal MethodsProgramming LanguagesSemanticsAbstract InterpretationData TypesFormal SemanticsType CheckingType SystemsDependent TypesGradual TypingLanguage VerificationRefinementRefinement TypesRigidity TheoryType-logical Semantics
Refinement types are an effective language-based verification technique. However, as any expressive typing discipline, its strength is its weakness, imposing sometimes undesired rigidity. Guided by abstract interpretation, we extend the gradual typing agenda and develop the notion of gradual refinement types, allowing smooth evolution and interoperability between simple types and logically-refined types. In doing so, we address two challenges unexplored in the gradual typing literature: dealing with imprecise logical information, and with dependent function types. The first challenge leads to a crucial notion of locality for refinement formulas, and the second yields novel operators related to type- and term-level substitution, identifying new opportunity for runtime errors in gradual dependently-typed languages. The gradual language we present is type safe, type sound, and satisfies the refined criteria for gradually-typed languages of Siek et al. We also explain how to extend our approach to richer refinement logics, anticipating key challenges to consider.
27
Patrick Cousot, Radhia Cousot · 1977 · 6.2K citations
A formulation of the simple theory of types
Alonzo Church · Journal of Symbolic Logic · 1940 · 1.9K citations
Contracts for higher-order functions
Robert Bruce Findler, Matthias Felleisen · 2002 · 441 citations
Patrick M. Rondon, Ming Kawaguci, Ranjit Jhala · 2008 · 388 citations
Dependent types and multi-monadic effects in F*
Nikhil Swamy, Cătălin Hriţcu, Chantal Keller et al. · 2016 · 292 citations · Full text