← Latest papers
🔢 mathematics

Capturing properties of planar diagrams in Lean proof assistant software

This paper describes the formalization of orientation-preserving mappings in the Lean proof assistant to address the inherent difficulty and potential for error in reasoning about planar diagrams.

Original authors: Alastair Litterick, Alexei Vernitski, Billy Woods

Published 2026-02-11
📖 4 min read🧠 Deep dive

Original authors: Alastair Litterick, Alexei Vernitski, Billy Woods

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

The "Math-Proofing" Machine: A Guide to the Paper

Imagine you are building a massive, intricate skyscraper made of glass. It looks beautiful, but there is a tiny problem: if even one single bolt is slightly loose, the whole structure might shatter unexpectedly.

In the world of mathematics, "bolts" are the logical steps in a proof. For centuries, mathematicians have built these "skyscrapers" using nothing but pen, paper, and their own intuition. But humans are fallible. We get tired, we skip "obvious" steps, and sometimes, we look at a complex pattern and see something that isn't actually there.

This paper is about a new kind of "digital inspector" called Lean—a software tool designed to check every single bolt in a mathematical skyscraper to make sure it’s perfectly secure.


The Problem: The "Optical Illusion" of Math

The authors start by describing a specific mathematical headache: Planar Diagrams.

Think of these like a complex game of "Connect the Dots" played on a circle. You have points around a ring, and you draw lines to connect them.

  • Orientation-preserving is like drawing a pattern where the lines follow a smooth, predictable flow (like a clockwise whirlpool).
  • Orientation-reversing is the opposite (like a counter-clockwise swirl).

The authors point out a sneaky "optical illusion" that has tripped up professional mathematicians. There is a specific pattern—let's call it the "Glitch Pattern" (the sequence 0, 1, 0, 1)—that looks like it should follow the rules of the whirlpool, but it actually breaks them. It’s like looking at a drawing that seems to be moving left, but when you look closer, it’s actually standing still.

Because this "glitch" is so subtle, mathematicians have accidentally published papers with errors, essentially saying, "This pattern follows the rules," when it actually doesn't.


The Solution: Lean, the Ultimate Perfectionist

To fix this, the authors decided to stop relying on human eyes and start using Lean.

If a human mathematician is like a seasoned architect who says, "Yeah, that looks sturdy enough," then Lean is like a hyper-intelligent robot that refuses to move on until it has measured every single atom in the building.

In the paper, the authors "teach" Lean the rules of these patterns. They don't just tell Lean, "This is a whirlpool." They have to explain it in excruciating detail:

  1. "Here is what a list of numbers is."
  2. "Here is exactly how to check if a number is bigger than the one before it."
  3. "Here is how to loop back to the start of the circle."

By writing this incredibly strict code, they were able to ask the computer: "Hey, look at this 'Glitch Pattern' (0, 1, 0, 1). Is it a whirlpool?"

The computer didn't rely on "vibes" or intuition. It crunched the logic and responded with a definitive: "No."


The Takeaway: A Partnership

The authors aren't saying that computers will replace mathematicians. In fact, they admit that using Lean is exhausting. It’s like trying to write a poem, but instead of just writing words, you have to define the chemical composition of the ink and the exact molecular structure of the paper for every single sentence. It is slow, tedious, and has a steep learning curve.

However, they argue that this "tedium" is actually a superpower.

The big idea is a partnership:

  • Humans provide the creativity, the "big picture" ideas, and the "Aha!" moments.
  • Lean provides the rigorous, unshakeable verification that ensures those "Aha!" moments are actually true.

By using these digital inspectors, mathematicians can build even taller, more complex "skyscrapers" of knowledge, knowing that if there is a single loose bolt, the machine will find it before the building ever goes up.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →