Skip to content

Add 27 WOWII named graph-invariant files (batches 3-9, part 2/2)#3821

Open
henrykmichalewski wants to merge 3 commits intogoogle-deepmind:mainfrom
henrykmichalewski:wowii-batches-3-9b
Open

Add 27 WOWII named graph-invariant files (batches 3-9, part 2/2)#3821
henrykmichalewski wants to merge 3 commits intogoogle-deepmind:mainfrom
henrykmichalewski:wowii-batches-3-9b

Conversation

@henrykmichalewski
Copy link
Copy Markdown
Member

This PR adds 27 WOWII formalizations organized by graph invariant topic from our internal batches 3-9.

Part 2 of 2 of splitting our internal batch wowii-batches-3-9 (49 files total after excluding one held back) into two reviewer-manageable PRs grouped semantically. The companion PR (#3820) covers the GraphConjecture<N>.lean files indexed by individual WOWII conjecture numbers; this PR covers the Graph<InvariantName>.lean files where several conjectures around a shared graph invariant are gathered into a single file.

Invariants / topics in this PR

Achromatic Number, Arboricity, Bandwidth, Boxicity, Circumference, Crossing Number, Degeneracy, Distance (Odd), Edge Connectivity, Even Mode Min, Frequency Max L, Geodetic Number, Girth Complement, Isoperimetric, Length, Median Degree, Metric Dimension, Min Edge Degree, Mode, Mode Max, Odd Girth, Power, Rainbow Connection, Roman Domination, Thickness, Toughness, Wiener Index.

Guarantees

  • Each file references the relevant WOWII conjectures (and resolved statements where applicable) with canonical source URLs.
  • Formalizations were cross-checked against DeLaViña's current WOWII website for status (T/F/R/O) and statement text.

Related

Adds 27 WrittenOnTheWallII files organized by graph invariant topic
rather than individual conjecture number. Each file gathers the
conjectures and resolved statements from DeLaViña's WOWII page that
share a common invariant (e.g. achromatic number, arboricity,
bandwidth), with references to the source definitions and literature.

Topics: Achromatic Number, Arboricity, Bandwidth, Boxicity,
Circumference, Crossing Number, Degeneracy, Distance (Odd),
Edge Connectivity, Even Mode Min, Frequency Max L, Geodetic Number,
Girth Complement, Isoperimetric, Length, Median Degree, Metric
Dimension, Min Edge Degree, Mode, Mode Max, Odd Girth, Power,
Rainbow Connection, Roman Domination, Thickness, Toughness,
Wiener Index.

Part 2 of 2 of our internal batch wowii-batches-3-9.
GraphConjecture199.lean was intentionally excluded from this PR to
avoid conflict with open PR google-deepmind#3796. GraphCircumference.lean still
imported and opened the `WrittenOnTheWallII.GraphConjecture199`
namespace (to reuse `vertexConnectivity`), which broke the build
(`no such file or directory`).

Dropped the `import FormalConjectures.WrittenOnTheWallII.GraphConjecture199`
and the corresponding `open` clause, and inlined the
`vertexConnectivity` definition directly into GraphCircumference.lean
so the file is self-contained.
@henrykmichalewski
Copy link
Copy Markdown
Member Author

Fixed the build failure. GraphCircumference.lean was importing and opening WrittenOnTheWallII.GraphConjecture199 (which is intentionally excluded from this PR to avoid conflict with #3796) to reuse vertexConnectivity. Dropped the import/open and inlined the vertexConnectivity definition locally. Local lake build FormalConjectures.WrittenOnTheWallII.GraphCircumference succeeds.

@mo271
Copy link
Copy Markdown
Collaborator

mo271 commented May 3, 2026

can you double check that the numbering is correct here (see #3824)

@henrykmichalewski
Copy link
Copy Markdown
Member Author

Thanks for flagging — re-audited all 27 named files in this PR against the WOWII source. No off-by-one numbering shift of the type you fixed in #3823 / #3824 appears here; 23 of the 27 files don't claim a specific WOWII number at all (they're topical / Graffiti.pc-style observations citing Harary–Hedetniemi, Nash-Williams, Roberts, Bondy–Murty, etc.).

So no code changes pushed for this PR.

That said, the audit did surface two files that claim a specific WOWII number but don't state the corresponding conjecture, which I want to disclose here for transparency:

  • GraphFrequencyMaxL.lean — declares Conjecture 209 (a Hamiltonian-path implication: "if (1/6)·(1 + 2·|E(Gᶜ)|) ≤ frequency of λ_max(G) then G has a Hamiltonian path"), but the formal theorem body is the unrelated bound frequencyMaxL G ≤ G.indepNum.
  • GraphLength.lean — declares Conjecture 19 (a lower bound on the largest induced bipartite subgraph: b(G) ≥ ⌊avg ecc(v) + max λ(v)⌋), but the formal theorem body uses α(G) (independence number, not b(G)) on the LHS and is in the wrong direction ( instead of ).

One file explicitly documents itself as a mirror of WOWII #96 with dist_odd in place of dist_even rather than as a literal Conjecture-96 formalisation: GraphDistOdd.lean. That's intentional, but the docstring could state it more clearly.

Happy to push a follow-up commit either dropping the WOWII-209/WOWII-19 attribution from those two files (recasting them as Graffiti.pc-style observations) or replacing the bodies with the real conjecture statements — your preference. The other 23 files are topical and unaffected.

@henrykmichalewski
Copy link
Copy Markdown
Member Author

Follow-up: pushed f72987f bundling the audit findings I disclosed earlier:

  • GraphLength.lean — was claiming WOWII Conjecture 19 in the docstring while stating an unrelated bound (α(G) ≤ ⌊length/n + max λ⌋, wrong invariant + wrong direction). Rewrote to state Conjecture 19 verbatim: b(G) ≥ ⌊avg_v ecc(v) + max_v l(v)⌋ using the upstream b G invariant and averageEccentricity. The auxiliary graphLength G = ∑ ecc(v) is retained.
  • GraphFrequencyMaxL.lean — was claiming WOWII Conjecture 209 while stating an invented bound (frequencyMaxL G ≤ G.indepNum). Rewrote to state Conjecture 209 verbatim: (1/6)·(1 + 2·|E(Gᶜ)|) ≤ frequencyMaxL G → G has a Hamiltonian path.
  • GraphDistOdd.lean — docstring polish: explicitly note this is a new Graffiti.pc-style observation (the distOdd-analogue of Conj 96), not a verbatim formalisation of a numbered WOWII conjecture.

All three files build cleanly.

…statements

GraphLength.lean previously claimed to formalise WOWII Conjecture 19 in its
docstring while stating an unrelated bound: `α(G) ≤ ⌊length(G)/n + max_v l(v)⌋`,
using the independence number `α` on the LHS and the wrong direction `≤`.
WOWII Conjecture 19 is `b(G) ≥ ⌊avg_v ecc(v) + max_v l(v)⌋`, where `b(G)`
is the size of a largest induced bipartite subgraph (the upstream `b G`
invariant in `FormalConjecturesForMathlib`). Rewrote the theorem to state
Conjecture 19 verbatim using `b G` and the upstream `averageEccentricity`.
The auxiliary `graphLength G = ∑ ecc(v)` is retained for use elsewhere
(`length(G)/n = averageEccentricity G`).

GraphFrequencyMaxL.lean previously claimed to formalise WOWII Conjecture
209 while stating an invented bound: `frequencyMaxL G ≤ G.indepNum`. WOWII
Conjecture 209 is the Hamiltonian-path implication
`(1/6)·(1 + 2·|E(Gᶜ)|) ≤ frequency of λ_max(G) → G has a Hamiltonian path`.
Rewrote the theorem to state this implication using `frequencyMaxL G` (max-
local-independence reading of `λ_max`) and the complement edge count
`Gᶜ.edgeFinset.card`.

GraphDistOdd.lean docstring polish: explicitly note this is a new
Graffiti.pc-style observation (the `distOdd`-analogue of Conj 96), not a
verbatim formalisation of any numbered WOWII conjecture.

All three files build:
    lake build FormalConjectures.WrittenOnTheWallII.GraphLength
    lake build FormalConjectures.WrittenOnTheWallII.GraphFrequencyMaxL
    lake build FormalConjectures.WrittenOnTheWallII.GraphDistOdd
@Paul-Lez Paul-Lez added the awaiting-author The author should answer a question or perform changes. Reply when done. label May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-author The author should answer a question or perform changes. Reply when done.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants