Plectis Atlas
Search

↑ and ↓ move, Enter opens, Esc closes.

How to use the Atlas

Each Atlas page is about one result from OpenAI’s mathematics release. It puts the paper’s theorem beside the Lean statement OpenAI wrote for a computer to check, and shows what outside groups found.

How to read a result

  1. Find a result. Press / and type a few words from its title, or click a subject on the map and then a dot. Each dot is one result and its papers.
  2. Read the first screen. The paper’s theorem is on the left. On the right is the statement OpenAI wrote in Lean, a language in which a computer checks every step of a proof. The line underneath gives how the two were linked and whether anyone has reviewed that they mean the same thing.
  3. See what the outside groups found. They answer two separate questions, each in its own words: whether the Lean says what the paper claims, and whether OpenAI’s proof passed Comparator, the program that checks the proof against the Lean. A pass means the proof proves the Lean statement, not that the Lean says what the paper says.
  4. Use the tabs for more. They hold the full papers, every Lean statement, each group’s full reasons with a link to its report, and related reading.

Try it on one result: the irrationality exponent of π

Words you will see

Family
OpenAI’s group of papers about one result. Each dot on the map is a family.
Lean statement
A theorem written in Lean with its proof left out (the file says sorry in its place). OpenAI supplies the proof in a separate file.
Comparator
The program that checks OpenAI’s proof against a Lean statement. A pass does not show that the Lean means what the paper says.
The outside groups
MathVet and Carlos Toledo’s cert-machine compared each family’s Lean statements with OpenAI’s description of the result and gave their verdicts in their own words. Other groups report Comparator runs.
Possible match
A paper theorem linked to a Lean statement by a citation in the Lean source, by an AI agent’s reading of both, or by words they share. No review that they mean the same thing is recorded.

Every term, in the glossaryThis guide as a page

Atlas collects these reports and links to them. It runs no checks itself.

Press ? to open this guide and Esc to close it.

Lean statement

Exact and bounded-time sampling of contingency tables

Theorems selected for verification: OAI.ContingencyTables.boundedSampling OAI.ContingencyTables.exactSampling OAI.ContingencyTables.counting

Lean statement: ContingencyTables.leanShow on the map

A statement OpenAI wrote in Lean, a language in which a computer checks every step of a proof.

The Lean statement beside the paper

The paper states

Theorem 1.1 of An FPRAS for Cell-Bounded Contingency Tables

Theorem

There is one randomized algorithm with the following guarantee. Given (r,c,b) as above and rational \varepsilon,\delta\in(0,1), it outputs a nonnegative rational \widehat Z such that

\P\bigl((1-\varepsilon)Z(r,c,b)\le \widehat Z \le(1+\varepsilon)Z(r,c,b)\bigr)\ge1-\delta.

If \Omega(r,c,b) is empty, the output is zero on every execution. The algorithm uses independent unbiased bits, and one fixed polynomial in L, \varepsilon^{-1}, and \log(\delta^{-1}) bounds its total bit operations on every execution, where L is the total binary input length, including the accuracy parameters. No counting or sampling oracle is required.

Section 1, Introduction Read it in the paper TeX source, line 21
Show the TeX
There is one randomized algorithm with the following guarantee. Given
$(r,c,b)$ as above and rational $\varepsilon,\delta\in(0,1)$, it outputs
a nonnegative rational $\widehat Z$ such that
\[
 \P\bigl((1-\varepsilon)Z(r,c,b)\le \widehat Z
                  \le(1+\varepsilon)Z(r,c,b)\bigr)\ge1-\delta.
\]
If $\Omega(r,c,b)$ is empty, the output is zero on every execution.
The algorithm uses independent unbiased bits, and one fixed polynomial
in $L$, $\varepsilon^{-1}$, and $\log(\delta^{-1})$ bounds its total bit
operations on every execution, where $L$ is the total binary input
length, including the accuracy parameters. No counting or sampling
oracle is required.

OpenAI’s Lean states

def BoundedSamplingStatement : Prop :=  ∃ (A : Machine) (C d : ℕ), 0 < C ∧    ∀ (m n : ℕ) (r : Fin m → ℕ) (c : Fin n → ℕ),      (∑ i, r i) = ∑ j, c j → ∀ k : ℕ, 1 ≤ k →        let input := encodeSamplingInput r c k        let t := C * (samplingSize n r k) ^ d        (∀ bits : Fin t → Bool, ∃ X : Table r c, OutputsTable A input bits X.val) ∧        (∑ X : Table r c,          |tableMass A input t X.val - (Fintype.card (Table r c) : ℝ)⁻¹|) / 2 ≤            ((2 : ℝ) ^ k)⁻¹def ExactSamplingStatement : Prop :=  ∃ (A : Machine) (C d : ℕ), 0 < C ∧    ∀ (m n : ℕ) (r : Fin m → ℕ) (c : Fin n → ℕ),      (∑ i, r i) = ∑ j, c j →        let input := encodeMargins r c        let tail : ℕ → ℝ := fun t => 1 - haltMass A input t        (∀ t (bits : Fin t → Bool), (MatchingFPRAS.run A input bits).state = none →          ∃ X : Table r c, OutputsTable A input bits X.val) ∧        (∀ X : Table r c, Tendsto (fun t => tableMass A input t X.val) atTop          (nhds ((Fintype.card (Table r c) : ℝ)⁻¹))) ∧        Tendsto (haltMass A input) atTop (nhds 1) ∧        Summable tail ∧        tsum tail ≤ C * (samplingSize n r 0) ^ ddef CountingStatement : Prop :=  ∃ (A : Machine) (C d : ℕ), 0 < C ∧    ∀ (m n : ℕ), 0 < m → 0 < n →    ∀ (r : Fin m → ℕ) (c : Fin n → ℕ) (b : Fin m → Fin n → ℕ),      (∑ i, r i) = ∑ j, c j →      ∀ ε δ : ℚ, 0 < ε → ε < 1 → 0 < δ → δ < 1 →        let input := encodeCountingInput r c b ε δ        let t := countingTime C d r c b ε δ        (∀ bits : Fin t → Bool, ∃ q : ℚ, 0 ≤ q ∧ MatchingFPRAS.Outputs A input bits q) ∧        (count r c b = 0 → ∀ bits : Fin t → Bool, MatchingFPRAS.Outputs A input bits 0) ∧        ((goodCountingTapes A r c b ε δ t).card : ℚ) / (2 : ℚ) ^ t ≥ 1 - δtheorem boundedSampling : Algorithms.BoundedSamplingStatement := by sorrytheorem exactSampling : Algorithms.ExactSamplingStatement := by sorrytheorem counting : Algorithms.CountingStatement := by sorry

sorry stands in for the proof here. OpenAI’s proof is in a separate file, and Comparator checks it against this statement.

OpenAI’s proofs of these:

Comparator’s settings for this file

Possible match. This theorem was selected because the two share words. No review of whether they mean the same thing is recorded. How it was chosen

What the outside groups found

Each group assessed family 115’s Lean as a whole; each Comparator run is of this statement. MathVet and cert-machine agree on how much of the advertised result the Lean statements express.

MathVet

“full”

Family 115: its Lean expresses or implies the whole advertised result.

“None material; counting statement assumes equal row/column totals (unequal totals, which also admit no table, are not required to output 0).” Their assessment

Definitions the group asks readers to compare with the paper: Machine model is the hand-rolled RandomMachine (single-tape Post-Turing table over Fin 8, one fair coin per tick) shared with the matching FPRAS file; 'expected polynomial time' is tsum (1 - haltMass t), 'uniform' is tableMass → 1/card (Table r c), 'almost uniform' is total variation (∑ |tableMass - 1/card|)/2; OutputsTable uses an explicit @Fin.instInhabited 8 alphabetSize_neZero instance hack

Did OpenAI’s proof of this statement pass Comparator?

  • Acceptance reported

    Their label: “comparator-pass”, 8 October 2026 their report

    Re-run through Comparator: accepted.

Carlos Toledo’s cert-machine

“MATCHES”

Family 115: its Lean expresses or implies the whole advertised result.

Their record names nothing missing. Their assessment

Did OpenAI’s proof of this statement pass Comparator?

  • Acceptance reported

    Their label: “CERTIFIED”, 10 October 2026 their report

    Re-run through Comparator with the independent nanoda kernel switched on: Lean’s kernel and nanoda both accept OpenAI’s solution.

A Comparator pass checks OpenAI’s proof of this Lean statement. It does not show that the statement says everything the paper says. Atlas links these reports and has not repeated any run.

Read every group’s full assessment on the family page.

Reading the Lean statement

OpenAI’s own note on what this Lean statement covers

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

An AI agent drafted an interpretation of that note, classifying this statement as “states a paper’s theorem as the paper does”. No human review of the draft is recorded.

How to read it

  • theorem name : claim := by sorry: the claim is everything between the first colon and :=, and sorry holds the place of the proof.
  • ∀ x, P reads “for every x, P”.
  • ∃ x, P reads “there is an x with P”.
  • x : ℝ says x is a real number; (q : ℝ) treats q as a real number. ℕ, ℤ, ℚ, ℝ and ℂ are the natural numbers 0, 1, 2, …, the integers, the rationals, the reals and the complex numbers.
  • P → Q reads “if P then Q”; between types, A → B is a function from A to B.
  • ∧ is “and”.
  • ∑ i ∈ s, f i adds up f i over the finite set s; ∑' n, f n is the sum of an infinite series.
  • Tendsto f F G is a limit statement: as x approaches F, f x approaches G. atTop means “as x grows without bound”.
  • fun x ↦ e is the function that sends x to e.
  • x ^ n is x to the power n.

Pointing at a linked name in the complete file below shows its definition.

Definitions needed to read it

Local definitions the statement names, followed through the definitions they name in turn. The match is by name in the source text, so a name reached only through notation can be missed; the full file is below.

  • abbreviation OAI.MatchingFPRAS.Symbol line 7

    abbrev Symbol := Fin 8
  • definition OAI.MatchingFPRAS.encodeNat line 10

    def encodeNat (n : ℕ) : List Symbol :=  (Nat.bits n).map (fun b => if b then 2 else 1) ++ [3]
  • definition OAI.MatchingFPRAS.encodeInt line 13

    def encodeInt (z : ℤ) : List Symbol :=  (if z < 0 then [5] else [4]) ++ encodeNat z.natAbs
  • definition OAI.MatchingFPRAS.encodeRat line 17

    def encodeRat (q : ℚ) : List Symbol := encodeInt q.num ++ encodeNat q.den
  • structure OAI.MatchingFPRAS.RandomMachine line 20

    structure RandomMachine where  states : ℕ  transition : Fin (states + 1) → Symbol → Bool →    Option (Fin (states + 1) × Turing.TM0.Stmt Symbol)
  • structure OAI.MatchingFPRAS.Configuration line 25

    structure Configuration (A : RandomMachine) where  state : Option (Fin (A.states + 1))  tape : Turing.Tape Symbol
  • definition OAI.MatchingFPRAS.tick line 31

    def tick (A : RandomMachine) (c : Configuration A) (bit : Bool) : Configuration A :=  match c.state with  | none => c  | some s => match A.transition s c.tape.head bit with    | none => ⟨none, c.tape⟩    | some (s', action) =>      ⟨some s', match action with        | .move d => c.tape.move d        | .write a => c.tape.write a⟩
  • definition OAI.MatchingFPRAS.initial line 41

    def initial (A : RandomMachine) (input : List Symbol) : Configuration A :=  ⟨some 0, Turing.Tape.mk₁ input⟩
  • definition OAI.MatchingFPRAS.run line 45

    def run (A : RandomMachine) (input : List Symbol) {t : ℕ}    (bits : Fin t → Bool) : Configuration A :=  (List.ofFn bits).foldl (tick A) (initial A input)
  • definition OAI.MatchingFPRAS.Outputs line 49

    def Outputs (A : RandomMachine) (input : List Symbol) {t : ℕ}    (bits : Fin t → Bool) (q : ℚ) : Prop :=  (run A input bits).state = none ∧    (run A input bits).tape.right₀ = Turing.ListBlank.mk (encodeRat q)
  • definition OAI.ContingencyTables.HasMargins line 61

    def HasMargins (X : I → J → ℕ) (r : I → ℕ) (c : J → ℕ) : Prop :=  (∀ i, ∑ j, X i j = r i) ∧ (∀ j, ∑ i, X i j = c j)
  • definition OAI.ContingencyTables.Table line 64

    def Table (r : I → ℕ) (c : J → ℕ) := {X : I → J → ℕ // HasMargins X r c}
  • definition OAI.ContingencyTables.BoundedTable line 66

    def BoundedTable (r : I → ℕ) (c : J → ℕ) (b : I → J → ℕ) :=  {X : Table r c // ∀ i j, X.val i j ≤ b i j}
  • abbreviation OAI.ContingencyTables.Algorithms.Machine line 103

    abbrev Machine := MatchingFPRAS.RandomMachine
  • definition OAI.ContingencyTables.Algorithms.encodeMatrix line 106

    def encodeMatrix {m n : ℕ} (X : Fin m → Fin n → ℕ) : List Symbol :=  ((List.ofFn fun i => (List.ofFn fun j => MatchingFPRAS.encodeNat (X i j)).flatten)).flatten
  • definition OAI.ContingencyTables.Algorithms.encodeMargins line 109

    def encodeMargins {m n : ℕ} (r : Fin m → ℕ) (c : Fin n → ℕ) : List Symbol :=  MatchingFPRAS.encodeNat m ++ MatchingFPRAS.encodeNat n ++    (List.ofFn fun i => MatchingFPRAS.encodeNat (r i)).flatten ++    (List.ofFn fun j => MatchingFPRAS.encodeNat (c j)).flatten
  • definition OAI.ContingencyTables.Algorithms.encodeSamplingInput line 114

    def encodeSamplingInput {m n : ℕ} (r : Fin m → ℕ) (c : Fin n → ℕ) (k : ℕ) : List Symbol :=  encodeMargins r c ++ MatchingFPRAS.encodeNat k
  • definition OAI.ContingencyTables.Algorithms.encodeCountingInput line 117

    def encodeCountingInput {m n : ℕ} (r : Fin m → ℕ) (c : Fin n → ℕ)    (b : Fin m → Fin n → ℕ) (ε δ : ℚ) : List Symbol :=  encodeMargins r c ++ encodeMatrix b ++ MatchingFPRAS.encodeRat ε ++ MatchingFPRAS.encodeRat δ
  • definition OAI.ContingencyTables.Algorithms.OutputsTable line 125

    def OutputsTable (A : Machine) (input : List Symbol) {t m n : ℕ}    (bits : Fin t → Bool) (X : Fin m → Fin n → ℕ) : Prop :=  (MatchingFPRAS.run A input bits).state = none ∧    @Turing.Tape.right₀ MatchingFPRAS.Symbol (@Fin.instInhabited 8 alphabetSize_neZero)      (MatchingFPRAS.run A input bits).tape =    @Turing.ListBlank.mk Symbol (@Fin.instInhabited 8 alphabetSize_neZero) (encodeMatrix X)
  • definition OAI.ContingencyTables.Algorithms.tableMass line 132

    noncomputable def tableMass (A : Machine) (input : List Symbol) (t : ℕ)    {m n : ℕ} (X : Fin m → Fin n → ℕ) : ℝ := by  classical  exact ((Finset.univ.filter fun bits : Fin t → Bool => OutputsTable A input bits X).card : ℝ) /    (2 : ℝ) ^ t
  • definition OAI.ContingencyTables.Algorithms.haltMass line 138

    noncomputable def haltMass (A : Machine) (input : List Symbol) (t : ℕ) : ℝ := by  classical  exact ((Finset.univ.filter fun bits : Fin t → Bool =>      (MatchingFPRAS.run A input bits).state = none).card : ℝ) / (2 : ℝ) ^ t
  • definition OAI.ContingencyTables.Algorithms.samplingSize line 143

    def samplingSize (n : ℕ) {m : ℕ} (r : Fin m → ℕ) (k : ℕ) : ℕ :=  m + n + Nat.clog 2 ((∑ i, r i) + 1) + k + 1
  • definition OAI.ContingencyTables.Algorithms.count line 176

    noncomputable def count {m n : ℕ} (r : Fin m → ℕ) (c : Fin n → ℕ)    (b : Fin m → Fin n → ℕ) : ℕ := Fintype.card (BoundedTable r c b)
  • definition OAI.ContingencyTables.Algorithms.countingTime line 179

    def countingTime (C d : ℕ) {m n : ℕ} (r : Fin m → ℕ) (c : Fin n → ℕ)    (b : Fin m → Fin n → ℕ) (ε δ : ℚ) : ℕ :=  C * ((encodeCountingInput r c b ε δ).length + ⌈ε⁻¹⌉₊ +    Nat.clog 2 ⌈δ⁻¹⌉₊ + 1) ^ d

1 more definitions are reached the same way; the full file lists them.

How the paper theorem was chosen

Words of the Lean statement, its names split into words, that also appear in the theorem: binary, including, input, randomized, zero, accuracy, counting, execution and twelve more. Found in the paper’s title, which its main theorem states: cell, fpras and tables.

Statements in An FPRAS for Cell-Bounded Contingency Tables come first because the release’s name for this Lean statement shares words with that paper’s title.

How a possible match is selected without a citation or a source reading: Statement Map compares words in the Lean statement, with its names split into words and the definitions it uses, against every statement in the family. The release’s label and note receive less weight; a main theorem wins a close match. If no statement matches clearly, nothing is paired. This selects passages to compare; it does not establish that they mean the same thing.

Other possible paper matches, closest wording first

  • Corollary 8.1 of An FPRAS for Cell-Bounded Contingency Tables. Words of the Lean statement, its names split into words, that also appear in the theorem: binary, including, input, zero, accuracy, counting and 13 more.
  • Proposition 6.1 of An FPRAS for Cell-Bounded Contingency Tables. Words of the Lean statement, its names split into words, that also appear in the theorem: cost, encoding, randomized, count, execution, length and eight more.
  • Theorem 1.1 of Exact Uniform Sampling of Contingency Tables with Arbitrary Margins. Words of the Lean statement, its names split into words, that also appear in the theorem: dimension, expected, random, almost, margin, time and twelve more. Found in the paper’s title, which its main theorem states: sampling. Shared only with the release’s name for the Lean statement or OpenAI’s note on it: whose.
  • Theorem 5.1 of Exact Uniform Sampling of Contingency Tables with Arbitrary Margins. Words of the Lean statement, its names split into words, that also appear in the theorem: always, row, single, margin, time, variation and nine more. Shared only with the release’s name for the Lean statement or OpenAI’s note on it: whose.
  • Theorem 6.4 of Exact Uniform Sampling of Contingency Tables with Arbitrary Margins. Words of the Lean statement, its names split into words, that also appear in the theorem: expected, random, almost, time, algorithm, exactly and five more.
  • Proposition 7.2 of An FPRAS for Cell-Bounded Contingency Tables. Words of the Lean statement, its names split into words, that also appear in the theorem: good, probability, accuracy and parameter.

Which proof did Comparator accept, and what does that show?

Two groups report that Comparator accepted OpenAI’s solution for this Lean statement: Carlos Toledo’s cert-machine; MathVet. Each group reports its own Comparator run for this Lean statement. Atlas has not repeated the runs.

Carlos Toledo’s cert-machine

How they ran it, in their words

Every Comparator challenge re-run on Linux with nanoda switched on, decided by a preregistered rule; every family’s challenge statements read against OpenAI’s headline, clause by clause. Decider: Comparator (leanprover/comparator d03acab1 = tag v4.34.0, built with the release’s toolchain v4.34.1), lean4export 076e8e57, landrun 811cfff5, nanoda_lib 3a240721 — on GitHub’s Linux runners (.github/workflows/openai-math-kernel.yml), one j…

  • Accepted Their term: “CERTIFIED”.

    Re-run through Comparator with the independent nanoda kernel switched on: Lean’s kernel and nanoda both accept OpenAI’s solution.

    Reported 10 October 2026, at the release version shown here. Original verification report

MathVet

How they ran it, in their words

An independent, model-assisted, pre-referee reading of each family’s challenge statements against its headline claim under a published rubric (PROTOCOL.md), with its own Comparator runs per challenge. Its protocol describes a planned error-rate study; this import does not establish that the study has been completed.

  • Accepted Their term: “comparator-pass”.

    Re-run through Comparator: accepted.

    Reported 8 October 2026, at the release version shown here. Original verification report

What an accepted Comparator run would establish

If Comparator is run under this configuration and accepts, the solution proves the configured theorem using only the allowed axioms, and the Lean kernel accepts every step.

This configuration lists no definition holes, so every definition the statement uses is compared as it is written in this file.

Allowed axioms: propext, Quot.sound, Classical.choice

Acceptance leaves open whether the Lean statement means the same thing as the paper’s theorem, whether the paper’s other claims are correct, and whether the result is new. Those questions require comparing the definitions and statements, reviewing the paper’s arguments, and reading the earlier literature.

What is still unchecked

As far as Atlas records, nobody has reviewed these questions.

  • No comparison of this Lean statement with Theorem 1.1 is recorded: whether it says the same thing, with the same hypotheses.
  • Only an AI-drafted interpretation of OpenAI’s note on what this statement covers is recorded.
  • Checking the paper’s proof, and whether its result is new, is a separate question: Comparator says nothing about either.

Where to read more

Supporting material

The Lean statement’s complete file

221 lines, copied from release version fd4aeeb. A name defined in this file links to its line; pointing at the name shows its definition.

Declared in this fileOpenAI’s library at fd4aeebOther linked names open the current documentation for Mathlib, Lean’s mathematical library.

Links in the file: 105 to its own declarations, 134 to Mathlib’s documentation. 38 declared names also link to the same declaration in OpenAI’s library. 3 identifiers stay plain because they resolve to no single declaration: variables Lean binds automatically, notation, or names the scan of the pinned sources did not find. 3 of them could name more than one declaration. OpenAI uses Mathlib version d13f23b. The linked documentation describes the current version, so names that have since changed may be missing there.

import Mathlibnamespace OAInamespace MatchingFPRASabbrev Symbol := Fin 8/-- Binary numeral followed by a delimiter. Tape blank is 0; bits use 1 and 2. -/def encodeNat (n : ℕ) : List Symbol :=  (Nat.bits n).map (fun b => if b then 2 else 1) ++ [3]def encodeInt (z : ℤ) : List Symbol :=  (if z < 0 then [5] else [4]) ++ encodeNat z.natAbs/-- A rational encoded by its reduced numerator and positive denominator. -/def encodeRat (q : ℚ) : List Symbol := encodeInt q.num ++ encodeNat q.den/-- A uniform randomized Post-Turing machine: a single finite transition table. -/structure RandomMachine where  states : ℕ  transition : Fin (states + 1) → Symbol → Bool →    Option (Fin (states + 1) × Turing.TM0.Stmt Symbol)structure Configuration (A : RandomMachine) where  state : Option (Fin (A.states + 1))  tape : Turing.Tape Symbol/-- A halted configuration is absorbing. Each nonhalting tick is exactly onewrite or one move, or the detection of halt. -/def tick (A : RandomMachine) (c : Configuration A) (bit : Bool) : Configuration A :=  match c.state with  | none => c  | some s => match A.transition s c.tape.head bit with    | none => ⟨none, c.tape⟩    | some (s', action) =>      ⟨some s', match action with        | .move d => c.tape.move d        | .write a => c.tape.write a⟩def initial (A : RandomMachine) (input : List Symbol) : Configuration A :=  ⟨some 0, Turing.Tape.mk₁ input⟩/-- Bounded execution on a finite prefix of the random tape. -/def run (A : RandomMachine) (input : List Symbol) {t : ℕ}    (bits : Fin t → Bool) : Configuration A :=  (List.ofFn bits).foldl (tick A) (initial A input)def Outputs (A : RandomMachine) (input : List Symbol) {t : ℕ}    (bits : Fin t → Bool) (q : ℚ) : Prop :=  (run A input bits).state = none ∧    (run A input bits).tape.right₀ = Turing.ListBlank.mk (encodeRat q)end MatchingFPRASnamespace ContingencyTablesopen Finsetvariable {I J : Type*} [Fintype I] [Fintype J]def HasMargins (X : I → J → ℕ) (r : I → ℕ) (c : J → ℕ) : Prop :=  (∀ i, ∑ j, X i j = r i) ∧ (∀ j, ∑ i, X i j = c j)def Table (r : I → ℕ) (c : J → ℕ) := {X : I → J → ℕ // HasMargins X r c}def BoundedTable (r : I → ℕ) (c : J → ℕ) (b : I → J → ℕ) :=  {X : Table r c // ∀ i j, X.val i j ≤ b i j}theorem entry_le_row {X : I → J → ℕ} {r : I → ℕ} {c : J → ℕ}    (h : HasMargins X r c) (i : I) (j : J) : X i j ≤ r i := by  rw [← h.1 i]  exact single_le_sum (fun _ _ => Nat.zero_le _) (mem_univ j)theorem entry_le_total {X : I → J → ℕ} {r : I → ℕ} {c : J → ℕ}    (h : HasMargins X r c) (i : I) (j : J) : X i j ≤ ∑ i, r i :=  (entry_le_row h i j).trans (single_le_sum (fun _ _ => Nat.zero_le _) (mem_univ i))instance table_finite (r : I → ℕ) (c : J → ℕ) : Finite (Table r c) := by  let encode : Table r c → I → J → Fin ((∑ i, r i) + 1) :=    fun X i j => ⟨X.val i j, Nat.lt_succ_of_le (entry_le_total X.property i j)⟩  apply Finite.of_injective encode  intro X Y h  apply Subtype.ext  funext i j  exact congrArg Fin.val (congrFun (congrFun h i) j)noncomputable instance table_fintype (r : I → ℕ) (c : J → ℕ) : Fintype (Table r c) :=  Fintype.ofFinite _noncomputable instance boundedTable_fintype (r : I → ℕ) (c : J → ℕ) (b : I → J → ℕ) :    Fintype (BoundedTable r c b) := by  classical  unfold BoundedTable  infer_instanceend ContingencyTablesnamespace ContingencyTables.Algorithmsopen scoped BigOperatorsopen Filterabbrev Machine := MatchingFPRAS.RandomMachineabbrev Symbol := MatchingFPRAS.Symboldef encodeMatrix {m n : ℕ} (X : Fin m → Fin n → ℕ) : List Symbol :=  ((List.ofFn fun i => (List.ofFn fun j => MatchingFPRAS.encodeNat (X i j)).flatten)).flattendef encodeMargins {m n : ℕ} (r : Fin m → ℕ) (c : Fin n → ℕ) : List Symbol :=  MatchingFPRAS.encodeNat m ++ MatchingFPRAS.encodeNat n ++    (List.ofFn fun i => MatchingFPRAS.encodeNat (r i)).flatten ++    (List.ofFn fun j => MatchingFPRAS.encodeNat (c j)).flattendef encodeSamplingInput {m n : ℕ} (r : Fin m → ℕ) (c : Fin n → ℕ) (k : ℕ) : List Symbol :=  encodeMargins r c ++ MatchingFPRAS.encodeNat kdef encodeCountingInput {m n : ℕ} (r : Fin m → ℕ) (c : Fin n → ℕ)    (b : Fin m → Fin n → ℕ) (ε δ : ℚ) : List Symbol :=  encodeMargins r c ++ encodeMatrix b ++ MatchingFPRAS.encodeRat ε ++ MatchingFPRAS.encodeRat δ/-- The tape alphabet has positive cardinality. -/theorem alphabetSize_neZero : NeZero (8 : ℕ) := inferInstance/-- A halted tape contains the row-major binary matrix encoding. -/def OutputsTable (A : Machine) (input : List Symbol) {t m n : ℕ}    (bits : Fin t → Bool) (X : Fin m → Fin n → ℕ) : Prop :=  (MatchingFPRAS.run A input bits).state = none ∧    @Turing.Tape.right₀ MatchingFPRAS.Symbol (@Fin.instInhabited 8 alphabetSize_neZero)      (MatchingFPRAS.run A input bits).tape =    @Turing.ListBlank.mk Symbol (@Fin.instInhabited 8 alphabetSize_neZero) (encodeMatrix X)noncomputable def tableMass (A : Machine) (input : List Symbol) (t : ℕ)    {m n : ℕ} (X : Fin m → Fin n → ℕ) : ℝ := by  classical  exact ((Finset.univ.filter fun bits : Fin t → Bool => OutputsTable A input bits X).card : ℝ) /    (2 : ℝ) ^ tnoncomputable def haltMass (A : Machine) (input : List Symbol) (t : ℕ) : ℝ := by  classical  exact ((Finset.univ.filter fun bits : Fin t → Bool =>      (MatchingFPRAS.run A input bits).state = none).card : ℝ) / (2 : ℝ) ^ tdef samplingSize (n : ℕ) {m : ℕ} (r : Fin m → ℕ) (k : ℕ) : ℕ :=  m + n + Nat.clog 2 ((∑ i, r i) + 1) + k + 1/-- Paper 200-01, Theorem main(i): bounded runtime on every random tapeand total variation at most `2⁻ᵏ`, with freely varying dimensions. -/def BoundedSamplingStatement : Prop :=  ∃ (A : Machine) (C d : ℕ), 0 < C ∧    ∀ (m n : ℕ) (r : Fin m → ℕ) (c : Fin n → ℕ),      (∑ i, r i) = ∑ j, c j → ∀ k : ℕ, 1 ≤ k →        let input := encodeSamplingInput r c k        let t := C * (samplingSize n r k) ^ d        (∀ bits : Fin t → Bool, ∃ X : Table r c, OutputsTable A input bits X.val) ∧        (∑ X : Table r c,          |tableMass A input t X.val - (Fintype.card (Table r c) : ℝ)⁻¹|) / 2 ≤            ((2 : ℝ) ^ k)⁻¹/-- Paper 200-01, Theorem main(ii): every halted output is feasible, eachtable has limiting mass `1/|Ω|`, termination has probability one, and theexpected number of bit operations is bounded by a uniform polynomial. -/def ExactSamplingStatement : Prop :=  ∃ (A : Machine) (C d : ℕ), 0 < C ∧    ∀ (m n : ℕ) (r : Fin m → ℕ) (c : Fin n → ℕ),      (∑ i, r i) = ∑ j, c j →        let input := encodeMargins r c        let tail : ℕ → ℝ := fun t => 1 - haltMass A input t        (∀ t (bits : Fin t → Bool), (MatchingFPRAS.run A input bits).state = none →          ∃ X : Table r c, OutputsTable A input bits X.val) ∧        (∀ X : Table r c, Tendsto (fun t => tableMass A input t X.val) atTop          (nhds ((Fintype.card (Table r c) : ℝ)⁻¹))) ∧        Tendsto (haltMass A input) atTop (nhds 1) ∧        Summable tail ∧        tsum tail ≤ C * (samplingSize n r 0) ^ dnoncomputable def count {m n : ℕ} (r : Fin m → ℕ) (c : Fin n → ℕ)    (b : Fin m → Fin n → ℕ) : ℕ := Fintype.card (BoundedTable r c b)def countingTime (C d : ℕ) {m n : ℕ} (r : Fin m → ℕ) (c : Fin n → ℕ)    (b : Fin m → Fin n → ℕ) (ε δ : ℚ) : ℕ :=  C * ((encodeCountingInput r c b ε δ).length + ⌈ε⁻¹⌉₊ +    Nat.clog 2 ⌈δ⁻¹⌉₊ + 1) ^ dnoncomputable def goodCountingTapes (A : Machine) {m n : ℕ}    (r : Fin m → ℕ) (c : Fin n → ℕ) (b : Fin m → Fin n → ℕ)    (ε δ : ℚ) (t : ℕ) : Finset (Fin t → Bool) := by  classical  exact Finset.univ.filter fun bits => ∃ q : ℚ,    MatchingFPRAS.Outputs A (encodeCountingInput r c b ε δ) bits q ∧      (1 - ε) * count r c b ≤ q ∧ q ≤ (1 + ε) * count r c b/-- Paper 200-02, Theorem main. The input length includes the rationalaccuracy parameters, and infeasible inputs always produce exactly zero. -/def CountingStatement : Prop :=  ∃ (A : Machine) (C d : ℕ), 0 < C ∧    ∀ (m n : ℕ), 0 < m → 0 < n →    ∀ (r : Fin m → ℕ) (c : Fin n → ℕ) (b : Fin m → Fin n → ℕ),      (∑ i, r i) = ∑ j, c j →      ∀ ε δ : ℚ, 0 < ε → ε < 1 → 0 < δ → δ < 1 →        let input := encodeCountingInput r c b ε δ        let t := countingTime C d r c b ε δ        (∀ bits : Fin t → Bool, ∃ q : ℚ, 0 ≤ q ∧ MatchingFPRAS.Outputs A input bits q) ∧        (count r c b = 0 → ∀ bits : Fin t → Bool, MatchingFPRAS.Outputs A input bits 0) ∧        ((goodCountingTapes A r c b ε δ t).card : ℚ) / (2 : ℚ) ^ t ≥ 1 - δend ContingencyTables.Algorithmsnamespace ContingencyTables/-- An almost-uniform sampler with polynomial cost on every execution. -/theorem boundedSampling : Algorithms.BoundedSamplingStatement := by sorry/-- Exact uniform sampling in polynomial expected bit time. -/theorem exactSampling : Algorithms.ExactSamplingStatement := by sorry/-- A cell-bounded FPRAS, with zero output on every infeasible execution. -/theorem counting : Algorithms.CountingStatement := by sorryend ContingencyTablesend OAI
Every extracted statement of the accompanying papers

The statements the atlas extracted automatically from each accompanying paper’s TeX source, with links to the full sources.

Exact Uniform Sampling of Contingency Tables with Arbitrary Margins

Theorem

For arbitrary nonnegative integer margins of equal total, the following algorithms exist in the model of unbiased random bits and bit operations.

  1. (i)

    Given an integer k\ge1, a bounded-time algorithm outputs a table in \Omega(r,c) whose law is within 2^{-k} in total variation of the uniform law. Its running time is polynomial in m,n,\log(N+1),k.

  2. (ii)

    An algorithm outputs an exactly uniform table in \Omega(r,c), terminates almost surely, and has expected running time polynomial in m,n,\log(N+1).

The polynomials are uniform over all margin vectors. No positivity, sparsity, balance, or fixed-dimension hypothesis is imposed.

Section 1, Introduction Read it in the paper TeX source, line 18
Show the TeX
For arbitrary nonnegative integer margins of equal total, the following
algorithms exist in the model of unbiased random bits and bit operations.
\begin{enumerate}[label=\textup{(\roman*)}]
 \item Given an integer $k\ge1$, a bounded-time algorithm outputs a table
 in $\Omega(r,c)$ whose law is within $2^{-k}$ in total variation of the
 uniform law. Its running time is polynomial in
 $m,n,\log(N+1),k$.
 \item An algorithm outputs an exactly uniform table in $\Omega(r,c)$,
 terminates almost surely, and has expected running time polynomial in
 $m,n,\log(N+1)$.
\end{enumerate}
The polynomials are uniform over all margin vectors. No positivity,
sparsity, balance, or fixed-dimension hypothesis is imposed.

An FPRAS for Cell-Bounded Contingency Tables

Theorem

There is one randomized algorithm with the following guarantee. Given (r,c,b) as above and rational \varepsilon,\delta\in(0,1), it outputs a nonnegative rational \widehat Z such that

\P\bigl((1-\varepsilon)Z(r,c,b)\le \widehat Z \le(1+\varepsilon)Z(r,c,b)\bigr)\ge1-\delta.

If \Omega(r,c,b) is empty, the output is zero on every execution. The algorithm uses independent unbiased bits, and one fixed polynomial in L, \varepsilon^{-1}, and \log(\delta^{-1}) bounds its total bit operations on every execution, where L is the total binary input length, including the accuracy parameters. No counting or sampling oracle is required.

Section 1, Introduction Read it in the paper TeX source, line 21
Show the TeX
There is one randomized algorithm with the following guarantee. Given
$(r,c,b)$ as above and rational $\varepsilon,\delta\in(0,1)$, it outputs
a nonnegative rational $\widehat Z$ such that
\[
 \P\bigl((1-\varepsilon)Z(r,c,b)\le \widehat Z
                  \le(1+\varepsilon)Z(r,c,b)\bigr)\ge1-\delta.
\]
If $\Omega(r,c,b)$ is empty, the output is zero on every execution.
The algorithm uses independent unbiased bits, and one fixed polynomial
in $L$, $\varepsilon^{-1}$, and $\log(\delta^{-1})$ bounds its total bit
operations on every execution, where $L$ is the total binary input
length, including the accuracy parameters. No counting or sampling
oracle is required.

Statement comparison

A shareable summary of this page: the proposed paper match, what the Lean statement expresses, and which reviews are recorded.

Plectis Atlas

Exact and bounded-time sampling of contingency tables

Family 115: Sampling and counting contingency tables with arbitrary margins

Possible match

Theorem

There is one randomized algorithm with the following guarantee. Given (r,c,b) as above and rational \varepsilon,\delta\in(0,1), it outputs a nonnegative rational \widehat Z such that

\P\bigl((1-\varepsilon)Z(r,c,b)\le \widehat Z \le(1+\varepsilon)Z(r,c,b)\bigr)\ge1-\delta.

If \Omega(r,c,b) is empty, the output is zero on every execution. The algorithm uses independent unbiased bits, and one fixed polynomial in L, \varepsilon^{-1}, and \log(\delta^{-1}) bounds its total bit operations on every execution, where L is the total binary input length, including the accuracy parameters. No counting or sampling oracle is required.

An FPRAS for Cell-Bounded Contingency Tables

TeX label thm:main, build/sections/introduction.tex, line 21

The Lean statement says

def BoundedSamplingStatement : Prop :=  ∃ (A : Machine) (C d : ℕ), 0 < C ∧    ∀ (m n : ℕ) (r : Fin m → ℕ) (c : Fin n → ℕ),      (∑ i, r i) = ∑ j, c j → ∀ k : ℕ, 1 ≤ k →        let input := encodeSamplingInput r c k        let t := C * (samplingSize n r k) ^ d        (∀ bits : Fin t → Bool, ∃ X : Table r c, OutputsTable A input bits X.val) ∧        (∑ X : Table r c,          |tableMass A input t X.val - (Fintype.card (Table r c) : ℝ)⁻¹|) / 2 ≤            ((2 : ℝ) ^ k)⁻¹def ExactSamplingStatement : Prop :=  ∃ (A : Machine) (C d : ℕ), 0 < C ∧    ∀ (m n : ℕ) (r : Fin m → ℕ) (c : Fin n → ℕ),      (∑ i, r i) = ∑ j, c j →        let input := encodeMargins r c        let tail : ℕ → ℝ := fun t => 1 - haltMass A input t        (∀ t (bits : Fin t → Bool), (MatchingFPRAS.run A input bits).state = none →          ∃ X : Table r c, OutputsTable A input bits X.val) ∧

A Lean statement states the theorem and leaves its proof as sorry on purpose. OpenAI’s proof is in a separate solution module, and a program called Comparator checks that proof against this statement.

This possible match was selected because the two statements share words. No review of whether they mean the same thing is recorded.two groups report that Comparator accepted runs for this Lean statement at the release version shown here.Statement review: none recorded

32 local vocabulary declarationsAllowed axioms: propext, Quot.sound, Classical.choiceopenai/math at fd4aeebwcook04.github.io/plectis-atlas/statements/ContingencyTables.html