A tuple sampler with alphabet-independent mixing
Lax253009.TupleSampler · concepts/Lax253009/TupleSampler.lean · lax-253009
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 Lax253009.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 Lax253009.TupleSampler |
| 18 | |
| 19 | open FiniteProbability |
| 20 | open scoped BigOperators |
| 21 | |
| 22 | noncomputable def indicator {A : Type} (S : A → Prop) (a : A) : ℝ := by |
| 23 | classical |
| 24 | exact if S a then 1 else 0 |
| 25 | |
| 26 | noncomputable def mass {A : Type} [Fintype A] (t : ℕ) |
| 27 | (S : (Fin t → A) → Prop) (a : A) : ℝ := by |
| 28 | classical |
| 29 | exact 𝔼 i : Fin t, 𝔼 z : Fin t → A, indicator S (Function.update z i a) |
| 30 | |
| 31 | axiom bounds {A : Type} [Fintype A] [Nonempty A] (t : ℕ) (ht : 0 < t) |
| 32 | (S : (Fin t → A) → Prop) (a : A) : 0 ≤ mass t S a ∧ mass t S a ≤ 1 |
| 33 | |
| 34 | axiom mean {A : Type} [Fintype A] [Nonempty A] (t : ℕ) (ht : 0 < t) |
| 35 | (S : (Fin t → A) → Prop) : (𝔼 a, mass t S a) = probability S |
| 36 | |
| 37 | axiom mixing {A : Type} [Fintype A] [Nonempty A] (t : ℕ) (ht : 0 < t) |
| 38 | (S : (Fin t → A) → Prop) : |
| 39 | (𝔼 a, |mass t S a - probability S|) ^ 2 ≤ 1 / (t : ℝ) |
| 40 | |
| 41 | end Lax253009.TupleSampler |
| 42 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments