{
  "id": "8739",
  "ident": "NS.08739",
  "slug": "wotw-graphconjecture7",
  "title": "Written on the Wall II - Conjecture 7",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "WOWII [Conjecture 7](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/)\n\nFor a simple connected graph $G$,\n$L_s(G) \\ge \\max_v \\lambda(v) - 1 + n - 2 \\alpha(G)$,\nwhere $L_s(G)$ is the maximum number of leaves over all spanning trees of $G$,\n$n = |V(G)|$, $\\alpha(G) = G.\\mathrm{indepNum}$ is the independence number, and\n$\\lambda(v) = \\mathrm{indepNeighborsCard}\\, G\\, v$ is the independence number of the\nneighbourhood of $v$.\n\nProved by DeLaVina, Fajtlowicz, Waller (2002); see [DFW03].\n\nLean formalization by Wentao Li, with AI assistance; see [Li26].",
  "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.GraphConjecture7.conjecture7",
  "statement_lean": "theorem conjecture7 (G : SimpleGraph α) [DecidableRel G.Adj] (h : G.Connected) :\n    let maxL := (Finset.univ.image (fun v => indepNeighborsCard G v)).max' (by simp)\n    ((maxL : ℤ) - 1 + (Fintype.card α : ℤ) - 2 * (G.indepNum : ℤ) : ℝ) ≤ Ls 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 7\n\n*References:*\n- [E. DeLaVina, Written on the Wall II, Conjectures of Graffiti.pc](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/)\n- [DFW03] E. DeLaVina, S. Fajtlowicz and B. Waller, [On Some Conjectures of Griggs and Graffiti](https://www.uhd.edu/documents/academics/sciences/griggsngraffiti.pdf), 2002, revised 2003.\n- [Li26] Wentao Li, [Lean proof of WOWII 7](https://github.com/VictorLiwentao/lean-graph-proofs/blob/9ce66be23570e0a9c8a6ae3f19f52e642878a8a9/proofs/WOWII7/PROOF.md), 2026.\n-/\n\n@[expose] public section\n\nnamespace WrittenOnTheWallII.GraphConjecture7\n\nopen SimpleGraph\n\nvariable {α : Type*} [Fintype α] [DecidableEq α] [Nontrivial α]\n\nset_option linter.style.formal_proof_palomar false in\n/--\nWOWII [Conjecture 7](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/)\n\nFor a simple connected graph $G$,\n$L_s(G) \\ge \\max_v \\lambda(v) - 1 + n - 2 \\alpha(G)$,\nwhere $L_s(G)$ is the maximum number of leaves over all spanning trees of $G$,\n$n = |V(G)|$, $\\alpha(G) = G.\\mathrm{indepNum}$ is the independence number, and\n$\\lambda(v) = \\mathrm{indepNeighborsCard}\\, G\\, v$ is the independence number of the\nneighbourhood of $v$.\n\nProved by DeLaVina, Fajtlowicz, Waller (2002); see [DFW03].\n\nLean formalization by Wentao Li, with AI assistance; see [Li26].\n-/\n@[category research solved, AMS 5,\n  formal_proof using lean4 at \"https://github.com/VictorLiwentao/lean-graph-proofs/blob/9ce66be23570e0a9c8a6ae3f19f52e642878a8a9/LeanGraphProofs/WOWII7.lean#L462\"]\ntheorem conjecture7 (G : SimpleGraph α) [DecidableRel G.Adj] (h : G.Connected) :\n    let maxL := (Finset.univ.image (fun v => indepNeighborsCard G v)).max' (by simp)\n    ((maxL : ℤ) - 1 + (Fintype.card α : ℤ) - 2 * (G.indepNum : ℤ) : ℝ) ≤ Ls G := by\n  sorry\n\n-- Sanity checks\n\n/-- The independence number is nonneg. -/\n@[category test, AMS 5]\nexample (G : SimpleGraph (Fin 3)) : 0 ≤ G.indepNum := Nat.zero_le _\n\nend WrittenOnTheWallII.GraphConjecture7\n",
  "statement_hash": "6667a4c81cb9d60f6dffc4568ebe959083af66ec1f5df2fc76d9b9b7eb1a072c",
  "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."
}