EasyCrypt's distributions (theories/distributions/) #
EasyCrypt's 'a distr is a sub-probability, here SubProbability. Only what ported developments
use is here. Names are EasyCrypt's.
| EasyCrypt | here |
|---|---|
d1 \*` d2 (DProd) | dprod d1 d2` | |
d \ P (Dexcepted) | dexcepted d P |
{0,1}, dbool (DBool) | dbool |
is_lossless d, is_full d, is_funiform d | the same |
d1 \*` d2`: the product distribution, sampling both independently.
Instances For
EC's mu_bounded, as finiteness: a point has finite mass.
is_lossless d: d has total mass 1.
Equations
- GaudisCrypt.EC.is_lossless d = (↑d Set.univ = 1)
Instances For
Losslessness as an expectation: the expected value of 1 is 1.
lemma dprod_ll: the product of lossless distributions is lossless.
lemma duniform_ll for a finite nonempty type: the uniform distribution is lossless.
is_funiform d: all values have the same probability.
Instances For
lemma duniform_funi for a finite nonempty type: the uniform distribution is uniform.
lemma duniform_fu for a finite nonempty type: every value has positive probability.
supp_dprod, as fullness: a product of full distributions is full.
d \ P: d conditioned on not satisfying P. EasyCrypt normalizes the restriction of d to
¬ P. Here that is done for lossless d with a ¬ P outcome of positive probability; otherwise
the result is the null distribution, as in EasyCrypt when no such outcome exists.
Equations
- One or more equations did not get rendered due to their size.
Instances For
dbool ({0,1}): a fair coin.