Documentation

CslibFrontier.Crypto.Protocols.PIR.SingleServer

Single-server private information retrieval #

With a single server, perfect privacy forces the server to send the whole database: a correct, private one-server scheme has some query q on which the answer map x ↦ answer x q is injective (Scheme.exists_injective_answer), so there are at least 2 ^ n answers (Scheme.two_pow_card_le_card_answer) and the scheme communicates at least n bits (Scheme.card_le_communication). Downloading the database (PIR.download) attains the bound, so HasScheme ι 1 c holds exactly when |ι| ≤ c (PIR.hasScheme_one_iff).

This is the one-round k = 1 specialization of the full-coalition lower bound in PIR.Collusion, formalizing the one-round case of Chor, Goldreich, Kushilevitz and Sudan, Section 5.1 (PIR.Interactive proves the interactive case).

Main definitions #

Main results #

References #

theorem Cslib.Crypto.Protocols.PIR.Scheme.exists_injective_answer {ι S R Q A β : Type} {P : Scheme ι S R Q A β} [Unique S] [Nonempty ι] (hcorrect : P.IsCorrect) (hprivate : P.IsPrivate) :
∃ (q : Q), Function.Injective fun (x : ι → β) => P.answer default x q

One server must send the database. In a perfectly correct and perfectly private scheme with one server, some query q makes the answer map x ↦ P.answer default x q injective CGKS, Section 5.1. Derived as the |S| = 1, t = 1 case of Scheme.exists_injective_answers_of_card_le.

theorem Cslib.Crypto.Protocols.PIR.Scheme.two_pow_card_le_card_answer {ι S R Q A : Type} {P : Scheme ι S R Q A} [Unique S] [Nonempty ι] [Fintype ι] [Fintype A] (hcorrect : P.IsCorrect) (hprivate : P.IsPrivate) :

A perfectly correct and perfectly private one-server scheme for n-bit databases has at least 2 ^ n answers.

theorem Cslib.Crypto.Protocols.PIR.Scheme.card_le_communication {ι S R Q A : Type} {P : Scheme ι S R Q A} [Fintype S] [Unique S] [Fintype ι] [Fintype Q] [Fintype A] (hcorrect : P.IsCorrect) (hprivate : P.IsPrivate) :

A perfectly correct and perfectly private one-server scheme for n-bit databases communicates at least n bits CGKS, Section 5.1; the answer alone has at least n bits.

def Cslib.Crypto.Protocols.PIR.download (ι : Type) (β : Type := Bool) :
Scheme ι Unit Unit Unit (ι → β) β

The trivial one-server scheme: the server sends the whole database ι → β and the user reads the entry it wants.

One server needs at least n bits.

One server needs exactly n bits: a perfectly correct and perfectly private one-server scheme communicating c bits exists exactly when n ≤ c.