Documentation

CslibFrontier.Computability.Interactive.Security.Repeat

Statistical error under independent repetition #

Independent repetitions add their all-events statistical-distance bounds. The sample space may be infinite, including encoded cryptographic transcripts. Deterministic postprocessing then uses CloseTo.map.

Main results #

theorem Cslib.Probability.CloseTo.iid {α : Type} {μ ν : PMF α} {ε : ENNReal} (h : CloseTo μ ν ε) (k : ℕ) :
CloseTo (PMF.iid μ k) (PMF.iid ν k) (↑k * ε)

k independent draws from ε-close distributions are (k * ε)-close, without finiteness assumptions on the sample space.

theorem Cslib.Probability.CloseTo.iid_replicate {α : Type} {μ : PMF α} {prog : ProbComp α} {ε : ENNReal} (h : CloseTo μ prog.eval ε) (k : ℕ) :

k independent draws from μ collected as a list are (k * ε)-close to OracleComp.replicate k prog whenever μ is ε-close to ProbComp.eval prog.

theorem Cslib.Probability.CloseTo.eval_replicate {α : Type} {prog₁ prog₂ : ProbComp α} {ε : ENNReal} (h : CloseTo prog₁.eval prog₂.eval ε) (k : ℕ) :

k independent runs of two ProbComp programs whose single-run laws are ε-close are (k * ε)-close.