{
  "id": "8695",
  "ident": "NS.08695",
  "slug": "wotw-graphconjecture200",
  "title": "Written on the Wall II - Conjecture 200",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "WOWII [Conjecture 200](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/)\n\nFor a simple connected graph `G`, if `tree(G) = ⌈1 + l_avg(G)⌉`, then `G` has a Hamiltonian path.\nHere `tree(G)` is the number of vertices of a largest induced tree subgraph, 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.\n\nThis conjecture is false. The counterexample family in the module docstring\nsatisfies the equality hypothesis and has no Hamiltonian path.",
  "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.GraphConjecture200.conjecture200",
  "statement_lean": "theorem conjecture200 :\n    ¬ ∀ (α : Type) [Fintype α] [DecidableEq α] [Nontrivial α]\n      (G : SimpleGraph α) (_h : G.Connected),\n      (largestInducedTreeSize G : ℝ) = ⌈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 200\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\nFor every integer $q \\geq 5$, let $C = \\{a,b\\} \\cup D$ have $q$ vertices and\ninduce $K_q$ minus the edge $ab$. Add two nonadjacent vertices $x,y$, each\ncomplete to $C$; a vertex $z$ adjacent exactly to $a,b$; and, for every\n$d \\in D$, a pendant vertex $p_d$ adjacent exactly to $d$.\n\nThe local-neighbourhood independence numbers are $2$ at $x,y,z$, $1$ at each\n$p_d$, and $3$ at every vertex of $C$. Their sum is $4q+4$, while the graph has\n$2q+1$ vertices, so\n$$\\left\\lceil 1 + l_{\\mathrm{avg}}(G)\\right\\rceil = 4.$$\nThe vertices $\\{a,x,y,z\\}$ induce a claw, and a case split on the number of\nvertices from $C$ shows that no induced tree has more than four vertices.\nThus $\\operatorname{tree}(G)=4$. Finally, the graph has $q-2 \\geq 3$ pendant\nvertices, but a Hamiltonian path has only two endpoints.\n\nThe smallest member of this family has 11 vertices and graph6 encoding\n`J??FFBRq}N_`.\nThis is a smallest counterexample overall: an exhaustive search over all\n11,989,760 connected graphs on 4 ≤ n ≤ 10 vertices (via nauty's `geng`;\ngraphs on at most 3 vertices are trivially traceable) found no graph\nsatisfying the premise without a Hamiltonian path.\n-/\n\n@[expose] public section\n\nnamespace WrittenOnTheWallII.GraphConjecture200\n\nopen SimpleGraph\n\nset_option linter.style.formal_proof_palomar false in\n/--\nWOWII [Conjecture 200](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/)\n\nFor a simple connected graph `G`, if `tree(G) = ⌈1 + l_avg(G)⌉`, then `G` has a Hamiltonian path.\nHere `tree(G)` is the number of vertices of a largest induced tree subgraph, 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.\n\nThis conjecture is false. The counterexample family in the module docstring\nsatisfies the equality hypothesis and has no Hamiltonian path.\n-/\n@[category research solved, question, AMS 5, formal_proof using formal_conjectures at\n  \"https://github.com/infinityscroll/formal-conjectures/blob/9dd290db402c49922fa42793e4a7cfb802daf5c1/FormalConjectures/WrittenOnTheWallII/GraphConjecture200Counterexample.lean#L24-L195\"]\ntheorem conjecture200 :\n    ¬ ∀ (α : Type) [Fintype α] [DecidableEq α] [Nontrivial α]\n      (G : SimpleGraph α) (_h : G.Connected),\n      (largestInducedTreeSize G : ℝ) = ⌈1 + averageIndepNeighbors G⌉ →\n      ∃ a b : α, ∃ p : G.Walk a b, p.IsHamiltonian := by\n  sorry\n\n-- Sanity checks\n\n/-- The `largestInducedTreeSize` is nonneg. -/\n@[category test, AMS 5]\nexample (G : SimpleGraph (Fin 3)) : 0 ≤ largestInducedTreeSize G := Nat.zero_le _\n\n/-- The average indep-neighbors is nonneg. -/\n@[category test, AMS 5]\nexample (G : SimpleGraph (Fin 3)) : 0 ≤ averageIndepNeighbors G := by\n  unfold averageIndepNeighbors\n  apply div_nonneg\n  · apply Finset.sum_nonneg; intro v _; exact Nat.cast_nonneg _\n  · exact Nat.cast_nonneg _\n\nend WrittenOnTheWallII.GraphConjecture200\n",
  "statement_hash": "11af53fa94f79b4e16a94cadda83a5be697180c4f493e4acf12220708d4af876",
  "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."
}