What if a computer could check your proof?
You've found a beautiful pattern. It works for ten examples, a thousand, even a million. Could you show that it must work for every possible example?
Testing a pattern is not the same as proving it.
Try another number
This expression produces a prime for every integer n from 0 to 39. But try n = 40: the answer is 1681 = 41 × 41. Forty successful tests didn't make the pattern a theorem.
Explain why it must work
A mathematical proof establishes the identity for every allowed a and b. Lean is a free proof assistant: you describe a precise claim and construct a proof that its logical kernel can check.
Experiments are valuable for discovering patterns and finding counterexamples. A formal proof is a different kind of evidence. A finite computation can itself become a proof when the relevant finite cases and their coverage are rigorously justified.
Try being the mathematician.
No installation or qualifications needed for this browser exercise. Open the Lean Playground, choose its Mathlib project, and paste these lines into the editor. The ring tactic constructs an algebraic proof that Lean checks.
import Mathlib
theorem my_first_identity (a b : ℤ) :
(a + b)^2 = a^2 + 2*a*b + b^2 := by
ring
#print axioms my_first_identity
Try changing the 2*a*b to 3*a*b. Can the same proof still work? If Lean objects, investigate why. C04 checked both versions: the correct proof has only propext in its axiom report, while the deliberately failed version reports an unsolved goal and sorryAx. A failed proof is not a verified theorem. This is a playground for your ideas, not a test of whether you belong.
Official Lean getting-started guide ↗ · Learn Lean, including introductory games ↗
A proof from our own expedition
Our Hull Compass grew out of the mathematics of a restricted string-theory flux-vacuum toy model. We noticed an exact geometric pattern, developed a proof, challenged it independently and then translated the argument into Lean.
The exact certified statement
Let TL contain all integer pairs (x,y) with x² + y(y−1) ≤ L. For each Euclidean unit direction (α,β), consider upper bounds r on αx + β(y−½) for every point in TL. SupportBounds(L) is the set of all such bounds over all unit directions.
Set a = ⌊√L⌋, b = ⌊(1 + √(4L+1))/2⌋, k = ⌊(1 + √(8L+1))/2⌋. In the formal source these same integers are computed using Int.sqrt and integer division; Lean proves their characterising inequalities. The equivalence with the displayed real-number floor expressions is explanatory mathematics, not a separately formalized identity in this file.
Lean proves that √C(L) is the least element of SupportBounds(L) for every integer L ≥ 2. In the project's original notation, this is the support-function form of ρ(L)² = C(L).
theorem AI2.P06.main (L : ℤ) (hL : 2 ≤ L) :
MainStatement L
-- #print axioms AI2.P06.main
-- [propext, Classical.choice, Quot.sound]The theorem assumes no additional research hypotheses. The listed axioms are Lean's standard foundational axioms. The finite range 2–143 is proved with exact integer certificates; the general argument covers the remaining cutoffs. The proof does not use a finite search as evidence for infinitely many cases.
Precise scope: The correspondence between this support-function minimum and the Euclidean distance to the convex-hull boundary is not itself formalized yet. P05's hyperbolic largest-empty-disc theorem and the C32 number-theory manuscript are not certified by this file. No human peer review or mathematical novelty assessment has taken place. This result is mathematics of a toy model, not verification of string theory.
Reproduce the check yourself
C04 · Published-source replay and freeze. Claude fetched the actual public source, checked its SHA-256, and submitted those exact bytes through the Playground. Three fingerprinted runs (two C03, one C04) each reported zero errors and zero warnings. A separate direct-link test also succeeded. GPT checked the archive and certificate data, not the Lean compiler itself.
Recorded toolchain: Lean 4.37.0-rc1, Mathlib b87ed347d44f50490f192d846ee639f90941fbac, Lean githash 0b77e12952ad39077d80d8bd6b66d601f225c321. The Mathlib revision was read before and after C03 and one minute after the C04 fingerprinted run. Its use during C03 is inferred from those bracketing readings, not measured during C03 itself. Full package revisions are in the C04 record.
The Playground’s “Latest Mathlib” changes over time. A future version may need compatibility adjustments; the frozen source and recorded environment remain the reference.
Use the direct Playground link above to load and check the complete file without copying. The UTF-8 reader and download provide the same source. The raw machine-transport URL may display garbled mathematical symbols in some browsers because the hosting response omits a character encoding; its bytes are unchanged. The direct link was tested in C04. The proof is frozen at C03.
SHA-256 (Lean source):
7a0af41ef79abacbb8af162029ba35ead73c94c96bdb22f4b883f81a9916bcde
C03 artifact checksums · C04 artifact checksums · Published research ledger (JSON) · Original proof and adversarial audit
What does a machine-checked proof tell us?
- It checks the logical deduction.
- Given its formal definitions and trusted foundations, Lean checks the proof of the statement actually written.
- It does not choose the right scientific model.
- We must still verify that the formal statement means what we intended. Mathematics and observations are different kinds of evidence.
- It does not determine novelty.
- Human mathematical judgment and literature research are still essential. We welcome scrutiny.
Curiosity sets the direction. Evidence determines how far we've actually travelled.
Want to see the geometry before reading the proof? Explore the Hull Compass →