Smooth codes from private information retrieval schemes #
In the converse direction to PIR.SmoothCode (Yekhanin, Lemma 6.2),
Goldreich, Karloff, Schulman and Trevisan, Lemma 7.1
(after Katz and Trevisan, restated for perfectly private two-server schemes as
Kerenidis and de Wolf, Appendix B, Lemma 3) converts any one-round PIR
scheme into a smooth code by tabulating all server answers and duplicating heavily queried entries.
Given a one-round scheme P : PIR.Scheme ι S R Q A over finite server and query alphabets S, Q
(l = |S| · |Q|) and a reference index i₀ : ι:
- Replicated answer code (
PIR.smoothCode P i₀). Each server-query pair(s, q) : S × Qhas rational query probabilityp₀(s, q) = ProbComp.evalRat (P.serverQuery s i₀) qunderi₀and is replicatedsmoothCopies P i₀ (s, q) = max 1 ⌈p₀(s, q) · l⌉₊times inSmoothPos P i₀, with every copy storingP.answer s x q. Becausemax 1 ⌈r⌉₊ ≤ 1 + rfor allr ≥ 0and∑_{(s, q)} p₀(s, q) = |S|, the codeword length satisfies|SmoothPos P i₀| ≤ (|S| + 1) · |S| · |Q|(card_smoothPos_le), recoveringm ≤ 6 · |Q|when|S| = 2(card_smoothPos_le_six_mul). - Non-adaptive smooth decoder with statistical-privacy rejection (
PIR.smoothDecoder P i₀). To decodex i, the decoder draws(r, q) ← P.query iand a fallback coinguessupfront; for each servers, ifpᵢ(s, q s) ≤ p₀(s, q s)it picks a uniform copy of(s, q s), whereas ifp₀(s, q s) < pᵢ(s, q s)it keeps(s, q s)with exact rational probabilityp₀ / pᵢviaProbComp.bernoulliRatand otherwise rejects the slot. If every server slot survives, the decoder reads all|S|selected positions non-adaptively viaCode.readAlland runsP.reconstruct i r; if any slot was rejected, it enters failure mode without querying the codeword and outputsguess. Thus:- each execution makes at most
|S|non-adaptive queries with oblivious expected reads (isQueryBounded_smoothDecoder,hasObliviousReads_smoothDecoder); - each codeword position is read at most
min(p₀, pᵢ) / smoothCopies ≤ 1 / l ≤ (|S| + 1) / mtimes in expectation (expectedReads_smoothDecoder_le); - when each server's query distributions are
δ-close in total variation (CloseTo) to those ati₀(Scheme.IsStatPrivateAt, implied byδ-statistical privacyScheme.IsStatPrivate) andPrecovers each bit with advantageε(Scheme.Recovers), failure mode occurs with probability at most|S| · δand still guessesx iwith probability1 / 2, sosmoothDecoder P i₀is a(|S|, |S| + 1, ε - |S| · δ / 2)-smooth decoder (isSmoothDecoder_smoothDecoder), specializing at|S| = 2to(2, 3, ε - δ)(isSmoothDecoder_smoothDecoder_two, GKST Lemma 7.1) and under perfect privacy (δ = 0) to(|S|, |S| + 1, ε)(isSmoothDecoder_smoothDecoder_of_isPrivate) with exact output-law preservation (decodeLaw_smoothDecoder_of_isPrivate).
- each execution makes at most
- Structural clauses of GKST Lemma 7.1:
- Item 1 (Linearity): when server answers are additive in
x,smoothCode P i₀is anAddMonoidHom(smoothCode_zero,smoothCode_add,smoothCodeAddHom). - Item 2 (Predetermined answer coordinates):
smoothCoins P i₀ iexposes the sampled private statest.state : Ralongside the selected positionsst.slots; whenP.reconstruct i rdepends on eacha s : κ → γonly on a predetermined subsetsel i r s : Finset κ, masking retrieved codeword entries outsidesel i st.state sleavessmoothDecoder P i₀ iunchanged (smoothDecoder_eq_of_predetermined).
- Item 1 (Linearity): when server answers are additive in
- Single-server noisy / statistically-private answer bound: combining
isSmoothDecoder_smoothDecoderat[Unique S](q = 1, c = 2) withCode.IsSmoothDecoder.four_mul_card_mul_sq_le(OneQuery.lean) yields|ι| · (ε - δ / 2)² ≤ |A| - 1(card_mul_sq_le_card_answer_sub_one_of_statPrivate, and|ι| · ε² ≤ |A| - 1underP.IsPrivate), complementingPIR.SingleServer's perfect-correctness bound2 ^ |ι| ≤ |A|.
Model boundaries #
In GKST Definition 2.1, smoothness bounds the probability of querying each position j by c / m
for a non-adaptive decoder. Here smoothDecoder P i₀ draws all query positions before making any
oracle call, makes zero queries in failure mode, and otherwise queries one position per distinct
server s : S, so no execution queries the same position j twice; expected reads and query
probability therefore coincide, and bounding Code.expectedReads establishes
Code.IsSmoothDecoder. Neither machine running time nor fair-coin simulation of rational unifFin
draws is certified here.
Main definitions #
Cslib.Crypto.Protocols.PIR.smoothCopies,Cslib.Crypto.Protocols.PIR.SmoothPos,Cslib.Crypto.Protocols.PIR.smoothCode: replicated PIR answer table and smooth code.Cslib.Crypto.Protocols.PIR.SmoothCoins,Cslib.Crypto.Protocols.PIR.smoothKeepRatio,Cslib.Crypto.Protocols.PIR.smoothCoins,Cslib.Crypto.Protocols.PIR.smoothDecoder: GKST non-adaptive smooth decoder and upfront coin draw with statistical-privacy failure mode.Cslib.Crypto.Protocols.PIR.smoothCodeAddHom: linearity refinement (GKST Lemma 7.1, item 1).
Main results #
Cslib.Crypto.Protocols.PIR.card_smoothPos_le,Cslib.Crypto.Protocols.PIR.card_smoothPos_le_six_mul: codeword length≤ (|S| + 1) |S| |Q|(≤ 6 |Q|for two servers).Cslib.Crypto.Protocols.PIR.isSmoothDecoder_smoothDecoder,Cslib.Crypto.Protocols.PIR.isSmoothDecoder_smoothDecoder_two,Cslib.Crypto.Protocols.PIR.isSmoothDecoder_smoothDecoder_of_isPrivate: GKST Lemma 7.1 and Kerenidis–de Wolf Appendix B Lemma 3.Cslib.Crypto.Protocols.PIR.decodeLaw_smoothDecoder_of_isPrivate: exact output law preservation under perfect privacy.Cslib.Crypto.Protocols.PIR.smoothCodeAddHom,Cslib.Crypto.Protocols.PIR.smoothDecoder_eq_of_predetermined: GKST Lemma 7.1 items 1–2.Cslib.Crypto.Protocols.PIR.card_mul_sq_le_card_answer_sub_one_of_statPrivate,Cslib.Crypto.Protocols.PIR.card_mul_sq_le_card_answer_sub_one_of_isPrivate: noisy / statistically-private single-server answer-alphabet lower bounds.
References #
- O. Goldreich, H. Karloff, L. J. Schulman, L. Trevisan, Lower bounds for linear locally decodable codes and private information retrieval, Section 1.2 (Definition 1.7), Section 2.1 (Definition 2.1), and Section 7.1 (Lemma 7.1); checked against ECCC TR01-080 (pp. 4, 6, 19–20)
- I. Kerenidis, R. de Wolf, Exponential lower bound for 2-query locally decodable codes via a quantum argument, Appendix B, Lemma 3 (p. 16 of arXiv:quant-ph/0208062v2)
- J. Katz, L. Trevisan, On the efficiency of local decoding procedures for error-correcting codes
Replication count max 1 ⌈p₀(s, q) · (|S| · |Q|)⌉₊ of server-query pair sq = (s, q) in the
GKST smooth-code construction with reference index i₀
GKST, Section 7.1, Lemma 7.1. Clamping below at 1
matches the proof's low-probability case (p_j ≤ 1 / l gets one copy even when p_j = 0) without
increasing the (k + 1) k |Q| length bound.
Codeword positions of the GKST smooth code: pairs ⟨(s, q), idx⟩ with idx ranging over the
smoothCopies P i₀ (s, q) copies of (s, q).
The GKST smooth code C : (ι → Bool) → SmoothPos P i₀ → A: every copy of (s, q) stores
P.answer s x q
GKST, Section 7.1, Lemma 7.1.
Codeword length bound (GKST, Lemma 7.1): the
replicated table has at most (|S| + 1) · |S| · |Q| positions.
Two-server specialization of card_smoothPos_le: m ≤ 6 · |Q|
(GKST, Lemma 7.1;
Kerenidis and de Wolf, Appendix B, Lemma 3).
Linearity preservation (GKST Lemma 7.1, item 1) #
Linearity preservation (GKST, Lemma 7.1, item 1):
when each server's answer map x ↦ P.answer s x q is an additive homomorphism (for instance, XOR
linear combinations of database bits over GF(2)), smoothCode P i₀ is an AddMonoidHom.
The GKST smooth decoder #
Upfront random coins sampled by smoothDecoder before making any oracle query.
- state : R
Client private state from
P.query i. - guess : Bool
Uniform fallback bit returned when any server slot enters failure mode.
Per-server optional codeword position (
nonesignals failure mode on that slot).
Acceptance probability ratio p₀(s, q) / pᵢ(s, q) (clamped to 1 when pᵢ ≤ p₀) used by
the GKST statistical-privacy rejection step
GKST, Section 7.1, Lemma 7.1, p. 20.
Upfront private-coin draw of the GKST smooth decoder before making any oracle queries.
GKST smooth decoder (GKST, Section 7.1, Lemma 7.1):
sample st ← smoothCoins P i₀ i; if every server slot survived (∀ idx, (st.slots idx).isSome),
read all |S| selected codeword positions non-adaptively via Code.readAll and run
P.reconstruct i st.state; otherwise output the uniform fallback bit st.guess without querying
the codeword.
Smoothness of the GKST decoder: against every received word y (obliviously), each
position j : SmoothPos P i₀ is read at most (|S| + 1) / |SmoothPos P i₀| times in
expectation.
Recovery bound of the GKST decoder: when each server's query distributions are δ-close
in total variation (CloseTo) to those at the reference index i₀ (in particular under pairwise
δ-closeness) and P recovers x i with probability at least 1 / 2 + ε, smoothDecoder P i₀
recovers x i from smoothCode P i₀ x with probability at least 1 / 2 + ε - |S| · δ / 2.
GKST Lemma 7.1 (general k = |S| servers): a one-round PIR scheme P whose server query
distributions are δ-close (CloseTo) to those at the reference index i₀ (in particular when
pairwise δ-close) and which recovers each bit with probability at least 1 / 2 + ε yields a
(|S|, |S| + 1, ε - |S| · δ / 2)-smooth decoder for smoothCode P i₀ (with codeword length
≤ (|S| + 1) · |S| · |Q|)
GKST, Section 7.1, Lemma 7.1.
GKST Lemma 7.1 (two servers): a (1 - δ)-statistically-private two-server PIR scheme with
recovery probability at least 1 / 2 + ε yields a (2, 3, ε - δ)-smooth code of length at most
6 · |Q| GKST, Section 7.1, Lemma 7.1.
Perfect-privacy specializations (δ = 0) #
Under perfect privacy (P.IsPrivate), smoothDecoder P i₀ never enters failure mode, so its
output law on smoothCode P i₀ x equals ProbComp.eval (P.run x i) exactly.
Perfect-privacy PIR-to-smooth-code converse (δ = 0 specialization of GKST Lemma 7.1;
at |S| = 2, Kerenidis and de Wolf, Appendix B, Lemma 3): a perfectly
private k-server PIR scheme with recovery probability at least 1 / 2 + ε yields a
(|S|, |S| + 1, ε)-smooth decoder for smoothCode P i₀ (with codeword length
≤ (|S| + 1) · |S| · |Q|).
Perfectly correct and perfectly private k-server PIR yields a (|S|, |S| + 1, 1 / 2)-smooth
code of length at most (|S| + 1) · |S| · |Q|
(converse to PIR.SmoothCode.hasScheme_ofDecoder).
Predetermined answer coordinates (GKST Lemma 7.1, item 2) #
Predetermined answer-coordinate preservation
(GKST, Lemma 7.1, item 2): when P.reconstruct i r inspects
at most a predetermined coordinate subset sel i r s : Finset κ of each server's answer
a s : κ → γ (for example, k predetermined bit positions out of an a-bit answer), masking
every coordinate outside sel i st.state s in the retrieved codeword symbols with any pad : γ
leaves smoothDecoder P i₀ i unchanged. Together with smoothCoins P i₀ i, this exhibits both the
queried codeword positions st.slots and the predetermined coordinate subsets sel i st.state s
for each coin draw st.
Single-server noisy and statistically-private answer-size lower bounds #
Noisy / statistically-private single-server PIR answer-size lower bound (combining GKST
Lemma 7.1 at |S| = 1 with Code.IsSmoothDecoder.four_mul_card_mul_sq_le from OneQuery.lean):
any one-server PIR scheme over a finite query set whose query distributions are pairwise δ-close
(0 ≤ δ) and which recovers each database bit with probability at least 1 / 2 + ε (δ / 2 ≤ ε)
has answer alphabet size satisfying |ι| · (ε - δ / 2)² ≤ |A| - 1.
Noisy perfectly-private single-server PIR answer-size lower bound (δ = 0 case of
card_mul_sq_le_card_answer_sub_one_of_statPrivate): any perfectly private one-server PIR scheme
over a finite query set recovering each bit with probability at least 1 / 2 + ε (0 ≤ ε)
satisfies |ι| · ε² ≤ |A| - 1.