English

Reasoning about expression evaluation under interference

Logic in Computer Science 2025-12-01 v2 Software Engineering

Abstract

Hoare-style inference rules for program constructs permit the copying of expressions and tests from program text into logical contexts. It is known that this requires care even for sequential programs but much more serious issues arise with concurrent programs because of potential interference to the values of variables. The "rely-guarantee" approach tackles the challenge of recording acceptable interference and offers a way to provide safe inference rules for concurrent constructs. This paper shows how the algebraic presentation of rely-guarantee ideas can clarify and formalise the conditions for safely re-using expressions and tests from program text in logical contexts for reasoning about concurrent programs; crucially this extends to handling expressions that reference more than one shared variable. A non-trivial example related to the Fischer-Galler forest representation of equivalence relations is treated.

Keywords

Cite

@article{arxiv.2409.07741,
  title  = {Reasoning about expression evaluation under interference},
  author = {Ian J. Hayes and Cliff B. Jones and Larissa A. Meinicke},
  journal= {arXiv preprint arXiv:2409.07741},
  year   = {2025}
}

Comments

33 pages, 3 figures

R2 v1 2026-06-28T18:42:00.381Z