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

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

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

WOWII Conjecture 20

For a simple connected graph G, b(G) ≥ n(G) / ⌊deg_avg(G)⌋, where b(G) is the size of a largest induced bipartite subgraph, n(G) is the number of vertices, and deg_avg(G) = (∑ v, deg(v)) / n(G) is the average degree.

@[category research solved, AMS 5] theorem declaration uses 'sorry'conjecture20 (G : SimpleGraph α) [DecidableRel G.Adj] (h : G.Connected) : let deg_avg : := ( v : α, (G.degree v : )) / (Fintype.card α : ) (Fintype.card α : ) / (deg_avg : ) (b G : ) := α:Type u_1inst✝³:Fintype αinst✝²:DecidableEq αinst✝¹:Nontrivial αG:SimpleGraph αinst✝:DecidableRel G.Adjh:G.Connectedlet deg_avg := (∑ v, (G.degree v)) / (Fintype.card α); (Fintype.card α) / deg_avg G.b All goals completed! 🐙 -- Sanity checks /-- The number of vertices of `K₃` is 3. -/ @[category test, AMS 5] example : Fintype.card (Fin 3) = 3 := α:Type u_1inst✝²:Fintype αinst✝¹:DecidableEq αinst✝:Nontrivial αFintype.card (Fin 3) = 3 All goals completed! 🐙 /-- The average degree of `K₃` is 2 (every vertex has degree 2 in the complete graph on 3 vertices). -/ @[category test, AMS 5] example : averageDegree ( : SimpleGraph (Fin 3)) = 2 := α:Type u_1inst✝²:Fintype αinst✝¹:DecidableEq αinst✝:Nontrivial α.averageDegree = 2 α:Type u_1inst✝²:Fintype αinst✝¹:DecidableEq αinst✝:Nontrivial α(∑ v, (.degree v)) / (Fintype.card (Fin 3)) = 2; All goals completed! 🐙 end WrittenOnTheWallII.GraphConjecture20