{
  "id": "8687",
  "ident": "NS.08687",
  "slug": "wotw-graphconjecture198a",
  "title": "Written on the Wall II - Conjecture 198a",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "WOWII [Conjecture 198a](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/)\n\nFor a simple connected graph `G`, if `b(G) ≤ 2 + ecc_avg(G)`, then `G` has a Hamiltonian path.\nHere `b(G)` is the number of vertices in a largest induced bipartite subgraph, and\n`ecc_avg(G)` is the average eccentricity of `G`.\nA Hamiltonian path is a walk visiting every vertex exactly once.\n\nProofs and formalizations include:\n* [Ben Cohen, *Average Eccentricity, Induced Bipartite Subgraphs, and Hamiltonian Paths*](https://zenodo.org/records/21481944) (July 21, 2026); [Lean 4 formalization](https://github.com/bzcohen588/written-on-the-wall-198a/blob/5481927df49c374b06fa0931b5aa24f9296faa04/Conjecture198a.lean), publicly posted and verified September 16, 2026.\n* [Luke Kabbash, *A Hamiltonian-Path Criterion from Bipartite Number and Average Eccentricity*](https://github.com/lukekabbash/wowii-198a-lean/blob/49f080bbaee83821e9e9744eef14c5acaae2a101/paper/main.pdf); Lean 4 formalization publicly posted and passed its recorded verification July 23, 2026.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "formal_proof"
  ],
  "collection": "wotw",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "WrittenOnTheWallII.GraphConjecture198a.conjecture198a",
  "statement_lean": "theorem conjecture198a (G : SimpleGraph α) (h : G.Connected)\n    (hb : b G ≤ 2 + averageEccentricity 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 198a\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.GraphConjecture198a\n\nopen SimpleGraph\n\nvariable {α : Type*} [Fintype α] [DecidableEq α] [Nontrivial α]\n\nset_option linter.style.formal_proof_palomar false in\n/--\nWOWII [Conjecture 198a](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/)\n\nFor a simple connected graph `G`, if `b(G) ≤ 2 + ecc_avg(G)`, then `G` has a Hamiltonian path.\nHere `b(G)` is the number of vertices in a largest induced bipartite subgraph, and\n`ecc_avg(G)` is the average eccentricity of `G`.\nA Hamiltonian path is a walk visiting every vertex exactly once.\n\nProofs and formalizations include:\n* [Ben Cohen, *Average Eccentricity, Induced Bipartite Subgraphs, and Hamiltonian Paths*](https://zenodo.org/records/21481944) (July 21, 2026); [Lean 4 formalization](https://github.com/bzcohen588/written-on-the-wall-198a/blob/5481927df49c374b06fa0931b5aa24f9296faa04/Conjecture198a.lean), publicly posted and verified September 16, 2026.\n* [Luke Kabbash, *A Hamiltonian-Path Criterion from Bipartite Number and Average Eccentricity*](https://github.com/lukekabbash/wowii-198a-lean/blob/49f080bbaee83821e9e9744eef14c5acaae2a101/paper/main.pdf); Lean 4 formalization publicly posted and passed its recorded verification July 23, 2026.\n-/\n@[category research solved, AMS 5, formal_proof using lean4 at\n  \"https://github.com/lukekabbash/wowii-198a-lean/blob/49f080bbaee83821e9e9744eef14c5acaae2a101/lean/src/ConditionalMain.lean#L52-L57\"]\ntheorem conjecture198a (G : SimpleGraph α) (h : G.Connected)\n    (hb : b G ≤ 2 + averageEccentricity G) :\n    ∃ a b : α, ∃ p : G.Walk a b, p.IsHamiltonian := by\n  sorry\n\n-- Sanity checks\n\n/-- The `averageEccentricity` invariant is nonneg for any graph. -/\n@[category test, AMS 5]\nexample (G : SimpleGraph (Fin 3)) : 0 ≤ averageEccentricity G := by\n  unfold averageEccentricity\n  positivity\n\n/-- The invariant `b G` is nonneg. -/\n@[category test, AMS 5]\nexample (G : SimpleGraph (Fin 3)) : 0 ≤ b G := Nat.cast_nonneg _\n\nend WrittenOnTheWallII.GraphConjecture198a\n",
  "statement_hash": "9025bb1069c0574adc0af90e2b7dc6f59d65b245e5beba1a904f77a703864577",
  "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."
}