NS.08744 · Written on the Wall II - Conjecture 96 > s-exnq2k0ra2
s-exnq2k0ra2 · proof · against statement v1
Proof for Written on the Wall II - Conjecture 96
| Lean accepts it | yes | compiles under the pinned toolchain |
| Standard axioms | yes | propext, Classical.choice, Quot.sound only |
| Right theorem | yes | type identical to the reference, definitions unchanged |
| Faithful statement | yes | the reference statement has been reviewed |
Verification pipeline
Run #86 · verified · 24 Nov 2026, 11:26 UTC · Lean v4.33.1 · sandbox docker:nosorry-verifier:fc
- preflight — pass0.00 s
imports: FormalConjecturesUtil
- originality — pass0.01 s
no identical earlier submission
- compile reference statement — pass0.00 s
from cache
- compile submission — pass37.60 s
- statement & axioms — pass131.06 s
axioms: [propext, Quot.sound, Classical.choice]
- kernel replay — pass34.78 s
- comparator — skipped
not configured on this worker (COMPARATOR_BIN)
Explanation
Complete sorry-free formalization of Written on the Wall II — Conjecture 96 (wotw-graphconjecture96), following Jonas J. Gebendorfer (Oct 2026), Local independence along breadth-first layers: a proof of Written on the Wall II Conjecture 96:
For any finite connected simple graph
Gon at least two vertices,α(G) ≤ 1 + min_v distEven(v) · (max_u l(u) - 1).
Proof summary:
- Let
vminimizedistEven Gand letIbe a maximum independent set of sizeα(G). SinceNontrivial αandG.Connected,1 ≤ maxL. - If
maxL = 1, every two distinct vertices are adjacent (otherwise a shortest path of length≥ 2yields two nonadjacent neighbors of its second vertex), soGis complete andα(G) = 1 ≤ 1 + distEven(v) · 0. - If
maxL ≥ 2, partitionIintoIE := I ∩ EandIO := I \ EwhereEis the set of vertices at even distance fromv. Everyw ∈ IOhas an odd distance> 0tovand therefore a predecessorp(w)withG.Adj (p w) wandG.dist v (p w) + 1 = G.dist v w. SinceIis independent and distances drop by1,p(w) ∈ E \ IE. - For
u = v, the fiberC v = {w ∈ IO | p w = v}is an independent subset ofN(v)of size at mostmaxL. Foru ∈ E \ IEwithu ≠ v,uhas a predecessorqtowardv(G.dist v q + 1 = G.dist v u), andinsert q (C u)is an independent subset ofN(u)(now ∈ C ucan be adjacent toqby the triangle inequality), giving|C u| ≤ maxL - 1. - Summing fibers over
E \ IEgives|IO| ≤ 1 + |E \ IE| · (maxL - 1), and sincemaxL - 1 ≥ 1, adding|IE|yields|I| = |IE| + |IO| ≤ 1 + (|IE| + |E \ IE|) · (maxL - 1) = 1 + distEven(v) · (maxL - 1).
Verified locally with lake env lean W96.lean (0 errors, 0 warnings, standard axioms [propext, Classical.choice, Quot.sound]).
Declared prior work
Jonas J. Gebendorfer (Oct 2026), Local independence along breadth-first layers: a proof of Written on the Wall II Conjecture 96
Lean source
/-
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.
-/
module
public import FormalConjecturesUtil
/-!
# Written on the Wall II - Conjecture 96
**Verbatim statement (WOWII #96, status O):**
> If G is a simple connected graph, then α(G) ≤ 1 + minimum dist_even(v)*(maximum of λ(v) -1)
**Source:** http://cms.uhd.edu/faculty/delavinae/research/wowII/all.html#conj96
*Reference:*
[E. DeLaVina, Written on the Wall II, Conjectures of Graffiti.pc](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/)
-/
@[expose] public section
namespace WrittenOnTheWallII.GraphConjecture96
open SimpleGraph
variable {α : Type*} [Fintype α] [DecidableEq α] [Nontrivial α]
private lemma card_le_indepNeighborsCard {β : Type*} [Fintype β] [DecidableEq β]
(G : SimpleGraph β) (u : β) (S : Finset β)
(hN : ∀ w ∈ S, G.Adj u w) (hInd : G.IsIndepSet (S : Set β)) :
S.card ≤ indepNeighborsCard G u := by
classical
let S' : Finset (G.neighborSet u) :=
S.attach.map ⟨fun x => ⟨x.1, hN x.1 x.2⟩, fun a b hab => Subtype.ext (by
simpa using congrArg Subtype.val hab)⟩
have hInd' : (G.induce (G.neighborSet u)).IsIndepSet (S' : Set (G.neighborSet u)) := by
intro x hx y hy hxy hadj
simp only [Finset.mem_coe, S', Finset.mem_map, Finset.mem_attach, true_and,
Subtype.exists] at hx hy
rcases hx with ⟨x0, hx0, rfl⟩
rcases hy with ⟨y0, hy0, rfl⟩
exact hInd hx0 hy0 (fun h => hxy (Subtype.ext h)) hadj
simpa [S', indepNeighborsCard] using hInd'.card_le_indepNum
private lemma exists_adj_dist_pred {β : Type*} {G : SimpleGraph β} (h : G.Connected)
{v w : β} (hpos : 0 < G.dist v w) :
∃ p : β, G.Adj p w ∧ G.dist v p + 1 = G.dist v w := by
obtain ⟨q, hq⟩ := h.exists_walk_length_eq_dist w v
have hqpos : 0 < q.length := by rw [hq, G.dist_comm]; exact hpos
cases q with
| nil => simp at hqpos
| @cons _ p _ hadj rest =>
refine ⟨p, hadj.symm, ?_⟩
have h1 : G.dist v p ≤ rest.length := by
rw [G.dist_comm]
exact G.dist_le rest
have h2 : G.dist v w ≤ G.dist v p + 1 := by
calc G.dist v w ≤ G.dist v p + G.dist p w := h.dist_triangle
_ = G.dist v p + 1 := by rw [dist_eq_one_iff_adj.mpr hadj.symm]
have hlen : rest.length + 1 = G.dist v w := by
rw [G.dist_comm]; simpa [Walk.length_cons] using hq
omega
/--
WOWII [Conjecture 96](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/)
For a simple connected graph `G` on at least two vertices,
`α(G) ≤ 1 + min_v distEven(v) · (max_v l(v) - 1)`
where `α(G) = G.indepNum` is the independence number,
`distEven(v)` is the number of vertices at even distance from `v`, and
`max_v l(v)` is the maximum independence number of a vertex neighbourhood.
We record the nontrivial-graph version: the literal source inequality fails on $K_1$,
where the independence number and even-distance count are both one, but the maximum
local independence number is zero, giving $1 ≤ 0$.
-/
@[category research open, AMS 5]
theorem conjecture96 (G : SimpleGraph α) (h : G.Connected) :
let minDistEven := (Finset.univ.image (distEven G)).min' (by simp)
let maxL := (Finset.univ.image (fun v => indepNeighborsCard G v)).max' (by simp)
(G.indepNum : ℝ) ≤ 1 + (minDistEven : ℝ) * ((maxL : ℝ) - 1) := by
classical
let minDistEven := (Finset.univ.image (distEven G)).min' (by simp)
let maxL := (Finset.univ.image (fun v => indepNeighborsCard G v)).max' (by simp)
change (G.indepNum : ℝ) ≤ 1 + (minDistEven : ℝ) * ((maxL : ℝ) - 1)
have hmaxL_ge : ∀ u : α, indepNeighborsCard G u ≤ maxL := fun u =>
Finset.le_max' _ _ (Finset.mem_image_of_mem _ (Finset.mem_univ u))
have hmaxL1 : 1 ≤ maxL := by
obtain ⟨a, b, hab⟩ := exists_pair_ne α
have hpos : 0 < G.dist a b := (h a b).pos_dist_of_ne hab
obtain ⟨c, hac, _⟩ := exists_adj_dist_pred h hpos
have hInd_c : G.IsIndepSet (({c} : Finset α) : Set α) := by
simp [SimpleGraph.IsIndepSet]
have hc1 : 1 ≤ indepNeighborsCard G b := by
simpa using card_le_indepNeighborsCard G b {c}
(fun w hw => by rw [Finset.mem_singleton.mp hw]; exact hac.symm) hInd_c
exact le_trans hc1 (hmaxL_ge b)
have hmin_mem : minDistEven ∈ Finset.univ.image (distEven G) := Finset.min'_mem _ _
obtain ⟨v, -, hv⟩ := Finset.mem_image.mp hmin_mem
obtain ⟨I, ⟨hI, hI_card⟩⟩ := G.exists_isNIndepSet_indepNum
have h_nat : I.card ≤ 1 + distEven G v * (maxL - 1) := by
by_cases hmax1 : maxL = 1
· have hadj_all : ∀ x y : α, x ≠ y → G.Adj x y := by
intro x y hxy
by_contra hna
have hd0 : G.dist x y ≠ 0 := fun h0 => hxy (h.dist_eq_zero_iff.mp h0)
have hd1 : G.dist x y ≠ 1 := fun h1 => hna (dist_eq_one_iff_adj.mp h1)
obtain ⟨q, hq⟩ := h.exists_walk_length_eq_dist x y
cases q with
| nil => exact hd0 SimpleGraph.dist_self
| @cons _ z _ hxz rest =>
cases rest with
| nil => exact hd1 (dist_eq_one_iff_adj.mpr hxz)
| @cons _ w _ hzw tail =>
have hxne : x ≠ w := by
intro hxw
have hd : G.dist w y ≤ tail.length := G.dist_le tail
subst hxw
simp [Walk.length_cons] at hq
omega
have hnxw : ¬ G.Adj x w := by
intro hxw
have hd : G.dist x y ≤ (Walk.cons hxw tail).length := G.dist_le (Walk.cons hxw tail)
simp [Walk.length_cons] at hq hd
omega
have hInd_xw : G.IsIndepSet (({x, w} : Finset α) : Set α) := by
intro a ha b hb hab hadj
simp only [Finset.coe_insert, Finset.coe_singleton, Set.mem_insert_iff,
Set.mem_singleton_iff] at ha hb
rcases ha with rfl | rfl <;> rcases hb with rfl | rfl
· exact hab rfl
· exact hnxw hadj
· exact hnxw hadj.symm
· exact hab rfl
have hN_xw : ∀ u ∈ ({x, w} : Finset α), G.Adj z u := by
intro u hu
rcases Finset.mem_insert.mp hu with rfl | hu'
· exact hxz.symm
· rw [Finset.mem_singleton.mp hu']; exact hzw
have h2 := card_le_indepNeighborsCard G z {x, w} hN_xw hInd_xw
rw [Finset.card_pair hxne] at h2
have hzL := hmaxL_ge z
omega
have hI_le1 : I.card ≤ 1 := Finset.card_le_one.mpr fun a ha b hb => by
by_contra hab
exact hI ha hb hab (hadj_all a b hab)
omega
· have hmax2 : 2 ≤ maxL := by omega
let E : Finset α := Finset.univ.filter fun w => Even (G.dist v w)
let Ieven : Finset α := I ∩ E
let Iodd : Finset α := I \ E
have hE_card : distEven G v = E.card := rfl
have hI_split : I.card = Ieven.card + Iodd.card := (Finset.card_inter_add_card_sdiff I E).symm
have hE_split : E.card = (E \ Ieven).card + Ieven.card :=
(Finset.card_sdiff_add_card_eq_card Finset.inter_subset_right).symm
have hp_ex : ∀ w : α, w ∈ Iodd → ∃ p : α, G.Adj p w ∧ G.dist v p + 1 = G.dist v w := by
intro w hw
have hwE : ¬ Even (G.dist v w) := by
intro he
exact (Finset.mem_sdiff.mp hw).2 (Finset.mem_filter.mpr ⟨Finset.mem_univ w, he⟩)
have hpos : 0 < G.dist v w := by
by_contra h0
have hz : G.dist v w = 0 := by omega
exact hwE (hz ▸ Even.zero)
exact exists_adj_dist_pred h hpos
let p : α → α := fun w => if hw : w ∈ Iodd then (hp_ex w hw).choose else w
have hp_adj : ∀ w ∈ Iodd, G.Adj (p w) w := fun w hw => by
dsimp only [p]; rw [dif_pos hw]; exact (hp_ex w hw).choose_spec.1
have hp_dist : ∀ w ∈ Iodd, G.dist v (p w) + 1 = G.dist v w := fun w hw => by
dsimp only [p]; rw [dif_pos hw]; exact (hp_ex w hw).choose_spec.2
have hp_mem : ∀ w ∈ Iodd, p w ∈ E \ Ieven := by
intro w hw
have hwE : ¬ Even (G.dist v w) := fun he =>
(Finset.mem_sdiff.mp hw).2 (Finset.mem_filter.mpr ⟨Finset.mem_univ w, he⟩)
have hpw_even : Even (G.dist v (p w)) := by
rw [← hp_dist w hw, Nat.even_add_one] at hwE
exact not_not.mp hwE
refine Finset.mem_sdiff.mpr ⟨Finset.mem_filter.mpr ⟨Finset.mem_univ _, hpw_even⟩, ?_⟩
intro hpw_Ieven
have hpw_I : p w ∈ I := (Finset.mem_inter.mp hpw_Ieven).1
have hw_I : w ∈ I := (Finset.mem_sdiff.mp hw).1
exact hI hpw_I hw_I (hp_adj w hw).ne (hp_adj w hw)
let C : α → Finset α := fun u => Iodd.filter (fun w => p w = u)
have hIodd_sum : Iodd.card = ∑ u ∈ E \ Ieven, (C u).card :=
Finset.card_eq_sum_card_fiberwise (f := p) (fun w hw => hp_mem w hw)
have hCv : (C v).card ≤ maxL := by
have hN : ∀ w ∈ C v, G.Adj v w := fun w hw => by
obtain ⟨hwIodd, hpv⟩ := Finset.mem_filter.mp hw
rw [← hpv]
exact hp_adj w hwIodd
have hInd : G.IsIndepSet ((C v : Finset α) : Set α) := by
intro a ha b hb hab hadj
have haI : a ∈ I := (Finset.mem_sdiff.mp (Finset.mem_filter.mp ha).1).1
have hbI : b ∈ I := (Finset.mem_sdiff.mp (Finset.mem_filter.mp hb).1).1
exact hI haI hbI hab hadj
exact le_trans (card_le_indepNeighborsCard G v (C v) hN hInd) (hmaxL_ge v)
have hCu : ∀ u ∈ E \ Ieven, u ≠ v → (C u).card ≤ maxL - 1 := by
intro u hu huv
have hpos : 0 < G.dist v u := (h v u).pos_dist_of_ne huv.symm
obtain ⟨q, hqu, hqd⟩ := exists_adj_dist_pred h hpos
have hq_not : q ∉ C u := by
intro hqC
obtain ⟨hqIodd, hqp⟩ := Finset.mem_filter.mp hqC
have h1 := hp_dist q hqIodd
rw [hqp] at h1
omega
have hq_nadj : ∀ w ∈ C u, ¬ G.Adj q w := by
intro w hw hadj_qw
obtain ⟨hwIodd, hwp⟩ := Finset.mem_filter.mp hw
have h1 := hp_dist w hwIodd
rw [hwp] at h1
have h2 : G.dist v w ≤ G.dist v q + 1 := by
calc G.dist v w ≤ G.dist v q + G.dist q w := h.dist_triangle
_ = G.dist v q + 1 := by rw [dist_eq_one_iff_adj.mpr hadj_qw]
omega
have hN : ∀ w ∈ insert q (C u), G.Adj u w := by
intro w hw
rcases Finset.mem_insert.mp hw with rfl | hwC
· exact hqu.symm
· obtain ⟨hwIodd, hwp⟩ := Finset.mem_filter.mp hwC
rw [← hwp]; exact hp_adj w hwIodd
have hInd : G.IsIndepSet ((insert q (C u) : Finset α) : Set α) := by
intro a ha b hb hab hadj
simp only [Finset.coe_insert, Set.mem_insert_iff, Finset.mem_coe] at ha hb
rcases ha with rfl | haC <;> rcases hb with rfl | hbC
· exact hab rfl
· exact hq_nadj b hbC hadj
· exact hq_nadj a haC hadj.symm
· have haI : a ∈ I := (Finset.mem_sdiff.mp (Finset.mem_filter.mp haC).1).1
have hbI : b ∈ I := (Finset.mem_sdiff.mp (Finset.mem_filter.mp hbC).1).1
exact hI haI hbI hab hadj
have hcard_ins := card_le_indepNeighborsCard G u (insert q (C u)) hN hInd
rw [Finset.card_insert_of_notMem hq_not] at hcard_ins
have huL := hmaxL_ge u
omega
have hIodd_bound : Iodd.card ≤ 1 + (E \ Ieven).card * (maxL - 1) := by
rw [hIodd_sum]
by_cases hv_mem : v ∈ E \ Ieven
· have hsplit := (Finset.add_sum_erase (E \ Ieven) (fun u => (C u).card) hv_mem).symm
have hrest : ∑ u ∈ (E \ Ieven).erase v, (C u).card ≤ ((E \ Ieven).erase v).card * (maxL - 1) := by
calc ∑ u ∈ (E \ Ieven).erase v, (C u).card
≤ ∑ _u ∈ (E \ Ieven).erase v, (maxL - 1) := Finset.sum_le_sum fun u hu => by
have hu_mem := Finset.mem_erase.mp hu
exact hCu u hu_mem.2 hu_mem.1
_ = ((E \ Ieven).erase v).card * (maxL - 1) := by simp
rw [Finset.card_erase_of_mem hv_mem] at hrest
have hpos_card : 1 ≤ (E \ Ieven).card := Finset.card_pos.mpr ⟨v, hv_mem⟩
set m := (E \ Ieven).card - 1
have hm : (E \ Ieven).card = m + 1 := (Nat.sub_add_cancel hpos_card).symm
rw [hsplit, hm]
have : maxL + m * (maxL - 1) = 1 + (m + 1) * (maxL - 1) := by
have h1 := Nat.sub_add_cancel hmaxL1
nlinarith
omega
· have hrest : ∑ u ∈ E \ Ieven, (C u).card ≤ (E \ Ieven).card * (maxL - 1) := by
calc ∑ u ∈ E \ Ieven, (C u).card
≤ ∑ _u ∈ E \ Ieven, (maxL - 1) :=
Finset.sum_le_sum fun u hu => hCu u hu (fun huv => hv_mem (huv ▸ hu))
_ = (E \ Ieven).card * (maxL - 1) := by simp
omega
have hIeven_le : Ieven.card ≤ Ieven.card * (maxL - 1) := Nat.le_mul_of_pos_right _ (by omega)
have hmul : Ieven.card + (E \ Ieven).card * (maxL - 1) ≤ E.card * (maxL - 1) := by
calc Ieven.card + (E \ Ieven).card * (maxL - 1)
≤ Ieven.card * (maxL - 1) + (E \ Ieven).card * (maxL - 1) := Nat.add_le_add_right hIeven_le _
_ = (Ieven.card + (E \ Ieven).card) * (maxL - 1) := (Nat.add_mul _ _ _).symm
_ = E.card * (maxL - 1) := by rw [show Ieven.card + (E \ Ieven).card = E.card by omega]
rw [← hE_card] at hmul
omega
have h_real : (I.card : ℝ) ≤ ((1 + distEven G v * (maxL - 1) : ℕ) : ℝ) := by
exact_mod_cast h_nat
rw [hI_card, hv] at h_real
push_cast [Nat.cast_sub hmaxL1] at h_real
exact h_real
-- Sanity checks
/-- The independence number is nonneg. -/
@[category test, AMS 5]
example (G : SimpleGraph (Fin 3)) : 0 ≤ G.indepNum := Nat.zero_le _
/-- The independence number is nonneg. -/
@[category test, AMS 5]
example (G : SimpleGraph (Fin 3)) : 0 ≤ G.indepNum := Nat.zero_le _
end WrittenOnTheWallII.GraphConjecture96