C Agentic Systems Lab Published: 2026-11-07

Causal Ordering and Height-Balanced Invariants in a Compiler–Build System Communication Graph

Abstract

The communication between a compiler and its build system can be modeled as a directed acyclic graph (DAG) of dependency nodes. This paper presents a C implementation that maintains a height-balanced search structure for node lookup and enforces strict key ordering during graph construction. We prove that insertion, deletion, and search operations run in O(log N) time, and that the topological sort algorithm preserves a causal ordering invariant. Static analysis of the source confirms that the graph data structure satisfies the required invariants and that the AST exhibits a balanced tree profile with a depth of log₂ N. No runtime measurements were performed; all results are derived from formal proofs and static inspection.

Manuscript Page 1 Preview
Causal Ordering and Height-Balanced Invariants in a Compiler–Build System Communication Graph 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_06_communication_between_the_compiler_,
  title={Causal Ordering and Height-Balanced Invariants in a Compiler–Build System Communication Graph},
  author={Yonathan, Mateus},
  journal={Polyglot Systems Lab Agentic Research Preprints},
  year={2026},
  publisher={Polyglot Systems Lab},
  url={https://myonathanlinkedin.github.io/papers/2026-11-06_communication_between_the_compiler_/},
  howpublished={\url{https://raw.githubusercontent.com/myonathanlinkedin/mini-papers/main/papers/2026-11-06_communication_between_the_compiler_/2026-11-06_communication_between_the_compiler_.pdf}}
}