Electronic Proceedings in Theoretical Computer Science (Jun 2016)

Formal refinement of extended state machines

  • Thomas Fayolle,
  • Marc Frappier,
  • Régine Laleau,
  • Frédéric Gervais

DOI
https://doi.org/10.4204/EPTCS.209.1
Journal volume & issue
Vol. 209, no. Proc. Refine 2015
pp. 1 – 16

Abstract

Read online

In a traditional formal development process, e.g. using the B method, the informal user requirements are (manually) translated into a global abstract formal specification. This translation is especially difficult to achieve. The Event-B method was developed to incrementally and formally construct such a specification using stepwise refinement. Each increment takes into account new properties and system aspects. In this paper, we propose to couple a graphical notation called Algebraic State-Transition Diagrams (ASTD) with an Event-B specification in order to provide a better understanding of the software behaviour. The dynamic behaviour is captured by the ASTD, which is based on automata and process algebra operators, while the data model is described by means of an Event-B specification. We propose a methodology to incrementally refine such specification couplings, taking into account new refinement relations and consistency conditions between the control specification and the data specification. We compare the specifications obtained using each approach for readability and proof complexity. The advantages and drawbacks of the traditional approach and of our methodology are discussed. The whole process is illustrated by a railway CBTC-like case study. Our approach is supported by tools for translating ASTD's into B and Event-B into B.