Documentation

CslibFrontier.Crypto.Protocols.PIR.Statistical

Statistical privacy and bounded-error recovery #

PIR.Basic states privacy and correctness as exact equalities of laws. Lower bounds for private information retrieval and locally decodable codes Goldreich, Karloff, Schulman and Trevisan, Section 7 also use the relaxations of both notions:

Main definitions #

Main results #

References #

def Cslib.Crypto.Protocols.PIR.Scheme.IsStatPrivate {ι S R Q A β : Type} (P : Scheme ι S R Q A β) (δ : ℝ) :

δ-statistical privacy: for every server, the query laws for any two indices are within statistical distance δ.

def Cslib.Crypto.Protocols.PIR.Scheme.IsStatPrivateAt {ι S R Q A β : Type} (P : Scheme ι S R Q A β) (i₀ : ι) (δ : ℝ) :

For every server, the query law for each index is within statistical distance δ of the law for the reference index i₀.

def Cslib.Crypto.Protocols.PIR.Scheme.Recovers {ι S R Q A : Type} (P : Scheme ι S R Q A) (ε : ℝ) :

Recovery with advantage ε: on every database and index, the user outputs the right bit with probability at least 1 / 2 + ε.

theorem Cslib.Crypto.Protocols.PIR.Scheme.IsStatPrivate.isStatPrivateAt {ι S R Q A β : Type} {P : Scheme ι S R Q A β} {δ : ℝ} (h : P.IsStatPrivate δ) (i₀ : ι) :
P.IsStatPrivateAt i₀ δ

δ-statistical privacy gives closeness to every reference index.

theorem Cslib.Crypto.Protocols.PIR.Scheme.IsPrivate.isStatPrivate_zero {ι S R Q A β : Type} {P : Scheme ι S R Q A β} (h : P.IsPrivate) :

Perfect privacy is 0-statistical privacy.

theorem Cslib.Crypto.Protocols.PIR.Scheme.IsCorrect.recovers {ι S R Q A : Type} {P : Scheme ι S R Q A} (h : P.IsCorrect) :
P.Recovers (1 / 2)

A perfectly correct scheme recovers with advantage 1 / 2.