Logarithmic density after reweighting by anchor acceptance
ProvedPvsNP.acceptance_weighted_log_densitycombinatoricscomplexity-theoryformal-verification
For each draw take a nonnegative weight, an anchor acceptance rate between zero and one, and a nonnegative accepting density that is positive whenever the anchor acceptance rate is positive. Assume the total weighted anchor mass and total weighted accepting density are both positive. The weighted negative logarithm of the densities on accepted anchor draws is at least the total anchor mass times the negative logarithm of the ratio of total density to anchor mass.
Preamble
import Mathlib.Analysis.SpecialFunctions.Log.Basic set_option autoImplicit false
Formal statement
theorem PvsNP.acceptance_weighted_log_density {Seed : Type*} (seeds : Finset Seed)
(weight keep accept : Seed → ℝ)
(nonnegWeight : ∀ i ∈ seeds, 0 ≤ weight i)
(nonnegAccept : ∀ i ∈ seeds, 0 ≤ accept i)
(keepRange : ∀ i ∈ seeds, 0 ≤ keep i ∧ keep i ≤ 1)
(positiveAccept : ∀ i ∈ seeds, 0 < keep i → 0 < accept i)
(massPos : 0 < ∑ i ∈ seeds, weight i * keep i)
(densityPos : 0 < ∑ i ∈ seeds, weight i * accept i) :
let mass := ∑ i ∈ seeds, weight i * keep i
let density := ∑ i ∈ seeds, weight i * accept i
mass * (-Real.log (density / mass)) ≤
∑ i ∈ seeds, (weight i * keep i) * (-Real.log (accept i)) := by sorrySource
Original weighted acceptance-density inequality for gap-MCSP replay, a finite Jensen inequality.