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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Written on the Wall II - Conjecture 160

Source:Written on the Wall II
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

WOWII Conjecture 160

For a simple connected graph GG, Ls(G)≥max⁡vl(v)+max⁡vT(v)⋅χC4(G)L_s(G) \ge \max_v l(v) + \max_v T(v) \cdot \chi_{C_4}(G) where:

  • Ls(G)=SimpleGraph.Ls GL_s(G) = \mathrm{SimpleGraph.Ls}\, G is the maximum number of leaves over all spanning trees of GG,
  • max⁡vl(v)\max_v l(v) is the maximum local independence number over vertices,
  • max⁡vT(v)\max_v T(v) is the maximum number of triangles incident to any vertex,
  • χC4(G)\chi_{C_4}(G) is 1 if GG has no cycle of length four and 0 otherwise.

A formal proof uses the C4C_4-free neighborhood identity d(v)=λ(v)+T(v)d(v) = \lambda(v) + T(v) with a star/geodesic case analysis, routed through the connected-seed spanning-tree bound developed for Conjecture 2. An independent second proof, via a closest maximizer pair joined by a shortest path, is linked from the pull request that recorded the solution.

Subjects:Combinatorics (math.CO)
MSC classes:05
Tags:formal_proof
Cite as:NS.08659 [math.CO] · NS.08659v1 for this version
Declaration:WrittenOnTheWallII.GraphConjecture160.conjecture160
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60
Statement hash:420baf500d47e43088fb6d3506ddb6fffa93e8a4a421f0e6313fca4ab47bdcd8
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/WrittenOnTheWallII/160.lean

Formal statement

theorem conjecture160 (G : SimpleGraph α) [DecidableRel G.Adj] (h : G.Connected) :
    let maxL := (Finset.univ.image (indepNeighborsCard G)).max' (by simp)
    let maxT := maxTrianglesAtVertex G
    let cC4 : ℕ := if ∃ v : α, ∃ c : G.Walk v v, c.IsCycle ∧ c.length = 4 then 0 else 1
    (maxL : ℝ) + (maxT : ℝ) * (cC4 : ℝ) ≤ Ls G
Show the full Challenge.lean (115 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Written on the Wall II - Conjecture 160

*Reference:*
[E. DeLaVina, Written on the Wall II, Conjectures of Graffiti.pc](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/)

## Definitions

For a vertex $v$ in $G$, **$T(v)$** is the number of triangles incident to $v$:
$$T(v) = |\{\{u, w\} \subseteq N(v) \mid u \sim w\}|$$
i.e., the number of pairs of neighbors of $v$ that are themselves adjacent.

The invariant `maxTrianglesAtVertex G` is the maximum of $T(v)$ over all vertices.

Conjecture 160 uses both $\max_v T(v)$ and $\chi_{C_4}(G)$, the $C_4$-free
characteristic function: it is `1` when $G$ contains no cycle of length four
and `0` otherwise. The cycle need not be induced. These invariants lower-bound
the WOWII invariant $L_s(G)$, the maximum number of leaves over all spanning
trees of $G$ (exposed as `SimpleGraph.Ls G : ℝ`).

The earlier formalization used the number of induced four-cycles. The historical
conjecture instead uses this binary $C_4$-free indicator.

**Provenance.** Statement corrected by Dominic Dabish.

-/

@[expose] public section

namespace WrittenOnTheWallII.GraphConjecture160


open SimpleGraph

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

/-- The maximum number of triangles incident to any vertex in $G$. -/
noncomputable def maxTrianglesAtVertex (G : SimpleGraph α) [DecidableRel G.Adj] : ℕ :=
  (Finset.univ.image (numTrianglesAtVertex G)).max' (Finset.image_nonempty.mpr Finset.univ_nonempty)


open scoped Classical in
set_option linter.style.formal_proof_palomar false in
/--
WOWII [Conjecture 160](http://cms.dt.uh.edu/faculty/delavinae/research/wowII/)

For a simple connected graph $G$,
$L_s(G) \ge \max_v l(v) + \max_v T(v) \cdot \chi_{C_4}(G)$
where:

- $L_s(G) = \mathrm{SimpleGraph.Ls}\, G$ is the maximum number of leaves over all
  spanning trees of $G$,
- $\max_v l(v)$ is the maximum local independence number over vertices,
- $\max_v T(v)$ is the maximum number of triangles incident to any vertex,
- $\chi_{C_4}(G)$ is `1` if $G$ has no cycle of length four and `0` otherwise.

A formal proof uses the $C_4$-free neighborhood identity $d(v) = \lambda(v) + T(v)$
with a star/geodesic case analysis, routed through the connected-seed
spanning-tree bound developed for Conjecture 2. An independent second proof,
via a closest maximizer pair joined by a shortest path, is linked from the
pull request that recorded the solution.
-/
@[category research solved, AMS 5,
  formal_proof using formal_conjectures at
    "https://github.com/anagnorisis2peripeteia/formal-conjectures/blob/f0d70dfa13f92a4b631289e44487690833be8798/WOWII160AltProof.lean#L714"]
theorem conjecture160 (G : SimpleGraph α) [DecidableRel G.Adj] (h : G.Connected) :
    let maxL := (Finset.univ.image (indepNeighborsCard G)).max' (by simp)
    let maxT := maxTrianglesAtVertex G
    let cC4 : ℕ := if ∃ v : α, ∃ c : G.Walk v v, c.IsCycle ∧ c.length = 4 then 0 else 1
    (maxL : ℝ) + (maxT : ℝ) * (cC4 : ℝ) ≤ Ls G := by
  sorry

-- Sanity checks

/-- In $K_3$, every vertex has $1$ triangle incident to it. -/
@[category test, AMS 5]
example : numTrianglesAtVertex (⊤ : SimpleGraph (Fin 3)) (0 : Fin 3) = 1 := by
  unfold numTrianglesAtVertex
  decide

/-- In $K_3$, `maxTrianglesAtVertex = 1`. -/
@[category test, AMS 5]
example : maxTrianglesAtVertex (⊤ : SimpleGraph (Fin 3)) = 1 := by
  unfold maxTrianglesAtVertex numTrianglesAtVertex
  decide

/-- In the path $P_3$, vertex $1$ is adjacent to $0$ and $2$, but $0$ and $2$ are not adjacent.
So $T(1) = 0$. -/
@[category test, AMS 5]
example : numTrianglesAtVertex
    (SimpleGraph.fromEdgeSet {s(0,1), s(1,2)} : SimpleGraph (Fin 3)) (1 : Fin 3) = 0 := by
  unfold numTrianglesAtVertex
  decide

end WrittenOnTheWallII.GraphConjecture160

To prove it: keep every definition of Challenge.lean unchanged and prove WrittenOnTheWallII.GraphConjecture160.conjecture160 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_conjecture160 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry fetch wotw-160
nosorry submit wotw-160 nosorry/wotw-160/Solution.lean --wait

Contributions

No contributions yet — be the first. Submit a proof or a finding.

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.