{
  "id": "8712",
  "ident": "NS.08712",
  "slug": "wotw-graphconjecture34",
  "title": "Written on the Wall II - Conjecture 34",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "WOWII [Conjecture 34](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/)\n\nFor a simple connected graph $G$,\n$\\operatorname{path}(G) \\ge \\lceil \\operatorname{dist}\\_{\\operatorname{avg}}(C, V)\n+ \\operatorname{dist}\\_{\\operatorname{avg}}(M, V) \\rceil$,\nwhere $\\operatorname{path}(G)$ is the number of vertices of a largest induced path of $G$,\n$C$ is the set of center vertices (those with minimum eccentricity), $M$ is the set of\nmaximum-degree vertices, and $\\operatorname{dist}\\_{\\operatorname{avg}}(S, V)$ is the average\nof all nonzero distances $\\operatorname{dist}\\_G(s, v)$ with $s \\in S$ and $v \\in V$.\n\nThe conjecture is false. The counterexample below was documented by\n[Salvatore Mercuri](https://github.com/google-deepmind/formal-conjectures/pull/5733).\nLet $G$ be the tree on $39$ vertices formed by a vertex with three\npendant leaves, joined by a path of five edges to the root of a perfect binary tree of depth\nfour. Then $\\operatorname{path}(G) = 11$, while $C$ and $M$ are singletons whose distance sums\nare $154$ and $266$, so the bound is $\\lceil (154 + 266) / 38 \\rceil = 12$.\n\nLean formalization by Wentao Li, with AI assistance.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "wotw",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "WrittenOnTheWallII.GraphConjecture34.conjecture34",
  "statement_lean": "theorem conjecture34 :\n    ¬ ∀ (α : Type) [Fintype α] [DecidableEq α] [Nontrivial α]\n      (G : SimpleGraph α) [DecidableRel G.Adj] (h : G.Connected),\n      let C : Set α := center G\n      let M : Set α := {v | G.degree v = G.maxDegree}\n      let distAvg (S : Set α) : ℝ",
  "challenge_source": "/-\nCopyright 2025 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Written on the Wall II - Conjecture 34\n\n*Reference:*\n[E. DeLaVina, Written on the Wall II, Conjectures of Graffiti.pc](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/)\n-/\n\n@[expose] public section\n\nnamespace WrittenOnTheWallII.GraphConjecture34\n\nopen SimpleGraph\n\nvariable {α : Type*} [Fintype α] [DecidableEq α] [Nontrivial α]\n\nset_option linter.style.formal_proof_palomar false in\n/--\nWOWII [Conjecture 34](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/)\n\nFor a simple connected graph $G$,\n$\\operatorname{path}(G) \\ge \\lceil \\operatorname{dist}\\_{\\operatorname{avg}}(C, V)\n+ \\operatorname{dist}\\_{\\operatorname{avg}}(M, V) \\rceil$,\nwhere $\\operatorname{path}(G)$ is the number of vertices of a largest induced path of $G$,\n$C$ is the set of center vertices (those with minimum eccentricity), $M$ is the set of\nmaximum-degree vertices, and $\\operatorname{dist}\\_{\\operatorname{avg}}(S, V)$ is the average\nof all nonzero distances $\\operatorname{dist}\\_G(s, v)$ with $s \\in S$ and $v \\in V$.\n\nThe conjecture is false. The counterexample below was documented by\n[Salvatore Mercuri](https://github.com/google-deepmind/formal-conjectures/pull/5733).\nLet $G$ be the tree on $39$ vertices formed by a vertex with three\npendant leaves, joined by a path of five edges to the root of a perfect binary tree of depth\nfour. Then $\\operatorname{path}(G) = 11$, while $C$ and $M$ are singletons whose distance sums\nare $154$ and $266$, so the bound is $\\lceil (154 + 266) / 38 \\rceil = 12$.\n\nLean formalization by Wentao Li, with AI assistance.\n-/\n@[category research solved, question, AMS 5,\n  formal_proof using lean4 at \"https://github.com/VictorLiwentao/lean-graph-proofs/blob/b60c2e548910b32eb3b602f6a8e67af806e4b9f6/LeanGraphProofs/WOWII34.lean#L350\"]\ntheorem conjecture34 :\n    ¬ ∀ (α : Type) [Fintype α] [DecidableEq α] [Nontrivial α]\n      (G : SimpleGraph α) [DecidableRel G.Adj] (h : G.Connected),\n      let C : Set α := center G\n      let M : Set α := {v | G.degree v = G.maxDegree}\n      let distAvg (S : Set α) : ℝ :=\n        open scoped Classical in\n        let pairs := (S.toFinset ×ˢ Finset.univ).filter (fun p => G.dist p.1 p.2 ≠ 0)\n        (∑ p ∈ pairs, (G.dist p.1 p.2 : ℝ)) / pairs.card\n      Int.ceil (distAvg C + distAvg M) ≤ (path G : ℤ) := by\n  sorry\n\n-- Sanity checks\n\n/-- The `path G` invariant is nonneg when cast to ℤ. -/\n@[category test, AMS 5]\nexample (G : SimpleGraph (Fin 3)) : 0 ≤ (path G : ℤ) := Int.natCast_nonneg _\n\n/-- The edgeless graph on 3 vertices has no edges. -/\n@[category test, AMS 5]\nexample : (⊥ : SimpleGraph (Fin 3)).edgeFinset.card = 0 := by simp\n\nend WrittenOnTheWallII.GraphConjecture34\n",
  "statement_hash": "f32811b239076b7980734e0ff2ad71c981d890fe7567655d2dd2a163cfcd84b8",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}