Documentation

CslibFrontier.Foundations.Data.Code.OddCircuitFourier

Counting odd circuits with Fourier analysis #

For a finite set B of vectors over š”½ā‚‚ write charSum B y = āˆ‘_{x ∈ B} (-1) ^ (y ā¬įµ„ x) (Cslib.Code.charSum) for the unnormalized Fourier transform of its indicator; Saglam's μ̂(y) is charSum B y / |B| [Saglam2027, Section 3.1]. Character orthogonality counts the zero-sum tuples of elements of B: 2 ^ n Ā· #{t ∈ B ^ ā„“ | āˆ‘ t = 0} = āˆ‘_y charSum B y ^ ā„“ (Cslib.Code.card_filter_sum_eq_zero_mul_two_pow), and each ā„“-element zero-sum subset of B gives ā„“! such tuples (Cslib.Code.card_filter_sum_eq_zero_mul_factorial_le).

Summing over odd sizes ā„“ ≄ 3 against the power series of sinh bounds the weighted number of odd circuits by āˆ‘_S q ^ (-(|S| - 1)) ≤ (q / 2 ^ n) āˆ‘_y s(charSum B y / q), s(z) = sinh z - z, when 0 āˆ‰ B and q > 0 (Cslib.Code.sum_odd_circuit_le_sum_sinh_sub_self). With q = 2 ^ m and Ļ„ = |B| / q the right side is Saglam's (V / Ļ„) š”¼_y s(Ļ„ μ̂(y)), the bound on the expected number š”¼ Z of odd circuits in a random kernel [Saglam2027, Sections 2 and 3.3]; the continuous-time random walk of the paper is only a device for this identity and is not needed here.

The elementary estimates s(z) ≤ 0 for z ≤ 0, s(z) ≤ (sinh 1 - 1) z ^ 3 for 0 ≤ z ≤ 1 and s(z) ≤ e ^ z / 2 (Cslib.Code.sinh_sub_self_le) split this bound into a third-moment term and a tail term (Cslib.Code.sum_odd_circuit_le_moment_add_tail). Combined with the odd-circuit argument of Cslib.Code.OddCircuit, a linear code of distance d with 2 ^ (n - m - 1) words exists as soon as (V / Ļ„) ((sinh 1 - 1) Ļ„ ^ 3 š”¼_y |μ̂ y| ^ 3 + (e ^ Ļ„ / 2) Pr_y[μ̂ y > 1 / Ļ„]) < 1 (Cslib.Code.exists_le_minDist_parityCheckCode_of_moment_tail). This is the reduction of [Saglam2027, Section 3.3] to the Fourier estimates of its Lemma 3.1, which are not proved here.

Main definitions #

Main results #

References #

noncomputable def Cslib.Code.charSum {ι : Type u_1} [Fintype ι] (B : Finset (ι → ZMod 2)) (y : ι → ZMod 2) :

The unnormalized Fourier transform āˆ‘_{x ∈ B} (-1) ^ (y ā¬įµ„ x) of the indicator of a finite set B of vectors over š”½ā‚‚, at y. Saglam's μ̂(y) [Saglam2027, Section 3] is charSum B y / |B|.

theorem Cslib.Code.neg_one_pow_val_sum {α : Type u_2} (s : Finset α) (a : α → ZMod 2) :
(-1) ^ (āˆ‘ i ∈ s, a i).val = āˆ i ∈ s, (-1) ^ (a i).val

The sign of a sum in š”½ā‚‚ is the product of the signs.

theorem Cslib.Code.abs_charSum_le {ι : Type u_1} [Fintype ι] (B : Finset (ι → ZMod 2)) (y : ι → ZMod 2) :
|charSum B y| ≤ ↑B.card

Each sign has absolute value one, so |charSum B y| ≤ |B|.

theorem Cslib.Code.card_filter_sum_eq_zero_mul_two_pow {ι : Type u_1} [Fintype ι] [DecidableEq ι] (B : Finset (ι → ZMod 2)) (ā„“ : ā„•) :
↑{t ∈ Fintype.piFinset fun (x : Fin ā„“) => B | āˆ‘ i : Fin ā„“, t i = 0}.card * 2 ^ Fintype.card ι = āˆ‘ y : ι → ZMod 2, charSum B y ^ ā„“

Zero-sum tuples by Fourier inversion [Saglam2027, Section 3.3]. The number of ā„“-tuples of elements of B with sum zero, times 2 ^ n, is the ā„“-th power sum of the Fourier transform of the indicator of B. In probabilistic terms, p_ā„“ = š”¼_y μ̂(y) ^ ā„“.

theorem Cslib.Code.card_filter_sum_eq_zero_mul_factorial_le {V : Type u_2} [AddCommMonoid V] [DecidableEq V] (B : Finset V) (ā„“ : ā„•) :
{S ∈ B.powerset | S.card = ā„“ ∧ āˆ‘ x ∈ S, x = 0}.card * ā„“.factorial ≤ {t ∈ Fintype.piFinset fun (x : Fin ā„“) => B | āˆ‘ i : Fin ā„“, t i = 0}.card

Zero-sum sets versus zero-sum tuples [Saglam2027, Section 2]. Each ā„“-element subset of B with sum zero gives ā„“! distinct ā„“-tuples with sum zero, one for each ordering.

theorem Cslib.Code.three_le_card_of_isZeroSumCircuit {V : Type u_2} [AddCommGroup V] {S : Finset V} (hS : IsZeroSumCircuit S) (hodd : Odd S.card) (h0 : 0 āˆ‰ S) :

An odd circuit avoiding 0 has at least three elements.

theorem Cslib.Code.sum_odd_circuit_le_sum_sinh_sub_self {ι : Type u_1} [Fintype ι] [DecidableEq ι] {B : Finset (ι → ZMod 2)} (h0 : 0 āˆ‰ B) {q : ā„} (hq : 0 < q) :
āˆ‘ S ∈ B.powerset with IsZeroSumCircuit S ∧ Odd S.card, q⁻¹ ^ (S.card - 1) ≤ q / 2 ^ Fintype.card ι * āˆ‘ y : ι → ZMod 2, (Real.sinh (charSum B y / q) - charSum B y / q)

The sinh bound on odd circuits [Saglam2027, Sections 2 and 3.3]. For 0 āˆ‰ B and q > 0, the odd zero-sum circuits S of B satisfy āˆ‘_S q ^ (-(|S| - 1)) ≤ (q / 2 ^ n) āˆ‘_y (sinh (charSum B y / q) - charSum B y / q).

With q = 2 ^ m, Ļ„ = |B| / q and μ̂ = charSum B / |B| the right side is (V / Ļ„) š”¼_y (sinh (Ļ„ μ̂(y)) - Ļ„ μ̂(y)), Saglam's bound on the expected number of odd circuits in the kernel of a random m-row matrix.

The three-range estimate [Saglam2027, Section 3.3]. With s(z) = sinh z - z, s(z) ≤ 0 for z ≤ 0, s(z) ≤ (sinh 1 - 1) z ^ 3 for 0 ≤ z ≤ 1, and s(z) ≤ e ^ z / 2 for all z; together, s(z) ≤ (sinh 1 - 1) |z| ^ 3 + [z > 1] e ^ z / 2.

theorem Cslib.Code.sum_odd_circuit_le_moment_add_tail {ι : Type u_1} [Fintype ι] [DecidableEq ι] {B : Finset (ι → ZMod 2)} (h0 : 0 āˆ‰ B) {q : ā„} (hq : 0 < q) :
āˆ‘ S ∈ B.powerset with IsZeroSumCircuit S ∧ Odd S.card, q⁻¹ ^ (S.card - 1) ≤ q / 2 ^ Fintype.card ι * ((Real.sinh 1 - 1) * āˆ‘ y : ι → ZMod 2, |charSum B y / q| ^ 3 + Real.exp (↑B.card / q) / 2 * ↑{y : ι → ZMod 2 | q < charSum B y}.card)

The moment and tail bound [Saglam2027, Section 3.3]. For 0 āˆ‰ B and q > 0, the odd zero-sum circuits S of B satisfy āˆ‘_S q ^ (-(|S| - 1)) ≤ (q / 2 ^ n) ((sinh 1 - 1) āˆ‘_y |charSum B y / q| ^ 3 + (e ^ (|B| / q) / 2) #{y | q < charSum B y}).

theorem Cslib.Code.exists_le_minDist_parityCheckCode_of_moment_tail {ι : Type u_1} [Fintype ι] [DecidableEq ι] (d m : ā„•) (h : have B := {x : ι → ZMod 2 | x ≠ 0 ∧ hammingNorm x < d}; have Ļ„ := ↑B.card / 2 ^ m; have μ := fun (y : ι → ZMod 2) => charSum B y / ↑B.card; ↑B.card / Ļ„ * ((Real.sinh 1 - 1) * Ļ„ ^ 3 * ((āˆ‘ y : ι → ZMod 2, |μ y| ^ 3) / 2 ^ Fintype.card ι) + Real.exp Ļ„ / 2 * (↑{y : ι → ZMod 2 | 1 / Ļ„ < μ y}.card / 2 ^ Fintype.card ι)) < 1) :
∃ (H : Matrix (Fin (m + 1)) ι (ZMod 2)), ↑d ≤ minDist ↑(parityCheckCode H) ∧ 2 ^ (Fintype.card ι - (m + 1)) ≤ Nat.card ↄ(parityCheckCode H)

Linear codes from the moment and tail estimates [Saglam2027, Section 3.3]. Let B = {x ≠ 0 | |x| < d} have V elements, let m : ā„•, Ļ„ = V / 2 ^ m, and μ̂(y) = charSum B y / V. If (V / Ļ„) ((sinh 1 - 1) Ļ„ ^ 3 š”¼_y |μ̂ y| ^ 3 + (e ^ Ļ„ / 2) Pr_y[1 / Ļ„ < μ̂ y]) < 1, then some (m + 1)-row parity-check matrix over š”½ā‚‚ defines a linear code of minimum distance at least d with at least 2 ^ (n - (m + 1)) codewords.

This is the conditional form of Saglam's argument: Lemma 3.1 of [Sag26] supplies the moment and tail estimates that make the hypothesis hold for log n ≪ d ≤ (1/2 - ε) n.