A Reasonably Gradual Type Theory
Kenji Maillard, Meven Lennon-Bertrand, Nicolas Tabareau, \'Eric Tanter

TL;DR
This paper introduces GRIP, a new gradual type theory extending CastCIC, which internally handles precision, exceptions, and supports reasoning about graduality, aiming to facilitate the development of proof assistants based on CIC.
Contribution
GRIP addresses key challenges in gradual type theory by internalizing precision and exception handling, enabling more robust reasoning within a gradual proof assistant based on CIC.
Findings
GRIP supports internal reasoning about graduality and exceptions.
Metatheory of GRIP formalized in Coq and prototype in Agda.
Addresses open problems in gradual type theories for proof assistants.
Abstract
Gradualizing the Calculus of Inductive Constructions (CIC) involves dealing with subtle tensions between normalization, graduality, and conservativity with respect to CIC. Recently, GCIC has been proposed as a parametrized gradual type theory that admits three variants, each sacrificing one of these properties. For devising a gradual proof assistant based on CIC, normalization and conservativity with respect to CIC are key, but the tension with graduality needs to be addressed. Additionally, several challenges remain: (1) The presence of two wildcard terms at any type-the error and unknown terms-enables trivial proofs of any theorem, jeopardizing the use of a gradual type theory in a proof assistant; (2) Supporting general indexed inductive families, most prominently equality, is an open problem; (3) Theoretical accounts of gradual typing and graduality so far do not support handling…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsPhilosophy and Theoretical Science · Logic, programming, and type systems · Mathematics and Applications
