Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1007/978-3-662-43652-3_4guideproceedingsArticle/Chapter ViewAbstractPublication PagesConference Proceedingsacm-pubtype
Article

Translating B to TLA+ for Validation with TLC

Published: 02 June 2014 Publication History

Abstract

The state-based formal methods B and TLA + share the common base of predicate logic, arithmetic and set theory. However, there are still considerable differences, such as the way to specify state transitions, the different approaches to typing, and the available tool support. In this paper, we present a translation from B to TLA + to validate B specifications using the model checker TLC. We provide translation rules for almost all constructs of B, in particular for those which are not built-in in TLA +. The translation also includes many adaptations and optimizations to allow efficient checking by TLC. Moreover, we present a way to validate liveness properties for B specifications under fairness conditions. Our implemented translator, Tlc4B, automatically translates a B specification to TLA +, invokes the model checker TLC, and translates the results back to B. We use ProB to double check the counter examples produced by TLC and replay them in the ProB animator. We also present a series of case studies and benchmark tests comparing Tlc4B and ProB.

References

[1]
Abrial, J.-R.: The B-Book. Cambridge University Press 1996
[2]
ClearSy. B language reference manual, http://www.tools.clearsy.com/resources/Manrefb_en.pdf accessed: November 10, 2013
[3]
Cousineau, D., Doligez, D., Lamport, L., Merz, S., Ricketts, D., Vanzetto, H.: TLA+ proofs. In: Giannakopoulou, D., Méry, D. eds. FM 2012. LNCS, vol. 7436, pp. 147---154. Springer, Heidelberg 2012
[4]
Gafni, E., Lamport, L.: Disk Paxos. Distributed Computing 161, 1---20 2003
[5]
Hansen, D., Leuschel, M.: Translating TLA+ to B for validation with ProB. In: Derrick, J., Gnesi, S., Latella, D., Treharne, H. eds. IFM 2012. LNCS, vol. 7321, pp. 24---38. Springer, Heidelberg 2012
[6]
Hansen, D., Leuschel, M.: Translating B to TLA+ for validation with TLC 2013, http://www.stups.uni-duesseldorf.de/w/Special:Publication/HansenLeuschel_TLC4B_techreport
[7]
Lamport, L.: The TLA+ hyperbook, http://research.microsoft.com/en-us/um/people/lamport/tla/hyperbook.html accessed: October 30, 2013
[8]
Lamport, L.: Specifying Systems, The TLA+ Language and Tools for Hardware and Software Engineers. Addison-Wesley 2002
[9]
Leuschel, M., Butler, M.: ProB: A model checker for B. In: Araki, K., Gnesi, S., Mandrioli, D. eds. FME 2003. LNCS, vol. 2805, pp. 855---874. Springer, Heidelberg 2003
[10]
Leuschel, M., Butler, M.J.: ProB: an automated analysis toolset for the B method. STTT 102, 185---203 2008
[11]
Mosbahi, O., Jemni, L., Jaray, J.: A formal approach for the development of automated systems. In: Filipe, J., Shishkov, B., Helfert, M. eds. ICSOFT SE, pp. 304---310. INSTICC Press 2007
[12]
Reynolds, M.: Changing nothing is sometimes doing something. Technical Report TR-98-02, Department of Computer Science, King's College London February 1998
[13]
Yu, Y., Manolios, P., Lamport, L.: Model checking TLA+ specifications. In: Pierre, L., Kropf, T. eds. CHARME 1999. LNCS, vol. 1703, pp. 54---66. Springer, Heidelberg 1999

Cited By

View all
  • (2016)Symbolic Reachability Analysis of B Through ProB and LTSminProceedings of the 12th International Conference on Integrated Formal Methods - Volume 968110.1007/978-3-319-33693-0_18(275-291)Online publication date: 1-Jun-2016
  • (2016)Proof Assisted Symbolic Model Checking for B and Event-BProceedings of the 5th International Conference on Abstract State Machines, Alloy, B, TLA, VDM, and Z - Volume 967510.1007/978-3-319-33600-8_8(135-150)Online publication date: 23-May-2016

Recommendations

Comments

Information & Contributors

Information

Published In

cover image Guide Proceedings
ABZ 2014: Proceedings of the 4th International Conference on Abstract State Machines, Alloy, B, TLA, VDM, and Z - Volume 8477
June 2014
333 pages
ISBN:9783662436516

Publisher

Springer-Verlag

Berlin, Heidelberg

Publication History

Published: 02 June 2014

Author Tags

  1. Animation
  2. B-Method
  3. Model Checking
  4. TLA +
  5. Tool Support

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)0
  • Downloads (Last 6 weeks)0
Reflects downloads up to 01 Jan 2025

Other Metrics

Citations

Cited By

View all
  • (2016)Symbolic Reachability Analysis of B Through ProB and LTSminProceedings of the 12th International Conference on Integrated Formal Methods - Volume 968110.1007/978-3-319-33693-0_18(275-291)Online publication date: 1-Jun-2016
  • (2016)Proof Assisted Symbolic Model Checking for B and Event-BProceedings of the 5th International Conference on Abstract State Machines, Alloy, B, TLA, VDM, and Z - Volume 967510.1007/978-3-319-33600-8_8(135-150)Online publication date: 23-May-2016

View Options

View options

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media