Coarser Equivalences for Causal Concurrency
Abstract
Trace theory (formulated by Mazurkiewicz in 1987) is a principled framework for defining equivalence relations for concurrent program runs based on a commutativity relation over the set of atomic steps taken by individual program threads. Its simplicity, elegance, and algorithmic efficiency makes it useful in many different contexts including program verification and testing. It is well-understood that the larger the equivalence classes are, the more benefits they would bring to the algorithms and applications that use them. In this paper, we study relaxations of trace equivalence with the goal of maintaining its algorithmic advantages. We first prove that the largest appropriate relaxation of trace equivalence, an equivalence relation that preserves the order of steps taken by each thread and what write operation each read operation observes, does not yield efficient algorithms. Specifically, we prove a linear space lower bound for the problem of checking, in a streaming setting, if two arbitrary steps of a concurrent program run are causally concurrent (i.e. they can be reordered in an equivalent run) or causally ordered (i.e. they always appear in the same order in all equivalent runs). The same problem can be decided in constant space for trace equivalence. Next, we propose a new commutativity-based notion of equivalence called grain equivalence that is strictly more relaxed than trace equivalence, and yet yields a constant space algorithm for the same problem. This notion of equivalence uses commutativity of grains , which are sequences of atomic steps, in addition to the standard commutativity from trace theory. We study the two distinct cases when the grains are contiguous subwords of the input program run and when they are not, formulate the precise definition of causal concurrency in each case, and show that they can be decided in constant space , despite being strict relaxations of the notion of causal concurrency based on trace equivalence.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
9 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- The Complexity of Dynamic Data Race Prediction cites Fast, sound, and effectively complete dynamic race prediction
- Predictive Monitoring with Strong Trace Prefixes cites The Complexity of Dynamic Data Race Prediction
- Predictive Monitoring with Strong Trace Prefixes cites Fast, sound, and effectively complete dynamic race prediction
- Predictive Monitoring with Strong Trace Prefixes cites Atomicity Checking in Linear Time using Vector Clocks
- Predictive Monitoring with Strong Trace Prefixes cites Optimal prediction of synchronization-preserving races
- Predictive Monitoring with Strong Trace Prefixes cites Optimistic Prediction of Synchronization-Reversal Data Races
- Selectively Uniform Concurrency Testing cites The Complexity of Dynamic Data Race Prediction
- Selectively Uniform Concurrency Testing cites Fast, sound, and effectively complete dynamic race prediction
- Selectively Uniform Concurrency Testing cites Atomicity Checking in Linear Time using Vector Clocks
- Selectively Uniform Concurrency Testing cites Optimal prediction of synchronization-preserving races
- Selectively Uniform Concurrency Testing cites Optimistic Prediction of Synchronization-Reversal Data Races
- Optimal prediction of synchronization-preserving races cites The Complexity of Dynamic Data Race Prediction
- Optimal prediction of synchronization-preserving races cites Fast, sound, and effectively complete dynamic race prediction
- Optimal prediction of synchronization-preserving races cites Atomicity Checking in Linear Time using Vector Clocks
- Efficient Decrease-and-Conquer Linearizability Monitoring cites The Complexity of Dynamic Data Race Prediction
- Efficient Decrease-and-Conquer Linearizability Monitoring cites Fast, sound, and effectively complete dynamic race prediction
- Efficient Decrease-and-Conquer Linearizability Monitoring cites Atomicity Checking in Linear Time using Vector Clocks
- Efficient Decrease-and-Conquer Linearizability Monitoring cites Optimal prediction of synchronization-preserving races
- Efficient Decrease-and-Conquer Linearizability Monitoring cites The Complexity of Testing Message-Passing Concurrency
- The Complexity of Testing Message-Passing Concurrency cites Efficient Decrease-and-Conquer Linearizability Monitoring
- Efficient Decrease-and-Conquer Linearizability Monitoring cites Optimistic Prediction of Synchronization-Reversal Data Races
- The Complexity of Testing Message-Passing Concurrency cites The Complexity of Dynamic Data Race Prediction
- The Complexity of Testing Message-Passing Concurrency cites Truly stateless, optimal dynamic partial order reduction
- The Complexity of Testing Message-Passing Concurrency cites Fast, sound, and effectively complete dynamic race prediction
- The Complexity of Testing Message-Passing Concurrency cites Predictive Monitoring with Strong Trace Prefixes
- The Complexity of Testing Message-Passing Concurrency cites Atomicity Checking in Linear Time using Vector Clocks
- The Complexity of Testing Message-Passing Concurrency cites Optimal prediction of synchronization-preserving races
- The Complexity of Testing Message-Passing Concurrency cites Optimistic Prediction of Synchronization-Reversal Data Races
- Optimistic Prediction of Synchronization-Reversal Data Races cites The Complexity of Dynamic Data Race Prediction
- Optimistic Prediction of Synchronization-Reversal Data Races cites Fast, sound, and effectively complete dynamic race prediction
- Optimistic Prediction of Synchronization-Reversal Data Races cites Atomicity Checking in Linear Time using Vector Clocks
- Optimistic Prediction of Synchronization-Reversal Data Races cites Optimal prediction of synchronization-preserving races
Cited by top-tier papers9
- Optimistic Prediction of Synchronization-Reversal Data RacesZheng Shi, Umang Mathur, Andreas PavlogiannisICSE 2024 · 8 citations
- Selectively Uniform Concurrency TestingHuan Zhao, Dylan Wolff, Umang Mathur, Abhik RoychoudhuryASPLOS 2025 · 4 citations
- Predictive Monitoring with Strong Trace PrefixesZhendong Ang, Umang MathurCAV 2024 · 3 citations
- Efficient Decrease-and-Conquer Linearizability MonitoringLee Zheng Han, Umang MathurOOPSLA 2025 · 2 citations
- The Complexity of Testing Message-Passing ConcurrencyZheng Shi, Lasse Møldrup, Umang Mathur, Andreas PavlogiannisPOPL 2026 · 2 citations
Builds on9
- Truly stateless, optimal dynamic partial order reductionMichalis Kokologiannakis, Iason Marmanis, Vladimir Gladstein, Viktor VafeiadisPOPL 2022 · 46 citations
- Fast, sound, and effectively complete dynamic race predictionAndreas PavlogiannisPOPL 2020 · 46 citations
- Optimal prediction of synchronization-preserving racesUmang Mathur, Andreas Pavlogiannis, Mahesh ViswanathanPOPL 2021 · 36 citations
- The Complexity of Dynamic Data Race PredictionUmang Mathur, Andreas Pavlogiannis, Mahesh ViswanathanLICS 2020 · 27 citations
- Atomicity Checking in Linear Time using Vector ClocksUmang Mathur, Mahesh ViswanathanASPLOS 2020 · 27 citations
Related papers
- Stratified Commutativity in Verification Algorithms for Concurrent ProgramsAzadeh Farzan, Dominik Klumpp, Andreas PodelskiPOPL 2023 · 11 citations
- Sound sequentialization for concurrent program verificationAzadeh Farzan, Dominik Klumpp, Andreas PodelskiPLDI 2022 · 24 citations
- Stateless Model Checking Under a Reads-Value-From EquivalencePratyush Agarwal, Krishnendu Chatterjee, Shreya Pathak, Andreas Pavlogiannis et al.CAV 2021 · 25 citations
- Counterexample-Guided CommutativityMarcel Ebbinghaus, Dominik Klumpp, Andreas PodelskiCAV 2025
- Commutativity for Concurrent Program Termination ProofsDanya Lette, Azadeh FarzanCAV 2023 · 3 citations
