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

Written on the Wall II - Conjecture 133

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

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

WOWII Conjecture 133:

For a simple connected graph $G$, $\operatorname{path}(G) \ge \operatorname{rad}(G) + \lfloor \mathrm{avg}_v, l(v) \rfloor^{cC_4(G)}$, where $\operatorname{path}(G)$ is the path number of the graph (number of vertices of a largest induced path), $\operatorname{rad}(G)$ is the radius (minimum eccentricity, as a natural number), $\mathrm{avg}_v, l(v) = l(G)$ is the average independence number of vertex neighbourhoods, and $cC_4(G)$ is the $C_4$-free characteristic function (1 if $G$ is $C_4$-free, not necessarily induced, and 0 otherwise).

We read DeLaVina's bracket notation [average of λ(v)] in the source as the floor (a standard Graffiti.pc convention), hence ⌊l G⌋ in Lean.

@[category research open, AMS 5] theorem declaration uses 'sorry'conjecture133 (G : SimpleGraph α) [DecidableRel G.Adj] (h : G.Connected) : let rad := G.radius.toNat let hasC4 := a b c d : α, a b a c a d b c b d c d G.Adj a b G.Adj b c G.Adj c d G.Adj d a let cC4 : := if hasC4 then 0 else 1 (rad : ) + (l G : ) ^ cC4 (path G : ) := α:Type u_1inst✝³:Fintype αinst✝²:DecidableEq αinst✝¹:Nontrivial αG:SimpleGraph αinst✝:DecidableRel G.Adjh:G.Connectedlet rad := G.radius.toNat; let hasC4 := a b c d, a b a c a d b c b d c d G.Adj a b G.Adj b c G.Adj c d G.Adj d a; let cC4 := if hasC4 then 0 else 1; rad + G.l ^ cC4 G.path All goals completed! 🐙 -- Sanity checks /-- The `path G` invariant is nonneg. -/ @[category test, AMS 5] example (G : SimpleGraph (Fin 3)) : 0 (path G : ) := Nat.cast_nonneg _ /-- `radius` toNat is nonneg. -/ @[category test, AMS 5] example (G : SimpleGraph (Fin 3)) : 0 G.radius.toNat := Nat.zero_le _ end WrittenOnTheWallII.GraphConjecture133