2015 · 10 citations · 13 references
ComputingComputer ScienceAlgorithmsProgramming LanguagesTheory Of ComputationDeductive VerificationFormal Language FoundationsProof AssistantsProof ComplexityType SystemsCoqDependent TypesHeuristicsHigher-order LogicHigher-order UnificationMethod OverloadingUnificationUniverse Polymorphism
Unification is a core component of every proof assistant or programming language featuring dependent types. In many cases, it must deal with higher-order problems up to conversion. Since unification in such conditions is undecidable, unification algorithms may include several heuristics to solve common problems. However, when the stack of heuristics grows large, the result and complexity of the algorithm can become unpredictable. Our contributions are twofold: (1) We present a full description of a new unification algorithm for the Calculus of Inductive Constructions (the base logic of Coq), including universe polymorphism, canonical structures (the overloading mechanism baked into Coq's unification), and a small set of useful heuristics. (2) We implemented our algorithm, and tested it on several libraries, providing evidence that the selected set of heuristics suffices for large developments.
13
How to make ad-hoc polymorphism less ad hoc
Philip Wadler, Stephen Blott · 1989 · 770 citations · Full text
Simple unification-based type inference for GADTs
Simon Peyton Jones, Dimitrios Vytiniotis, Stephanie Weirich et al. · 2006 · 336 citations
Dependently typed programming in Agda
Ulf Norell · 2009 · 289 citations