Weighted prediction misses contract candidate mass
ProvedPvsNP.weighted_miss_contractscombinatoricscomplexity-theoryformal-verification
Suppose a finite family of candidates has nonnegative integer weights. A transition decreases every weight and at least halves the weights of a marked group which has a fifth or more of the starting mass. Then the remaining mass is at most nine tenths of the starting mass.
Preamble
import Mathlib
Formal statement
theorem PvsNP.weighted_miss_contracts {C : Type*}
(candidates : Finset C) (before after : C → ℕ)
(penalized : C → Prop) [DecidablePred penalized]
(decrease : ∀ c ∈ candidates, after c ≤ before c)
(halve : ∀ c ∈ candidates, penalized c → 2 * after c ≤ before c)
(mass : ∑ c ∈ candidates, before c ≤
5 * ∑ c ∈ candidates, if penalized c then before c else 0) :
10 * (∑ c ∈ candidates, after c) ≤ 9 * (∑ c ∈ candidates, before c) := by sorrySource
The contraction step for the weighted one-work-tape version-space scan with sparse correction budgets.