Lagrangians, Renormalization, and Quantization in Prefix Coding
Abstract
We develop a statistical mechanics framework for prefix coding based on variational principles, renormalization, and quantization. A Lagrangian formulation of entropy-optimal encoding under the Kraft-McMillan constraint yields a Gibbs-type implied distribution and completeness of the optimal code. A renormalization operator acting on codeword distribution laws produces a coarse-graining flow whose fixed points have iterated-log structure; discrete quantizations of these fixed points include Elias' code as a special case. Extending the theory to mixed discrete-continuous source laws, we show how continuous codelength functions can be quantized into countable prefix codes and derive resolution-adjusted entropy bounds together with Heisenberg-type and Boltzmann-type relations. This provides a unified and physically motivated view of universal coding, with Elias' code as a guiding example.
Keywords
Cite
@article{arxiv.2506.23447,
title = {Lagrangians, Renormalization, and Quantization in Prefix Coding},
author = {Alexander Kolpakov and Aidan Rocke},
journal= {arXiv preprint arXiv:2506.23447},
year = {2026}
}
Comments
14 pages, 2 tables; references updated; GitHub repository at https://github.com/sashakolpakov/elias-renorm