/- Copyright 2025 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 FormalConjecturesUtil

Written on the Wall II - Conjecture 34

Reference: E. DeLaVina, Written on the Wall II, Conjectures of Graffiti.pc

namespace WrittenOnTheWallII.GraphConjecture34 open Classical SimpleGraph variable {α : Type*} [Fintype α] [DecidableEq α] [Nontrivial α]

WOWII Conjecture 34

For a simple connected graph G, path(G) ≥ ⌈dist_avg(C, V) + dist_avg(M, V)⌉, where path(G) is the floor of the average distance of G, C is the set of center vertices (those with minimum eccentricity), M is the set of maximum-degree vertices, and dist_avg(S, V) is the average distance from all vertices to the set S.

@[category research solved, AMS 5] theorem declaration uses 'sorry'conjecture34 : answer(sorry) (α : Type) [Fintype α] [DecidableEq α] [Nontrivial α] (G : SimpleGraph α) [DecidableRel G.Adj] (h : G.Connected), let C : Set α := center G let M : Set α := {v | G.degree v = G.maxDegree} Int.ceil (distavg G C + distavg G M) (path G : ) := True (α : Type) [inst : Fintype α] [inst_1 : DecidableEq α] [Nontrivial α] (G : SimpleGraph α) [inst_3 : DecidableRel G.Adj], G.Connected let C := G.center; let M := {v | G.degree v = G.maxDegree}; G.distavg C + G.distavg M G.path All goals completed! 🐙 -- Sanity checks /-- The `path G` invariant is nonneg when cast to ℤ. -/ @[category test, AMS 5] example (G : SimpleGraph (Fin 3)) : 0 (path G : ) := Int.natCast_nonneg _ /-- The edgeless graph on 3 vertices has no edges. -/ @[category test, AMS 5] example : ( : SimpleGraph (Fin 3)).edgeFinset.card = 0 := α:Type u_1inst✝²:Fintype αinst✝¹:DecidableEq αinst✝:Nontrivial α.edgeFinset.card = 0 All goals completed! 🐙 end WrittenOnTheWallII.GraphConjecture34