Directed type theory, with a twist
Fernando Rafael Chu Rivera, Paige Randall North

TL;DR
This paper introduces Twisted Type Theory (TTT), a new directed type theory based on categories, featuring a twisting operation and dependent 2-sided fibrations, enabling HoTT-like reasoning about categorical structures.
Contribution
It proposes TTT with a novel twisting operation and develops the semantics via dependent 2-sided fibrations, extending the capabilities of directed type theories.
Findings
Introduces the twisting operation on types.
Develops the theory of dependent 2-sided fibrations.
Provides a syntactic proof of Yoneda's lemma.
Abstract
In recent years, Homotopy Type Theory (HoTT) has had great success both as a foundation of mathematics and as internal language to reason about -groupoids (a.k.a. spaces). However, in many areas of mathematics and computer science, it is often the case that it is categories, not groupoids, which are the more important structures to consider. For this reason, multiple directed type theories have been proposed, i.e., theories whose semantics are based on categories. In this paper, we present a new such type theory, Twisted Type Theory (TTT). It features a novel ``twisting'' operation on types: given a type that depends both contravariantly and covariantly on some variables, its twist is a new type that depends only covariantly on the same variables. To provide the semantics of this operation, we introduce the notion of dependent 2-sided fibrations (D2SFibs), which generalize…
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
TopicsLogic, programming, and type systems · Homotopy and Cohomology in Algebraic Topology · Advanced Topology and Set Theory
