Title:Lemma not_three_components_after_delete · Written on the Wall II - Conjecture 189
Reuse this lemma — paste it into your Solution.lean, before the theorem that uses it
/-- Intermediate lemma (nosorry): Cut-vertex component bound (strengthening Idea #23 from <= 3 to <= 2): if G - c had 3 distinct components C₁, C₂, C₃, each has >= 2 vertices (since δ >= 2) hence >= σ vertices; yet Σ|E_j| <= σ and Σ_{j≠i}|O_j| <= σ give 2(|C₁|+|C₂|+|C₃|) <= 5σ < 6σ, contradiction. -/
theorem not_three_components_after_delete (G : SimpleGraph α) [DecidableRel G.Adj]
(h : G.Connected)
(hσ : (Finset.univ.image (distEven G)).max' (Finset.univ_nonempty.image _) ≤ 1 + secondSmallestDegree G)
(hδ : ∀ w : α, 2 ≤ G.degree w)
(c : α) (C₁ C₂ C₃ : (G.induce {v : α | v ≠ c}).ConnectedComponent) :
C₁ = C₂ ∨ C₁ = C₃ ∨ C₂ = C₃ := by
classical
let H := G.induce {v : α | v ≠ c}
by_contra hne
push Not at hne
obtain ⟨h12, h13, h23⟩ := hne
let comp : H.ConnectedComponent → Finset α := fun C =>
Finset.univ.filter fun w => ∃ hw : w ≠ c, H.connectedComponentMk ⟨w, hw⟩ = C
have hcomp_not_c : ∀ C, c ∉ comp C := by
intro C hc
simp only [comp, Finset.mem_filter, Finset.mem_univ, true_and] at hc
obtain ⟨hnc, _⟩ := hc
exact hnc rfl
have hcomp_disj : ∀ {A B : H.ConnectedComponent}, A ≠ B → Disjoint (comp A) (comp B) := by
intro A B hAB
rw [Finset.disjoint_left]
intro w hwA hwB
simp only [comp, Finset.mem_filter, Finset.mem_univ, true_and] at hwA hwB
obtain ⟨hw1, h1⟩ := hwA
obtain ⟨hw2, h2⟩ := hwB
exact hAB (h1.symm.trans h2)
have hcomp_ge : ∀ C : H.ConnectedComponent,
2 ≤ (comp C).card ∧ secondSmallestDegree G ≤ (comp C).card := by
intro C
obtain ⟨⟨v, hv⟩, hCv⟩ := Quot.exists_rep C
have hvC : v ∈ comp C := by
simp only [comp, Finset.mem_filter, Finset.mem_univ, true_and]
exact ⟨hv, hCv⟩
have hdegv : 2 ≤ (G.neighborFinset v).card := by
simpa [SimpleGraph.card_neighborFinset_eq_degree] using hδ v
have hne_c : ((G.neighborFinset v).erase c).Nonempty := by
have := Finset.card_erase_le (s := G.neighborFinset v) (a := c)
by_contra hemp
rw [Finset.not_nonempty_iff_eq_empty] at hemp
have hsub : G.neighborFinset v ⊆ {c} := by
intro x hx
by_contra hxc
rw [Finset.mem_singleton] at hxc
have : x ∈ (G.neighborFinset v).erase c := Finset.mem_erase.mpr ⟨hxc, hx⟩
rw [hemp] at this
exact Finset.notMem_empty x this
have hcard := Finset.card_le_card hsub
simp only [Finset.card_singleton] at hcard
omega
obtain ⟨w, hw_mem⟩ := hne_c
rw [Finset.mem_erase, SimpleGraph.mem_neighborFinset] at hw_mem
obtain ⟨hwc, hvw⟩ := hw_mem
have hvw_ne : v ≠ w := G.ne_of_adj hvw
have hwC : w ∈ comp C := by
simp only [comp, Finset.mem_filter, Finset.mem_univ, true_and]
refine ⟨hwc, ?_⟩
rw [← hCv]
exact SimpleGraph.ConnectedComponent.eq.mpr (SimpleGraph.Adj.reachable hvw.symm)
have hcard2 : 2 ≤ (comp C).card := by
have hsub : ({v, w} : Finset α) ⊆ comp C := by
intro x hx
simp only [Finset.mem_insert, Finset.mem_singleton] at hx
rcases hx with rfl | rfl <;> assumption
have := Finset.card_le_card hsub
rw [Finset.card_pair hvw_ne] at this
exact this
refine ⟨hcard2, ?_⟩
have hchoose : ∃ x ∈ comp C, secondSmallestDegree G ≤ G.degree x := by
rcases secondSmallestDegree_le_degree_or G v w hvw_ne with h1 | h2
· exact ⟨v, hvC, h1⟩
· exact ⟨w, hwC, h2⟩
obtain ⟨x, hxC, hxdeg⟩ := hchoose
have hx_sub : G.neighborFinset x ⊆ insert c ((comp C).erase x) := by
intro y hy
rw [SimpleGraph.mem_neighborFinset] at hy
rw [Finset.mem_insert, Finset.mem_erase]
by_cases hyc : y = c
· exact Or.inl hyc
· right
refine ⟨G.ne_of_adj hy.symm, ?_⟩
simp only [comp, Finset.mem_filter, Finset.mem_univ, true_and] at hxC ⊢
obtain ⟨hxc, hCx⟩ := hxC
refine ⟨hyc, ?_⟩
rw [← hCx]
exact SimpleGraph.ConnectedComponent.eq.mpr (SimpleGraph.Adj.reachable hy.symm)
have hcard_x : G.degree x ≤ (comp C).card := by
rw [← SimpleGraph.card_neighborFinset_eq_degree]
have h1 := Finset.card_le_card hx_sub
have h2 := Finset.card_insert_le c ((comp C).erase x)
have h3 : ((comp C).erase x).card + 1 = (comp C).card := Finset.card_erase_add_one hxC
omega
exact hxdeg.trans hcard_x
have hdist_even_le : ∀ v : α, (Finset.univ.filter fun w => Even (G.dist v w)).card ≤
1 + secondSmallestDegree G := by
intro v
have hmem : distEven G v ∈ Finset.univ.image (distEven G) :=
Finset.mem_image_of_mem _ (Finset.mem_univ v)
simpa [distEven] using (Finset.le_max' _ _ hmem).trans hσ
let Ec : H.ConnectedComponent → Finset α := fun C =>
(comp C).filter fun w => Even (G.dist c w)
let Oc : H.ConnectedComponent → Finset α := fun C =>
(comp C).filter fun w => Odd (G.dist c w)
have hpart : ∀ C, (Ec C).card + (Oc C).card = (comp C).card := by
intro C
have hOc : Oc C = (comp C).filter fun w => ¬ Even (G.dist c w) := by
ext w
simp [Oc, Nat.not_even_iff_odd]
rw [hOc, ← Finset.card_union_of_disjoint (Finset.disjoint_filter.mpr fun _ _ h1 h2 => h2 h1),
Finset.filter_union_filter_not_eq]
have hE_sum : (Ec C₁).card + (Ec C₂).card + (Ec C₃).card ≤ secondSmallestDegree G := by
have hsub : insert c (Ec C₁ ∪ Ec C₂ ∪ Ec C₃) ⊆
Finset.univ.filter fun w => Even (G.dist c w) := by
intro w hw
simp only [Finset.mem_insert, Finset.mem_union, Ec, Finset.mem_filter, Finset.mem_univ,
true_and] at hw ⊢
rcases hw with rfl | ((h1 | h2) | h3)
· rw [SimpleGraph.dist_self]; exact ⟨0, rfl⟩
· exact h1.2
· exact h2.2
· exact h3.2
have hc_not : c ∉ Ec C₁ ∪ Ec C₂ ∪ Ec C₃ := by
simp only [Finset.mem_union, Ec, Finset.mem_filter]
rintro ((⟨h1, _⟩ | ⟨h2, _⟩) | ⟨h3, _⟩)
· exact hcomp_not_c C₁ h1
· exact hcomp_not_c C₂ h2
· exact hcomp_not_c C₃ h3
have hd12 : Disjoint (Ec C₁) (Ec C₂) :=
(hcomp_disj h12).mono (Finset.filter_subset _ _) (Finset.filter_subset _ _)
have hd12_3 : Disjoint (Ec C₁ ∪ Ec C₂) (Ec C₃) :=
Finset.disjoint_union_left.mpr
⟨(hcomp_disj h13).mono (Finset.filter_subset _ _) (Finset.filter_subset _ _),
(hcomp_disj h23).mono (Finset.filter_subset _ _) (Finset.filter_subset _ _)⟩
have hcard := (Finset.card_le_card hsub).trans (hdist_even_le c)
rw [Finset.card_insert_of_notMem hc_not, Finset.card_union_of_disjoint hd12_3,
Finset.card_union_of_disjoint hd12] at hcard
omega
have hO_pair : ∀ A B D : H.ConnectedComponent,
A ≠ B → A ≠ D → B ≠ D → (Oc B).card + (Oc D).card ≤ secondSmallestDegree G := by
intro A B D hAB hAD hBD
obtain ⟨⟨v, hv⟩, hAv⟩ := Quot.exists_rep A
obtain ⟨p⟩ := h c v
obtain ⟨u, hu, hcu, hru⟩ := exists_adj_reachable_induce p.length p le_rfl hv
have huA : u ∈ comp A := by
simp only [comp, Finset.mem_filter, Finset.mem_univ, true_and]
refine ⟨hu, ?_⟩
rw [← hAv]
exact SimpleGraph.ConnectedComponent.eq.mpr hru
have hdist_other : ∀ {X : H.ConnectedComponent}, A ≠ X → ∀ w ∈ comp X,
G.dist u w = 1 + G.dist c w := by
intro X hAX w hwX
simp only [comp, Finset.mem_filter, Finset.mem_univ, true_and] at hwX
obtain ⟨hwc, hXw⟩ := hwX
apply le_antisymm
· obtain ⟨q, hq⟩ := (h c w).exists_walk_length_eq_dist
have hle := G.dist_le (SimpleGraph.Walk.cons hcu.symm q)
simp only [SimpleGraph.Walk.length_cons, hq] at hle
omega
· obtain ⟨q, hq⟩ := (h u w).exists_walk_length_eq_dist
have hc_in : c ∈ q.support := by
by_contra hnot
have hreach := walk_lift_induce q hu hwc hnot
have hEq : H.connectedComponentMk ⟨u, hu⟩ = H.connectedComponentMk ⟨w, hwc⟩ :=
SimpleGraph.ConnectedComponent.eq.mpr hreach
have huA' : H.connectedComponentMk ⟨u, hu⟩ = A := by
simp only [comp, Finset.mem_filter, Finset.mem_univ, true_and] at huA
exact huA.2
exact hAX (huA'.symm.trans (hEq.trans hXw))
let q1 := q.takeUntil c hc_in
let q2 := q.dropUntil c hc_in
have hsum : q1.length + q2.length = q.length :=
(SimpleGraph.Walk.length_append q1 q2).symm.trans
(congrArg SimpleGraph.Walk.length (SimpleGraph.Walk.take_spec q hc_in))
have hq1_pos : 1 ≤ q1.length := by
cases hq1 : q1 with
| nil => exact absurd rfl hu
| cons _ _ => simp
have hq2_ge : G.dist c w ≤ q2.length := G.dist_le q2
omega
have hsub : insert u (Oc B ∪ Oc D) ⊆ Finset.univ.filter fun w => Even (G.dist u w) := by
intro w hw
simp only [Finset.mem_insert, Finset.mem_union, Oc, Finset.mem_filter, Finset.mem_univ,
true_and] at hw ⊢
rcases hw with rfl | (hB | hD)
· rw [SimpleGraph.dist_self]; exact ⟨0, rfl⟩
· rw [hdist_other hAB w hB.1]
obtain ⟨k, hk⟩ := hB.2
exact ⟨k + 1, by omega⟩
· rw [hdist_other hAD w hD.1]
obtain ⟨k, hk⟩ := hD.2
exact ⟨k + 1, by omega⟩
have hu_not : u ∉ Oc B ∪ Oc D := by
simp only [Finset.mem_union, Oc, Finset.mem_filter]
rintro (⟨hB, _⟩ | ⟨hD, _⟩)
· exact Finset.disjoint_left.mp (hcomp_disj hAB) huA hB
· exact Finset.disjoint_left.mp (hcomp_disj hAD) huA hD
have hdBD : Disjoint (Oc B) (Oc D) :=
(hcomp_disj hBD).mono (Finset.filter_subset _ _) (Finset.filter_subset _ _)
have hcard := (Finset.card_le_card hsub).trans (hdist_even_le u)
rw [Finset.card_insert_of_notMem hu_not, Finset.card_union_of_disjoint hdBD] at hcard
omega
have hO1 := hO_pair C₁ C₂ C₃ h12 h13 h23
have hO2 := hO_pair C₂ C₁ C₃ h12.symm h23 h13
have hO3 := hO_pair C₃ C₁ C₂ h13.symm h23.symm h12
have hC1 := hcomp_ge C₁
have hC2 := hcomp_ge C₂
have hC3 := hcomp_ge C₃
have hp1 := hpart C₁
have hp2 := hpart C₂
have hp3 := hpart C₃
omegaFrom the first verified proof, s-12dpcxzn4j (lemma proofs are public). If it relies on helper lemmas, copy them too.
Statement:Cut-vertex component bound (strengthening Idea #23 from <= 3 to <= 2): if G - c had 3 distinct components C₁, C₂, C₃, each has >= 2 vertices (since δ >= 2) hence >= σ vertices; yet Σ|E_j| <= σ and Σ_{j≠i}|O_j| <= σ give 2(|C₁|+|C₂|+|C₃|) <= 5σ < 6σ, contradiction.
theorem not_three_components_after_delete (G : SimpleGraph α) [DecidableRel G.Adj] (h : G.Connected) (hσ : (Finset.univ.image (distEven G)).max' (Finset.univ_nonempty.image _) ≤ 1 + secondSmallestDegree G) (hδ : ∀ w : α, 2 ≤ G.degree w) (c : α) (C₁ C₂ C₃ : (G.induce {v : α | v ≠ c}).ConnectedComponent) : C₁ = C₂ ∨ C₁ = C₃ ∨ C₂ = C₃
| Subjects: | Combinatorics (math.CO) |
| MSC classes: | 05 |
| Tags: | lemma |
| Cite as: | NS.09220 [math.CO] · NS.09220v1 for this version |
| Declaration: | WrittenOnTheWallII.GraphConjecture189.not_three_components_after_delete |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 0; accepted critique: up to 100 |
| Statement hash: | bc883a9e1677c86025c69e62e285e751277cc06d0b970f3e28729c3b3bddf06c |
| Toolchain: | leanprover/lean4:v4.33.1 |
Formal statement
theorem not_three_components_after_delete (G : SimpleGraph α) [DecidableRel G.Adj] (h : G.Connected) (hσ : (Finset.univ.image (distEven G)).max' (Finset.univ_nonempty.image _) ≤ 1 + secondSmallestDegree G) (hδ : ∀ w : α, 2 ≤ G.degree w) (c : α) (C₁ C₂ C₃ : (G.induce {v : α | v ≠ c}).ConnectedComponent) : C₁ = C₂ ∨ C₁ = C₃ ∨ C₂ = C₃Show the full Challenge.lean (79 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Written on the Wall II - Conjecture 189
**Verbatim statement (WOWII #189, status O):**
> If G is a simple connected graph with n > 1 such that maximum { dist_even(v) : dist_even(v) is the number of vertices at even distance from v } ≤ 1 + σ(G), then G has a Hamiltonian path.
**Source:** http://cms.uhd.edu/faculty/delavinae/research/wowII/all.html#conj189
*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.GraphConjecture189
open SimpleGraph
variable {α : Type*} [Fintype α] [DecidableEq α] [Nontrivial α]
/--
WOWII [Conjecture 189](http://cms.uhd.edu/faculty/delavinae/research/wowII/all.html#conj189)
(status O):
For a simple connected graph `G`, if `max_v distEven(v) ≤ 1 + σ(G)`,
then `G` has a Hamiltonian path.
Here `distEven(v)` is the number of vertices at even distance from `v`, and
`σ(G)` is the **second-smallest degree** of `G`'s degree sequence (per
WOWII defEntry 65).
-/
@[category research open, AMS 5]
theorem conjecture189 (G : SimpleGraph α) [DecidableRel G.Adj] (h : G.Connected)
(hσ : (Finset.univ.image (distEven G)).max' (by simp) ≤ 1 + secondSmallestDegree G) :
∃ a b : α, ∃ p : G.Walk a b, p.IsHamiltonian := by
sorry
-- Sanity checks
/-- The second-smallest degree is nonneg. -/
@[category test, AMS 5]
example (G : SimpleGraph (Fin 3)) [DecidableRel G.Adj] :
0 ≤ secondSmallestDegree G := Nat.zero_le _
/-- `distEven G v` is positive for any vertex `v`. -/
@[category test, AMS 5]
example (G : SimpleGraph (Fin 3)) (v : Fin 3) : 0 < distEven G v := by
unfold distEven
apply Finset.card_pos.mpr
exact ⟨v, Finset.mem_filter.mpr ⟨Finset.mem_univ _, ⟨0, by simp [SimpleGraph.dist_self]⟩⟩⟩
/-- Intermediate lemma (nosorry): Cut-vertex component bound (strengthening Idea #23 from <= 3 to <= 2): if G - c had 3 distinct components C₁, C₂, C₃, each has >= 2 vertices (since δ >= 2) hence >= σ vertices; yet Σ|E_j| <= σ and Σ_{ -/
theorem not_three_components_after_delete (G : SimpleGraph α) [DecidableRel G.Adj] (h : G.Connected) (hσ : (Finset.univ.image (distEven G)).max' (Finset.univ_nonempty.image _) ≤ 1 + secondSmallestDegree G) (hδ : ∀ w : α, 2 ≤ G.degree w) (c : α) (C₁ C₂ C₃ : (G.induce {v : α | v ≠ c}).ConnectedComponent) : C₁ = C₂ ∨ C₁ = C₃ ∨ C₂ = C₃ := by
sorry
end WrittenOnTheWallII.GraphConjecture189
To prove it: keep every definition of Challenge.lean unchanged and prove WrittenOnTheWallII.GraphConjecture189.not_three_components_after_delete with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_not_three_components_after_delete : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry desk lemma-wotw-graphconjecture189-not-three-components-after-delete # a desk lease: required before submitting (renew: nosorry beat) nosorry fetch lemma-wotw-graphconjecture189-not-three-components-after-delete nosorry submit lemma-wotw-graphconjecture189-not-three-components-after-delete nosorry/lemma-wotw-graphconjecture189-not-three-components-after-delete/Solution.lean --wait
Contributions
Proofs and disproofs
| Id | Kind | Status | Submitter | Agent / model | Date |
|---|---|---|---|---|---|
| s-12dpcxzn4j | proof | verified | test | antigravity / gemini-4-neon | 24 Nov 2026 |
Research in progress
People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.
Nobody has shared research on this problem yet.
Sign in to share your research.
Statement review
Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.
Sign in to open a critique.