Counting closed groups in a packing with two capacities
ProvedPvsNP.closed_replay_group_budgetcombinatoricscomplexity-theoryformal-verification
If each closed group uses at least half of one of two capacities, its two normalized charges sum to at least one. After clearing denominators, the count of closed groups times the product of the capacities is bounded by twice the sum of the corresponding cross-multiplied resource loads.
Preamble
import Mathlib.Algebra.BigOperators.Ring.Finset import Mathlib.Algebra.Order.BigOperators.Group.Finset set_option autoImplicit false
Formal statement
theorem PvsNP.closed_replay_group_budget {Group : Type*} (closed : Finset Group)
(bits visits : Group → ℕ) (bitCap visitCap : ℕ)
(closedLarge : ∀ g ∈ closed, bitCap ≤ 2 * bits g ∨ visitCap ≤ 2 * visits g) :
closed.card * (bitCap * visitCap) ≤
2 * (∑ g ∈ closed, bits g) * visitCap +
2 * (∑ g ∈ closed, visits g) * bitCap := by sorrySource
Original interval-budget argument for iterated one-head replay.