Rényi Divergence for SPMFs and Monadic Computations #
This file extends the Rényi divergence from PMF (defined in
ToMathlib.Probability.ProbabilityMassFunction.RenyiDivergence) to:
SPMF.renyiDiv— on sub-probability mass functions (viatoPMF)renyiDiv— on any monad withHasEvalSPMF(viaevalDist)
This mirrors the structure of VCVio.EvalDist.TVDist, which performs the same lift for
total variation distance.
Application #
The monadic renyiDiv is used to state sampler quality bounds:
renyiDiv a (concreteSamplerZ μ σ') (idealSamplerZ μ σ') ≤ 1 + ε
where concreteSamplerZ uses FPR arithmetic and idealSamplerZ samples from the exact
discrete Gaussian. The probability preservation theorem then translates this into a
security loss factor in the Falcon EUF-CMA proof.
SPMF.renyiDiv #
Max-divergence on SPMFs.
Instances For
@[simp]
Monadic renyiDiv #
@[simp]
theorem
renyiDiv_self
{m : Type u → Type v}
[Monad m]
[HasEvalSPMF m]
{α : Type u}
(a : ℝ)
(mx : m α)
:
Rényi to Probability Bounds #
theorem
probOutput_le_of_renyiDiv
{m : Type u → Type v}
[Monad m]
[HasEvalSPMF m]
{α : Type u}
(a : ℝ)
(ha : 1 < a)
(mx my : m α)
(R : ENNReal)
(hR : renyiDiv a mx my ≤ R)
(x : α)
:
If the Rényi divergence between two computations is at most R, then for any
output x, Pr[= x | my] ≥ Pr[= x | mx]^{a/(a-1)} / R.