Abstract
The introduction of probabilistic behaviour into the B-method is a recent development. In addition to allowing probabilistic behaviour to be modelled, the relationship between expected values of the machine state can be expressed and verified. This paper explores the application of probabilistic B to a simple case study: tracking the volume of liquid held in a tank by measuring the flow of liquid into it. The flow can change as time progresses, and sensors are used to measure the flow with some degree of accuracy and reliability, modelled as non-deterministic and probabilistic behaviour respectively. At the specification level, the analysis is concerned with the expectation clause in the probabilistic B machine and its consistency with machine operations. At the refinement level, refinement and equivalence laws on probabilistic GSL are used to establish that a particular design of sensors delivers the required level of reliability.
Similar content being viewed by others
References
Abrial J-R (1996) The B-book: assigning programs to meanings. Cambridge University Press, Cambridge
Abrial J-R (1996) Extending B without changing it (for developing distributed systems). In: 1st Conference on the B-Method
Abrial. \({\rm b}^{\sharp}\) (2003) Towards a synthesis between Z and B. In: ZB2003: 3rd International conference of Z and B users, number 2651 in LNCS. Springer, Berlin Heidelberg New York
Dijkstra EW (1976) A discipline of programming. Prentice-Hall, Englewood Cliffs
Draper J, Treharne H (1997) The refinement of embedded software with the B-method. In: Northern formal methods workshop. Springer, Berlin Heidelberg New York
Hoang TS, Jin Z, Robinson K, McIver A, Morgan C (2003) Probabilistic invariants for probabilistic machines. In: ZB2003: 3rd International conference of B and Z users, number 2651 in LNCS. Springer, Berlin Heidelberg New York
McIver A, Morgan C (2004) Abstraction, refinement and proof for probabilistic systems. Springer, Berlin Heidelberg New York
McIver A, Morgan C, Hoang TS (2003) Probabilistic termination in B. In: ZB2003: 3rd International conference of B and Z users, number 2651 in LNCS. Springer, Berlin Heidelberg New York
Morgan C, McIver A, Seidel K (1996) Probabilistic predicate transformers. ACM Trans Program Languages Syst 18(3):325–353
Morgan C (1998)The generalised substitution language extended to probabilistic programs. In: B’98: the 2nd International B conference, number 1393 in LNCS. Springer, Berlin Heidelberg New York
Morgan CC, Hoang TS, Abrial J-R (2005) The challenge of probabilistic event B. In: ZB2005: 4th International conference of Z and B users, number 3455 in LNCS. Springer, Berlin Heidelberg New York
Schneider S (2001) The B-method: an introduction. Palgrave
Schneider S, Hoang TS, Robinson K, Treharne H (2005) Tank monitoring: a pAMN case study. In: REFINE’05, ENTCS
Treharne H, Schneider S (2000) How to drive a B machine. In: ZB2000: 1st International conference of Z and B users, number 1878 in LNCS. Springer, Berlin Heidelberg New York
Treharne H, Schneider S, Bramble M (2003) Combining specification with composition. In: ZB2003: 3rd International conference of Z and B users, number 2651 in LNCS. Springer, Berlin Heidelberg New York
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Schneider, S., Hoang, T.S., Robinson, K. et al. Tank monitoring: a pAMN case study. Form Asp Comp 18, 308–328 (2006). https://doi.org/10.1007/s00165-006-0004-5
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00165-006-0004-5