Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Side-note p. 120 — the WL test cannot distinguish a 6-cycle from two triangles

Proved
GeomDL.WL.wl_cannot_distinguish_cycle6_twoTriangles

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

geometric-deep-learninggraph-isomorphismp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-bookp2o-v1weisfeiler-lehman

Let C6C_6C6​ be the cycle on six nodes and 2K32K_32K3​ the disjoint union of two triangles. For every round sss, the multisets of Weisfeiler–Lehman colours of the two graphs coincide,

{ ⁣{cC6s(u):u∈V(C6)} ⁣}={ ⁣{c2K3s(u):u∈V(2K3)} ⁣},\{\!\{c^s_{C_6}(u) : u \in V(C_6)\}\!\} = \{\!\{c^s_{2K_3}(u) : u \in V(2K_3)\}\!\},{{cC6​s​(u):u∈V(C6​)}}={{c2K3​s​(u):u∈V(2K3​)}},

yet C6C_6C6​ and 2K32K_32K3​ are not isomorphic.

This is the standard example showing that the WL test is only a necessary condition for isomorphism.

Formalization Note The WL test is the featureless 1-WL colour refinement neighborColor / neighborHistogram of the reused definition WLIdentification.

Preamble
import Mathlib
import Definitions.Def_WLIdentification
import Definitions.Def_GeomDL_WL_Defs
Formal statement
namespace GeomDL.WL
open OAI.WLIdentification

/-- Side-note p. 120: the WL test cannot distinguish a 6-cycle from two triangles. The colour
histograms of `C₆` and `2K₃` agree at every round, although the graphs are not isomorphic. -/
theorem wl_cannot_distinguish_cycle6_twoTriangles :
    (∀ s, neighborHistogram cycle6 s = neighborHistogram twoTriangles s) ∧
      ¬ Isomorphic cycle6 twoTriangles := by sorry

end GeomDL.WL
Source
Bronstein et al., Geometric Deep Learning (arXiv:2104.13478v2), Ch. 7, side-note p. 120, "One simple example: the WL test cannot distinguish a 6-cycle from two triangles."
Human review
  • Endorsed by Shuze Chen · Oct 21, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 21, 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