Empowering the Event-B Method Using External Theories

被引:6
作者
Ait-Ameur, Yamine [1 ]
Dupont, Guillaume [1 ]
Mendil, Ismail [1 ]
Mery, Dominique [2 ,3 ]
Pantel, Marc [1 ]
Riviere, Peter [1 ]
Singh, Neeraj K. [1 ]
机构
[1] Univ Toulouse, INPT ENSEEIHT IRIT, Toulouse, France
[2] Univ Lorraine, LORIA, Nancy, France
[3] Telecom Nancy, Nancy, France
来源
INTEGRATED FORMAL METHODS, IFM 2022 | 2022年 / 13274卷
关键词
State-based methods; Invariants preservation; Partial definitions and well-definedness; Safety; Event-B; LOGIC;
D O I
10.1007/978-3-031-07727-2_2
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Event-B offers a rigorous state-based framework for designing critical systems. Models describe state changes (transitions), and invariant preservation is ensured by inductive proofs over execution traces. In a correct model, such changes transform safe states into safe states, effectively defining a partial function, whose domain prevents ill-defined state changes. Moreover, a state can be formalised as a complex data type, and as such it is accompanied by operators whose correct use is ensured by well-definedness (WD) conditions (partial functions). This paper proposes to define transitions explicitly as partial functions in an Event-B theory. WD conditions associated to these functions prevent ill-defined transitions in a more effective way than usual Event-B events. We advocate that these WD conditions are sufficient to define transitions that preserve (inductive) invariants and safety properties, thus providing easier and reusable proof methods for model invariant preservation. We rely on the finite automata example to illustrate our approach.
引用
收藏
页码:18 / 35
页数:18
相关论文
共 27 条
[1]  
Abrial J.-R., 2002, ZB 2002: Formal Specification and Development in Z and B. 2nd International Conference of B and Z Users. Proceedings (Lecture Notes in Computer Science Vol.2272), P242
[2]  
Abrial J.-R., 2009, Technical report
[3]  
Abrial J.-R., 1996, The B-Book: Assigning Programs to Meanings
[4]  
Abrial Jean-Raymond, 2010, Modeling in Event-B: system and software engineering
[5]  
[Anonymous], 2002, Isabelle / HOL: A Proof Assistant for Higher-Order Logic
[6]  
[Anonymous], 2003, Abstract State Machines. A method for High-Level System Design and Analysis
[7]  
[Anonymous], 2002, Specifying systems: the tla+ language and tools for hardware and software engineers
[8]   A LOGIC COVERING UNDEFINEDNESS IN PROGRAM PROOFS [J].
BARRINGER, H ;
CHENG, JH ;
JONES, CB .
ACTA INFORMATICA, 1984, 21 (03) :251-269
[9]  
Bertot Y., 2010, Interactive Theorem Proving and Program Development: Coq'Art The Calculus of Inductive Constructions
[10]  
Butler Michael, 2013, Theories of Programming and Formal Methods. Essays Dedicated to Jifeng He on the Occasion of His 70th Birthday. LNCS 8051, P67, DOI 10.1007/978-3-642-39698-4_5