Repository navigation
Import the Robertson–Seymour graph minor theorem - #1010
Conversation
Proof profile (new / modified Lean files)This PR adds or modifies 2227 Lean files under Advisory only — never blocks merge. |
Vilin97
left a comment
There was a problem hiding this comment.
One citation correction for the draft at 8f1ed88.
GM20/Assembled.lean:110 cites Graph Minors XX (10.5) for the undirected theorem. The printed (10.5) is stated for directed graphs, and the preceding paragraph names the undirected implication. Please describe the Lean endpoint as the standard undirected consequence of (10.5), consistent with the explanation already in GM20/Main.lean. The theorem statement can stay as it is. Robertson–Seymour, §10
|
Advisory cross-file review against Lean Pool's supervisory rubric. This is not by itself a significance, source-verification, or merge verdict. [Low impact] No blocking defect was established in the reviewed changes, but the incomplete full-contribution review does not support an unconditional merge recommendation. SummaryImports the Robertson–Seymour theorem for finite Mathlib multigraphs. The latest changes share supporting proofs and replace several natural-number counts with extended counts.
Reviews (26) · Last reviewed commit: "Repair Graph Minors source notes and con..." · Reviewed by Greptile |
Vilin97
left a comment
There was a problem hiding this comment.
Accept the Graph Minor import at 7becb4b. Required Lean CI is still running.
- The assembled and public endpoints prove the finite-multigraph statement. The corrected docstring identifies it as the undirected consequence of Robertson–Seymour’s directed result (10.5). Graph Minors XX, §10
- Each of the five moved bridge theorem signatures matches its predecessor, and the prior GM16 spellings still resolve. I found no dangling imports. The assembled endpoint reaches 2,206 modules, and the public aggregate reaches all 2,208 Lean files, including the two wrappers. The partial-port advisory concerns material beyond the selected theorem closure.
- The pinned Apache-2.0 source and its formalization metadata support the project attribution. The pinned Mathlib, Tau Ceti and Lean Pool comparisons found no duplicate graph minor theorem. The retained local audit lists only the three allowed axioms for both endpoints and reports no trust violations across the project. Exact Lean CI
Vilin97
left a comment
There was a problem hiding this comment.
Approve the graph minor theorem import at 7becb4b79964a42ca942b68db4ace9ccae0165a0.
Faithfulness and scope
GraphMinor.graph_minor_theorem quantifies over all sequences of Mathlib multigraphs with finite vertex and edge sets and concludes ∃ i j, i < j ∧ IsIsoMinor (G i) (G j). The vertex and edge bijections in GraphMinor.Iso preserve incidences, including loops and parallel edges. IsIsoMinor explicitly chooses a subgraph and a subset of its edges for contraction. The contraction builds vertex components using the selected incidences and deletes the contracted edges. This matches the finite multigraph formulation of Wagner's conjecture. Robertson and Seymour, Graph Minors XX.
I followed the entry point through GM20.graph_minor_theorem_assembled and wagner_conjecture_undirected_proof. The directed proof handles a sufficiently large clique minor directly and uses the well-quasi-ordering of patchworks in the complementary case. Projection of the directed minor gives the undirected minor. The two public theorem declarations have the same three permitted axioms.
Novelty and significance
Lean Pool's cards, source, history, and import queue and the pinned Mathlib and Tau Ceti sources contain no proof of this endpoint. The graph-minor well-quasi-ordering is the central theorem of the Robertson–Seymour series. The import also preserves reusable definitions and proofs for surface drawings, tangles, directed minors, and well-quasi-ordering. The selected dependency closure excludes upstream challenge, example, test and companion endpoints. The final theorem's import closure reaches all 2,207 owned modules other than the generated imports index. Every direct external import goes to Mathlib. The elaborated endpoint's constant dependency walk reaches 2,176 owned modules and resolves every local constant.
Upstream and attribution
The imported closure comprises 2,205 upstream Lean files, measured at 657,569 lines. The upstream tree identifies Apache-2.0, attributes the development to MohammadTaghi Hajiaghayi and Mahdi JafariRaviz, and records agent automation. The project card and file headers carry the same attribution and the modified files carry port notices. Pinned upstream, public announcement.
Engineering
The source-level inventory compared the top-level declaration names across all 2,205 upstream paths. I traced the nine changed public spellings to their replacements and checked the explicit universe annotation on cliquePathThreshold. The former IsSplit.closed_half result is mem_closed_half with the same conclusion and without the unused split assumption. The graph, drawing, and seam definitions remain available. The bridge follow-up also moves five names to shared proofs and exposes them through their original import. Lean resolves each prior name with its original type.
The partial-port advisory listed eight large upstream files from the algorithms and Graph Minors XXI–XXII. Each is outside the pinned GM20.Assembled dependency closure. The three matched files with LOC changes preserve their upstream interfaces. GM09.Section2b preserves both original theorem statements and shares the detour and separation arguments across four private lemmas. The statement changes in GM16.ProperLocalAssembly are uses of the renamed localSociety field. Its proofs reuse the XV proper-span lemmas. GM16.ProperBridgeIntersections exposes the same five names through GM14.BridgeFacts, where the common proofs now live. Partial-port audit.
I checked the full source inventory in bounded groups and inspected the endpoint, contraction and isomorphism definitions, directed-to-undirected bridge, surface drawings, capped-surface lemmas, cuff lifting, and transaction replacement code. The port removes proof-budget overrides, separates mathematical steps in the largest proofs, removes unused assumptions and private imports, and reuses existing proofs of proper-span facts. In matched trials the four profiled modules in the PR description improved. The first guarded clean run took 24:08.11 for 2,207 project modules. The citation-only follow-up rebuilt the affected module under the same guards. The bridge follow-up removes 394 net lines and shares the graph equality proof with the vertex-set consequence. Its guarded rebuild took 35.63 seconds and accepted timing receipts for all 2,208 modules. The current head passed the index, declaration, style, and quality checks locally. The refactored head's clean repeat took 20:11.23 and measured all 2,208 modules under the guards. The longest file took 27 seconds. The same index, declaration, style and quality checks passed on the clean outputs. Citation review, bridge review and repair.
CI on the reviewed commit
Lean Action CI built all 2,208 new Lean files within the time and memory limits. The longest CI file took 24 seconds. CI passed declaration lint, style, compiler-message, option and axiom validation for GraphMinor. The required build and content separation checks succeeded. Documentation preflight, Ruff, pytest, actionlint, SHA-pinning and minimal-file checks completed with the workflow's inapplicable-path skips. Greptile completed on this head with zero new comments, and the shared bridge proof thread is resolved. Lean Action CI, content separation, Greptile review.
|
Historical review request for |
🤖 LLM review (
|
| Rubric | Verdict | Bottom line |
|---|---|---|
| Faithfulness | ✅ pass |
The headline proves the card’s finite multigraph theorem, and several supporting predicates still have cardinality edge cases. |
| Novelty | ✅ pass |
Targeted source searches found no equivalent of GraphMinor.graph_minor_theorem in pinned Mathlib, either checked Tau Ceti revision, or the base pool, with exhaustive semantic coverage unverifiable. |
| Significance | ✅ pass |
The project delivers a complete research-level proof, and the identifiable generated output is a 2,233-line import index (0.31% of added Lean) that mk_all regenerates from module paths. |
| Sources | 🛑 block |
The public theorem matches Graph Minors XX (10.5) and credits the pinned formalization, with supporting citation corrections needed for Chapters V and XII and the Zulip timestamp independently unverified. Graph Minors XX, p. 355 · Pinned formalization |
| Code quality (advisory) | flag |
Parallel implementations of tree operations, net fibers, and surface topology create maintenance debt alongside an unused Chapter V dependency and unused side-extension premises. |
| Aspect | Value |
|---|---|
| Proves the claim | ✅ proves_it |
| Assumed, not proved | The card discloses both hypotheses, (hV : ∀ n, V(G n).Finite) and (hE : ∀ n, E(G n).Finite). The proof supplies the cited intermediate results internally. |
| Matches cited source | 🛑 mismatch |
| Fit | ✅ good_fit |
| Level | research |
| Branch | structural graph theory |
| Mode | theory_building |
| Code quality | 3 / 5 |
Statement check: For every sequence of finite Mathlib multigraphs, the theorem gives indices i < j and a subgraph of G j whose contraction is isomorphic to G i by vertex and edge bijections that preserve incidence, including loops and parallel edges.
GraphMinor.graph_minor_theorem proves Robertson–Seymour’s well-quasi-ordering of finite multigraphs by the minor relation through a development of tangles, surface portrayals, and patchwork simulation.
Faithfulness findings (4)
- vacuous-bound —
LeanPool/GraphMinor/Thomas/Basic.lean:340
A one-node decomposition with an infinite vertex set as its sole bag satisfiesWidthLEat zero because the bag’sncardis zero. Useencardfor the bag bound or require finite bags. The application intheorem_3already uses a finite vertex set.
Evidence:TreeDecomphasbag : ι → Set αandiUnion_bag : ⋃ t, bag t = V₀. ItsWidthLErequires∀ t : ι, (D.bag t).ncard ≤ w + 1. - vacuous-bound —
LeanPool/GraphMinor/GM09/Section11c.lean:338
IsLeThreeCliqueaccepts the full vertex set of the complete graph on the natural numbers. Its cardinality check evaluates to zero, and all distinct pairs are adjacent. UseK.encard ≤ 3so callers can derive finiteness from the predicate.
Evidence:IsLeThreeCliquerequiresK ⊆ V(G) ∧ K.ncard ≤ 3 ∧ ∀ u ∈ K, ∀ v ∈ K, u ≠ v → G.IsLink s(u, v) u v. The consumerisLeThreeClique_left_or_rightseparately takes(hfin : K.Finite). - truncated-cardinality —
LeanPool/GraphMinor/GM14/Suppress.lean:49
Thinaccepts a side consisting of two shared vertices and infinitely many parallel edges between them. There are no private vertices, so the degree test is vacuous, and the edge count evaluates to zero. The degree functions here and inRST94/Trees.leanalso report zero at vertices of infinite degree. Require finiteness in these standalone definitions or use extended cardinalities.
Evidence:ThinchecksE(G₁).ncard ≤ (V(G₁) \ V(G₂)).ncard + 1in its two-shared-vertex branch.Whitney.deguses{e | G.Inc e v}.ncard, andLeanPool/GraphMinor/RST94/Trees.lean:33definesdegusing(S.neighborSet v).ncard. - unexercised-predicate —
LeanPool/GraphMinor/GM07/Defs.lean:134
AreInternallyDisjointLines,IsNetEdgeType1, andIsNetEdgeType2have no consuming theorem or nontrivial witness in the diff. Empty sets satisfy all three checks, so the predicates alone give callers no evidence that the inputs are lines or seam edges. Exercise them on actual lines and edges or omit them.
Evidence:AreInternallyDisjointLinesrequires∀ x ∈ F₁ ∩ F₂, x ∈ lineEnds F₁ ∧ x ∈ lineEnds F₂.IsNetEdgeType1requirese ⊆ bd S.IsNetEdgeType2requires∀ z ∈ e, (N.φ ⁻¹' {z} ∩ C₁).Nonempty ∧ (N.φ ⁻¹' {z} ∩ C₂).Nonempty.
Sources findings (3)
- unlabelled-variant —
LeanPool/GraphMinor/GM05/Defs.lean:81
For the empty graph with a single empty bag, the printed decomposition-width formula gives −1. Lean gives 0 because subtraction in ℕ∞ truncates at zero. Label this convention indecompWidthalongside the infinite-bag convention. Graph Minors V, p. 93
Evidence: The docstring says ‘For finite graphs this is the width of Graph Minors V, Section 1, page 93.’ The definition isnoncomputable def decompWidth (χ : ι → Set V) : ℕ∞ :=followed by⨆ t, (χ t).encard - 1. - source-mismatch —
LeanPool/GraphMinor/GM12/Section7Proved.lean:445
The printed proof also invokes the bound when choosing its initial walk for a center whose radial atom is a region, before the later argument about a deleted edge. Restrict the page reference to that later use and credit the initial-walk construction from a deleted edge to the Lean proof. Graph Minors XII, p. 269
Evidence: The docstring says ‘The proof uses the bound only for a deleted edgee = c(page 269).’ Intheorem_7_8_proof, the initial walk usesexists_walk_of_edge_dist_le hS hResp hE_ne hK hds hd_eq hc hh he₀_Γ (by omega)with(hdist e₀ ⟨he₀_Γ, he₀_not_Γ'⟩) (fun hce => hck (hce ▸ ⟨he₀_Γ, he₀_not_Γ'⟩)). - source-mismatch —
LeanPool/GraphMinor/GM15/Cited.lean:350
Both (7.11) docstrings attribute the added bound to (7.8) and (7.10). Printed (7.8) places the bound on a center edge retained by the subdrawing. Cite the corrected form of (7.8) and the printed (7.10), and explain that a center edge belongs to the deleted neighborhood. Graph Minors XII, p. 268 · p. 270
Evidence:GM12Theorem711Statementassumes(z ∈ H.E → 2 ≤ lam)and describes it as the hypothesis ‘that XII states in (7.8) and (7.10) and omits here.’LeanPool/GraphMinor/GM12/Section711.leanrepeats the attribution at line 600 and uses(hz_lam : z ∈ H.E → 2 ≤ lam)intheorem_7_11_proof.
Code quality findings (13)
- duplicate-definition —
LeanPool/GraphMinor/GM10/Section9.lean:490
leafGraph,leafProj, andsomeHomduplicateattachLeaf,projAttach, andattachLeafSomeHomfromGM10/TreeWidthBasic.lean, which is already a transitive dependency. The two implementations also prove preservation of treehood and projection of paths separately. Use one attachment construction and share the bridge proof of treehood from Section 9, which needs no finiteness assumption.
Evidence:private def leafGraph (T : SimpleGraph ι) (u₀ : ι) : SimpleGraph (Option ι) whereand@[expose] def attachLeaf (T : SimpleGraph ι) (t₀ : ι) : SimpleGraph (Option ι) wheregive the same four adjacency cases.isTree_leafGraphat line 617 usesrw [isAcyclic_iff_forall_adj_isBridge].isTree_attachLeafatGM10/TreeWidthBasic.lean:394separately requires[Finite ι]. The path proofs areonTreePath_leafGraph_someat line 693 andonTreePath_projAttach_of_someatGM10/TreeWidthBasic.lean:484. - duplicate-definition —
LeanPool/GraphMinor/Thomas/Basic.lean:50
Thomas and Chapter X maintain the same tree-path predicate with separate proofs for endpoints, reversal, coincident endpoints, and passage from paths to walks. Chapter V already reexports the Chapter X predicate, whileGM10/Section11.leanadds another reversal proof. Put the relation and its basic facts in a shared simple-graph module and use the existing namespace names as aliases where needed.
Evidence: Thomas definesOnTreePathby∀ p : T.Walk t₁ t₂, p.IsPath → t ∈ p.support.GM10/Defs.lean:382defines it by∀ p : T.Walk t t'', p.IsPath → t' ∈ p.support.Thomas/Basic.lean:88andGM10/Section11.lean:472both prove reversal withhave := h p.reverse hp.reversefollowed byrwa [Walk.support_reverse, List.mem_reverse] at this. - duplicate-proof —
LeanPool/GraphMinor/GM15/Section7.lean:730
Seven declarations reconstruct the same subgraph bound for the two members of the union definingsection7G0. Some callers use it to compute the union's edge set and others use it only to bound the union byG. Prove the member bound and the resulting union bound besidesection7G0so changes to the construction have one place to update.
Evidence:exists_cleared_vertex_outside_eye_zones,theorem_7_3_proof,theorem_7_4_proof,theorem_7_5_proof,theorem_7_7_claim_1,assemble_eye_arrangement, andexists_section7G0_embeddingeach introducehave hPair_le : ∀ Q ∈ ({η.imageGraph, remainingBridgeUnion G H η d θ' μ r} : Set (Graph α β)),and split the pair withrintro Q (rfl | rfl). - duplicate-proof —
LeanPool/GraphMinor/GM07/Section2Base.lean:358
The net API has two independent finiteness proofs for every fiber of the same quotient map.Section46Matchingusesfinite_preimage_singletonwhileSection46FibresusesNet.finite_fiber. Reuse the proof fromMinimalNetand retain the other name as a forwarding lemma if callers need it.
Evidence:theorem finite_preimage_singleton (N : Net S) (z : S) : (N.φ ⁻¹' {z}).Finite := byinSection2Base.leanandtheorem Net.finite_fiber (N : Net S) (z : S) : (N.φ ⁻¹' {z}).Finite := byinMinimalNet.lean:114each analyze the endpoint, interior-arc, and singleton cases. - duplicate-proof —
LeanPool/GraphMinor/GM14/DiscSlope.lean:250
Chapter XIV proves again that a drawing circuit has the point set of an O-arc. Both proofs split the nonloop case into two paths and separately calculate the point set of a loop. Share the proof beside the drawing topology lemmas so the circuit and loop arguments have one implementation.
Evidence:theorem isOArc_of_isCircuit {C : Drawing S} (hC : C.IsCircuit) : IsOArc C.U := byandtheorem IsCircuit.isOArc_U {C : Drawing S} (hC : C.IsCircuit) : IsOArc C.U := byinGM11/Separate.lean:41independently useIsCircuit.E_eq_of_loop. The Chapter XIV proof already usesU_inter_of_disjointfor the two paths. - duplicate-proof —
LeanPool/GraphMinor/GM17/RegionFrontier.lean:173
Chapters XI and XVII independently prove preconnectedness of the same planar annulus and of the same open-disc frontier. SinceIsOpenDiscincludes openness, the Chapter XVII frontier result follows from the Chapter XI result by rewriting the interior. Share both results. The punctured complex unit-ball proof inGM19/FragmentCapping.leancan likewise useSurface/TriLocal.lean'spunctured_unit_ball.
Evidence:isPreconnected_ringandGM11/PaintingRegions.lean:75'sisPreconnected_annulusboth use an image of a product with the unit sphere. The frontier conclusions atGM17/RegionFrontier.lean:199andGM11/PaintingRegions.lean:102areIsPreconnected (closure r \ r)andIsPreconnected (frontier r).GM19/FragmentCapping.lean:95andSurface/TriLocal.lean:37both proveIsPreconnected (ball (0 : ℂ) 1 \ {0})by radial scaling. - duplicate-proof —
LeanPool/GraphMinor/GM17/AngleOrder.lean:50
The circle parameter API repeatedly derives uniqueness from integer multiples of a full turn and separately constructs representatives on the same half-open interval. UseCircle.exp_injOn_Icofor uniqueness, as Chapter XX already does, and share one representative lemma betweenGM09/CircleCut.lean,GM09/Section10c.lean,GM12/Section6Order.lean,GM17/AngleOrder.lean, andGM20/Section9a.lean.
Evidence:exp_inj_IcoandGM09/Section10c.lean:216'seq_of_circleExp_eqbegin withobtain ⟨m, hm⟩ := Circle.exp_eq_exp.mp h.GM15/Section3Parallel.lean:225proves the same uniqueness result fromcircle_exp_eq_iff_sub_eq_int_mul.mp h.GM20/Section9a.lean:105usesexact Circle.exp_injOn_Ico (a := s) (b := s + 2 * Real.pi) (by simp).GM09/CircleCut.lean:54andGM12/Section6Order.lean:128both prove existence with membership inIco u (u + 2 * Real.pi). - duplicate-proof —
LeanPool/GraphMinor/GM17/VortexPortrayal.lean:34
Preconnectedness of a line with ends is reproved in Chapters VII, IX, XII, XIV, XV, XVI, XVII, and XIX. The analogous circle proof is also repeated inGM12/Section4CircuitMeet.lean,GM14/RigidWheel.lean, andGM14/Section7a.leandespite an implementation inSurface/DiscMerge.lean. Put the basic connectivity lemmas in the shared surface API so drawing modules can use them directly.
Evidence:IsLineWithEnds.isPreconnectedhere andisPreconnected_of_isLineWithEndsinGM19/Section13f.lean:41each identify the line with the range of the subtype-valued homeomorphism followed by coercion and close withexact isPreconnected_range (continuous_subtype_val.comp f.continuous).Surface/DiscMerge.lean:395givesIsOArc.isPreconnectedby the corresponding argument forCircle. - duplicate-proof —
LeanPool/GraphMinor/GM12/Section77.lean:115
Three lemmas independently prove that a tangle of order at least two has an edge. Every version orients the bottom separation and applies the same tangle result to three copies of it. Put the lemma inGM10/TangleLemmas.leanand use it from the Chapter XII trace and deletion proofs and the Chapter XIV metric proofs.
Evidence:edgeSet_nonempty_of_isTangle_of_two_lehere andedgeSet_nonempty_of_isTangleinGM14/Section9a.lean:202both usehave hne := GM10.theorem_2_3_proof hT hθ hbot hbot hbot.edges_nonempty_of_tangle_order_twoinGM12/Section2NonemptyEdges.lean:31useshave hne := GM10.theorem_2_3_proof hT hθ hm hm hmfor the same separation. - unused-hypothesis —
LeanPool/GraphMinor/RST94/Section3c.lean:102
exists_extended_sidediscards the bound onDbyB, the first-endpoint uniqueness premise, and the containment ofSin the separator. Both calls supply all three, including an explicit containment proof for each side. Drop these arguments from the helper and keep the bounds and uniqueness facts where the enclosing proof uses them directly.
Evidence: The unused binders are(_hDB : D ≤ B),(_hfirst : ∀ i, ∀ x ∈ pathV (P i), x ∈ (A ∩ B).vertexSet → x = (P i).first), and(_hS : S ⊆ (A ∩ B).vertexSet). Both calls start withexists_extended_side hA hB hDA' hDBand passhfirst; their containment arguments are(fun x hx => hVZ (Or.inl hx))and(fun x hx => hVZ (Or.inr hx)). - unused-import —
LeanPool/GraphMinor/GM16/Defs.lean:15
The public Chapter XVI import places the Chapter V simple-graph decomposition API, grid-bound parameter chain, and weight sum in the theorem's transitive imports. Their consumers are confined to Chapter V itself. Keep these declarations available through the Chapter V or aggregate library import and take prerequisites directly from their defining modules in the theorem's dependency chain.
Evidence:GM16/Defs.leanhaspublic import LeanPool.GraphMinor.GM05.Defs. That module definesdef TreeWidthLE (G : (⊤ : SimpleGraph V).Subgraph) (w : ℕ) : Prop :=,def θ₉ (θ : ℕ) : ℕ :=, andnoncomputable def weightSum (w : V → ℕ) (X : Set V) : ℕ :=. The other import ofGM05.Defsis its direct entry inLeanPool/GraphMinor/Imports.lean:34. - duplicate-proof —
LeanPool/GraphMinor/GM12/Section4CliquePorts.lean:29
The port bijection repeats the injectivity proof for the sorted clique endpoints in a module that already imports the edge enumeration. MakecliquePair_ends_injectiveavailable to both and use it for the two calls in the port bijection.
Evidence:sorted_pair_ends_injectivehere andcliquePair_ends_injectiveinGM12/Section4CliqueEdges.lean:37both stateFunction.Injective (fun e : Σ j : Fin p, Fin j.val => (cliquePairLower e, e.1))and use the same proof beginningrintro ⟨j, i⟩ ⟨k, l⟩ heq. - duplicate-proof —
LeanPool/GraphMinor/Surface/TriGraph.lean:31
The triangulation graph and cohomology modules independently prove the same subtype cardinality identity with identical proofs. The graph module already reaches the cohomology module throughTriCohGlue. Generalize the earlier lemma to arbitrary types and use it for both sets of callers.
Evidence:ncard_coe_preimagehere andncard_val_preimageinSurface/TriCoh.lean:127both prove the cardinality identity for the pullback ofAtoV. Both start withhave h1 : Subtype.val '' {v : V | v.1 ∈ A} = A ∩ V := byand finish withrw [← h1, ncard_image_of_injective _ Subtype.val_injective].
Tokens: 8,917,349 in / 62,156 out across 5 model calls · Tier: codex-subscription · Effort: xhigh · Billing: Codex subscription quota (no API credits) · Estimated cost: $36.6017 (Standard API equivalent; uncached input)
Each rubric is an independent review against .github/review-rubrics/ on top of .github/REVIEW_RULES.md. Disagree? Reply on the PR; rules can be updated in a PR of their own.
request_changes is an ask, not a close: of the reviewer's past request_changes verdicts, 39% were merged after a human looked. Read the findings before acting on the verdict.
|
Both source findings and all six targeted proof-sharing findings are addressed in Source references
Shared proofs
The earlier public names resolve after the refactor. The strict local build, generated index, style, declaration lint, and project quality checks passed on the new head. GitHub validation is running for that commit. |
There was a problem hiding this comment.
The mathematics and proof sharing check out at 8da62df. Six newly verified source corrections remain.
-
The assembled finite multigraph theorem, its public entry point, and the project card are byte-identical to the previous reviewed head. The contraction refactor preserves the model’s vertex and edge maps. The directed proof still establishes the tail and head equalities separately.
-
The directed simulation step now points to Graph Minors IV §7, reference [1] in XX, and the two references to XVIII (6.7) agree on journal page 106. Both match the source texts. Graph Minors XX §10 · Graph Minors XVIII (6.7)
-
The three new topology modules share proofs already in the port and retain their attribution. The capstone reaches all 2,209 substantive modules. The public import index includes the three additions and the dependency audit found no missing project imports. Lean CI · Exposition verification
-
The declared Graph Minors IX (8.1) result needs the nonempty-boundary label. The corrected result also covers the null graph. The journal locators in IV, XII, XVII, and XIX agree with the corrections in the configured review. In XIX (14.1), explain that the printed
q₀refers to the colour parameterω₀. Verified source findings
|
/review |
|
Addressed the source and maintainability findings at Sources
Shared proofs
The full warning-free build, index, style, declaration lint and project-quality audits passed locally before the final named-argument compatibility adjustment. Both adjusted modules then rebuilt warning-free. A compatibility check resolved all 85 tested historical names and types. Both theorem entries use only |
There was a problem hiding this comment.
The mathematical review stands at 1d3e383. The newly verified source corrections remain open at this head.
-
The new head resolves all six source findings. The IX (8.1) declarations identify the nonempty-boundary case, the IV, XII, XVII, and XIX locators agree with the papers, and XIX (14.1) explains the printed colour-parameter misprint. Prior source findings
-
The capstone, public entry point, and project card are byte-identical to the predecessor. Four modules share supporting proofs. The seven removed structures had no callers in the predecessor and were outside the registered results.
-
The assembled proof reaches all 2,213 substantive modules. The public index includes the new modules, with no missing project imports or new external dependencies. Exact Lean CI
-
XIX (10.5) needs to distinguish the added S₃ hypothesis from the printed S₄-only version. VII (4.3) uses the corrected convention permitting repeated direct paths with no internal vertices. XVII (1.1)(ii) needs to identify the correction to the handle and crosscap weights. I also verified the supporting citation corrections in XV and XVII. Exact source findings
|
/review |
|
Addressed the source and code quality findings at Source notes
Shared implementations
The warning-free project build, generated index, style checker, Mathlib declaration linter and project-quality checks passed locally. All 119 tested historical names and types match. Both theorem entries use only |
There was a problem hiding this comment.
The six source updates are verified at fc1553d. One endpoint transcription remains.
- The documentation now identifies the corrected XIX S₃ condition, the repeated direct paths in VII (4.3), and the corrected XVII handle and crosscap weights. The XV and XVII locators were updated.
- At
GM15/Cited.lean:298, the summary of XV (3.4) still attributes the lower bound tod'(v₁, v₂). The corrected endpoints arev_kandv_{2k}, which the formal result inGM15/Section3.leanalready uses. This is a documentation-only correction. Pinned source correction - The assembled graph minor theorem, project card, and entry point are byte-identical to the previous head. The shared modules preserve the public import index, including the five compatibility modules that the capstone no longer needs directly. Exact Lean CI
|
/review |
|
Addressed the source and code quality findings at Sources
Shared proofs
The pinned project build passed without warnings, and the generated indexes, style checker, Mathlib declaration linter and project-quality audits passed for all 2,222 modules. All 152 tested public names and types match. Both theorem entries use only |
Vilin97
left a comment
There was a problem hiding this comment.
One citation correction remains at d6832852270ff9aea5a8abbf138f7d1f59cd5ec3.
- This revision resolves the findings about closed surfaces in XIV (5.1)–(5.5), the lambda-zone hypothesis, the battlefield normalization, and the page reference for XIX. The registered results, public entry point and project card are unchanged. Reviewed changes
- The XV (3.4) note in
GM15/Cited.leanstill transcribes the bound asd'(v₁, v₂) ≥ 2k - 8. Replace those endpoints withvₖ, v₂ₖ, which are the ones used in the formal proof and the pinned source correction. The fix is confined to that docstring. Docstring · Source correction
|
/review |
|
The fifth review findings are addressed in Sources
Proofs
The warning-free build passed all 11,981 Lake jobs. The generated indexes, Mathlib declaration lint over 47,686 declarations, style and scoped quality checks pass. Both theorem entries use only |
Vilin97
left a comment
There was a problem hiding this comment.
Source approved at 7f07fa83. The Chapter XI and XVII citation repairs are in place.
- The importer’s preceding commit shares separation, chart and drawing arguments while preserving the project endpoints. Its Chapter XI (6.6) and slope-construction source notes are consistent with the pinned text.
- The follow-up changes comments in eleven files. It attributes the triangle inequality and the restraint-union step to XI (9.1) and restores the letter
Iin three Chapter XVII arc quotations. The proof and theorem statements in those files are unchanged by the citation commit. Earlier review
|
/review |
|
Scope and citation findings addressed in
|
Vilin97
left a comment
There was a problem hiding this comment.
Source review passed for 78661831. Hosted Lean and Exposition Verify are pending.
- The public excluded-minor endpoint, assembled proof, and project card are unchanged. Chapters V and VI remove unused statement scaffolding and retain the multigraph separation used by the proof. The eight seam declarations move to the already imported
Section2Euler, and the minimum-valency theorem remains in place. - The shared chart, seam, and arc arguments preserve the conditions needed by their callers. The citation corrections for Graph Minors XI and XVII are retained, and the explanation of XI (9.1) now identifies the atom anchor and strict
2 * D.repcutoff.
|
/review |
|
The cardinality and source findings are addressed in
All 54 changed files passed targeted Mathlib declaration lint and style. The release API comparison checked 1,898 prior exports and found only the planned signature changes and removals. Two relocated equation lemmas retain their types. The exact-head clean rebuild and hosted checks are in progress. Lean Action CI · Exposition Verify. |
Vilin97
left a comment
There was a problem hiding this comment.
Source review passed for dbc329eb. Required Lean CI and Exposition Verify are pending.
- The public graph-minor theorem, assembled proof, project card, and complete import index are unchanged. The cardinality bounds in Graph Minors XVI now enforce finite sets, and the proofs use their existing finite witnesses for the casts.
- The shared chart, seam, boundary, and radial proofs still establish the conditions used by the assembly. In Graph Minors XII (7.8), the revised note matches the existing proof’s deleted-edge hypothesis and the formulation in (7.10).
|
Chapter V now gives infinite tree-width bags the correct bound. The old simple-graph API admitted an infinite bag at width zero. The preceding clean build completed 2,226 modules and 11,983 jobs in 18m 32.70s without warnings. The clean rebuild and matched profiling for the new head have started. Preceding revision. |
Vilin97
left a comment
There was a problem hiding this comment.
Source review passed for 056e02bd. Required Lean CI and Exposition Verify are running.
- Graph Minors V now uses extended cardinality for bag width. An infinite bag has width
⊤, and a graph with no finite width bound has tree-width⊤. The relabelling and width-bound lemmas establish the corresponding properties for the corrected definitions. - Both commits are confined to
GM05/Defs.lean. The changed definitions have no callers elsewhere in the project, and the public graph-minor theorem, assembled proof, project card, and attribution are unchanged.
|
/review |
Vilin97
left a comment
There was a problem hiding this comment.
Approve 056e02bde6 for Lean Pool. The mathematical statement, source evidence, provenance and engineering checks support inclusion.
Faithfulness and significance
I checked the project card, the public theorem, the assembled proof and the minor predicate. For every sequence of multigraphs with finite vertex and edge sets, the theorem supplies i < j and an incidence-preserving isomorphism from G i to a contraction of a subgraph of G j. The statement includes loops and parallel edges. It is the undirected consequence of Graph Minors XX (10.5). Both public endpoint types agree with the upstream proof, and the compiled dependency traversal reaches 2,179 owned modules with zero unresolved local constants. Graph Minors XX, page 355 · Pinned upstream.
The closure matters beyond the endpoint. The drawing and surface APIs support geometric graph arguments, the directed-minor and tangle APIs give reusable intermediate statements, and the portrayal and patchwork theories develop substantial well-quasi-ordering infrastructure. I found no duplicate in Lean Pool, Mathlib or Tau Ceti. I checked the upstream-to-pool mappings in bounded groups for all 2,205 upstream closure files and inspected the endpoint branches, import graph and representative implementations. The original closure has 657,569 physical lines and excludes independent examples, tests and companion results.
Sources and scope
The root commit is dated November 13, 2026 at 21:18:35 UTC and the public announcement November 14 at 15:56:45 UTC. Apache-2.0 and the upstream author and automation metadata support the card's attribution and AI provenance. Root commit · Announcement.
I compared the repaired source notes with the papers. Chapter XI explains the slope threshold, the use of the respectful-tangle bijection, and the extension of the atom triangle inequality to sets. Chapter XII (7.8) prints a lower bound on the retained center edge. The proof uses the bound for a deleted center edge, and (7.10) states that corrected premise. Lean uses the latter. The Chapter XVII I-arc note, Chapter XVIII compatibility and partial-labelling premises, and Chapter XX isolation threshold match their proofs. Chapter XI, page 104 · Chapter XII, pages 268, 269, 270.
Engineering and trust
Chapter XVI now uses extended cardinality for tree-width bags, deletion sets and ring bags. The finite design and society witnesses justify the proof conversions. The small-torso case supplies a finite size bound. Chapter V's simple-graph width previously admitted an infinite bag at width zero. The corrected definitions reject that example, report infinite width as ⊤, and agree with the natural cardinality bounds for finite bags. The compiled scan found all ten Chapter V width references inside that module. A separate audit found seven references to the 17 omitted definitions, all within the removed families. Chapter XVI and source repairs · Chapter V repair.
I checked the original and shared proof invariants for leaf deletion, capped charts, net cut maps, closed-zone boundaries, segregation embeddings, portrayal membership and linkage, radial incidence, feature placement, and split-eye transaction paths. In particular, the path proofs retain the required endpoint orientations and one-sided region properties, and the graph restriction proof retains the graph's incidence data. The API audit compared 1,942 prior exports and found only the planned scope and type changes. Two relocated equations keep their types and the earlier re-exports remain available.
The clean build at 056e02bde6 passed 2,226 files and 11,983 Lake jobs without warnings. Generated indexes, style, Mathlib declaration lint for 47,355 declarations, static quality, and all four compiled trust audits passed. Both theorem endpoints use only Classical.choice, propext and Quot.sound. The local standalone replay compiled 2,743 declarations from 314 modules with zero unexpected diagnostics.
Performance and hosted verification
The first pinned clean build took 24:08.11. This head took 20:01.23, with a maximum of 26 seconds per file and peak process RSS of 2,436,660 kB. The 228 paired trials show the sum of mean wall time across 55 edited modules moving 267.15 → 255.03 seconds and the two unchanged controls 28.81 → 29.06. Edited user CPU time moved 194.95 → 191.62. I checked the largest apparent regression in XIV's Section10. One trial spent 5.99 seconds on imports, and the paired user CPU improved. Input loading and scheduling contributed to individual wall-time changes. Commands and timings.
Lean Action CI passed 100,473 Lake jobs, repository quality checks and declaration lint for all 47,355 GraphMinor declarations. The six other required checks for separation, documentation preflight, Python lint and tests, workflow lint and SHA-pinned Actions passed. Greptile reviewed all 2,227 changed paths and added no inline comments. Hosted Exposition Verify and the configured GPT review are in progress. Build project · Exposition Verify · Greptile · GPT review request.
|
Chapter V now distinguishes the paper's finite definition from Lean's extension.
The configured local build and declaration lint passed all 31 edited modules and 2,138 declarations. Style, static quality, the cardinality regressions and direct import checks passed. The guarded clean rebuild, paired measurements and required checks are starting for the new head. Exact commit. |
Vilin97
left a comment
There was a problem hiding this comment.
Source review passed for 8c86f8da. Required Lean CI and Exposition Verify are outstanding.
- Pairings now bound components by extended cardinality, and robustness carries a finite patch vertex set. The existing finite constructors supply that witness, and the public patchwork theorem still uses the proved Menger result. The Chapter XVI helpers recover finite vertex and deletion sets from the existing bounds.
- The shared arc and strip constructions preserve the coverage and avoidance conditions used by their callers. The public graph-minor theorem, assembled proof, import index, project card, and attribution are unchanged.
|
/review |
Vilin97
left a comment
There was a problem hiding this comment.
Approve 8c86f8da73 for Lean Pool. The theorem, source evidence, provenance and engineering checks support inclusion.
Faithfulness and significance
I checked the project card, the public theorem, the assembled proof and the minor predicate. For every sequence of multigraphs with finite vertex and edge sets, the theorem supplies i < j and an incidence-preserving isomorphism from G i to a contraction of a subgraph of G j. The statement includes loops and parallel edges. It is the undirected consequence of Graph Minors XX (10.5). Both public endpoint types agree with the upstream proof, and the compiled dependency traversal reaches 2,179 owned modules with zero unresolved local constants. Graph Minors XX, page 355 · Pinned upstream.
The closure matters beyond the endpoint. The drawing and surface APIs support geometric graph arguments, the directed-minor and tangle APIs give reusable intermediate statements, and the portrayal and patchwork theories develop substantial well-quasi-ordering infrastructure. I found no duplicate in Lean Pool, Mathlib or Tau Ceti. I checked the upstream-to-pool mappings in bounded groups for all 2,205 upstream closure files and inspected the endpoint branches, import graph and representative implementations. The original closure has 657,569 physical lines and excludes independent examples, tests and companion results.
Sources and scope
The root commit is dated November 13, 2026 at 21:18:35 UTC and the public announcement November 14 at 15:56:45 UTC. Apache-2.0 and the upstream author and automation metadata support the card's attribution and AI provenance. Root commit · Announcement.
I compared the repaired source notes with the papers. Chapter XI explains the slope threshold, the use of the respectful-tangle bijection, and the extension of the atom triangle inequality to sets. Chapter XII (7.8) prints a lower bound on the retained center edge. The proof uses the bound for a deleted center edge, and (7.10) states that corrected premise. Lean uses the latter. The Chapter XVII I-arc note, Chapter XVIII compatibility and partial-labelling premises, and Chapter XX isolation threshold match their proofs. Chapter XI, page 104 · Chapter XII, pages 268, 269, 270.
Engineering and trust
Chapter XVI now uses extended cardinality for tree-width bags, deletion sets and ring bags. The finite design and society witnesses justify the proof conversions. The small-torso case supplies a finite size bound. Chapter V's simple-graph width previously admitted an infinite bag at width zero. The corrected definitions reject that example, report infinite width as ⊤, and agree with the natural cardinality bounds for finite bags. The compiled scan found all ten Chapter V width references inside that module. A separate audit found seven references to the 17 omitted definitions, all within the removed families. Chapter XVI and source repairs · Chapter V repair.
I checked the original and shared proof invariants for leaf deletion, capped charts, net cut maps, closed-zone boundaries, segregation embeddings, portrayal membership and linkage, radial incidence, feature placement, and split-eye transaction paths. In particular, the path proofs retain the required endpoint orientations and one-sided region properties, and the graph restriction proof retains the graph's incidence data. I followed the later proof consolidation in each of the 31 edited modules. Region entry needs a closure point and containment. The general open-flat enlargement theorem preserves the old closed-surface conclusions. Arc subdivision preserves the union of ranges. The interval-chain covering proof applies to the arc, loop and line constructions with their original interval images. The shared edge separator still has order at most two and gives the same small-side orientation, so the radial-circuit consumers keep the same edge and vertex bounds. The radial deletion preserves the shared merged-region and support facts. The painting strip uses the same boundary and closed obstacle, and its remaining proof covers both the chosen cell and other cells. The singleton and deletion helpers keep their original subgraph operations. Complex negation transports the cap closure and boundary results at the negated threshold.
The published patch makes Chapter IV's pairing bound finite on each component and makes the robust patch carrier finite, using existing design or painting witnesses wherever robustness is constructed. The proof against an infinite complete component and the free-patch counterexample both pass. An edgeless graph on the natural numbers has infinitely many components. The new Chapter XVI lemmas verify the clique-sum vertex bound and bounded exact deletion. The compiled pre-repair audit found one reference to the removed definitions, within the removed family. The direct old import tests verify the moved graph and strip helpers. Review response.
I checked the finite-graph convention on page 92 and the two width definitions on page 93. The current docstrings identify the extension to infinite bags and graphs as Lean's convention. The authenticated Zulip message lookup returned timestamp 1794671805 for message 640335582, which verifies the public announcement at 15:56:45 UTC on November 14, 2026. Graph Minors V, pages 92 · 93 · Public announcement.
The exact local build passed 2,226 files and 11,983 Lake jobs without warnings. Generated indexes, style, Mathlib declaration lint for 47,350 declarations, static quality, and all four compiled trust audits passed. Both theorem endpoints use only Classical.choice, propext and Quot.sound. The edited-module audit covered 1,177 prior exports. The remaining cuff linkage hash differences disappear when the proof terms are hidden, and the earlier public import paths for the moved subgraph and strip lemmas still work. The local standalone replay compiled 2,745 declarations from 314 modules with zero unexpected diagnostics.
Performance and hosted verification
The first pinned clean build took 24:08.11. Two exact clean builds of this revision took 31:06.64 and 22:49.74 with the same command and fresh outputs. The edited and unchanged per-file times moved together in each run. The 132 paired single-thread trials moved from 161.48 to 159.95 seconds across the 31 edited modules and from 28.46 to 28.70 across two controls. Edited user CPU moved 129.46 to 127.94 seconds. Patchwork Menger improved from 7.56 to 6.27 seconds. The cap module rose from 28.33 to 28.96 seconds with overlapping trial ranges. The repeat guarded build had a maximum file time of 30 seconds and peak RSS of 2,428,380 kB. Commands and timings.
Lean Action CI passed 101,683 Lake jobs, repository quality checks and declaration lint for all 47,350 project declarations. Six other required checks passed. Greptile reviewed 2,227 changed paths and added zero inline comments. Hosted Exposition Verify and the configured GPT review are in progress. Build project · Exposition Verify · Greptile · GPT review request.
|
The source corrections and supporting API fixes are in
The full incremental project build passed all 11,985 Lake jobs without warnings. Generated indexes, style, static quality, the cardinality regressions, and declaration lint on all 61 revised files passed. Exact hosted validation and fresh measurements are underway. |
Vilin97
left a comment
There was a problem hiding this comment.
Source review passed for e4306a7d. Required Lean CI and Exposition Verify are outstanding.
- Cardinalities. The revised Thomas width bound rejects infinite bags and agrees with the natural-cardinality bound on finite bags. The small-clique test excludes infinite cliques. Both degree functions use extended cardinality and agree with the finite counts used by the suppression and tree arguments.
- Proof reuse. The shared tree-path predicate is definitionally the same as both previous definitions. The proof for attaching a leaf now covers arbitrary vertex types. The relocated circuit lemma retains its statement and public import paths. The three removed Chapter VII predicates have no in-tree uses. The project import index covers all 2,225 modules and retains Chapter V. Two internal API changes with no in-tree impact are the narrower
GM16.Defsimports and the renamedisTree_attachLeafnamed argument. - Sources and coverage. The Chapter V note now distinguishes the printed width convention from Lean's zero floor. The Chapter XII notes distinguish the printed initial-walk argument from the construction in Lean and explain why the deleted-edge condition applies to a central edge. The main theorem, project card, and original headers are unchanged. Chapter V, p. 93 · Chapter XII, p. 268 · p. 269 · p. 271
|
/review |
|
No further configured review will run on this PR. It has reached the limit of 6 reviews for one PR. Each review reads the PR afresh and can always find something new, so repairing and asking again need not end. From here:
|
Vilin97
left a comment
There was a problem hiding this comment.
Approve e4306a7d5b for Lean Pool. The theorem, source evidence, provenance and engineering checks support inclusion.
Result and sources
The public theorem gives a minor pair in every sequence of multigraphs with finite vertex and edge sets, and the witness is an incidence-preserving isomorphism from the earlier graph to a contraction of a subgraph of the later graph. The formal types include loops and parallel edges. I followed both public endpoints through the assembled proof and into the finite multigraph normalization. This is the undirected consequence of Graph Minors XX (10.5). The surface, drawing, tangle, directed-minor, portrayal and patchwork libraries give the import value beyond that endpoint. The upstream closure had 657,569 physical Lean lines in 2,205 files. The repository and pinned code carry Apache-2.0, both upstream authors are credited, and the upstream metadata supports the card’s AI provenance. I found no matching result in pinned Mathlib, Tau Ceti, or the pool. Graph Minors XX, page 355 · Pinned upstream.
The root commit is dated November 13, 2026 at 21:18:35 UTC. The authenticated Zulip API returned Unix timestamp 1794671805 for message 640335582, verifying the announcement on November 14 at 15:56:45 UTC. Both dates are in the acquisition window. Root commit · Public announcement.
The Chapter V note now identifies the floor applied to an all-empty bag family. Chapter XII (7.8) prints the bound for a retained center edge. The printed proof invokes the bound for the initial region-atom walk and later for a deleted edge equal to the center. The Lean construction starts from a deleted edge already within the distance bound, and the lower bound applies if that edge is the center. The (7.11) notes identify the bound in the corrected (7.8) and in printed (7.10). They explain why a center edge is deleted, since its distance to itself is zero. This addresses the three source findings in the preceding review. Chapter V, page 93 · Chapter XII, pages 268, 269, 270 and 271.
Supporting definitions and implementation
I checked every changed file in this revision against the preceding head and followed the affected callers. The previously reviewed upstream mapping covers all 2,205 source files. Extended cardinalities reject the infinite one-bag and clique examples and the side with infinitely many parallel edges. Both degree functions give ⊤ at infinite valency. Thomas pulls its finite-bag arithmetic from the finite vertex set, clique finiteness follows from the definition, and the finite-tree argument uses Mathlib’s natural degree where it sums degrees. The Chapter XIV suppression argument still preserves the degree of every other vertex. The compiled search accounted for all consumers of the neighboring Chapter VII edge predicates and found none for the three removed predicates.
I checked the bridge argument that proves the shared leaf attachment stays a tree. Its path projection preserves the vertex condition for all endpoints, and the Thomas and Chapter X names use one relation. The Chapter XV bridge union bound is shared by all seven callers. The finite-fiber theorem reuses the existing quotient proof. The circuit argument shares the two-path and loop branches in drawing topology, and the frontier and punctured-disc arguments use the earlier connectivity facts. Circle representatives use periodicity and uniqueness uses Mathlib’s half-open interval injectivity. Curve connectivity, tangle edge nonemptiness, clique port injectivity and subtype cardinality each have a shared proof. The narrower Chapter XVI imports remove Chapter V and its sole direct Mathlib dependency from the assembled closure, while the project aggregate includes Chapter V. Earlier independent review · Source and proof repair.
The exact clean build passed 11,985 Lake jobs and 2,227 files without warnings. Generated indexes, style, static quality, and Mathlib declaration lint for 47,324 declarations passed. All four compiled audits reported zero findings. The two theorem endpoints use only Classical.choice, propext and Quot.sound. The compiled dependency traversal reached 2,180 owned modules and resolved every local constant. The regression proofs and direct imports for the moved circuit and curve lemmas compiled. The API audit accounted for 1,872 earlier exports. The standalone Exposition replay checked 2,742 declarations across 314 source modules with zero unexpected diagnostics.
Performance and hosted validation
The exact clean build took 19:35.13 on the same VM with eight Lean threads, warm pinned dependencies and fresh project outputs. The first pinned build took 24:08.11 and the immediately preceding matched clean run took 22:49.74. All 2,227 files compiled under the guards. The slowest took 28 seconds and peak process RSS was 2,449,016 kB. The summed parallel timings also fell across sources outside the patch, so the whole-build difference includes workload and dependency effects.
In 248 paired single-thread trials, the sum of mean wall times for 60 edited modules fell from 194.03 to 192.03 seconds, and mean user CPU fell from 150.32 to 148.25 seconds. The two controls with identical source dependency closures moved from 9.25 to 9.24 seconds. Circle parameter and injectivity modules moved from 31.78 to 31.04 seconds and the surface topology group from 19.41 to 18.95 seconds. The largest individual increase was 0.21 seconds in the drawing topology module, which now provides the circuit proof shared by Chapters XI and XIV. The rebuilt project remains within repository time and memory limits.
All eight required GitHub Actions checks passed on e4306a7d5b. Lean Action CI passed 101,685 Lake jobs, fresh declaration lint, and repository trust validation. Exposition Verify replayed 938 targets, passed 781 against the configured baseline of 214, and listed zero GraphMinor failures. Greptile reviewed 2,228 changed paths and added zero comments. The last configured GPT review flagged three source notes and found supporting cardinality and maintenance issues. I verified the cited pages, traced the repairs through their callers, and checked the exact compiled results. The worker reached its per-PR review limit after that review. The repair response records each group of changes. Build project · Exposition Verify · Greptile · Last GPT review · Review limit.
The Robertson–Seymour graph minor theorem import passes local validation.
Result and provenance
GraphMinor.graph_minor_theoremgives indicesi < jin every sequence of Mathlib multigraphs with finite vertex and edge sets. The earlier graph is isomorphic to a contraction of a subgraph of the later graph. The isomorphism preserves vertex and edge incidence, including loops and parallel edges. This is the undirected consequence of Graph Minors XX (10.5). ImportLeanPool.GraphMinorfor the result andLeanPool.GraphMinor.Importsfor the supporting library. Graph Minors XX, §10.The upstream root commit is dated November 13, 2026 at 21:18:35 UTC. Mahdi JafariRaviz announced the formalization on Lean Zulip on November 14 at 15:56:45 UTC. Authenticated Zulip message
640335582returnedresult: successand Unix timestamp1794671805, which verifies that UTC time. The import pins89c19b2fd07130fe6fc0fb7df2743ad99558c939under Apache-2.0. The Lean headers credit MohammadTaghi Hajiaghayi and Mahdi JafariRaviz and identify port modifications. The upstreamformalization.yamlsupports the project card’s AI provenance. Pinned upstream and license · Root commit · Zulip announcement.Scope and infrastructure
The proof supplies reusable surface models, graph drawings, radial metrics, tangles and compression, directed minor models, portrayal operations, and patchwork well-quasi-ordering. Searches across pinned Mathlib, Tau Ceti, Lean Pool source and cards, and pool history, issues, branches and PRs found zero duplicate imports of the result. The transitive source closure of upstream
GraphMinor.GM20.Assembledhas 657,569 physical Lean lines in 2,205 files. The selected closure excludes tests, examples, challenge files and companion endpoints outside the proof and its supporting library.From the pinned upstream checkout, recursively follow import declarations starting at
GraphMinor.GM20.Assembledand keep the tracked repository modules. Sort their repository-relative paths intowagner-closure.txt. The manifest SHA-256 is44436eb177d4e06f898cd4a68a51e1b4968f9405a8bc291357b4335409132af5.The port has 2,227 Lean files and 708,681 physical lines. The assembled source closure reaches 2,219 owned modules and 706,007 lines, with 240 distinct Mathlib imports and one Lean meta import. The Chapter V width API is available through the aggregate import.
Port and review repairs
The port uses Lean 4.36.0, Mathlib
fc4f59e577feb1a4956671bc04ac18aaaf8cd842and Tau Ceti0642eae29e0a59ef798d04de325386445906e755. It removes 80 upstream compiler-option directives and updates graph, drawing, topology, tangle, portrayal, and patchwork proofs to the current APIs. Earlier passes share graph separation and contraction proofs, radial and normal-circle arguments, surface cutting and gluing, and linkage constructions. The source notes document the Menger proof and the Chapter XVIII compatibility and Chapter XX isolation premises. Earlier proof and source repairs · Later consolidation.The 1,468-line follow-up removes unused Chapter V statements and web definitions and the unused Chapter VI forest and cylinder constructions. The retained multigraph-separation definition serves 207 downstream declarations. Shared proofs handle segregation drawings, cell and cuff warp, quotient lifts, and whole-edge intervals. The seam partition supplies the edge count, and the chart, line, and separation arguments use common lemmas. Full declaration lint identified an unused Hausdorff premise in the new chart, which was removed. The updated source comments distinguish XI (9.1) on atoms from the two Lean extensions and specify the strict perimeter cutoff in the short-distance case. Follow-up commit · Review response · Graph Minors XI, page 104.
The latest repairs use extended cardinalities for Chapter XVI's bag and deletion bounds and for Chapter V's simple-graph tree-width API. A finite-design witness supplies the conversion in the torso proof. The Chapter XII note identifies the deleted center edge in the corrected hypothesis of (7.8). The import omits 17 unused definitions and shares proofs for portrayal, Euler deletion, drawing restrictions, cuff charts, net cuts, feature placement, radial edges and indexed paths. Chapter XVI, source and sharing changes · Chapter V regression and API change.
The latest review repair distinguishes the finite Chapter V citation from the Lean convention for infinite width. Pairings bound components with extended cardinality, robust patches carry a finite vertex set, and component counts distinguish infinitely many components from zero. Chapter XVI now proves finiteness for finite-width clique sums and characterizes exact bounded deletion. The port removes four unused predicates and shares radial, strip, arc, interval-chain, subgraph, and surface-cap proofs. Review response.
The latest repair documents the all-empty tree-decomposition convention and the distinctions between the printed and corrected Chapter XII statements. Thomas width, small cliques, Whitney thin sides, and degree calculations now use extended cardinality. The proofs share tree paths and leaf attachment, net fibers, bridge union containment, circuit and disc topology, circle parameterization, curve connectivity, tangle edge nonemptiness, and clique port injectivity. The earlier review found the headline faithful and identified these supporting corrections. Configured review.
Verification
The exact
e4306a7d5bclean project build passed all 11,985 Lake jobs and 2,227 files without warnings. Generated indexes, style, static quality, and Mathlib declaration lint for 47,324 declarations passed. The compiled declaration, compiler-message, environment-option, and axiom audits all found zero issues. Both theorem endpoints depend only onClassical.choice,propextandQuot.sound. The endpoint traversal reached 2,180 project modules and resolved every local constant.The regression proofs cover infinite bags, cliques, parallel edges and degrees, plus finite width and leaf attachment. The changed-module API audit covered 1,872 prior exports. The three removed Chapter VII predicates have no consumers. All 215 historical endpoint and public type checks passed. The standalone Exposition replay compiled 2,742 declarations from 314 modules with zero unexpected diagnostics.
All eight required hosted checks passed on this head. The first Lean Action runner timed out downloading Elan. The exact retry passed 101,685 Lake jobs, fresh project declaration lint and the repository trust gates. Exposition Verify passed 781 of 938 replays against its configured baseline of 214 and listed zero GraphMinor failures. Greptile reviewed 2,228 changed paths and made zero comments. The configured GPT worker reached its per-PR review limit after the preceding review. The current commit addresses its findings, and the separate exact-head review approves the import. Build project · Exposition Verify · Greptile · GPT review limit · Independent review.
Compile performance
The upstream closure took 32:13.07 on Lean 4.35.0 and Mathlib
56a005855ea17e0b0958f73ec801ae140b0a1679, using eight Lean threads, warm dependencies and fresh project outputs.The first clean pinned port took 24:08.11. The immediately preceding clean run with proof edits took 21:21.08. The benchmark rebuilds all project artifacts with warm pinned dependencies and a hard limit on each compiler process.
The preceding clean proof revision
78661831d7took 21:01.36. All 2,226 project files compiled under the guards, with an observed maximum of 25 seconds per file and peak process RSS of 2,436,448 kB. The sum of parallel Lake timings for unchanged files moved from 7,859.10 to 7,805.51 seconds. The edited files' sum moved from 117.60 to 125.00 seconds. The whole-build comparison reflects VM workload as well as proof changes.The 100 single-thread trials alternated earlier and current module sources with pinned warm dependencies and fresh outputs. Across the 23 edited modules, the sum of mean wall times moved from 106.49 to 106.78 seconds. The two unchanged controls moved from 33.29 to 36.02 seconds.
Earlier matched module trials recorded improvements in the surface collapse proof, transaction replacement, and the subsequence used by the graph minor proof. Local guards cover every changed source. The automatic PR profiler reached its file-count limit. Advisory profile.
The preceding clean build on
056e02bde6took 20:01.23. All files passed the guards, with an observed maximum of 26 seconds and peak process RSS of 2,436,660 kB. The sum of parallel Lake timings for the 55 revised files moved from 279.30 to 232.50 seconds compared with78661831d7. The sum for the 2,171 unchanged files moved from 7,651.21 to 7,006.91 seconds. The intermediate revisiondbc329ebebtook 18:32.70. The whole-build times reflect the shared VM workload.The 228 fresh-output single-thread trials alternated
78661831d7with056e02bde6in reversed order on warm pinned dependencies. The sum of mean wall times for the 55 edited modules was 267.15 → 255.03 seconds. The unchanged controls were 28.81 → 29.06. The sum of mean user CPU times for the edited modules was 194.95 → 191.62 seconds.Chapter XIV
Section10had the largest apparent time increase. Its 12.41-second after trial included 5.99 seconds loading imports, and its second after trial took 6.95 seconds against 7.54 seconds before. Its mean user CPU time improved from 7.50 to 6.33 seconds. Some of the largest measured gains also include a slow individual trial. The automatic PR profiler reached its file-count limit. Advisory profile.The first clean build on
8c86f8da73took 31:06.64, with a maximum file time of 41 seconds and peak process RSS of 2,436,076 kB. The summed times rose from 162.50 to 259.20 seconds for the 31 edited files and from 7,076.91 to 11,367.00 seconds for the unchanged files. Both groups slowed about 60% in that run.The 132 matched trials for the latest revision used the exact preceding and current artifacts, with fresh output, warm dependencies and reversed order. Summed mean wall time for the 31 changed modules moved 161.48 → 159.95 seconds and unchanged controls 28.46 → 28.70. Edited user CPU time moved 129.46 → 127.94 seconds. The patchwork cardinality group improved from 22.07 to 20.63 seconds, interval chains from 8.97 to 8.46, and the singleton and edge-deletion group from 27.40 to 26.61. The cap group moved from 28.33 to 28.96 seconds. Its two paired timings overlapped the preceding range.
A second clean rebuild of the same head took 22:49.74 with the same command, fresh outputs and warm pinned dependencies. It completed all 2,226 modules without warnings, with a 30-second maximum file time and peak process RSS of 2,428,380 kB. Relative to
056e02bde6, the parallel file sums increased 17% in the edited set and 19% in the unchanged set. The two identical-head runs show the variation in full-project elapsed time on the shared VM.The exact clean build took 19:35.13 on the same VM with eight Lean threads, warm pinned dependencies and fresh project outputs. The first pinned build took 24:08.11 and the immediately preceding matched clean run took 22:49.74. All 2,227 files compiled under the guards. The slowest took 28 seconds and peak process RSS was 2,449,016 kB. The summed parallel timings also fell across sources outside the patch, so the whole-build difference includes workload and dependency effects.
In 248 paired single-thread trials, the sum of mean wall times for 60 edited modules fell from 194.03 to 192.03 seconds, and mean user CPU fell from 150.32 to 148.25 seconds. The two controls with identical source dependency closures moved from 9.25 to 9.24 seconds. Circle parameter and injectivity modules moved from 31.78 to 31.04 seconds and the surface topology group from 19.41 to 18.95 seconds. The largest individual increase was 0.21 seconds in the drawing topology module, which now provides the circuit proof shared by Chapters XI and XIV. The rebuilt project remains within repository time and memory limits.