{
  "id": "8688",
  "ident": "NS.08688",
  "slug": "wotw-graphconjecture199",
  "title": "Written on the Wall II - Conjecture 199",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "WOWII [Conjecture 199](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/)\n\nFor a simple connected graph `G`, if `tree(G) - 2 ≤ κ(G)`, then `G` has a Hamiltonian path.\nThe nontrivial vertex type encodes the source assumption $n > 1$.\nHere `tree(G)` is the number of vertices in a largest induced tree and\n`κ(G) = vertexConnectivity G` is the vertex connectivity of `G`.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [],
  "collection": "wotw",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "WrittenOnTheWallII.GraphConjecture199.conjecture199",
  "statement_lean": "theorem conjecture199 (G : SimpleGraph α) (h : G.Connected)\n    (hκ : largestInducedTreeSize G - 2 ≤ vertexConnectivity 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 199\n\n**Verbatim statement (WOWII #199, status O):**\n> If G is a simple connected graph with n > 1 such that tree(G) - 2 ≤ κ(G), then G has a Hamiltonian path.\n\n**Source:** http://cms.uhd.edu/faculty/delavinae/research/wowII/all.html#conj199\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.GraphConjecture199\n\nopen SimpleGraph\n\nvariable {α : Type*} [Fintype α] [DecidableEq α] [Nontrivial α]\n\n/--\nWOWII [Conjecture 199](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/)\n\nFor a simple connected graph `G`, if `tree(G) - 2 ≤ κ(G)`, then `G` has a Hamiltonian path.\nThe nontrivial vertex type encodes the source assumption $n > 1$.\nHere `tree(G)` is the number of vertices in a largest induced tree and\n`κ(G) = vertexConnectivity G` is the vertex connectivity of `G`.\n-/\n@[category research open, AMS 5]\ntheorem conjecture199 (G : SimpleGraph α) (h : G.Connected)\n    (hκ : largestInducedTreeSize G - 2 ≤ vertexConnectivity 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 empty graph has vertex connectivity zero. -/\n@[category test, AMS 5]\ntheorem vertexConnectivity_empty : vertexConnectivity (⊥ : SimpleGraph (Fin 0)) = 0 := by\n  simp\n\n/-- A single vertex has vertex connectivity zero. -/\n@[category test, AMS 5]\ntheorem vertexConnectivity_singleton : vertexConnectivity (⊤ : SimpleGraph (Fin 1)) = 0 := by\n  simp\n\n/-- Two isolated vertices have vertex connectivity zero. -/\n@[category test, AMS 5]\ntheorem vertexConnectivity_disconnected : vertexConnectivity (⊥ : SimpleGraph (Fin 2)) = 0 := by\n  exact vertexConnectivity_eq_zero_of_not_connected _ not_connected_bot\n\n/-- The complete graph on three vertices has vertex connectivity two. -/\n@[category test, AMS 5]\ntheorem vertexConnectivity_complete_three : vertexConnectivity (⊤ : SimpleGraph (Fin 3)) = 2 := by\n  classical\n  rw [vertexConnectivity, if_neg (by decide)]\n  apply le_antisymm\n  · exact csInf_le' ⟨{0, 1}, by decide, Or.inr (by decide)⟩\n  · refine le_csInf ?_ ?_\n    · exact ⟨2, {0, 1}, by decide, Or.inr (by decide)⟩\n    · rintro k ⟨S, rfl, hS⟩\n      exact (by decide +kernel : ∀ S : Finset (Fin 3),\n        (¬((⊤ : SimpleGraph (Fin 3)).induce ((S : Set (Fin 3))ᶜ)).Connected ∨\n          S.card = Fintype.card (Fin 3) - 1) → 2 ≤ S.card) S hS\n\nend WrittenOnTheWallII.GraphConjecture199\n",
  "statement_hash": "5a1e07e6612c67c7f2b18519cfb3088073bb85a2c9794b909244b1f35cd78a25",
  "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."
}