paper

Term Coding: An Entropic Framework for Extremal Combinatorics and the Guessing--Number Sandwich Theorem

arXiv:2601.16614

Abstract

Classical existence problems in extremal combinatorics ask whether finite operations can satisfy prescribed identities universally. Term Coding replaces this yes-or-no question by a graded one: for a finite system , the maximum code size is the largest number of satisfying assignments attainable on an -element alphabet. We prove that normalisation and diversification associate with a labelled guessing game of guessing number and give finite-alphabet sandwich bounds. Consequently, . Entropy and polymatroid inequalities provide systematic upper bounds. Examples include a five-cycle with exponent , self-orthogonal Latin squares, and presentation-dependent exponents for universally equivalent identity systems. All theorems, lemmas and propositions in this paper have been machine-checked in the Lean 4 proof assistant; the development is available at https://github.com/SR123/term-coding-lean.