{
  "id": "8686",
  "ident": "NS.08686",
  "slug": "wotw-graphconjecture194",
  "title": "Written on the Wall II - Conjecture 194",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "WOWII [Conjecture 194](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/)\n\nFor a simple connected graph `G`, if `α(G) ≤ 1 + l_avg(G)`, then `G` has a Hamiltonian path.\nHere `α(G) = G.indepNum` is the independence number, and\n`l_avg(G) = averageIndepNeighbors G` is the average over all vertices of the independence number\nof the neighbourhood.\nA Hamiltonian path is a walk visiting every vertex exactly once. The answer is no, as witnessed by\nthe 18-vertex graph described above.\n\nCounterexample (Graph6): `Q~~~~~~~~~~~~}~}^~??G??_??_`",
  "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.GraphConjecture194.conjecture194",
  "statement_lean": "theorem conjecture194 :\n    ¬ ∀ (α : Type) [Fintype α] [DecidableEq α] [Nontrivial α]\n      (G : SimpleGraph α) (_h : G.Connected),\n      (G.indepNum : ℝ) ≤ 1 + averageIndepNeighbors G →\n      ∃ a b : α, ∃ p : G.Walk a b, p.IsHamiltonian",
  "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 194\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## Counterexample\n\nThe conjecture is false. Take a clique on vertices `0, ..., 10`, four additional vertices\n`11, ..., 14` adjacent to every clique vertex, and three leaves attached at `11`, `12`, and `14`.\nThis connected graph has independence number `4`, while the sum of the independence numbers of its\nvertex neighbourhoods is `54`, so their average is `3`. Thus it satisfies the conjecture's\nhypothesis with equality. However, its three leaves would all have to be endpoints of a Hamiltonian\npath, which is impossible.\n-/\n\n@[expose] public section\n\nnamespace WrittenOnTheWallII.GraphConjecture194\n\nopen SimpleGraph\n\nset_option linter.style.formal_proof_palomar false in\n/--\nWOWII [Conjecture 194](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/)\n\nFor a simple connected graph `G`, if `α(G) ≤ 1 + l_avg(G)`, then `G` has a Hamiltonian path.\nHere `α(G) = G.indepNum` is the independence number, and\n`l_avg(G) = averageIndepNeighbors G` is the average over all vertices of the independence number\nof the neighbourhood.\nA Hamiltonian path is a walk visiting every vertex exactly once. The answer is no, as witnessed by\nthe 18-vertex graph described above.\n\nCounterexample (Graph6): `Q~~~~~~~~~~~~}~}^~??G??_??_`\n\n-/\n@[category research solved, question, AMS 5, formal_proof using formal_conjectures at\n\"https://github.com/anagnorisis2peripeteia/formal-conjectures/blob/4bff865a14c2cd61fefbffbe9c49cbfc5a89ac45/FormalConjectures/WrittenOnTheWallII/GraphConjecture194.lean#L128-L140\"]\ntheorem conjecture194 :\n    ¬ ∀ (α : Type) [Fintype α] [DecidableEq α] [Nontrivial α]\n      (G : SimpleGraph α) (_h : G.Connected),\n      (G.indepNum : ℝ) ≤ 1 + averageIndepNeighbors G →\n      ∃ a b : α, ∃ p : G.Walk a b, p.IsHamiltonian := by\n  sorry\n\n-- Sanity checks\n\n/-- The average indep-neighbors invariant `l G` is nonneg. -/\n@[category test, AMS 5]\nexample (G : SimpleGraph (Fin 3)) : 0 ≤ averageIndepNeighbors G := by\n  apply div_nonneg\n  · apply Finset.sum_nonneg\n    intro v _\n    exact Nat.cast_nonneg _\n  · exact Nat.cast_nonneg _\n\n/-- The edgeless graph on 2 vertices has 2 vertices. -/\n@[category test, AMS 5]\nexample : Fintype.card (Fin 2) = 2 := by decide\n\nend WrittenOnTheWallII.GraphConjecture194\n",
  "statement_hash": "49a508c2c643f6448a18feb0df2445fe564fb58cf607a9d3ee74ffc7a058fb74",
  "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."
}