Common weights for grouped allocations
Abstract
Common weight families for integer and fractional grouped demands.
Theorem 1.1 (The digit budget gives one weight family for all compatible allocations).
\forall k n q, 0 < k \land k\cdot q+1 \le (k+1)^n \Rightarrow \operatorname{CommonWeights}\left(k, n, q\right)
Proof. Machine-checked in Lean as D5/S3/Combinatorics/Partitions/CommonBlockWeights.common_weights_for_allocations (✓ std3). ∎
Source. Repository-derived.
Commentary.
Let k be a positive natural number, and let n and q be natural numbers. CommonWeights(k,n,q) means there exist n natural weights with total q. For every positive number t of groups, every nonnegative natural U with U at least k times the predecessor of t, and every natural demand vector with total U times q, the same weights admit an allocation. Each weight has U identical copies to distribute, and each group must receive exactly its demand.
Choose powers of k plus one and clip at total q. If d is the next positive weight and T is the earlier total, then d minus one is at most k times T. The residual capacity after dividing the group demands by d and rounding down can discard at most t times d minus t units of mass. A total capacity below U would contradict the lower bound on U times T. After allocating the new copies, use the earlier weights for the remaining demands.
The scalar growth condition comes from Rødseth, Minimal r-Complete Partitions, Journal of Integer Sequences 10 (2007), Article 07.8.3, Lemmas 3.1–3.2.
Theorem 1.2 (A fractional weight can be allocated in bundles).
\forall k n A b K, 0 < k \land K\cdot b = k \land K\cdot A+1 \le (K\cdot\operatorname{gcd}\left(b, A\right)+1)\cdot(k+1)^n \Rightarrow \operatorname{FractionalWeights}\left(k, n, A, b\right)
Proof. Machine-checked in Lean as D5/S3/Combinatorics/Partitions/CommonBlockWeights.common_fractional_allocations (✓ std3). ∎
Source. Repository-derived.
Commentary.
All scalar parameters are natural numbers. FractionalWeights(k,n,A,b) means there exist n plus one natural weights, of total A, with the following simultaneous allocation property. For every number t of groups and U copies per weight, with U at least k times the predecessor of t, and every natural demand vector x with b times its total equal to U times A, there is an allocation of U copies of every weight. The mass assigned to each group is b times its demand. When there are zero groups, U must also be zero.
Reduce A over b by their greatest common divisor. Compatibility then forces the reduced denominator to divide U. In the reduced parameters, take T to be the smaller of the integer part of A divided by b and the sum of the first n powers of k plus one. In the first branch the remaining weight is less than b. In the second branch the capacity inequality bounds the remaining weight by k times T plus one. Allocate its copies in bundles of b and use the common integer family of total T for the residual demands. For A less than b, the integer family can pay the whole scaled demand.
The demand vector one, two with k and b equal to two, K equal to one, U equal to two, and A equal to three cannot use a single weight. This shows the capacity hypothesis is needed. With k and K zero, b and U one, A two, and a single weight, the demands one, one also fail. With k four, K two, b two, A six, n one and U one, two weights cannot supply positive demands to three groups. This shows the role of the lower bound on U. If the factorization is omitted, k two, K zero, b one, A two, n zero, U two and demands one, three would require an odd mass from a weight of two. An empty group set has no place for a positive number of copies. The balance equation follows by adding the allocated masses.