Skip to main content

Refinable Record Structures in Formal Methods

  • Conference paper
  • First Online:
Advances in Model and Data Engineering in the Digitalization Era (MEDI 2021)

Abstract

State-based formal specifications benefit from data structuring mechanisms, which collate associated properties and efficiently declare complex types. For example, ‘record’ data structures, similar to those used in programming languages, can be built into the concrete syntax of a language as an enhancement over flat data relationships. While this is relatively simple to achieve for a single-level specification, it becomes significantly more involved when the specification language allows for progressive refinement of the data supporting the specification. Individual fields may be added to create sub-records within a refinement and replaced to create refined records during a refinement step. The impact on the ability to verify invariant and refinement proof obligations must be considered. Here we describe a record structuring syntax that includes notions of extension and inheritance that can be used in a refinement-based formal method. We illustrate the approach using extensions to the Event-B formal method.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 69.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 89.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Abrial, J.-R.: Modeling in Event-B: System and Software Engineering. Cambridge University Press, Cambridge (2010)

    Book  Google Scholar 

  2. Abrial, J.-R., Butler, M., Hallerstede, S., Hoang, T.S., Mehta, F., Voisin, L.: Rodin: An open toolset for modelling and reasoning in Event-B. Softw. Tools Technol. Transfer 12(6), 447–466 (2010)

    Article  Google Scholar 

  3. Bjørner, D., Jones, C.B.: Formal Specification and Software Development. Prentice Hall, Hoboken (1982)

    MATH  Google Scholar 

  4. Fritz, F., Snook, C., Iliasov, A.: Event-B and Rodin Wiki: EMF Framework for Event-B (2009). http://wiki.event-b.org/index.php/EMF_framework_for_Event-B. Accessed 01 Feb 2021

  5. Dghaym, D., Hoang, T.S., Butler, M., Hu, R., Aniello, L., Sassone, V.: Verifying system-level security of a smart ballot box. In: Raschke, A., Méry, D. (eds.) ABZ 2021. LNCS, vol. 12709, pp. 34–49. Springer, Cham (2021). https://doi.org/10.1007/978-3-030-77543-8_3

    Chapter  Google Scholar 

  6. Evans, N., Butler, M.: A proposal for records in Event-B. In: Misra, J., Nipkow, T., Sekerinski, E. (eds.) FM 2006. LNCS, vol. 4085, pp. 221–235. Springer, Heidelberg (2006). https://doi.org/10.1007/11813040_16

    Chapter  Google Scholar 

  7. Eysholdt, M., Behrens, H.: XText: implement your language faster than the quick and dirty way. In: OOPSLA, pp. 307–309. ACM (2010)

    Google Scholar 

  8. Salehi Fathabadi, A., Snook, C., Hoang, T.S., Dghaym, D., Butler, M.: Extensible record structures in Event-B. In: Raschke, A., Méry, D. (eds.) ABZ 2021. LNCS, vol. 12709, pp. 130–136. Springer, Cham (2021). https://doi.org/10.1007/978-3-030-77543-8_12

    Chapter  Google Scholar 

  9. Groves, L.: Refinement and the z schema calculus. Electron. Notes Theoret. Comput. Sci. 70(3), 70–93. REFINE 2002, The BCS FACS Refinement Workshop (Satellite Eventof FLoC 2002) (2002)

    Google Scholar 

  10. Hoang, T.S., Snook, C., Dghaym, D., Salehi Fathabadi, A., Butler, M.: The CamilleX framework for the Rodin platform. In: Raschke, A., Méry, D. (eds.) ABZ 2021. LNCS, vol. 12709, pp. 124–129. Springer, Cham (2021). https://doi.org/10.1007/978-3-030-77543-8_11

    Chapter  Google Scholar 

  11. Davies, J., Woodcock, J.: Using Z: Specification, Refinement and Proof. Prentice Hall, Hoboken (1996)

    MATH  Google Scholar 

  12. Jackson, D.: Software Abstractions: Logic, Language, and Analysis. The MIT Press, Cambridge (2012)

    Google Scholar 

  13. Snook, C., Butler, M.: UML-B: formal modelling and design aided by UML. ACM Trans. Softw. Eng. Methodol. 15(1), 92–122 (2006)

    Article  Google Scholar 

  14. Snook, C.: Event-B and Rodin Wiki: Records Extension (2010). http://wiki.event-b.org/index.php/Records_Extension. Accessed 01 Feb 2021

  15. Sritharan, S., Hoang, T.S.: Generating SPARK/Ada from Event-B models. Submitted to iFM 2020 (2020)

    Google Scholar 

  16. Steinberg, D., Budinsky, F., Paternostro, M., Merks, E.: Eclipse Modeling Framework. The Eclipse Series. 2nd edn. Addison-Wesley Professional, Boston (2008)

    Google Scholar 

Download references

Acknowledgements

This work is supported by the following projects: - HiClass project (113213), which is part of the ATI Programme, a joint Government and industry investment to maintain and grow the UK’s competitive position in civil aerospace design and manufacture. - HD-Sec project, which was funded by the Digital Security by Design (DSbD) Programme delivered by UKRI to support the DSbD ecosystem.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Asieh Salehi Fathabadi .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2021 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Fathabadi, A.S., Snook, C., Hoang, T.S., Dghaym, D., Butler, M. (2021). Refinable Record Structures in Formal Methods. In: Bellatreche, L., Chernishev, G., Corral, A., Ouchani, S., Vain, J. (eds) Advances in Model and Data Engineering in the Digitalization Era. MEDI 2021. Communications in Computer and Information Science, vol 1481. Springer, Cham. https://doi.org/10.1007/978-3-030-87657-9_1

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-87657-9_1

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-87656-2

  • Online ISBN: 978-3-030-87657-9

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics