NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Flow Logic

Orna Kupferman, Gal Vardi

TL;DR

This paper introduces Flow Logic (BFL*), a new formal framework that extends temporal logics like CTL* to reason about the properties of flow networks. By treating flow functions as first-order objects, the authors enable developers to verify complex constraints—such as security levels or specific path capacities—moving beyond simple maximum-flow calculations into the realm of formal network verification.

What Problem Does This Paper Address?

For decades, computer science has treated flow networks primarily as optimization problems: "What is the maximum amount of data/water/traffic I can send from point A to point B?" While we have efficient algorithms for this (like Ford-Fulkerson), we lack a formal way to reason about the behavior and properties of these flows.

Standard temporal logics (used in hardware and software verification) are great at checking if a system eventually reaches a state, but they are "flow-blind." They can't easily express properties like: "Is there a flow of at least 100 units where no more than 20 units pass through low-security routers?" This paper bridges the gap between classical network flow theory and formal verification.

Methods

The authors propose Branching Flow Logic (BFL*). Its syntax is intentionally similar to the well-known temporal logic CTL*, but it introduces two critical components:

  1. Flow Propositions: Atomic assertions like $> \gamma$ or $\ge \gamma$, which refer to the amount of flow passing through a specific vertex.
  2. Flow Quantifiers: New operators $\mathcal{A}$ ("for all legal flow functions") and $\mathcal{E}$ ("there exists a legal flow function").

The logic allows for "nested" reasoning. You can quantify over a flow function, and then within that flow, quantify over the paths the flow takes. The authors also explore several extensions, including:

  • Positive Path Quantification ($A^+$): Reasoning only about paths that actually carry a non-zero flow.
  • Maximal Flow Quantification: Restricting the logic to only consider flows that achieve the network's maximum capacity.
  • Past Operators: Allowing the logic to look "backward" at where a flow came from, which is crucial because flow at a vertex depends on all its predecessors.

Datasets

As a theoretical paper in computer science logic, it does not use empirical datasets or training benchmarks. Instead, the authors use abstract mathematical models of flow networks (directed graphs with capacity functions) to prove theorems regarding complexity and expressiveness.

Key Insights and Ideas

  • Integrality Matters: In classical max-flow problems, if capacities are integers, the max flow is also an integer. However, the authors show that in BFL*, restricting yourself to integral flows can actually change whether a formula is true or false. Some properties might only be satisfied by "splitting" units of flow into fractions.
  • Sensitivity to Unwinding: Most temporal logics are "insensitive to unwinding" (they don't care if a graph is expanded into a tree). BFL is sensitive to this because the flow into a node is the sum of all its incoming edges. This makes BFL fundamentally different from standard branching-time logics.
  • The "Conjunctive" Sweet Spot: While general BFL model checking is hard, the authors identified a fragment called CBFL* (Conjunctive BFL). If you restrict properties to be conjunctively related (using "AND" instead of "OR" in specific ways), the problem becomes solvable in polynomial time.

Key Results

  • Complexity: Model checking for BFL is PSPACE-complete, placing it in the same complexity class as CTL.
  • Network Complexity: When the formula is fixed and only the network size grows, the complexity is $\Delta^P_2$ (or $P^{NP}$). This means it requires a polynomial number of calls to an NP oracle.
  • Efficiency: The authors proved that the CBFL fragment can be checked in polynomial time* by reducing the problem to a "vertex-constrained flow problem."
  • Synthesis: The paper shows that "Flow Synthesis"—automatically generating a flow function that satisfies a specific BFL* property—is also PSPACE-complete.

Limitations and Future Work

  • Expressive Power: While the authors proved BFL* is powerful, the exact relationship between its various fragments and other logics (like Strategy Logic) remains an open area for research.
  • Satisfiability: The "satisfiability problem" (given a formula, does any network exist that satisfies it?) is noted as particularly challenging for BFL* because the logic is sensitive to the structure of the graph (unwinding).
  • Cuts vs. Flows: Classical flow theory relies heavily on the "Max-Flow Min-Cut" theorem. The authors suggest that exploring how BFL* relates to "cuts" in a network could yield interesting algorithmic shortcuts.

Summary updated

BibTeX
@inproceedings{kupferman2017flow,
  author = {Orna Kupferman and Gal Vardi},
  title = {{Flow Logic}},
  booktitle = {CONCUR},
  year = {2017},
  doi = {10.4230/lipics.concur.2017.9},
}
Figure