A Formal Approach to Probabilistic Termination

  • Authors:
  • Joe Hurd

  • Affiliations:
  • -

  • Venue:
  • TPHOLs '02 Proceedings of the 15th International Conference on Theorem Proving in Higher Order Logics
  • Year:
  • 2002

Quantified Score

Hi-index 0.01

Visualization

Abstract

We present a probabilistic version of the while loop, in the context of our mechanised framework for verifying probabilistic programs. The while loop preserves useful program properties of measurability and independence, provided a certain condition is met. This condition is naturally interpreted as "from every starting state, the while loop will terminate with probability 1", and we compare it to other probabilistic termination conditions in the literature. For illustration, we verify in HOL two example probabilistic algorithms that necessarily rely on probabilistic termination: an algorithm to sample the Bernoulli(p) distribution using coin-flips; and the symmetric simple random walk.