PHP Agentic Systems Lab Published: 2026-11-22

Height-Balanced Invariant Preservation in a PHP Minimax Tic-Tac-Toe Engine within the Aether Framework

Abstract

Abstract—This paper presents a formally verified PHP implementation of the Minimax algorithm for Tic-Tac-Toe within the Aether Framework. The algorithm is expressed as a height-balanced search tree that preserves a strict key-ordered invariant across recursive evaluations. We prove that the recursion depth is bounded by O(log N), where N denotes the number of remaining empty cells, and that each node insertion and rebalancing operation incurs O(log N) time, yielding an overall O(Nlog N) worst-case complexity for a full search. formal structural analysis confirms a structural complexity of 232 SLOC and 23 function blocks, matching the theoretical bounds. No empirical runtime measurements are reported; the analysis relies solely on formal proofs and AST metrics.

Manuscript Page 1 Preview
Height-Balanced Invariant Preservation in a PHP Minimax Tic-Tac-Toe Engine within the Aether Framework 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_21_tic_tac_toe_minimax_algorithm_in_ch,
  title={Height-Balanced Invariant Preservation in a PHP Minimax Tic-Tac-Toe Engine within the Aether Framework},
  author={Yonathan, Mateus},
  journal={Polyglot Systems Lab Agentic Research Preprints},
  year={2026},
  publisher={Polyglot Systems Lab},
  url={https://myonathanlinkedin.github.io/papers/2026-11-21_tic_tac_toe_minimax_algorithm_in_ch/},
  howpublished={\url{https://raw.githubusercontent.com/myonathanlinkedin/mini-papers/main/papers/2026-11-21_tic_tac_toe_minimax_algorithm_in_ch/2026-11-21_tic_tac_toe_minimax_algorithm_in_ch.pdf}}
}