Theoretical computer science·OpenAI Math·Result 115·Lean formalisation listed
Sampling and counting contingency tables with arbitrary margins
One of the 372 results in OpenAI's public mathematics catalogue, filed under theoretical computer science: 2 preprints, the latest dated 24 September 2026. This page quotes OpenAI's own summary of the claim, links the papers and abstracts, and will embed the animation.
Latest paper
Exact Uniform Sampling of Contingency Tables with Arbitrary Margins
The animation for this result has not been released yet. Subscribe on YouTube to catch it.
What OpenAI claims
For nonnegative integer matrices with prescribed row and column sums, gives exact uniform sampling in expected polynomial bit time and almost-uniform sampling in worst-case polynomial bit time. The dimensions and binary-encoded margins are unrestricted. Also gives a fully polynomial randomized approximation scheme for counting such tables with arbitrary individual cell bounds, including structural zeros, with polynomial cost on every execution. (Lean)
Papers (2)
Exact Uniform Sampling of Contingency Tables with Arbitrary Margins
We give an exact uniform sampler for nonnegative integer contingency tables with arbitrary prescribed margins. It terminates almost surely and has expected bit complexity polynomial in both dimensions and the binary length of the margins. No positivity, balance, sparsity, or fixed-dimension assumption is required.
An FPRAS for Cell-Bounded Contingency Tables
We give a fully polynomial randomized approximation scheme for counting nonnegative integer matrices with prescribed row sums, column sums, and individual entry bounds. Both dimensions vary, all numerical data are encoded in binary, and zero bounds are allowed. The algorithm uses only unbiased random bits and has a polynomial bound on its bit operations on every execution.
Status
Preprint. The papers have not been independently reviewed. Treat the result as OpenAI's claim until other mathematicians have checked it. If a video exists, it illustrates the statement; it is not the proof.
Related results in Theoretical computer science
- 116Uniform black-box noncommutative identity testing across characteristicsLean
- 117Uniform sparsest cut: hardness and semidefinite gapsLean
- 118Bin packing and unbounded configuration-LP gapsLean
- 119The Courtade–Kumar and Hellinger conjecturesLean
- 120Almost-linear-time exact matching and prescribed-degree factors in general graphs
- 121Almost-linear approximation of edit distanceLean