paper

Lagrangians, Renormalization, and Quantization in Prefix Coding

arXiv:2506.23447 · doi:10.1007/s13538-026-02015-9

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.

14 pages, 2 tables; references updated; GitHub repository at https://github.com/sashakolpakov/elias-renorm

Lagrangians, Renormalization, and Quantization in Prefix Coding · wovepaper