From: "Thiemann, Rene" <Rene.Thiemann@uibk.ac.at>
Probabilistic while loop
by Andreas Lochbihler
This AFP entry defines a probabilistic while operator based on
sub-probability mass functions and formalises zero-one laws and variant
rules for probabilistic loop termination. As applications, we
implement probabilistic algorithms for the Bernoulli, geometric and
arbitrary uniform distributions that only use fair coin flips, and
prove them correct and terminating with probability 1.
Enjoy 3/5
Last updated: Nov 21 2024 at 12:39 UTC