← Latest papers
🔢 mathematics

Stokes' Theorem for Smooth Singular Cubes in Lean 4: True Pullback, Bridges to mathlib4, and Chain-Level d^2=0

This paper presents a comprehensive, sorry-free Lean 4 formalization of Stokes' theorem for smooth singular cubes using true differential-form pullbacks, while establishing bridges to mathlib4, verifying chain-level properties like d2=0d^2=0, and comparing the implementation with Harrison's HOL Light formalization.

Original authors: David B. Hulak, Arthur F. Ramos, Ruy J. G. B. de Queiroz

Published 2026-05-05
📖 5 min read🧠 Deep dive

Original authors: David B. Hulak, Arthur F. Ramos, Ruy J. G. B. de Queiroz

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 you have a very complex, multi-dimensional shape, like a crumpled piece of paper or a twisted ribbon floating in space. In mathematics, there is a famous rule called Stokes' Theorem. Think of it as a universal "accounting rule" for shapes. It says that if you want to know the total "activity" happening inside a shape (like the total wind swirling inside a tornado), you don't need to measure every single point inside. Instead, you only need to measure the "edge" or the "boundary" of that shape. The sum of all the activity on the edge perfectly equals the total activity inside.

For a long time, computers (specifically a program called Lean 4) had not been able to prove this rule for every possible shape, especially the weird, crumpled ones that mathematicians call "singular cubes."

This paper is a report on how three researchers finally taught the computer to prove this rule for those tricky shapes, without making any mistakes or skipping steps.

Here is a breakdown of what they did, using simple analogies:

1. The Goal: The "Edge vs. Inside" Rule

Imagine you are painting a room. Stokes' Theorem is like a magic trick that says: "If you know exactly how much paint dripped off the walls (the boundary), you automatically know exactly how much paint was used to cover the whole room (the interior)."

The researchers wanted to prove this trick works even if the "room" is a weird, stretched-out shape defined by a smooth, twisting map (like a rubber sheet being pulled and twisted).

2. The Three-Step Magic Trick

The computer couldn't just "see" the whole shape at once, so the researchers broke the proof down into three logical steps, like a recipe:

  • Step 1: The "Translation" (Pullback)
    Imagine you have a map of a city, but the city is distorted. The researchers created a tool to "translate" the math from the distorted shape back to a perfect, standard cube (like a perfect die). They used a specific mathematical tool called a "pullback" (which is like a high-tech photocopier that copies the rules of the shape onto a standard grid).
  • Step 2: The "Standard Box" Rule
    Once the shape was translated onto a perfect cube, they could use a simpler, already-known rule that works for perfect boxes. They proved that the "inside activity" on this perfect cube equals the "edge activity" on the perfect cube.
  • Step 3: The "Face Matching"
    Finally, they had to prove that the edges of the perfect cube (the translated version) matched up perfectly with the edges of the original, weird shape. They showed that when you add up the edges of the weird shape, they cancel out and line up exactly with the edges of the perfect cube.

3. The "Chain" Connection

The researchers didn't just prove it for one shape. They proved it for a whole "chain" of shapes stuck together.

  • The Analogy: Imagine building a wall out of bricks. If you put two bricks together, the edge where they touch disappears because it's inside the wall. The researchers proved that if you have a chain of these shapes, the "inner" edges always cancel each other out, leaving only the outer boundary. This is a fundamental rule in math called 2=0\partial^2 = 0 (the boundary of a boundary is nothing). They proved this by showing that for every time an edge appears, it appears twice with opposite signs, effectively erasing itself.

4. Why This Matters (In the Computer's World)

  • No "Sorry" Allowed: In computer proof systems, programmers sometimes write "sorry" to say, "I know this is true, but I haven't proved it yet." This paper is special because it has zero "sorry" statements. The computer checked every single step and found no errors.
  • The Bridge: The researchers built a "bridge" between two different ways of doing math in the computer. One way uses simple coordinates (like a spreadsheet), and the other uses abstract, fancy definitions. They proved that both ways lead to the exact same answer, ensuring the computer isn't just guessing.
  • Real Smoothness: They required the shapes to be "globally smooth," meaning they are perfectly smooth everywhere, not just in the middle. This made the math easier for the computer to handle, even though it's a stricter rule than what humans usually need.

5. What It Is NOT

The paper is very honest about its limits:

  • It does not prove this for every possible shape in the universe (like a shape with a sharp corner or a hole that changes size).
  • It does not deal with "manifolds" (curved surfaces like the surface of a sphere) in the full, complex way mathematicians usually do. It sticks to shapes that can be mapped from a standard cube.
  • It is a mathematical proof, not a physics experiment. It doesn't predict weather or design bridges; it simply proves that the logical rules of calculus hold up when checked by a computer.

Summary

In short, this paper is a victory for mathematical precision. The researchers taught a computer to verify a 200-year-old calculus rule for a wide variety of twisted, multi-dimensional shapes. They did it by translating the problem into a standard box, proving the rule there, and then showing that the translation was perfect. The result is a "zero-error" proof that the "inside equals the edge" rule works, even for the most complicated smooth shapes we can imagine.

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 →