Documentation

CslibFrontier.Crypto.Primitives.Garbling.SizeLowerBound

Entropy lower bounds on the size of garbled material #

Garbled material must encode whatever the evaluator can recover from it but a simulator's view hides. This module proves that one-world entropy argument for an observation C, a hidden value X : α (for example the output-wire label selected by the input labels in C) and garbled material G of m bits, random variables on a common probability space as in Fano's inequality. Suppose that, in a simulated law of (C, X) at statistical distance at most ε from the real law of (C, X), X keeps t bits of entropy given C. Let δ be the error probability in the real law of a deterministic decoder recovering X from (C, G). Then t - ε log₂ |α| - (1 + ε) h₂(ε / (1 + ε)) - h₂(δ) - δ log₂ (|α| - 1) ≤ m.

The argument combines three steps. Continuity of conditional entropy moves the bound t to the real view (Cslib.Probability.PMF.sub_le_conditionalEntropy_of_dist_le). The chain rule gives H(X | C) ≤ H(G | C) + H(X | C, G), and Fano's inequality bounds the last term (Cslib.Probability.PMF.conditionalEntropy_map_le_binEntropy_add_mul_logb). Finally, m bits carry at most m bits of entropy.

Januzelli, Rosulek and Roy prove information-theoretic lower bounds on the size of garbled gates [JRR25]. Their tight 1.5λ, 2λ and λ bounds for classes of AND and XOR gates combine entropy terms from several real and simulated worlds through gate-specific Shannon-type inequalities. Those inequalities, and the single-gate random-oracle model they are stated in, are not formalized here; this module provides only the generic one-world argument.

Main results #

References #

theorem Cslib.Crypto.Garbling.sub_le_bitLength_of_recover {C : Type u_1} {α : Type u_2} {Ω : Type u_3} [Fintype C] [Fintype α] {m : ℕ} (real : PMF Ω) (c : Ω → C) (x : Ω → α) (g : Ω → BitString m) (ideal : PMF (C × α)) (decode : C × BitString m → α) {ε t : ℝ} (hdist : dist (PMF.map (fun (ω : Ω) => (c ω, x ω)) real) ideal ≤ ε) (ht : t ≤ Probability.PMF.conditionalEntropy ideal) :
t - ε * Real.logb 2 ↑(Fintype.card α) - Probability.PMF.condEntropyModulus ε - (Real.binEntropy (real.toOuterMeasure {ω : Ω | decode (c ω, g ω) ≠ x ω}).toReal / Real.log 2 + (real.toOuterMeasure {ω : Ω | decode (c ω, g ω) ≠ x ω}).toReal * Real.logb 2 (↑(Fintype.card α) - 1)) ≤ ↑m

Size lower bound for garbled material. Let c : Ω → C be an observation, x : Ω → α a hidden value and g : Ω → BitString m garbled material of m bits, random variables on the real probability space real. Let ideal be a simulated law of (c, x) at statistical distance at most ε from the real law of (c, x), in which the hidden value keeps at least t bits of entropy given the observation. With δ the probability under real that decode (c, g) ≠ x, we have t - ε log₂ |α| - (1 + ε) h₂(ε / (1 + ε)) - h₂(δ) - δ log₂ (|α| - 1) ≤ m.