Polynomial-coin combinatorial Bernoulli factories

Renato Paes Leme, Rad Niazadeh

Let P⊆[0,1]dP\subseteq [0,1]^{d} be a nonempty rational polytope, given exact affine-hull data, polynomial-time exact membership and rational vertex-decomposition oracles, and fresh independent coins of unknown biases x∈Px\in P. With supplied rational u∈Int_r(P), r,ρ\rho ∈(0,1], and the promise x∈Int_ρ(P), Interior terminates almost surely, outputs a vertex with exact mean x, and has polynomial expected input-coin use and running time in d,r−1r^{-1},ρ−1\rho ^{-1} and the stated encoding/oracle costs. For P=aff(P)∩[0,1]dP=aff(P)\cap [0,1]^{d} with no constant coordinate and x in its relative interior, Universal needs no supplied δ⋅=min⁡ixi,1−xi\delta \cdot =\min _{i}{xi,1-xi}; its expected coin cost is O(d(7/2)δ⋅−3log⁡(d/δ⋅))O(d^{(7/2)}\delta \cdot ^{-3} \log (d/\delta \cdot )). For every positive doubly stochastic n×nn\times n matrix X, n≥2n\ge 2, it outputs a permutation matrix with exact mean X using O(n8δ⋅−2log⁡(n/δ⋅))O(n^{8}\delta \cdot ^{-2} \log (n/\delta \cdot )) flips, where δ⋅=min⁡ij\delta \cdot =\min _{ij}Xij. Expected computation is polynomial under the stated exact-oracle model.

What was already known

Niazadeh, Paes Leme and Schneider characterized the polytopes admitting full-domain factories as affine slices of the cube. Their Bernoulli race for perfect matchings uses at least n(2n−1)n^{(2n-1)} expected flips at the uniform matrix. The new universal algorithm yields O(n10log⁡n)O(n^{10} \log n) there. Existing scalar-factory and unknown-ratio simulation methods are reused and credited; the new work supplies the batch correction and adaptive reserve analysis.

How the result developed

  1. 12 Nov 2026 · Manuscript date [1]

    Renato Paes Leme and Rad Niazadeh reported the AI-assisted result in this manuscript.

Follow new evidence and revisions to this result.

Get email updates

Download contribution history

Contribution Assessment

AI involvementAI-centered
ImportanceNotable
Technical verificationPartial
Human understandingExplained

AI involvement

Paes Leme and Niazadeh explain how the Bernoulli-factory proofs originated. The proofs in this paper were obtained in a series of conversations with ChatGPT Astra, Claude Opus and Gemini Argon. They substantially rewrote the proofs with the models. The later GPT-6 Astra Lean pipeline was a separate formalization effort.

Importance

Replaces an exponentially slow existing exact sampler with polynomial-coin factories on the entire affine-slice class, with a broader promised-interior reduction.

Technical verification

A pinned Lean 4 certificate reports a complete fresh kernel replay, frozen-statement identity and standard-axiom checks for Interior, Universal, the Birkhoff specialization and the scalar amplifier. It verifies exact support/means, almost-sure termination, coin counts and oracle-call bounds. It explicitly excludes running time, bit complexity and preprocessing. Its supplied 21-page draft has a different PDF hash from arXiv v1; the selected theorem statements and oracle/coin model agree in the passages compared, while full version correspondence is not established. The broader assessed claim therefore has partial machine checking.

Formal checking

A pinned Lean 4 certificate reports a complete fresh kernel replay, frozen-statement identity and standard-axiom checks for Interior, Universal, the Birkhoff specialization and the scalar amplifier. It verifies exact support/means, almost-sure termination, coin counts and oracle-call bounds. It explicitly excludes running time, bit complexity and preprocessing. Its supplied 21-page draft has a different PDF hash from arXiv v1; the selected theorem statements and oracle/coin model agree in the passages compared, while full version correspondence is not established. The broader assessed claim therefore has partial machine checking.

Checker
Lean 4/Mathlib and GPT-6 Astra formalize-pdf pipeline
Scope
Four operational guarantees for the pinned pre-arXiv draft: Interior, Universal, Birkhoff and Amplify
Basis
Reported by the linked checker

Human understanding

The authors substantially rewrote the proofs and explain why the rare infeasible empirical samples are corrected rather than discarded, and why a random reserve can compensate for an unknown interior margin. This documents the exactness mechanism and its algorithmic analysis.

View revision history
· addition

Added the research timeline.

· addition

Added a source excerpt documenting AI involvement.

· publication

Source-based omission review identified the retained central model-origin mathematical result and its exact scope.