Skip to content

The first Lean proof on Erdős Problem #112: how it was made, and what the Palomar registry checked

WritingNovember 15, 2026updated Nov 20, 202610 min

A ▲ after a number means it has a note at the foot of this page.

The first Lean proof on Erdős Problem #112, step by step, and what the Palomar registry checked under three separate proof kernels.

My work on Erdős Problem #112 produced the first Lean proof on that problem. Lean is a proof assistant: a program in which a proof is written out in full, so that a small core program, called its kernel, checks every step. Mine proves that the number k(6,3)k(6,3) from that problem is at least 30 and at most 32, and in its second version the kernel checks the whole proof, with nothing taken on trust. Within hours the proof went through Palomar, a public registry of machine-checked proofs, which checked it again on its own computers with three kernels, Lean's own and the independent kernels nanoda and con-ron, and found no problems. This page tells how that went, hour by hour, and what each check means.

The problem is still open. The exact value of k(6,3)k(6,3) is 30, 31 or 32, and nobody knows which.

What was proved

Picture a network of points in which each pair of points is either unlinked or joined by a link that points one way. Paul Erdős and Richard Rado asked, in 1967, how many points such a network must have before it is forced to contain one of two patterns: a set of nn points with no links among them, or a transitive triangle, three points where A points to B, B points to C and A points to C. That least number is k(n,3)k(n,3). The answers for nn = 3, 4 and 5 are 9, 15 and 23, and they fit a neat formula, n2−n+3n^2 - n + 3, which predicts 33 for n=6n = 6.

In November, Claude agents working under my direction proved that 30 ≤k(6,3)≤\le k(6,3) \le 32. The lower bound comes from a network of 29 points with neither pattern, so 29 points are not enough and the answer is at least 30. The upper bound is a counting proof that every network of 32 points has one of the patterns. Since the formula predicted 33, it breaks at the very first case after the known ones. Before this work the range was 29 to 33: the lower end is Daniel Kirtchakov's, from a Zenodo record he published on August 11, 2026, and the upper end is from a 2021 paper by Ihringer, Rajendraprasad and Weinert. Both new bounds improve on it, and the possible answers went from five to three. I did not know of Kirtchakov's record when this work was done; I learned of it on November 15, and a section below says what that changed. The full account, with the proof, is on the result page.

The bounds were found just after midnight on November 8, in a search that began the evening before, and published on Zenodo, a research archive that gives each record a permanent DOI, later that day. At that point the upper bound rested on a written proof that a separate Claude agent had checked by reading it, plus one lemma checked by computer. A written proof can hide a gap that every reader skims past, so I wanted one that a computer checks step by step.

The first version: both bounds in Lean

A Claude session wrote the Lean proof under my direction, and I released version 1.0 on GitHub at 17:22 Pacific time on November 14, with an archived copy on Zenodo a few minutes later. It proves both bounds with no gaps left open. It also proves the bounds it needs for the three smaller cases from scratch instead of citing them.

There was one shortcut. The hardest step of the upper bound, a lemma that needs an exhaustive search through many small cases, ran as fast compiled code, and Lean's kernel trusted the answer without checking it. Lean allows this, and it is common, but it means the proof also trusts the compiler.

The second version: nothing taken on trust (the same evening)

Twenty-three minutes later I released version 1.1. It replaces the compiled search with 49 smaller computations that the kernel itself carries out, none taking more than about ten seconds. Now the kernel checks the whole proof. The proof relies on only the three basic axioms that every proof in Lean's standard mathematics library uses, and the statements did not change between the two versions. Anyone with Lean installed can rebuild the proof on a laptop in a couple of minutes once the library is downloaded.

There is one thing a proof assistant cannot check: whether the statement it proves means what the paper means. The kernel confirms that the proof proves the theorem as written, so the definition of k(6,3)k(6,3) in the Lean files has to match the paper's. That definition is 47 lines long. A separate Claude session compared it with the paper's definition and found them identical.

Getting it ready for Palomar

Palomar records one exact version of a public GitHub repository. A submission needs a short "Challenge" file, which states the theorem and is the statement of record, a "Solution" file with the proof, and two small configuration files. For this proof the Challenge file is 91 lines. All of it sits on one fixed commit of the repository, so anyone can see exactly which version was checked.

That evening, before anything was sent, a Claude agent rebuilt the proof, confirmed that the Challenge and the proof state the same theorems, and had two more kernels, nanoda and con-ron, accept the proof, written out to a file in the standard form that outside checkers read. Those two are separate programs written by other people to check Lean proofs; neither shares code with Lean's own kernel. At 11:50 p.m. I said go, and the files were pushed to GitHub.

What Palomar checked, hour by hour

All times are Pacific, on November 15.

TimeWhat happened
00:01I submitted the repository at the fixed commit.
00:20Mechanical verification passed. A tool called Comparator confirmed that the proof proves exactly the theorems in the Challenge and uses only the three standard axioms, and the proof passed both Lean's kernel and the separately written nanoda kernel. The registry entry lists a third independent kernel, con-ron, among those that accepted it.
01:15Palomar started checking that the Challenge can be shown on a registry page.
02:13That check passed, and the automated review started.
02:15The review finished: "No problems were identified."
03:10After reading the review, I asked for the result to be registered.

The review is run by an AI model, which compares each formal statement with the plain description that comes with it and screens out submissions of no plausible research interest. Its own words were: "Mechanical verification passed, and the editorial checks identified no blocking problem with the selected graph-theoretic bounds or their presentation."

Registration is permanent: once a version is registered it stays in the registry's history, and the submitter cannot withdraw it. So I read the review before I asked. The registry published the entry at 04:15 that morning: the proof is registered in Palomar as entry PALOMAR-2026-11-15-000004.

What these checks mean, and what they do not

What they mean. Every step of the proof was checked by machine three times on Palomar's own computers, by three kernels written separately. A bug in one kernel that let a wrong step through would have to be matched by the same bug in the others for a wrong proof to pass all three, and that is unlikely. The proof uses no shortcut that trusts compiled code. And because the registered version is one fixed commit, anyone can rerun exactly what was checked.

What they do not mean. No person read this proof for Palomar. The editorial review is an AI model, and Palomar describes it as a filter, not as an approval. Palomar's advisory board does not review or endorse individual submissions. Peer review is a separate thing, and no referee has read the proof yet. And Lean cannot say whether the statement is the right one. The two statement comparisons so far, by a Claude session and by Palomar's review, were both made by AI models, so a human reading of the definition is still to come.

Who runs Palomar. Palomar was incubated by the Lean FRO, the nonprofit that develops Lean, and ICARM, an institute for computer-aided reasoning in mathematics at Carnegie Mellon. As its page listed on November 15, 2026, the people who maintain its software include the mathematician Terence Tao. That is part of why a Palomar record carries weight. None of them read or checked this proof; they run the registry, and its pipeline did the checking. The registry had not yet opened for general submissions when this proof was registered.

What "first" means here

Before this proof, the Lean files I could find on Erdős Problem #112 stated the problem and proved nothing about it, and on November 14 the community database of Erdős problems listed no formal proof for it.

On the evening of November 15, I learned of Kirtchakov's August record. His work on the same question includes a computer proof that a neighbouring number from the same problem, k(3,4)k(3,4), equals 21 (there the patterns are three unlinked points, or four points each pointing to all the later ones), with certificates that a separate program checks, and his lower bound for k(6,3)k(6,3) comes from a 28-point network that our own searches also found, independently, in November. Those certificates come from SAT solvers, programs that search exhaustively for a solution to a logic puzzle, not from a proof assistant. Each of his certificates checks one exhaustive search (his proof of this value has 346 of them, each replayed by a separately written checker), and the argument that those searches cover every case was audited separately. A Lean proof checks the whole argument, the reasoning as well as the computation, in a system that many mathematicians use and can build on. So machine-checked proofs on the problem existed before mine, and mine is the first Lean proof on it. I had been calling mine "the first machine-checked result on Erdős Problem #112", and I withdrew that line from my site and my notes the same night.

The description I filed with Palomar was written before I knew of his record, so the registered entry still gives the earlier range as starting at 26 and still uses the withdrawn line. The Lean statements and proofs say nothing about earlier work and are unaffected.

Who did what

I chose the problem from a plan the agents drew up, approved each step, released the Lean proof, submitted it to Palomar and decided to ask for registration. Claude agents (Anthropic's AI models), working under my direction, found the bounds, wrote the Lean proof and the Palomar files, and ran the local checks. Lean's kernel, nanoda, con-ron and Comparator are ordinary software, not AI models, and they are what checked the proof. Palomar's review was done by an AI model run by Palomar.

Records

Notes on numbers used on this page

Each number marked ▲ on this page has its note here.

  • New upper bound on k(6,3), from a proof that every oriented graph on that many vertices has 6 independent vertices or a transitive triangle: 32. At first its one computed lemma was checked by code and the counting argument by AI agents reading it; since the Lean proof of 2026-11-14, every step is checked by Lean’s kernel, and Palomar reran it under three proof kernels. No referee has read the paper yet.

These notes appear in every version of this page.

Revision history

  1. 2026-11-20 · revised

    The note on the Palomar entry no longer promises a corrected version; it says what the entry still gives.

  2. 2026-11-20 · corrected

    The title and claim name the problem; the page dates the finding of the bounds to just after midnight on November 8, dates the corrected Zenodo versions by Pacific time, describes Palomar in its own words, spells the nanoda kernel one way, describes Kirtchakov's certificates more fully, and no longer says where the paper stands.

  3. 2026-11-16 · revised

    Linked a new page that explains this result from the start, with an interactive part.

  4. 2026-11-16 · corrected

    Said that the proof was checked three times, by three kernels including con-ron; noted that Palomar had not yet opened for general submissions when the proof was registered; linked the corrected versions of both Zenodo records.

  5. 2026-11-15 · revised

    The proof is now registered in Palomar, and the page links its registry entry.

How to cite this

Tyler Satchel Orden (2026). The first Lean proof on Erdős Problem #112: how it was made, and what the Palomar registry checked. Cyborg Mathematics. https://cyborgmathematics.com/writing/lean-proof-palomar-erdos-112 (updated November 20, 2026)

This page has no DOI of its own. Cite the URL and the date; the revision history above keeps a dated citation meaningful.

BibTeX
@misc{orden2026leanproofpalomarerdos112,
  author       = {Tyler Satchel Orden},
  title        = {The first Lean proof on Erdős Problem \#112: how it was made, and what the Palomar registry checked},
  year         = {2026},
  howpublished = {Cyborg Mathematics},
  url    = {https://cyborgmathematics.com/writing/lean-proof-palomar-erdos-112}
}

See also