← Tools & Demos

Formal Semantics & Theorem Proving · Recorded demonstration

Reasoning about probabilistic programs in Isabelle/HOL

From probabilistic notation to mechanised reasoning.

Originally published

The problem

Probabilistic programs combine state changes with uncertainty. Precise semantics and mechanised reasoning help make their assumptions and intended behaviour explicit.

The approach

The walkthrough introduces the probabilistic programming language and Isabelle/UTP implementation covered in the demonstration, including Iverson brackets, distribution notation, algebraic laws and fixed-point theorems.

See the research

Watch the demonstration

Demonstration of proving probabilistic programs using theorem proving

Original recording from the probabilistic-relations showcase, first published on 4 February 2023.

Captions and transcript are unavailable. The topics are summarised below.

Download the original recording (MP4) ↓

What this demonstrates

  1. A language for probabilistic behaviour

    The walkthrough introduces probabilistic programming notation and its semantic implementation in Isabelle/UTP, built on Isabelle/HOL.

  2. Definitions and algebraic foundations

    The walkthrough covers Iverson brackets, distribution notation, algebraic laws and fixed-point theorems. The screenshot shows the theory inside the Isabelle editor.

  3. Three worked examples

    The examples cover a coin flip, the Monty Hall problem with learning facts, and robot localisation.

This is a historical walkthrough, originally published in February 2023. It does not demonstrate every result in the later 2024 ProbURel paper, and it does not run Isabelle in this website. Reproducing the proofs requires the corresponding theory versions and Isabelle/UTP environment.

Explore the source material

Worked examples

How this relates to ProbURel

The later journal paper, Probabilistic unifying relations for modelling epistemic and aleatoric uncertainty: Semantics and automated reasoning with theorem proving, is co-authored by K. Ye, J. Woodcock and S. Foster and published in Theoretical Computer Science in 2024.

The February 2023 walkthrough covers three worked examples. The later journal paper develops a broader set of examples and results.

Theory and examples

The probabilistic-relations repository contains installation instructions and worked examples. Reproducing the proofs requires the corresponding Isabelle/UTP environment and theory versions.

Related publications

Probabilistic unifying relations for modelling epistemic and aleatoric uncertainty: Semantics and automated reasoning with theorem proving
K. Ye, J. Woodcock, and S. Foster · 2024

Research resources & references