(Co)condition hits the Path
Tesla Zhang, Valery Isaev
TL;DR
This paper introduces (co)conditions as an extension to inductive types and records in a dependent type theory, enabling definitional equalities via pattern-based reductions and dual coconditions for records. It leverages a primitive interval type to connect cubical higher inductive types with path types, and demonstrates a type-checking-centric development rather than full metatheory. Key contributions include internalizing elimination principles with coconditions, formalizing core syntax, typing rules, and a confluence-checking algorithm, and illustrating practical constructs such as naturals with infinity and quotients-like identifications. The work offers a bridge between quotients, HITs, and cubical technology, with implementations in Arend and Aya and clear directions for future extensions and metatheory refinement.
Abstract
We propose an enhancement to inductive types and records in a dependent type theory, namely (co)conditions. With a primitive interval type, conditions generalize the cubical syntax of higher inductive types in homotopy type theory, while coconditions generalize the cubical path type. (Co)conditions are also useful without an interval type. The duality between conditions and coconditions is presented in an interesting way: The elimination principles of inductive types with conditions can be internalized with records with coconditions and vice versa. However, we do not develop the metatheory of conditions and coconditions in this paper. Instead, we only present the type checking.
