Analysis of ALGORITHM 2 — the packing after Step 3 has at most bins
ProvedKKBinPacking.GeometricGrouping.alg2_step3_card_leConsider any run of ALGORITHM 2 with an integer parameter and a real parameter on an instance , whose while loop is executed times, and let be the number of bins created from the linear programming solution in the -th execution. The bins produced up to the end of Step 3 (the bins created from the solutions, the bins packing the instances , and the Step 3 bins) form a packing of the pieces of of size , and their number is at most
This is the cost of the packing before the small pieces are reinserted.
Formalization Note The packing property (every bin has load at most and the bins hold exactly the pieces of size ) is stated together with the count; it holds because every real piece placed in a principal bin is no larger than the rounded size it replaces.
import Mathlib import Definitions.Def_KKBinPacking_GeometricGrouping_Instance import Definitions.Def_KKBinPacking_Shared_ConfigLP import Definitions.Def_KKBinPacking_Shared_AnyFit import Definitions.Def_KKBinPacking_GeometricGrouping_GeomGroup import Definitions.Def_KKBinPacking_GeometricGrouping_Algorithm2 open KKBinPacking.Shared
namespace KKBinPacking.GeometricGrouping
theorem alg2_step3_card_le (k : ℕ) (hk : 2 ≤ k) (g : ℝ) (hg0 : 0 < g)
(I : Multiset ℝ) (hI : IsInstance I) (tr : Alg2Trace k g I) :
IsPacking (I.filter (fun p => g < p)) (alg2Step3Bins tr.t tr.Bp tr.PJ' tr.P3) ∧
(Multiset.card (alg2Step3Bins tr.t tr.Bp tr.PJ' tr.P3) : ℝ) ≤
((∑ i ∈ Finset.range tr.t, principalCount (tr.x i) : ℕ) : ℝ) +
tr.t * (2 * (k : ℝ) * (2 + Real.log (1 / g))) +
2 + (2 / (1 - 1 / (k : ℝ))) * Real.log (1 / g) := by sorry
end KKBinPacking.GeometricGrouping
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.