Exact uniform sampling of arbitrary-margin contingency tables
Status OpenLLM status Open unverified
Top Open Problems unknownunknown Not reported cataloguedOpenOpenStatement
Definitions and mathematical statement
Statement recorded in the supplied source.
For all nonnegative integer row and column margins of equal total N, is exact uniform sampling of nonnegative integer contingency tables possible with independent unbiased random bits, almost-sure termination and polynomial expected bit time in dimensions and log(N+1)? Is total-variation error $2^{-k}$ achievable in bounded polynomial time in those parameters and k?Short English statement
For all nonnegative integer row and column margins of equal total N, is exact uniform sampling of nonnegative integer contingency tables possible with independent unbiased random bits, almost-sure termination and polynomial expected bit time in dimensions and log(N+1)? Is total-variation error $2^{-k}$ achievable in bounded polynomial time in those parameters and k?Sources
- S1 Original question source or mathematical context. https://aimath.org/pastworkshops/chipfiringproblems.pdf.
- S2 OpenAI, manuscript citation page. Source of the formulation motivating this local problem. https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/Exact-Uniform-Sampling-of-Contingency-Tables-with-Arbitrary-Margins-September-24-2026/README.md.
Statement licence: CC-BY-4.0 · Source file
Contributions 1
OpenAI claim summary for CS-120
The result supplies the conclusion in this problem with its displayed hypotheses and quantifiers. The broader statements and applications in the manuscript are kept separate from the particular question above. The supporting result is manuscript 1 (family 115; 2026-09-24).
Exact uniform sampling of arbitrary-margin contingency tables
OpenAI's claim
OpenAI presents the following claims relevant to this question, with manuscript numbers following paper order in Sources. In manuscript 1 (family 115; 2026-09-24), the asserted result is that arbitrary-margin nonnegative integer contingency tables admit exact uniform sampling with almost-sure termination and polynomial expected bit cost.Mathematical statement of the claimed result
Manuscript 1.
For arbitrary nonnegative integer margins $r\in\mathbb Z_{\ge0}^m$, $c\in\mathbb Z_{\ge0}^n$ with equal total $N$, let \[ \Omega(r,c)=\{A\in\mathbb Z_{\ge0}^{m\times n}:\sum_jA_{ij}=r_i,\ \sum_iA_{ij}=c_j\}. \] The claim gives a bounded-time sampler whose output law is within $2^{-k}$ total variation of uniform for every supplied integer $k\ge1$, with cost polynomial in $m,n,\log(N+1),k$. It also gives an exact-uniform sampler terminating almost surely with expected bit time polynomial in $m,n,\log(N+1)$. Both use unbiased bits and are uniform across all margins, including zeros, with no balance or fixed-dimension assumption.Outline of the argument
For manuscript 1 (family 115; 2026-09-24), small margins are explicit states while large completions are handled by a padded auxiliary chain. Signature and transport bounds give a bounded approximate sampler; tabulation of its dyadic output law enables a rare exhaustive residual draw that corrects the law exactly.Formal verification
For manuscript 1 (family 115; 2026-09-24), OpenAI lists Lean statements for this assertion: arbitrary-margin nonnegative integer contingency tables admit exact uniform sampling with almost-sure termination and polynomial expected bit cost.The selected statement includes the clause used for this problem.
The linked family Comparator checks are ContingencyTables.lean.
Their named declarations include OAI.ContingencyTables.boundedSampling, OAI.ContingencyTables.counting, OAI.ContingencyTables.exactSampling.
This site has not executed the Lean code. Described statement coverage is not an independent proof check.
Status caveat
The manuscripts were produced by an internal OpenAI model. OpenAI cautions that results without formalization can contain mistakes. This site has not independently checked the proofs; the label records the scope of OpenAI's claim.Sources
- OpenAI, Exact Uniform Sampling of Contingency Tables with Arbitrary Margins, 2026-09-24; citation key
OAI:Exact-Uniform-Sampling-of-Contingency-Tables-with-Arbitrary-Margins-September-24-2026. PDF (GitHub); PDF (direct); Manuscript page and citation; Latest version; Statement source: thm:main. - Family 115: Lean scope.
- Comparator ContingencyTables.json.
- Comparator ContingencyTables.lean.
- OpenAI catalogue entry.