Interaction Trees provide a compositional model for reactive systems, yet the integration of temporal logic specifications with balanced search structures remains underexplored. This paper presents a Java implementation that augments a height-balanced tree with compositional temporal specifications, enabling efficient evaluation of safety and liveness properties while preserving strict height-balance and key-ordering invariants. We formalise the interaction between silent (Tau) steps, visible events, and temporal operators (Always, Eventually, Until) and prove that the tree remains strictly height-balanced after any sequence of insertions and specification evaluations. Static analysis of the source yields a theoretical complexity of O(log N) for search and insertion, with O(N) auxiliary memory. The implementation is fully verified through AST inspection and invariant proofs, with no runtime benchmarks performed.
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_11_24_compositional_temporal_specificatio,
title={Compositional Temporal Specifications for Interaction Trees: Height-Balanced Invariant Preservation in a Java Balanced Search Structure},
author={Yonathan, Mateus},
journal={Polyglot Systems Lab Agentic Research Preprints},
year={2026},
publisher={Polyglot Systems Lab},
url={https://myonathanlinkedin.github.io/papers/2026-11-24_compositional_temporal_specificatio/},
howpublished={\url{https://raw.githubusercontent.com/myonathanlinkedin/mini-papers/main/papers/2026-11-24_compositional_temporal_specificatio/2026-11-24_compositional_temporal_specificatio.pdf}}
}