Manuscript Offprint
arXiv:2609.15932Recurrent GraphNeural NetworkswithSet-BasedAggregation
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Recurrent GNNs iterate message passing to convergence, and their logical characterizations to date rely on multiset aggregation, graded (counting) logics, and halting or acceptance conditions that cannot be verified from the network's parameters. We study recurrent GNNs with set-based aggregation and identify sufficient conditions checkable from the weights for networks to compile into formulas and formulas into networks. The main result is an effective, two-directional equivalence between a class of networks and the Boolean closure of reachability and safety properties, the fragment of the modal -calculus. The fragment is not an artifact: it is the exact expressive level of stabilization over finite vocabulary, which supports fixed points of a single polarity and Boolean combinations thereof, but not the composition of fixed points of opposite polarities. The correspondence needs no counting logic, no external halting signal, and no non-effective acceptance condition, yielding a verifiable path from weights to symbolic explanations for networks meeting the conditions.
Introduction
Graph neural networks (GNNs) (Scarselli et al. 2008) admit a precise reading as logic: a trained network can be compiled into formulas that describe what it computes, and formulas can be compiled into networks that realize them. For depth-bounded nets this correspondence is well understood, with first-order logic with counting characterizing exactly what such networks compute (Xu et al. 2018; Morris et al. 2019; Barceló et al. 2020; Grohe 2024). For recurrent GNNs, which iterate message passing to convergence rather than for a fixed number of layers, the picture is incomplete. Existing characterizations (Pflueger, Tena Cucala, and Kostylev 2024; Ahvonen et al. 2024; Bollen et al. 2025; Rosenbluth and Grohe 2026) are built for multiset aggregation, and their target logics, graded modal logic and the graded -calculus, inherit its ability to count. This power is not free: the correspondences rest on explicit halting classifiers or on acceptance conditions that cannot be verified from the network's weights, and for the graded -calculus, the setting with genuine alternation, the converse direction is known only conditionally (Bollen et al. 2025; Bollen and Vansummeren 2026).
We study recurrent GNNs with set-based aggregation, such as max and min, and show that this restriction yields what the multiset setting so far lacks: a complete, effective, two-directional correspondence with a fixed-point logic, under conditions checkable from the weights. The price is counting and alternation, and we prove the price is unavoidable. Concretely, we identify regularity, a semantic condition under which a converging net's fixed-point embedding at a vertex depends only on its atomic type and its neighbors' fixed points, not on the transient trajectory; the vocabulary, the set of embeddings reachable at convergence, which can be finite even when the transients are infinite in number; and admissibility, under which the net's run can be traded for a finite dynamical system (the game) iterating directly over the vocabulary. Converging regular nets with finite vocabulary whose game is admissible, ordered, and monotone are called RATCHET nets. Our contributions are the following:
-
A checkable framework for compiling recurrent nets. We introduce regularity, vocabulary, and admissibility, and give sufficient conditions verifiable from the weights: contraction (Theorem 11) and monotonicity (Theorem 11). Unlike the lim-inf and ever-reached acceptance conditions of prior work, membership in the resulting class does not depend on non-effective properties of infinite runs.
-
A general-purpose compiler into fixed-point logic. Every regular net with finite vocabulary and an admissible, ordered game compiles into a simultaneous inflationary fixed-point (IFP) formula of size linear in the net's quotient table, with no monotonicity required (Theorem 14).
-
A two-way correspondence. RATCHET nets compute exactly the vertex queries definable in , the Boolean closure of reachability (least fixed points over ) and safety (greatest fixed points over ) in the modal -calculus, with effective translations in both directions (Theorems 11 and 11). The net-to-logic direction answers, for this counting-free fragment, the converse question that Bollen et al. (2025) leave open in the graded setting; the logic-to-net direction is the counterpart of their Theorem 5.1, obtained without their halting classifier or counting apparatus.
-
A barrier showing is necessary. No converging regular net with finite vocabulary and admissible game, ordering and monotonicity are not even assumed, computes , , or the alternation-free EF EG (Proposition 11). Stabilization over finite vocabulary supports fixed points of a single polarity and their Boolean combinations, but cannot certify that an inner fixed point of opposite polarity has stabilized. Indeed, omits queries from the
first level of the alternation hierarchy and is strictly contained in the alternation-free fragment (Corollary 11).
- Two implemented compilers, net-to-logic and logic-to-net, that map RATCHET nets to , and back, together with an extensive experimental validation.
The restriction to set-based aggregation is not arbitrary. Aggregators such as max and min are precisely the empirically preferred choice in neural algorithmic reasoning: max-aggregation message passing was found best suited for learning to execute classical graph algorithms and for size generalization (Veličković et al. 2020; Wittig et al. 2026); this preference has been explained (Xu et al. 2020, 2021; Dudzik and Veličković 2022), and it is the aggregation adopted by the generalist algorithmic learner of Ibarz et al. (2022). Our results give this architectural choice logical meaning.
The correspondence locates set-based recurrent GNNs within the landscape of stopping semantics. A fixed point built on top of one of the opposite polarity requires a certificate that the inner computation has stabilized: supplied externally by a halting classifier (Bollen et al. 2025), or manufactured internally by counters that grow with the graph (Bollen and Vansummeren 2026). Proposition 17 shows that with neither resource available, no certificate exists, and is exactly what remains; details below.
Roadmap. After fixing the model and vertex types, we develop the recurrent case, RATCHET nets, and the IFP compiler. The central section establishes the equivalence with and the barrier. We close with related work and conclusions.
A feature or embedding is a vector in whose components are called registers. For atomic type and layer index , the GNN architecture fixes:
• an initial embedding ,
• weight tensors and ,
- combination function that maps finite subsets to embeddings, and
• component-wise activation functions .
For simplicity, we assume architectures with equal combination and activation functions across layers, but this is not an essential distinction. For activation functions, we consider and the truncated (or clipped linear unit) . These tensors and functions make up the parameter of the net.
The central object is the one-step update at layer :
where is an atomic type, is the current embedding of a vertex, is the (finite) set of neighbor embeddings, and is their aggregation, with the convention (the zero vector), so that (1) is well defined for isolated vertices. This is a concrete architecture choice but others are also compatible with our results.
In the depth-bounded or non-recurrent case, the net is defined for a fixed number of layers. The net iterates the updates synchronously over all vertices. Starting from , the embedding of vertex in graph at layer is
We write when the dependence on the graph and parameter must be made explicit. In the recurrent case, we assume equal weight tensors across layers and denote the one-step function simply as . The architecture is converging if converges in as , for every graph and vertex , in which case the limit is denoted as . Convergence of the iteration is non-trivial and depends on the interaction between the weight matrices, the activation function, and the graph structure.
For simplicity, the recurrent net iterates a single-layer block. Our results extend to L-layer recurrent blocks, where an entire iteration of the block replaces a single-step update.
Notice that graphs are directed: E is an arbitrary binary relation, is the set of E-successors of u, and no symmetry is assumed; undirected graphs are the special case of symmetric E, so all positive results below apply to them.
Finite Types and Their Embeddings
The vertex types correspond to the different colors obtained by 1-WL under set aggregation (Weisfeiler and Leman 1968; Cai, Fürer, and Immerman 1992; Grohe 2017). Recall that ATP is the fixed set of atomic types.
Definition 1 (Types). The sequence of types is: , and . The atomic type of type is for , and for with .
The (finite) type for pointed graph and is given by , and iff and .
The types at layer correspond to the equivalence classes of an -bisimulation relation under set-based aggregation: two vertices of the same type obtain the same embeddings regardless of the architecture. Hence, the embeddings that a depth-bounded net with set-based aggregation can generate are finite and determined by the types:
Definition 2. The embedding function , one per type , maps parameters into embeddings:
-
for , is a constant function of , and
-
for in where is of atomic type ,
.
When is clear from context, we write instead of .
Theorem 17. Let be a parameter, let be a pointed graph, and let be a layer index within the architecture. Then, for .
Compiling Depth-Bounded Nets
A direct byproduct of the relation between types and embeddings is a “compiler” that maps nets into logical formulas that characterize the embeddings. The idea is to have logical formulas that decide the types, and use the parameter-to-embedding function to logically characterize the net. As the embeddings are real vectors, we settle for a logical characterization that test whether a register of the final embedding is greater than zero, but other criteria are possible.
Definition 4. For each type , there is formula that holds in pointed graph iff where is the layer of :
• , and
Per definition, vertex u satisfies iff its type is t, each neighbor has a type in S, and each type in S is witnessed by some neighbor. A logical characterization of embeddings follows whose soundness is established by induction on :
Definition 5. Let be a parameter for the architecture of width W, depth L, and atomic types in ATP. The logical characterization of the embeddings at layer is the vector
where .
Theorem 17 (Compiler). Let be a parameter of the architecture . Then, iff .
The size of is a tower of exponentials, related to the number of Hintikka-style normal forms of modal formulas of modal depth , supporting the blow-up empirically reported (Tena Cucala and Cuenca Grau 2024; Tena Cucala et al. 2022) for similar compilations.
Recurrent Nets
Getting a characterization in the recurrent case is harder: the net converges in a number of steps that is not bounded, and the set of types the net may see as well as the number of fixed-point embeddings it may reach are also unbounded.
The embedding for pointed graph is the limit , which by Theorem 17, equals . Its infinite type is the sequence of finite types, while the function maps infinite types into (limit) embeddings: . An infinite type is an equivalence class for a bisimulation that uses set-based aggregation of neighbor types. The set is pointed graph} is the set of infinite types. For converging nets, is a well-defined and total function on . The following is direct:
Lemma 17 (Bisimulation invariance). Let and be two pointed (finite) graphs. Then, and are bisimilar, written as , iff . Hence, if , then .
At convergence, the net reaches an equilibrium where the vertices u of the graph satisfy the system:
As the neighbors “shield” u from other vertices in the graph, it is natural to expect for to be determined by its atomic type and . We interpret determination in this context as where the sequence satisfies and for . Another notion asks for to be the unique fixed point of , but this is too strong and doesn’t cover interesting cases. However, even this weaker notion is not always satisfied, and thus motivates:
Definition 8 (Regular nets). Let be a converging recurrent architecture for the atomic types in ATP. The net is regular iff for every pointed structure of type :
where , and satisfies and .
Theorem 17. Let be a regular net for the atomic types in ATP, and let and be pointed graphs of the same atomic type . If , then .
The vocabulary of the net is constructed by closing the initial embeddings with the operators in . For the sequence where is the set of fixed-point embeddings for isolated vertices, and , the vocabulary is the closure of , when all these sets are defined; otherwise, is undefined. When defined, the set is closed under for finite subsets , and by taking limits since is a (topologically) closed set.
Below there are conditions for a net to be regular with well-defined vocabulary. In such a case, factors the space of infinite types into equivalence classes: iff . The quotient table maps atomic types and finite subsets of embeddings into embeddings as . The embedding for pointed graph is for and . The table doesn't know about infinite types, only about atomic types and embeddings in the vocabulary.
A crucial question is whether can be computed from the table alone, without the need to construct types.
For fixed graph with vertices, we consider tensors which contain embeddings for each vertex . Let be the sequence if is of atomic type , and . The sequence is well defined and for each vertex and . Does as ?
If the vocabulary V is finite, the sequence is the trace of a cellular automaton (Wolfram 2002) on the graph x, where each vertex starts at a configuration determined by its atomic type, and changes its configuration according to the configuration of its neighbors as dictated by the table.
Definition 10 (Dynamical systems). Let be a regular net with vocabulary V.
• For graph x with n vertices, the game induced by T on x is the dynamical system on :
where is the atomic type for vertex .
-
The game is admissible for graph iff for every vertex , and it is admissible iff it is admissible for every graph.
-
The game is ordered iff there is an order such that for every graph , vertex in , and .
-
The game is monotone iff, writing for finite , to mean every is -dominated by some , the table satisfies whenever .
For admissible tables over finite vocabulary, running the dynamical system is equivalent to running the net. As the states of the dynamical system correspond to the net's final embeddings, the dynamical system may converge faster than the net. For a graph of order n, an admissible dynamical system converges within steps, or steps if the game is ordered. Contractive nets converge in the limit.
A converging regular net with finite vocabulary whose game is admissible, ordered and monotone is called a RATCHET net. Corollary 17 shows that for , the induced game is monotone. If the vocabulary is totally ordered by , the size of the table reduces to .
Contractive Nets
The original recurrent GNN is a contractive net (Scarselli et al. 2008), and the regime persists in modern equilibrium models: implicit GNNs (Gu et al. 2020) enforce a weight-norm contraction bound by projection during training, guaranteeing convergence by construction — a checkable condition of the same species as Theorem A1. The architecture Net( , , ) over the atomic types ATP is contractive for , if there is such that for each , embeddings , , and finite subsets , :
whereas it is contractive in if is contractive when . The aggregator is 1-Lipschitz for , if for any two vertex-indexed sets and : . (Notice that and may have different size even though both are indexed by .)
Theorem 17 (Contractive nets). Let be a recurrent net over the atomic types in ATP, and let be a norm in . Then:
-
If the net is contractive for and the aggregator is 1-Lipschitz for , the net is converging.
-
If the net is converging and contractive in z for , the net is regular and the vocabulary is well defined.
-
If the net is contractive and the aggregator is 1-Lipschitz (both) for , the net is regular, the vocabulary is well defined, and the game is admissible.
Nets that satisfy the conditions of Theorem 17 are those with max aggregator and tensors such that (contractive in for ), and (fully contractive for ) (see Theorem A1 in appendix).
Monotone Nets
The architecture is monotone if for each , embeddings , and finite subsets :
The aggregator is monotone if for any two vertex-indexed embedding sets and : .
Theorem 17 (Monotone nets). Let be a converging net over the atomic types in ATP. Assume the initial embeddings are non-negative pre-fixed points of the isolated-vertex update: for . Then:
-
If the net is monotone, the vocabulary is well defined.
-
If the net and the aggregator are both monotone, the net is regular, and the game is admissible and ordered.
Any fixed point is a pre-fixed point, and the all-zero initialization satisfies the hypothesis automatically for ReLU or clipped activations, since .
Corollary 17. Under the hypotheses of Theorem 17 with , the game is monotone. Hence whenever .
Nets that satisfy conditions of Theorem 17 are those with max aggregator and matrices A and B with non-negative weights (Theorem A2 in appendix). If all weights are non-negative integers, the activation function is clipped, and the initial embeddings are integer valued, the vocabulary is finite.
The order is what turns the dynamical system from an unconstrained automaton into a stable, terminating one: forcing each vertex forward through a fixed ladder of states rules out cycles and oscillation. For finite vocabulary, the system is the trace of a cellular automaton over the graph, with local rule given by table T (Grattarola, Livi, and Alippi 2021).
Why compile the game rather than the run itself? Evaluating a fixed-point formula on a finite graph is an iteration over tuples of vertex sets that stabilizes in rounds; the net's run instead traverses a possibly infinite set of transient embeddings, possibly over infinite time. A finitary formula can therefore track the net only through a finite quotient of its state space, and the game is exactly that quotient with its induced dynamics. The lim-inf acceptance of Pflueger, Tena Cucala, and Kostylev (2024) and the GML characterization of (Ahvonen et al. 2024) are trajectory-dependent semantics, but they are infinitary or non-effective. At convergence the limits satisfy , a system that in general has several solutions, of which the transients select one; fixed-point logic can only name the extremal, iteratively generated solutions. Admissibility says the dynamics selects the solution iteration does.
Translating Recurrent Nets into IFP
We work with inflationary fixed-point logic (IFP) over a relational signature . Over finite structures (our target), IFP is equivalent to least fixed-point logic (LFP) (Gurevich and Shelah 1986), but it has a simpler syntax and semantics.
For formula in , where and is a new relation of arity , the IFP constructor is where is a tuple of terms of size . Such a formula holds iff where is the inflationary fixed point of the one-step formula ; see appendix. IFP is extended to fixed points of multiple relations, simultaneously, by considering vectors of relations defined by a vector of one-step relations. Then, iff belongs to .
Theorem 14 (IFP Compiler). Let be a regular net for the atomic types in ATP with finite vocabulary , and whose game is admissible and ordered, but no game monotonicity required. There is a vector of 1-step unary relations such that
characterizes the net; i.e., for pointed graph and index iff .
Examples
Reachability of red vertices in graphs with black and red vertices can be solved with a net that implements a Boolean propagator: vertex gets a mark if it is already marked, or some neighbor is marked. The net has atomic types , width , clipped activation, and initial embeddings, and , that are fixed points of isolated vertices. By Theorem 17 (and A2 in appendix), the net is regular, the game is admissible and ordered over , and the table is:
| Atomic type | Neighborhood | |
|---|---|---|
| black | 0 | |
| black | 1 | |
| red | any | 1 |
The compiler yields the one-step IFP formulas:
that match the standard one-step formulas for reachability.
Contractive net. The same atomic types, width, and initial embeddings, but with parameters and for , , and . The fixed-point embeddings for isolated black and red vertices and , resp., are reached through infinite oscillating transient sequences. The emergent vocabulary is finite and ordered, , with table:
| max S | ||
|---|---|---|
| 0 | ||
The net meets the required properties (Proposition A5 in appendix), but neither Theorem 17 nor Theorem 17; illustrating that the class extends beyond the two sufficient conditions.
Equivalence with
We now establish the paper's central result: the vertex queries implementable by RATCHET nets are exactly those definable in the fragment of modal -calculus. The formulas in modal -calculus, denoted as , over a set of atomic propositions and propositional variables are:
For the evaluation of formulas at pointed graphs (semantics) see elsewhere, e.g., (Arnold and Niwiński 2001).
A closed formula is in if it is built from literals , conjunction, disjunction, , and only; it is in if it is built from literals, conjunction, disjunction, , and only. The two classes are dual: negating a formula and pushing negation to the atoms yield a formula and vice versa. is the closure of under Boolean connectives; equivalently, the Boolean closure of alone. Every formula is alternation-free, but does not contain the first level : it excludes least fixed points that use and greatest fixed points that use , such as (well-foundedness) and (existence of an infinite path). Proposition 17 shows this exclusion is forced: those formulas are not computable by any RATCHET net, so , not the first level and not the alternation-free fragment, is the exact target for equivalence.
has a semantic reading that matches our dynamics. A formula true at is true on some finite truncation of the unfolding and remains true on every extension. Dually, a formula that fails is refuted on a finite truncation. is the Boolean closure of finitely verifiable and finitely refutable properties, the branching-time analogue of the obligation class of Manna and Pnueli (1990).
Theorem 17 (Net-to-logic). Let be a RATCHET net with vocabulary of size . There are formulas such that for any pointed graph and : iff .
Theorem 17 answers, for the counting-free, fragment, the converse question that Bollen et al. (2025) leave open in the graded setting. Its proof compiles the table into an intermediate system of mutually recursive, guarded, negation-free fixed-point definitions (one per vocabulary element, with one disjunct per row of ) and then flattens this system into closed formulas with Bekič's elimination (Arnold and Niwiński 2001). This two-stage process determines the size of the output, which we measure against the quotient table . The size of the intermediate system, equivalently, the simultaneous IFP formula in Theorem 14, is linear in when measured as a system with shared definitions (each row and each curr defined once and referenced); written out as a tree it incurs an additional factor . The closed formulas in may be of exponential size because of Bekič's elimination. Theorem 17 provides two guarantees of different strength: the closed terms always exist and are computable from the net, while the linear size bound holds for the system of definitions from which they are flattened. Considering the system as the primary output of the Theorem is consistent with practice in verification, where the linear-time model-checking algorithms for the alternation-free -calculus evaluate such equation systems directly, without constructing a flattened closed formula (Andersen 1994; Cleaveland and Steffen 1991; Vergauwen and Lewi 1994).
The other direction maps formulas over propositions that capture atomic types into RATCHET nets. Propositions that do not correspond to atomic types can be accounted for by considering the different Boolean valuations.
Theorem 17 (Logic-to-net). For every formula , there is a RATCHET architecture and register index such that for any pointed graph : iff .
Theorem 17 is the counting-free counterpart of Bollen et al.'s Theorem 5.1. Its proof realizes the classical cluster-elimination method for alternation-free equation systems. The proof is aggregator-agnostic; only graded modalities would require threshold-sum registers and hence multisets, and whether this route yields a simpler graded construction than the halting-and-counting apparatus of Bollen et al. is open. What blocks going beyond is that stabilization over a finite vocabulary is a flat, one-timescale process.
Besides the theorems, regularity is identified as the semantic condition matching -calculus: both make the limit value at a vertex depend only on the limit value at its neighbors, not on the trajectory by which the limits are reached. Admissibility and finiteness play complementary roles: they are not needed to state what a regular net's fixed points are, but they make those fixed points computable by a terminating procedure and the resulting formula finite.
The fragment is also a ceiling as shown by Proposition 17 which assumes only regularity, finite vocabulary, and admissibility but no ordered or monotone game. The proof exploits a blind spot of stabilization. On a directed path and on a self-loop, every vertex feeds the game the same local information, so both runs traverse the same sequence of table values; since is finite, this sequence stabilizes at some . Admissibility then assigns the head of any path of length , where no infinite path exists, and the self-loop, where one does, the same limit . Thus, any readout must give both instances the same verdict, while and its relatives assign them different truth values. It is open whether the fragment is a ceiling for undirected graphs.
Proposition 17 (Barrier). Let be a converging regular net with finite vocabulary whose game is admissible (ordering and monotonicity are not assumed). Then, Net does not compute the queries: , , , and .
Corollary 17. Over finite pointed graphs, as classes of unary queries: (i) , witnessed by and ; and (ii) is strictly contained in the alternation-free fragment, witnessed by EF EG p.
Examples
Let’s apply the net-to-logic translation to the previous example that is ordered , and monotone (by table inspection). We obtain the formulas: (black sink), (red sink), (b ) (black, with successors, all of them black sinks), and (everything else). Interestingly, this net, despite infinitely many transient embeddings, computes a fixpoint-free query of modal depth 2.
On the other hand, let us consider the formula over a graph with atomic types (red, black and green). is the classic example for reachability–safety Boolean combinations (reach the red avoid the green). The logic-to-net translator gives a net of width 2 (after simplification) that tracks the two fixed point computations for reachability and safety. A further application of the net-to-logic recovers (see appendix).
Experimental Validation
We implemented both compilers and ran a differential test: for 13 branching-time properties drawn from the model-checking literature, we compile to a net, extract the game table from that net, compile the table back into an equation system, and compare its denotation against an independent reference evaluator of , on random pointed graphs per property. Across 9,960 pointed-graph checks there is not a single discrepancy. The property suite, graph generation, seeds, and per-property true/false splits are in the appendix.
Related Work
Depth-bounded GNNs and logic. The correspondence between depth-bounded GNNs and FOL with counting is well understood (Xu et al. 2018; Morris et al. 2019; Barceló et al. 2020; Grohe 2024); the translation for depth-bounded nets build on this line, providing ingredients for the recurrent case, where the main contribution lies.
Pflueger, Tena Cucala, and Kostylev (2024), hereafter PTK, characterize two convergence regimes of recurrent GNNs (stabilization-based RecGNNs and size-dependent GSGNNs) as the bisimulation-invariant fragments of monadic monotone fixpoint logics, via van Benthem–Rosen style theorems, and establish the strict hierarchy fixed-depth RecGNN GSGNN. Their characterization is existential and their lim-inf acceptance is non-effective: no finite run certifies stabilization, membership of a given net cannot be decided, and no size bounds are provided. Our admissibility conditions are checkable from the weights (Theorems 17 and 17), and both compilers are constructive with explicit size bounds against the quotient table.
Uniform expressivity and other aggregations. Rosenbluth and Grohe (2026) characterize the computational power of recurrent sum-GNNs with finite-precision parameters and a completion-bit output: given the graph size as input, they compute every computable vertex function invariant under color refinement. This is a computational-completeness question under counting; ours is an effective logical characterization under convergence, without counting or size information. Schönherr and Lutz (2026) give logical characterizations of depth-bounded GNNs with mean aggregation, further evidence that the aggregator determines the target logic: counting logics for sum, their logics for mean, and, in the recurrent setting, for set-based aggregation.
Halting and converging recurrent GNNs. Bollen et al. (2025), hereafter BOL, equip recurrent GNNs with an explicit halting classifier and prove (their Theorem 5.1) that the resulting model expresses every node classifier definable in the graded -calculus ( GML), with termination checkable in finite time; the construction requires a dedicated halting output driven by a multi-stage counting algorithm. They leave open two questions: the converse, whether every halting recurrent GNN classifier falls within GML, and whether GML survives fully convergent termination, where the entire feature vector stabilizes. Bollen and Vansummeren (2026), hereafter BV, answer the second question affirmatively over undirected graphs: every GML classifier is expressible by a converging sum-aggregation net. Their “traffic-light” protocol lets a converging run synthesize internally the stabilization certificate that BOL’s halting classifier supplies externally. For the converse, both works observe that a characterization relative to MSO would follow from a graded extension of finitary Janin–Walukiewicz (Colcombet, Doumane, and Kuperberg 2025), which remains open.
Our results interlock as follows. Theorem 17 is the counting-free counterpart of BOL's Theorem 5.1, obtained without halting classifier or counting apparatus; Theorem 17 answers the converse for unconditionally and constructively: our compiled formulas are guarded and jointly positive by construction and set-based fixed points are bisimulation-invariant, so no Janin–Walukiewicz-style theorem, finitary or graded, is needed. Proposition 17 explains the division of labor. BV's certificate synthesis rests on counting: the counters of BOL's algorithm grow with the graph, so the resulting converging nets have infinite vocabulary in our sense and are not regular. The certificate that an inner fixed point of opposite polarity has stabilized can thus be supplied externally by a halting signal (BOL), manufactured internally by unbounded counting (BV), or is provably unavailable: over a finite vocabulary, no regular admissible net obtains one (Proposition 17), and is exactly what remains. Three contrasts delimit the comparison. BV's equivalence holds over undirected graphs, and their simulation breaks on directed graphs. Their convergence demands exact stabilization in finitely many steps, while our class also admits asymptotic convergence. And their GML upper bound is relative to MSO and conditional, whereas our correspondence is absolute for the class, effective with size bounds, and checkable from the weights.
Ahvonen et al. (2024) characterize recurrent GNNs under a third acceptance condition, a node accepts if it ever reaches an accepting feature vector, which likewise carries no effective termination guarantee: with reals, the model matches GML, an infinitary extension of graded modal logic; with floats, the rule-based logic GMSC. Their acceptance semantics expresses classifiers outside GML while precluding nested fixpoints, so its power is incomparable with the graded -calculus. Like BOL, this line rests on the counting power of multiset aggregation; our set-based restriction yields finitary formulas with size bounds stated against the table.
Max-aggregation GNNs and Datalog. Tena Cucala and Cuenca Grau (2024) connect max-aggregation GNNs to Datalog with negation-as-failure, entirely in the depth-bounded setting. The translation is based on a finiteness argument which is intrinsic to the max aggregation. Our translation is based on the finiteness of the types, which is more robust and works for any aggregation and combination function. Unlike us (or PTK, BOL, Ahvonen et al.), they also train and evaluate GNNs on knowledge-graph benchmarks, and report exactly the blow-up we discuss after Theorem 17: the full equivalent program is typically too large to compute, and they extract small fact-specific explanations instead.
Conclusions
We introduced regularity, a semantic condition under which a converging recurrent GNN's fixed-point embeddings factor through the fixed points of a vertex's neighbors alone, and admissibility, the operational condition under which the convergent process can be traded for a dynamical system over the (finite) vocabulary. Contraction and monotonicity, checkable directly from the weights, are sufficient for both. For the resulting class of RATCHET nets we gave a compiler into inflationary fixed-point logic and, centrally, an effective two-directional correspondence with the alternation-free modal -calculus – linear in the quotient table (net-to-logic, at the level of systems) and in the source formula (logic-to-net), with the single caveat that flattening into one closed term can blow up exponentially. Unlike prior characterizations built on multiset aggregation, the correspondence needs no external halting signal, no non-effective acceptance condition, and no appeal to Janin–Walukiewicz-style completeness. We answer the natural counting-free analogue of the converse question Bollen et al. (2025) leave open, not the question itself. The gap is not just counting, since genuine alternation is beyond stabilization with a finite vocabulary, and Bollen and Vansummeren (2026) have shown that, over undirected graphs, the halting apparatus can be internalized into a converging run at the price of counters that grow with the graph; Proposition 17 shows this price cannot be avoided over a finite vocabulary, so closing the gap in the counting-free setting requires leaving the finite-vocabulary regime or a genuinely nested generalization of our convergence notion.
Two limitations should be stated plainly. The compiler applies to nets satisfying the RATCHET conditions; convergent trained networks that are not regular, monotone, or ordered fall outside its scope, and characterizing exactly which weight configurations qualify is open. Second, all results concern finite graphs, and our examples are illustrative rather than empirical: applying the compiler to trained recurrent GNNs, and reporting the size and readability of the extracted formulas, is the natural next test, as is working out the graded alternation-free extension sketched above.
Proposition 17 shows the correspondence is tight: the queries , , and the alternation-free EF EG p are computed by no regular admissible net, hence (by Theorem 17) not expressible in . Lifting the correspondence to the first level of the alternation hierarchy, or to the alternation-free fragment, therefore requires enriching the convergence notion with stabilization certificates, the role played, in the graded setting, by the halting classifier of Bollen et al. (2025), or by the unbounded counters that internalize it (Bollen and Vansummeren 2026).
References
Ahvonen, V.; Heiman, D.; Kuusisto, A.; and Lutz, C. 2024. Logical Characterizations of Recurrent Graph Neural Networks with Reals and Floats. In Advances in Neural Information Processing Systems (NeurIPS), volume 37, 104205–104249.
Andersen, H. R. 1994. Model checking and Boolean graphs. Theoretical Comp. Sci., 126(1): 3–30.
Arnold, A.; and Niwiński, D. 2001. Rudiments of -Calculus, volume 146 of Studies in Logic and the Foundations of Mathematics. Amsterdam: North-Holland. ISBN 978-0-444-50620-7.
Barceló, P.; Kostylev, E. V.; Monet, M.; Pérez, J.; Reutter, J.; and Silva, J. P. 2020. The logical expressiveness of graph neural networks. In ICLR.
Bollen, J.; Van den Bussche, J.; Vansummeren, S.; and Virtema, J. 2025. Halting Recurrent GNNs and the Graded -Calculus. In Proceedings of the 22nd International Conference on Principles of Knowledge Representation and Reasoning (KR 2025), 175–184.
Bollen, J.; and Vansummeren, S. 2026. On Halting vs Converging in Recurrent Graph Neural Networks. arXiv:2604.25551.
Cai, J.-Y.; Fürer, M.; and Immerman, N. 1992. An optimal lower bound on the number of variables for graph identification. Combinatorica, 12(4): 389–410.
Cleaveland, R.; and Steffen, B. 1991. A linear-time model-checking algorithm for the alternation-free modal -calculus. In Computer Aided Verification, volume 531 of Lecture Notes in Computer Science, 318–327. Springer.
Colcombet, T.; Doumane, A.; and Kuperberg, D. 2025. Tree Algebras and Bisimulation-Invariant MSO on Finite Graphs. In Proc. ICALP, volume 334, 152:1–152:16.
Dudzik, A. J.; and Veličković, P. 2022. Graph Neural Networks are Dynamic Programmers. In Advances in Neural Information Processing Systems (NeurIPS), volume 35, 20635–20647.
Grattarola, D.; Livi, L.; and Alippi, C. 2021. Learning Graph Cellular Automata. In Advances in Neural Information Processing Systems, volume 34.
Grohe, M. 2017. Descriptive Complexity, Canonisation, and Definable Graph Structure Theory, volume 47. Cambridge University Press.
Grohe, M. 2024. The Descriptive Complexity of Graph Neural Networks. TheoretiCS, 3(25): 1–93.
Gu, F.; Chang, H.; Zhu, W.; Sojoudi, S.; and El Ghaoui, L. 2020. Implicit Graph Neural Networks. In Advances in Neural Information Processing Systems, volume 33, 11984–11995.
Gurevich, Y.; and Shelah, S. 1986. Fixed-point Extensions of First-Order Logic. Annals of Pure and Applied Logic, 32: 265–280.
Ibarz, B.; Kurin, V.; Papamakarios, G.; Nikiforou, K.; Bennani, M.; Csordás, R.; Dudzik, A. J.; Bošnjak, M.; Vitvitskyi, A.; Rubanova, Y.; Deac, A.; Bevilacqua, B.; Ganin, Y.;
Blundell, C.; and Veličković, P. 2022. A Generalist Neural Algorithmic Learner. In Proceedings of the First Learning on Graphs Conference (LoG), volume 198 of PMLR.
Manna, Z.; and Pnueli, A. 1990. A hierarchy of temporal properties. In Proc. PODC, 377–408.
Morris, C.; Ritzert, M.; Fey, M.; Hamilton, W. L.; Lenssen, J. E.; Rattan, G.; and Grohe, M. 2019. Weisfeiler and Leman go neural: Higher-order graph neural networks. In AAAI, 4602–4609.
Pflueger, M.; Tena Cucala, D.; and Kostylev, E. V. 2024. Recurrent Graph Neural Networks and Their Connections to Bisimulation and Logic. In Proc. AAAI, 14608–14616.
Rosenbluth, E.; and Grohe, M. 2026. Repetition Makes Perfect: Recurrent Graph Neural Networks Match Message Passing Limit. In Proc. AAAI, 25168–25175.
Scarselli, F.; Gori, M.; Tsoi, A. C.; Hagenbuchner, M.; and Monfardini, G. 2008. The graph neural network model. IEEE transactions on neural networks, 20(1): 61–80.
Schönherr, M.; and Lutz, C. 2026. Logical Characterizations of GNNs with Mean Aggregation. In Proceedings of the 40th AAAI Conference on Artificial Intelligence (AAAI). AAAI Press.
Tena Cucala, D. J.; and Cuenca Grau, B. 2024. Bridging Max Graph Neural Networks and Datalog with Negation. In Proc. KR.
Tena Cucala, D. J.; Cuenca Grau, B.; Kostylev, E. V.; and Motik, B. 2022. Explainable GNN-Based Models over Knowledge Graphs. In Proc. ICLR.
Veličković, P.; Ying, R.; Padovano, M.; Hadsell, R.; and Blundell, C. 2020. Neural Execution of Graph Algorithms. In International Conference on Learning Representations (ICLR).
Vergauwen, B.; and Lewi, J. 1994. Efficient local correctness checking for single and alternating Boolean equation systems. In International Colloquium on Automata, Languages, and Programming, volume 820 of Lecture Notes in Computer Science, 564–575. Springer.
Weisfeiler, B. Y.; and Leman, A. A. 1968. Reduction of a graph to a canonical form and an algebra which appears in the process. Nauchno-Tekhnicheskaya Informatsiya, 2(9): 12–16.
Wittig, S.; Vasileiou, A.; Nerem, R. R.; Stoll, T.; Geerts, F.; Wang, Y.; and Morris, C. 2026. Which Algorithms Can Graph Neural Networks Learn? arXiv:2602.13106.
Wolfram, S. 2002. A New Kind of Science. Wolfram Media. ISBN 978-1-57955-008-0.
Xu, K.; Hu, W.; Leskovec, J.; and Jegelka, S. 2018. How Powerful are Graph Neural Networks? In ICLR.
Xu, K.; Li, J.; Zhang, M.; Du, S. S.; Kawarabayashi, K.-i.; and Jegelka, S. 2020. What Can Neural Networks Reason About? In International Conference on Learning Representations (ICLR).
Xu, K.; Zhang, M.; Li, J.; Du, S. S.; Kawarabayashi, K.-i.; and Jegelka, S. 2021. How Neural Networks Extrapolate: From Feedforward to Graph Neural Networks. In International Conference on Learning Representations (ICLR).
Suppl. Material for Paper #9709: Recurrent Graph Neural Networks with Set-Based Aggregation
Appendix for section: Finite Types and Their Embeddings
Theorem 17. Let be a parameter, let be a pointed graph, and let be a layer index within the architecture. Then, for .
Proof. By direct induction on the layer index .
Theorem 17 (Compiler). Let be a parameter of the architecture . Then, iff .
Proof. By direct induction on the layer index .
Appendix for section: Recurrent Nets
Lemma 17 (Bisimulation invariance). Let and be two pointed (finite) graphs. Then, and are bisimilar, written as , iff . Hence, if , then .
Proof. A bisimulation between and is a relation such that for every :
• (atoms) ;
• (forth) for every with there is with and ; and
• (back) symmetrically.
The pointed structures and are bisimilar, , iff there is a bisimulation such that . We use the fact that types refine: determines , as the latter is the first component of the former. Hence agreement of types at level implies agreement at of types at every level below .
(⇒). Let be a bisimulation. We show by induction on that for every . The base case is direct by the atom condition: . For the inductive step, write and . The first components agree by inductive hypothesis. For every with , the forth condition yields with and , so by the inductive hypothesis; hence . The back condition gives . Thus . Therefore, if , then .
(⇐). Define . We verify is a bisimulation. Let ; i.e., . The (atoms) condition holds since . For (forth), let such that . For each , equality gives equality of the neighbor-type sets at level , so there is a neighbor of with . Since has finitely many neighbors, some fixed neighbor occurs as for infinitely many . By refinement, then holds for every ; i.e., and thus . The (back) condition is symmetric.
Finally, is by definition a function of the infinite type, . Thus, bisimilar (finite) pointed graphs, having equal infinite types, receive equal limit embeddings.
Theorem 17. Let be a regular net for the atomic types in ATP, and let and be pointed graphs of the same atomic type . If , then .
Proof. Direct by definition of regular nets.
Theorem 17 (Contractive nets). Let be a recurrent net over the atomic types in ATP, and let be a norm in . Then:
-
If the net is contractive for and the aggregator is 1-Lipschitz for , the net is converging.
-
If the net is converging and contractive in z for , the net is regular and the vocabulary is well defined.
-
If the net is contractive and the aggregator is 1-Lipschitz (both) for , the net is regular, the vocabulary is well defined, and the game is admissible.
Proof. Claim 1. Fix a graph with vertices, consider tensors that assign embeddings to vertices in the graph, and define the mapping as . Lift the norm to such tensors as .
We show that is a contraction for . Let and be two tensors, and let and for vertex where is 's neighborhood. Then,
where the first inequality is by the contraction of the net, and the second since is 1-Lipschitz. By Banach's fixed-point theorem, there is a unique fixed-point satisfying , and the sequence converges to from any starting point . Notice that we apply Banach's fixed-point theorem to fixed graph , yet the contraction factor is the same for every graph.
Claim 2. We show two things: the net is regular and the vocabulary is well defined. Fix a pointed graph of atomic type , and let denote .
The net is regular. We need to show where and with :
which goes to 0 as . Therefore, the limit exists and it is equal to .
The vocabulary is well defined. It is sufficient to show that exists for every finite subset of embeddings. We show that the sequence and is Cauchy. This is direct since is a contraction.
Claim 3. By Claim 1 the net is converging. Contractivity implies Contractivity in (take ), so by Claim 2 the net is regular and the vocabulary is well defined. Hence, and the game are defined. It remains to show admissibility; i.e., as for every pointed graph .
Fix graph and let , which is finite since is a finite graph. Let be the atomic type of , let be 's neighborhood, and set and . By regularity, , and by the definition of the game .
If then , so and . Otherwise, since is the unique fixed point of for every finite :
If the maximum is attained by the first argument, with , forcing . If it is attained by the second argument, 1-Lipschitz gives
In every case , so and therefore with . Since , as . That is, for every vertex , and the game is admissible. Moreover, since does not depend on , the convergence is uniform over all graphs.
Theorem A1 (Sufficient Conditions for Contractive nets). Let be a recurrent net for the atomic types in ATP.
-
If the aggregator ⊕ is the point-wise maximum, the aggregator is 1-Lipschitz for .
-
Let be a 1-Lipschitz for activation function (e.g., tanh, sigmoid, ReLU or any clipping ), and consider the maximum absolute row sum norm over matrices. If , the net is a contraction in for . If , the net is a contraction for .
Proof. Claim1. Let be a pointed graph, let be a subset with vertices, and let and be two sets of embeddings indexed by the vertices in : the embeddings in (resp. ) are denoted by (resp. ) for . We need to show that the max aggregator is 1-Lipschitz for .
For register , assume without loss of generality :
where is the index such that . Hence,
Claim 2. Let be an atomic type, let and be two embeddings, and let and be two vertex-indexed finite sets of embeddings. Then, for :
where the first inequality is from 1-Lipschitz of activation, the second by triangle inequality, the third by properties of the mars norm (it is the induced operator norm for ), and the last by the definition of . If , the term . Hence, if , the net is a contraction for for , and the net is a (full) contraction for if .
Theorem 17 (Monotone nets). Let be a converging net over the atomic types in ATP. Assume the initial embeddings are non-negative pre-fixed points of the isolated-vertex update: for . Then:
-
If the net is monotone, the vocabulary is well defined.
-
If the net and the aggregator are both monotone, the net is regular, and the game is admissible and ordered.
Proof. Throughout denotes the component-wise partial order on . Aggregator monotonicity is used in the indexed form: if and with for every , then . We also use for finite sets of non-negative embeddings.
Claim 1 (vocabulary). We show by induction that for every and finite set of non-negative embeddings, the canonical sequence and is -non-decreasing, its limit exists, and is the least fixed point of above . Hence, the vocabulary is well defined and consists of non-negative embeddings.
First, we show by induction on . The base case is
since is pre-fixed point of , and . The inductive step:
where the inequality follows by the inductive hypothesis . Therefore, the limit exists. Indeed, is the least fixed-point of that is above . (Notice the third argument for the net is “frozen” at requiring no monotonicity of the aggregator).
is the set of initial embeddings which are all non-negative. Thus, is well-defined and consists of non-negative embeddings as well. Inductively, the vocabulary which is the closure of is well defined, and consists of non-negative embeddings.
Lemma A (Monotonicity of the table). For every and finite sets of non-negative embeddings. If , then .
Proof of Lemma: Let and be the canonical sequences for and , respectively. First, we show by induction on : for every . The base case is the equality . By inductive hypothesis . Therefore, by the monotonicity of the net since . Second, pass to the limit to get . In particular, for every such .
Claim 2 (regularity, admissibility, order). Fix a graph , let be a vertex of atomic type , and write
-
for the net's synchronous run: , and ,
-
for its limit,
-
for the final embeddings of 's neighbors, and
-
for the game's run: , and with .
Step 2a (regularity). By definition, the net is regular iff . We show for every vertex and layer . Indeed, suppose that this is not true, and let be a minimum layer index and a vertex such that . Clearly, since by Lemma A. Since is minimum, and for neighbor of . The monotonicity of the aggregator and inductive hypothesis gives . Apply the monotonicity of the net to get
where the last equality is because is a fixed point of . This contradicts the supposition. Hence, for every vertex and layer . Passing to the limit (as the net is a continuous function) yields .
Since for , for each vertex . The pre-fixed point hypothesis and monotonicity of the net give , and inductively . Hence . Since is also a fixed point of above , and is the least fixed point above , then . Hence, the net is regular.
Step 2b: the game's run is ≤-non-decreasing. We show by induction on , for every vertex . Base case: by Lemma A, since . Inductive step: if for every vertex , then by the monotonicity of the aggregator (both sets indexed by ). Hence, by Lemma A.
Step 2c: admissibility. Two bounds sandwich the run of the game.
(i) for every , by induction on . The base is directly by Lemma A and regularity, since . If for every , then , so by Lemma A and regularity.
(ii) for every , by induction on . The base is since the canonical sequence for is non-decreasing from . For the inductive step, note that for every (for by Lemma A's final remark; for because , as in Step 2b). Then, , using, in order: the inductive hypothesis with net and aggregator monotonicity; with net monotonicity; and the fixed-point property of .
By Steps 2b and (i), is component-wise non-decreasing and bounded above by , hence converges to some . By (ii), passing to the limit, . Hence for every vertex of every graph; that is, the game is admissible.
Step 2d: order. By Step 2b, the restriction of the component-wise order ≤ to V witnesses Definition 10's condition: take ≤ equal to the restriction of ≤ to V. Definition 10 requires an order, not a total one, so no extension is needed.
Corollary 17. Under the hypotheses of Theorem 17 with , the game is monotone. Hence whenever .
Proof. By Theorem 17, the vocabulary consists of non-negative embeddings and the game order is the restriction of the component-wise order to (Step 2d in proof of the theorem). Let ; i.e., every is -dominated by some . If then , since all embeddings in are non-negative. Otherwise, fix a register . For every there is with , hence . Taking the maximum over gives , and since is arbitrary, . By Lemma A, .
Theorem A2 (Sufficient conditions for monotone nets). Let be a recurrent architecture over the atomic types in ATP with an aggregator that is 1-Lipschitz.
-
If (i.e., non-negative weights), the net is monotone for .
-
If have non-negative integer weights, the net has clipped activation, and the initial embeddings are integer valued, the vocabulary is finite.
Proof. Claim 1. Let z and be embeddings, and S and be finite sets of embeddings. If and , for every :
Claim 2. Under the assumptions, the embeddings in the vocabulary are integer valued and bounded. Therefore, there is a finite number of them.
Appendix for section: Translating Recurrent Nets into IFP
Let us be more precise about the syntax and semantics of IFP. For formula in , where and is a new relation of arity , the IFP constructor is
where is a tuple of terms of size . The semantics is in terms of the inflationary fixed-point where and , for a -structure with universe . That is, at stage , when constructing the set , the relation inside is interpreted as . Since , the sequence converges in at most steps for any finite structure . Then iff . The syntax for IFP is simpler than the syntax for LFP as no requirements on the “one-step” formula are imposed.
IFP is extended to fixed-points of multiple relations, simultaneously, by considering vectors of relations instead of the single relation . The denotation of each relation is initially empty, and they are extended (in parallel) with formulas that may use the relations . The syntax for the inflationary fixed-point is and such a formula holds when the term belongs to .
We construct an IFP formula to capture the convergence of an admissible and ordered game over a finite vocabulary . The idea is to construct unary relations for each index , where , to capture . We use the order on obeyed by the game.
Let be the finite quotient table that describes the net, and consider the vector of unary relations. The one-step formula consists of formulas that define the initial embeddings and their evolution according to :
where the auxiliary formulas are:
Theorem 14 in main text becomes the following Definition A3 and Theorem A4:
Definition A3 (IFP Compiler). Let Net( , , ) be a regular architecture for the atomic types in ATP that have finite vocabulary V, and admissible and ordered games. The characterization of the recurrent net is the vector such that
Theorem A4. Let Net( , , ) be a regular net for the atomic types in ATP that has finite vocabulary V and whose game is admissible and ordered, and let be its characterization. For every pointed graph and , iff .
Proof. Let be a graph, let be the game run for graph , and let be the sequence of interpretations computed by the IFP semantics of [ifp ].
Lemma B. For , iff for some . (The shift on the index is due to the fact that whereas is already an embedding.)
Proof of Lemma: By induction of :
- Base case .
(⇒). Assume . Hence, since is empty, . Then, there is such that and implying .
(⇐). Assume . Then, .
- Inductive step .
(⇒). Assume . Two cases: or . In the first case, by inductive hypothesis, for some . In the second case, by definition, there is such that and . That is,
By definition, holds iff and , for . Therefore, by inductive hypothesis, holds iff for some , and for all and . Since the game is ordered, holds iff . Hence, the vertex satisfies , and implying .
( ). Assume for some . We need to show . Two cases: or . In the first case , by inductive hypothesis, which implies since .
Second case . Since the game is ordered, . Therefore, there is such that , , and .
Let be a vertex such that . By inductive hypothesis, where . On the other hand, since the game is ordered, for and . Hence, holds. Likewise, if , there is vertex such that and . Therefore, which implies .
Lemma C. For , .
Proof of Lemma: If , then and for since the game is ordered. Hence, . Conversely, assume . By definition, and for . By Lemma B and ordered game, .
At the fixed point, iff . Hence, iff has converged to iff (since the game is admissible).
Definition A3 and Theorem A4 require no monotonicity: the one-step formulas contain negation of the quantified predicates. This is the precise sense in which the IFP compiler is more general than the compiler below that require the game to be monotone, but output formulas. In exchange, the size of the IFP formula is linear in .
The next proposition shows that the contractive net of the second example satisfies the conditions for applying the compiler. Namely, it is a converging regular net with finite vocabulary and whose game is admissible, ordered and monotone.
Proposition A5 (Second example). The net of the second example is converging and regular; its vocabulary is with the table of the main text; and its game is admissible, ordered by , and monotone.
Proof. Write (with value 0 for vertices without successors) so that .
Drift Lemma. If with , then , the unique fixed point of : since is 1-Lipschitz, .
Convergence and limits. After one step every vertex satisfies : for black, , and for red, . Consequently, at step 2 every vertex with at least one successor has , i.e., exactly 1. Now classify vertices by :
(a) (no successors): , a contraction with fixed point 1/3 (black) or 2/3 (red); the run converges there, oscillating.
(b) (u reaches a cycle): every cycle vertex has a successor, so it equals 1 at step 2, and its aggregate from step 2 on includes its cycle successor, keeping it at 1 thereafter; by induction on the distance to the cycle, every vertex reaching a cycle is 1 from some step on, so .
(c) : by induction on , each successor's run converges, so of the successors' limits, and the drift lemma gives equals the unique fixed point of . Evaluating the fixed points: gives 1/3 (black) and 2/3 (red); gives 7/9 (black: has fixed point 7/9) and 1 (red: ); and gives 1 for both types.
This reproduces the table row by row, shows every reachable limit lies in , and closing under the rows yields exactly .
Regularity. By (a)–(c), equals the fixed point of with equal to the max of the successors' limits; since the map is a contraction in , the frozen run from converges to that same fixed point, i.e., .
Game. . Vertices without successors stay constant. A vertex whose successors all lack successors reaches its final row value at and stays (its successors are constant): runs or jumps to . Any other vertex has a successor whose value is from on, hence equals from on. All runs are
-chains (the table rows are non-decreasing in max ), the limits coincide with case by case, and monotonicity holds since implies and the rows are non-decreasing in (this last because if every is dominated by some , then since the vocabulary is non-negative and totally ordered, and the rows are non-decreasing in by inspection of the table; cf. Corollary 17).
Appendix for section: Equivalence with
Theorem 17 (Net-to-logic). Let be a RATCHET net with vocabulary of size . There are formulas such that for any pointed graph and : iff .
Proof. Let be a finite graph. Define the subsets for . For subsets , define as
These are guarded formulas jointly positive in by construction (no negation appears). Note also that contains no universal quantification over neighbors, unlike Definition 4, only the witnessing half of the neighborhood description is asserted. This is sound because is an up-set and the game is monotone (additional neighbor values can only move up the order; this is the content of the ( ) direction of Lemma 17), and it is what makes the compiled system -only.
The formula defines a vertex subset . Putting all of them together, we get the operator that maps . This operator is monotone and it has a least fixed point (-component wise) given by . Indeed,
Lemma 17 (Soundness). For every and vertex .
Proof of Lemma: Let where denotes . By regularity and admissibility, where .
-
( ) If , the row for satisfies , and every is witnessed by an actual neighbor (i.e., ). So, .
-
( ) Suppose is a row such that and for each , there is a neighbor such that . Then, . By monotonicity of the game, . That is, which implies . This is the only place in the proof where monotonicity of the game is needed.
Lemma 17 (Minimality). If is any tuple of vertex subsets such that for every , then for every .
Proof of Lemma: We show by induction on the claim: for every , and .
-
Base case. . If , the row satisfies giving . Hence, by assumption, .
-
Inductive step. Suppose the claim holds at , and let where . If , the row satisfies . For each , the witnessing neighbor has . By the inductive hypothesis, . Then, via this row, hence .
Since is finite and for all , forces eventual equality: there is such that for (a convergent sequence in taking values in a finite set is eventually constant). Let be a vertex in (i.e., ). Therefore , and by the claim . Hence, .
Construction of the formulas
First, translate the first-order formulas into formulas , syntactically, using
while preserving conjunctions and disjunctions.
Lemma 17. For every subsets and : .
Proof of Lemma: Direct.
Apply now variable elimination (or Bekić's principle) (Arnold and Niwiński 2001) to get formulas that characterize the least fixed-point of . That is, define and define for , . Next, define and for . Continue until has no variables.
Construct , and for :
These are formulas whose only operator is . Finally, set and where the cover of is the set of minimal embeddings that are strictly above , and is obtained syntactically by pushing the negation down to propositions, resulting in a formula with only operators. : each is a closed formula, and each , obtained by dualization, is a closed formula.
Correctness
We need to show . Let . By Lemma 17, is a fixed point of operator , and Lemma 17 shows is the least fixed point.
By Lemma 17, the operator induced by under ordinary modal semantics is the same operator . Thus, the least-fixed point of the -system is also . By Bekić elimination, the constructed satisfy iff , for every .
Finally, iff and for iff and iff .
Theorem 17 (Logic-to-net). For every formula , there is a RATCHET architecture and register index such that for any pointed graph iff .
Proof. By definition, we assume is equivalent to , where is a Boolean combination and each is a closed formula. Further, we assume the bound variables are uniquely named.
Registers. Enumerate the subformulas of the blocks bottom-up as (repetitions preserved) and let index the bodies such that and when is a fixed-point formula. Since blocks are , every bound variable is a -variable. The width of the net is , with one register per subformula and one register per bound variable. Registers are partitioned into core registers (those for subformulas lying inside a block and those for bound variables), and derived registers (the rest). Registers are also called “latch registers”, and the others “memoryless”.
Clusters. For each block , consider the directed graph over the bound variables in , with edges if appears within the scope of , and edges if appears as a free variable in the body for . A cluster is a strongly connected component in this graph, and the variable is the head of iff every other variable in is within the scope of .
Atomic types. As discussed above, we take the propositions in to be the atomic types of the graphs; abbreviates that type makes true. When the propositions are not disjoint or exhaustive, we shall consider their jointly Boolean valuations as the set of atomic types.
Initial embeddings and rules. The initial embedding assigns to registers of literal subformulas and (their value under ), and 0 to every other register. The update rules implemented by the parameters, ordered by register type, are:
| Form of | Posted rule for register |
|---|---|
| (Nothing; handled when solving the cluster's head) |
All rules fire synchronously, reading the previous step. The only aggregation is max; under the global convention this evaluates correctly at vertices without successors ( is false there). All rules are compositions of clip with affine maps of the current embedding and the aggregate, so the construction is an instance of the architecture with the pointwise maximum. All registers take values in (each rule maps Booleans to Booleans), so the reachable embeddings lie in .
Semantic states. Fix a graph and let be the environment assigning to each bound variable of its denotation in the simultaneous least solution of its block's equation system (equivalently, by Bekič's principle, the nested least-fixed-point semantics). The semantic state at vertex is:
-
for every subformula register, and
-
for every variable register.
By definition, iff . In particular, if is a closed block, iff .
Lemma G (Iteration). Let be a monotone self-map of for a finite set , and let satisfy and for every fixed point of . Then the iteration is non-decreasing, stabilizes within steps, and its limit is the least fixed point of .
Proof sketch: By induction: for every fixed point of . Each coordinate is Boolean and flips at most once. Hence, the run converges within steps to the least fixed point of .
Lemma H (Fixed points of the block map). Fix a graph and a block with register set , and let be the synchronous one-step map of the net restricted to , a self-map of . Then,
(a) f is monotone;
(b) a state z is a fixed point of f iff every memoryless register satisfies its rule with equality and every latch satisfies ,
(c) the variable part of every fixed point of f is a pre-fixed point of the body operator P, where is the value of at u under variable assignment w, while is a fixed point of f whose variable part is .
Consequently, on .
Proof:
(a) literal registers are per-type constants; every other core rule is a composition of min, max, copies, and max-aggregates of neighbor registers, each monotone.
(b) For memoryless rules, fixedness is the equality; for a latch, iff .
(c) Forward: composing the exact memoryless equations of a fixed point from each body down to variables and constants, the latch inequalities read on the variable part. Backward: the rules mirror the semantic clauses (min/max implement ; the max-aggregate implements , with matching falsity at successor-less vertices; copies match by definition of ), and at each latch equals the body's value, so the inequality holds with equality; the variable part of is by Bekič's principle.
For the consequence: since is a fixed point. Conversely any fixed point has variable part by Knaster–Tarski via (c), and its memoryless registers, exact monotone functions of the variables and constants, dominate as well; hence .
Lemma H applies verbatim when the aggregates of some or all ♢-registers are frozen at constants from a finite set : freezing only changes the constants of the memoryless equations, not the shape of the system.
Lemma I (Blocks reach their semantics). Let be a block of with register set , and fix a graph with vertices. Restricted to , the synchronous run of the net is non-decreasing, stabilizes within , and its limit is the semantic state: for every register and vertex .
Proof: The rules of read only registers of and per-type constants ( is closed and its machinery internal to the block), so the restricted run is the iteration of the monotone map of Lemma H(a). The initial state satisfies the hypotheses of Lemma G: literal registers start at their rules’ constant values, which every fixed point of shares by Lemma H(b), and all other registers start at , so and for every fixed point . By Lemma G the run is non-decreasing and stabilizes within steps at , which is by Lemma H.
Lemma J (Derived registers). If the inputs of a derived register converge, the register converges to the corresponding connective of the limits, with delay one.
Proof sketch: Each derived rule is a memoryless continuous function of its inputs; the embeddings always lie in .
Step 1: run of the net. Fix a graph with vertices. By Lemma I each block converges to its semantics. By Lemma J, at every vertex . The net converges on every graph within steps.
Step 2: vocabulary and regularity. For any finite , the frozen run is the single-vertex instance of Step 1 with the aggregates held constant. By the remark after Lemma H, this frozen system is again the iteration of a monotone map from a qualifying start, so by Lemma I it converges; derived registers follow by Lemma J. Therefore is defined, the vocabulary is well defined, and is finite.
By Lemma H applied to the frozen instance, is, on each block's core, the least solution of the memoryless equations with aggregates frozen at , subject to the latch inequalities. For regularity, fix with and ; blocks are closed, hence independent, and derived registers are determined by the core, so it suffices to prove on each block's core.
(≤) At the net’s limit all of the block’s equations hold at u with the neighbors at their limits, so restricted to the core solves the frozen system with aggregates from ; by leastness, .
(≥) Consider the global assignment that places 's core values at and 's core values at every other vertex. At all constraints hold by construction, since 's aggregates under this assignment are exactly those frozen from . At any other vertex , 's values enter only through max-aggregates and were only lowered, so by monotonicity of the rules 's equalities relax to inequalities of the form . The assignment is therefore a global pre-fixed point of the block map , hence dominates by Knaster–Tarski, and on the block's core by Lemma I. Reading off vertex gives . Hence : the net is regular.
Step 3: the game is ordered, monotone, and admissible. Define on by iff componentwise. This is a partial order on : every element of is a frozen-run limit, at which the derived equations hold exactly and no derived rule aggregates neighbors, so derived values are functions of same-vertex core values, and agreement on the core implies equality. Write for the definition in Definition 10.
Monotone. If , then for every core register the aggregate satisfies : each element of is dominated by an element of , and extra elements can only increase a maximum. The least local solution is monotone in these frozen aggregates (standard monotonicity of least fixed points in parameters), so , i.e., .
Ordered. and . Then, . If for all then , and monotonicity gives . That is, every run is a -chain.
Admissible. (i) by induction: the base is (monotonicity and regularity), and the inductive step is . (ii) by induction: the base is (aggregates from are the minimum, and the frozen run ascends from ). For the inductive step, (for by monotonicity from ; for since ), and then on the core, using the inductive hypothesis, the monotonicity of the core rules, and the fixed-point property of . By (i) the core of is non-decreasing and bounded by , hence converges; by (ii) its limit dominates ; so it equals on the core, and the derived registers, determined by the core on , follow. The game is admissible.
The net is therefore a RATCHET net, and by Step 1, .
The construction in Theorem 17 cannot be pushed further. A □ inside a μ-block (or, dually, a ♢ inside a ν-block) would make the game’s step-0 value evaluate the modality vacuously – correctly for the isolated vertex, but as an over-approximation that neighboring vertices then bootstrap from – and Proposition 17 shows the resulting failure of admissibility is not an artifact of this construction: no admissible net computes or . A fixed point over one of the opposite polarity fails one level higher for the same reason (EF EG p), which is where the halting machinery of Bollen et al. earns its keep.
Proposition 17 (Barrier). Let be a converging regular net with finite vocabulary whose game is admissible (ordering and monotonicity are not assumed). Then, Net does not compute the queries: , , , and .
Proof. Formally, “Net computes ” means there is a readout with for every pointed graph; any thresholded register is such an . Fix the atomic type of interest (for the formulas and any ; for the two -formulas, an with ) and define the sequence and in . Both families below use only vertices of type .
First family: directed paths Let have vertices , all of type , where is a sink. We claim for all by induction on . The base case is . For the inductive step: if , then is a sink, so . If , then 's only successor is , so
. Hence the game's run at constant from step on with value , and admissibility gives , so for every .
Second family: self-loop. Let be the single vertex of type with the edge . Its game run is and , i.e. exactly . Since is finite and is a function of , the sequence is eventually periodic. Since the game is admissible it converges in . An eventually periodic convergent sequence over a finite set is eventually constant. So there is a with for all , and , so .
Contradiction. Every path in is finite, and w lies on an infinite path. Hence,
-
For , EGp, and EFEGp (all of which assert the existence of an infinite path; in the last two cases, one path whose all vertices satisfy and . Thus, and .
-
For (well-foundedness) the two values are exchanged: the finite path is well-founded, so , while the self-loop is not, so . Again and .
In each case is forced to take both values at the single vocabulary element , contradiction.
Corollary 17. Over finite pointed graphs, as classes of unary queries: (i) , witnessed by and ; and (ii) is strictly contained in the alternation-free fragment, witnessed by EF EG p.
Proof. For the first claim, the formulas and lie in , and neither is equivalent to any formula, since by Theorem 17 every formula is computed by a RATCHET net while Proposition 17 excludes both. For the second claim, EF EG p is alternation-free and not computed by any RATCHET net (Proposition 17).
Examples
Formula
is the classic example for reachability–safety Boolean combinations (reach the red avoid the green). The logic-to-net translator gives a net of width 2 (after collapsing redundant dimensions that track the two fixed point computations for reachability and safety). A further application of the net-to-logic recovers .
Logic-to-net (Theorem 17). The mechanical construction outputs thirteen registers; collapsing copy chains and folding literals into the initial embeddings yields an equivalent two-register network, implementing two Boolean propagators (the first encodes “a red vertex has been reached”, the second “a green vertex has been reached”) for the two blocks and . The initial embeddings are , , and . The net has non-negative integer weights, clipped activation, and the initial embeddings are fixed points of isolated vertices. The vocabulary is under the product (or componentwise) order on . The table is three rows by four aggregate values: , , and where the aggregate belongs to .
Net-to-logic (Theorem 17). There is one set variable and formula per vocabulary item . The compiled system from the quotient table, after translation into -calculus, is:
Applying Bekič elimination, , and . Symmetrically, . Finally, . Finally, the logical characterization obtained from net is iff . For the example, we get
Notice that .
Appendix: Experimental Validation
We implemented both directions of the compiler – Theorem 17 (net-to-logic) and Theorem 17 (logic-to-net) – and ran a differential-testing validation: for a curated set of 13 branching-time properties drawn from the model-checking literature, we compile the formula to a net, recover an abstract game table from that net, compile the table back to logic, and check that the two ends of the round trip agree on every vertex of many random graphs. The results, depicted in Table 1, show that across all 13 properties, 9,960 checks total, there is not a single discrepancy between the original formula's denotational truth value and the value read off the recompiled, un-flattened equation system. This section reports the methodology, the properties tested, how the test graphs were generated, the results, and several findings.
Methodology
For a closed formula over propositions :
-
logic-to-net. Compile into a concrete net together with initial embeddings , one per joint Boolean valuation , following the register table of the proof of Theorem 17 verbatim (one register per subformula, one latch per bound variable; no register minimization).
-
Extraction. Recover a finite vocabulary and quotient table from Net by simulating the frozen single-vertex system to a fixed point for every atom and every aggregate value reachable by componentwise max from already-discovered vocabulary elements (mirroring Step 2 of the proof of Theorem 17). The order is the componentwise order restricted to core registers only (Step 3 of that proof): registers realizing a generic negation (re-attaching a dualized block's polarity) are antitone and are excluded, exactly as the proof's construction requires.
-
net-to-logic. Compile into the guarded, positive equation system (one equation per vocabulary element), without performing the Bekič elimination that flattens the system into closed formulas . The remark about Bekič-flattened formulas can be exponentially larger than the system they come from surfaces. But, since we only need to evaluate the recompiled query, not display it, we evaluate the system directly by a global (simultaneous) Kleene iteration – exactly the practice in verification – rather than incur the blow-up of flattening it first.
-
Recovery and comparison. For vertex , iff and, for every with covering , , the characterization provided by the theorem, evaluated directly against the system's fixed point (no Bekič needed for this either). The readout bit this yields at is compared against , computed by an independent reference evaluator (a direct denotational implementation of semantics: Kleene iteration for , set operations for the Boolean connectives, direct neighbor tests for ) that shares no code with either compiler.
Membership in was checked mechanically for every formula in the suite; the checker is described precisely. The same checker was confirmed to reject and , the two queries excluded by Proposition 17.
Property Suite
Thirteen properties drawn from standard branching-time vocabulary (CTL's EF/AG/EU, and Manna–Pnueli-style safety/guarantee combinations), chosen to exercise: pure blocks, pure blocks, flat top-level Boolean combinations of independent blocks, and same-polarity nesting of one block inside another's own body, at depth 2 (sequencing) and depth 3 (sequencing_chain, invariant_chain). Propositions label vertices independently (not mutually exclusively): a vertex's atomic type is its own subset of that holds, so joint valuations, not single labels, play the role of .
| Name | Formula |
|---|---|
| reachability | |
| safety | |
| existential_until | |
| reach_avoid | |
| reachability_and_invariant | |
| sequencing | |
| reach_or_invariant_avoid | |
| mutual_exclusion | |
| combined_three_way | |
| reach_both | |
| implication_invariant | |
| sequencing_chain | |
| invariant_chain |
All thirteen were confirmed to be formulas. Two controls were also checked and confirmed not in , matching Proposition 17: and . A further two formulas, nesting a closed block of the opposite polarity inside another block's own body and , were also checked and confirmed not in . reach_both and implication_invariant are flat, single-block properties (a conjunctive reachability query and an invariant implication); sequencing_chain and invariant_chain extend sequencing's depth-2 same-polarity nesting to depth 3.
Graph Generation
Test graphs are random directed graphs (self-loops excluded): for a target size and edge probability , each of the ordered pairs , is an edge independently with probability , so the expected edge count is . Each vertex's atomic type is sampled independently per proposition (Bernoulli with a per-formula, per-proposition probability , chosen so that neither nor is a near-certainty – see the true/false split reported for each property below), not by picking one of a fixed set of mutually exclusive labels.
The main sweep, used for eleven of the thirteen rows of Table 1, takes , three edge probabilities per property (ranging over , , or depending on the formula – denser for formulas that need longer-range or higher-order reachability to be non-degenerate), and 4 independent graphs per pair, for 60 graphs and 900 pointed-graph checks per property. Expected edge counts over this sweep range from about 1.8 (, ) to about 240 (, ). The remaining two rows use a smaller, single-size sweep, discussed below. Concretely:
| Property | p | q | r | |
|---|---|---|---|---|
| reachability | 0.12 | - | - | {0.06, 0.12, 0.25} |
| safety | 0.85 | - | - | {0.06, 0.12, 0.25} |
| existential_until | 0.55 | 0.12 | - | {0.08, 0.15, 0.30} |
| reach_avoid | 0.15 | 0.15 | - | {0.08, 0.15, 0.30} |
| reachability_and_invariant | 0.15 | 0.85 | - | {0.08, 0.15, 0.30} |
| sequencing | 0.20 | 0.20 | - | {0.08, 0.15, 0.30} |
| reach_or_invariant_avoid | 0.12 | 0.85 | 0.12 | {0.08, 0.15, 0.30} |
| mutual_exclusion | 0.35 | 0.35 | - | {0.08, 0.15, 0.30} |
| combined_three_way | 0.15 | 0.15 | 0.10 | {0.08, 0.15, 0.30} |
| reach_both | 0.30 | 0.30 | - | {0.08, 0.15, 0.30} |
| implication_invariant | 0.30 | 0.75 | - | {0.06, 0.12, 0.25} |
| sequencing_chain | 0.30 | 0.30 | 0.30 | {0.15, 0.25, 0.40} |
| invariant_chain | 0.85 | 0.85 | 0.85 | {0.06, 0.12, 0.25} |
reach_or_invariant_avoid and combined_three_way involve three independent propositions, hence 8 atomic types instead of 2–4; extraction produces a vocabulary of 64 elements for both (versus at most 16 for every two-proposition property), and the resulting guarded equations are correspondingly large. Our net-to-logic evaluator is a plain global Kleene iteration with no cross-round memoization, so its cost scales with (rounds (total equation size) (n, for the set operations). For these two properties this makes the main sweep's , 900-check scale impractical to complete in the time available. Rows 7 and 9 of Table 1 instead report a smaller, single-size sweep (, the same three edge probabilities, two graphs per probability: 6 graphs, 30 checks each).
Reproducibility
Every task reads its graph-generation parameters – propositions, per-proposition probabilities, edge probability, graph size, per-combination count, and random seed – from a frozen manifest that is retained alongside its run's output and is independently sufficient to regenerate every graph checked below.
The code and results will be made publicly available for the final version of the paper.
Results
Every one of the pointed-graph checks agrees: across all thirteen properties, 9960 checks total, there is not a single discrepancy between the original formula's denotational truth value and the value read off the recompiled, un-flattened equation system. The true/false splits are non-degenerate for every property except one (each has both outcomes represented, several close to balanced); combined_three_way's split is the most skewed (0 true out of 30) because it is a conjunction of three independently-tuned-to-be-rare conditions at the reduced sample size.
Analysis
The recompiled equation system is, by construction, syntactically unlike the input formula: it is a system of guarded equations over machine-generated variable names (one per element of an extracted vocabulary of up to 64 values), not a formula a person would write. Agreement is therefore purely semantic, which is exactly what a round-trip test of Theorems 17 and 17 should establish: that compiling a query to a net and back recovers a query with the same denotation, on graphs with real structural and answer diversity, not merely on hand-picked small examples. Combined with the two theorems' proofs, this is strong evidence – though empirical, not a machine-checked proof – that both compilers are correctly implemented on the sub-fragment of actually exercised here: flat top-level Boolean combinations of independent blocks, and same-polarity nesting of one block inside another, to at least depth 3 (sequencing_chain, invariant_chain).
| Property | Graphs | Checks | True | False | Mismatches |
|---|---|---|---|---|---|
| reachability | 60 | 900 | 548 (60.9%) | 352 (39.1%) | 0 |
| safety | 60 | 900 | 248 (27.6%) | 652 (72.4%) | 0 |
| existential_until | 60 | 900 | 359 (39.9%) | 541 (60.1%) | 0 |
| reach_avoid | 60 | 900 | 106 (11.8%) | 794 (88.2%) | 0 |
| reachability_and_invariant | 60 | 900 | 117 (13.0%) | 783 (87.0%) | 0 |
| sequencing | 60 | 900 | 669 (74.3%) | 231 (25.7%) | 0 |
| reach_or_invariant_avoid | 6 | 30 | 24 (80.0%) | 6 (20.0%) | 0 |
| mutual_exclusion | 60 | 900 | 312 (34.7%) | 588 (65.3%) | 0 |
| combined_three_way | 6 | 30 | 0 (0.0%) | 30 (100.0%) | 0 |
| reach_both | 60 | 900 | 524 (58.2%) | 376 (41.8%) | 0 |
| implication_invariant | 60 | 900 | 444 (49.3%) | 456 (50.7%) | 0 |
| sequencing_chain | 60 | 900 | 796 (88.4%) | 104 (11.6%) | 0 |
| invariant_chain | 60 | 900 | 145 (16.1%) | 755 (83.9%) | 0 |
Table 1: Round-trip agreement between 's reference semantics and the recompiled system's semantics, over random pointed graphs. See the discussion in Graph Generation above about reach_or_invariant_avoid and combined_three_way.