{
  "id": "8660",
  "ident": "NS.08660",
  "slug": "wotw-graphconjecture1",
  "title": "Written on the Wall II - Conjecture 1",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "WOWII [Conjecture 1](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/)\n\nFor a simple connected graph `G` the maximum number of leaves of a spanning\ntree satisfies `Ls(G) ≥ n(G) + 1 - 2·m(G)` where `n(G)` counts vertices and\n`m(G)` is the size of a maximum matching.\n\nA formal proof reduces to a spanning tree `T`. If `I` is the set of non-leaves\nof `T`, Hall's theorem applied to a bipartition of `T` gives a matching `M`\nwith `|I| + 1 ≤ 2 * |M|`. Since `|V|` is the sum of the numbers of leaves and\nnon-leaves, and every matching and leaf count constructed in `T` is admissible\nfor the corresponding supremum in `G`, the stated inequality follows.",
  "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.GraphConjecture1.conjecture1",
  "statement_lean": "theorem conjecture1 {α : Type*} [Fintype α] [DecidableEq α] [Nontrivial α]\n    (G : SimpleGraph α) [DecidableRel G.Adj] (h_conn : G.Connected) :\n    (Fintype.card α : ℝ) + 1 - 2 * matchingNumber G ≤ (Ls G : ℝ)",
  "challenge_source": "/-\nCopyright 2025 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 1\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\nnamespace WrittenOnTheWallII.GraphConjecture1\n\nopen SimpleGraph\n\nset_option linter.style.formal_proof_palomar false in\n/--\nWOWII [Conjecture 1](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/)\n\nFor a simple connected graph `G` the maximum number of leaves of a spanning\ntree satisfies `Ls(G) ≥ n(G) + 1 - 2·m(G)` where `n(G)` counts vertices and\n`m(G)` is the size of a maximum matching.\n\nA formal proof reduces to a spanning tree `T`. If `I` is the set of non-leaves\nof `T`, Hall's theorem applied to a bipartition of `T` gives a matching `M`\nwith `|I| + 1 ≤ 2 * |M|`. Since `|V|` is the sum of the numbers of leaves and\nnon-leaves, and every matching and leaf count constructed in `T` is admissible\nfor the corresponding supremum in `G`, the stated inequality follows.\n-/\n\n@[category research solved, AMS 5,\n  formal_proof using lean4 at\n    \"https://github.com/MiskinAleksandr23/WOWII-1/blob/eda16f6e96b313bd112351ae9859133b77d537c9/WOWII1/GraphConjecture1.lean\"]\ntheorem conjecture1 {α : Type*} [Fintype α] [DecidableEq α] [Nontrivial α]\n    (G : SimpleGraph α) [DecidableRel G.Adj] (h_conn : G.Connected) :\n    (Fintype.card α : ℝ) + 1 - 2 * matchingNumber G ≤ (Ls G : ℝ) := by\n  sorry\n\nend WrittenOnTheWallII.GraphConjecture1\n",
  "statement_hash": "44151be252d2e686f2f793c7e6908d328c49aabf4a51ff3550e8b321a143dfe7",
  "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."
}