How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Message-passing GNNs and the 1-WL ceiling
1 · Prerequisites
None. This page is self-contained.
2 · Logical flowchart
3 · Definitions, theorems and proofs
Finite simple undirected graphs with vertex labels
Definition
Fix a set of labels . A finite vertex-labeled simple undirected graph is a triple in which is a finite set of vertices, is a set of two-element subsets of , and assigns a label to each vertex. Its neighborhood at is . Thus edges have no orientation, loops, or multiplicity. Graphs compared in one labeled-graph statement use the same label set .
Finite multisets as finitely supported multiplicity functions
Definition
Let be a set. A finite multiset on is a function with finite support . The multiplicity is the number of occurrences of , and the size is . Two finite multisets are equal exactly when their multiplicity functions agree at every element of . We write for the multiset whose multiplicity at is the number of indices with ; denotes the empty multiset.
Label-preserving graph isomorphisms
Definition
Let and be finite vertex-labeled simple undirected graphs with labels in the same set . A label-preserving graph isomorphism from to is a bijection such that for every , and for all distinct , if and only if . The graphs are isomorphic when such a bijection exists, and nonisomorphic otherwise.
Aggregation-based message-passing graph neural networks
Definition
Fix a finite vertex-labeled simple undirected graph , a finite nonnegative depth , feature sets , and an initial map . For each , choose a set , an aggregation function on finite multisets, and an update function . Initialize and recursively set
For a chosen output set , a graph readout is a function ; the graph output is . The same maps are used on every graph being compared. The model has no vertex-identity input and uses no graph-wide information before the readout. It distinguishes two graphs when their outputs differ.
Definition references
Finite-round one-dimensional Weisfeiler–Leman color refinement
Definition
Let and be finite vertex-labeled simple undirected graphs with labels in a common set . Define color sets recursively by and for each integer . Set and ; for , update
The graph color multiset at round is , and likewise for . One-dimensional Weisfeiler–Leman color refinement distinguishes and at round when ; it distinguishes the pair when this holds for some finite . If no finite round distinguishes them, they are one-WL-indistinguishable. In the unlabeled case, take to be a singleton. The tuple update is the canonical collision-free color encoding.
Definition references
finite vertex-labeled simple undirected graphs and neighborhoods
finite multisets and color multiplicities
Xu, Hu, Leskovec, and Jegelka, “How Powerful are Graph Neural Networks?”, §2
Morris et al., “Weisfeiler and Leman Go Neural,” §2, Eq. (1)
Li and Leskovec, Graph Representation Learning, Chapter 5 §5.3.3
Countable bounded multisets admit injective sum encodings
Statement
Let be a countable set and let . There is a map such that the sum is injective on finite multisets of total multiplicity at most . For every irrational , the map
is injective on pairs with and a finite multiset of total multiplicity at most . For , the only allowed neighbor multiset is empty.
Statement references
Facts & Assumptions
Given: A countable set , a bound , and an irrational real number . Prove both injectivity claims.
Countability means that an injection is given.
Finite multisets as finitely supported multiplicity functions: A finite multiset on is its finitely supported multiplicity function ; its size is the sum of all multiplicities.
Proof
Let and set . If , the only allowed multiset is empty, so its sum encoding is injective. If and two allowed multisets have equal sums, for each let be the multiplicity in minus the multiplicity in of the element with -index , and set when no element has that index. The sequence has finite support and . If some , let be its largest such index. Equality of the sums gives , contradicting . Hence all multiplicities agree and .
Suppose . Rearranging gives , where and are integers. If , then is rational, contrary to the hypothesis. Thus ; since has distinct powers and is injective, is injective and . The equality then reduces to equality of the neighbor sums; step 1.1 gives .
Finite-depth message-passing forward pass
Definition
Given a finite vertex-labeled graph , a finite nonnegative integer , feature spaces and maps of the types in the aggregation-based message-passing definition, compute a graph output as follows. Initialize for every . For each , first compute for every , then set for every . Return . When , return without a layer update.
Definition references
Graph Isomorphism Network update rule
Definition
Fix a finite depth , positive integer dimensions , an initial embedding , scalars , and maps for . Each is a multilayer perceptron, meaning a finite composition of affine maps between finite-dimensional real vector spaces and coordinatewise applications of a fixed scalar activation. On a finite vertex-labeled simple undirected graph , initialize and update
For a chosen output set , the graph readout is a map on the multiset of final vertex features. The neighbor sum counts each neighbor vertex once, so equal feature vectors at different neighbors contribute with their multiplicity. This definition imposes no injectivity condition on the perceptrons or the readout and makes no claim that a fixed finite architecture realizes an arbitrary injection.
One-dimensional Weisfeiler–Leman refinement is invariant under graph isomorphism
Statement
Let and be finite vertex-labeled simple undirected graphs with labels in a common set, and let be a label-preserving graph isomorphism. At every finite round , corresponding vertices have equal one-dimensional Weisfeiler–Leman colors: for every . Consequently their graph color multisets agree at every round, so the refinement does not distinguish isomorphic graphs.
Statement references
finite vertex-labeled graphs and neighborhoods
label-preserving graph isomorphisms
multiset equality and multiplicity
one-dimensional color refinement
Morris et al., “Weisfeiler and Leman Go Neural,” §2
Xu, Hu, Leskovec, and Jegelka, “How Powerful are Graph Neural Networks?”, §2
Li and Leskovec, Graph Representation Learning, Chapter 5 §5.3.3
Facts & Assumptions
Given: The finite labeled graphs and label-preserving isomorphism in the Statement. Prove the color and histogram claims.
Label-preserving graph isomorphisms: is a bijection preserving labels and adjacency in both directions.
Finite-round one-dimensional Weisfeiler–Leman color refinement: The round- color is the ordered pair of the vertex's round- color and the multiset of round- colors of its neighbors.
Finite multisets as finitely supported multiplicity functions: Equality of finite multisets is equality of multiplicities at every element.
Proof
By induction on , for every . At this is label preservation from [F1]. If it holds at , bijectivity and adjacency preservation in [F1] give a bijection , and corresponding neighbors have equal round- colors by the induction hypothesis. Thus the neighbor-color multisets agree; the center colors agree as well, so the ordered-pair update [F2] gives equality at round .
The same vertex bijection therefore sends every occurrence of each round- color in to an occurrence of that color in , and its inverse gives the reverse correspondence. Hence the two graph color multisets have equal multiplicities for each color by [F3]. Their round- histograms agree for every finite , so no round distinguishes them.
Message-passing GNNs cannot distinguish beyond one-dimensional Weisfeiler–Leman
Statement
Let be finite vertex-labeled simple undirected graphs with labels in a common set, and let a depth- aggregation-based message-passing graph neural network use the same initial embedding, layer maps, and graph readout on both graphs. If one-dimensional Weisfeiler–Leman color refinement has equal graph color multisets on and at every round , then the network gives the same graph output on and . Equivalently, whenever this network distinguishes the pair, one-dimensional Weisfeiler–Leman distinguishes the pair at some round at most .
Statement references
finite vertex-labeled graphs and neighborhoods
finite multisets and multiplicities
shared aggregation, update, and graph-readout maps
round colors and graph color multisets
Xu, Hu, Leskovec, and Jegelka, “How Powerful are Graph Neural Networks?”, Lemma 2
Morris et al., “Weisfeiler and Leman Go Neural,” §3, Theorem 1
Li and Leskovec, Graph Representation Learning, Chapter 5 §5.3.3, Theorem 5.2
Facts & Assumptions
Given: The two finite labeled graphs, their equal 1-WL color multisets through round , and one shared depth- message-passing GNN as in the Statement. Prove its graph outputs agree.
Aggregation-based message-passing graph neural networks: Each layer applies the same aggregation function to the multiset of neighbor states and then the same update function to the center state and aggregate.
Finite-round one-dimensional Weisfeiler–Leman color refinement: Each next WL color is the ordered pair of the current color and the multiset of current neighbor colors; the graph color multiset records every vertex color with multiplicity.
Finite multisets as finitely supported multiplicity functions: A finite multiset is its multiplicity function, so applying a function to each occurrence preserves equality of multisets.
Aggregation-based message-passing graph neural networks: The graph readout is a function of the multiset of final node states.
Proof
By induction on , equal round- WL colors of vertices from either graph imply equal GNN states after layers. At , the shared initial embedding gives this implication. If it holds at and two vertices have equal round- colors, [F2] says their center colors and neighbor-color multisets agree. By the induction hypothesis, equal neighbor colors have equal GNN states; applying this correspondence occurrence by occurrence gives equal neighbor-state multisets. The shared aggregation and update functions in [F1] therefore give equal next-layer states. Thus a well-defined map from each round- color occurring in either graph to its common GNN state exists.
At round , the assumed equal WL color multisets become equal multisets of GNN states when each color is sent to its common state from step 1.1; multiplicities are preserved by [F3]. The shared graph readout in [F4] receives equal multisets, so the two graph outputs are equal. The contrapositive gives the stated distinguishing implication.
Injective message passing matches the one-dimensional Weisfeiler–Leman test
Statement
Let be finite vertex-labeled simple undirected graphs with labels in a common set. Suppose one-dimensional Weisfeiler–Leman distinguishes them at round . Use a shared initial embedding that is injective on the labels occurring in the pair. Assume each message-passing layer's aggregation function is injective on the neighbor multisets encountered and its update function is injective on the center-state/aggregate pairs encountered. Assume also that the graph readout is injective on the final node-state multisets of the pair. Then a depth- aggregation-based message-passing graph neural network distinguishes and .
For the GIN sum construction, if the active feature universe is countable and every neighbor multiset has size at most a fixed , the bounded-multiset lemma gives an injective scalar code for the GIN preactivation for any irrational , when current feature values use that code. If each graph has at most a fixed vertices, the same lemma gives an injective sum encoding for the graph-level readout multiset. This is an existence statement for injective maps on the relevant code sets; it does not assert that every fixed finite MLP realizes an arbitrary such map. The post-MLP update and graph readout must still satisfy the injectivity hypotheses above.
Statement references
finite vertex-labeled graphs and neighborhoods
finite multisets and multiplicities
aggregation-based updates and graph readout
finite-round WL colors and histograms
GIN update formula and finite-MLP scope
injective sum and irrational self-weight encodings
Xu, Hu, Leskovec, and Jegelka, “How Powerful are Graph Neural Networks?”, Theorem 3
Morris et al., “Weisfeiler and Leman Go Neural,” §3, Theorems 1–2
Li and Leskovec, Graph Representation Learning, Chapter 5 §§5.3.3–5.3.4
Facts & Assumptions
Given: The graphs, finite round , one shared message-passing network, and the injectivity hypotheses stated above. Prove that its depth- graph outputs differ, and justify the countable GIN sum-code clause.
The initial embedding is injective on the common labels occurring in and .
At each round, the aggregation function is injective on the encountered neighbor multisets and the update function is injective on the encountered pairs of center state and aggregate.
The graph readout is injective on the two final multisets of node states.
Finite-round one-dimensional Weisfeiler–Leman color refinement: A round- color is the ordered pair of a round- center color and the multiset of round- neighbor colors; the round- graph histogram is the multiset of all vertex colors.
Aggregation-based message-passing graph neural networks: A shared layer aggregates the multiset of neighbor states and updates the center state.
Countable bounded multisets admit injective sum encodings: On a countable feature universe with multiset-size bound , a sum code is injective on multisets, and for irrational the code is injective on center/multiset pairs.
Graph Isomorphism Network update rule: The GIN preactivation is before its layer MLP.
Aggregation-based message-passing graph neural networks: The graph output is the readout of the final node-state multiset.
Proof
For each , we prove that there is an injective map from the WL colors occurring at round in either graph to their GNN states. For , use the initial embedding and [A1]. If this holds at , a round- WL color has the form by [F1]. The injective map sends different center colors to different center states and, occurrence by occurrence, different neighbor-color multisets to different neighbor-state multisets. By [A2], their aggregates and then their updated states remain different whenever differs. Equal WL colors give equal states because the layer maps are shared functions. Thus the resulting round- state map is well-defined and injective.
The WL histograms at round differ by hypothesis. Applying the injective map to each color occurrence preserves multiplicities and keeps these two multisets different. The final node-state multisets therefore differ, and [A3] makes their graph readouts different by [F5].
If the active feature set is countable and neighbor multisets have size at most , apply [F3] with to obtain the stated center/multiset preactivation code for any irrational . If each graph has at most vertices, apply the multiset part of [F3] with to obtain an injective sum code for final node-state multisets. Formula [F4] identifies the first code with the GIN preactivation when the current features use ; the injectivity of any post-MLP or readout realizing the full theorem remains the separate hypothesis [A2]–[A3].
4 · Examples, counterexamples and false statements
None yet.