Ch. 7, p. 120 — message-passing GNNs are no more powerful than the Weisfeiler–Lehman test
ProvedGeomDL.WL.gnn_le_wlLet be a message-passing GNN with layers (35), constant initial features , and parameters shared by all graphs; let be any function of a multiset of node features, a depth, and , two graphs (possibly with different numbers of nodes). Write for the round- Weisfeiler–Lehman colour of the node of . Then:
- (node level) for every and all nodes of , of ,
- (graph level) if the round- WL colour histograms agree, , then
Every pair of graphs the GNN separates is therefore separated by the WL test.
Formalization Note The page says "any GNN conforming to one of the three flavours". The statement is posed for the message-passing flavour (35), which contains the attentional flavour (34) and the convolutional flavour (33) when the coefficient is a function of the features of and . A coefficient that is an arbitrary function of the graph (for instance the number of triangles through ) falls outside the claim, and the claim is false for it. Graphs are featureless, as in the WL analyses (side-note p. 120); the WL test is the reused neighborColor / neighborHistogram.
import Mathlib import Definitions.Def_WLIdentification import Definitions.Def_GeomDL_WL_Defs
namespace GeomDL.WL
open OAI.WLIdentification
/-- Ch. 7, p. 120: a message-passing GNN (35) with constant initial features cannot be more powerful
than the Weisfeiler–Lehman test. For one GNN `N` (parameters shared across graphs) and any two
graphs `G`, `G'`: (1) two nodes with equal round-`t` WL colours have equal round-`t` features,
for every `t ≤ T`; (2) if the round-`T` WL colour histograms agree, every read-out of the
round-`T` node features agrees. -/
theorem gnn_le_wl {F M A Y : Type*} (N : GNN F M A) (readout : Multiset F → Y) (T : ℕ)
(G G' : Graph) :
(∀ t ≤ T, ∀ u v, neighborColor G t u = neighborColor G' t v →
N.features G t u = N.features G' t v) ∧
(neighborHistogram G T = neighborHistogram G' T →
N.output readout G T = N.output readout G' T) := by sorry
end GeomDL.WL
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.