Private information retrieval with per-server query and answer types #
PIR.Scheme assigns a single query alphabet Q and answer alphabet A to all servers s : S,
charging |S| · (⌈log₂ |Q|⌉ + ⌈log₂ |A|⌉) bits (PIR.communication). In several constructions of
Chor, Goldreich, Kushilevitz and Sudan — notably the general
covering-code Theorem 1 of Section 3.3 (p. 9, Footnote 1), where server s emulates m_s assigned
non-codeword neighbours and replies with 1 + m_s · ℓ bits — different servers send answers of
different fixed lengths.
This module introduces PIR.IndexedScheme ι S R Q A β (with Q A : S → Type and default payload
β = Bool) and its per-server fixed-length bit count
PIR.indexedCommunication S Q A = ∑ s : S, (⌈log₂ |Q s|⌉ + ⌈log₂ |A s|⌉):
- Uniform embedding (
Scheme.toIndexed). Every uniformP : Scheme ι S R Q A βembeds intoIndexedScheme ι S R (fun _ => Q) (fun _ => A) βwith identical run and query distributions andindexedCommunication S (fun _ => Q) (fun _ => A) = communication S Q A(indexedCommunication_const). - Dependent-sum reduction to
PIR.Scheme(IndexedScheme.toSigmaScheme). Embedding per-server messages intoΣ s, Q sandΣ s, A spreservesIsCorrect,IsPrivateandIsTPrivateviaProbability.PMF.map_injective, transferring coalition-privacy characterizations and the full-coalition / single-server injectivity lower bounds (card_le_indexedCommunication_of_card_le,card_le_indexedCommunication,hasIndexedScheme_one_iff) fromPIR.CollusionandPIR.SingleServerwithout duplicating their proofs. - Transformations (
IndexedScheme.rows,IndexedScheme.comap). Matrix row repetition and index embeddings extend directly to per-server message families.
Main definitions #
Cslib.Crypto.Protocols.PIR.IndexedScheme: one-round schemes with server-indexed query and answer typesQ A : S → Type.Cslib.Crypto.Protocols.PIR.indexedCommunication: sum of per-server query and answer bit widths.Cslib.Crypto.Protocols.PIR.Scheme.toIndexed: view a uniformSchemeas anIndexedScheme.Cslib.Crypto.Protocols.PIR.HasIndexedScheme,Cslib.Crypto.Protocols.PIR.HasTPrivateIndexedScheme: existence of correct, (coalition-)private per-server schemes within a total bit budget.
Main results #
Cslib.Crypto.Protocols.PIR.indexedCommunication_const: agrees withPIR.communicationon constant message families.Cslib.Crypto.Protocols.PIR.IndexedScheme.isTPrivate_one_iff,Cslib.Crypto.Protocols.PIR.IndexedScheme.isTPrivate_iff_tuple: coalition-privacy equivalences.Cslib.Crypto.Protocols.PIR.IndexedScheme.exists_injective_answers_of_card_le,Cslib.Crypto.Protocols.PIR.IndexedScheme.card_le_indexedCommunication_of_card_le: full-coalition|S| ≤ tforces2 ^ |ι| ≤ ∏ s, |A s|and|ι| ≤ indexedCommunication S Q A.Cslib.Crypto.Protocols.PIR.hasIndexedScheme_one_iff: a single server still needs|ι|bits even with server-indexed message types.
References #
- B. Chor, O. Goldreich, E. Kushilevitz, M. Sudan, Private information retrieval, Sections 2.1, 2.2, 3.3 and 5.1; numbering of the authors' journal version of April 21, 1998
A one-round private information retrieval scheme with server-indexed query types Q : S → Type
and answer types A : S → Type, for databases x : ι → β (by default β = Bool)
CGKS, Definition 1 and Section 3.3.
The user's query generator: for the index
i, a retained state and one queryq s : Q sper servers.- answer (s : S) : (ι → β) → Q s → A s
The deterministic answer of server
s, holding databasex, to its queryq : Q s. - reconstruct : ι → R → ((s : S) → A s) → β
The user's reconstruction of
x ifrom the retained state and the servers' answers.
Total fixed-length communication cost of an IndexedScheme: the sum over all servers s : S of
the binary encoding length ⌈log₂ |Q s|⌉ + ⌈log₂ |A s|⌉ of server s's query and answer.
On constant query and answer types, indexedCommunication coincides with PIR.communication.
When server s's answers have cardinality 2 ^ (aBits s), its answer contributes aBits s
bits to indexedCommunication.
Repeating single-bit per-server answers across rows ρ multiplies each server's answer cost by
|ρ|.
Run P on database x and target index i.
The marginal query received by server s when the user requests index i.
The joint query marginal seen by a coalition T : Finset S when the user requests i.
The joint query marginal seen by an indexed tuple servers : τ → S of servers.
Perfect correctness: on every database and index, P.run x i outputs x i with probability 1.
Perfect single-server privacy: each server's query distribution is independent of i.
Perfect t-privacy: every coalition of at most t servers sees an index-independent joint
query distribution.
Dependent-sum bridge to uniform PIR.Scheme #
Full dependent-sum Scheme embedding both queries and answers of P into Σ s, Q s and
Σ s, A s, preserving run, IsCorrect, IsPrivate and IsTPrivate.
1-privacy is equivalent to single-server IsPrivate.
Finset-based t-privacy is equivalent to t-tuple query independence.
Row repetition and index embeddings #
Matrix row repetition CGKS, Section 3.4 for
IndexedScheme.
Restrict an IndexedScheme along an index embedding e : ι ↪ ι', padding outside the image
with pad.
Full-coalition and single-server lower bounds #
No zero-server IndexedScheme is correct on a nonempty index set over a nontrivial payload.
When all servers can collude (|S| ≤ t), some joint query tuple q : (s : S) → Q s makes the
combined answer map x ↦ fun s => P.answer s x (q s) injective, deduced via toSigmaScheme from
Scheme.exists_injective_answers_of_card_le.
A correct t-private Boolean IndexedScheme with |S| ≤ t satisfies
2 ^ |ι| ≤ ∏ s : S, |A s|.
Full-coalition lower bound for heterogeneous server widths: if |S| ≤ t, any perfectly
correct t-private Boolean IndexedScheme communicates at least |ι| bits in total across the
servers.
Single-server lower bound for heterogeneous schemes: with one server, any perfectly correct
and perfectly private Boolean IndexedScheme communicates at least |ι| bits.
Embedding uniform PIR.Scheme into PIR.IndexedScheme #
View a uniform P : Scheme ι S R Q A β as an IndexedScheme with constant message types.
Existence of heterogeneous schemes #
Some k-server IndexedScheme for databases ι → β (by default β = Bool) is perfectly
correct and perfectly private and communicates at most c bits in total.
Some k-server IndexedScheme for databases ι → β is perfectly correct, perfectly
t-private, and communicates at most c bits in total.
Every uniform HasScheme witness is also a HasIndexedScheme witness at the same cost.
Every uniform HasTPrivateScheme witness is also a HasTPrivateIndexedScheme witness.
One server needs n bits even with per-server message types: a perfectly correct and
perfectly private one-server IndexedScheme communicating c bits exists iff |ι| ≤ c.