Restriction types and coercive subtyping - from Rzk to comprehension categories
Master Project


Context

Rzk is a proof assistant for the simplicial type theory of Riehl and Shulman, used to formalise synthetic ∞-category theory. Its types can depend on shapes, such as the triangle 0 ≤ s ≤ t ≤ 1, described by constraints called topes. Rzk splits Riehl and Shulman’s extension types into two simpler constructs: a function type over a shape and a restriction type, which pins a type’s values on part of the shape. The original paper reshapes such types silently. Rzk replaces this with an explicit subtyping relation, so that, for example, a function that is fixed on one face of a triangle can be used where a less restricted one is expected.

Najmaei, van der Weide, Ahrens and North give a type theory, derived from comprehension categories, with built-in primitives for coercive subtyping. This project asks whether Rzk’s restriction types fit that type theory, and which of Rzk’s subtyping rules then become derivable instead of being built into the checker.

Tasks

  1. Learn the type theory of Najmaei et al. and the subtyping rules of Rzk (§4 of the Rzk paper).
  2. Implement a type checker for that type theory, or extend an existing implementation, in Haskell or Agda.
  3. Add a small shape layer (one directed interval, topes built from ≤, =, ∧ and ∨) together with function types over shapes and restriction types. Tope entailment can be decided by brute force at this scale.
  4. Test the result on examples from Rzk’s sHoTT library, such as hom types, composition in Segal types, and restricted faces of triangles.
  5. Report which of Rzk’s subtyping rules are derivable, which need new primitives, and how the two checkers compare on the examples.

What you will learn

Dependent type theory and its implementation, bidirectional type checking, subtyping in dependent types, and the basics of simplicial type theory as used in Rzk. The categorical semantics of the type theory is background reading, not a prerequisite. The project can be done without category theory.

Prerequisites

A course on type systems or functional programming. Haskell or Agda, or willingness to learn one quickly.

Reading

  • Niyousha Najmaei, Niels van der Weide, Benedikt Ahrens, and Paige Randall North. From Semantics to Syntax: A Type Theory for Comprehension Categories. 2025. https://arxiv.org/abs/2503.10868
  • Nikolai Kudasov, Violetta Sim, and Benedikt Ahrens. Rzk: a Proof Assistant for Synthetic ∞-Categories. 2026. https://arxiv.org/abs/2607.12207 (§2 for examples, §4 for the subtyping rules)
  • Emily Riehl and Michael Shulman. A type theory for synthetic ∞-categories. Higher Structures, 2017. https://arxiv.org/abs/1705.07442 (§2 for shapes and topes)
  • Rzk and the sHoTT library: https://rzk-lang.github.io/rzk, https://rzk-lang.github.io/sHoTT

Restriction types and coercive subtyping - from Rzk to comprehension categories

Supervisor(s): Benedikt Ahrens
Posted: November 04, 2026