An averaged false-positive budget bounds logarithmic donor choices
ProvedPvsNP.SeedAveragedEntropy.log_choices_lecombinatoricscomplexity-theoryformal-verificationprobability
Suppose a finite set of seeds has per-word false-positive fraction at most epsilon off a specified good set. For each seed, associate a positive choice count to every anchor, with total choices at most the number of anchors plus the number of words passing that seed. Then the sum of the logarithms of the choice counts is at most the number of seed-anchor pairs times the logarithm of one plus the good-word count and the epsilon-weighted ambient word count, divided by the anchor count inside that logarithm.
Preamble
import Mathlib set_option autoImplicit false
Formal statement
theorem PvsNP.SeedAveragedEntropy.log_choices_le {Seed Anchor Word : Type} [Fintype Seed] [Fintype Anchor]
[Nonempty Anchor] [Fintype Word] [DecidableEq Word]
(good : Finset Word) (hit : Seed → Word → Bool) (choices : Seed → Anchor → ℕ)
(ε : ℝ) (nonneg : 0 ≤ ε)
(positive : ∀ z a, 0 < choices z a)
(encode : ∀ z, (∑ a : Anchor, (choices z a : ℝ)) ≤
Fintype.card Anchor + ∑ w : Word, if hit z w then (1 : ℝ) else 0)
(error : ∀ w, w ∉ good →
(∑ z : Seed, if hit z w then (1 : ℝ) else 0) ≤ ε * Fintype.card Seed) :
(∑ z : Seed, ∑ a : Anchor, Real.log (choices z a : ℝ)) ≤
(Fintype.card Seed : ℝ) * Fintype.card Anchor *
Real.log ((Fintype.card Anchor + (good.card : ℝ) + ε * Fintype.card Word) /
Fintype.card Anchor) := by sorrySource
Finite double counting and logarithmic concavity for randomized replay of accepted input blocks.