Term Coding for Extremal Combinatorics: Dispersion and Complexity Dichotomies
Abstract
We introduce Term Coding, a novel framework for analysing extremal problems in discrete mathematics by encoding them as finite systems of term equations (and, optionally, non-equality constraints). In its basic form, all variables range over a single domain, and we seek an interpretation of the function symbols that maximises the number of solutions to these constraints. This perspective unifies classical questions in extremal combinatorics, network/index coding, and finite model theory. We further develop multi-sorted Term Coding, a more general approach in which variables may be of different sorts (e.g., points, lines, blocks, colours, labels), possibly supplemented by variable-inequality constraints to enforce distinctness. This extension captures sophisticated structures such as block designs, finite geometries, and mixed coding scenarios within a single logical formalism. Our main result shows how to determine (up to a constant) the maximum number of solutions \(I(,n)\) for any system of term equations (possibly including non-equality constraints) by relating it to graph guessing numbers and entropy measures. Finally, we focus on dispersion problems, an expressive subclass of these constraints. We discover a striking complexity dichotomy: deciding whether, for a given integer \(r\), the maximum code size that reaches \(nr\) is undecidable, while deciding whether it exceeds \(nr\) is polynomial-time decidable.
Turn this paper into a full lesson
ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.