The Directed Van Kampen Theorem in Lean
Henning Basold, Peter Bruin, Dominique Lawson
TL;DR
The work addresses computing the directed homotopy type of spaces used to model concurrent systems by proving a directed Van Kampen theorem within Lean. It develops a formal framework for directed spaces $(X, P_X)$, directed maps, and directed homotopies, then constructs the fundamental category $\overrightarrow\Pi(X)$ and the fundamental monoid $\overrightarrow\pi(X,x)$, culminating in a constructive pushout result that enables modular reasoning about subsystems. The Lean formalization demonstrates both the feasibility and benefits of computer-assisted proofs in directed topology, including a counterexample showing limitations when generalizing to monoids. This has practical significance for compositional verification of concurrent systems and lays groundwork for further integration with Brown-style groupoid approaches and other directed-topological results.
Abstract
Directed topology is an area of mathematics with applications in concurrency. It extends the concept of a topological space by adding a notion of directedness, which restricts how paths can evolve through a space and enables thereby a faithful representation of computation with their direction. In this paper, we present a Lean formalisation of directed spaces and a Van Kampen theorem for them. This theorem allows the calculation of the homotopy type of a space by combining local knowledge the homotopy type of subspaces. With this theorem, the reasoning about spaces can be reduced to subspaces and, by representing concurrent systems as directed spaces, we can reduce the deduction of properties of a composed system to that of subsystems. The formalisation in Lean can serve to support computer-assisted reasoning about the behaviour of concurrent systems.
