Difference between revisions of "Event-B Qualitative Probability User Guide"

From Event-B
Jump to navigationJump to search
imported>Son
imported>Son
Line 54: Line 54:
  
 
=== Proof Obligations ===
 
=== Proof Obligations ===
The model should have proof obligations
+
The model should have 3 proof obligations including '''resolve/PRV''' which can be interactively discharge using '''P1'''
* '''resolve/PRV'''
 

Revision as of 13:28, 23 November 2011

User:Son at ETH Zurich is in charge of the plug-in.

Introduction

Event-B Qualitative Probability plug-in provides supports for reasoning about termination with probability 1 (almost-certain termination).


Installing and Updating

The plug-in is available through the main Rodin Update Site under Modelling Extension category.

News

  • 23.11.2011: Version 0.2.1 released for Rodin 2.3.*

Technical References

  • S. Hallerstede, T.S. Hoang. Qualitative Probabilistic Modelling in Event-B. In IFM 2007: Integrated Formal Methods, 6th International Conference Proceedings, Oxford, UK, July 2-5, 2007, volume 4591 of LNCS © Springer-Verlag. Springer website
    • Initial idea about probabilistic convergence event.
    • New modelling elements: Variant bound
    • New proof obligations: PRV, BND, FINACT.
    • Example: Resolve contention in IEEE 1395 (Firewire protocol).
  • E. Yilmaz, T.S. Hoang. Development of Rabin’s Choice Coordination Algorithm in Event-B. In Automated Verification of Critical Systems 2010, volume 35 of Electronic Communications of the EASST © EASST. EASST website
    • Probablistic convergence event with refinement
    • Constraints on how (not-) to refine probabilistic events.
    • Example: Rabin's Choice Coordination Algorithm.

Usage

We illustrate the usage of the plug-in using the example of contention resolving (part of IEEE 1394 Firewire protocol).

Description

Two processes in contention use a probabilistic protocol to resolve the problem. In each step, each process probabilisitcally choose to communicate in either short or long delay. The contention is resolved when the processes choose different delays.

Nondetermistic specification

  • Boolean variables x and y represent the choice for each process: TRUE for short delay FALSE for long delay.
  • Resolving contention is model as an event of the model with guard x = y (i.e. keep trying when the choices are identical).

Contention-nondet.jpg


Probabilistic specification

  • To set event resolve is probabilistic convergence:
  1. Go to the Edit page of the standard Rodin Editor.
  2. Open the EVENTS section
  3. Set convergence attribute of resolve from ordinary to convergent.
  4. Set probabilistic attribute of resolve from standard to probabilistic.

Contention-prob.jpg

  • Set \Bool \setminus \{x, y\} as the variant of the model

Contention-variant.jpg

  • Set \Bool as the bound of the model

Contention-bound.jpg

  • Save the model

Proof Obligations

The model should have 3 proof obligations including resolve/PRV which can be interactively discharge using P1