Compositional Verification of Concurrency Using Past-Time Temporal Epistemic Logic
Abstract
Shared-memory concurrency is difficult to reason about because each thread executes under interference from other threads. At the same time, many correctness arguments for classic algorithms are epistemic: a thread enters a critical region only when, from its local view, it can rule out that another thread is concurrently in that region. We make such arguments explicit by introducing a past-time temporal epistemic logic interpreted over interleaving executions with perfect-recall local histories. Past-time operators support "since" reasoning, while epistemic modalities capture what a given thread can conclude from its own observation history. We give semantics and a sound proof system, instantiate the logic to a simple shared-memory language with instrumented read/write observations, and illustrate the approach on Peterson's mutual exclusion algorithm by proving a local knowledge condition that implies mutual exclusion.
Cite
@article{arxiv.2502.18885,
title = {Compositional Verification of Concurrency Using Past-Time Temporal Epistemic Logic},
author = {Hamed Nemati and Mads Dam},
journal= {arXiv preprint arXiv:2502.18885},
year = {2026}
}