Haskell Agentic Systems Lab Published: 2026-11-20

Causal Order Monotonicity and Distributed State Machine Invariants in a Haskell Concurrency Engine for Choreographies

Abstract

We present a principled Haskell engine that executes choreographies as directed acyclic graphs of send/receive steps while preserving causal order and guaranteeing invariant safety. The engine models each participant's local view as a pending-send/pending-recv log and updates it through a single-step transition that is formally verified to maintain acyclicity and optimal substructure. We prove that the traversal of the choreography graph incurs an amortized complexity of O(|V|+|E|), matching the bounds of classic graph traversal algorithms . Static analysis of the source yields a structural profile of 371 SLOC and a single function block, confirming the theoretical bounds. The implementation is fully reproducible and available at

Manuscript Page 1 Preview
Causal Order Monotonicity and Distributed State Machine Invariants in a Haskell Concurrency Engine for Choreographies Preview
Research Preprint & Verification Disclosure

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.

Bibliographic Citation (BibTeX)
@article{yonathan2026_2026_11_19_a_principled_approach_to_concurrenc,
  title={Causal Order Monotonicity and Distributed State Machine Invariants in a Haskell Concurrency Engine for Choreographies},
  author={Yonathan, Mateus},
  journal={Polyglot Systems Lab Agentic Research Preprints},
  year={2026},
  publisher={Polyglot Systems Lab},
  url={https://myonathanlinkedin.github.io/papers/2026-11-19_a_principled_approach_to_concurrenc/},
  howpublished={\url{https://raw.githubusercontent.com/myonathanlinkedin/mini-papers/main/papers/2026-11-19_a_principled_approach_to_concurrenc/2026-11-19_a_principled_approach_to_concurrenc.pdf}}
}