We present a lightweight Haskell implementation of concatenated Huffman encoding tailored for web-streaming contexts. The design preserves the Shannon entropy reconstruction invariant while enabling linear-time forward encoding and inverse decoding. formal structural analysis confirms a structural complexity of 79 SLOC and a single function block, yielding an auxiliary memory footprint of O(||). Formal invariant proofs establish that decompression of a concatenated stream reproduces the original payload exactly. The algorithmic bounds are O(N) for both encoding and decoding, where N is the input length. No empirical runtime measurements are reported; all claims are supported by static analysis and formal reasoning.
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_09_compression_and_concatenation_on_th,
title={Lossless Concatenated Huffman Encoding for Web Streams: Invariant Preservation and Asymptotic Bounds},
author={Yonathan, Mateus},
journal={Polyglot Systems Lab Agentic Research Preprints},
year={2026},
publisher={Polyglot Systems Lab},
url={https://myonathanlinkedin.github.io/papers/2026-11-09_compression_and_concatenation_on_th/},
howpublished={\url{https://raw.githubusercontent.com/myonathanlinkedin/mini-papers/main/papers/2026-11-09_compression_and_concatenation_on_th/2026-11-09_compression_and_concatenation_on_th.pdf}}
}