of individual steps. This contrasts with our focus,
which permits transient behaviour to be disregarded,
in favour of long term averaged properties.
Of course, the discussion in this paper is but a
first step in the incorporation of such ideas into a
generic formal context. A particularly fertile possi-
ble application area for such ideas is in the formal
description of cyberphysical systems, with their un-
avoidable involvement of continuous physical pro-
cesses (Sztipanovits, 2011; Willems, 2007; Sum-
mit Report, 2008; National Science and Technology
Council, 2011). There, the use of martingales for the
description of long term noisy physical components
is even more compelling than for the purely discrete
case, due to the fact that the relevant stochastic pro-
cesses typically enjoy an ‘independent increments on
disjoint intervals of time’ property, something well
captured via the theory of ideal continuous stochas-
tic processes. This makes the martingale behaviour of
stochastic physical variables in stable dynamical situ-
ations into a convincing metaphor for observed phe-
nomena. However, a proper treatment of these will
need an excursion into the more challenging continu-
ous version of martingale theory. This remains as fu-
ture work. Also, with the experience of a more fully
worked out proposal, there will be more clarity re-
garding what are the most useful verification condi-
tions that should be generated to support martingale
use in formal model based development.
REFERENCES
Abrial, J.-R. (1989). A Formal Approach to Large Soft-
ware Construction. In van de Snepscheut, editor,
Mathematics of Program Construction, volume 375 of
LNCS, pages 1–20. Springer.
Abrial, J.-R. (1996). The B-Book: Assigning Programs to
Meanings. Cambridge University Press.
Abrial, J.-R. (2010). Modeling in Event-B: System and Soft-
ware Engineering. Cambridge University Press.
Abrial, J.-R., Butler, M., Hallerstede, S., Hoang, T., Mehta,
F., and Voisin, L. (2010). Rodin: an open toolset for
modelling and reasoning in Event-B. Int. J. Software
Tools for Technology Transfer, 12(6):447–466.
Banach, R., Jeske, C., Poppleton, M., and Stepney, S.
(2006a). Retrenching the Purse: Finite Exception
Logs, and Validating the Small. In Hinchey, editor,
Proc. NASA/IEEE SEW-30, pages 234–245, Layola
College Graduate Center, Columbia, MD.
Banach, R., Jeske, C., Poppleton, M., and Stepney, S.
(2006b). Retrenching the Purse: Hashing Injective
CLEAR Codes, and Security Properties. In Steffen,
Margaria, and Philippou, editors, ISOLA-06, Paphos,
Cyprus. IEEE.
Banach, R., Jeske, C., Poppleton, M., and Stepney, S.
(2007). Retrenching the Purse: The Balance Enquiry
Quandary, and Generalised and (1,1) Forward Refine-
ments. Fundamenta Informaticae, 77:29–69.
Banach, R., Poppleton, M., Jeske, C., and Stepney, S.
(2005). Retrenching the Purse: Finite Sequence Num-
bers and the Tower Pattern. In Formal Methods 2005,
pages 382–398.
D.T.I. (1991). Information Technology Security Evalua-
tion Criteria. http://www.cesg.gov.uk/site/iacs/itsec/
media/formal-docs/Itsec.pdf.
Grimmett, G. and Stirzaker, D. (2001). Probability and
Random Processes. O.U.P., 3rd edition.
Heerink, L. and Tretmans, J. (1996). Formal Methods in
Conformance Testing: A Probabilistic Refinement. In
Testing of Communicating Systems, pages 261–276.
Springer.
ISO-Z (2002). Information Technology – Z Formal Specifi-
cation Notation – Syntax, Type System and Semantics:
International Standard. ISO/IEC 13568. http://www.
iso.org/iso/en/ittf/PubliclyAvailableStandards/
c021573
ISO IEC 13568 2002(E).zip.
Jones, C., O’Hearne, P., and Woodcock, J. (2006). Veri-
fied Software: A Grand Challenge. IEEE Computer,
39(4):93–95.
Jones, C. and Woodcock (eds.), J. (2008). FAC Special Is-
sue on the Mondex Verification. Formal Aspects of
Computing, 20(1):1–139.
McIver, A. and Morgan, C. (2005). Abstraction, Refinement
and Proof for Probabilistic Systems. Springer.
National Science and Technology Council
(2011). Trustworthy Cyberspace: Strate-
gic plan for the Federal Cybersecurity Re-
search and Development Program. http://
www.whitehouse.gov/sites/default/files/microsites/
ostp/fed
cybersecurity rd strategic plan 2011.pdf.
Resnick, S. (1992). Adventures in Stochastic Processes.
Birkhauser.
Spivey, J. (1992). The Z Notation: A Reference Manual.
Prentice-Hall, second edition.
Stepney, S., Cooper, D., and Woodcock, J. (2000). An Elec-
tronic Purse: Specification, Refinement and Proof.
Technical Report PRG-126, Oxford University Com-
puting Laboratory.
Summit Report (2008). Summit Report: Cyber-Physical
Systems. http://iccps2012.cse.wustl.edu/
doc/
CPS
Summit Report.pdf.
Sztipanovits, J. (2011). Model Integration and Cy-
ber Physical Systems: A Semantics Perspec-
tive. In Butler and Schulte, editors, Proc. FM-
11. Springer, LNCS 6664, p.1, http://sites.lero.ie/
download.aspx?f=Sztipanovits-Keynote.pdf. Invited
talk, FM 2011, Limerick, Ireland.
van Breugel, F. and Worrell, J. (2001). Towards Quantitative
Verification of Probabilistic Transition Systems. In
Proc. ALP-01, pages 421–432. Springer LNCS.
Willems, J. (2007). Open Dynamical Systems: Their Aims
and their Origins. Ruberti Lecture, Rome. http://
homes.esat.kuleuven.be/∼jwillems/Lectures/2007/
Rubertilecture.pdf.
Woodcock, J. (2006). First Steps in the The Verified Soft-
ware Grand Challenge. IEEE Computer, 39(10):57–
64.
Woodcock, J. and Banach, R. (2007). The Verification
Grand Challenge. JUCS, 13(5):661–668.
StochasticAnaloguesofInvariants-MartingalesinStochasticEvent-B
243