{
  "id": "8673",
  "ident": "NS.08673",
  "slug": "wotw-graphconjecture142",
  "title": "Written on the Wall II - Conjecture 142",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "WOWII [Conjecture 142](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/):\n\nFor a simple connected graph $G$,\n$\\mathrm{tree}(G) \\ge (2/3) \\cdot \\mathrm{girth}(G) + \\mathrm{ecc}(B)$\nwhere $\\mathrm{tree}(G)$ is the largest induced tree size, $\\mathrm{girth}(G)$\nis the length of the shortest cycle ($0$ if acyclic), $B$ is the set of\nboundary vertices (those of maximum eccentricity), and $\\mathrm{ecc}(B)$ is\nthe eccentricity of the set $B$.\n\n**Proof sketch.** The proof first strengthens the real-valued target to the\nintegral bound\n$$\n\\mathrm{ecc}(B) + \\mathrm{girth}(G)\n  - \\lfloor \\mathrm{girth}(G) / 3 \\rfloor \\leq \\mathrm{tree}(G).\n$$\nFor a cyclic graph, start with a shortest cycle $K$. It is chordless, so\nremoving one vertex leaves an induced path on $\\mathrm{girth}(G)-1$ vertices.\nShortest paths from selected vertices to $K$ are called *descents*. Pairwise\nnoninteracting descents attach to the retained cycle path as disjoint branches.\nIf two descents interact, the proof cuts at the first interaction encountered\nfrom the outer endpoint toward the cycle and splices the paths there.\nMinimality of that interaction makes the retained prefix disjoint and\nnonadjacent to the first descent; geodesicity excludes chords, while girth at\nleast five rules out extra cross-edges and cycle attachments.\n\nChoose a vertex realizing $\\mathrm{ecc}(B)$ and two endpoints of a diametral\ngeodesic. Either two of their descents interact, directly giving a sufficiently\nlong spliced tree, or all three are separate, in which case a three-point\ndistance inequality forces their total length to be large enough. This proves\nthe integral bound in the main range. Girths three and four, small\n$\\mathrm{ecc}(B)$, and the two remaining congruence cases are handled by\nseparate geodesic/cycle certificates with one or two descents; the acyclic case\nfollows from a diametral path. Finally,\n$$\n\\mathrm{girth}(G)-\\lfloor\\mathrm{girth}(G)/3\\rfloor\n  = \\lceil 2\\,\\mathrm{girth}(G)/3\\rceil\n  \\geq 2\\,\\mathrm{girth}(G)/3,\n$$\nwhich gives the stated real-valued inequality.\n\nThe argument was developed with assistance from ChatGPT Pro. The linked Lean 4\nformalization was produced with assistance from OpenAI Codex and checked by\nLean.",
  "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.GraphConjecture142.conjecture142",
  "statement_lean": "theorem conjecture142 (G : SimpleGraph α) [DecidableRel G.Adj] (h : G.Connected) :\n    let B : Set α := (maxEccentricityVertices G : Set α)\n    (2 : ℝ) / 3 * (G.girth : ℝ) + (eccSet G B : ℝ) ≤ (largestInducedTreeSize 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 142\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.GraphConjecture142\n\nopen SimpleGraph\n\nvariable {α : Type*} [Fintype α] [DecidableEq α] [Nontrivial α]\n\nset_option linter.style.formal_proof_palomar false in\n/--\nWOWII [Conjecture 142](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/):\n\nFor a simple connected graph $G$,\n$\\mathrm{tree}(G) \\ge (2/3) \\cdot \\mathrm{girth}(G) + \\mathrm{ecc}(B)$\nwhere $\\mathrm{tree}(G)$ is the largest induced tree size, $\\mathrm{girth}(G)$\nis the length of the shortest cycle ($0$ if acyclic), $B$ is the set of\nboundary vertices (those of maximum eccentricity), and $\\mathrm{ecc}(B)$ is\nthe eccentricity of the set $B$.\n\n**Proof sketch.** The proof first strengthens the real-valued target to the\nintegral bound\n$$\n\\mathrm{ecc}(B) + \\mathrm{girth}(G)\n  - \\lfloor \\mathrm{girth}(G) / 3 \\rfloor \\leq \\mathrm{tree}(G).\n$$\nFor a cyclic graph, start with a shortest cycle $K$. It is chordless, so\nremoving one vertex leaves an induced path on $\\mathrm{girth}(G)-1$ vertices.\nShortest paths from selected vertices to $K$ are called *descents*. Pairwise\nnoninteracting descents attach to the retained cycle path as disjoint branches.\nIf two descents interact, the proof cuts at the first interaction encountered\nfrom the outer endpoint toward the cycle and splices the paths there.\nMinimality of that interaction makes the retained prefix disjoint and\nnonadjacent to the first descent; geodesicity excludes chords, while girth at\nleast five rules out extra cross-edges and cycle attachments.\n\nChoose a vertex realizing $\\mathrm{ecc}(B)$ and two endpoints of a diametral\ngeodesic. Either two of their descents interact, directly giving a sufficiently\nlong spliced tree, or all three are separate, in which case a three-point\ndistance inequality forces their total length to be large enough. This proves\nthe integral bound in the main range. Girths three and four, small\n$\\mathrm{ecc}(B)$, and the two remaining congruence cases are handled by\nseparate geodesic/cycle certificates with one or two descents; the acyclic case\nfollows from a diametral path. Finally,\n$$\n\\mathrm{girth}(G)-\\lfloor\\mathrm{girth}(G)/3\\rfloor\n  = \\lceil 2\\,\\mathrm{girth}(G)/3\\rceil\n  \\geq 2\\,\\mathrm{girth}(G)/3,\n$$\nwhich gives the stated real-valued inequality.\n\nThe argument was developed with assistance from ChatGPT Pro. The linked Lean 4\nformalization was produced with assistance from OpenAI Codex and checked by\nLean.\n-/\n@[category research solved, AMS 5,\n  formal_proof using formal_conjectures at \"https://github.com/AlperTheKing/formal-conjectures/blob/46bf39015f5c3c3ba3bfcf9f752b4b1e49b584ac/FormalConjecturesForMathlib/WrittenOnTheWallII/GraphConjecture142Proof.lean#L3927-L3932\"]\ntheorem conjecture142 (G : SimpleGraph α) [DecidableRel G.Adj] (h : G.Connected) :\n    let B : Set α := (maxEccentricityVertices G : Set α)\n    (2 : ℝ) / 3 * (G.girth : ℝ) + (eccSet G B : ℝ) ≤ (largestInducedTreeSize G : ℝ) := by\n  sorry\n\n-- Sanity checks\n\n/-- The `largestInducedTreeSize` is nonneg. -/\n@[category test, AMS 5]\nexample (G : SimpleGraph (Fin 3)) : 0 ≤ largestInducedTreeSize G := Nat.zero_le _\n\n/-- `eccSet G` returns a natural number (nonneg). -/\n@[category test, AMS 5]\nexample (G : SimpleGraph (Fin 3)) [DecidableRel G.Adj] :\n    0 ≤ eccSet G (maxEccentricityVertices G) :=\n  Nat.zero_le _\n\nend WrittenOnTheWallII.GraphConjecture142\n",
  "statement_hash": "607626b865c0215a8171e47a9c97f357690ec385f7b1fd1a847fba88b9805ced",
  "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."
}