A fixed-size sample meeting each bounded test set in few points
ProvedPvsNP.exists_sample_with_small_intersections_of_powercombinatoricscomplexity-theoryprobabilistic-method
Let an ambient finite set have size U. Each of F test sets has at most K elements and is contained in the ambient set. If 0 ≤ r ≤ L ≤ U and F(KL)^r < U^r, there is an L-element sample meeting each test set in fewer than r elements.
Preamble
import Mathlib set_option autoImplicit false
Formal statement
theorem PvsNP.exists_sample_with_small_intersections_of_power {A Test : Type}
[DecidableEq A] [DecidableEq Test]
(ambient : Finset A) (tests : Finset Test) (observed : Test → Finset A)
(r draws capacity : ℕ) (rFits : r ≤ draws) (drawsFit : draws ≤ ambient.card)
(within : ∀ t ∈ tests, observed t ⊆ ambient)
(bounded : ∀ t ∈ tests, (observed t).card ≤ capacity)
(powerBudget : tests.card * (capacity * draws)^r < ambient.card^r) :
∃ sample ∈ ambient.powersetCard draws,
∀ t ∈ tests, (sample ∩ observed t).card < r := by sorrySource
Finite-family union bound in the probabilistic construction of subspace-evasive sets. See Dvir and Lovett, Subspace Evasive Sets, https://www.cs.princeton.edu/~zdvir/papers/DL12.pdf, introduction. This formulation applies to arbitrary finite test sets and exact sample sizes.