Adventures in the Univalent Universe
Types, Paths, and the Self-Referential Nature of Mathematical Identity
"If Gödel, Escher, Bach made you fall in love with mathematics,
this book will take you deeper."
Homotopy Type Theory is one of the deepest ideas in contemporary mathematics — a unification of logic, topology, and computation in which proofs are paths and types are spaces. This book makes that revolution vivid and accessible without sacrificing rigour.
Like Gödel, Escher, Bach, it is structured as a series of dialogues between characters — Achilles and the Tortoise, joined at critical moments by the Crab, the Mole, and the enigmatic Mu — whose conversations unfold the mathematics one level at a time. Each chapter is indexed by its homotopy level (−2, −1, 0, 1, 2, …, ∞), and the structure of each chapter mirrors its own mathematical content.
The book is a strange loop: it teaches the theory it is written in, using the form it describes. Each dialogue challenge is formalized in Cubical Agda — one file per challenge, with key theorems proved, not merely stated.
The first letter of each of the seventeen main chapter titles spells a message — a homage to the acrostic hidden inside Gödel, Escher, Bach. Look at the amber letters.
From Chapter 6 — Infinite Tower: ∞-Groupoids. The setting: before dawn, at the base of a lighthouse. The lamp has not been extinguished.
The lamp beam crosses the base window every fourteen seconds. Through the exterior glass, two pale salt-stain streaks are visible — both descending from the same crack, both ending at the same iron drainage ring. They did not take the same route through the stone.
Founder of mathematical intuitionism. Brouwer insisted that mathematical objects must be mentally constructed — not merely shown to be non-contradictory. A proof that something exists must exhibit it.
The constructive, the intuitive, the philosophicalSwedish logician and philosopher. His intuitionistic type theory gave Brouwer's programme a precise formal syntax — turning the idea of "proof as construction" into a full-scale foundation for mathematics.
The architectural, the judgemental, the generativeFields medallist and one of the architects of motivic cohomology. Voevodsky's Univalence Axiom — the insight that equivalent types are equal — became the foundation of Homotopy Type Theory.
The formal, the foundational, the computational
Each dialogue challenge is formalized in Cubical Agda — one file per challenge, with key theorems proved, not merely stated.
Companion code uses {-# OPTIONS --cubical --safe #-}
throughout. Univalence is a theorem, not an axiom.
Higher Inductive Types are defined natively, with path constructors.