{
  "id": "8706",
  "ident": "NS.08706",
  "slug": "wotw-graphconjecture315",
  "title": "Written on the Wall II - Conjecture 315",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "WOWII [Conjecture 315](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/)\n\nLet $G$ be a simple connected graph and let $P$ denote the set of pendant vertices\n(vertices of degree $1$). If $\\alpha(G) = |P|$, then $G$ is well totally dominated.\n\nA formal proof of this conjectures has been obtained by Goran Žužić and Moritz Firsching using an\nexperimental pipeline.",
  "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.GraphConjecture315.conjecture315",
  "statement_lean": "theorem conjecture315 (G : SimpleGraph α) [DecidableRel G.Adj] (hG : G.Connected)\n    (h : G.indepNum = (pendantVertices G).card) :\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 315\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## Definitions\n\nThe notions `IsTotalDominatingSet`, `IsMinimalTotalDominatingSet`,\n`IsWellTotallyDominated`, and `pendantVertices` live in\n`FormalConjecturesForMathlib.Combinatorics.SimpleGraph.GraphConjectures.WellTotallyDominated`.\n-/\n\n@[expose] public section\n\n\nnamespace WrittenOnTheWallII.GraphConjecture315\n\nopen SimpleGraph\n\nvariable {α : Type*} [Fintype α] [DecidableEq α]\n\nset_option linter.style.formal_proof_palomar false in\n/--\nWOWII [Conjecture 315](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/)\n\nLet $G$ be a simple connected graph and let $P$ denote the set of pendant vertices\n(vertices of degree $1$). If $\\alpha(G) = |P|$, then $G$ is well totally dominated.\n\nA formal proof of this conjectures has been obtained by Goran Žužić and Moritz Firsching using an\nexperimental pipeline.\n-/\n@[category research solved, AMS 5, formal_proof using formal_conjectures at\n\"https://github.com/mo271/formal-conjectures/blob/9ef80e1a3709ed3eda43d9ed6ff1087681621041/FormalConjectures/WrittenOnTheWallII/GraphConjecture315.lean#L43\"]\ntheorem conjecture315 (G : SimpleGraph α) [DecidableRel G.Adj] (hG : G.Connected)\n    (h : G.indepNum = (pendantVertices G).card) :\n    IsWellTotallyDominated G := by\n  sorry\n\n-- Sanity checks\n\n/-- In the path graph $P_3$ ($0$-$1$-$2$), vertices $0$ and $2$ have degree $1$,\nso there are exactly $2$ pendant vertices. -/\n@[category test, AMS 5]\nexample : (pendantVertices (SimpleGraph.fromEdgeSet {s(0,1), s(1,2)} : SimpleGraph (Fin 3))).card = 2 := by\n  unfold pendantVertices\n  decide\n\n/-- In $K_3$, all vertices have degree $2$, so there are no pendant vertices. -/\n@[category test, AMS 5]\nexample : (pendantVertices (⊤ : SimpleGraph (Fin 3))).card = 0 := by\n  unfold pendantVertices\n  decide\n\n/-- In $K_2$, both vertices have degree $1$, so both are pendant vertices. -/\n@[category test, AMS 5]\nexample : (pendantVertices (⊤ : SimpleGraph (Fin 2))).card = 2 := by\n  unfold pendantVertices\n  decide\n\n/-- In $K_2$, the pendant set is exactly $\\{0, 1\\}$. -/\n@[category test, AMS 5]\nexample : pendantVertices (⊤ : SimpleGraph (Fin 2)) = Finset.univ := by\n  unfold pendantVertices\n  decide\n\n/-- In the edgeless graph on $3$ vertices, no vertex has degree $1$, so there are $0$ pendant vertices. -/\n@[category test, AMS 5]\nexample : (pendantVertices (⊥ : SimpleGraph (Fin 3))).card = 0 := by\n  unfold pendantVertices\n  decide\n\n/-- $\\{0, 1\\}$ is a total dominating set of $K_2$: every vertex has a neighbor in $\\{0, 1\\}$. -/\n@[category test, AMS 5]\nexample : IsTotalDominatingSet (⊤ : SimpleGraph (Fin 2)) Finset.univ := by\n  unfold IsTotalDominatingSet\n  intro v\n  fin_cases v <;> simp\n\n/-- $\\{0, 1\\}$ is NOT a total dominating set of the edgeless graph on $2$ vertices,\nsince no vertex has a neighbor in the empty edge set. -/\n@[category test, AMS 5]\nexample : ¬IsTotalDominatingSet (⊥ : SimpleGraph (Fin 2)) Finset.univ := by\n  unfold IsTotalDominatingSet\n  push Not\n  exact ⟨0, fun w _ => by simp⟩\n\nend WrittenOnTheWallII.GraphConjecture315\n",
  "statement_hash": "4e9799cabc45cc8afd57c9a481598329307601866f842300039e71c5a9f0b80c",
  "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."
}