English

VerIso: Verifiable Isolation Guarantees for Database Transactions

Databases 2025-03-11 v1 Distributed, Parallel, and Cluster Computing Logic in Computer Science

Abstract

Isolation bugs, stemming especially from design-level defects, have been repeatedly found in carefully designed and extensively tested production databases over decades. In parallel, various frameworks for modeling database transactions and reasoning about their isolation guarantees have been developed. What is missing however is a mathematically rigorous and systematic framework with tool support for formally verifying a wide range of such guarantees for all possible system behaviors. We present the first such framework, VerIso, developed within the theorem prover Isabelle/HOL. To showcase its use in verification, we model the strict two-phase locking concurrency control protocol and verify that it provides strict serializability isolation guarantee. Moreover, we show how VerIso helps identify isolation bugs during protocol design. We derive new counterexamples for the TAPIR protocol from failed attempts to prove its claimed strict serializability. In particular, we show that it violates a much weaker isolation level, namely, atomic visibility.

Keywords

Cite

@article{arxiv.2503.06284,
  title  = {VerIso: Verifiable Isolation Guarantees for Database Transactions},
  author = {Shabnam Ghasemirad and Si Liu and Christoph Sprenger and Luca Multazzu and David Basin},
  journal= {arXiv preprint arXiv:2503.06284},
  year   = {2025}
}
R2 v1 2026-06-28T22:12:16.461Z