Formalization of "The strong perfect graph theorem" by Maria Chudnovsky, Neil Robertson, Paul Seymour and Robin Thomas
A static, self-contained view of all 1,495 nodes: each one's Lean statement and proof, its natural-language statement, its dependencies, and its correspondence to the paper. Reading that is a far easier way in than cloning 552,000 lines of Lean.
| Label | Node | Statement |
|---|---|---|
SPGC |
Tablet.SPGC |
For every finite simple graph |
decomp |
Tablet.decomp |
For every finite Berge graph |
Both targets are Lean-closed against the pinned Mathlib revision, contain no sorry,
and depend only on the standard Lean axioms propext, Classical.choice and
Quot.sound. The project's axiom gate (APPROVED_AXIOMS.json) authorizes no
additional axioms. This holds of the whole development, not only the targets: no node
in Tablet/ contains a sorry, and none depends on sorryAx.
Both targets and PerfectComplement also pass the external
lean-eval comparator, which checks that
the proof closes the stated theorem under a declared axiom whitelist; inputs and
results are in comparator/.
Trusting the two targets means trusting the definitions they are stated in terms of. The following are the definitions in that closure, as computed by the Trellis kernel.
| Node | Definition |
|---|---|
Tablet.Berge |
|
Tablet.Perfect |
|
Tablet.Basic |
|
Tablet.Hole |
|
Tablet.Antihole |
|
Tablet.TwoJoin |
A 2-join witness is an ordered partition |
Tablet.MJoin |
An M-join witness is a partition |
Tablet.SkewPartition |
A skew-partition witness is a partition of |
Tablet.BalancedSkewPartition |
A skew-partition witness |
Tablet.BalancedPair |
|
Tablet.LineGraphOfBipartite |
|
Tablet.Bicograph |
|
Tablet.BicographModel |
For |
Tablet.InducedPath |
|
Tablet.PathInterior |
The vertices in the support of |
Tablet.ConnectedSet |
|
Tablet.Component |
|
Tablet.AnticonnectedSet |
|
Tablet.AnticompletePair |
|
The paper carries 131 labelled statements. 120 of them have a Tablet node of exactly
the same name — SPGC, decomp, RR, RRC, RRstrip, betterwheel, allpairs,
balancev, K4jump and so on — so that correspondence is by name and is mechanically
checkable. Note that an exact name match establishes association, not statement
agreement.
The 11 remaining labels are not uniformly "renamed". reference/paper-label-map.md
gives the full 131-row mapping with a verdict for each; in summary, 5 are renamed
because the label is not a legal Lean identifier (1-hat, hole&antihole,
hole&antipath, hole&antipath2, t=3), 1 is split across declarations (summary,
whose twelve items the paper itself proves separately), 1 carries the adjusted name but
states a different result (linegraph2.5), and 4 are not declared at all
(bighole&antihole, bicographs, recalcitrant, CCZthm). The paper itself describes
the big-hole theorem as unused and CCZthm as an alternative route not taken.
Not every node corresponds to something printed in this paper. The formalization
proves background results from the literature as first-class nodes rather than assuming
them. 56 nodes are grounded in three sources — Chvátal–Sbihi (21), Cornuéjols' strong
perfect graph conjecture survey (21), and Trotignon's Perfect graphs: a survey (16) —
listed node by node in reference/literature-grounding.md.
The two paper targets above are the run's configured goals. Other named theorems are proved as intermediate nodes, among them the weak perfect graph theorem of Lovász:
| Node | Statement |
|---|---|
Tablet.PerfectComplement |
For every finite simple graph |
Three deviations were automatically authorized during the Trellis process. Each is
documented in full under reference/, stating the defect, the repair, and why the
deviation is local.
| Deviation | Affected nodes | Defect |
|---|---|---|
betterwheel2_hub_relation |
betterwheel2 |
The printed subsidiary statement asserts a containment |
nonsat_k4_complement_outcome |
nonsat |
The printed intermediate theorem omits a genuine |
smallbico_one_end_residual |
smallbico, SmallBicoNonmajorComplement, SmallBicoNonmajorOutcomeTwoTranslation
|
The printed theorem misses a long-antipath one-end residual case. |
In each case the deviation is absorbed by downstream consumers without changing their statements, and neither paper target is altered.
One commit per state-changing supervisor checkpoint — 1,470 commits carrying 1,571
checkpoint tags, since a checkpoint that changed nothing on disk reuses its predecessor's
commit. The publication metadata (this README, LICENSE, formalization.yaml,
SIZE_ANALYSIS.md and the two mappings under reference/) rides in the final checkpoint
commit rather than in a separate publication commit. The run began 2026-07-17 and was driven end to end
by Trellis: a single model (OpenAI gpt-5.6-sol via the Codex CLI, reasoning effort
xhigh) filled every role — worker, reviewer, and the four independent verifier lanes
(correspondence, soundness, paper-faithfulness, substantiveness) — with workers running
in a bwrap sandbox against a pinned Mathlib, and only the Mathlib import prefix
permitted.
The only human input was approval of the stated theorem statements at the human gate after the theorem-stating phase. No mathematical content, proof steps, or formalization hints were supplied by hand.
process-memory/ records the run's own accumulated findings, one entry per decision,
including where it concluded the printed paper was defective. It is the run's working
notes rather than a curated document.
The formalization phase ended at cycle 1444; cycle 1445 was the first cleanup cycle.
The tag formalization-complete marks that boundary. The protocol admits the cleanup
phase only with an empty blocker set, so the tagged commit is the first state in which
every node had passed all four verifier lanes and both paper targets were Lean-closed.
Every Trellis commit after it is cleanup: proof simplification, helper extraction and
lint repair, with neither target statement changed. The final commit additionally carries
the hand-written publication metadata described under Provenance.
The run is still going, so this repository gains commits. Cleanup continues to
simplify proofs and extract helpers, and later snapshots are published as it does. Both
paper targets have been Lean-closed since formalization-complete, and every commit
after that tag preserves their statements byte-for-byte; what changes is how the proofs
are organized. To read the formalization at the moment it was first complete, check out
that tag. Commits verified by the external comparator carry their own tags — see
comparator/README.md.
SIZE_ANALYSIS.md is a crude size analysis of this repository produced by ChatGPT,
included unedited and offered as possibly useful context from an agent rather than as a
result of this project.
Cleanup is still under active development in Trellis. In particular, some cleanup-phase semantics were changed during this portion of the run. The no-steering property is unaffected — no mathematical content, proof steps, or formalization hints were supplied by hand in cleanup any more than in the earlier phases — but the phase itself is less settled than the ones preceding it.
lake exe cache get
lake build
Requires the toolchain in lean-toolchain and the Mathlib revision pinned in
lake-manifest.json.
semantic-closure.json records, for each node, the definitions its statement is expressed
in terms of, as computed by the Trellis kernel. It is shipped so that the viewer linked at
the top can be rebuilt from this repository alone, with no Lean toolchain — the export
script reads it in place of the run's internal state. Nodes absent from it are definitions,
which carry no closure record.