skip to main content
10.1145/2851613.2851836acmconferencesArticle/Chapter ViewAbstractPublication PagessacConference Proceedingsconference-collections
research-article

Session types for communicating systems in event-B

Published:04 April 2016Publication History

ABSTRACT

Emergent systems are inherently communication-centered. Hence, a modeling strategy for those systems must provide the right abstractions for: (1) giving a general view of the communication patterns; (2) abstracting away from the interleaving and synchronization details; and (3) proving correct the communication schema. We propose a modeling strategy that integrates multiparty sessions types (MST) and Event-B (refinement calculus). We show how a global type, specifying the choreography that the agents must follow, can be translated into an Event-B machine describing the abstract behavior of the system (1 above). A refinement of the system leads to a model of the local types, describing declaratively the behavior of the agents involved (2 above). Relying on the type discipline and Rodin's (Event-B) theorem provers, we can prove the system correct (3 above). Our method does not require to reason about the system traces, thus easing the modeling task. We have also developed a tool that automatizes the process of generating the Event-B model from the MST specification. We illustrate our framework with three compelling distributed protocols.

References

  1. Jean-Raymond Abrial. Modeling in Event-B - System and Software Engineering. Cambridge University Press, 2010. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. Jean-Raymond Abrial, Michael J. Butler, Stefan Hallerstede, and Laurent Voisin. An open extensible tool environment for event-B. In ICFEM, vol. 4260 of LNCS, 588--605, 2006. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. Daniel Brand and Pitro Zafiropulo. On communicating finite-state machines. J. ACM, 30(2):323--342, 1983. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. Michael Butler. csp2b: A practical approach to combining CSP and B. formal aspects of computing, 12:2000, 1999.Google ScholarGoogle Scholar
  5. Pierre-Malo Deniélou and Nobuko Yoshida. Multiparty session types meet communicating automata. In ESOP, volume 7211 of LNCS, 194--213. Springer, 2012. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Pierre-Malo Deniélou and Nobuko Yoshida. Multiparty compatibility in communicating automata: Characterisation and synthesis of global session types. In ICALP, vol. 7966 of LNCS, 174--186. Springer, 2013. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. Thai Son Hoang, Andreas Fürst, and Jean-Raymond Abrial. Event-B patterns and their tool support. Software and System Modeling, 12(2):229--244, 2013. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. C. A. R. Hoare. Communicating Sequential Processes. Prentice-Hall, 1985. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. Kohei Honda, Vasco Thudichum Vasconcelos, and Makoto Kubo. Language primitives and type discipline for structured communication-based programming. In ESOP, vol. 1381 of LNCS, 122--138. Springer, 1998. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. Kohei Honda, Nobuko Yoshida, and Marco Carbone. Multiparty asynchronous session types. In POPL, 273--284. ACM, 2008. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. Robin Milner, Joachim Parrow, and David Walker. A calculus of mobile processes, Parts I and II. Inf. Comput., 100(1):1--40, 1992. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. Steve Schneider, Helen Treharne, and Heike Wehrheim. Bounded retransmission in event-b;csp: a case study. Electr. Notes Theor. Comput. Sci., 280:69--80, 2011. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. Renato Silva, Carine Pascal, Thai Son Hoang, and Michael Butler. Decomposition tool for event-B. Softw., Pract. Exper., 41(2):199--208, 2011. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. Imen Tounsi, Zied Hrichi, Mohamed Hadj Kacem, Ahmed Hadj Kacem, and Khalil Drira. Using soaml models and Event-B specifications for modeling soa design patterns. In ICEIS, 294--301. SciTePress, 2013.Google ScholarGoogle Scholar
  15. Vasco T. Vasconcelos. Fundamentals of session types. Inf. Comput., 217:52--70, 2012. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. Jim Woodcock and Ana Cavalcanti. A concurrent language for refinement. In IWFM, BCS, 2001. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Session types for communicating systems in event-B

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in
    • Published in

      cover image ACM Conferences
      SAC '16: Proceedings of the 31st Annual ACM Symposium on Applied Computing
      April 2016
      2360 pages
      ISBN:9781450337397
      DOI:10.1145/2851613

      Copyright © 2016 ACM

      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 4 April 2016

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • research-article

      Acceptance Rates

      SAC '16 Paper Acceptance Rate252of1,047submissions,24%Overall Acceptance Rate1,650of6,669submissions,25%
    • Article Metrics

      • Downloads (Last 12 months)1
      • Downloads (Last 6 weeks)0

      Other Metrics

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader