Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

§3, p. 3:12 — red paths have twin-width at most 2

Proved
TwinWidthI.BallGraph.redPath_le_two

by mikedeng1 · Oct 8, 2026 · Mathlib 0df444a (Lean v4.33.1)

p2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1pathred-graphtwin-width

For n≥0n\ge 0n≥0 let PnP_nPn​ be the path on the vertices 0,1,…,n−10,1,\dots,n-10,1,…,n−1, with iii adjacent to i+1i+1i+1, and let Pnr=(V(Pn),∅,E(Pn))P^r_n=(V(P_n),\emptyset,E(P_n))Pnr​=(V(Pn​),∅,E(Pn​)) be the red path: the trigraph in which every edge of PnP_nPn​ is red. Then

tww⁡(Pnr)≤2.\operatorname{tww}(P^r_n)\le 2 .tww(Pnr​)≤2.

This is the base case d=1d=1d=1 of Theorem 4.3: the 111-dimensional nnn-grid is the path PnP_nPn​.

Formalization Note. Red twin-width is the predicate RedTwinWidthLE of the Setting: a sequence of merges of parts from singletons to at most one part in which each part is joined by an edge of PnP_nPn​ to at most 222 other parts. The statement holds for every nnn, including n=0,1n=0,1n=0,1.

Preamble
import Mathlib
import Definitions.Def_TwinWidthI_BallGraph_Setting
Formal statement
namespace TwinWidthI.BallGraph

/-- §3, p. 3:12: red paths have twin-width at most 2. -/
theorem redPath_le_two (n : ℕ) : RedTwinWidthLE (SimpleGraph.pathGraph n) 2 := by sorry

end TwinWidthI.BallGraph
Source
Bonnet, Kim, Thomassé and Watrigant, Twin-width I: Tractable FO Model Checking, J. ACM 69(1), Article 3 (2021), p. 3:12, §3, "red paths have twin-width at most 2"; used as the base case of Theorem 4.3, p. 3:15
Human review
  • Endorsed by Shuze Chen · Oct 8, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 8, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me