/- Copyright 2026 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -/ module public import FormalConjecturesUtil

Written on the Wall II - Conjecture 31

The WOWII page records this as Chung's theorem. This radius bound is proved in Section 2 of P. Erdős, M. Saks, and V. T. Sós, Maximum Induced Trees in Graphs, J. Combin. Theory Ser. B 41 (1986), 61–79; the authors credit Fan Chung for the proof. We state it here as a theorem; the formal proof is left as sorry pending a Lean port of the argument.

Here $\mathrm{path}(G)$ is the maximum number of vertices in an induced path, and $\mathrm{rad}(G)$ is the graph radius.

References:

@[expose] public sectionnamespace WrittenOnTheWallII.GraphConjecture31open SimpleGraphvariable {α : Type*} [Fintype α] [DecidableEq α] [Nontrivial α]

WOWII Conjecture 31 (Chung):

For every simple connected graph $G$, $\mathrm{path}(G) \ge 2 \cdot \mathrm{rad}(G) - 1$, where $\mathrm{path}(G)$ is the maximum number of vertices in an induced path and $\mathrm{rad}(G)$ is the graph radius.

@[category research solved, AMS 5, formal_proof using lean4 at "https://github.com/KitaKen1/wowii-graph-conjecture-31-lean/blob/a948e9fc07e11b786aee8dadb1376b4d938454d6/lean/GraphConjecture31.lean"] theorem conjecture31 (G : SimpleGraph α) [DecidableRel G.Adj] (h : G.Connected) : 2 * (G.radius.toNat : ) - 1 (path G : ) := α:Type u_1inst✝³:Fintype αinst✝²:DecidableEq αinst✝¹:Nontrivial αG:SimpleGraph αinst✝:DecidableRel G.Adjh:G.Connected2 * G.radius.toNat - 1 G.path All goals completed! 🐙-- Sanity checks

The path G invariant cast to ℤ is nonneg.

@[category test, AMS 5] example (G : SimpleGraph (Fin 3)) : 0 (path G : ) := Int.natCast_nonneg _

The radius cast to ℤ is nonneg.

@[category test, AMS 5] example (G : SimpleGraph (Fin 3)) : 0 (G.radius.toNat : ) := Int.natCast_nonneg _end WrittenOnTheWallII.GraphConjecture31