The exact count of independent sample tuples lying in an agreement set
ProvedPvsNP.independent_sample_collision_countcombinatoricsformal-verificationprobability
Let a finite set carry an agreement predicate. Among ordered tuples of k independent uniform samples, the number whose entries all agree is the size of the agreement set to the power k.
Preamble
import Mathlib
Formal statement
theorem PvsNP.independent_sample_collision_count {A : Type*} [Fintype A]
(agree : A → Prop) [DecidablePred agree] (k : ℕ) :
Fintype.card {x : Fin k → A // ∀ i, agree (x i)} =
(Finset.univ.filter agree).card ^ k := by sorrySource
Sampling masks on a Boolean cube to compare two degree-bounded block polynomials.