Finite projection capacity with a bounded number of failures per word
ProvedPvsNP.repeated_projection_capacitycoding-theorycombinatoricsformal-verification
Consider a finite family of words and projections. Each word passes at least the number of projections minus an error allowance. Every projection passes at most a fixed number of words. The product of the number of words and the per-word lower bound is at most the product of the number of projections and the per-projection upper bound.
Preamble
import Mathlib
Formal statement
theorem PvsNP.repeated_projection_capacity {Word Layer : Type*}
(words : Finset Word) (layers : Finset Layer) (good : Word → Layer → Prop)
[DecidableRel good] (error capacity : ℕ)
(wordHits : ∀ w ∈ words, layers.card - error ≤ (layers.filter (good w)).card)
(layerCap : ∀ l ∈ layers, (words.filter (fun w => good w l)).card ≤ capacity) :
words.card * (layers.card - error) ≤ layers.card * capacity := by sorrySource
Double counting low-weight repeated words covered by approximate affine pieces.