Generalized DBLog
A Verified Contract for Interleaving Copied Rows with a Change Log

Sources for the paper “Generalized DBLog: A Verified Contract for Interleaving
Copied Rows with a Change Log” (Andreas Andreakis, 2026) and the formal
verification artifacts that accompany it.
A change-data-capture pipeline often has to copy existing rows while it
keeps reading the database’s log of committed changes. Changes must not fall
through a gap, and older copied state must not overwrite a newer logged update
or bring back a deleted row. DBLog, developed at Netflix, addressed this problem
by reading tables in chunks and interleaving those reads with the live log.
Debezium and Flink CDC have since adapted this design. Earlier work proved that
replaying the original algorithm’s output reconstructs the source’s rows. This
paper asks when the same result holds for variants of that design. It states
the conditions that the source and the capture implementation must satisfy. It
proves that, once copying and reconciliation are complete, the result holds
across all selected tables and key ranges, even when their rows were read at
different times. A single database snapshot is not required for the copy.
The results are per key and hold under explicit source and capture assumptions.
The paper evaluates protocol designs. It does not certify a software release,
and no running connector is verified. Transport, populated-sink repairs, and
end-to-end delivery are outside the verified contract.
The complete theory is machine-checked in Isabelle/HOL, and its core is
independently verified in Lean 4. Five TLA+ specifications of the protocols are
examined by bounded model checking, which gives evidence rather than a proof.
Links: paper on arXiv ·
companion blog post ·
archived artifact (Zenodo) ·
result index ·
provenance ·
AGENTS.md for AI tools ·
talks
Repository map
| Path |
What it is |
| paper/ |
Exact arXiv v4 manuscript files, the six figures, and arXiv’s stamped PDF. |
| formal/ |
The complete verification artifact, byte-identical to Zenodo version 1.0. Do not edit. |
| formal/README.md |
The artifact’s own README: contents, requirements, reproduction, scope. |
| formal/dblog_framework/CROSS_VERIFICATION.md |
Authoritative map from every numbered object of the paper to Isabelle, Lean and TLC. |
| docs/THEOREMS.md |
Short index of the paper’s numbered results with their Isabelle names. |
| docs/PROVENANCE.md |
Paper and artifact version history, DOIs, hashes. |
| AGENTS.md |
Guide for AI assistants and automated readers. |
The paper
- arXiv v4: abstract ·
PDF. 40 pages, 6 figures,
cs.DB + cs.DC + cs.LO, CC BY 4.0.
- In this repository: generalized-dblog.pdf, arXiv’s own stamped v4 PDF.
- Build from source. The bundle carries
main.bbl, so BibTeX is not
required for this exact rebuild:
cd paper
pdflatex main
pdflatex main
pdflatex main
The proofs
The artifact has three layers with different scopes.
| Layer |
Location |
Scope |
| Isabelle/HOL |
formal/dblog_framework/framework_core/ |
The full development: the normalized mathematical form of every numbered definition and result of the paper, including the five placements and degradation. |
| Lean 4 |
formal/dblog_framework/lean/ |
An independent proof of the contract core and the window-discard results. It does not cover every placement or the range merge. |
| TLA+ |
formal/dblog_framework/tla/ |
Five models and 25 TLC configurations. 15 complete with no invariant violation. 10 produce the counterexamples they were built to produce. |
Requirements: Isabelle2025-2, Lean 4.32.2, Python 3, Java 21, and TLC 2.19. The
exact TLC binary and its hash are named in formal/README.md.
Run the checks from the artifact directory:
cd formal
python3 reproduce.py checksums
python3 reproduce.py isabelle
python3 reproduce.py lean
python3 reproduce.py tlc --jar /absolute/path/to/tla2tools.jar
To check the Isabelle proofs without LaTeX, use
python3 reproduce.py isabelle --no-document. A counterexample reported in a
mutation run is the expected result of that run. The three PDFs in
formal/proof_documents/ can be read without
installing Isabelle.
To check this tree against the archived deposit, run from the repository root:
curl -sL -o artifact.zip https://zenodo.org/records/22643866/files/Generalized_DBLog_artifact-1.0.zip
unzip -q artifact.zip
diff -r Generalized_DBLog_artifact-1.0 formal
No output from diff means the trees are identical. The Zenodo record remains
the archival copy, and this repository mirrors it.
Versions and DOIs
The arXiv paper cites the Zenodo version DOI 10.5281/zenodo.22643866, and this
repository’s formal/ tree is byte-identical to that deposit. Full hashes and
the relationship between the public records:
docs/PROVENANCE.md.
Citing
The paper:
@misc{andreakis2026generalized_dblog,
author = {Andreas Andreakis},
title = {Generalized {DBLog}: A Verified Contract for Interleaving
Copied Rows with a Change Log},
year = {2026},
eprint = {2609.08160},
archivePrefix = {arXiv},
primaryClass = {cs.DB},
doi = {10.48550/arXiv.2609.08160}
}
The verification artifact:
@misc{andreakis2026generalized_dblog_formal,
author = {Andreas Andreakis},
title = {Formal development for "Generalized {DBLog}: A Verified Contract
for Interleaving Copied Rows with a Change Log"},
year = {2026},
publisher = {Zenodo},
version = {1.0},
doi = {10.5281/zenodo.22643866},
note = {Software, BSD 3-Clause License.}
}
GitHub’s Cite this repository button reads CITATION.cff.
Background
- A Theoretical Study of DBLog: Certified Virtual Cuts for a
Snapshot-Equivalent Replay of Live Databases, Andreakis, 2026.
arXiv:2605.31475 ·
repository.
This is the earlier proof for the original algorithm. The present artifact
builds on its formal development.
- DBLog: A Watermark Based Change-Data-Capture Framework, Andreakis &
Papapanagiotou, 2020. arXiv:2010.12597.
This is the original paper on the mechanism.
- DBLog: A Generic Change-Data-Capture Framework, Netflix Tech Blog, 2019.
Post.
License
- Paper text and figures (
paper/main.tex, paper/main.bbl,
paper/figures/ and reader documentation): Creative Commons Attribution 4.0
International, matching the arXiv posting. See
LICENSES/CC-BY-4.0.txt. paper/acmart.cls is the
ACM class file bundled with the arXiv submission. It keeps its own terms,
stated in its header.
- Verification artifact (
formal/): BSD 3-Clause. See LICENSE,
copied from the archived artifact. Upstream materials inside the artifact
retain their own license notices.
Author
Andreas Andreakis, independent researcher ·
ORCID 0009-0003-9025-9402
评论