Approximate counting of common integer polymatroid bases
Shared solutions of two capacity rules can be counted approximately, at a cost set by digits, not size.
A matroid is a rule saying which groups of items are allowed together. The first paper proves a fast randomized estimate of how many groups are largest under two such rules (Lean proof listed). This answers an open question recorded in 2023. The second paper claims to extend the method to whole-number amounts with very large capacities. Its cost is claimed to grow with the number of digits in the capacities, not their size.
The explanation
Three workers need three jobs, A, B and C. Worker 1 can do A or B. Worker 2 can do any of the three. Worker 3 can do B or C. Each worker gets one job, and every job gets filled. Checking all six orderings shows that exactly three assignments work. Small cases like this are easy to list. Large ones are not. If 100 workers can each do any of 100 jobs, there are 100 factorial assignments, about 9.3 × 10^157.
This puzzle is one case of a general question about matroids. A matroid is a rule that says which groups of items are allowed together. Here the items are the seven allowed worker–job pairs. One rule says no worker appears twice. A second rule says no job appears twice. A basis is a largest allowed group. A common basis is a group that is a basis under both rules. In this example, the common bases are exactly the three full assignments.
Counting common bases exactly is often out of reach, so the goal is a close estimate. The standard target has a long name: a fully polynomial randomized approximation scheme, or FPRAS. Ask for 1 percent accuracy, and the answer lands between 0.99 and 1.01 times the true count. It may fail, but only with a small chance you choose in advance. Its cost must grow like a fixed power of the input size and of 1/accuracy. Here the method may only query an independence oracle. That is a black box that says whether a given group is allowed.
Pieces of this were known. In 2004, Jerrum, Sinclair and Vigoda gave an FPRAS for the permanent. That covers the worker–job case. Anari, Liu, Oveis Gharan and Vinzant later gave an independence-oracle FPRAS for the bases of one matroid. For two matroids, Anari, Oveis Gharan and Vinzant had an estimate whose running time grows exponentially with the basis size. Kuikui Liu's 2023 dissertation recorded the two-matroid question as an open problem.
The first paper proves an FPRAS for common bases of any two equal-rank matroids (Lean proof listed)Source 1. Rank means the size of a basis. The method takes a random walk among candidate answers, as in the permanent algorithm. The obstacle is that the walk must pass through rare in-between statesSource 2. The paper adds slightly broken states and learns how much weight to give each kindSource 3. The result also covers common allowed groups of any fixed size, even when the two ranks differSource 4.
The second paper claims to extend this from yes-or-no choices to whole-number amounts. Picture a 3 × 3 table of whole numbers. Every row and every column must add up to 1,000,000. Writing down these rules takes six seven-digit numbers. Yet the number of such tables is 125,000,750,001,875,002,250,001, about 1.25 × 10^23. Such tables are one example of common integer bases of two polymatroids. A polymatroid is a rule that gives every group of cells a ceiling on its total. Here one rule caps groups by their rows, the other by their columns.
Large numbers were the obstacle. The classical trick replaces a capacity of a million by a million labelled copies of one unit. That makes the problem as large as the capacity itself, not its number of digits. It also counts each table many times, once per labellingSource 5. The paper avoids the copiesSource 6. It keeps only a few totals that take a modest number of values. It treats the rest like a smooth shape whose volume can be estimatedSource 7. Large expansions appear only inside the proof, never in what the algorithm runsSource 8.
So for the table above, the cost is claimed to grow with the seven digits, not with the million. The answer is still an estimate, not an exact count, and it uses random choices. The paper also warns that its polynomial has large fixed exponentsSource 9. The point is how cost grows with the input, not a fast program.
How sure is this? A computer proof checker called Lean has checked a formal version of the two-matroid theorem. The scope note links a fixed reference statement for a tool called Comparator. The polymatroid paper with large capacities is outside that check. So is the result on common allowed groups of other sizes. No specialist review of either paper has been published.
What it doesn't show. This does not give exact counts or a practically fast program; the paper says its polynomial has large fixed exponents.
Where it came from
This result comes from an unreleased OpenAI model, published in the openai/math release on 6 October 2026.
Hype check
Only the two-matroid theorem has a Lean proof listed. The polymatroid extension and the common-independent-set results are claims without a machine check, and no specialist review is published. The method is about how cost grows, not practical speed.
Words used
- Matroid
- A rule saying which groups of items are allowed together, with a consistent notion of largest group.
- Basis
- A largest allowed group under a matroid rule.
- Common basis
- A group that is a basis under two different rules at once.
- Independence oracle
- A black box that answers whether a given group is allowed.
- FPRAS
- A randomized method that estimates a count to any chosen accuracy, at a cost growing like a fixed power of the input size.
- Polymatroid
- A rule that gives every group of items a ceiling on its whole-number total.
- Permanent
- A number computed from a table that, for yes-or-no tables, counts perfect assignments.
The original papers (2)
- An FPRAS for Common Integer Polymatroid Bases with Binary Capacities (PDF, opens in a new tab) October 5, 2026
- Approximate counting of common bases of two matroids (PDF, opens in a new tab) September 23, 2026 Formal proof listed
All quoted lines (9)
-
… gives an affirmative answer to that formulation.
Approximate counting of common bases of two matroids Back to text -
Nonbasis transversals can have very small weight, so positivity and connectivity alone do not give the polynomial quantitative bounds needed for counting.
Approximate counting of common bases of two matroids Back to text -
Balancing defect classes and learning their weights through interpolation follows the permanent algorithm of Jerrum, Sinclair, and Vigoda.
Approximate counting of common bases of two matroids Back to text -
The theorem also yields an FPRAS for counting common independent sets of prescribed, unrestricted, or maximum cardinality, even when the two matroid ranks differ, and an almost-uniform sampler for each of these families.
Approximate counting of common bases of two matroids Back to text -
Counting the feasible integer allocations poses additional difficulties: a large capacity permits exponentially many coordinate values, and replacing it by labelled copies changes both the size of the instance and the weight assigned to each allocation.
An FPRAS for Common Integer Polymatroid Bases with Binary Capacities Back to text -
The algorithm handles binary capacities directly, without expanding them into labelled copies.
An FPRAS for Common Integer Polymatroid Bases with Binary Capacities Back to text -
The new reduction keeps only part totals with polynomially many possible values as discrete variables. It treats the remaining degrees of freedom by weighted volume approximation and proves the discrete quadratic inequalities needed by the counting framework after this integration.
An FPRAS for Common Integer Polymatroid Bases with Binary Capacities Back to text -
This last distinction is essential: all large expansions and slice subdivisions used for comparison are proof devices, whereas every instance actually sampled has polynomial size.
An FPRAS for Common Integer Polymatroid Bases with Binary Capacities Back to text -
The algorithm's polynomial has large fixed exponents. The issue here is dependence on the input encoding, not an optimized running time.
An FPRAS for Common Integer Polymatroid Bases with Binary Capacities Back to text
Other sources
- M. Jerrum, A. Sinclair and E. Vigoda, “A polynomial-time approximation algorithm for the permanent of a matrix with nonnegative entries”, Journal of the ACM 51(4) (2004), 671–697
- N. Anari, K. Liu, S. Oveis Gharan and C. Vinzant, “Log-concave polynomials II: High-dimensional walks and an FPRAS for counting bases of a matroid”, Annals of Mathematics 199(1) (2024), 259–299
- N. Anari, S. Oveis Gharan and C. Vinzant, “Log-concave polynomials, I: Entropy and a deterministic approximation algorithm for counting bases of matroids”, Duke Mathematical Journal 170(16) (2021), 3459–3504
- K. Liu, “Spectral Independence: A New Tool to Analyze Markov Chains”, PhD thesis, University of Washington (2023), Section 13.2, Problem 1
- openai/math release notes (2026): model provenance
manuscripts and supporting proof artifacts produced by an internal OpenAI model