Counting seed failures after an adaptive history
ProvedPvsNP.adaptive_local_seed_failure_countcombinatoricsformal-verificationprobability
For each possible past, at most c new seeds cause a designated failure. In the set of triples consisting of a past, a new seed and an arbitrary future, the failure count is at most the past count times c times the future count.
Preamble
import Mathlib
Formal statement
theorem PvsNP.adaptive_local_seed_failure_count {Past Seed Future : Type*}
[Fintype Past] [Fintype Seed] [Fintype Future] [DecidableEq Seed]
(bad : Past → Finset Seed) (cap : ℕ) (bounded : ∀ past, (bad past).card ≤ cap) :
(Finset.univ.filter (fun x : Past × Seed × Future => x.2.1 ∈ bad x.1)).card ≤
Fintype.card Past * cap * Fintype.card Future := by sorrySource
Counting first collisions when comparison masks are sampled after the current candidate row is chosen.