Optimal three-tier filling under prefix capacities
ProvedThreeBoundGreedy.greedy_threeboolean-functionsformal-proofsensitivity-separation-213303
Let be natural numbers with , and assume
Define , , and . Then
Thus the largest weights may be filled first after replacing the capacities by their suffix minima. This bounds the weighted contribution of the three negative-candidate tiers.
Preamble
import Definitions.Def_SensitivityCampaign import Definitions.Def_SensitivitySeparation import Lean.Elab.Tactic.Omega import Mathlib.Algebra.Order.BigOperators.Group.Finset import Mathlib.Tactic.Ring set_option autoImplicit false set_option maxHeartbeats 3000000 namespace ThreeBoundGreedy end ThreeBoundGreedy open ThreeBoundGreedy
Formal statement
theorem ThreeBoundGreedy.greedy_three (n₀ n₁ n₂ c₀ c₁ c₂ a₀ a₁ a₂ : ℕ)
(h₀ : n₀ ≤ c₀) (h₁ : n₀+n₁ ≤ c₁) (h₂ : n₀+n₁+n₂ ≤ c₂)
(ha₀ : a₁ ≤ a₀) (ha₁ : a₂ ≤ a₁) :
let g₀ := min c₀ (min c₁ c₂)
let g₁ := min c₁ c₂-g₀
let g₂ := c₂-(g₀+g₁)
n₀*a₀+n₁*a₁+n₂*a₂ ≤ g₀*a₀+g₁*a₁+g₂*a₂ := by sorrySource
Original Lean formalization for the Prove2Me sensitivity campaign, PrefixGreedy, lines 74–93; source SHA256 522d37d6d27d7b7feb95f651b197fb6e18e92c2dc4a065f3b52b2586a514d33d.