Exact unbalanced covering-code schemes (Theorem 1) and general radius-r covers #
PIR.CoveringCode formalizes Chor, Goldreich, Kushilevitz and Sudan, Section
3.3 in the uniform PIR.Scheme model, where every server sends
answers of the same fixed bit length. Because non-perfect covering codes assign unequal numbers of
non-codewords to different servers, PIR.CoveringCode proves Theorem 1's exact bit count
k + (2 ^ d + (d - 1) · k) · ℓ only for balanced covers (k · (m + 1) = 2 ^ d, which forces k
to divide 2 ^ d, excluding for example Figure 1's optimal d = 5, k = 7 and d = 6, k = 12
codes) and covers only radius 1.
This module completes both directions of Section 3.3 (pp. 8–10):
- Multi-coordinate subcube emulation (
PIR.diffCoords,PIR.emulateCubeQuery,PIR.query_cube_eq_emulateCubeQuery). GeneralizingPIR.query_update_cubefrom Hamming distance1to arbitrary distance: for any two wordsσ, w : D → Bool, the subcube query ofwinPIR.cube D ιagrees withq σoutsidediffCoords σ w = {l | σ l ≠ w l}and addse_{i l}at eachl ∈ diffCoords σ w. Thus knowingq σand the|diffCoords σ w|coordinates(i l)determinesq w. - Full CGKS Theorem 1 via per-server answer widths (
PIR.ExactRadiusOneCover,PIR.hasIndexedScheme_of_hammingDist). Following Footnote 1 of Section 3.3 (p. 9), anExactRadiusOneCover S DpartitionsD → Boolacrossk = |S|distinct codewordscode sso every wordwis assigned to a server within Hamming distance1and each codeword is assigned to itself (ExactRadiusOneCover.ofHammingDistbuilds one canonically from any injective radius-1covering code). Serversreplies with1bit forcode sandℓbits for each of itsm_s = |AssignedNeighbour K s|assigned non-codewords (PIR.IndexedScheme). Becausek + ∑ s, m_s = 2 ^ d(card_add_sum_card_assignedNeighbour), total communication isk + (2 ^ d + (d - 1) · k) · ℓfor every injectivek-word radius-1covering code ond ≥ 1coordinates (hasIndexedScheme_of_hammingDist). Instantiated on the explicit7-word radius-1covering code ofFin 5 → Bool(sevenWordCode,K(5, 1) = 7in Figure 1, p. 10), this yields a7-server scheme communicating60 · ℓ + 7bits forn ≤ ℓ ^ 5(hasIndexedScheme_seven_of_le_pow_five), whereas7 ∤ 32rules out any balanced uniform cover. - General radius-
rand radius-2covering-code schemes (PIR.radiusCoverScheme,PIR.hasScheme_of_hammingDist_le,PIR.hasScheme_of_hammingDist_two,PIR.hasScheme_of_hammingDist_two_sq). For any radius-rcovering code ofD → Bool, each server tabulates emulated subcube parities overRadiusBallQuery D r ι(∑ j ≤ r, C(d, j) · ℓ^jbits), giving a uniformPIR.Schemecommunicatingk · (d · ℓ + ∑ j ≤ r, C(d, j) · ℓ ^ j)bits. Atr = 2this givesk · (2 d ℓ + C(d, 2) ℓ² + 1) = k · d · ℓ + k · C(d, 2) · ℓ² + k · (d · ℓ + 1)bits (hasScheme_of_hammingDist_two, matching Section 3.3's displayed leading expressionk · d · ℓ + k · C(d, 2) · ℓ²on p. 10 plus thek · (d · ℓ + 1)lower-order radius-0and radius-1answer bits), and ford ≥ 2,ℓ ≥ 1the coarser polynomial upper boundk · d · ℓ + k · d² · ℓ²(hasScheme_of_hammingDist_two_sq). Instantiated on{00000, 11111}(repetitionFive), this gives a2-server radius-2scheme onn ≤ ℓ ^ 5with20 ℓ² + 20 ℓ + 2bits (hasScheme_two_radius_two_of_le_pow_five).
Main definitions #
Cslib.Crypto.Protocols.PIR.diffCoords,Cslib.Crypto.Protocols.PIR.emulateCubeQuery: disagreement coordinates and multi-coordinate query emulation onPIR.cube.Cslib.Crypto.Protocols.PIR.ExactRadiusOneCover: exact partitions ofD → Boolinto subsets of radius-1balls aroundkdistinct codewords (CGKS Section 3.3, Footnote 1).Cslib.Crypto.Protocols.PIR.ExactRadiusOneCover.indexedScheme: per-server covering-code scheme.Cslib.Crypto.Protocols.PIR.sevenWordCode: explicit7-word radius-1covering code ofFin 5 → Bool(CGKS Figure 1).Cslib.Crypto.Protocols.PIR.RadiusBallQuery,Cslib.Crypto.Protocols.PIR.radiusCoverScheme: general radius-rcovering-code PIR scheme.Cslib.Crypto.Protocols.PIR.repetitionFive: the2-word radius-2covering code{00000, 11111}ofFin 5 → Bool.
Main results #
Cslib.Crypto.Protocols.PIR.query_cube_eq_emulateCubeQuery: multi-coordinate emulation identity.Cslib.Crypto.Protocols.PIR.ExactRadiusOneCover.indexedCommunication_indexedScheme_eq,Cslib.Crypto.Protocols.PIR.hasIndexedScheme_of_hammingDist: full CGKS Theorem 1 for arbitrary injective radius-1covering codes.Cslib.Crypto.Protocols.PIR.hasIndexedScheme_seven_of_le_pow_five:7-server60 ℓ + 7-bit PIR forn ≤ ℓ ^ 5(CGKS Figure 1,d = 5).Cslib.Crypto.Protocols.PIR.hasScheme_of_hammingDist_le,Cslib.Crypto.Protocols.PIR.hasScheme_of_hammingDist_two,Cslib.Crypto.Protocols.PIR.hasScheme_of_hammingDist_two_sq: radius-rand radius-2covering-code PIR bounds.Cslib.Crypto.Protocols.PIR.hasScheme_two_radius_two_of_le_pow_five:2-server radius-2PIR onFin 5 → Bool.
References #
- B. Chor, O. Goldreich, E. Kushilevitz, M. Sudan, Private information retrieval, Section 3.3 (Theorem 1, Footnote 1, Figure 1, and pp. 8–10); numbering of the authors' journal version of April 21, 1998
Multi-coordinate subcube emulation #
Coordinates at which σ and w disagree; its cardinality is definitionally hammingDist σ w.
Emulate a subcube query at disagreement set T : Finset D by flipping coordinate δ ⟨l, hl⟩ in
a l for every l ∈ T and leaving a l unchanged outside T.
Multi-coordinate generalization of PIR.query_update_cube: for any draw (r, q) of
PIR.cube D ι on target i and any two words σ, w : D → Bool, the query q w is obtained from
q σ by flipping (i l) on diffCoords σ w.
Exact partitions of radius-1 covers and full CGKS Theorem 1 #
An exact partition of the cube D → Bool into subsets of radius-1 balls around |S| distinct
codewords CGKS, Section 3.3, Footnote 1, p. 9: each word w is
assigned to a server assign w within Hamming distance 1, and each codeword code s is assigned
to s itself (which forces code to be injective).
Different servers in an ExactRadiusOneCover hold distinct codewords.
Build an ExactRadiusOneCover canonically from any injective radius-1 covering code
code : S → D → Bool: each codeword code s is assigned to s, and each non-codeword is assigned
to a covering codeword within Hamming distance 1.
Non-codeword cube vertices assigned to server s in the exact cover K.
The |S| codewords together with all AssignedNeighbour K s partition D → Bool.
Per-server covering-code PIR scheme
CGKS, Section 3.3, Theorem 1 and Footnote 1: server s
receives the subcube query for K.code s, replies with 1 bit for K.code s itself and |ι| bits
for each assigned non-codeword w : K.AssignedNeighbour s, and the user sums the 2 ^ |D|
recovered subcube parities.
K.indexedScheme ι is perfectly private, inheriting uniform subcube queries from PIR.cube.
K.indexedScheme ι is perfectly correct: every word w : D → Bool is either K.code s or
differs from K.code s at a single coordinate l₀, so (a s) supplies its exact PIR.cube
answer.
Raw exact communication count of K.indexedScheme ι (valid even when D is empty): |S|
queries of |D| · |ι| bits, |S| codeword bits, and (2 ^ |D| - |S|) · |ι| non-codeword bits.
Theorem 1's exact communication count for arbitrary radius-1 covers
CGKS, Section 3.3, Theorem 1, p. 9: on any nonempty coordinate
set (0 < |D|), K.indexedScheme ι communicates k + (2 ^ d + (d - 1) · k) · ℓ bits, with no
balancedness assumption on K.
Any ExactRadiusOneCover on d ≥ 1 coordinates yields a k-server IndexedScheme for
n ≤ ℓ ^ d communicating k + (2 ^ d + (d - 1) · k) · ℓ bits.
CGKS Section 3.3, Theorem 1 (general unbalanced form)
CGKS, p. 9: if D → Bool (0 < |D|) admits an injective
k-word radius-1 covering code c : S → D → Bool, then every n ≤ ℓ ^ |D| has a perfectly
correct and perfectly private k-server IndexedScheme communicating
k + (2 ^ d + (d - 1) · k) · ℓ bits.
Explicit 7-word radius-1 covering code of {0, 1}^5 attaining optimal size K(5, 1) = 7
listed in CGKS, Figure 1, p. 10. Because 7 ∤ 2 ^ 5, no
balanced PIR.RadiusOneCover exists for (d, k) = (5, 7).
Seven servers with 60 · ℓ + 7 bits (d = 5 row of CGKS Figure 1, p. 10)
CGKS, Section 3.3: every n ≤ ℓ ^ 5 has a perfectly correct
and perfectly private 7-server IndexedScheme communicating 60 · ℓ + 7 bits (saving 10 · ℓ
bits over the uniform 70 · ℓ + 7 bound of PIR.RadiusOneCover.hasScheme_of_hammingDist).
General radius-r and radius-2 covering-code schemes #
Index of emulated subcube answers within a Hamming ball of radius r: a disagreement subset
coords ⊆ D of size at most r together with candidate coordinates offsets : coords → ι.
- coords : Finset D
Subset of coordinates where the emulated cube vertex disagrees with the server's codeword.
The disagreement set has size at most
r.- offsets : ↥self.coords → ι
Candidate target coordinate along each flipped dimension.
Instances For
Equivalence between RadiusBallQuery D r ι and the corresponding dependent pair.
A server emulating a Hamming ball of radius r tabulates ∑ j ≤ r, C(|D|, j) · |ι| ^ j
single-bit subcube answers.
General radius-r covering-code PIR scheme
CGKS, Section 3.3, pp. 9–10: given a radius-r covering code
c : S → D → Bool, server s receives the subcube query for c s and returns the emulated
subcube answer bit for every u : RadiusBallQuery D r ι.
Schemes from radius-r covering codes
CGKS, Section 3.3, pp. 9–10: if every word of D → Bool is
within Hamming distance r of one of k = |S| codewords, every n ≤ ℓ ^ d has a perfectly correct
and perfectly private k-server scheme communicating
k · (d · ℓ + ∑ j ≤ r, C(d, j) · ℓ ^ j) bits.
Radius-2 covering-code PIR scheme (full-ball count)
CGKS, Section 3.3, pp. 9–10: a k-word radius-2 covering
code of D → Bool yields a k-server PIR scheme for n ≤ ℓ ^ d communicating
k · (2 d ℓ + C(d, 2) · ℓ² + 1) = k · d · ℓ + k · C(d, 2) · ℓ² + k · (d · ℓ + 1) bits (the
k · d · ℓ + k · C(d, 2) · ℓ² query and distance-2 answer terms displayed on p. 10 of CGKS,
together with the k · (d · ℓ + 1) distance-0 and distance-1 answer bits).
Coarser polynomial radius-2 bound (k · d · ℓ + k · d² · ℓ²): when 2 ≤ |D| and 1 ≤ ℓ,
replacing C(d, 2) by d² absorbs the lower-order k · (d · ℓ + 1) distance-0 and distance-1
answer bits in hasScheme_of_hammingDist_two, giving a k-server scheme for n ≤ ℓ ^ d within
k · d · ℓ + k · d² · ℓ² bits.