The Hadamard code is a two-query locally decodable code #
The Hadamard code BitString.hadamardCode x a = x ⬝ᵥ a of a message x : ι → Bool has a local
decoder making two queries: to recover the bit x i from a received word y, draw a uniform
r : ι → Bool, read y r and y (eᵢ + r), and output their exclusive or
(BitString.hadamardDecoder). Each of the two positions read is uniform, so a word that differs
from the codeword on a fraction δ of the positions corrupts either read with probability at most
δ, and the decoder fails with probability at most 2 δ
(BitString.one_sub_two_mul_le_expect_selfCorrect_eq_apply). It is therefore a
(2, δ, 1 / 2 - 2 δ) local decoder for every δ, and a (2, 2, 1 / 2) smooth decoder
Arora and Barak, Chapters 11 and 19, Yekhanin, Chapter 1.
Main definitions #
Cslib.BitString.hadamardDecoder: the two-query local decoder.
Main results #
Cslib.BitString.isLocalDecoder_hadamardDecoder: a(2, δ, 1 / 2 - 2 δ)local decoder.Cslib.BitString.isSmoothDecoder_hadamardDecoder: a(2, 2, 1 / 2)smooth decoder.
References #
- S. Arora, B. Barak, Computational Complexity: A Modern Approach, Chapters 11 and 19
- S. Yekhanin, Locally decodable codes, Chapter 1
The two-query local decoder of the Hadamard code: to decode the bit i, draw a uniform r,
read the received word at r and at eᵢ + r, and output the exclusive or of the two symbols.
Both reads of the Hadamard decoder are uniform positions.
The reads of the Hadamard decoder do not depend on the received word.
The Hadamard code is locally decodable with two queries: from a word that differs from the
codeword on a fraction δ of the positions, the decoder outputs each bit of the message with
probability at least 1 - 2 δ.
The Hadamard code is a smooth code with two queries: its decoder reads each of the
2 ^ |ι| positions 2 / 2 ^ |ι| times in expectation and decodes codewords exactly.