The Cai–Fürer–Immerman equivalence: k-WL and C^{k+1} #
On finite simple graphs, k-dimensional Weisfeiler–Leman (SimpleGraph.wlColoring,
SimpleGraph.wlHistogram) characterizes equivalence in the (k + 1)-variable counting logic
C^{k+1} (Cslib.Logic.FO.FiniteVariable.CountingFormula Language.graph (k + 1)) via Hella's
bijective (k + 1)-pebble game ([CFI92], Section 5, Theorem 5.2).
- Tuple equivalence (
kfree variables). Placing ak-tupleu : Fin k → Von the firstkpebblesSet.range Fin.castSucc ⊆ Fin (k + 1)leaves pebbleFin.last kas the auxiliary pebble used to scan verticesv : V. When allk + 1pebbles are placed (Fin.snoc u v), moving pebblei.castSuccis related byEquiv.swap i.castSucc (Fin.last k)(genPebbleWins_comp_equiv_iff) to movingFin.last kfromFunction.update u i v. Consequently, Duplicator wins then-round bijective(k + 1)-pebble game from(Set.range Fin.castSucc, Fin.snoc u v₀, Fin.snoc w w₀)if and only ifG.wlColoring n u = H.wlColoring n w(bijPebbleWins_graph_range_castSucc_iff), with no round shift and for everyk : ℕ. ThroughbijPebbleWins_iff_forall_realize_iff,uandwhave the same round-nk-WL color iff they satisfy the sameC^{k+1}formulas of quantifier rank at mostnin the firstkvariables (forall_realize_countingFormula_castSucc_le_iff), and across all quantifier ranks iff their colors agree in round|V| ^ k + |W| ^ k(forall_realize_countingFormula_castSucc_iff_card_pow_add). - Sentence equivalence (
freeVars = ∅). Equal round-nk-WL histograms allow matching any chosenk-tuple ofGwith one ofHof the same color and lifting the pebbles, giving a win in then-round game from∅(bijPebbleWins_graph_empty_of_wlHistogram_eq). Conversely, winningn + krounds from∅placeskpebbles fiberwise to build a color-preserving bijection(Fin k → V) ≃ (Fin k → W)(wlHistogram_eq_of_bijPebbleWins_graph_empty). Over all rounds, two nonempty finite graphs satisfy the sameC^{k+1}sentences iff theirk-WL histograms agree in every round (forall_realize_countingFormula_empty_iff_wlHistogram_eq), iff they agree in round|V| ^ k + |W| ^ k(forall_realize_countingFormula_empty_iff_wlHistogram_card_pow_add). - Compatibility at
k = 1. Specializingk = 1recovers the Immerman–Lander vertex and histogram characterizations in terms ofSimpleGraph.refinementColoringandSimpleGraph.colorHistogram(wlColoring_one_succ_eq_iff,forall_wlColoring_one_eq_iff,forall_wlHistogram_one_eq_iff).
Main results #
Cslib.Logic.FO.partialIsoOn_graph_univ_iff_tupleAtom,Cslib.Logic.FO.partialIsoOn_graph_range_castSucc_iff_tupleAtom: partial isomorphisms on simple graphs vsSimpleGraph.tupleAtom.Cslib.Logic.FO.bijPebbleWins_graph_univ_snoc_iff,Cslib.Logic.FO.bijPebbleWins_graph_range_castSucc_iff,Cslib.Logic.FO.bijPebbleWinsForever_graph_range_castSucc_iff: round-by-round and infinite-game equivalences betweenk-WL tuple colors and the bijective(k + 1)-pebble game.Cslib.Logic.FO.bijPebbleWins_graph_empty_of_wlHistogram_eq,Cslib.Logic.FO.wlHistogram_eq_of_bijPebbleWins_graph_empty,Cslib.Logic.FO.bijPebbleWinsForever_graph_empty_iff_wlHistogram_eq:k-WL histograms and the bijective(k + 1)-pebble game from∅.Cslib.Logic.FO.forall_realize_countingFormula_castSucc_le_iff,Cslib.Logic.FO.forall_realize_countingFormula_castSucc_iff,Cslib.Logic.FO.forall_realize_countingFormula_castSucc_iff_card_pow_add: Cai–Fürer–Immerman theorem, tuple form (C^{k+1}formulas inkfree variables vsk-WL colors).Cslib.Logic.FO.realize_countingFormula_le_one_iff_of_card_eq,Cslib.Logic.FO.realize_countingFormula_iff_of_wlHistogram_eq,Cslib.Logic.FO.wlHistogram_eq_of_forall_realize_countingFormula_empty_le,Cslib.Logic.FO.forall_realize_countingFormula_empty_iff_wlHistogram_eq,Cslib.Logic.FO.forall_realize_countingFormula_empty_iff_wlHistogram_card_pow_add: Cai–Fürer–Immerman theorem, sentence form (C^{k+1}sentences vsk-WL histograms).Cslib.Logic.FO.wlColoring_one_succ_eq_iff,Cslib.Logic.FO.forall_wlColoring_one_eq_iff,Cslib.Logic.FO.forall_wlHistogram_one_eq_iff: compatibility of1-WL withSimpleGraph.refinementColoringandSimpleGraph.colorHistogram.
References #
When all pebbles are placed, a partial isomorphism on simple graphs is equality of
SimpleGraph.tupleAtom.
On Set.range Fin.castSucc, a partial isomorphism between Fin.snoc u v₀ and Fin.snoc w w₀
is equality of SimpleGraph.tupleAtom on u and w.
Tuple and pebble index combinatorics #
Bijective (k + 1)-pebble game and k-WL #
With all k + 1 pebbles placed on Fin.snoc u v and Fin.snoc w z, Duplicator wins the
n-round bijective game iff u and w have the same round-n k-WL color and (u, v) and
(w, z) have the same round-n step profile.
Bijective (k + 1)-pebble game and k-WL tuple colors. With the first k pebbles placed
on u : Fin k → V and w : Fin k → W, Duplicator wins the n-round bijective (k + 1)-pebble
game on simple graphs if and only if u and w receive the same k-WL color in round n.
Duplicator wins the infinite bijective (k + 1)-pebble game from (Set.range Fin.castSucc, Fin.snoc u v₀, Fin.snoc w w₀) if and only if u and w receive the same k-WL color in every
round.
Prefix placement and k-WL histograms #
If G and H have the same round-n k-WL histogram, then Duplicator wins the n-round
bijective (k + 1)-pebble game from ∅.
If Duplicator wins n + k rounds of the bijective (k + 1)-pebble game from ∅, then G and
H have the same round-n k-WL histogram.
With no pebbles placed, Duplicator wins the infinite bijective (k + 1)-pebble game on simple
graphs if and only if their k-WL histograms agree in every round.
The Cai–Fürer–Immerman theorem (k-WL and C^{k+1}) #
Cai–Fürer–Immerman theorem, bounded-rank tuple form ([CFI92], Section 5,
Theorem 5.2). Two k-tuples u of G and w of H satisfy the same C^{k+1} formulas of
quantifier rank at most n in the first k variables Set.range Fin.castSucc if and only if
u and w receive the same k-WL color in round n.
Cai–Fürer–Immerman theorem, tuple form ([CFI92], Section 5, Theorem 5.2).
Two k-tuples u of G and w of H satisfy the same C^{k+1} formulas in the first k
variables if and only if they receive the same k-WL color in every round.
Cai–Fürer–Immerman theorem, stabilized tuple form. Two k-tuples u of G and w of H
satisfy the same C^{k+1} formulas in the first k variables if and only if they receive the same
k-WL color in round |V| ^ k + |W| ^ k.
Any two finite simple graphs of equal vertex count agree on all C^{k+1} sentences of
quantifier rank at most 1, because every singleton placement on loopless graphs is a partial
isomorphism.
If G and H have the same round-n k-WL histogram, then they agree on every C^{k+1}
sentence of quantifier rank at most n under any assignments.
If two nonempty finite simple graphs agree on all C^{k+1} sentences of quantifier rank at most
n + k, then their round-n k-WL histograms agree.
Cai–Fürer–Immerman theorem, sentence form ([CFI92], Section 5, Theorem 5.2).
Two nonempty finite simple graphs satisfy the same C^{k+1} sentences if and only if their k-WL
histograms agree in every round. Nonemptiness is needed because GenFormula.Realize takes a
total assignment Fin (k + 1) → V, which does not exist when V or W is empty.
Cai–Fürer–Immerman theorem, stabilized sentence form. Two nonempty finite simple graphs
satisfy the same C^{k+1} sentences if and only if their k-WL histograms agree in round
|V| ^ k + |W| ^ k.
Compatibility of 1-WL with SimpleGraph.refinementColoring #
At dimension k = 1, round n + 1 of 1-WL agrees on ![v] and ![w] if and only if v and
w have the same round-(n + 1) vertex refinement color and G and H have the same round-n
vertex color histogram.
At dimension k = 1, ![v] and ![w] receive the same 1-WL color in every round if and only
if v and w receive the same vertex refinement color in every round and G and H have the same
vertex color histogram in every round.
At dimension k = 1, G and H have the same 1-WL histogram in every round if and only if
they have the same vertex refinement histogram in every round.