/-
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.
-/
import FormalConjecturesUtilWritten on the Wall II - Conjecture 31
The WOWII page records this as Chung's theorem: proved in F. R. K. Chung,
The average distance and the independence number, J. Graph Theory 12 (1988),
229-235. We state it here as a theorem; the formal proof is left as sorry
pending a Lean port of Chung's argument.
Here $\mathrm{path}(G)$ is the floor of the average distance over ordered pairs
of distinct vertices (definition path in FormalConjecturesForMathlib), and
$\mathrm{rad}(G)$ is the graph radius.
Reference: E. DeLaVina, Written on the Wall II, Conjectures of Graffiti.pc
namespace WrittenOnTheWallII.GraphConjecture31open SimpleGraphvariable {α : Type*} [Fintype α] [DecidableEq α] [Nontrivial α]WOWII Conjecture 31 (Chung 1988):
For every simple connected graph $G$, $\mathrm{path}(G) \ge 2 \cdot \mathrm{rad}(G) - 1$, where $\mathrm{path}(G)$ is the floor of the average distance and $\mathrm{rad}(G)$ is the graph radius.
@[category research solved, AMS 5]
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.Connected⊢ 2 * ↑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