Bin packing asks whether given items fit into a given number of bins of a fixed capacity. In the high-multiplicity version there are only different item sizes, and each size comes with the number of items of that size. Instances of this kind arise in cutting-stock problems and in scheduling identical jobs on identical machines, where very many items share a few sizes. The number of items can then be exponential in the input length, so listing the items one by one is not an option.
Whether the problem is fixed-parameter tractable (FPT) in , that is, solvable in time with an exponent independent of , was asked repeatedly in the literature (Goemans–Rothvoss 2020, Koutecký–Zink 2025, Jansen–Kahler–Zwanger 2025).
Timeline:
An instance is with capacity , item sizes , multiplicities and a bin bound , all integers written in binary. The instance is feasible if the items of size , for , can be assigned to at most bins so that every bin holds total size at most . The sizes need not be distinct and need not be at most . The binary input length is the length of the binary code of .
The proof goes through an integer program. A bin configuration is a vector with ; is the set of them. For every residue , is the set of configurations congruent to modulo , , and . The polytope , , collects the families with , , the bounds , , and .
A lattice polytope is the convex hull of a finite nonempty set of integer points. It has the integer decomposition property if every integer point of () is a sum of integer points of . A strong separation oracle for a closed convex either certifies for a rational query , or returns rational with on . A strong optimization oracle returns a rational maximizer of over .
There are one algorithm and one constant such that, for every instance ,
The constant is left unspecified, so a later improvement of the exponent (Jansen–Ohnesorge 2026) does not invalidate the goal.
The result. Theorem 1 answers the question of whether high-multiplicity bin packing is FPT in when both sizes and multiplicities are in binary, the case left open by the unary-encoded results above. It also shows that the configuration-counting obstacle can be avoided by working with residue classes and separation oracles instead of an explicit inequality description. Lemma 2 is a standard fact from toric geometry (Cox–Little–Schenck 2011, Thm 2.2.12). Lemma 5 is the cited lattice algorithm, which the proof uses as a black box.
Formalizing it. The result is proved on paper. No part of it, and none of the cited algorithmic results (Lemmas 5 and 6, Lenstra's algorithm), has a machine-checked proof on this platform. The mission produces:
Turing.FinTM2.Lemmas 1 to 4 are pure discrete geometry and can be proved without any machine model. The machine statements need full algorithmic developments.
The natural idea is to enumerate bin configurations, the configuration ILP of Goemans and Rothvoss. It fails because the number of distinct configurations is not bounded by a function of : it grows with , which is exponential in . Grouping by residues modulo bounds the number of variables by . However, is then given only through membership in the cones , not by an explicit list of inequalities, so Lenstra's algorithm for explicitly given integer programs does not apply directly. The algorithm needs a lattice method that works with a separation oracle (Lemma 5), and that oracle has to be built from integer programs with variables (Lemmas 6 and 7). The converse direction of the formulation (Lemma 4) depends on the integer decomposition property, which can fail for (the Reeve tetrahedra in dimension 3), so the dilation by is essential to the argument.
B d : ℕ, s a : Fin d → ℕ, b : ℕ and the positivity conditions of the problem box. Feasibility is an assignment of the items , , to Fin b with bin loads at most .encodeNat (2·bit-length + 1 symbols per number) for , , , , . Rationals are written as numerator and denominator.Turing.TM2ComputableAux Bool Bool, and time is its step count. The time classes used here are closed under polynomials, so this matches the paper's bit operations.[true] on feasible instances and [false] on infeasible ones.Lemmas 1–4 need only Mathlib's convex hulls. They are good first contributions, and the lattice-polytope layer can be reused for other integer-programming missions. The oracle layer and the machine statements need a substantial algorithmic library (rational arithmetic on Turing machines, the ellipsoid method, Lenstra-type lattice algorithms). Contributions to any of these are welcome.
namespace HMBinPacking
/-- **Theorem 1: Bin Packing is decided deterministically in `O*(2^{d^{O(d)}})` time.**
Koana, Kumabe, *High-Multiplicity Bin Packing is FPT*, arXiv:2609.16923v2, Theorem 1, p.1:
"Bin Packing can be decided deterministically in O∗(2^{d^{O(d)}}) time." Footnote 1, p.1: "Running
times count bit operations; O∗(·) suppresses factors polynomial in the binary input length, with
exponent independent of d."
There are one Turing machine `M` and one constant `c` such that, for every instance `I` (every
`d ≥ 1`, every `B`, `sᵢ ≥ 1`, `aᵢ`, `b`), `M` started on the binary code of `I` outputs `[true]` if
`I` is feasible and `[false]` if it is not, within `2^(d^(c·d)) · L^c` steps, where `L` is the binary
input length.
**Formalization Note.** The machine is Mathlib's `Turing.TM2ComputableAux Bool Bool` and time is
its step count (`OutputsWithin`); the class `{2^(d^(c·d))·L^c}` is closed under polynomials, so this
equals the bit-operation bound. The instance is written in binary (`encodeInstance`). `O(·)` is the
explicit `∃ c`, chosen before every instance, including `d`; no multiplicative constant is needed
since `L ≥ 5`. -/
theorem theorem_1 :
∃ (M : Turing.TM2ComputableAux Bool Bool) (c : ℕ), ∀ I : Instance,
(Feasible I →
OutputsWithin M (encodeInstance I) [true] (2 ^ (I.d ^ (c * I.d)) * inputLength I ^ c)) ∧
(¬ Feasible I →
OutputsWithin M (encodeInstance I) [false] (2 ^ (I.d ^ (c * I.d)) * inputLength I ^ c)) := by sorry
end HMBinPacking
There are one deterministic algorithm and a constant such that for every Bin Packing instance — every , , sizes , multiplicities and bin bound , with all numbers written in binary — the algorithm decides whether is feasible in at most
bit operations, where is the binary input length. In other words, Bin Packing can be decided deterministically in time, and is fixed-parameter tractable in the number of item sizes.
The algorithm and the constant are the same for every : a bound of the form , or a different algorithm for each , would not be this theorem. The algorithm answers both "feasible" and "infeasible".
Differences from the source:
No open leaves. Every sub-goal is proved or awaiting decomposition.