AdapTT: Functoriality for Dependent Type Casts
Arthur Adjedj, Meven Lennon-Bertrand, Thibaut Benjamin, Kenji Maillard
TL;DR
AdapTT provides a unified framework for structural type casting in dependent type theory by treating type formers as functors whose action on types is mediated by adapters. By modeling types as objects in NatModDOs, AdapTT encapsulates casts semantically and syntactically, and extends to AdapTT2 with type variables to internalize inductive-type signatures. The paper develops a 2D type theory that supports signatures for general inductive types, deriving functorial adapters and fusion laws, and shows how standard examples (lists, sums, W-types, Id) arise as functorial instances. Connections to generalized categories with families and presheaf models position AdapTT within established semantic frameworks, while Agda formalization demonstrates practical alignment with implementation concerns and future tooling for coercions in proof assistants.
Abstract
The ability to cast values between related types is a leitmotiv of many flavors of dependent type theory, such as observational type theories, subtyping, or cast calculi for gradual typing. These casts all exhibit a common structural behavior that boils down to the pervasive functoriality of type formers. We propose and extensively study a type theory, called AdapTT, which makes systematic and precise this idea of functorial type formers, with respect to an abstract notion of adapters relating types. Leveraging descriptions for functorial inductive types in AdapTT, we derive structural laws for type casts on general inductive type formers.
