{
  "id": "8684",
  "ident": "NS.08684",
  "slug": "wotw-graphconjecture189",
  "title": "Written on the Wall II - Conjecture 189",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "WOWII [Conjecture 189](http://cms.uhd.edu/faculty/delavinae/research/wowII/all.html#conj189)\n(status O):\n\nFor a simple connected graph `G`, if `max_v distEven(v) ≤ 1 + σ(G)`,\nthen `G` has a Hamiltonian path.\n\nHere `distEven(v)` is the number of vertices at even distance from `v`, and\n`σ(G)` is the **second-smallest degree** of `G`'s degree sequence (per\nWOWII defEntry 65).",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [],
  "collection": "wotw",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "WrittenOnTheWallII.GraphConjecture189.conjecture189",
  "statement_lean": "theorem conjecture189 (G : SimpleGraph α) [DecidableRel G.Adj] (h : G.Connected)\n    (hσ : (Finset.univ.image (distEven G)).max' (by simp) ≤ 1 + secondSmallestDegree 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-/\n\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Written on the Wall II - Conjecture 189\n\n**Verbatim statement (WOWII #189, status O):**\n> If G is a simple connected graph with n > 1 such that maximum { dist_even(v) : dist_even(v) is the number of vertices at even distance from v } ≤ 1 + σ(G), then G has a Hamiltonian path.\n\n**Source:** http://cms.uhd.edu/faculty/delavinae/research/wowII/all.html#conj189\n\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.GraphConjecture189\n\nopen SimpleGraph\n\nvariable {α : Type*} [Fintype α] [DecidableEq α] [Nontrivial α]\n\n/--\nWOWII [Conjecture 189](http://cms.uhd.edu/faculty/delavinae/research/wowII/all.html#conj189)\n(status O):\n\nFor a simple connected graph `G`, if `max_v distEven(v) ≤ 1 + σ(G)`,\nthen `G` has a Hamiltonian path.\n\nHere `distEven(v)` is the number of vertices at even distance from `v`, and\n`σ(G)` is the **second-smallest degree** of `G`'s degree sequence (per\nWOWII defEntry 65).\n-/\n@[category research open, AMS 5]\ntheorem conjecture189 (G : SimpleGraph α) [DecidableRel G.Adj] (h : G.Connected)\n    (hσ : (Finset.univ.image (distEven G)).max' (by simp) ≤ 1 + secondSmallestDegree G) :\n    ∃ a b : α, ∃ p : G.Walk a b, p.IsHamiltonian := by\n  sorry\n\n-- Sanity checks\n\n/-- The second-smallest degree is nonneg. -/\n@[category test, AMS 5]\nexample (G : SimpleGraph (Fin 3)) [DecidableRel G.Adj] :\n    0 ≤ secondSmallestDegree G := Nat.zero_le _\n\n/-- `distEven G v` is positive for any vertex `v`. -/\n@[category test, AMS 5]\nexample (G : SimpleGraph (Fin 3)) (v : Fin 3) : 0 < distEven G v := by\n  unfold distEven\n  apply Finset.card_pos.mpr\n  exact ⟨v, Finset.mem_filter.mpr ⟨Finset.mem_univ _, ⟨0, by simp [SimpleGraph.dist_self]⟩⟩⟩\n\nend WrittenOnTheWallII.GraphConjecture189\n",
  "statement_hash": "45121063d4d0e1045b51625b09a70bfdc91ff92f905f0d9acab92a657147ef6b",
  "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": [
    {
      "public_id": "s-pbwevsazvg",
      "open_lemmas": [
        "WrittenOnTheWallII.GraphConjecture189.conjecture189_of_three_le_dist"
      ]
    }
  ],
  "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."
}