Count safe random seeds for one fixed replay source
ProvedPvsNP.fixed_input_replay_safe_seed_countcomplexity-theoryformal-verification
Fix a finite family of potential false inputs for one source. Suppose each discarded seed accepts some false input in that family. The number of seeds accepting the source is at most the number left after discarding them plus the summed acceptance counts of the false inputs.
Preamble
import Mathlib
Formal statement
theorem PvsNP.fixed_input_replay_safe_seed_count {Seed Word : Type*} [DecidableEq Seed]
(sourceSeeds badSeeds : Finset Seed) (falseInputs : Finset Word)
(accepts : Word → Finset Seed)
(witness : ∀ z ∈ badSeeds, ∃ x ∈ falseInputs, z ∈ accepts x) :
sourceSeeds.card ≤ (sourceSeeds \ badSeeds).card +
∑ x ∈ falseInputs, (accepts x).card := by sorrySource
Fixed-input randomized replay for one-work-head truth table verification.