EasyCrypt's bounds on mu (theories/distributions/Distr.ec), on expectations #
Our phoare bounds are expectations d.expected f of ENNReal-valued functions; EC's mu d p
is the expectation of an indicator. The facts its proofs use:
| EasyCrypt | here |
|---|---|
mu_le | mu_le (expectations), indicatorE_le_of_imp (indicators) |
mu_mem_le_mu1 (a uniform d) | FMap.mu_rng_le, at the values of a map |
theorem
GaudisCrypt.EC.mu_le
{γ : Type u_1}
{μ : SubProbability γ}
{f g : γ → ENNReal}
(h : ∀ (a : γ), f a ≤ g a)
:
EC's mu_le on expectations: a pointwise smaller function has a smaller expectation.
mu_le on indicators: an implication of events.
theorem
GaudisCrypt.EC.FMap.mu_rng_le
{α β : Type}
[DecidableEq α]
[Inhabited β]
{d : SubProbability β}
(hfu : is_funiform d)
(m : FMap α β)
:
mu_mem_le_mu1 at the values of a map: a sample of a uniform d is a value of m with
probability at most card (fdom m) * mu1 d default.