Documentation

CslibFrontier.Crypto.Protocols.PIR.SelectiveFailure

Selective failure attacks and immunity in private information retrieval #

Standard multi-server private information retrieval (PIR.Scheme) guarantees passive query privacy (Scheme.IsPrivate, Scheme.IsTPrivate): no server or unauthorized coalition learns the queried index i from the queries it receives. When a malicious server s₀ : S actively deviates from P.answer s₀ x by applying a modified answer strategy malAns : Q → A (Scheme.runWithServer), it may induce a selective failure attack (Cslib.Crypto.Protocols.SelectiveFailure): the user's reconstructed output differs from the true database entry x i with a probability that depends on i, leaking i through whether the user experiences a reconstruction failure.

Instantiating SelectiveFailure.Model on PIR.Scheme (Scheme.selectiveFailureModel), this module classifies single-server query-only selective failure immunity and vulnerability across the PIR constructions of Chor, Goldreich, Kushilevitz and Sudan under the explicit non-degeneracy hypotheses required for each family (a singleton index domain cannot yield positive advantage, and a RadiusOneCover with no emulated neighbours reduces to PIR.cube):

  1. Immunity of Unbalanced 1-Bit XOR-Sum PIR (Scheme.HasXorReconstruct):

  2. Vulnerability of Matrix-Balanced Scheme.rows PIR (CGKS Section 3.4, Corollary 3) and Block-Lifted PIR (Scheme.toBlock, Proposition 4):

  3. Vulnerability of Covering-Code Subcube Emulation PIR (RadiusOneCover.scheme, CGKS Section 3.3, Theorem 1 & Corollary 2):

  4. Vulnerability of Polynomial Shamir t-Private PIR (PIR.shamir and PIR.shamirCube, from PIR.Shamir, motivated by [CGKS98] Sections 1.1 and 2.2):

Main definitions #

Main results #

References #

1. Single-server active deviation model for PIR.Scheme #

def Cslib.Crypto.Protocols.PIR.Scheme.runWithServer {ι S R Q A β : Type} [DecidableEq S] (P : Scheme ι S R Q A β) (x : ι → β) (s₀ : S) (malAns : Q → A) (i : ι) :

Execution of the PIR scheme P on database x and index i when server s₀ deviates from P.answer s₀ x by answering with malAns : Q → A while all other servers s ≠ s₀ answer honestly.

theorem Cslib.Crypto.Protocols.PIR.Scheme.eval_runWithServer {ι S R Q A β : Type} [DecidableEq S] (P : Scheme ι S R Q A β) (x : ι → β) (s₀ : S) (malAns : Q → A) (i : ι) :
(P.runWithServer x s₀ malAns i).eval = PMF.map (fun (rq : R × (S → Q)) => P.reconstruct i rq.1 (Function.update (fun (s : S) => P.answer s x (rq.2 s)) s₀ (malAns (rq.2 s₀)))) (P.query i).eval
@[simp]
theorem Cslib.Crypto.Protocols.PIR.Scheme.eval_runWithServer_answer {ι S R Q A β : Type} [DecidableEq S] (P : Scheme ι S R Q A β) (x : ι → β) (s₀ : S) (i : ι) :
(P.runWithServer x s₀ (P.answer s₀ x) i).eval = (P.run x i).eval

When server s₀ uses its honest answer function P.answer s₀ x, runWithServer has the same output distribution as the honest execution P.run x i.

def Cslib.Crypto.Protocols.PIR.Scheme.selectiveFailureModel {ι S R Q A β : Type} [DecidableEq S] (P : Scheme ι S R Q A β) (x : ι → β) :
SelectiveFailure.Model ι (S × (Q → A)) β

Protocol-agnostic SelectiveFailure.Model instantiated for single-server active deviations in P on a fixed database x : ι → β:

  • the secret is the queried index i : ι;
  • an active deviation (s₀, malAns) : S × (Q → A) specifies the deviating server s₀ and its modified answer function malAns;
  • the ideal output on i is x i.
noncomputable def Cslib.Crypto.Protocols.PIR.Scheme.failureGame {ι S R Q A β : Type} [DecidableEq S] (P : Scheme ι S R Q A β) [DecidableEq β] (x : ι → β) (s₀ : S) (malAns : Q → A) (i : ι) :

The Boolean selective-failure experiment (Game) when server s₀ answers with malAns on database x and user query i.

noncomputable def Cslib.Crypto.Protocols.PIR.Scheme.failureProb {ι S R Q A β : Type} [DecidableEq S] (P : Scheme ι S R Q A β) [DecidableEq β] (x : ι → β) (s₀ : S) (malAns : Q → A) (i : ι) :

The probability (ℝ≥0) that the user reconstructs an output out ≠ x i when server s₀ answers with malAns.

noncomputable def Cslib.Crypto.Protocols.PIR.Scheme.selectiveFailureAdvantage {ι S R Q A β : Type} [DecidableEq S] (P : Scheme ι S R Q A β) [DecidableEq β] (x : ι → β) (s₀ : S) (malAns : Q → A) (i₀ i₁ : ι) :

The selective-failure distinguishing advantage (ℝ≥0) between indices i₀ and i₁ on database x when server s₀ answers with malAns.

A PIR scheme P is selective-failure free if for every database x : ι → β, every server s₀ : S, and every modified answer function malAns : Q → A, the selective-failure distinguishing advantage between any two indices i₀, i₁ : ι is zero.

def Cslib.Crypto.Protocols.PIR.Scheme.IsDeterministicAttack {ι S R Q A β : Type} [DecidableEq S] (P : Scheme ι S R Q A β) [DecidableEq β] (x : ι → β) (s₀ : S) (malAns : Q → A) (pred : ι → Bool) :

Server s₀'s answer strategy malAns is a deterministic selective failure attack on database x for predicate pred : ι → Bool if the user suffers a reconstruction failure (out ≠ x i) on query i with probability 1 when pred i = true and 0 when pred i = false.

theorem Cslib.Crypto.Protocols.PIR.Scheme.isSelectiveFailureFree_iff {ι S R Q A β : Type} [DecidableEq S] (P : Scheme ι S R Q A β) [DecidableEq β] :
P.IsSelectiveFailureFree ↔ ∀ (x : ι → β) (s₀ : S) (malAns : Q → A) (i₀ i₁ : ι), P.failureGame x s₀ malAns i₀ = P.failureGame x s₀ malAns i₁
theorem Cslib.Crypto.Protocols.PIR.Scheme.IsDeterministicAttack.selectiveFailureAdvantage_eq_one {ι S R Q A β : Type} [DecidableEq S] {P : Scheme ι S R Q A β} [DecidableEq β] {x : ι → β} {s₀ : S} {malAns : Q → A} {pred : ι → Bool} (h : P.IsDeterministicAttack x s₀ malAns pred) {i₀ i₁ : ι} (hne : pred i₀ ≠ pred i₁) :
P.selectiveFailureAdvantage x s₀ malAns i₀ i₁ = 1
theorem Cslib.Crypto.Protocols.PIR.Scheme.IsDeterministicAttack.not_isSelectiveFailureFree {ι S R Q A β : Type} [DecidableEq S] {P : Scheme ι S R Q A β} [DecidableEq β] {x : ι → β} {s₀ : S} {malAns : Q → A} {pred : ι → Bool} (h : P.IsDeterministicAttack x s₀ malAns pred) {i₀ i₁ : ι} (hne : pred i₀ ≠ pred i₁) :

2. Selective failure immunity of unbalanced 1-bit XOR-sum PIR #

theorem Cslib.Crypto.Protocols.PIR.Scheme.failureGame_eq_map_serverQuery {ι S R Q : Type} [Fintype S] [DecidableEq S] {P : Scheme ι S R Q Bool} (hcorrect : P.IsCorrect) (hxor : P.HasXorReconstruct) (x : ι → Bool) (s₀ : S) (malAns : Q → Bool) (i : ι) :
P.failureGame x s₀ malAns i = PMF.map (fun (q₀ : Q) => malAns q₀ + P.answer Bool s₀ x q₀) (P.serverQuery s₀ i).eval

Under XOR-sum reconstruction (HasXorReconstruct) and IsCorrect, the failure game when server s₀ answers with malAns factors through s₀'s marginal query distribution P.serverQuery s₀ i via the local answer-flip indicator fun q₀ => malAns q₀ + P.answer s₀ x q₀.

Immunity of 1-bit XOR-sum PIR to selective failure attacks. Every perfectly correct, 1-private one-bit-answer scheme with XOR-sum reconstruction (HasXorReconstruct) is selective-failure free: a single deviating server can flip the user's output bit only with a probability determined by its own query marginal, which is independent of i by IsPrivate.

Proposition 5's answer-compressing transformation Scheme.sumChunks produces a selective-failure-free scheme from any correct, private XOR-sum scheme.

3. Selective failure attacks on Scheme.rows and Scheme.toBlock #

def Cslib.Crypto.Protocols.PIR.Scheme.rowsFlipAttack {ι S R Q ρ : Type} [DecidableEq ρ] (P : Scheme ι S R Q Bool) (x : ρ × ι → Bool) (s₀ : S) (j₀ : ρ) (q : Q) :
ρ → Bool

Single-row bit-flip attack on P.rows ρ (CGKS, Section 3.4): server s₀ computes its honest reply vector (P.rows ρ).answer s₀ x q and flips the single entry at row j₀ : ρ.

theorem Cslib.Crypto.Protocols.PIR.Scheme.isDeterministicAttack_rows {ι S R Q ρ : Type} [Fintype S] [DecidableEq S] {P : Scheme ι S R Q Bool} [DecidableEq ρ] (hcorrect : P.IsCorrect) (hxor : P.HasXorReconstruct) (x : ρ × ι → Bool) (s₀ : S) (j₀ : ρ) :
(rows ρ P).IsDeterministicAttack x s₀ (P.rowsFlipAttack x s₀ j₀) fun (ji : ρ × ι) => decide (ji.1 = j₀)

Deterministic selective failure on P.rows ρ. If P is a correct one-bit scheme with XOR-sum reconstruction (HasXorReconstruct), then for every database x : ρ × ι → Bool, server s₀ flipping row j₀ via rowsFlipAttack P x s₀ j₀ causes the user's reconstruction of x ji to fail with probability 1 when ji.1 = j₀ and 0 when ji.1 ≠ j₀.

theorem Cslib.Crypto.Protocols.PIR.Scheme.selectiveFailureAdvantage_rows_eq_one {ι S R Q ρ : Type} [Fintype S] [DecidableEq S] {P : Scheme ι S R Q Bool} [DecidableEq ρ] (hcorrect : P.IsCorrect) (hxor : P.HasXorReconstruct) (x : ρ × ι → Bool) (s₀ : S) {j₀ j₁ : ρ} (hj : j₀ ≠ j₁) (i₀ i₁ : ι) :
(rows ρ P).selectiveFailureAdvantage x s₀ (P.rowsFlipAttack x s₀ j₀) (j₀, i₀) (j₁, i₁) = 1

Flipping row j₀ in P.rows ρ distinguishes any query (j₀, i₀) in row j₀ from any query (j₁, i₁) in row j₁ ≠ j₀ with selective-failure advantage 1.

Matrix-balanced Scheme.rows PIR is not selective-failure free whenever there is at least one server, one column index, and two distinct rows ([Nontrivial ρ]).

def Cslib.Crypto.Protocols.PIR.Scheme.toBlockBitFlipAttack {ι S R Q κ : Type} [DecidableEq κ] (P : Scheme ι S R Q Bool) (x : ι × κ → Bool) (s₀ : S) (b₀ : κ) (q : Q) :
κ → Bool

Single-coordinate bit-flip attack on (P.toBlock κ).toBitScheme (Proposition 4, CGKS, Section 4.1): server s₀ flips coordinate b₀ : κ of its block reply.

theorem Cslib.Crypto.Protocols.PIR.Scheme.isDeterministicAttack_toBlock_toBitScheme {ι S R Q κ : Type} [Fintype S] [DecidableEq S] {P : Scheme ι S R Q Bool} [DecidableEq κ] (hcorrect : P.IsCorrect) (hxor : P.HasXorReconstruct) (x : ι × κ → Bool) (s₀ : S) (b₀ : κ) :
(toBlock κ P).toBitScheme.IsDeterministicAttack x s₀ (P.toBlockBitFlipAttack x s₀ b₀) fun (ib : ι × κ) => decide (ib.2 = b₀)

Deterministic selective failure on (P.toBlock κ).toBitScheme. Flipping block coordinate b₀ : κ at server s₀ causes the user's bit retrieval on ib : ι × κ to fail iff ib.2 = b₀.

Block-lifted bit retrieval (P.toBlock κ).toBitScheme is not selective-failure free whenever S and ι are nonempty and the block coordinate type κ has at least two coordinates.

Concrete corollaries for PIR.twoServer, PIR.evenTwoServer, and PIR.cube #

The basic 2-server PIR scheme (PIR.twoServer) is selective-failure free.

The even-set 2-server PIR scheme (PIR.evenTwoServer) is selective-failure free.

The 2 ^ d-server subcube PIR scheme (PIR.cube) is selective-failure free.

Matrix-balanced 2-server PIR ((twoServer ι).rows ρ) is vulnerable to selective failure attacks whenever ι is nonempty and ρ has at least two rows.

Matrix-balanced 2 ^ d-server subcube PIR ((cube D ι).rows ρ, CGKS Section 3.4, Corollary 3) is vulnerable to selective failure attacks whenever ι is nonempty and ρ has at least two rows.

4. Selective failure attacks on covering-code PIR (RadiusOneCover.scheme) #

noncomputable def Cslib.Crypto.Protocols.PIR.RadiusOneCover.coverFlipAttack {S D M ι : Type} [Fintype D] [DecidableEq D] [DecidableEq M] [Fintype ι] [DecidableEq ι] (K : RadiusOneCover S D M) (x : (D → ι) → Bool) (s₀ : S) (r₀ : M) (k₀ : ι) (q : D → ι → Bool) :
Bool × (M → ι → Bool)

Single-entry emulated-neighbour bit-flip attack on K.scheme ι (CGKS, Section 3.3): server s₀ computes its honest answer (b, f) = (K.scheme ι).answer s₀ x q and flips entry (r₀, k₀) of its emulated neighbour answer table f : M → ι → Bool.

theorem Cslib.Crypto.Protocols.PIR.RadiusOneCover.isDeterministicAttack_scheme {S D M ι : Type} [DecidableEq S] [Fintype D] [DecidableEq D] [DecidableEq M] [Fintype ι] [DecidableEq ι] (K : RadiusOneCover S D M) (x : (D → ι) → Bool) {w₀ : D → Bool} {s₀ : S} {r₀ : M} (hw₀ : K.cover w₀ = (s₀, some r₀)) (k₀ : ι) :
(K.scheme ι).IsDeterministicAttack x s₀ (K.coverFlipAttack x s₀ r₀ k₀) fun (i : D → ι) => decide (i (K.dir s₀ r₀) = k₀)

Deterministic selective failure on RadiusOneCover.scheme (CGKS Section 3.3, Theorem 1). Whenever server s₀ emulates cube vertex w₀ along direction r₀ (K.cover w₀ = (s₀, some r₀)), flipping entry (r₀, k₀) via K.coverFlipAttack x s₀ r₀ k₀ causes a reconstruction failure on query i : D → ι with probability 1 if i (K.dir s₀ r₀) = k₀ and 0 if i (K.dir s₀ r₀) ≠ k₀, on every database x.

theorem Cslib.Crypto.Protocols.PIR.RadiusOneCover.selectiveFailureAdvantage_scheme_eq_one {S D M ι : Type} [DecidableEq S] [Fintype D] [DecidableEq D] [DecidableEq M] [Fintype ι] [DecidableEq ι] (K : RadiusOneCover S D M) (x : (D → ι) → Bool) {w₀ : D → Bool} {s₀ : S} {r₀ : M} (hw₀ : K.cover w₀ = (s₀, some r₀)) (k₀ : ι) {i₀ i₁ : D → ι} (hi₀ : i₀ (K.dir s₀ r₀) = k₀) (hi₁ : i₁ (K.dir s₀ r₀) ≠ k₀) :
(K.scheme ι).selectiveFailureAdvantage x s₀ (K.coverFlipAttack x s₀ r₀ k₀) i₀ i₁ = 1

Flipping entry (r₀, k₀) in K.scheme ι distinguishes any cube query i₀ with i₀ (K.dir s₀ r₀) = k₀ from any i₁ with i₁ (K.dir s₀ r₀) ≠ k₀ with advantage 1.

theorem Cslib.Crypto.Protocols.PIR.RadiusOneCover.not_isSelectiveFailureFree_scheme {S D M ι : Type} [DecidableEq S] [Fintype D] [DecidableEq D] [Fintype ι] [DecidableEq ι] (K : RadiusOneCover S D M) [Nontrivial ι] {w₀ : D → Bool} {s₀ : S} {r₀ : M} (hw₀ : K.cover w₀ = (s₀, some r₀)) :

Covering-code PIR is not selective-failure free whenever [Nontrivial ι] and at least one cube vertex w₀ is covered via an emulated neighbour direction K.cover w₀ = (s₀, some r₀).

CGKS Corollary 2's 2-server O(n ^ (1 / 3)) covering-code scheme (RadiusOneCover.cubeThree.scheme) is vulnerable to selective failure attacks.

CGKS Corollary 2's 4-server O(n ^ (1 / 4)) covering-code scheme (RadiusOneCover.cubeFour.scheme) is vulnerable to selective failure attacks.

5. Selective failure attacks on polynomial Shamir t-private PIR #

A field-valued PIR scheme P : Scheme ι S R Q F has Lagrange indicator reconstruction with respect to params : Shamir.Params F S when the user reconstructs by testing Shamir.Polynomial.reconstruct params.point ans = 1 and honest server answers interpolate at 0 to if x i then 1 else 0. Both PIR.shamir and PIR.shamirCube satisfy this interface.

noncomputable def Cslib.Crypto.Protocols.PIR.Scheme.lagrangeShiftAttack {F S ι R Q : Type} [Field F] [Fintype S] (P : Scheme ι S R Q F) (params : SecretSharing.Shamir.Params F S) (x : ι → Bool) (s₀ : S) (Δ : F) (q : Q) :
F

Additive constant-shift attack on a Lagrange-reconstructed PIR scheme: server s₀ adds Δ * (lagrangeWeightAtZero params.point s₀)⁻¹ to its honest answer, shifting the interpolated constant term at 0 by Δ : F.

theorem Cslib.Crypto.Protocols.PIR.Scheme.HasLagrangeReconstruct.reconstruct_update_lagrangeShiftAttack {F S ι R Q : Type} [Field F] [Fintype S] [DecidableEq S] {params : SecretSharing.Shamir.Params F S} {P : Scheme ι S R Q F} (hP : HasLagrangeReconstruct params P) (x : ι → Bool) (s₀ : S) (Δ : F) (i : ι) {r : R} {q : S → Q} (hrq : (r, q) ∈ (P.query Bool i).eval.support) :
SecretSharing.Shamir.Polynomial.reconstruct params.point (Function.update (fun (s : S) => P.answer Bool s x (q s)) s₀ (P.lagrangeShiftAttack params x s₀ Δ (q s₀))) = (if x i = true then 1 else 0) + Δ

Under lagrangeShiftAttack P params x s₀ Δ, Lagrange interpolation at 0 evaluates to (if x i then 1 else 0) + Δ on every supported query draw.

theorem Cslib.Crypto.Protocols.PIR.Scheme.HasLagrangeReconstruct.isDeterministicAttack {F S ι R Q : Type} [Field F] [Fintype S] [DecidableEq S] {params : SecretSharing.Shamir.Params F S} {P : Scheme ι S R Q F} (hP : HasLagrangeReconstruct params P) (x : ι → Bool) (s₀ : S) {Δ : F} (hΔ0 : Δ ≠ 0) (hΔ1 : Δ ≠ 1) :
P.IsDeterministicAttack x s₀ (P.lagrangeShiftAttack params x s₀ Δ) x

Deterministic selective failure on Lagrange-reconstructed PIR. For any field offset Δ : F with Δ ≠ 0 and Δ ≠ 1, P.lagrangeShiftAttack params x s₀ Δ shifts 1 to 1 + Δ ≠ 1 and 0 to Δ ≠ 1, so the user always outputs false and suffers a reconstruction failure if and only if x i = true.

theorem Cslib.Crypto.Protocols.PIR.Scheme.HasLagrangeReconstruct.selectiveFailureAdvantage_eq_one {F S ι R Q : Type} [Field F] [Fintype S] [DecidableEq S] {params : SecretSharing.Shamir.Params F S} {P : Scheme ι S R Q F} (hP : HasLagrangeReconstruct params P) (x : ι → Bool) (s₀ : S) {Δ : F} (hΔ0 : Δ ≠ 0) (hΔ1 : Δ ≠ 1) {i₀ i₁ : ι} (hx : x i₀ ≠ x i₁) :
P.selectiveFailureAdvantage x s₀ (P.lagrangeShiftAttack params x s₀ Δ) i₀ i₁ = 1

Under lagrangeShiftAttack with Δ ≠ 0 and Δ ≠ 1, a single server s₀ distinguishes any two indices i₀, i₁ with x i₀ ≠ x i₁ with selective-failure advantage 1.

Every t-private (t ≥ 1) Lagrange-reconstructed PIR scheme is vulnerable to single-server selective failure attacks on any nontrivial index type [Nontrivial ι].

PIR.shamirCube satisfies Scheme.HasLagrangeReconstruct whenever |D| * params.threshold < |S|.

theorem Cslib.Crypto.Protocols.PIR.isDeterministicAttack_shamir {F S ι : Type} [Field F] [Fintype S] [DecidableEq S] [Fintype F] [Fintype ι] [DecidableEq ι] (params : SecretSharing.Shamir.Params F S) (x : ι → Bool) (s₀ : S) {Δ : F} (hΔ0 : Δ ≠ 0) (hΔ1 : Δ ≠ 1) :
(shamir ι params).IsDeterministicAttack x s₀ ((shamir ι params).lagrangeShiftAttack params x s₀ Δ) x

Deterministic selective failure on linear Shamir t-private PIR (PIR.shamir). For any Δ : F with Δ ≠ 0 and Δ ≠ 1, server s₀'s additive shift attack causes a reconstruction failure on query i iff x i = true.

theorem Cslib.Crypto.Protocols.PIR.selectiveFailureAdvantage_shamir_eq_one {F S ι : Type} [Field F] [Fintype S] [DecidableEq S] [Fintype F] [Fintype ι] [DecidableEq ι] (params : SecretSharing.Shamir.Params F S) (x : ι → Bool) (s₀ : S) {Δ : F} (hΔ0 : Δ ≠ 0) (hΔ1 : Δ ≠ 1) {i₀ i₁ : ι} (hx : x i₀ ≠ x i₁) :
(shamir ι params).selectiveFailureAdvantage x s₀ ((shamir ι params).lagrangeShiftAttack params x s₀ Δ) i₀ i₁ = 1

Single-server selective-failure advantage 1 on PIR.shamir between any i₀, i₁ with x i₀ ≠ x i₁.

Linear Shamir t-private PIR (PIR.shamir) is not selective-failure free whenever 0 < params.threshold (t ≥ 1) and [Nontrivial ι], even though it is t-private against passive server coalitions (isTPrivate_shamir).

theorem Cslib.Crypto.Protocols.PIR.isDeterministicAttack_shamirCube {F S ι : Type} [Field F] [Fintype S] [DecidableEq S] [Fintype F] {D : Type} [Fintype D] [DecidableEq D] [Fintype ι] [DecidableEq ι] (params : SecretSharing.Shamir.Params F S) (hdeg : Fintype.card D * params.threshold < Fintype.card S) (x : (D → ι) → Bool) (s₀ : S) {Δ : F} (hΔ0 : Δ ≠ 0) (hΔ1 : Δ ≠ 1) :
(shamirCube D ι params).IsDeterministicAttack x s₀ ((shamirCube D ι params).lagrangeShiftAttack params x s₀ Δ) x

Deterministic selective failure on degree-d polynomial t-private PIR (PIR.shamirCube). When |D| * params.threshold < |S| and Δ ≠ 0, Δ ≠ 1, server s₀'s additive shift attack causes a reconstruction failure on query i iff x i = true.

theorem Cslib.Crypto.Protocols.PIR.selectiveFailureAdvantage_shamirCube_eq_one {F S ι : Type} [Field F] [Fintype S] [DecidableEq S] [Fintype F] {D : Type} [Fintype D] [DecidableEq D] [Fintype ι] [DecidableEq ι] (params : SecretSharing.Shamir.Params F S) (hdeg : Fintype.card D * params.threshold < Fintype.card S) (x : (D → ι) → Bool) (s₀ : S) {Δ : F} (hΔ0 : Δ ≠ 0) (hΔ1 : Δ ≠ 1) {i₀ i₁ : D → ι} (hx : x i₀ ≠ x i₁) :
(shamirCube D ι params).selectiveFailureAdvantage x s₀ ((shamirCube D ι params).lagrangeShiftAttack params x s₀ Δ) i₀ i₁ = 1

Single-server selective-failure advantage 1 on PIR.shamirCube between any i₀, i₁ with x i₀ ≠ x i₁.

Degree-d polynomial t-private PIR (PIR.shamirCube) is not selective-failure free whenever |D| * params.threshold < |S|, 0 < params.threshold (t ≥ 1), [Nonempty D], and [Nontrivial ι], even though it is t-private against passive coalitions (isTPrivate_shamirCube).