A tuple sampler with alphabet-independent mixing
Lax323828.TupleSampler · concepts/Lax323828/TupleSampler.lean · lax-323828
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Theorem
For an event S on t-tuples, plant a specified letter in a uniformly chosen coordinate and sample the remaining coordinates independently. Let p_S(a) be the probability of S under this experiment. Its mean is Pr[S], and the square of its mean absolute deviation from Pr[S] is at most 1/t.
The alphabet size does not enter the bound. Using all tuples as questions therefore gives a polynomial-size sampler for each fixed accuracy.
Concept map
Evidence
Lean source view on GitHub
| 1 | import Lax323828.TupleAveraging |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: A tuple sampler with alphabet-independent mixing |
| 6 | type: theorem |
| 7 | --- |
| 8 | For an event S on t-tuples, plant a specified letter in a uniformly chosen |
| 9 | coordinate and sample the remaining coordinates independently. Let p_S(a) |
| 10 | be the probability of S under this experiment. Its mean is Pr[S], and |
| 11 | the square of its mean absolute deviation from Pr[S] is at most 1/t. |
| 12 | |
| 13 | The alphabet size does not enter the bound. Using all tuples as questions |
| 14 | therefore gives a polynomial-size sampler for each fixed accuracy. |
| 15 | -/ |
| 16 | |
| 17 | namespace Lax323828.TupleSampler |
| 18 | |
| 19 | open scoped Classical |
| 20 | |
| 21 | open FiniteProbability |
| 22 | open scoped BigOperators |
| 23 | |
| 24 | /-- The value one on the event `S`, and zero outside it. -/ |
| 25 | noncomputable def indicator {A : Type} (S : A → Prop) (a : A) : ℝ := |
| 26 | if S a then 1 else 0 |
| 27 | |
| 28 | /-- The average indicator after planting `a` at a uniformly chosen coordinate of a uniformly chosen tuple. -/ |
| 29 | noncomputable def mass {A : Type} [Fintype A] (t : ℕ) |
| 30 | (S : (Fin t → A) → Prop) (a : A) : ℝ := |
| 31 | 𝔼 i : Fin t, 𝔼 z : Fin t → A, indicator S (Function.update z i a) |
| 32 | |
| 33 | axiom bounds {A : Type} [Fintype A] [Nonempty A] (t : ℕ) (ht : 0 < t) |
| 34 | (S : (Fin t → A) → Prop) (a : A) : 0 ≤ mass t S a ∧ mass t S a ≤ 1 |
| 35 | |
| 36 | axiom mean {A : Type} [Fintype A] [Nonempty A] (t : ℕ) (ht : 0 < t) |
| 37 | (S : (Fin t → A) → Prop) : (𝔼 a, mass t S a) = probability S |
| 38 | |
| 39 | axiom mixing {A : Type} [Fintype A] [Nonempty A] (t : ℕ) (ht : 0 < t) |
| 40 | (S : (Fin t → A) → Prop) : |
| 41 | (𝔼 a, |mass t S a - probability S|) ^ 2 ≤ 1 / (t : ℝ) |
| 42 | |
| 43 | end Lax323828.TupleSampler |
| 44 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments