OpenAI mathematics release · Result family 115

Sampling and counting contingency tables with arbitrary margins

Result described by OpenAIFor 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.

2 manuscriptsUpstream Lean scope documentedProofweave replay pending
Proof map

See the recorded structure for this family: a deep argument map, a draft proof chain, or a source-linked metadata scaffold.

Open the proof map →

Read what is proved, and what is not

Explanation

No reviewed artifact
No reviewed explanation artifact

No reviewed explanation artifact is available for this family. This empty slot is not evidence that the result is unproven; it means no explanation draft has been prepared and reviewed for this snapshot.

Read the original work

Manuscripts & citations

Download this record ↓
Manuscript 1OpenAI · 2026-09-24

Exact Uniform Sampling of Contingency Tables with Arbitrary Margins

Abstract from the sourceWe 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.

Formalization evidence

This manuscript is named in the family’s scope document. Read the scope below for the exact conclusions covered.

BibTeX citation from OpenAI
@misc{OAI:Exact-Uniform-Sampling-of-Contingency-Tables-with-Arbitrary-Margins-September-24-2026,
  author = {{OpenAI}},
  title = {{Exact Uniform Sampling of Contingency Tables with Arbitrary Margins}},
  howpublished = {OpenAI Math Release preprint
                  \href{https://github.com/openai/math/blob/main/preprints/Exact-Uniform-Sampling-of-Contingency-Tables-with-Arbitrary-Margins-September-24-2026/main.pdf}{OAI:Exact-Uniform-Sampling-of-Contingency-Tables-with-Arbitrary-Margins-September-24-2026}},
  year = {2026}
}

Source snapshot: 1581d4cbdd69. The citation above retains OpenAI’s original wording.

Manuscript 2OpenAI · 2026-09-24

An FPRAS for Cell-Bounded Contingency Tables

Abstract from the sourceWe 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.

Formalization evidence

This manuscript is named in the family’s scope document. Read the scope below for the exact conclusions covered.

BibTeX citation from OpenAI
@misc{OAI:An-FPRAS-for-Cell-Bounded-Contingency-Tables-September-24-2026,
  author = {{OpenAI}},
  title = {{An FPRAS for Cell-Bounded Contingency Tables}},
  howpublished = {OpenAI Math Release preprint
                  \href{https://github.com/openai/math/blob/main/preprints/An-FPRAS-for-Cell-Bounded-Contingency-Tables-September-24-2026/main.pdf}{OAI:An-FPRAS-for-Cell-Bounded-Contingency-Tables-September-24-2026}},
  year = {2026}
}

Source snapshot: 1581d4cbdd69. The citation above retains OpenAI’s original wording.

Inspect what was formalized

Lean proof scope

Described by OpenAI · not replayed by Proofweave
Scope statement from the source

The formalization gives an exact uniform sampler for nonnegative integer contingency tables with arbitrary prescribed row and column sums having equal totals. It terminates almost surely, every halted output is feasible, and each table has exactly the uniform limiting probability. Expected bit complexity is polynomial in the dimensions and the binary length of the margins.

It also gives a sampler with a fixed polynomial time bound on every execution whose total-variation error is at most 2−k2^{-k} for requested precision k≥1k\ge1. The same Comparator file includes the companion approximation scheme for counting tables with individual cell bounds.

The formalization gives a fully polynomial randomized approximation scheme for counting nonnegative integer matrices with prescribed row sums, column sums, and individual entry bounds. Both dimensions may vary, the margins and bounds are binary encoded, and zero entry bounds are allowed. For rational 0<ε,δ<10<\varepsilon,\delta<1, the algorithm returns a nonnegative estimate with relative error at most ε\varepsilon with probability at least 1−δ1-\delta, and returns zero on every execution when no table exists.

The running time is polynomial in the encoded input size, ε−1\varepsilon^{-1}, and log⁡(δ−1)\log(\delta^{-1}) on every random tape. The same Comparator file also contains the companion sampling results for tables without cell bounds.

Proofweave verification: pending

These records describe upstream evidence. A platform replay, a review of the theorem’s meaning, and an independent review still need their own evidence.

How Proofweave verification works →

Pinned source

Source & environment

The proofs share a large library. OpenAI recommends compiling selected portions at a time. Use the pinned environment and inspect the Comparator instructions before attempting a replay.

Upstream verification instructions ↗
Repository
openai/math ↗
Source revision
1581d4cbdd69a0faf34b2089614fe2a814316a6a
Lean toolchain
leanprover/lean4:v4.34.1
Mathlib revision
d13f23b723b8a846827a245b89c10fc7d3f11612
License
Apache-2.0 ↗
Indexed
2026-10-13