Topics in Dependent Type Theory ('25-'26)

Topics in Dependent Type Theory ('25-'26)

Supervisors:

Dependent Type Theory

Martin-Löf type theory (MLTT) [ML82, ML84] is a formal system introduced by Per Martin-Löf as an alternative to set theory. MLTT can serve both as a logic and as a programming language. These two aspects are seamlessly combined in a single formalism using the Curry-Howard correspondence, which encodes propositions as program types, and proofs as programs computing evidence. For example,

As a logic, MLTT can replace Zermelo-Fraenkel set theory as a foundation for mathematics. In other words, it is possible to express general mathematical theorems and proofs within MLTT, and the expressive power of MLTT is similar to that of set theory. However, MLTT has a number of advantages, compared to set theory:

As a programming language, it has the advantage that it can check safety and correctness of programs at compile-time. This is achieved by running a type-checker (which is the exact same algorithm as the proof-checker mentioned above), which will verify

MLTT is part of a broader family of foundational mathematical theories called dependent type theories. Examples of dependently typed proof assistants include Agda, Coq (which is being renamed to Rocq), Lean and Idris. A more exhaustive list is found on Wikipedia. Those systems are also called proof-assistants, as the user may input a proof (a computer program) interactively, that is, with constant feedback from the type-checker.

Possible Subjects

We propose the option to work on a master thesis in the area of dependent type theory, and including formalization work in Agda, Lean or Coq/Rocq, possibly leading to contributions to the library ecosystem of these languages. Some relevant concepts are further introduced below.

  1. Formalization of one or more notions of algebraic theories, including their syntax and categories of algebras/models, in Agda --cubical or Lean. There are currently formalizations of SOMATs in plain Agda (using a possibly unnecessary detour where presheaves are represented as □-coalgebras) and MATs in Cubical Agda.
  2. Porting or reconstructing part of the (Bi)Sikkel project [CND25, CND22] – a formalization and implementation of multimodal type theory and its general presheaf model, in Agda using XTT (Agda --cubical) as a metatheory. This should simplify parts of the existing implementation, and non-Sikkel-specific concepts would be contributed to the cubical library.
  3. Formalize interesting categorical concepts in Agda --cubical as contributions to the cubical library.
  4. When defining a mathematical concept in type theory, there are often multiple ways to do so, which may or may not lead to equivalent notions. Even when equivalent, one definition may be more practical to work with than another. A master thesis could further explore a different definition of functors and natural transformations than the one that is currently present in the Agda libraries.

A thesis on these subjects can be written in either Dutch or English.

Equality in Type Theory (Subjects 1-4)

Equality is an important topic of interest in type theory. We distinguish two forms of equality:

The fact that we have an identity type a ≡ b for a, b : A (a and b of type A) means that we can consider objects p : a ≡ b of the identity type, called equality/identity proofs. One wonders how we should think and reason about these. First, we should note that these proofs have a role not only in further proving activities but also in programming. Indeed, if T(x) is a type dependent on x : A and we have a proof p : a ≡ b, then we are allowed to convert programs of type T(a) to programs of type T(b), via a function subst(T)(p) : T(a) -> T(b) (as present in both the Agda standard library and the Agda cubical library). However, since the types T(a) and T(b) may not be definitionally equal, they may classify different programs, and as such, the conversion function subst(T)(p) : T(a) -> T(b) actually has to perform a computation. This computation needs to be derived from T and p, so p is not just a proof of a fact, but actually carries the computationally relevant information about how to get from a to b.

There are several takes on what an equality proof is:

Universal Algebra and Programming Languages (Subjects 1-2)

Universal algebra is the study of algebraic theories without commiting to a specific one (such as group theory). An algebraic theory can be specified by listing a number of operations, each with an arity, and a number of equations.

When we specify an algebraic theory, we get:

The framework of algebraic theories is of interest to mathematics, but also to the study of programming languages and proof assistants. Models of a programming language can be denotational models in which we study a logic’s soundness (a.k.a. consistency), but remarkably, important parts of a programming language implementation such as a type-checker and a compiler can also be made to fit the definition of a model/algebra of an algebraic theory and this turns out to be a good way to structure the implementation’s source code [AACMM21, FS22].

Relevant courses

Courses particularly relevant here (but not indispensable) are:

Further reading

Relevant resources can be found here.

References

This is the list of references that are appropriate in the text above, but the cited papers are not necessarily the best point to start reading. See “Further reading” above instead.