An MSO Framework for Weak-Memory Verification and Robustness

πŸ“… 2026-06-18
πŸ“ˆ Citations: 0
✨ Influential: 0
πŸ“„ PDF
πŸ€– AI Summary
This work addresses the lack of a unified and scalable theoretical framework for verifying concurrent programs under weak memory models. It proposes a novel approach that leverages monadic second-order logic (MSO) as a meta-theory, integrated with treewidth analysis of graph structures, to establish a uniform framework for verification and robustness checking. The study establishes, for the first time, an intrinsic connection between MSO axiomatizability and bounded treewidth, introduces the new notion of β€œreads-from robustness,” and proves that models such as TSO are not MSO-axiomatizable due to their unbounded treewidth. Building on these insights, the paper identifies several classes of weak memory models that are amenable to MSO axiomatization and provides either automated verification algorithms or methods for generating robustness counterexamples for them.
πŸ“ Abstract
Memory models are formal specifications of concurrent-program executions, accounting for weak behaviors introduced by compiler and architectural optimizations. The increase of their number and complexity has spawned efforts for uniform verification across whole classes of models, by axiomatizing the models in an adequate metatheory that admits a uniform treatment. In this work, we formally study Monadic Second-Order logic (MSO) as a metatheory for weak memory, by proving results on the treewidth and MSO-expressibility of various popular weak-memory models, as this combination allows us to uniformly tackle several verification problems. In summary, our results are as follows. First, we prove that executions under Sequential Consistency ($\mathsf{SC}$) have bounded treewidth, while already those under Total Store Order ($\mathsf{TSO}$) do not. Second, we prove that a broad range of models, including Release/Acquire and the full RC20, are MSO-axiomatizable, while others, such as Strong Release/Acquire and $\mathsf{TSO}$, are not, unless the Orthogonal Vectors problem $\unicode{x2013}$ which requires quadratic time under SETH $\unicode{x2013}$ can be solved in linear time. Finally, we introduce the notion of reads-from robustness, as an extension to recent work on coarse robustness criteria. We show that our treewidth bounds (both upper and lower) have far-reaching algorithmic implications for any of our MSO-axiomatizable models $\mathsf{MM}$: there is an algorithm that, for every program $\mathsf{P}$, either verifies $\mathsf{P}$ under $\mathsf{MM}$ or reports that $\mathsf{P}$ is not reads-from robust against $\mathsf{MM}$. Overall, our results establish a rich and versatile theoretical framework for weak-memory verification and robustness.
Problem

Research questions and friction points this paper is trying to address.

weak-memory models
verification
robustness
concurrent programs
memory consistency
Innovation

Methods, ideas, or system contributions that make the work stand out.

Monadic Second-Order logic
weak memory models
treewidth
MSO-axiomatizability
reads-from robustness
πŸ”Ž Similar Papers
No similar papers found.