{
  "id": "8738",
  "ident": "NS.08738",
  "slug": "wotw-graphconjecture65",
  "title": "Written on the Wall II - Conjecture 65",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "WOWII [Conjecture 65](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/):\n\nDoes every simple connected graph $G$ satisfy\n$f(G) \\ge \\operatorname{dist\\_min}(A) + \\lceil \\operatorname{dist\\_min}(M) / 3 \\rceil$,\nwhere $A$ is the set of minimum-degree vertices, $M$ is the set of maximum-degree vertices,\nand $\\operatorname{dist\\_min}(S)$ is the minimum distance between two distinct vertices of $S$\n(see `distMin`).\n\nThe answer is no. `Counterexample.graph` has a conjectured lower bound of $16$, but every\ninduced forest in it has at most $15$ vertices.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "question"
  ],
  "collection": "wotw",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "WrittenOnTheWallII.GraphConjecture65.conjecture65",
  "statement_lean": "theorem conjecture65 :\n    ¬ ∀ (α : Type) [Fintype α] [DecidableEq α] [Nontrivial α]\n      (G : SimpleGraph α) [DecidableRel G.Adj] (_hG : G.Connected),\n      let A : Set α := {v | G.degree v = G.minDegree}\n      let M : Set α := {v | G.degree v = G.maxDegree}\n      (distMin G A : ℝ) + ⌈(distMin G M : ℝ) / 3⌉ ≤\n        (G.largestInducedForestSize : ℝ)",
  "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 65\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## Counterexample\n\nThe conjecture is false. Start with the path $v_0-v_1-\\cdots-v_{12}$ and attach one\ntriangle at $v_1$ and another at $v_{11}$. The resulting graph has $17$ vertices.\nIts Graph_6 string is `PhCGGC@?G?_@?@O?G?G?G?@C`.\nIts only minimum-degree vertices are $v_0$ and $v_{12}$, at distance $12$, while its\nonly maximum-degree vertices are $v_1$ and $v_{11}$, at distance $10$. Thus the\nconjectured lower bound is $12 + \\lceil 10/3 \\rceil = 16$.\n\nEvery induced forest must omit at least one vertex from each of the two vertex-disjoint\ntriangles, so it has at most $15$ vertices. Conversely, deleting one non-path vertex\nfrom each triangle leaves a tree on $15$ vertices.\n-/\n\n@[expose] public section\n\nnamespace WrittenOnTheWallII.GraphConjecture65\n\nopen SimpleGraph Finset\n\n/- Synthesizing `∀ v, Fintype ↥(graph.neighborSet v)` on our 18-edges graph uses more than the\ndefault `synthInstance.maxSize` of 128 instances. That option bounds how many instances a solution\nmay use, not how long the search may take. Raising it is free -- synthesis costs ~13ms either way\nabout 1% of this file's elaboration time; the rest is `decide` and kernel type-checking. -/\nset_option synthInstance.maxSize 400\n\nnamespace Counterexample\n\n/-- The counterexample: a path on vertices $0,\\ldots,12$, with triangles attached at\nvertices $1$ and $11$. -/\nabbrev graph : SimpleGraph (Fin 17) :=\n  SimpleGraph.fromEdgeSet {\n    s(0, 1), s(1, 2), s(2, 3), s(3, 4), s(4, 5), s(5, 6),\n    s(6, 7), s(7, 8), s(8, 9), s(9, 10), s(10, 11), s(11, 12),\n    s(1, 13), s(1, 14), s(13, 14),\n    s(11, 15), s(11, 16), s(15, 16)\n  }\n\n/-- The counterexample is connected. -/\n@[category API, AMS 5]\nlemma connected : graph.Connected := by decide +kernel\n\n/-- The minimum-degree vertices of the counterexample are the two path endpoints. -/\n@[category API, AMS 5]\nlemma min_degree_vertices :\n    {v | graph.degree v = graph.minDegree} = ({0, 12} : Set (Fin 17)) := by\n  ext v\n  fin_cases v <;> decide\n\n/-- The maximum-degree vertices of the counterexample are the two triangle attachment points. -/\n@[category API, AMS 5]\nlemma max_degree_vertices :\n    {v | graph.degree v = graph.maxDegree} = ({1, 11} : Set (Fin 17)) := by\n  ext v\n  fin_cases v <;> decide\n\n/-- The minimum distance between minimum-degree vertices is $12$. -/\n@[category API, AMS 5]\nlemma distMin_min_degree_vertices : distMin graph ({0, 12} : Set (Fin 17)) = 12 := by\n  rw [show ({0, 12} : Set (Fin 17)) = ↑({0, 12} : Finset (Fin 17)) by simp,\n    distMin_eq_computableDistMin]\n  decide\n\n/-- The minimum distance between maximum-degree vertices is $10$. -/\n@[category API, AMS 5]\nlemma distMin_max_degree_vertices : distMin graph ({1, 11} : Set (Fin 17)) = 10 := by\n  rw [show ({1, 11} : Set (Fin 17)) = ↑({1, 11} : Finset (Fin 17)) by simp,\n    distMin_eq_computableDistMin]\n  decide\n\n/-- An acyclic induced subgraph cannot contain all three vertices of a triangle. -/\n@[category API, AMS 5]\nlemma triangle_not_subset_of_isAcyclic (S : Finset (Fin 17))\n    (hS : (graph.induce S).IsAcyclic) {a b c : Fin 17}\n    (hab : graph.Adj a b) (hbc : graph.Adj b c) (hca : graph.Adj c a) :\n    ¬({a, b, c} : Finset (Fin 17)) ⊆ S := by\n  intro hsub\n  have ha : a ∈ S := hsub (by simp)\n  have hb : b ∈ S := hsub (by simp)\n  have hc : c ∈ S := hsub (by simp)\n  let va : S := ⟨a, ha⟩\n  let vb : S := ⟨b, hb⟩\n  let vc : S := ⟨c, hc⟩\n  have hab' : (graph.induce S).Adj va vb := hab\n  have hbc' : (graph.induce S).Adj vb vc := hbc\n  have hca' : (graph.induce S).Adj vc va := hca\n  let cycle : (graph.induce S).Walk va va :=\n    .cons hab' (.cons hbc' (.cons hca' .nil))\n  exact hS cycle (by\n    rw [Walk.isCycle_def]\n    refine ⟨?_, by simp [cycle], ?_⟩\n    · rw [Walk.isTrail_def]\n      simp [cycle, va, vb, vc, hab.ne, hab.ne.symm, hbc.ne,\n        hca.ne, hca.ne.symm]\n    · simp [cycle, va, vb, vc, hab.ne.symm, hbc.ne, hca.ne])\n\n/-- Every induced forest in the counterexample has at most $15$ vertices. -/\n@[category API, AMS 5]\nlemma forest_card_le_fifteen (S : Finset (Fin 17)) (hS : (graph.induce S).IsAcyclic) :\n    S.card ≤ 15 := by\n  have hfirst : ¬({1, 13, 14} : Finset (Fin 17)) ⊆ S :=\n    triangle_not_subset_of_isAcyclic S hS (by decide) (by decide) (by decide)\n  have hsecond : ¬({11, 15, 16} : Finset (Fin 17)) ⊆ S :=\n    triangle_not_subset_of_isAcyclic S hS (by decide) (by decide) (by decide)\n  obtain ⟨x, hxT, hxS⟩ := Finset.not_subset.mp hfirst\n  obtain ⟨y, hyT, hyS⟩ := Finset.not_subset.mp hsecond\n  have hxy : x ≠ y := by\n    intro h\n    subst y\n    simp only [Finset.mem_insert, Finset.mem_singleton] at hxT hyT\n    rcases hxT with rfl | rfl | rfl <;> simp at hyT\n  have hsubset : ({x, y} : Finset (Fin 17)) ⊆ Finset.univ \\ S := by\n    intro z hz\n    simp only [Finset.mem_insert, Finset.mem_singleton] at hz\n    rcases hz with rfl | rfl <;> simp [hxS, hyS]\n  have hcard : 2 ≤ (Finset.univ \\ S).card := by\n    rw [← Finset.card_pair hxy]\n    exact Finset.card_le_card hsubset\n  have hpartition : (Finset.univ \\ S).card + S.card = 17 := by\n    simpa using Finset.card_sdiff_add_card_inter Finset.univ S\n  omega\n\n/-- The largest induced forest in the counterexample has at most $15$ vertices. -/\n@[category API, AMS 5]\nlemma largest_induced_forest_le_fifteen : graph.largestInducedForestSize ≤ 15 := by\n  unfold largestInducedForestSize\n  apply csSup_le\n  · refine ⟨0, ∅, ?_, rfl⟩\n    have : Subsingleton ↥(↑(∅ : Finset (Fin 17)) : Set (Fin 17)) :=\n      ⟨fun a _ => False.elim (by simpa using a.property)⟩\n    exact SimpleGraph.IsAcyclic.of_subsingleton\n  · rintro n ⟨S, hS, rfl⟩\n    exact forest_card_le_fifteen S hS\n\nend Counterexample\n\n/--\nWOWII [Conjecture 65](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/):\n\nDoes every simple connected graph $G$ satisfy\n$f(G) \\ge \\operatorname{dist\\_min}(A) + \\lceil \\operatorname{dist\\_min}(M) / 3 \\rceil$,\nwhere $A$ is the set of minimum-degree vertices, $M$ is the set of maximum-degree vertices,\nand $\\operatorname{dist\\_min}(S)$ is the minimum distance between two distinct vertices of $S$\n(see `distMin`).\n\nThe answer is no. `Counterexample.graph` has a conjectured lower bound of $16$, but every\ninduced forest in it has at most $15$ vertices.\n-/\n@[category research solved, question, AMS 5]\ntheorem conjecture65 :\n    ¬ ∀ (α : Type) [Fintype α] [DecidableEq α] [Nontrivial α]\n      (G : SimpleGraph α) [DecidableRel G.Adj] (_hG : G.Connected),\n      let A : Set α := {v | G.degree v = G.minDegree}\n      let M : Set α := {v | G.degree v = G.maxDegree}\n      (distMin G A : ℝ) + ⌈(distMin G M : ℝ) / 3⌉ ≤\n        (G.largestInducedForestSize : ℝ) := by\n  intro h\n  have hc := h (Fin 17) Counterexample.graph Counterexample.connected\n  dsimp only at hc\n  rw [Counterexample.min_degree_vertices, Counterexample.max_degree_vertices,\n    Counterexample.distMin_min_degree_vertices,\n    Counterexample.distMin_max_degree_vertices] at hc\n  have hf := Counterexample.largest_induced_forest_le_fifteen\n  norm_num at hc\n  exact (by omega : ¬(16 : ℕ) ≤ Counterexample.graph.largestInducedForestSize)\n    (by exact_mod_cast hc)\n\n-- Sanity checks\n\n/-- The `largestInducedForestSize` is nonneg. -/\n@[category test, AMS 5]\nexample (G : SimpleGraph (Fin 3)) : 0 ≤ G.largestInducedForestSize := Nat.zero_le _\n\n/-- In the complete graph `K₃`, min degree equals max degree (regular graph). -/\n@[category test, AMS 5]\nexample : (⊤ : SimpleGraph (Fin 3)).minDegree = (⊤ : SimpleGraph (Fin 3)).maxDegree := by\n  decide\n\n/-- `distMin G S` is always nonneg. -/\n@[category test, AMS 5]\nexample (G : SimpleGraph (Fin 3)) (S : Set (Fin 3)) : 0 ≤ distMin G S := Nat.zero_le _\n\n/-- In $K_2$, the minimum distance between its two vertices is $1$. -/\n@[category test, AMS 5]\nexample : distMin (⊤ : SimpleGraph (Fin 2)) ({0, 1} : Set (Fin 2)) = 1 := by\n  unfold distMin\n  dsimp only\n  split_ifs with h\n  · rw [Finset.min'_eq_iff]\n    constructor\n    · refine Finset.mem_image.mpr ⟨(0, 1), ?_, ?_⟩\n      · simp\n      · simp\n    · intro d hd\n      obtain ⟨p, hp, rfl⟩ := Finset.mem_image.mp hd\n      have hne : p.1 ≠ p.2 := (Finset.mem_filter.mp hp).2\n      simp [SimpleGraph.dist_top_of_ne hne]\n  · exfalso\n    apply h\n    exact ⟨(0, 1), by simp⟩\n\n/-- A singleton contains no distinct pair, so `distMin` uses its degenerate-case fallback. -/\n@[category test, AMS 5]\nexample : distMin (⊤ : SimpleGraph (Fin 3)) ({0} : Set (Fin 3)) = 0 := by\n  simp [distMin]\n\nend WrittenOnTheWallII.GraphConjecture65\n",
  "statement_hash": "76984ab03f28d98ba24882dc9a5193749d34f4fa6e9e65f2d35bf8b8d5a0679b",
  "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."
}