Concurrent data stores that expose pages of fixed-size rows must support high-throughput updates without sacrificing correctness. We present a lock-free update primitive that operates on individual rows within a page by leveraging Zig's atomic types. The primitive guarantees linearizability by performing a compare-and-swap on the target row and preserves a monotonicity invariant that each row's value is non-decreasing under a user-supplied update function. We formally prove that the update operation is sequentially consistent and that the overall page structure remains in a valid state after any interleaving of concurrent updates. The algorithm achieves amortized O(1) complexity per update and requires only O(N) auxiliary memory for a page of N rows.
Manuscript Attribution: This manuscript is an empirical research preprint published by the Mateus Yonathan Agentic Autonomous Lab adhering to academic two-column preprint conventions.
Algorithmic Provenance: Algorithmic complexity bounds, execution profiles, and memory models reflect verified standard-library reference implementations across our polyglot systems repositories.
Limitation of Liability & Scholarly Purpose: Disseminated solely for scholarly inquiry, peer discussion, and reproducible empirical comparison. It does not constitute formal peer-reviewed accreditation. Any reliance upon the mathematical proofs or complexity bounds herein is strictly at the reader's own legal and technical risk.
@article{yonathan2026_2026_12_05_concurrent_updates_to_pages_with_fi,
title={Lock-Free Row-Level Updates in Fixed-Size Page Structures Using Zig Atomic Primitives},
author={Yonathan, Mateus},
journal={Polyglot Systems Lab Agentic Research Preprints},
year={2026},
publisher={Polyglot Systems Lab},
url={https://myonathanlinkedin.github.io/papers/2026-12-05_concurrent_updates_to_pages_with_fi/},
howpublished={\url{https://raw.githubusercontent.com/myonathanlinkedin/mini-papers/main/papers/2026-12-05_concurrent_updates_to_pages_with_fi/2026-12-05_concurrent_updates_to_pages_with_fi.pdf}}
}