arXiv.itsnick.co

an independent field guide to 23 million papers from arXiv & OpenAlex — not affiliated with arXiv.org

Author

Simon Doherty

28 papers · 2004–2024

2004: 32005: 12006: 02007: 02008: 12009: 02010: 12011: 02012: 12013: 02014: 02015: 12016: 42017: 22018: 32019: 02020: 72021: 22022: 12023: 02024: 1
2004peak 7 in 20202024

Frequent co-authors

Papers

showing 1–25 of 28 RSS

DCAS is not a silver bullet for nonblocking algorithm design

Simon Doherty, David Detlefs, Lindsay Groves +6 more

Computer Networks and Communications · · cited 82× · DOI ↗ · more like this ·

Despite years of research, the design of efficient nonblocking algorithms remains difficult. A key reason is that current shared-memory multiprocessor architectures support only single-location synchronisation primitives such as compare-and-swap (CAS) and load-linked/store-conditional (LL/SC). Recently researchers have investigated the utility of double-compare-and-swap (DCAS)--a generalisation of CAS that supports atomic access to two memory locations -- in overcoming these problems. We summarise recent research in this direction and present a detailed case study concerning a previously published nonblocking DCAS-based double-ended queue implementation. Our summary and case study clearly show that DCAS does not provide a silver bullet for nonblocking synchronisation. That is, it does not make the design and verification of even mundane nonblocking data structures with desirable…

Towards formally specifying and verifying transactional memory

Simon Doherty, Lindsay Groves, Victor Luchangco +1 more

Computer Networks and Communications · Formal Aspects of Computing · · cited 81× · DOI ↗ · more like this ·

Abstract Over the last decade, great progress has been made in developing practical transactional memory (TM) implementations, but relatively little attention has been paid to precisely specifying what it means for them to be correct, or formally proving that they are. In this paper, we present TMS1 (Transactional Memory Specification 1), a precise specification of correct behaviour of a TM runtime library. TMS1 targets TM runtimes used to implement transactional features in an unmanaged programming language such as C or C++. In such contexts, even transactions that ultimately abort must observe consistent states of memory; otherwise, unrecoverable errors such as divide-by-zero may occur before a transaction aborts, even in a correct program in which the error would not be possible if transactions were executed atomically. We specify TMS1 precisely using an I/O automaton (IOA). This…

Verifying Concurrent Data Structures by Simulation

Robert J. Colvin, Simon Doherty, Lindsay Groves

Computer Networks and Communications · Electronic Notes in Theoretical Computer Science · · cited 48× · DOI ↗ · more like this ·

We describe an approach to verifying concurrent data structures based on simulation between two Input/Output Automata (IOAs), modelling the specification and the implementation. We explain how we used this approach in mechanically verifying a simple lock-free stack implementation using forward simulation, and briefly discuss our experience in verifying three other lock-free algorithms which all required the use of backward simulation.

Verifying C11 Programs Operationally

Simon Doherty, Brijesh Dongol, Heike Wehrheim +1 more

cs.PL · · cited 37× · arXiv ↗ · more like this ·

This paper develops an operational semantics for a release-acquire fragment of the C11 memory model with relaxed accesses. We show that the semantics is both sound and complete with respect to the axiomatic model. The semantics relies on a per-thread notion of observability, which allows one to reason about a weak memory C11 program in program order. On top of this, we develop a proof calculus for invariant-based reasoning, which we use to verify the release-acquire version of Peterson's mutual exclusion algorithm.

Bringing practical lock-free synchronization to 64-bit applications

Simon Doherty, Maurice Herlihy, Victor Luchangco +1 more

Computer Networks and Communications · · cited 35× · DOI ↗ · more like this ·

Many lock-free data structures in the literature exploit techniques that are possible only because state-of-the-art 64-bit processors are still running 32-bit operating systems and applications. As software catches up to hardware, “64-bitclean” lock-free data structures, which cannot use such techniques, are needed. We present several 64-bit-clean lock-free implementations: load-linked/store conditional variables of arbitrary size, a FIFO queue, and a freelist. In addition to being portable to 64bit software, our implementations also improve on previous ones in that they are space-adaptive and do not require knowledge of the number of threads that will access them. 1

Owicki-Gries Reasoning for C11 RAR

Sadegh Dalvandi, Simon Doherty, Brijesh Dongol +1 more

Artificial Intelligence · DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) · · cited 25× · DOI ↗ · more like this ·

Owicki-Gries reasoning for concurrent programs uses Hoare logic together with an interference freedom rule for concurrency. In this paper, we develop a new proof calculus for the C11 RAR memory model (a fragment of C11 with both relaxed and release-acquire accesses) that allows all Owicki-Gries proof rules for compound statements, including non-interference, to remain unchanged. Our proof method features novel assertions specifying thread-specific views on the state of programs. This is combined with a set of Hoare logic rules that describe how these assertions are affected by atomic program steps. We demonstrate the utility of our proof calculus by verifying a number of standard C11 litmus tests and Peterson’s algorithm adapted for C11. Our proof calculus and its application to program verification have been fully mechanised in the theorem prover Isabelle.

Modelling and Verifying Non-blocking Algorithms that Use Dynamically Allocated Memory

Simon Doherty

Computer Networks and Communications · · cited 20× · OpenAlex ↗ · more like this ·

This thesis presents techniques for the machine-assisted verification of an impor-tant class of concurrent algorithms, called non-blocking algorithms. The notion of linearizability is used as a correctness condition for concurrent implementa-tions of sequential datatypes and the use of forward simulation relations as a proof method for showing linearizability is described. A detailed case study is presented: the attempted verification of a concurrent double-ended queue imple-mentation, the Snark algorithm, using the theorem proving system PVS. This case study allows the exploration of the difficult problem of verifying an algorithm that uses low-level pointer operations over a dynamic data-structure in the presence of concurrent access by multiple processes. During the verification attempt, a previously undetected bug was found in the Snark algorithm. Two possible corrections to this…

Unifying Operational Weak Memory Verification: An Axiomatic Approach

Simon Doherty, Sadegh Dalvandi, Brijesh Dongol +1 more

Artificial Intelligence · ACM Transactions on Computational Logic · · cited 15× · DOI ↗ · more like this ·

In this article, we propose an approach to program verification using an abstract characterisation of weak memory models. Our approach is based on a hierarchical axiom scheme that captures the observational properties of a memory model. In particular, we show that it is possible to prove correctness of a program with respect to a particular axiom scheme, and we show this proof to suffice for any memory model that satisfies the axioms. Our axiom scheme is developed using a characterisation of weakest liberal preconditions for weak memory. This characterisation naturally extends to Hoare logic and Owicki-Gries reasoning by lifting weakest liberal preconditions (defined over read/write events) to the level of programs. We study three memory models (SC, TSO, and RC11-RAR) as example instantiations of the axioms, then we demonstrate the applicability of our reasoning technique on a number of…

Verifying correctness of persistent concurrent data structures: a sound and complete method

John Derrick, Simon Doherty, Brijesh Dongol +2 more

Computer Networks and Communications · Formal Aspects of Computing · · cited 14× · DOI ↗ · more like this ·

Abstract Non-volatile memory (NVM), aka persistent memory, is a new memory paradigm that preserves its contents even after power loss. The expected ubiquity of NVM has stimulated interest in the design of persistent concurrent data structures, together with associated notions of correctness. In this paper, we present a formal proof technique for durable linearizability , which is a correctness criterion that extends linearizability to handle crashes and recovery in the context ofNVM.Our proofs are based on refinement of Input/Output automata (IOA) representations of concurrent data structures. To this end, we develop a generic procedure for transforming any standard sequential data structure into a durable specification and prove that this transformation is both sound and complete. Since the durable specification only exhibits durably linearizable behaviours, it serves as the abstract…

Mechanized proofs of opacity: a comparison of two techniques

John Derrick, Simon Doherty, Brijesh Dongol +3 more

Computer Networks and Communications · Formal Aspects of Computing · · cited 11× · DOI ↗ · more like this ·

Abstract Software transactional memory (STM) provides programmers with a high-level programming abstraction for synchronization of parallel processes, allowing blocks of codes that execute in an interleaved manner to be treated as atomic blocks. This atomicity property is captured by a correctness criterion called opacity , which relates the behaviour of an STM implementation to those of a sequential atomic specification. In this paper, we prove opacity of a recently proposed STM implementation: the Transactional Mutex Lock (TML) by Dalessandro et al. For this, we employ two different methods: the first method directly shows all histories of TML to be opaque (proof by induction), using a linearizability proof of TML as an assistance; the second method shows TML to be a refinement of an existing intermediate specification called TMS2 which is known to be opaque (proof by simulation).…

Proving Opacity of a Pessimistic STM

Simon Doherty, Brijesh Dongol, John Derrick +2 more

Computer Networks and Communications · DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) · · cited 8× · DOI ↗ · more like this ·

Transactional Memory (TM) is a high-level programming abstraction for concurrency control that provides programmers with the illusion of atomically executing blocks of code, called transactions. TMs come in two categories, optimistic and pessimistic, where in the latter transactions never abort. While this simplifies the programming model, high-performing pessimistic TMs can be complex. In this paper, we present the first formal verification of a pessimistic software TM algorithm, namely, an algorithm proposed by Matveev and Shavit. The correctness criterion used is opacity, formalising the transactional atomicity guarantees. We prove that this pessimistic TM is a refinement of an intermediate opaque I/O-automaton, known as TMS2. To this end, we develop a rely-guarantee approach for reducing the complexity of the proof. Proofs are mechanised in the interactive prover Isabelle.

Modularising Verification Of Durable Opacity

Eleni Bila, John Derrick, Simon Doherty +3 more

cs.DC · · cited 7× · arXiv ↗ · more like this ·

Non-volatile memory (NVM), also known as persistent memory, is an emerging paradigm for memory that preserves its contents even after power loss. NVM is widely expected to become ubiquitous, and hardware architectures are already providing support for NVM programming. This has stimulated interest in the design of novel concepts ensuring correctness of concurrent programming abstractions in the face of persistency and in the development of associated verification approaches. Software transactional memory (STM) is a key programming abstraction that supports concurrent access to shared state. In a fashion similar to linearizability as the correctness condition for concurrent data structures, there is an established notion of correctness for STMs known as opacity. We have recently proposed durable opacity as the natural extension of opacity to a setting with non-volatile memory. Together…

Convolution and Concurrency

James Cranch, Simon Doherty, Georg Struth

cs.LO · · cited 7× · arXiv ↗ · more like this ·

We show how concurrent quantales and concurrent Kleene algebras arise as convolution algebras $Q^X$ of functions from structures $X$ with two ternary relations that satisfy relational interchange laws into concurrent quantales or Kleene algebras $Q$. The elements of $Q$ can be understood as weights; the case $Q=\bool$ corresponds to a powerset lifting. We develop a correspondence theory between relational properties in $X$ and algebraic properties in $Q$ and $Q^X$ in the sense of modal and substructural logics, and boolean algebras with operators. As examples, we construct the concurrent quantales and Kleene algebras of $Q$-weighted words, digraphs, posets, isomorphism classes of finite digraphs and pomsets.

Integrating Owicki-Gries for C11-Style Memory Models into Isabelle/HOL

Sadegh Dalvandi, Brijesh Dongol, Simon Doherty

cs.PL · · cited 4× · arXiv ↗ · more like this ·

Weak memory presents a new challenge for program verification and has resulted in the development of a variety of specialised logics. For C11-style memory models, our previous work has shown that it is possible to extend Hoare logic and Owicki-Gries reasoning to verify correctness of weak memory programs. The technique introduces a set of high-level assertions over C11 states together with a set of basic Hoare-style axioms over atomic weak memory statements (e.g., reads/writes), but retains all other standard proof obligations for compound statements. This paper takes this line of work further by showing Nipkow and Nieto's encoding of Owicki-Gries in the Isabelle theorem prover can be extended to handle C11-style weak memory models in a straightforward manner. We exemplify our techniques over several litmus tests from the literature and a non-trivial example: Peterson's algorithm…

Owicki-Gries Reasoning for C11 RAR (Artifact)

Sadegh Dalvandi, Simon Doherty, Brijesh Dongol +1 more

Artificial Intelligence · DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) · · cited 4× · DOI ↗ · more like this ·

The paper "Owicki-Gries Reasoning for C11 RAR" introduces a new proof calculus for the C11 RAR memory model that allows Owicki-Gries proof rules for compound statements, including non-interference, to remain unchanged. The proof method features novel assertions specifying thread-specific views on the state of programs. This is combined with a set of Hoare logic rules that describe how these assertions are affected by atomic program steps. The artifact includes the Isabelle formalisation of the proof method introduced in the paper. It also contains the formalisation and proof of all case studies presented in the paper. All of the theorems are accompanied with their respective proofs.

Reducing Opacity to Linearizability: A Sound and Complete Method

Alasdair Armstrong, Brijesh Dongol, Simon Doherty

cs.LO · · cited 2× · arXiv ↗ · more like this ·

Transactional memory is a mechanism that manages thread synchronisation on behalf of a programmer so that blocks of code execute with an illusion of atomicity. The main safety criterion for transactional memory is opacity, which defines conditions for serialising concurrent transactions. Proving opacity is complicated because it allows concurrent transactions to observe distinct memory states, while TM implementations are typically based on one single shared store. This paper presents a sound and complete method, based on coarse-grained abstraction, for reducing proofs of opacity to the relatively simpler correctness condition: linearizability. We use our methods to verify TML and NORec from the literature and show our techniques extend to relaxed memory models by showing that both are opaque under TSO without requiring additional fences. Our methods also elucidate TM designs at higher…

On Strong Observational Refinement and Forward Simulation

John Derrick, Simon Doherty, Brijesh Dongol +2 more

cs.DC · · cited 1× · arXiv ↗ · more like this ·

Hyperproperties are correctness conditions for labelled transition systems that are more expressive than traditional trace properties, with particular relevance to security. Recently, Attiya and Enea studied a notion of strong observational refinement that preserves all hyperproperties. They analyse the correspondence between forward simulation and strong observational refinement in a setting with finite traces only. We study this correspondence in a setting with both finite and infinite traces. In particular, we show that forward simulation does not preserve hyperliveness properties in this setting. We extend the forward simulation proof obligation with a progress condition, and prove that this progressive forward simulation does imply strong observational refinement.

Causal Linearizability: Compositionality for Partially Ordered Executions

Simon Doherty, John Derrick, Brijesh Dongol +1 more

cs.LO · · cited 1× · arXiv ↗ · more like this ·

In the interleaving model of concurrency, where events are totally ordered, linearizability is compositional: the composition of two linearizable objects is guaranteed to be linearizable. However, linearizability is not compositional when events are only partially ordered, as in many weak-memory models that describe multicore memory systems. In this paper, we present causal linearizability, a correctness condition for concurrent objects implemented in weak-memory models. We abstract from the details of specific memory models by defining our condition using Lamport's execution structures. We apply our condition to the C11 memory model, providing a correctness condition for C11 objects. We develop a proof method for verifying objects implemented in C11 and related models. Our method is an adaptation of simulation-based methods, but in contrast to other such methods, it does not require…

The experiences of online learning for undergraduate bioscience students

Kieran Higgins, Alison Calvert, Simon Doherty

Education · Advances in online education. · · cited 0× · DOI ↗ · more like this ·

The rapid shift to online education prompted by the global COVID-19 pandemic had an impact on biosciences students at a UK university. This study explores their experiences throughout an academic year, focusing on the misalignment between initial perceptions and eventual realities. Through interviews with 13 third-year biosciences undergraduates, the findings reveal evolving perspectives from apprehension to acceptance. Students valued the flexibility of online learning but expressed concerns about practical skill loss and social interaction. Engagement hinged on educator proficiency with digital tools and communication. As the year progressed, self-regulation challenges emerged, affecting motivation and metacognitive awareness. The study recommends enhancing educator digital skills, implementing effective communication strategies, and integrating engagement-focused approaches for…

Brief Announcement: Generalising ConcurrentCorrectness to Weak Memory

Brijesh Dongol, Simon Doherty, Heiki Wehrheim +1 more

Computer Networks and Communications · · cited 0× · OpenAlex ↗ · more like this ·

Correctness conditions like linearizability and opacity describe some form of atomicity imposed on concurrent objects. In this paper, we propose a correctness condition (called causal atomicity) for concurrent objects executing in a weak memory model, where the histories of the objects in question are partially ordered. We establish compositionality and abstraction results for causal atomicity and develop an associated refinement-based proof technique.

Reactions of Alkynes with\n[Fe<sub>2</sub>(CO)<sub>6</sub>(μ-PPh<sub>2</sub>){μ-η<sup>1</sup>:η<sup>2</sup><sub>α</sub><sub>,</sub><sub>β</sub>-(H)C<sub>α</sub>C<sub>β</sub>C<sub>γ</sub>H<sub>2</sub>}]:  Formation\nof Diphenylvinylphosphine-Functionalized Vinyl\nCarbenes via Carbon−Carbon and Carbon−Phosphorus\nBond Formation and Hydrogen Migration<sup>⊥</sup>

Simon Doherty (1737616), Graeme Hogarth (710167), Mark Waugh (2297179) +2 more

Education · Figshare · · cited 0× · DOI ↗ · more like this ·

Reaction of [Fe<sub>2</sub>(CO)<sub>6</sub>(μ-PPh<sub>2</sub>){μ-η<sup>1</sup>:η<sup>2</sup><sub>α</sub><sub>,</sub><sub>β</sub>-(H)C<sub>α</sub>C<sub>β</sub>C<sub>γ</sub>H<sub>2</sub>}] (<b>1</b>) with PhC⋮CPh results in\nallenyl−alkyne−phosphido coupling to give [Fe<sub>2</sub>(CO)<sub>6</sub>(μ-PPh<sub>2</sub>){μ-η<sup>1</sup>(P):η<sup>3</sup>(C):η<sup>1</sup>(C)-C(Ph)C(Ph)C(H)C(CH<sub>2</sub>)PPh<sub>2</sub>}] (<b>2</b>), bridged by a diphenylvinylphosphine-substituted vinyl carbene.\nUnder similar conditions <b>1</b> reacts with PhC⋮CMe to give an equal mixture of the two possible\nregioisomers…

Causal Linearizability

Simon Doherty, John Derrick

cs.DC · · cited 0× · arXiv ↗ · more like this ·

Most work on the verification of concurrent objects for shared memory assumes sequential consistency, but most multicore processors support only weak memory models that do not provide sequential consistency. Furthermore, most verification efforts focus on the linearizability of concurrent objects, but there are existing implementations optimized to run on weak memory models that are not linearizable. In this paper, we address these problems by introducing causal linearizability, a correctness condition for concurrent objects running on weak memory models. Like linearizability itself, causal linearizability enables concurrent objects to be composed, under weak constraints on the client's behaviour. We specify these constraints by introducing a notion of operation-race freedom, where programs that satisfy this property are guaranteed to behave as if their shared objects were in fact…

Isabelle files for verification of a pessimistic STM algorithm

Simon Doherty, Brijesh Dongol, John Derrick +2 more

Artificial Intelligence · Figshare · · cited 0× · DOI ↗ · more like this ·

This page contains the Isabelle theory files that show refinement between Matveev and Shavit's pessimistic transactional memory algorithm (MSPessTM) and the TMS2 specification. Leveraging Lesani et al's results, these proofs establish opacity of MSPessTM. The tarball consists of the following: Main files TMS2.thy - contains the IOA specification of TMS2 MSPessTM.thy contains the I/O automata encoding of the MSPessTM algorithm, invariants and supporting lemmas MSPessTMCorrect.thy contains the simulation relation and all associated proofs proof Supporting files Transitions.thy and Interface.thy provide tools for uniformly constructing automata that represent STM implementations. Utilities.thy and RWMemory.thy define some concepts that are shared between the other theories. The proofs require Isabelle 2016. If you encounter a problem loading Seq.thy, please make sure imports is set to…

Simpler backward simulation proofs

Simon Doherty, Lindsay Groves

Computer Networks and Communications · Computing: The Australasian Theory Symposium · · cited 0× · OpenAlex ↗ · more like this ·

Backward simulation relations provide a technique for verifying computer systems modelled as labelled transition systems. Recent experience suggests that backward simulation relations are useful in the verification of some highly concurrent systems. Proofs by backward simulation are complicated by the need to show that the simulation relation is total over all reachable states of the system being verified. Some reachable states exhibit complex dependencies between components of the state. We present a technique that reduces proving totality on all reachable states, to proving totality on a subset of the reachable states that are very simple. The technique exploits a very weak property of concurrent systems that we call completability: a system is completable if every operation can finish, but not every operation is required to finish in every execution.