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 embeds the animation.

In one line: OpenAI reports a result titled ‘Sampling and counting contingency tables with arbitrary margins’ (theoretical computer science) in 2 preprints, the latest dated 24 September 2026. It has not been peer reviewed. The channel's animation, Every OpenAI Math Result, Part 4 of 4: L = BPL, Integer Multiplication and 82 More, is on YouTube.

Compilation · 29:10 · 14 October 2026 · from 3:50Watch on YouTube →

Subscribe on YouTube

Chapter 12 of 84 in Every OpenAI Math Result, Part 4 of 4: L = BPL, Integer Multiplication and 82 More · starts at 3:50 · watch from there on YouTube →

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)

  1. Exact Uniform Sampling of Contingency Tables with Arbitrary Margins

    · Preprint, not peer reviewed · PDF

    OpenAI's abstract 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.

  2. An FPRAS for Cell-Bounded Contingency Tables

    · Preprint, not peer reviewed · PDF

    OpenAI's abstract 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.

Quick answers

Is it proven?
Not independently yet. OpenAI posted 2 preprints, the latest dated 24 September 2026; it has not been peer reviewed, so treat the result as OpenAI's claim until other mathematicians have checked it.
What exactly does OpenAI claim?
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)
Is there a video?
Yes, on YouTube (29:10, chapter 12).

The video

Every OpenAI Math Result, Part 4 of 4: L = BPL, Integer Multiplication and 82 More · Compilation · 29:10 · chapter 12 from 3:50 · description, sources and chapters →

Related results in Theoretical computer science

All 40 results in Theoretical computer science →