{
  "id": "8705",
  "ident": "NS.08705",
  "slug": "wotw-graphconjecture314",
  "title": "Written on the Wall II - Conjecture 314",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "WOWII [Conjecture 314](http://cms.uhd.edu/faculty/delavinae/research/wowII/all.html#conj314):\n\nFor every finite simple connected graph $G$ with $n > 1$ vertices,\nif $G$ is triangle-free and $\\mathrm{path}(G) \\le 4$, then $G$ is well totally\ndominated.\n\nHere $\\mathrm{path}(G) = \\mathrm{largestInducedPathSize}\\, G$ is the **size of a\nlargest induced path** in $G$, defined locally above.\n\n**Disambiguation.** Earlier revisions of this file used the `SimpleGraph.path`\ninvariant, but that is the *floor of the average distance*, not the size of a\nlargest induced path — a different quantity that makes Conjecture 314 vacuous\nin many cases.\n\n**Proof summary.** In a connected, $K_{3}$-free, induced-$P_{5}$-free graph $G$:\n\n1. No minimal total dominating set has fewer than two vertices.\n2. No minimal total dominating set has more than three vertices.\n3. Minimal total dominating sets of sizes two and three cannot coexist.\n\nThus, each minimal total dominating set in $G$ has the same size.\n\nThe Lean proof was generated by OpenAI GPT-5.6 Sol.",
  "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.GraphConjecture314.conjecture314",
  "statement_lean": "theorem conjecture314 [Nontrivial α] (G : SimpleGraph α) [DecidableRel G.Adj]\n    (hG : G.Connected)\n    (hTriFree : ∀ a b c : α, G.Adj a b → G.Adj b c → G.Adj c a → False)\n    (hPath : largestInducedPathSize G ≤ 4) :\n    IsWellTotallyDominated G",
  "challenge_source": "/-\nCopyright 2026 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 314\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\n\nnamespace WrittenOnTheWallII.GraphConjecture314\n\nopen SimpleGraph\n\nvariable {α : Type*} [Fintype α] [DecidableEq α]\n\n/-- The size of a largest induced path of $G$, as a natural number.\n\nA subset $s \\subseteq V(G)$ is an *induced path* when the induced subgraph\n`G.induce s` is a tree in which every vertex has degree at most $2$\n(equivalently: a tree that is itself a path graph). We define\n`largestInducedPathSize G` as the supremum of `s.card` over all such subsets.\n\n**Disambiguation.** This is *not* the `SimpleGraph.path` invariant, which is the\nfloor of the average distance — that one is the wrong tool for WOWII Conjecture\n314, where $\\mathrm{path}(G)$ denotes the **size of a largest induced path**.\n\nTODO: it would probably be clearer to rename the `SimpleGraph.path` invariant to\nsomething like `pathBound` / `floorAvgDist` to avoid this naming collision. -/\nnoncomputable def largestInducedPathSize (G : SimpleGraph α) [DecidableRel G.Adj] : ℕ :=\n  sSup { n | ∃ s : Finset α,\n              s.card = n ∧\n              (G.induce (s : Set α)).IsTree ∧\n              ∀ v : (s : Set α), (G.induce (s : Set α)).degree v ≤ 2 }\n\nset_option linter.style.formal_proof_palomar false in\n/--\nWOWII [Conjecture 314](http://cms.uhd.edu/faculty/delavinae/research/wowII/all.html#conj314):\n\nFor every finite simple connected graph $G$ with $n > 1$ vertices,\nif $G$ is triangle-free and $\\mathrm{path}(G) \\le 4$, then $G$ is well totally\ndominated.\n\nHere $\\mathrm{path}(G) = \\mathrm{largestInducedPathSize}\\, G$ is the **size of a\nlargest induced path** in $G$, defined locally above.\n\n**Disambiguation.** Earlier revisions of this file used the `SimpleGraph.path`\ninvariant, but that is the *floor of the average distance*, not the size of a\nlargest induced path — a different quantity that makes Conjecture 314 vacuous\nin many cases.\n\n**Proof summary.** In a connected, $K_{3}$-free, induced-$P_{5}$-free graph $G$:\n\n1. No minimal total dominating set has fewer than two vertices.\n2. No minimal total dominating set has more than three vertices.\n3. Minimal total dominating sets of sizes two and three cannot coexist.\n\nThus, each minimal total dominating set in $G$ has the same size.\n\nThe Lean proof was generated by OpenAI GPT-5.6 Sol.\n-/\n@[category research solved, AMS 5, formal_proof using lean4 at \"https://github.com/glyaea/wow-ii-314/blob/7b35f1252e4aaae3c787faf8091f9c7cd4edc41f/solution.lean\"]\ntheorem conjecture314 [Nontrivial α] (G : SimpleGraph α) [DecidableRel G.Adj]\n    (hG : G.Connected)\n    (hTriFree : ∀ a b c : α, G.Adj a b → G.Adj b c → G.Adj c a → False)\n    (hPath : largestInducedPathSize G ≤ 4) :\n    IsWellTotallyDominated G := by\n  sorry\n\n-- Sanity checks\n\n/-- The complete graph $K_3$ has a triangle. -/\n@[category test, AMS 5]\nexample : ∃ a b c : Fin 3, (⊤ : SimpleGraph (Fin 3)).Adj a b ∧\n    (⊤ : SimpleGraph (Fin 3)).Adj b c ∧ (⊤ : SimpleGraph (Fin 3)).Adj c a := by\n  exact ⟨0, 1, 2, by decide, by decide, by decide⟩\n\n/-- `largestInducedPathSize G` is nonneg. -/\n@[category test, AMS 5]\nexample (G : SimpleGraph (Fin 3)) [DecidableRel G.Adj] :\n    0 ≤ largestInducedPathSize G := Nat.zero_le _\n\nend WrittenOnTheWallII.GraphConjecture314\n",
  "statement_hash": "d92c5d6262543ffb39624c489793b9a26cef0912fc6e6b7db01209c9e94eb766",
  "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."
}