{
  "id": "8709",
  "ident": "NS.08709",
  "slug": "wotw-graphconjecture322",
  "title": "Written on the Wall II - Conjecture 322",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "WOWII [Conjecture 322](http://cms.uhd.edu/faculty/delavinae/research/wowII/open.html)\n\nLet `G` be a simple connected graph on `n ≥ 5` vertices. If the maximum over all\nvertices `v` of `l(v)` in the complement graph `Gᶜ` — the independence number of\nthe neighborhood `N(v)` of `v` — is at most 1, then `G` is well totally dominated.\n\nHere `l(v) = α(Gᶜ[N(v)])` is the independence number of the subgraph induced by the\nopen neighborhood of `v` in `Gᶜ`.\n\nThis proof was provided by Samuel Schlesinger.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [],
  "collection": "wotw",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "WrittenOnTheWallII.GraphConjecture322.conjecture322",
  "statement_lean": "theorem conjecture322 (G : SimpleGraph α) [DecidableRel G.Adj] (_hG : G.Connected)\n    (hn : 5 ≤ Fintype.card α)\n    (h : ∀ v : α, indepNeighborsCard Gᶜ v ≤ 1) :\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 322\n\n*Reference:*\n[E. DeLaViña, Written on the Wall II, Conjectures of Graffiti.pc](http://cms.uhd.edu/faculty/delavinae/research/wowII/)\n\nThe source applies the local-independence hypothesis to the complement graph. Its conclusion\nalso follows from the characterization of minimal total dominating sets of complete multipartite\ngraphs in [M. Subramanian and A. Selvakumar, *Total Domination and Minimal Total Domination\nPolynomial of H-Join Graphs*](https://doi.org/10.2298/FIL2501267S).\n-/\n\n@[expose] public section\n\n\nnamespace WrittenOnTheWallII.GraphConjecture322\n\nopen SimpleGraph\n\nvariable {α : Type*} [Fintype α] [DecidableEq α]\n\n/--\nWOWII [Conjecture 322](http://cms.uhd.edu/faculty/delavinae/research/wowII/open.html)\n\nLet `G` be a simple connected graph on `n ≥ 5` vertices. If the maximum over all\nvertices `v` of `l(v)` in the complement graph `Gᶜ` — the independence number of\nthe neighborhood `N(v)` of `v` — is at most 1, then `G` is well totally dominated.\n\nHere `l(v) = α(Gᶜ[N(v)])` is the independence number of the subgraph induced by the\nopen neighborhood of `v` in `Gᶜ`.\n\nThis proof was provided by Samuel Schlesinger.\n-/\n@[category research solved, AMS 5]\ntheorem conjecture322 (G : SimpleGraph α) [DecidableRel G.Adj] (_hG : G.Connected)\n    (hn : 5 ≤ Fintype.card α)\n    (h : ∀ v : α, indepNeighborsCard Gᶜ v ≤ 1) :\n    IsWellTotallyDominated G := by\n  have adj_of_local_independence_one (H : SimpleGraph α) {v x y : α}\n      (hv : indepNeighborsCard H v ≤ 1) (hx : H.Adj v x) (hy : H.Adj v y)\n      (hxy : x ≠ y) : H.Adj x y := by\n    by_contra hnxy\n    let x' : H.neighborSet v := ⟨x, hx⟩\n    let y' : H.neighborSet v := ⟨y, hy⟩\n    have hne : x' ≠ y' := by\n      intro heq\n      exact hxy (congrArg Subtype.val heq)\n    have hind : (H.induce (H.neighborSet v)).IsIndepSet ({x', y'} : Finset _) := by\n      rw [isIndepSet_iff]\n      intro a ha b hb hab\n      simp only [Finset.mem_coe, Finset.mem_insert, Finset.mem_singleton] at ha hb\n      rcases ha with (rfl | rfl) <;> rcases hb with (rfl | rfl)\n      · exact (hab rfl).elim\n      · exact hnxy\n      · exact fun hyx ↦ hnxy hyx.symm\n      · exact (hab rfl).elim\n    have hle := hind.card_le_indepNum\n    have hcard : ({x', y'} : Finset _).card = 2 := by simp [hne]\n    rw [hcard] at hle\n    exact (by omega : ¬(2 ≤ indepNeighborsCard H v)) hle\n  have edge_total {x y : α} (hxy : G.Adj x y) : IsTotalDominatingSet G {x, y} := by\n    intro v\n    by_cases hvx : G.Adj v x\n    · exact ⟨x, by simp, hvx⟩\n    by_cases hvy : G.Adj v y\n    · exact ⟨y, by simp, hvy⟩\n    exfalso\n    have hvx_ne : v ≠ x := by\n      rintro rfl\n      exact hvy hxy\n    have hvy_ne : v ≠ y := by\n      rintro rfl\n      exact hvx hxy.symm\n    have hvx_compl : Gᶜ.Adj v x := (G.compl_adj v x).2 ⟨hvx_ne, hvx⟩\n    have hvy_compl : Gᶜ.Adj v y := (G.compl_adj v y).2 ⟨hvy_ne, hvy⟩\n    have hxy_compl : Gᶜ.Adj x y :=\n      adj_of_local_independence_one Gᶜ (h v) hvx_compl hvy_compl hxy.ne\n    exact ((G.compl_adj x y).1 hxy_compl).2 hxy\n  have minimal_card_two {S : Finset α} (hS : IsMinimalTotalDominatingSet G S) :\n      S.card = 2 := by\n    have hcardpos : 0 < Fintype.card α := by omega\n    let v : α := Classical.choice (Fintype.card_pos_iff.mp hcardpos)\n    obtain ⟨w, hwS, _⟩ := hS.1 v\n    obtain ⟨x, hxS, hwx⟩ := hS.1 w\n    have hpair_subset : ({w, x} : Finset α) ⊆ S := by\n      simpa only [Finset.insert_subset_iff, Finset.singleton_subset_iff] using\n        (And.intro hwS hxS)\n    have hpair_not_ssubset : ¬({w, x} : Finset α) ⊂ S := by\n      intro hss\n      exact hS.2 {w, x} hss (edge_total hwx)\n    have hpair_eq : ({w, x} : Finset α) = S :=\n      hpair_subset.eq_of_not_ssubset hpair_not_ssubset\n    rw [← hpair_eq]\n    simp [hwx.ne]\n  intro S T hS hT\n  rw [minimal_card_two hS, minimal_card_two hT]\n\n-- Sanity checks\n\n/-- In `K₄`, all vertices have degree 3. -/\n@[category test, AMS 5]\nexample : (⊤ : SimpleGraph (Fin 4)).maxDegree = 3 := by decide\n\n/-- In the edgeless graph `⊥` on 5 vertices, the minimum degree is 0. -/\n@[category test, AMS 5]\nexample : (⊥ : SimpleGraph (Fin 5)).minDegree = 0 := by decide\n\nend WrittenOnTheWallII.GraphConjecture322\n",
  "statement_hash": "0f5a2eb6035ff6ffedc784b0ee14f5af015b721720b2f49c0347a826de8ea19c",
  "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."
}