Documentation

CslibFrontier.Probability.SmallBias.Correlation

Codes from small-bias lists: nearly uncorrelated codewords and short correlation lists #

A list r : Z → ι → Bool of bit strings, indexed by a finite type Z, encodes a message x : ι → Bool as the word z ↦ r z ⬝ᵥ x of inner products modulo two: the linear code whose generator matrix has the rows r z. Suppose the list is δ-biased, that is, the uniform distribution over the list is δ-biased (Cslib.BitString.IsSmallBias). Then the word of a nonzero message is nearly balanced, |∑ z, signVal (r z ⬝ᵥ x)| ≤ δ |Z| (Cslib.BitString.abs_sum_signVal_dotProduct_le), and the words of distinct messages are nearly uncorrelated (Cslib.BitString.abs_sum_signVal_mul_signVal_dotProduct_le), since their exclusive or is the word of the nonzero message x + y. This is the code of [KW16], arXiv:1511.07860v1, Proposition 2 and Corollary 6.1 (labels eps-biased and uncorrFunctCor), in ±1 correlation form.

Few codewords then correlate with any fixed word T : Z → Bool: for δ, γ ≥ 0, the number N of messages x with |∑ z, signVal (T z) * signVal (r z ⬝ᵥ x)| ≥ γ |Z| satisfies N * (γ ^ 2 - δ) ≤ 1, so N ≤ 1 / (γ ^ 2 - δ) when γ ^ 2 > δ (Cslib.BitString.card_le_abs_sum_signVal_mul_signVal_dotProduct_mul_le). This is [KW16], Lemma 6.1 (label uncorrAgreeLem), with explicit constants; it follows from card_mul_sub_le_one_of_abs_inner_ge for the ±1 words in EuclideanSpace ℝ Z (Cslib.BitString.signWord).

Main results #

References #

theorem Cslib.BitString.sum_signVal_dotProduct_eq {ι : Type u_1} {Z : Type u_2} [Fintype ι] [DecidableEq ι] [Fintype Z] [Nonempty Z] (r : Z → ι → Bool) (x : ι → Bool) :
∑ z : Z, signVal (r z ⬝ᵥ x) = ↑(Fintype.card Z) * bias (PMF.map r (Probability.PMF.uniformOfFintype Z)) {i : ι | x i = true}

The sign sum of the word z ↦ r z ⬝ᵥ x is |Z| times the bias of the list r at the support of x.

theorem Cslib.BitString.abs_sum_signVal_dotProduct_le {ι : Type u_1} {Z : Type u_2} [Fintype ι] [DecidableEq ι] [Fintype Z] [Nonempty Z] {δ : ℝ} {r : Z → ι → Bool} (hr : IsSmallBias δ (PMF.map r (Probability.PMF.uniformOfFintype Z))) {x : ι → Bool} (hx : x ≠ 0) :
|∑ z : Z, signVal (r z ⬝ᵥ x)| ≤ δ * ↑(Fintype.card Z)

The word of a nonzero message is nearly balanced: if the list r is δ-biased and x ≠ 0, then |∑ z, signVal (r z ⬝ᵥ x)| ≤ δ |Z|.

theorem Cslib.BitString.abs_sum_signVal_mul_signVal_dotProduct_le {ι : Type u_1} {Z : Type u_2} [Fintype ι] [DecidableEq ι] [Fintype Z] [Nonempty Z] {δ : ℝ} {r : Z → ι → Bool} (hr : IsSmallBias δ (PMF.map r (Probability.PMF.uniformOfFintype Z))) {x y : ι → Bool} (hxy : x ≠ y) :
|∑ z : Z, signVal (r z ⬝ᵥ x) * signVal (r z ⬝ᵥ y)| ≤ δ * ↑(Fintype.card Z)

The words of distinct messages are nearly uncorrelated ([KW16], arXiv:1511.07860v1, Corollary 6.1, in ±1 form): if the list r is δ-biased and x ≠ y, then |∑ z, signVal (r z ⬝ᵥ x) * signVal (r z ⬝ᵥ y)| ≤ δ |Z|.

theorem Cslib.BitString.card_le_abs_sum_signVal_mul_signVal_dotProduct_mul_le {ι : Type u_1} {Z : Type u_2} [Fintype ι] [DecidableEq ι] [Fintype Z] [Nonempty Z] {δ γ : ℝ} (hδ : 0 ≤ δ) (hγ : 0 ≤ γ) {r : Z → ι → Bool} (hr : IsSmallBias δ (PMF.map r (Probability.PMF.uniformOfFintype Z))) (T : Z → Bool) :
↑{x : ι → Bool | γ * ↑(Fintype.card Z) ≤ |∑ z : Z, signVal (T z) * signVal (r z ⬝ᵥ x)|}.card * (γ ^ 2 - δ) ≤ 1

Few codewords correlate with a fixed word ([KW16], arXiv:1511.07860v1, Lemma 6.1, with explicit constants): if the list r is δ-biased with δ ≥ 0 and γ ≥ 0, then the messages x whose words have correlation at least γ |Z| in absolute value with a fixed word T satisfy #{x | …} * (γ ^ 2 - δ) ≤ 1; so when γ ^ 2 > δ they number at most 1 / (γ ^ 2 - δ).