Reference reads bound the number of changed responses
ProvedPvsNP.changed_responses_le_flip_budget_mul_readscomplexity-theoryformal-verification
For each seed, a response can change only when a reference-read location is flipped in the modified world. Each location is flipped in at most a given number of worlds. The total count of changed seed–world responses is bounded by that flip budget times the total reference-read count.
Preamble
import Mathlib.Algebra.Order.BigOperators.Group.Finset import Mathlib.Algebra.BigOperators.Ring.Finset import Mathlib.Data.Finset.Card set_option autoImplicit false
Formal statement
theorem PvsNP.changed_responses_le_flip_budget_mul_reads {Seed World Point : Type*}
[DecidableEq World] (seeds : Finset Seed) (worlds : Finset World)
(reads : Seed → Finset Point) (changed : Seed → World → Bool) (flipped : World → Point → Bool)
(budget : ℕ)
(firstHit : ∀ seed ∈ seeds, ∀ world ∈ worlds, changed seed world = true →
∃ point ∈ reads seed, flipped world point = true)
(bounded : ∀ point, (worlds.filter (fun world => flipped world point = true)).card ≤ budget) :
(∑ seed ∈ seeds, (worlds.filter (fun world => changed seed world = true)).card) ≤
budget * ∑ seed ∈ seeds, (reads seed).card := by sorrySource
Finite union accounting for sparse adaptive prefix queries.