Mathematically Structured Programming Group

MSP group photo, taken in Balloch 2026

We also have a group photo from our away day to the Isle of Bute 2023.

Next MSP101 seminar

Vikraman Choudhury

How to Fill Polygons
Vikraman Choudhury (MSP)
Tuesday 8 December 2026, 15:00, LT619

AbstractFor over a year, Rin, Fred, and I have been developing a large body of formalised univalent mathematics in Cubical Agda. Much of this work involves constructing higher-dimensional paths, for which Cubical Agda provides the primitive hcomp operation, which computes the missing lid of an open box. In practice, hcomp is too low-level to use directly, and we started accumulating ad-hoc pasting lemmas for various shapes in our library's prelude, with recurring disagreements about what to call them.

Recently, while refactoring our proofs, we thought of a naming and pasting scheme that appears to work uniformly for 2-dimensional polygons, and we started wondering whether the scheme can be given a precise mathematical justification, which is what I will talk about. This talk is not about our research itself, but about how an argument over the names of lemmas led us to some interesting mathematics, in particular Connes' cyclic category Λ.

See the MSP101 seminar page for a full list of future and past talks.

Research Themes

Our vision is to use mathematics to understand the nature of computation, and to turn that understanding into the next generation of programming languages.

We see the mathematical foundations of computation and programming as inextricably linked. We study one so as to develop the other. This reflects the symbiotic relationship between mathematics, programming, and the design of programming languages — any attempt to sever this connection will diminish each component.

To achieve these research goals we use ideas from the following disciplines:

Functional Programming and Type Theory
What does the future of programming languages look like? How does one take the logical structure of computation and turn it into a programming abstraction? Type theory allows us to do this by providing a language at an intermediate level of abstraction between a programming language and its logical foundations. Indeed, type theory could be said to be the ideas factory for programming languages.
Logic
Different logics are suitable for expressing and verifying different properties of programming languages or systems. We make use of a range of methods such as proof theory and coalgebra to understand the computational nature of proofs and systems intended to run without interruption. Those methods are driven by emerging problems in areas such as AI and security. We have particular strengths in modal logic, quantitative properties of systems, and logics for reasoning about concurrency.
Category Theory
How does one understand structure abstractly? How can one build theories that systematically build complex systems by composing descriptions of simpler ones? One uses category theory — that's how! Ideas such as monads and initial algebra semantics attest to the deep contribution that category theory has made to computation.