Rzk: a Proof Assistant for Synthetic -Categories
This paper introduces Rzk, a practical proof assistant implementing a refined, computational variant of Riehl and Shulman's simplicial type theory to enable synthetic reasoning about -categories, while establishing its faithfulness and conservativity relative to the original theory and providing a tutorial on its usage and implementation.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine the universe of mathematics as a giant, infinite playground. For a long time, the most popular game here was Homotopy Type Theory (HoTT). In this game, everything is made of "shapes" that are perfectly flexible. If you have a path from point A to point B, you can always walk it backward. It's like a world of elastic bands where every stretch can be snapped back to its original state. This is great for studying "spaces" (mathematical objects where everything is reversible), but it's a bit too perfect for the messy, real world of categories where some paths are one-way streets.
Enter Rzk, a new proof assistant built by Nikolai Kudasov, Violetta Sim, and Benedikt Ahrens. Think of Rzk as a specialized construction kit designed to build directed shapes. In this new playground, you can have a path from A to B that cannot be walked backward. It's like building with LEGO bricks where some connections are permanent: you can snap a piece on, but you can't un-snap it without breaking the model. This allows mathematicians to reason about -categories, which are complex structures where arrows (morphisms) have directions and don't always reverse.
The Big Idea: A New Way to Build
The paper introduces Rzk as a tool that implements a specific theory called Simplicial Type Theory (RSTT), originally proposed by Emily Riehl and Michael Shulman.
Here is the clever trick Rzk uses:
In the original theory (RSTT), there was a special "magic box" called an extension type. This box let you define a function that behaves in a specific way on the edges of a shape (like a triangle) and does whatever it wants in the middle. It was powerful but a bit like a black box; the rules for how it worked were sometimes hidden in the fine print.
Rzk takes this magic box and splits it open.
- The Shape: It separates the "shape" part (the triangle or interval) from the "boundary" part (the rules for the edges).
- The Rules: It introduces a new, explicit rule called coercion-free subtyping. Imagine you have a toy car that fits in a small box. In the old system, the system would just assume the car fits in a bigger box without checking. In Rzk, the system explicitly checks that the car fits, but it doesn't force you to wrap the car in extra packaging (a "coercion") to make it fit. It just says, "Yes, this car is also a toy, so it belongs in the toy box." This makes the logic cleaner and easier for computers to check.
What Rzk Can Do (and Can't Do)
The authors have built a "standard library" for this new system called sHoTT. It's already massive, containing over 25,000 lines of code and nearly 1,500 top-level declarations. This library has successfully formalized complex concepts like the -categorical Yoneda lemma (a fundamental theorem in category theory) and various types of "fibrations" (ways to stack categories on top of each other).
However, the paper is very careful about what it claims to have proven:
- It is Faithful: The authors proved that anything you can prove in the original theory (RSTT) can also be proven in Rzk. It's a perfect translation.
- It is Conservative (with a caveat): They proved that Rzk doesn't invent any new truths about the old theory. If Rzk proves something about an old shape, the old theory could have proven it too. But, this proof only works for a specific "natural fragment" of derivations. The authors admit they haven't fully proved this for every possible weird case yet; they suspect it holds true generally, but it's still a conjecture for the full system.
- It is Practical: The tool works right now. It runs in a web browser, has a VS Code extension, and has been used in summer schools and master's theses.
The "Shape Solver"
One of the hardest parts of this math is checking if one shape fits inside another (e.g., is this triangle inside this square?). Rzk uses an automated "tope solver" to do this.
- How it works: It's a bit like a detective trying to solve a puzzle. It looks at the rules (topes) and tries to see if they fit.
- How good is it? In tests on the sHoTT library, the solver handled over 25,000 questions. Most were solved instantly (in a single step). A few were very hard, taking thousands of steps, but the solver managed them.
- The Limit: The solver is incomplete. It's a prototype. It works great for the problems it sees, but the authors admit it might miss some tricky solutions because it doesn't try every possible path. They plan to build a "perfect" solver in the future, but for now, the current one is "sufficient in practice."
What Rzk Rejects
The paper explicitly argues against the idea that you need to manually prove every tiny inclusion of shapes. In older systems, you might have to write out a long proof just to say "this triangle is inside this square." Rzk rejects this manual labor; it automates it.
It also rejects the idea of coercions (adding extra layers of packaging to make things fit). The authors show that you can have a system that understands subtypes without forcing the computer to insert invisible conversion steps that complicate the math.
The Bottom Line
Rzk is a working, usable tool that brings the abstract theory of directed infinity-categories into the real world of computer-checked proofs. It splits complex mathematical "magic boxes" into simpler, transparent parts and proves that it doesn't break the old rules while adding new capabilities.
The authors are confident that Rzk faithfully implements the theory and that their library works. They are sure the tool is useful for teaching and research today. However, they are less certain about the full theoretical guarantees for every single possible edge case (the "full conservativity" conjecture) and admit their shape-solver is a prototype that could be improved. They haven't solved the problem of making the system terminate for all possible inputs (normalization), which remains an open challenge for the future.
In short: Rzk is a working, verified, and growing engine for a new kind of math, built with a fresh design that makes the computer's job easier without losing the magic of the original theory.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.