Verifying the safety of complex systems—whether they are global networks filled with middleboxes or concurrent programs with recursive calls—usually runs into a fundamental wall: the state space explosion. When the behavior of a system depends on the order in which events occur, the number of possible states grows exponentially with the number of events.
However, a shared insight across recent research suggests a way out. By treating sequences of events as unordered sets or commutative multisets, we can verify properties like network isolation and program reachability in polynomial time, even in systems that appear infinitely complex.
The Problem of Sequential Dependency
In a traditional verification model, the state of a system is a function of its history. In a network, a "stateful" firewall might block traffic unless it has previously seen a specific handshake packet. In a concurrent program, a thread might change its behavior based on messages received from an asynchronous buffer.
If we try to model these systems by tracking every possible sequence of packets or messages, the complexity becomes unmanageable. For networks, Kalev Alpernas, Aurojit Panda, and their colleagues note in Abstractions for Verifying Isolation Properties in Stateful Networks that tracking the entire network's state space is often mathematically impossible or computationally prohibitive. Similarly, Jonathan Kochems and Luke Ong observe that over-specifying the order of asynchronous actions makes it difficult to apply reachability algorithms to concurrent programs.
The Unordered Traffic Abstraction
The breakthrough in these works is the realization that for many safety properties, the exact sequence of events is irrelevant. What matters is simply whether certain events have occurred at all.
In the context of stateful networks, Alpernas et al. introduce the unordered traffic abstraction. Instead of viewing network traffic as a stream of packets ($P_1, P_2, P_3$), the verifier treats it as a set of "seen" packet types. This abstraction assumes that packets can arrive in any order and ignores the frequency of arrivals.
As detailed in Abstract Interpretation of Stateful Networks, this approach decomposes complex middlebox states into "packet effects." By assuming that middleboxes can occasionally reset and that the history is just a collection of effects, the researchers reduce the verification of isolation properties to polynomial time relative to the network size. This allows for the verification of networks with thousands of hosts, a feat previously thought to be out of reach.
Commutativity and Shaped Stacks
A similar logic applies to concurrent software. When multiple processes communicate via unbounded, asynchronous buffers, the order of messages in the buffer often doesn't affect the global safety of the program.
In Safety verification of asynchronous pushdown systems with shaped stacks, Kochems and Ong treat asynchronous side-effects as commutative multisets. If two operations commute, their relative order does not change the resulting state. By focusing on these commutative properties, the authors can summarize program states without losing critical reachability information.
To handle the complexity of recursive calls (the "pushdown" part of the system), they introduce the "shaped stack" constraint. This limits the number of non-commutative elements on a call stack while allowing the stack itself to grow to arbitrary heights. This ensures that safety verification remains decidable even when processes communicate at any stage of recursion.
Why It Works: Intuition over Exhaustion
The core intuition behind this research direction is a shift from trace-based verification to effect-based verification.
- Trace-based: "Can the system reach State X through the sequence A → B → C?" (Exponentially many sequences to check).
- Effect-based: "Does the set of events {A, B, C} enable State X, regardless of their order?" (Polynomial number of sets to check).
By identifying the specific conditions under which order doesn't matter—such as isolation in networks or commutative side-effects in programs—these researchers provide a toolkit for verifying the "unverifiable." They prove that we don't need to know exactly how we got to a state to know that the state is safe.