Step 64 / 64

Proof level

Axioms and proof checking

Inspect which foundational assumptions a theorem’s proof uses.

Start with a concrete example

A board game starts with agreed rules. A proof also rests on explicitly allowed foundational rules. Lean can list the axioms used by a theorem; this differs from assuming the desired conclusion as an extra rule.

A small check: try the idea

Think with the concrete example above. You can try again.

Is assuming the desired conclusion the same as proving it from the stated foundational rules?

Read the answer and reasoning

No. Changing a game’s rules changes the game. Lean’s axiom report helps distinguish the permitted foundations from an extra assumption of the desired theorem.

Build the idea in three steps

  1. A formal proof is checked against rules and any foundational assumptions it uses.
  2. Lean can report the axioms a theorem depends on using #print axioms. A statement in a comment is not an executed check.
  3. The recorded FLT checkpoint lists propext, Classical.choice and Quot.sound. These are foundational axioms, not the assertion that FLT itself is true.

A small example

The owl checks a proof term and its dependencies. It does not check whether the manga’s joke is funny.

Use in Lean · original excerpt

FLT · aa2d8b3 · FinalCheck.lean

#print axioms fermat_last_theorem

How to read this Lean

This is a diagnostic command from the pinned checkpoint. The site displays the original source; it does not execute the full FLT project.

Where this idea is used

17. The extremely literal judge
I’m lost · Help

Mika’s help desk

Axioms and proof checking

One thing at a time

Read the three explanation steps first. The Lean source is there for a closer look afterwards; you do not have to read it first.

In simpler words

Inspect which foundational assumptions a theorem’s proof uses.

Earlier ideas are listed under “Start with these ideas” on this page.

A small clue

The owl checks a proof term and its dependencies. It does not check whether the manga’s joke is funny.

Close this panel to return to the exact place you were reading. These are prepared hints for this page.

Start with the first small story →