Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

s-zg5h4dgpr5 · partial · against statement v1

Partial for Written on the Wall II - Conjecture 84

partialby testunknownsubmitted 24 Nov 2026, 03:24 UTCchecked 24 Nov 2026, 03:30 UTC
Lean accepts ityescompiles under the pinned toolchain
Standard axiomsnodepends on sorry (partial)
Right theoremyestype identical to the reference, definitions unchanged
Faithful statementyesthe reference statement has been reviewed

Open lemmas

This partial proof reduces WrittenOnTheWallII.GraphConjecture84.conjecture84 to: _private.src.Solution.0.WrittenOnTheWallII.GraphConjecture84.two_mul_radius_le_largestInducedTreeSize_of_cutVertex

Shared as intermediate lemmas: two_mul_radius_le_largestInducedTreeSize_of_cutVertex (proved)

Verification pipeline

Run #80 · partial · 24 Nov 2026, 03:26 UTC · Lean v4.33.1 · sandbox docker:nosorry-verifier:fc
  1. preflight — pass0.01 s
    imports: FormalConjecturesUtil
  2. originality — pass0.01 s
    no identical earlier submission
  3. compile reference statement — pass0.00 s
    from cache
  4. compile submission — pass41.91 s
  5. statement & axioms — pass172.33 s
    axioms: [propext, Quot.sound, Classical.choice, sorryAx]
    open lemmas: _private.src.Solution.0.WrittenOnTheWallII.GraphConjecture84.two_mul_radius_le_largestInducedTreeSize_of_cutVertex
  6. kernel replay — pass17.28 s
  7. comparator — skipped
    not configured on this worker (COMPARATOR_BIN)
Run #79 · abandoned (superseded by a later run) · 24 Nov 2026, 03:24 UTC · Lean v4.33.1 · sandbox docker:nosorry-verifier:fc
  1. preflight — pass0.00 s
    imports: FormalConjecturesUtil
  2. originality — pass0.01 s
    no identical earlier submission
  3. compile reference statement — pass0.00 s
    from cache
  4. compile submission — pass32.66 s
  5. statement & axioms — running

Explanation

Partial Lean 4 proof of Written on the Wall II – Conjecture 84

This submission reduces WrittenOnTheWallII.GraphConjecture84.conjecture84 (2 * G.radius.toNat / G.minDegree ≤ largestInducedTreeSize G) cleanly to a single cut-vertex lemma:

Proved without sorry

  1. Case δ(G)≥2\delta(G) \ge 2 (radius_toNat_add_one_le_largestInducedTreeSize): Taking any vertex u0u_0 and a vertex vv maximizing distance from u0u_0, we have rad⁡(G)≤ecc⁡(u0)=dist⁡(u0,v)\operatorname{rad}(G) \le \operatorname{ecc}(u_0) = \operatorname{dist}(u_0, v). A shortest path from u0u_0 to vv induces a tree on dist⁡(u0,v)+1≥rad⁡(G)+1\operatorname{dist}(u_0, v) + 1 \ge \operatorname{rad}(G) + 1 vertices, hence 2 rad⁡(G)≤δ(G)⋅(rad⁡(G)+1)≤δ(G)⋅tree⁡(G).2\,\operatorname{rad}(G) \le \delta(G) \cdot (\operatorname{rad}(G) + 1) \le \delta(G) \cdot \operatorname{tree}(G).
  2. Case δ(G)=1\delta(G) = 1, ∣V(G)∣=2|V(G)| = 2 (two_mul_radius_le_largestInducedTreeSize_of_card_eq_two): Every connected graph on 2 vertices is K2K_2, with rad⁡(K2)≤1\operatorname{rad}(K_2) \le 1 and tree⁡(K2)≥2≥2 rad⁡(K2)\operatorname{tree}(K_2) \ge 2 \ge 2\,\operatorname{rad}(K_2).
  3. Case δ(G)=1\delta(G) = 1, ∣V(G)∣≥3|V(G)| \ge 3 (exists_cutVertex_of_minDegree_eq_one): A vertex uu of degree 11 has a unique neighbor vv, and since ∣V(G)∣≥3|V(G)| \ge 3 there is a third vertex w∉{u,v}w \notin \{u, v\}, so vv separates uu from ww in G−vG - v (i.e. vv is a cut vertex).

Remaining sorry lemma

  • two_mul_radius_le_largestInducedTreeSize_of_cutVertex: if GG is connected and G−vG - v is disconnected, then 2 rad⁡(G)≤tree⁡(G)2\,\operatorname{rad}(G) \le \operatorname{tree}(G). This is the theorem proved in Jonas J. Gebendorfer ("Induced trees in graphs with a cut vertex: A proof of Written on the Wall II, Conjecture 84", October 2026).

Declared prior work

Jonas J. Gebendorfer (Oct 2026), Induced trees in graphs with a cut vertex: A proof of Written on the Wall II, Conjecture 84

Lean source

216 lines · 8.7 KB · click to show
/-
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 84

**Verbatim statement (WOWII #84, status O):**
> If G is a simple connected graph, then tree(G) ≥ 2 rad(G) / δ(G)

**Source:** http://cms.uhd.edu/faculty/delavinae/research/wowII/all.html#conj84

Here `δ(G)` is the **minimum degree** of `G` (lowercase delta in the WOWII
HTML, rendered as `<font face="Symbol">d</font>`), not the average distance.

*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.GraphConjecture84

open SimpleGraph

variable {α : Type*} [Fintype α] [DecidableEq α] [Nontrivial α]

private lemma radius_toNat_add_one_le_largestInducedTreeSize
    (G : SimpleGraph α) [DecidableRel G.Adj] (h : G.Connected) :
    G.radius.toNat + 1 ≤ largestInducedTreeSize G := by
  let u0 : α := Classical.choice inferInstance
  have hrad_le_ecc : G.radius.toNat ≤ computable_eccent G u0 := by
    have hle : G.radius ≤ G.eccent u0 := G.radius_le_eccent
    rw [radius_eq_computable G h, eccent_eq_computable G h u0] at hle
    have hle' : computable_radius G ≤ computable_eccent G u0 := by exact_mod_cast hle
    have hrad_eq : G.radius.toNat = computable_radius G := by
      rw [radius_eq_computable G h]
      rfl
    omega
  obtain ⟨v, -, hv⟩ := Finset.exists_mem_eq_sup Finset.univ Finset.univ_nonempty
    (fun v => computable_dist G u0 v)
  have hecc_eq : computable_eccent G u0 = G.dist u0 v := by
    have hv' : computable_eccent G u0 = computable_dist G u0 v := hv
    rw [hv', ← dist_eq_computable]
  obtain ⟨p, hp_path, hp_len⟩ := h.exists_path_of_dist u0 v
  have hT : (G.induce (p.support.toFinset : Set α)).IsTree :=
    Walk.induce_support_isTree_of_length_eq_dist p hp_len
  have hcard_le : p.support.toFinset.card ≤ largestInducedTreeSize G :=
    card_le_largestInducedTreeSize hT
  have hcard_eq : p.support.toFinset.card = p.length + 1 := by
    rw [List.toFinset_card_of_nodup hp_path.support_nodup, p.length_support]
  omega

private lemma two_mul_radius_le_largestInducedTreeSize_of_card_eq_two
    (G : SimpleGraph α) [DecidableRel G.Adj] (h : G.Connected) (hcard : Fintype.card α = 2) :
    2 * G.radius.toNat ≤ largestInducedTreeSize G := by
  obtain ⟨u, v, huv⟩ := exists_pair_ne α
  have huniv : (Finset.univ : Finset α) = {u, v} := by
    refine (Finset.eq_of_subset_of_card_le (Finset.subset_univ {u, v}) ?_).symm
    rw [Finset.card_univ, hcard, Finset.card_pair huv]
  have hadj : G.Adj u v := by
    obtain ⟨p⟩ := h u v
    cases p with
    | nil => exact (huv rfl).elim
    | @cons _ z _ huz _ =>
      have hz_mem : z ∈ ({u, v} : Finset α) := huniv ▸ Finset.mem_univ z
      rcases Finset.mem_insert.mp hz_mem with rfl | hz
      · exact (huz.ne rfl).elim
      · rw [Finset.mem_singleton.mp hz] at huz
        exact huz
  have hdist_le : ∀ x y : α, G.dist x y ≤ 1 := by
    intro x y
    by_cases hxy : x = y
    · subst hxy
      simp
    · have hx_mem : x ∈ ({u, v} : Finset α) := huniv ▸ Finset.mem_univ x
      have hy_mem : y ∈ ({u, v} : Finset α) := huniv ▸ Finset.mem_univ y
      have hadj_xy : G.Adj x y := by
        rcases Finset.mem_insert.mp hx_mem with rfl | hx <;>
          rcases Finset.mem_insert.mp hy_mem with rfl | hy
        · exact (hxy rfl).elim
        · rw [Finset.mem_singleton.mp hy]; exact hadj
        · rw [Finset.mem_singleton.mp hx]; exact hadj.symm
        · rw [Finset.mem_singleton.mp hx, Finset.mem_singleton.mp hy] at hxy
          exact (hxy rfl).elim
      exact (G.dist_le (Walk.cons hadj_xy Walk.nil)).trans (by simp)
  have hecc_le : computable_eccent G u ≤ 1 := by
    apply Finset.sup_le
    intro w _
    rw [← dist_eq_computable]
    exact hdist_le u w
  have hrad_le : G.radius.toNat ≤ 1 := by
    have hle : G.radius ≤ G.eccent u := G.radius_le_eccent
    rw [radius_eq_computable G h, eccent_eq_computable G h u] at hle
    have hle' : computable_radius G ≤ computable_eccent G u := by exact_mod_cast hle
    have hrad_eq : G.radius.toNat = computable_radius G := by
      rw [radius_eq_computable G h]
      rfl
    omega
  have hdist_uv : (Walk.cons hadj (Walk.nil : G.Walk v v)).length = G.dist u v := by
    have hpos : 0 < G.dist u v := (h u v).pos_dist_of_ne huv
    have h1 := hdist_le u v
    change 1 = G.dist u v
    omega
  have hT : (G.induce ((Walk.cons hadj (Walk.nil : G.Walk v v)).support.toFinset : Set α)).IsTree :=
    Walk.induce_support_isTree_of_length_eq_dist _ hdist_uv
  have hcard_le : (Walk.cons hadj (Walk.nil : G.Walk v v)).support.toFinset.card ≤
      largestInducedTreeSize G := card_le_largestInducedTreeSize hT
  have hsupp_eq : (Walk.cons hadj (Walk.nil : G.Walk v v)).support.toFinset = {u, v} := by
    ext x
    simp [Walk.support_cons, Walk.support_nil]
  have hcard2 : (Walk.cons hadj (Walk.nil : G.Walk v v)).support.toFinset.card = 2 := by
    rw [hsupp_eq, Finset.card_pair huv]
  omega

omit [DecidableEq α] in
private lemma exists_cutVertex_of_minDegree_eq_one
    (G : SimpleGraph α) [DecidableRel G.Adj] (hcard : 3 ≤ Fintype.card α)
    (hδ : G.minDegree = 1) :
    ∃ v : α, ¬ (G.induce ({v}ᶜ : Set α)).Connected := by
  classical
  obtain ⟨u, hu⟩ := G.exists_minimal_degree_vertex
  rw [hδ] at hu
  obtain ⟨v, huv, huniq⟩ := degree_eq_one_iff_existsUnique_adj.mp hu.symm
  have hwex : ∃ w : α, w ≠ u ∧ w ≠ v := by
    by_contra! hall
    have hsub : (Finset.univ : Finset α) ⊆ {u, v} := by
      intro x _
      by_cases hxu : x = u
      · simp [hxu]
      · simp [hall x hxu]
    have hle := Finset.card_le_card hsub
    rw [Finset.card_univ] at hle
    have h2 : ({u, v} : Finset α).card ≤ 2 := Finset.card_le_two
    omega
  obtain ⟨w, hwu, hvw⟩ := hwex
  refine ⟨v, fun hc => ?_⟩
  obtain ⟨q⟩ := hc ⟨u, by simp [huv.ne]⟩ ⟨w, by simp [hvw]⟩
  cases q with
  | nil => exact hwu rfl
  | @cons _ z _ hadj _ =>
    have hzv : z.1 = v := huniq z.1 hadj
    exact z.2 (by simp [hzv])

private lemma two_mul_radius_le_largestInducedTreeSize_of_cutVertex
    (G : SimpleGraph α) [DecidableRel G.Adj] (h : G.Connected)
    (v : α) (_hv : ¬ (G.induce ({v}ᶜ : Set α)).Connected) :
    2 * G.radius.toNat ≤ largestInducedTreeSize G := by
  sorry

/--
WOWII [Conjecture 84](http://cms.uhd.edu/faculty/delavinae/research/wowII/all.html#conj84)
(status O):

For a simple connected graph `G` with positive minimum degree,
`tree(G) ≥ 2 · rad(G) / δ(G)`,
where `tree(G)` is the number of vertices in a largest induced subtree,
`rad(G)` is the radius, and `δ(G) = G.minDegree` is the minimum degree.

The hypothesis `0 < G.minDegree` follows from connectedness on a nontrivial
vertex set, but is stated explicitly so the theorem reads as a real-valued
inequality without `x / 0` corner cases.
-/
@[category research open, AMS 5]
theorem conjecture84 (G : SimpleGraph α) [DecidableRel G.Adj]
    (h : G.Connected) (hδ : 0 < G.minDegree) :
    2 * (G.radius.toNat : ℝ) / (G.minDegree : ℝ) ≤ (largestInducedTreeSize G : ℝ) := by
  by_cases hδ1 : G.minDegree = 1
  · rw [hδ1]
    norm_num
    norm_cast
    have h2 : 2 ≤ Fintype.card α := Fintype.one_lt_card
    rcases Nat.eq_or_lt_of_le h2 with hcard2 | hcard3
    · exact two_mul_radius_le_largestInducedTreeSize_of_card_eq_two G h hcard2.symm
    · obtain ⟨v, hv⟩ := exists_cutVertex_of_minDegree_eq_one G hcard3 hδ1
      exact two_mul_radius_le_largestInducedTreeSize_of_cutVertex G h v hv
  · have hδ2 : 2 ≤ G.minDegree := by omega
    have htree : G.radius.toNat + 1 ≤ largestInducedTreeSize G :=
      radius_toNat_add_one_le_largestInducedTreeSize G h
    have hδ_pos : (0 : ℝ) < (G.minDegree : ℝ) := by exact_mod_cast hδ
    rw [div_le_iff₀ hδ_pos]
    have hδ2_real : (2 : ℝ) ≤ (G.minDegree : ℝ) := by exact_mod_cast hδ2
    have htree_real : (G.radius.toNat : ℝ) + 1 ≤ (largestInducedTreeSize G : ℝ) := by
      exact_mod_cast htree
    have hrad_nonneg : (0 : ℝ) ≤ (G.radius.toNat : ℝ) := Nat.cast_nonneg _
    nlinarith

-- Sanity checks

/-- The `largestInducedTreeSize` is nonneg. -/
@[category test, AMS 5]
example (G : SimpleGraph (Fin 3)) : 0 ≤ largestInducedTreeSize G := Nat.zero_le _

/-- The largest induced tree size is nonneg. -/
@[category test, AMS 5]
example (G : SimpleGraph (Fin 3)) : 0 ≤ (largestInducedTreeSize G : ℝ) :=
  Nat.cast_nonneg _

end WrittenOnTheWallII.GraphConjecture84