← Latest papers
🤖 AI

Lean Atlas: An Integrated Proof Environment for Scalable Human-AI Collaborative Formalization

This paper introduces Lean Atlas, an open-source interactive web tool featuring the Lean Compass algorithm that enables scalable human-AI collaboration in formalizing mathematics by visualizing project dependencies and automatically identifying the specific definitions and propositions requiring human semantic verification to prevent AI-generated proofs from exhibiting semantic hallucinations.

Original authors: Banri Yanahama, Akiyoshi Sannai

Published 2026-04-21
📖 5 min read🧠 Deep dive

Original authors: Banri Yanahama, Akiyoshi Sannai

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 Problem: The "Perfectly Wrong" Proof

Imagine you hire a super-fast, super-smart robot to write a legal contract for you. The robot types out a document that is grammatically perfect. Every sentence follows the rules of English, the punctuation is correct, and the formatting is flawless. A spell-checker would give it a 100% score.

However, the robot made a subtle mistake: it swapped the word "buyer" with "seller" in the most important clause. The document is still "grammatically correct," but it means the exact opposite of what you wanted. In the world of mathematics and computer science, this is called Semantic Hallucination.

In the paper, the authors explain that AI is getting very good at writing formal math proofs (using a tool called Lean). The computer's "spell-checker" (called a Type Checker) can tell if the logic holds together. But it cannot tell if the math actually means what the human intended. The AI might prove a statement that is logically true but mathematically nonsense.

The Solution: The Human-in-the-Loop

The authors propose a new way to work: Humans and AI as a team.

  • The AI does the heavy lifting: writing the code, checking the logic, and building the structure.
  • The Human acts as the "Meaning Inspector." They don't check every single line of code (which would take forever); they only check the parts that determine what the math actually says.

But how do you know which parts to check in a massive project with thousands of lines of code? That's where Lean Atlas comes in.


The Tool: Lean Atlas (The "Map")

Think of a large math project like a giant, tangled ball of yarn. Every thread (a definition or a theorem) is connected to many others. If you pull one thread, it might tug on a dozen others.

Lean Atlas is a tool that untangles this yarn and draws a map of the connections.

  • It visualizes the project as an interactive web.
  • It distinguishes between two types of connections:
    1. The "What" (Type Dependencies): These are the definitions and concepts that give the math its meaning. (e.g., "What is a 'prime number'?")
    2. The "How" (Value Dependencies): These are the specific steps taken to prove something is true. (e.g., "Here is the step-by-step calculation proving 2 is prime.")

The Magic Trick: Lean Compass (The "Filter")

This is the paper's most clever idea.

Imagine you are looking at a specific theorem (a specific claim) in the middle of that giant ball of yarn. You want to know: "If I change this definition, does it break the meaning of my theorem?"

Usually, you'd have to look at every single thread connected to it. But Lean Compass is a smart filter. It uses a simple rule:

"If a connection comes from a proof (the 'How'), we can ignore it for now. The computer already checked that the proof is logical. We only need to worry about connections coming from definitions (the 'What')."

The Analogy:
Imagine you are inspecting a house for safety.

  • The "Proofs" are the workers who built the walls. If the workers did a bad job, the wall might fall, but the blueprint (the design) is still correct. The computer checks the workers.
  • The "Definitions" are the blueprints. If the blueprint says "This is a window" but the architect meant "This is a door," the house is built wrong, even if the workers followed the blueprint perfectly.

Lean Compass tells you: "Don't waste time checking the workers' steps. Just check the blueprints and the doors."

By filtering out the "proof steps," Lean Compass shrinks the list of things a human needs to check by 90% or more in many cases.

The Results: How Well Does It Work?

The authors tested this on six different projects, ranging from pure math to physics and cryptography.

  • The "Proof-Heavy" Projects: (Like the Prime Number Theorem). These are like houses with thousands of workers but simple blueprints. Lean Compass worked like a vacuum cleaner, removing 94–99% of the clutter. Humans only had to look at the tiny remaining core.
  • The "Definition-Heavy" Projects: (Like a complex cryptographic signature). These are like houses with very complex, changing blueprints. Here, the "blueprints" (definitions) are the main event, so the filter couldn't remove as much (only about 27% reduction). But it still helped.
  • The Mixed Projects: (Like Fermat's Last Theorem). Some parts were easy to filter, others were hard. This proved that the tool adapts to the structure of the project.

The Big Idea: "Aligned Lean Code"

The paper introduces a new quality standard called Aligned Lean Code.

  • Logical Correctness: The computer says, "This proof is valid."
  • Semantic Correctness: A human says, "This proof means what we intended."

Aligned Code is code that has passed both tests. The authors suggest that for AI to be truly useful in science, we shouldn't just trust the computer's "Yes." We need a system where humans verify the meaning, and Lean Atlas makes that verification fast and manageable.

Summary

  1. AI is fast but can be "hallucinated" (logically correct but meaninglessly wrong).
  2. Humans need to check the meaning, but checking everything is too slow.
  3. Lean Atlas draws a map of the project.
  4. Lean Compass is a filter that ignores the "proof steps" (which the computer already checked) and highlights only the "definitions" (which determine the meaning).
  5. Result: Humans can verify the meaning of massive AI-generated math projects in a fraction of the time, ensuring the math is actually about what we think it is.

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 →