{
  "id": "8701",
  "ident": "NS.08701",
  "slug": "wotw-graphconjecture291",
  "title": "Written on the Wall II - Conjecture 291",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "WOWII [Conjecture 291](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/)\n\nFor a simple connected graph $G$ with $n > 2$,\n$\\gamma_t(G) \\le k + \\mathrm{frequency}(t_{\\min}(v))$\nwhere:\n\n- $\\gamma_t(G)$ is the total domination number,\n- $k$ is the first step in which a zero appears in the Havel-Hakimi process,\n- $\\mathrm{frequency}(t_{\\min}(v))$ is the number of vertices achieving the\n  minimum triangle count.\n\nThis is false: the source records a 12-vertex counterexample by Zyad Tamimi (July 23, 2026)\nwith $\\gamma_t(G) = 4 > 2 + 1 = k + \\mathrm{frequency}(t_{\\min}(v))$.\n\nThe linked Lean proof certifies the twelve-vertex member ($m = 6$) of the family given by\n[`vulnix0x4`](https://github.com/google-deepmind/formal-conjectures/issues/4562).\n\nThe hypothesis $n > 2$ is stated in the source's full list of conjectures (as for the\nneighbouring Conjectures 290, 292 and 293) but omitted on its list of open conjectures;\nthe counterexample has $12$ vertices, so it refutes both readings.\n\nLean formalization by Wentao Li, with AI assistance.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "wotw",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "WrittenOnTheWallII.GraphConjecture291.conjecture291",
  "statement_lean": "theorem conjecture291 :\n    ¬ ∀ (α : Type) [Fintype α] [DecidableEq α] [Nontrivial α]\n      (G : SimpleGraph α) [DecidableRel G.Adj] (_h : G.Connected) (_hn : 2 < Fintype.card α),\n      G.totalDominationNumber ≤ havelHakimiZeroStep G + freqMinTriangles 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 291\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\nFor a vertex $v$ in a graph $G$, **$T(v)$** is the number of triangles (3-cliques)\nincident to $v$, i.e., the number of 3-element cliques in $G$ that contain $v$.\n\nThe **triangle-frequency of the minimum** is the number of vertices that achieve the\nminimum value of $T(v)$.\n\n**$k$** is the **first step in the Havel–Hakimi process at which a zero appears**.\nConcretely, starting from the descending degree sequence $s_0$ of $G$, we set\n$s_{i+1} = \\mathrm{havelHakimiStep}\\, s_i$ and let $k$ be the least $i \\ge 0$ such\nthat $s_i$ contains a zero entry (or, vacuously, has been emptied entirely). Since\neach step is sorted descending and never increases entries, this is equivalent\nto the last (smallest) entry of $s_i$ being $0$, or $s_i$ being $[]$.\n\nThis is **strictly weaker** than $n - \\mathrm{residue}(G)$: $n - \\mathrm{residue}(G)$\nis the *total* number of reduction steps until *every* entry is zero, whereas $k$\nonly requires that *some* entry has hit zero — and a $0$ typically appears well\nbefore the all-zero state is reached.\n\n**Conjecture 291:** For a simple connected graph $G$ with $n > 2$,\n$\\gamma_t(G) \\le k + \\mathrm{frequency}(t_{\\min}(v))$\nwhere $\\gamma_t(G)$ is the total domination number, $k$ is the Havel-Hakimi zero\nstep, and $\\mathrm{frequency}(t_{\\min}(v))$ is the number of vertices achieving\nthe minimum triangle count.\n\nThe conjecture is **false**: on July 23, 2026, Zyad Tamimi sent a 12-vertex\ncounterexample with $\\gamma_t(G) = 4$, $\\mathrm{frequency}(t_{\\min}(v)) = 1$ and $k = 2$,\nand the source now lists Conjecture 291 as refuted.\n-/\n\n@[expose] public section\n\nnamespace WrittenOnTheWallII.GraphConjecture291\n\nopen SimpleGraph\n\nvariable {α : Type*} [Fintype α] [DecidableEq α] [Nontrivial α]\n\n/-- The minimum number of triangles incident to any vertex, over all vertices of $G$. -/\nnoncomputable def minTrianglesAtVertex (G : SimpleGraph α) [DecidableRel G.Adj] : ℕ :=\n  Finset.univ.inf' Finset.univ_nonempty (numTrianglesAtVertex G)\n\n/-- The number of vertices achieving the minimum triangle count. -/\nnoncomputable def freqMinTriangles (G : SimpleGraph α) [DecidableRel G.Adj] : ℕ :=\n  (Finset.univ.filter (fun v => numTrianglesAtVertex G v = minTrianglesAtVertex G)).card\n\n/-- The descending degree sequence of $G$, used as the starting point of the\nHavel-Hakimi reduction.\n\nUses `Finset.univ.val.map` (multiset, duplicate-preserving) rather than\n`Finset.univ.image` (set, deduplicating), so that e.g. $C_4$ produces\n$[2, 2, 2, 2]$ rather than $[2]$. -/\nnoncomputable def descDegreeSequence (G : SimpleGraph α) [DecidableRel G.Adj] : List ℕ :=\n  (Finset.univ.val.map (fun v : α => G.degree v)).sort (· ≥ ·)\n\n/-- The Havel-Hakimi sequence of iterates: `s i` is the result of applying\n`havelHakimiStep` $i$ times to the descending degree sequence of $G$. -/\nnoncomputable def havelHakimiIterate (G : SimpleGraph α) [DecidableRel G.Adj] (i : ℕ) :\n    List ℕ :=\n  (havelHakimiStep)^[i] (descDegreeSequence G)\n\n/-- The first step $i$ (counting from $0$) at which a zero appears in the\nHavel-Hakimi reduction of the descending degree sequence of $G$, or in which\nthe sequence has been emptied. We use `sInf` over the set of such $i$ so the\ndefinition is well-defined for every graph: in particular, when $G$ is a\nconnected graph with $n \\ge 2$ the minimum degree at iteration $0$ is at least\n$1$, so the first zero only appears at some $i \\ge 1$; and since each step\nstrictly shortens the list (or empties it), at the latest by $i = n$ the\nsequence is empty and the predicate holds vacuously.\n\nThis is the WOWII $k$ of Conjecture 291, which is the **first** step at which a\nzero appears — typically strictly less than $n - \\mathrm{residue}(G)$ (which is\nthe *total* number of reduction steps to reach the all-zero state). -/\nnoncomputable def havelHakimiZeroStep (G : SimpleGraph α) [DecidableRel G.Adj] : ℕ :=\n  sInf {i | 0 ∈ havelHakimiIterate G i ∨ havelHakimiIterate G i = []}\n\n/--\nWOWII [Conjecture 291](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/)\n\nFor a simple connected graph $G$ with $n > 2$,\n$\\gamma_t(G) \\le k + \\mathrm{frequency}(t_{\\min}(v))$\nwhere:\n\n- $\\gamma_t(G)$ is the total domination number,\n- $k$ is the first step in which a zero appears in the Havel-Hakimi process,\n- $\\mathrm{frequency}(t_{\\min}(v))$ is the number of vertices achieving the\n  minimum triangle count.\n\nThis is false: the source records a 12-vertex counterexample by Zyad Tamimi (July 23, 2026)\nwith $\\gamma_t(G) = 4 > 2 + 1 = k + \\mathrm{frequency}(t_{\\min}(v))$.\n\nThe linked Lean proof certifies the twelve-vertex member ($m = 6$) of the family given by\n[`vulnix0x4`](https://github.com/google-deepmind/formal-conjectures/issues/4562).\n\nThe hypothesis $n > 2$ is stated in the source's full list of conjectures (as for the\nneighbouring Conjectures 290, 292 and 293) but omitted on its list of open conjectures;\nthe counterexample has $12$ vertices, so it refutes both readings.\n\nLean formalization by Wentao Li, with AI assistance.\n-/\n@[category research solved, question, AMS 5,\n  formal_proof using lean4 at \"https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-13-000012\"]\ntheorem conjecture291 :\n    ¬ ∀ (α : Type) [Fintype α] [DecidableEq α] [Nontrivial α]\n      (G : SimpleGraph α) [DecidableRel G.Adj] (_h : G.Connected) (_hn : 2 < Fintype.card α),\n      G.totalDominationNumber ≤ havelHakimiZeroStep G + freqMinTriangles G := by\n  sorry\n\n-- Sanity checks\n\n/-- In $K_3$, every vertex is in exactly $1$ triangle. -/\n@[category test, AMS 5]\nexample : numTrianglesAtVertex (⊤ : SimpleGraph (Fin 3)) (0 : Fin 3) = 1 := by\n  unfold numTrianglesAtVertex\n  decide\n\n/-- In the path $P_3$, vertex $1$ has no triangles incident to it\n($0$ and $2$ are neighbors of $1$ but not adjacent to each other). -/\n@[category test, AMS 5]\nexample : numTrianglesAtVertex\n    (SimpleGraph.fromEdgeSet {s(0,1), s(1,2)} : SimpleGraph (Fin 3)) (1 : Fin 3) = 0 := by\n  unfold numTrianglesAtVertex\n  decide\n\n/-- In $K_3$, the minimum triangle count is $1$ (every vertex has $1$ triangle). -/\n@[category test, AMS 5]\nexample : minTrianglesAtVertex (⊤ : SimpleGraph (Fin 3)) = 1 := by\n  unfold minTrianglesAtVertex numTrianglesAtVertex\n  decide\n\n/-- `havelHakimiZeroStep` is nonneg. -/\n@[category test, AMS 5]\nexample (G : SimpleGraph (Fin 4)) [DecidableRel G.Adj] : 0 ≤ havelHakimiZeroStep G :=\n  Nat.zero_le _\n\nend WrittenOnTheWallII.GraphConjecture291\n",
  "statement_hash": "c4c455e6ff5f38aa26ee422fdccc0f9d2f1714d293adf594a4a4d4a7a0a029df",
  "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."
}