On-Demand Refinement of Dependent Types
Abstract
Dependent types are useful for statically checking detailed specifications of programs and detecting pattern match or array bounds errors. We propose a novel approach to applications of dependent types to practical programming languages: Instead of requiring programmers’ declaration of dependent function types (as in Dependent ML) or trying to infer them from function definitions only (as in size inference), we mine the output specification of a dependent function from the function’s call sites, and then propagate that specification backward to infer the input specification. We have implemented a prototype type inference system which supports higher-order functions, parametric polymorphism, and algebraic data types based on our approach, and obtained promising experimental results.
BibTeX
@inproceedings{unno2008demand,
author = {Hiroshi Unno and Naoki Kobayashi},
title = {{On-Demand Refinement of Dependent Types}},
booktitle = {FLOPS},
year = {2008},
url = {https://openreview.net/forum?id=DhvhpWtOap},
}Ask Althea to put this paper to the test.
Loading related content...