Definitional Functoriality for Dependent (Sub)Types - Ecole Centrale de Nantes Accéder directement au contenu
Pré-Publication, Document De Travail Année : 2023

Definitional Functoriality for Dependent (Sub)Types

Résumé

Dependently typed proof assistant rely crucially on definitional equality, which relates types and terms that are automatically identified in the underlying type theory. This paper extends type theory with definitional functor laws, equations satisfied propositionally by a large class of container-like type constructors F : Type -> Type, equipped with a mapF : (A -> B) -> FA -> FB, such as lists or trees. Promoting these equations to definitional ones strengthens the theory, enabling slicker proofs and more automation for functorial type constructors. This extension is used to modularly justify a structural form of coercive subtyping, propagating subtyping through type formers in a map-like fashion. We show that the resulting notion of coercive subtyping, thanks to the extra definitional equations, is equivalent to a natural and implicit form of subsumptive subtyping. The key result of decidability of type-checking in a dependent type system with functor laws for lists has been entirely mechanized in Coq. This is the extended version of "Definitional functoriality for Dependent (Sub)Types" (ESOP'24).
Fichier principal
Vignette du fichier
main.pdf (414.44 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)
licence : CC BY - Paternité

Dates et versions

hal-04160858 , version 1 (20-07-2023)
hal-04160858 , version 2 (23-10-2023)
hal-04160858 , version 3 (08-04-2024)

Licence

Paternité

Identifiants

  • HAL Id : hal-04160858 , version 3

Citer

Théo Laurent, Meven Lennon-Bertrand, Kenji Maillard. Definitional Functoriality for Dependent (Sub)Types. 2023. ⟨hal-04160858v3⟩
177 Consultations
163 Téléchargements

Partager

Gmail Facebook X LinkedIn More