Failure is Not an Option An Exceptional Type Theory - Archive ouverte HAL Access content directly
Conference Papers Year :

Failure is Not an Option An Exceptional Type Theory

(1) , (2, 3)
1
2
3

Abstract

We define the exceptional translation, a syntactic translation of the Calculus of Inductive Constructions (CIC) into itself, that covers full dependent elimination. The new resulting type theory features call-by-name exceptions with decidable type-checking and canonicity, but at the price of inconsistency. Then, noticing parametricity amounts to Kreisel's realizability in this setting, we provide an additional layer on top of the exceptional translation in order to tame exceptions and ensure that all exceptions used locally are caught, leading to the parametric exceptional translation which fully preserves consistency. This way, we can consistently extend the logical expressivity of CIC with independence of premises, Markov's rule, and the negation of function extensionality while retaining η-expansion. As a byproduct, we also show that Markov's principle is not provable in CIC. Both translations have been implemented in a Coq plugin, which we use to formalize the examples.
Fichier principal
Vignette du fichier
main.pdf (634.73 Ko) Télécharger le fichier
Origin : Files produced by the author(s)
Loading...

Dates and versions

hal-01840643 , version 1 (16-07-2018)

Identifiers

Cite

Pierre-Marie Pédrot, Nicolas Tabareau. Failure is Not an Option An Exceptional Type Theory. ESOP 2018 - 27th European Symposium on Programming, Apr 2018, Thessaloniki, Greece. pp.245-271, ⟨10.1007/978-3-319-89884-1_9⟩. ⟨hal-01840643⟩
427 View
814 Download

Altmetric

Share

Gmail Facebook Twitter LinkedIn More