The Weisfeiler–Leman Dimension of Planar Graphs is Two
Alejandro García, Pedro Montealegre, Martín Ríos-Wilson, Jorge Valenzuela
cs.DM
Dec 1, 2026 · v1
cs.LO math.CO
TL;DR
The main identification theorem and the matching lower bound for the WL dimension of planar graphs are formalized in Lean 4 with Mathlib, with axiom auditing.
Abstract
We prove that the Weisfeiler-Leman dimension of the class of planar graphs is exactly two, improving the upper bound of three established by Kiefer, Ponomarenko, and Schweitzer (LICS 2017). Our proof builds on the reduction to colored 3-connected planar graphs and the classification of edge-color supports established by Kiefer and Neuen (SIDMA 2022 and ICALP 2022, respectively). We develop a geometric reconstruction approach based on discrete harmonic extensions and the information encoded in stable pair colors. Our main tools are reconstruction from cyclic color words and low-dimensional geometric representations whose Gram matrices belong to the coherent algebra of the graph. By exploiting the geometry and symmetries of these representations, we establish that the 2-dimensional Weisfeiler-Leman algorithm identifies every vertex- and arc-colored 3-connected planar graph and determines its vertex orbits. Combined with the reduction to 3-connected graphs, this settles the question of the Weisfeiler-Leman dimension of planar graphs.
Problem
The Weisfeiler–Leman dimension of planar graphs was known to be at most three (Kiefer, Ponomarenko, Schweitzer). The open question was whether 2-WL already identifies all planar graphs.
Approach
Building on the reduction to vertex- and arc-colored 3-connected planar graphs and Kiefer–Neuen's classification of edge-color skeletons, the authors use hitting probabilities and discrete harmonic extensions. These yield low-dimensional geometric representations whose Gram matrices lie in the coherent algebra, and graphs are reconstructed from cyclic color words and stable pair colors. The main identification theorem and the lower bound are formalized in Lean 4.19.0 with Mathlib, using a straight-line-drawing definition of planarity.
Results
2-WL identifies every colored 3-connected planar graph and determines its vertex orbits, so the WL dimension of planar graphs is exactly two. The Lean formalization (theorem PlanarWL.Article.planarDimensionTwo) depends only on the standard axioms propext, Classical.choice and Quot.sound, and is replayed through the Lean kernel.