A weighted batch of raw labels with bounded incidence at every interpolation predecessor
ProvedThreeSumFuture.weighted_raw_batch_obstruction3sumalgorithmscombinatorics
Each raw label z has weight equal to the number of queries it activates, and every interpolation predecessor has at most D neighboring labels. Under the stated counting inequality, there exists a batch of exactly m labels whose total weight is above the requested lower threshold and which meets every predecessor's neighborhood in fewer than t labels.
Preamble
import Mathlib.Algebra.Order.BigOperators.Group.Finset import Mathlib.Algebra.BigOperators.Ring.Finset import Mathlib.Data.Finset.Powerset import Mathlib.Data.Fintype.BigOperators import Mathlib.Data.Fintype.Card open scoped BigOperators set_option maxHeartbeats 1500000
Formal statement
theorem ThreeSumFuture.weighted_raw_batch_obstruction {Z P : Type} [Fintype Z] [Fintype P] [DecidableEq Z] [DecidableEq P]
(neighbors : P → Finset Z) (weight : Z → ℕ) (m t D cap lower : ℕ)
(hm : 0 < m) (hdeg : ∀ p, (neighbors p).card ≤ D) (hcap : ∀ z, weight z ≤ cap)
(hbudget : (Fintype.card Z).choose m * lower +
Fintype.card P * (D.choose t * (Fintype.card Z - t).choose (m - t)) * (m * cap) <
(Fintype.card Z - 1).choose (m - 1) * (∑ z, weight z)) :
∃ batch : Finset Z, batch.card = m ∧ (∀ p, ((neighbors p) ∩ batch).card < t) ∧
lower < ∑ z ∈ batch, weight z := by sorrySource
Original weighted sampling lemma for the fixed-histogram interpolation obstruction in weighted-cache 3SUM.