Skip to content

Import the Robertson–Seymour graph minor theorem - #1010

Merged
Vilin97 merged 28 commits into
mainfrom
feature/import-graph-minor-theorem-20261124
Nov 27, 2026
Merged

Vilin97 merged 28 commits into
mainfrom
feature/import-graph-minor-theorem-20261124

Conversation

@Vilin97

@Vilin97 Vilin97 commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

The Robertson–Seymour graph minor theorem import passes local validation.

Result and provenance

GraphMinor.graph_minor_theorem gives indices i < j in 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). Import LeanPool.GraphMinor for the result and LeanPool.GraphMinor.Imports for 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 640335582 returned result: success and Unix timestamp 1794671805, which verifies that UTC time. The import pins 89c19b2fd07130fe6fc0fb7df2743ad99558c939 under Apache-2.0. The Lean headers credit MohammadTaghi Hajiaghayi and Mahdi JafariRaviz and identify port modifications. The upstream formalization.yaml supports 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.Assembled has 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.Assembled and keep the tracked repository modules. Sort their repository-relative paths into wagner-closure.txt. The manifest SHA-256 is 44436eb177d4e06f898cd4a68a51e1b4968f9405a8bc291357b4335409132af5.

tr '\n' '\0' < ../wagner-closure.txt | xargs -0 -n 150 wc -l | awk '$2=="total"{s+=$1}END{print s}'

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 fc4f59e577feb1a4956671bc04ac18aaaf8cd842 and Tau Ceti 0642eae29e0a59ef798d04de325386445906e755. 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 e4306a7d5b clean 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 on Classical.choice, propext and Quot.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.

LEAN_NUM_THREADS=8 /usr/bin/time -v lake --no-ansi build +GraphMinor.GM20.Assembled

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.

LC_ALL=C LEAN_NUM_THREADS=8 PYTHONPATH=python /usr/bin/time -v \
  python3 -m lean_pool.build_time_limits watch \
  --base 098839fdc4b28c9f318d7d697e7fdb1773b22524 -- \
  lake --no-ansi build LeanPool.GraphMinor.Imports LeanPool.GraphMinor

The preceding clean proof revision 78661831d7 took 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.

Edited modules Before, seconds After, seconds
Chapter V and VI scope 4.73 4.21
Segregation drawings 11.92 11.56
Seam edge count and minimality 18.73 19.61
Capped charts 7.96 8.32
Portrayal warps 22.07 22.55
Arc edge chains 7.61 7.67

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 056e02bde6 took 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 with 78661831d7. The sum for the 2,171 unchanged files moved from 7,651.21 to 7,006.91 seconds. The intermediate revision dbc329ebeb took 18:32.70. The whole-build times reflect the shared VM workload.

The 228 fresh-output single-thread trials alternated 78661831d7 with 056e02bde6 in 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.

Selected proof groups Before, seconds After, seconds
Euler leaf deletion 9.13 8.19
Cuff charts 20.01 17.41
Drawing and closed-zone restriction 43.67 41.30
Feature placement 13.53 12.89
Chapter V tree-width 1.72 1.73
Cut helpers 22.91 23.14

Chapter XIV Section10 had 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 8c86f8da73 took 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.

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Proof profile (new / modified Lean files)

This PR adds or modifies 2227 Lean files under LeanPool/, more than one profile run can measure. No compile-cost measurements were taken.

Advisory only — never blocks merge.

@Vilin97 Vilin97 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@Vilin97
Vilin97 marked this pull request as ready for review November 24, 2026 23:24
@greptile-apps

greptile-apps Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Advisory cross-file review against Lean Pool's supervisory rubric. This is not by itself a significance, source-verification, or merge verdict.

No blocking defect was established in the reviewed changes, but the incomplete full-contribution review does not support an unconditional merge recommendation.RetriggerView in Greptile

[Low impact] No blocking defect was established in the reviewed changes, but the incomplete full-contribution review does not support an unconditional merge recommendation.

Summary

Imports the Robertson–Seymour theorem for finite Mathlib multigraphs. The latest changes share supporting proofs and replace several natural-number counts with extended counts.

  • Finite multigraph sequences now have an earlier graph that is a minor of a later one.

Reviews (26) · Last reviewed commit: "Repair Graph Minors source notes and con..." · Reviewed by Greptile

@Vilin97 Vilin97 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 Vilin97 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@Vilin97

Vilin97 commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator Author

Historical review request for 7becb4b79964a42ca942b68db4ace9ccae0165a0 after its Lean CI passed. The request was fulfilled before later commits superseded that head.

@Vilin97

Vilin97 commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator Author

🤖 LLM review (gpt-6.2-sol, 5 rubrics)

Reviewed head: 8c86f8da739601e1a96acb0ff8c4828fc2f4d9d7

Verdict: 🛑 request_changes — computed from the rubric verdicts below, not chosen by a model.

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 satisfies WidthLE at zero because the bag’s ncard is zero. Use encard for the bag bound or require finite bags. The application in theorem_3 already uses a finite vertex set.
    Evidence: TreeDecomp has bag : ι → Set α and iUnion_bag : ⋃ t, bag t = V₀. Its WidthLE requires ∀ t : ι, (D.bag t).ncard ≤ w + 1.
  • vacuous-bound — LeanPool/GraphMinor/GM09/Section11c.lean:338
    IsLeThreeClique accepts the full vertex set of the complete graph on the natural numbers. Its cardinality check evaluates to zero, and all distinct pairs are adjacent. Use K.encard ≤ 3 so callers can derive finiteness from the predicate.
    Evidence: IsLeThreeClique requires K ⊆ V(G) ∧ K.ncard ≤ 3 ∧ ∀ u ∈ K, ∀ v ∈ K, u ≠ v → G.IsLink s(u, v) u v. The consumer isLeThreeClique_left_or_right separately takes (hfin : K.Finite).
  • truncated-cardinality — LeanPool/GraphMinor/GM14/Suppress.lean:49
    Thin accepts 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 in RST94/Trees.lean also report zero at vertices of infinite degree. Require finiteness in these standalone definitions or use extended cardinalities.
    Evidence: Thin checks E(G₁).ncard ≤ (V(G₁) \ V(G₂)).ncard + 1 in its two-shared-vertex branch. Whitney.deg uses {e | G.Inc e v}.ncard, and LeanPool/GraphMinor/RST94/Trees.lean:33 defines deg using (S.neighborSet v).ncard.
  • unexercised-predicate — LeanPool/GraphMinor/GM07/Defs.lean:134
    AreInternallyDisjointLines, IsNetEdgeType1, and IsNetEdgeType2 have 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: AreInternallyDisjointLines requires ∀ x ∈ F₁ ∩ F₂, x ∈ lineEnds F₁ ∧ x ∈ lineEnds F₂. IsNetEdgeType1 requires e ⊆ bd S. IsNetEdgeType2 requires ∀ 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 in decompWidth alongside 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 is noncomputable 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 edge e = c (page 269).’ In theorem_7_8_proof, the initial walk uses exists_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: GM12Theorem711Statement assumes (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.lean repeats the attribution at line 600 and uses (hz_lam : z ∈ H.E → 2 ≤ lam) in theorem_7_11_proof.

Code quality findings (13)

  • duplicate-definition — LeanPool/GraphMinor/GM10/Section9.lean:490
    leafGraph, leafProj, and someHom duplicate attachLeaf, projAttach, and attachLeafSomeHom from GM10/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 ι) where and @[expose] def attachLeaf (T : SimpleGraph ι) (t₀ : ι) : SimpleGraph (Option ι) where give the same four adjacency cases. isTree_leafGraph at line 617 uses rw [isAcyclic_iff_forall_adj_isBridge]. isTree_attachLeaf at GM10/TreeWidthBasic.lean:394 separately requires [Finite ι]. The path proofs are onTreePath_leafGraph_some at line 693 and onTreePath_projAttach_of_some at GM10/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, while GM10/Section11.lean adds 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 defines OnTreePath by ∀ p : T.Walk t₁ t₂, p.IsPath → t ∈ p.support. GM10/Defs.lean:382 defines it by ∀ p : T.Walk t t'', p.IsPath → t' ∈ p.support. Thomas/Basic.lean:88 and GM10/Section11.lean:472 both prove reversal with have := h p.reverse hp.reverse followed by rwa [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 defining section7G0. Some callers use it to compute the union's edge set and others use it only to bound the union by G. Prove the member bound and the resulting union bound beside section7G0 so 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, and exists_section7G0_embedding each introduce have hPair_le : ∀ Q ∈ ({η.imageGraph, remainingBridgeUnion G H η d θ' μ r} : Set (Graph α β)), and split the pair with rintro 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. Section46Matching uses finite_preimage_singleton while Section46Fibres uses Net.finite_fiber. Reuse the proof from MinimalNet and 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 := by in Section2Base.lean and theorem Net.finite_fiber (N : Net S) (z : S) : (N.φ ⁻¹' {z}).Finite := by in MinimalNet.lean:114 each 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 := by and theorem IsCircuit.isOArc_U {C : Drawing S} (hC : C.IsCircuit) : IsOArc C.U := by in GM11/Separate.lean:41 independently use IsCircuit.E_eq_of_loop. The Chapter XIV proof already uses U_inter_of_disjoint for 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. Since IsOpenDisc includes 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 in GM19/FragmentCapping.lean can likewise use Surface/TriLocal.lean's punctured_unit_ball.
    Evidence: isPreconnected_ring and GM11/PaintingRegions.lean:75's isPreconnected_annulus both use an image of a product with the unit sphere. The frontier conclusions at GM17/RegionFrontier.lean:199 and GM11/PaintingRegions.lean:102 are IsPreconnected (closure r \ r) and IsPreconnected (frontier r). GM19/FragmentCapping.lean:95 and Surface/TriLocal.lean:37 both prove IsPreconnected (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. Use Circle.exp_injOn_Ico for uniqueness, as Chapter XX already does, and share one representative lemma between GM09/CircleCut.lean, GM09/Section10c.lean, GM12/Section6Order.lean, GM17/AngleOrder.lean, and GM20/Section9a.lean.
    Evidence: exp_inj_Ico and GM09/Section10c.lean:216's eq_of_circleExp_eq begin with obtain ⟨m, hm⟩ := Circle.exp_eq_exp.mp h. GM15/Section3Parallel.lean:225 proves the same uniqueness result from circle_exp_eq_iff_sub_eq_int_mul.mp h. GM20/Section9a.lean:105 uses exact Circle.exp_injOn_Ico (a := s) (b := s + 2 * Real.pi) (by simp). GM09/CircleCut.lean:54 and GM12/Section6Order.lean:128 both prove existence with membership in Ico 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 in GM12/Section4CircuitMeet.lean, GM14/RigidWheel.lean, and GM14/Section7a.lean despite an implementation in Surface/DiscMerge.lean. Put the basic connectivity lemmas in the shared surface API so drawing modules can use them directly.
    Evidence: IsLineWithEnds.isPreconnected here and isPreconnected_of_isLineWithEnds in GM19/Section13f.lean:41 each identify the line with the range of the subtype-valued homeomorphism followed by coercion and close with exact isPreconnected_range (continuous_subtype_val.comp f.continuous). Surface/DiscMerge.lean:395 gives IsOArc.isPreconnected by the corresponding argument for Circle.
  • 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 in GM10/TangleLemmas.lean and use it from the Chapter XII trace and deletion proofs and the Chapter XIV metric proofs.
    Evidence: edgeSet_nonempty_of_isTangle_of_two_le here and edgeSet_nonempty_of_isTangle in GM14/Section9a.lean:202 both use have hne := GM10.theorem_2_3_proof hT hθ hbot hbot hbot. edges_nonempty_of_tangle_order_two in GM12/Section2NonemptyEdges.lean:31 uses have hne := GM10.theorem_2_3_proof hT hθ hm hm hm for the same separation.
  • unused-hypothesis — LeanPool/GraphMinor/RST94/Section3c.lean:102
    exists_extended_side discards the bound on D by B, the first-endpoint uniqueness premise, and the containment of S in 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 with exists_extended_side hA hB hDA' hDB and pass hfirst; 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.lean has public import LeanPool.GraphMinor.GM05.Defs. That module defines def TreeWidthLE (G : (⊤ : SimpleGraph V).Subgraph) (w : ℕ) : Prop :=, def θ₉ (θ : ℕ) : ℕ :=, and noncomputable def weightSum (w : V → ℕ) (X : Set V) : ℕ :=. The other import of GM05.Defs is its direct entry in LeanPool/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. Make cliquePair_ends_injective available to both and use it for the two calls in the port bijection.
    Evidence: sorted_pair_ends_injective here and cliquePair_ends_injective in GM12/Section4CliqueEdges.lean:37 both state Function.Injective (fun e : Σ j : Fin p, Fin j.val => (cliquePairLower e, e.1)) and use the same proof beginning rintro ⟨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 through TriCohGlue. Generalize the earlier lemma to arbitrary types and use it for both sets of callers.
    Evidence: ncard_coe_preimage here and ncard_val_preimage in Surface/TriCoh.lean:127 both prove the cardinality identity for the pullback of A to V. Both start with have h1 : Subtype.val '' {v : V | v.1 ∈ A} = A ∩ V := by and finish with rw [← 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.

@Vilin97

Vilin97 commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator Author

Both source findings and all six targeted proof-sharing findings are addressed in 8da62df040125eeab4efde6fb60b2c8305d38db0.

Source references

  • The two directed-minor docstrings cite Graph Minors IV, §7, pages 242–243. They identify the printed [2] in the proof of XX (10.5) as a misprint for [1]. Graph Minors IV, upstream correction.
  • Both locators for XVIII (6.7) now point to journal page 106. Graph Minors XVIII.

Shared proofs

  • XVI uses the XV local-assembly lemmas. XV uses XII's existing separation pullback.
  • The shared minor API realizes a model by a contraction that preserves both maps, and composes minor models. The directed construction adds the two orientation checks to the same undirected isomorphism.
  • The XVII warp proof constructs the updated portrayal once. Its two changed cells use one endpoint-bound lemma, and the remaining arguments use the relevant fields and cuff warp equalities.
  • XIV–XVI share the angle interpolation, disc boundary extension, planar arrangement transport, and normal-disc intersection proofs.
  • XII delegates collar radii, joined collars, disc twists, and nested-disc matching to the existing Surface implementation.
  • XI and XIV share a drawing-topology module for the frontier, theta, walk, and loop constructions.

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.

@Vilin97 Vilin97 left a comment •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@Vilin97

Vilin97 commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator Author

/review

@Vilin97

Vilin97 commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator Author

Addressed the source and maintainability findings at 1d3e383b26deee0110ca0b3d624f0772a974c7f3.

Sources

  • IX (8.1) is identified as the nonempty-boundary case in the statement and its two summaries. The full corrected result also covers the null graph. Graph Minors IX.
  • The XVII summary gives the journal pages for (8.2) through (8.8) where cited, (9.1), and (9.8). The (8.3) declaration now points to page 182. Graph Minors XVII.
  • The statements of IV (1.5), XII (4.3), XIX (12.2), and XIX (14.1) now point to journal pages 229, 249, 363, and 375. XIX (14.1) also records the printed q_0 misprint for the colour ω₀. The page audit corrected the nearby locators for IV (8.1), XII (5.3), and XII (7.1). IV, XII, XIX.

Shared proofs

  • XV and XVI use the XII separation pullback. Their graph–hypergraph conversions now share GM10.GraphSubhypergraph, including incidence preservation and both inverse properties.
  • The VII valency and seam arguments use the same cuff-incidence theorem. The valency proof adds the interior seam edge and counts the loop and ordinary-edge cases.
  • XV's two angle-interpolation theorems call the XIV proofs. The plane-disc frontier, intrinsic boundary, and interior equalities share the Surface proofs. IsGraph.add_point and the XIX counted construction use the same subdivision lemma.
  • XII and XVI share the closed-cover proof of drawing connectedness and the XI walk construction. Both XVII linkage arguments share the walk transfer and the middle-cell pairing contradiction. Seven declarations with no consumers were removed.

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 Classical.choice, propext, and Quot.sound. The clean guarded build and GitHub CI are running on the pushed head.

@Vilin97 Vilin97 left a comment •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@Vilin97

Vilin97 commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator Author

/review

@Vilin97

Vilin97 commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator Author

Addressed the source and code quality findings at fc1553d893637846f3d7386414a304ae10e7ea5c.

Source notes

  • VII (4.3) explains that the corrected conclusion can repeat a one-edge path. XVII (1.1)(ii) identifies 2a + b as the corrected weighting of handles and crosscaps. XIX (10.5) identifies S₃ as the hypothesis for cutting to a fragment with fewer cuffs. Pinned correction notes.
  • XV (6.2) identifies the printed 2τᵢ as a misprint for 2τ₁. The XII (6.1) reference now points to the proof of XV (3.4) on page 123. The XIV (7.3) reference points to claim (4) of XV (7.7) on page 141. The XVII standing hypotheses point to §8 on page 181 and §9 on page 183. XV p. 123, XV p. 141, XVII.

Shared implementations

  • XV and XVI use one eye-arrangement construction that also supplies disjoint boundaries of large societies. Span restrictions and the two bridge-path cases now have shared providers.
  • IX and XIV share graph circuit joining and splitting. XI shares the underlying closed-walk proofs, and XIV uses IX's first-hit and loop-exclusion results. The nest-cleaning construction takes the nest length, covering XIV's three-circuit case and IX's general use.
  • Corresponding radial atoms and radial walk lengths have common proofs. The XV and XVI respectful tangle transfers and truncations use the XII results. The two XVII regional arguments share the active-cell and one-vertex linkage proofs.
  • The disc-side callers use one parametrized edge-piece proof. The polar chart, half-disc coordinates and diameter cut each have one provider. The piece-drawing isomorphisms call the core inverse and composition.
  • Removed five declarations with no consumers and dropped redundant premises from three supporting lemmas. Their callers were updated.

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 Classical.choice, propext and Quot.sound. The guarded clean rebuild and hosted validation are running on this commit. Lean Action CI, Exposition Verify.

@Vilin97 Vilin97 left a comment •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 to d'(v₁, v₂). The corrected endpoints are v_k and v_{2k}, which the formal result in GM15/Section3.lean already 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

@Vilin97

Vilin97 commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator Author

/review

@Vilin97

Vilin97 commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator Author

Addressed the source and code quality findings at d6832852270ff9aea5a8abbf138f7d1f59cd5ec3.

Sources

  • XIV (5.1)–(5.5) now identify the connected closed-surface versions provided by Lean. The uses of XIV (5.2) in XIX point to pages 345 and 363. XIV §5, XIX §7.
  • The corrected lambda-zone definition makes the closed-disc closure a separate condition. The battlefield definition identifies the XVI normalization, which uses a free set of size β, and points to GM16.IsBattlefieldData.normalize. XIV correction notes, XVI (8.1).

Shared proofs

  • IX shares the maximal induced-path construction, and IX and XIV lift transactions and separations with a common family of any finite size.
  • XVII uses the same marked-region proof for both normal-arc statements. Each painting update builds its resulting cell set alongside the painting, so the callers can use the cell equality directly.
  • XIV shares the disc placement and piece alignment proofs. VI and XI share the diameter-to-edge conversion, and VII uses the surface proof for the stretch estimate.
  • XIX and XX now use one capping, disc-move and descent argument. Surface and XIX use the same cyclic order and angle lemmas. XV and XVI use one complete graph on unordered pairs.
  • XV shares the controlling-tangle truncation, and the XV and XVI eye induction steps use one set of parameter definitions and bounds.
  • Removed four unused declarations and six unused premises across the minor-model, IX and XX helpers. All project callers were updated.

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 Classical.choice, propext and Quot.sound. The guarded clean rebuild and hosted checks are running. Lean Action CI, Exposition Verify.

@Vilin97 Vilin97 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.lean still transcribes the bound as d'(v₁, v₂) ≥ 2k - 8. Replace those endpoints with vₖ, 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

@Vilin97

Vilin97 commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator Author

/review

@Vilin97

Vilin97 commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator Author

The fifth review findings are addressed in 02677a4ea429f67c62b97032d86895703b27c589.

Sources

  • The XX simulation interfaces identify the IV relation used in Lean. It permits inclusion of transported patch groupings where XX §3 states equality. Graph Minors XX, §3.
  • The XVIII and XX variants now identify the infinite ambient edge label type that supplies fresh labels. The finite multigraph theorem retains its fully polymorphic statement.
  • The VII (11.9) interface in XIV identifies the connected closed-surface case and points to the general statement for surfaces with boundary. The theorem docstring for XV (5.2) records the corrected bound when the flatness parameter is zero.

Proofs

  • Directed and undirected simulation call one minor-model construction. The directed proof then handles endpoint order. The XV and XVI eye arguments share the transaction analysis and downward induction and use the same proper arrangement. XV projects its arrangement field.
  • Shared proofs cover the compact drawing transport, region separation under edge deletion, finite punctures, theta-face intersection and gluing, one-edge and star collapse, radial and normal non-cover, metric truncation, polygon gluing and the closed remainder at a vertex.
  • The skeleton has one walk-support lemma. The crossing and edge-boundary predicates have compatibility names for the shared definitions. Painting normality has one definition. The rigidity helpers use the hypotheses their proofs need.

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 Classical.choice, propext and Quot.sound. All 43 affected public statements and the previous 152 compatibility checks match. The three rigidity premises removed were unused. This revision removes 1,093 net lines across 66 files. Hosted checks and the guarded clean benchmark are running.

@Vilin97 Vilin97 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 I in three Chapter XVII arc quotations. The proof and theorem statements in those files are unchanged by the citation commit. Earlier review

@Vilin97

Vilin97 commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator Author

/review

@Vilin97

Vilin97 commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator Author

Scope and citation findings addressed in 78661831d7.

  • Chapter V’s two unused statement aliases and Chapter VI’s unused routed-forest and cylinder-linkage material have been removed. The compiled dependency audit found outside callers only for the multigraph-separation definition, which is preserved.

  • The Chapter XI triangle inequalities now distinguish (9.1) on atoms from the two Lean extensions to sets. Chapter XIX and the shared restraint lemma identify the short-distance case and its strict combined-perimeter cutoff. The proof code in the two citation files is byte-identical after stripping comments. Graph Minors XI, page 104.

  • The refactor shares compatible-member drawing assembly, quotient path lifting, unchanged-cell warp transport and cuff aggregation, and arc-to-edge interval decomposition. It also reuses the chart, seam-count, line-interior, and separation arguments and removes unused private helper premises. The resulting program has 1,468 fewer Lean lines. The retained multigraph-separation definition has 207 downstream declarations.

  • The revised project built all 11,983 Lake jobs. Full declaration lint caught an unused Hausdorff assumption in the new chart lemma. Both affected modules rebuilt and passed lint after its removal. Exact clean and hosted validation are running. Follow-up commit.

@Vilin97 Vilin97 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.rep cutoff.

@Vilin97

Vilin97 commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator Author

/review

@Vilin97

Vilin97 commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator Author

The cardinality and source findings are addressed in dbc329ebeb.

  • Tree-width bags, vertex-extension deletion sets, and ring bags use extended cardinality. Section XVI (2.3) now gives a finite size bound in the small-graph case. The existing finite design and society witnesses supply the conversions used by the proofs. Lean checks that these bounds require finite sets and that a zero-vertex allowance preserves the vertex set.
  • The compiled dependency audit found no outside callers for the 17 omitted definitions. The Chapter XII note records that the corrected hypothesis applies the bound to a deleted center edge. The theorem and proof are unchanged by the citation edit. Graph Minors XII, pages 268, 269, and 270.
  • The shared proofs cover portrayal cell memberships and border linkage, Euler leaf deletion, drawing and zone restriction, cuff charts, net cut maps, feature placement, and radial pairs. The split eyes share indexed-path disjointness and preserve each endpoint orientation. The geometric helpers use a common arc-component lemma, the quotient separation order uses the existing deletion theorem, and the cut helpers drop unused premises.

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 Vilin97 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

@Vilin97

Vilin97 commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator Author

Chapter V now gives infinite tree-width bags the correct bound.

The old simple-graph API admitted an infinite bag at width zero. WidthLE now uses extended cardinality, and decompWidth and treeWidth return ℕ∞. The corrected definitions reject the old example, preserve the finite-bag bound and give width ⊤ to an infinite graph with no finite-width decomposition. All ten compiled references to the affected definitions are inside the same module. The Chapter V module, its Chapter XVI dependent, declaration lint, project style and static quality passed. Follow-up commit.

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 Vilin97 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@Vilin97

Vilin97 commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator Author

/review

@Vilin97 Vilin97 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@Vilin97

Vilin97 commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator Author

Chapter V now distinguishes the paper's finite definition from Lean's extension.

  • Graph Minors V defines tree-width on finite graphs. The Chapter V docstrings cite that definition and label the ⊤ convention for arbitrary graphs and bags as a Lean extension. Graph Minors V, page 92 · page 93.
  • The authenticated Zulip message lookup returned HTTP 200 and result: success, with message ID 640335582 and timestamp 1794671805. This independently verifies 2026-11-14T15:56:45Z. Public announcement.
  • Small pairing components use extended cardinality, and robust patches require a finite carrier. Component counts use ENat.card, including for edgeless graphs on infinite vertex sets. The retained Chapter XVI lemmas prove finiteness through clique sums and characterize bounded exact deletion. The compiled dependency audit supported removing three unused restraint definitions and the unused terminal-index predicate.
  • The patch shares the general VII (11.8) and (11.9) proofs across the surface variants, arc subdivision, interval-image covers, one-edge tangle orientation and circuits, radial-deletion geometry, capped strip construction, and singleton and edge-deletion subgraphs. Complex negation gives the right-cap results from the left-cap proofs. Entry paths use closure and containment directly.

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 Vilin97 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@Vilin97

Vilin97 commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator Author

/review

@Vilin97 Vilin97 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@Vilin97

Vilin97 commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator Author

The source corrections and supporting API fixes are in e4306a7d5b.

  • Chapter V now records the zero floor when every bag is empty and the infinite-bag convention. Chapter XII separates the printed (7.8) initial walk from the Lean proof’s construction starting at a deleted edge. Both (7.11) notes cite the corrected (7.8) and printed (7.10), with the reason the center edge is deleted. Chapter V, page 93 · Chapter XII, pages 268, 269, 270 and 271.
  • Thomas tree width, small cliques, Whitney thin sides, and the two degree functions use extended cardinality. The updated regressions cover an infinite bag, an infinite clique, infinitely many parallel edges, both infinite-degree cases, and a finite bag. The Chapter VII compiled audit found no consumers of the three removed predicates.
  • The duplicate proofs now share tree paths and leaf attachment, bridge union containment, net fibers, circuit and disc topology, circle parameters, curve connectivity, tangle edge nonemptiness, clique port injectivity, and Mathlib’s subtype cardinality lemma. The side-extension helper drops its unused premises. Chapter V remains available through the project imports and is out of the assembled theorem’s dependency graph.
  • I verified the announcement again using the authenticated public Zulip stream. Message 640335582 reports Unix time 1794671805, which is November 14, 2026 at 15:56:45 UTC. The public link can require the Zulip frontend. Announcement.

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 Vilin97 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.Defs imports and the renamed isTree_attachLeaf named 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

@Vilin97

Vilin97 commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator Author

/review

@Vilin97

Vilin97 commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator Author

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:

  • The latest review above stands. Repair the blocking findings it names; its advisory findings are optional.
  • Do not wait for another review and do not comment /review again: later requests get no answer.
  • A maintainer decides the PR from that review and the changes made since. Say in a comment what you changed after it.

@Vilin97 Vilin97 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@Vilin97
Vilin97 added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit 58f94f2 Nov 27, 2026
34 of 36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant