Model Checking TLA+ Specifications
Shiji Bijo shijib@ifi.uio.no
Institutt for informatikk, Universitetet i Oslo
June 2, 2015
1 / 37
Model Checking TLA+ Specifications Shiji Bijo shijib@ifi.uio.no - - PowerPoint PPT Presentation
Model Checking TLA+ Specifications Shiji Bijo shijib@ifi.uio.no Institutt for informatikk, Universitetet i Oslo June 2, 2015 1 / 37 Introduction TLA: temporal logic of actions combination of Logic of actions standard temporal logics
1 / 37
2 / 37
3 / 37
4 / 37
1Syntactic objects includes variables, states, predicates, actions etc. 5 / 37
2Independent from variable values etc. “always” is not meant as TL . 6 / 37
3Other terminology exists as well 7 / 37
3Other terminology exists as well 8 / 37
9 / 37
4Independent from any model, etc. 10 / 37
11 / 37
12 / 37
1
2
3
4
5
6
13 / 37
1
2
3
4
5
6
14 / 37
15 / 37
16 / 37
1
2
3
4
5
6
17 / 37
1
2
3
4
5
6
18 / 37
19 / 37
1
2
3
4
5
6
20 / 37
1
2
3
4
5
6
21 / 37
22 / 37
23 / 37
24 / 37
25 / 37
1
2
3
4
5
6
26 / 37
5For any action A, enabled A is a predicate that is true for a state iff it is
27 / 37
28 / 37
29 / 37
30 / 37
31 / 37
32 / 37
1 MODULE HourClock 2 3 EXTENDS Naturals 4
5 6
7
8
9 10 THEOREM HC ⇒ HCinit # Type Correctness
33 / 37
1
2
3
4 5
6
7
8
9
10
34 / 37
35 / 37
36 / 37
[Lamport, 1994] Lamport, L. (1994). The temporal logic of actions. ACM Transactions on Programming Languages and Systems (TOPLAS), 16(3):872–923. [Yu et al., 1999] Yu, Y., Manolios, P., and Lamport, L. (1999). Model checking tla+ specifications. In Correct Hardware Design and Verification Methods, pages 54–66. Springer. 37 / 37