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 217

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 217:

If GG is a finite simple connected graph on n>1n > 1 vertices and Ls(G)≤4⋅χresidue=2(G)+2L_s(G) \le 4 \cdot \chi_{\mathrm{residue}=2}(G) + 2, then GG has a Hamiltonian path. Here Ls(G)L_s(G) is the maximum number of leaves over all spanning trees and χresidue=2(G)\chi_{\mathrm{residue}=2}(G) is the indicator of residue(G)=2\mathrm{residue}(G) = 2.

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

Formal statement

theorem conjecture217 (G : SimpleGraph α) [DecidableRel G.Adj] (h : G.Connected)
    (hL : Ls G ≤ 4 * (residueEqTwoIndicator G : ℝ) + 2) :
    ∃ a b : α, ∃ p : G.Walk a b, p.IsHamiltonian
Show the full Challenge.lean (85 lines) — definitions included
module

public import FormalConjecturesUtil

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

Per the WOWII definitions popup linked from this conjecture:

- $L(G)$ is the **maximum number of leaves of a spanning tree** of $G$
  — i.e. `Ls G` in our invariant library.
- $\chi_{\mathrm{residue}=2}(G)$ is the **characteristic function** for the
  predicate $\mathrm{residue}\, G = 2$, i.e. $1$ when $\mathrm{residue}\, G = 2$
  and $0$ otherwise. It is not a connected-component count of any 2-core.

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

open SimpleGraph

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

/-- The **characteristic function** for the predicate $\mathrm{residue}\, G = 2$:
returns $1$ when $G.\mathrm{residue} = 2$ and $0$ otherwise. This is the WOWII
$\chi_{\mathrm{residue}=2}(G)$ indicator appearing in Conjecture 217. -/
noncomputable def residueEqTwoIndicator (G : SimpleGraph α) [DecidableRel G.Adj] : ℕ :=
  if residue G = 2 then 1 else 0

set_option linter.style.formal_proof_palomar false in
/--
WOWII [Conjecture 217](http://cms.uhd.edu/faculty/delavinae/research/wowII/all.html#conj217):

If $G$ is a finite simple connected graph on $n > 1$ vertices and
$L_s(G) \le 4 \cdot \chi_{\mathrm{residue}=2}(G) + 2$,
then $G$ has a Hamiltonian path. Here $L_s(G)$ is the maximum number of
leaves over all spanning trees and $\chi_{\mathrm{residue}=2}(G)$ is the indicator
of $\mathrm{residue}(G) = 2$.
-/
@[category research solved, AMS 5,
  formal_proof using lean4 at
    "https://github.com/KitaKen1/wowii-graph-conjecture-217-lean/blob/6a2fb82fcd17aa15ec734736740794bb8bd194c0/lean/GraphConjecture217Audit.lean"]
theorem conjecture217 (G : SimpleGraph α) [DecidableRel G.Adj] (h : G.Connected)
    (hL : Ls G ≤ 4 * (residueEqTwoIndicator G : ℝ) + 2) :
    ∃ a b : α, ∃ p : G.Walk a b, p.IsHamiltonian := by
  sorry

-- Sanity checks

/-- `residueEqTwoIndicator` is always $0$ or $1$. -/
@[category test, AMS 5]
example (G : SimpleGraph (Fin 4)) [DecidableRel G.Adj] :
    residueEqTwoIndicator G ≤ 1 := by
  unfold residueEqTwoIndicator; split <;> simp

/-- `residueEqTwoIndicator` is nonneg. -/
@[category test, AMS 5]
example (G : SimpleGraph (Fin 4)) [DecidableRel G.Adj] :
    0 ≤ residueEqTwoIndicator G := Nat.zero_le _

-- The `Ls G` invariant is nonneg by construction (sSup of nonneg leaf counts);
-- proving it requires the sSup-nonempty / above-bound machinery. We omit a
-- sanity check here to avoid pulling in that infrastructure for a single test.

end WrittenOnTheWallII.GraphConjecture217

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

nosorry fetch wotw-graphconjecture217
nosorry submit wotw-graphconjecture217 nosorry/wotw-graphconjecture217/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.