VSL 2014: VIENNA SUMMER OF LOGIC 2014

Universe Polymorphism in Coq

Authors: Matthieu Sozeau and Nicolas Tabareau

PapersPapers with AbstractsPrefaceAuthor IndexKeyword Index

Paper Information

Title:Universe Polymorphism in Coq
Authors:Matthieu Sozeau and Nicolas Tabareau
Proceedings:ITP 2014 LNCS Proceedings
Editors: Gerwin Klein and Ruben Gamboa
Keywords:type theory, universes, unification, subtyping
Abstract:

ABSTRACT. Universes are used in Type Theory to ensure consistency by checking that definitions are well-stratified according to a certain hierarchy. In the case of the Coq proof assistant, based on the predicative Calculus of Inductive Constructions (pCIC), this hierachy is built from an impredicative sort Prop and an infinite number of predicative Type(i) universes. A cumulativity relation represents the inclusion order of universes in the core theory. Originaly, universes were thought to be floating levels, and definitions implicitely constrained these levels in a consistent manner. This works well for most theories, however the globality of the levels and the constraints precluded generic constructions on universes that could work at different levels. Universe polymorphism extends this setup by adding local bindings of universes and constraints, supporting generic definitions over universes, reusable at different levels. This provides the same kind of code reuse facilities as ML-style parametric polymorphism. However, the structure and hierarchy of universes is more complex than bare polymorphic type variables. In this paper, we introduce a conservative extension of pCIC supporting universe polymorphism and treating its whole hierarchy. This new design supports typical ambiguity and implicit polymorphic generalization at the same time, keeping it mostly transparent to the user. Benchmarking the implementation as an extension of the Coq proof assistant on real-world examples gives encouraging results.

Pages:16
Talk:Jul 17 11:45
Paper:
Disclaimer | Powered by EasyChair Smart Program