Research explained
A discrete Jensen inequality for counting whole-number solutions
Suppose you have a system of constraints on whole numbers: each variable must be an integer, and certain differences between variables must stay below fixed limits. How many whole-number solutions are there? And if the limits themselves are chosen at random, what happens to the count on average?
These questions sit at the meeting point of combinatorics, optimisation and probability. Counting lattice points in polytopes, the geometric shapes cut out by linear constraints, is a basic problem, and the number of lattice points can be approximated and estimated in many ways. A recurring theme is that such counts behave like exponentials of concave functions, and so satisfy inequalities of the type studied in convex analysis. This paper proves one such inequality, a discrete Jensen inequality, for a broad class of constraint systems.
The problem and its history
Jensen's inequality is the basic tool for averages of concave functions. For a concave function f and a random variable A, the value of f at the average of A is at least the average of f(A). Here the function is the logarithm of the number of lattice points, and the random variable is the vector of constraint limits. The difficulty is that the limits must be whole numbers. The mean is assumed to be a whole-number vector, but the distribution may have no two possible values whose midpoint is a whole-number vector, so the two-point midpoint inequality does not apply directly. That is what makes the discrete case harder than the continuous one.
The question was posed in 2026 by Leake and Mohammadi Yekta (arXiv:2609.39917), in a paper on log-concavity and approximate counting for totally unimodular polytopes. They asked whether lattice-point counts of unimodular fibres satisfy a discrete Jensen inequality for every distribution of right-hand sides with integral mean. Barvinok (2007) had earlier studied Brunn–Minkowski-type inequalities for contingency tables and integer flows, a question closely related to the transportation tables discussed below. Gozlan, Roberto, Samson and Tetali (2021) proved discrete versions of the Prékopa–Leindler inequality by transport methods, including an entropy midpoint inequality that is the main tool here. Halikias, Klartag and Slomka (2021) proved discrete variants of Brunn–Minkowski inequalities. Lam and Postnikov (2007) studied alcoved polytopes, the geometric class of constraint systems on which the main result is proved.
To see what kind of object is being counted, consider a small scheduling problem. Each task has a start time in whole hours, measured from a fixed starting task, and some tasks must finish before others begin. Each precedence rule is a difference constraint of the form "the start time of one task minus that of another is at most a fixed amount", so the number of valid timetables is a lattice-point count of exactly the kind studied here. If the time limits are uncertain, and are modelled as a random whole-number quantity with a whole-number average, the discrete Jensen inequality says that the logarithm of the count at the average limit is at least the expected logarithm of the count over the random limits.
Why would one expect such a statement? Lattice-point counts of these shapes often behave like exponentials of concave functions, and concavity is the general property that makes averages predictable. The continuous version of this behaviour is classical. The discrete version is harder, because the distribution of the random limits may have no pair of possible values whose midpoint is a lattice point. The work in this paper, and the work it builds on, gets around that obstacle without losing the inequality.
Why it matters
Counting lattice points is central to integer programming, to the study of contingency tables in statistics, and to the analysis of approximate counting algorithms. A discrete Jensen inequality is a structural statement: it says the counting function has a convexity-type property, which can be used to prove bounds, to compare different counts, and to design algorithms that sample from the counted objects.
The result also has a concrete meaning for flows and tables. Counting integer flows on a planar network, or counting whole-number tables with given row and column totals, are typical questions in combinatorics and statistics, and an inequality for them says how the number of valid configurations responds to changes in the totals.
The key idea of the proof
The argument has three steps, and each has a clear intuition.
The first step balances finitely many quantiles of the random limits against the entropy midpoint inequality of Gozlan, Roberto, Samson and Tetali. That inequality is an entropy statement about midpoints, and it supplies the Jensen-type behaviour; the quantile balancing is what allows it to be applied to whole-number data.
The second step lifts that balance to several coordinates at once, using a conditional quantile coupling, so that the limits of different constraints are coupled in a controlled way.
The third step is the rounding. Each coordinate is rounded using one common offset. The point of using a common offset is that it preserves every integral difference between coordinates, so the rounded solutions still satisfy the constraint structure, and the counting inequality transfers from the coupled random variables back to the lattice counts.
What is new
The paper proves the full discrete Jensen inequality for type-A alcoved polytopes, the constraint systems x_u − x_v ≤ h_uv, in every dimension. All directed difference bounds may vary at once, and the inequality holds for every integrable distribution of bounds with integral mean. This answers Question 1.7 of Leake and Mohammadi Yekta affirmatively for every type-A alcoved system in every dimension. In the author's earlier reduction of the four-dimensional case, this is the type-A₄ branch. The same argument proves Jensen inequalities for partition functions of integer height functions and for planar integer flows with convex edge energies, where conservation data and edge capacities vary together.
For the second branch, three-by-three transportation tables with capped cells, coordinatewise rounding in a fixed order fails, so the paper compares whole fibre counts instead. It proves the inequality for uniform cell caps up to six, for up to three distinguished cells with unbounded caps over a small common cap, and for four or five distinguished cells, or six connected ones, with unbounded intervals over binary widths. For three right-hand sides of weight one third with integral mean and cell caps at most three, an exact certificate over 1,244,614,880 marked support systems shows that balanced margins maximise the count, so N(b₁)N(b₂)N(b₃) ≤ N(b)³: the question is answered affirmatively in this class.
The inequality is strongest when the constraints form a type-A alcoved system, where every constraint compares two coordinates. This is the setting in which the record gives a complete answer. The same argument also reaches related counts, such as partition functions of integer height functions and planar integer flows with convex energies, so one proof covers several combinatorial families at once.
Scope and status
The record is a self-archived preprint on the Luminary Research Archive. Its disclosures state that OpenAI Codex and Anthropic Claude assisted as described in the paper's acknowledgement, and that the author directed and reviewed the work. Prior work is credited throughout, including the Leake and Mohammadi Yekta question, Barvinok's contingency-table question, the entropy midpoint theorem of Gozlan et al., Slomka's and Halikias–Klartag–Slomka's lattice inequalities, and Speyer's L-convexity theorem.
The type-A inequality holds in every dimension. For capped 3×3 transportation tables the record proves the inequality on explicit families and, by an exact certificate, for every triple of equal-weight right-hand sides with cell caps at most three.
By Scott Schubr, Luminary Oddities. Explainer published 5 December 2026; mathematical statements checked against the cited Archive edition by our Math Lab. Paper: https://research.luminaryoddities.org/discrete-jensen-inequality-alcoved-lattice-counts-planar-integer-flows/v/3 · DOI 10.5281/zenodo.24566515
Read the paper
The full paper, its edition history and supporting files are in the Luminary Research Archive.
Curiosities of the living and natural world