– 13 – 2014-07-15 – main –
Real-Time Systems
Lecture 13: Location Reachability (or: The Region Automaton)
2014-07-15
- Dr. Bernd Westphal
Albert-Ludwigs-Universit¨ at Freiburg, Germany
Lecture 13: Location Reachability (or: The Region Automaton) - - PowerPoint PPT Presentation
Real-Time Systems Lecture 13: Location Reachability (or: The Region Automaton) 2014-07-15 Dr. Bernd Westphal 13 2014-07-15 main Albert-Ludwigs-Universit at Freiburg, Germany Contents & Goals Last Lecture: Networks
– 13 – 2014-07-15 – main –
Albert-Ludwigs-Universit¨ at Freiburg, Germany
– 13 – 2014-07-15 – Sprelim –
2/33
analysis?
– 13 – 2014-07-15 – main –
3/33
– 13 – 2014-07-15 – Sdec –
4/33
– 13 – 2014-07-15 – Sdec –
4/33
t
– 13 – 2014-07-15 – Sdec –
5/33
light bright
press? x := 0 press? x ≤ 3 press? x > 3 press?
— w.l.o.g. assume constants c ∈ N0.
system U(A) — abstracts from uncountably many delay transitions, still infinite-state.
equivalent configurations collapse into regions
is preserved in R(A).
– 13 – 2014-07-15 – Sdec –
6/33
0 , and ∼∈ {<, >, ≤, ≥}.
– 13 – 2014-07-15 – Sdec –
6/33
0 , and ∼∈ {<, >, ≤, ≥}.
0 | c appears in A} — C(A) is finite! (Why?)
– 13 – 2014-07-15 – Sdec –
6/33
0 , and ∼∈ {<, >, ≤, ≥}.
0 | c appears in A} — C(A) is finite! (Why?)
– 13 – 2014-07-15 – Sdec –
6/33
0 , and ∼∈ {<, >, ≤, ≥}.
0 | c appears in A} — C(A) is finite! (Why?)
– 13 – 2014-07-15 – Sdec –
6/33
0 , and ∼∈ {<, >, ≤, ≥}.
0 | c appears in A} — C(A) is finite! (Why?)
– 13 – 2014-07-15 – Sdec –
7/33
✔ Observe: clock constraints are simple — w.l.o.g. assume constants c ∈ N0. ✘ Def. 4.19: time-abstract transition system U(A) — abstracts from uncountably many delay transitions, still infinite-state. ✘ Lem. 4.20: location reachability
✘ Def. 4.29: region automaton R(A) — equivalent configurations collapse into regions ✘ Lem. 4.32: location reachability of U(A) is preserved in R(A). ✘ Lem. 4.28: R(A) is finite.
– 13 – 2014-07-15 – Sdec –
8/33
– 13 – 2014-07-15 – Sdec –
8/33
t1+t2
– 13 – 2014-07-15 – Sdec –
9/33
α
α
– 13 – 2014-07-15 – Sdec –
10/33
α
light bright
press? x := 0 press? x ≤ 3 press? x > 3 press?
– 13 – 2014-07-15 – Sdec –
11/33
– 13 – 2014-07-15 – Sdec –
12/33
✔ Observe: clock constraints are simple — w.l.o.g. assume constants c ∈ N0. ✔ Def. 4.19: time-abstract transition system U(A) — abstracts from uncountably many delay transitions, still infinite-state. ✔ Lem. 4.20: location reachability
✘ Def. 4.29: region automaton R(A) — equivalent configurations collapse into regions ✘ Lem. 4.32: location reachability of U(A) is preserved in R(A). ✘ Lem. 4.28: R(A) is finite.
– 13 – 2014-07-15 – Sdec –
13/33
light bright
press? x := 0 press? x ≤ 3 press? x > 3 press?
· · ·
press
= ⇒ light, x = 0 bright, x = 0
press
= ⇒ · · · . . . bright, x = 0.1
press
= ⇒ · · · . . . bright, x = 1.0
press
= ⇒ · · · . . . bright, x = 3.0
press
= ⇒ · · · . . . bright, x = 3.001
press
= ⇒ · · · . . .
press
= ⇒ · · · . . .
press
= ⇒ · · · . . .
press
= ⇒ · · · . . .
press
= ⇒ · · · . . .
press
= ⇒ · · · . . .
p r e s s
= ⇒
press
= ⇒
p r e s s
= ⇒
press
= ⇒
press
= ⇒
press
= ⇒
– 13 – 2014-07-15 – Sdec –
14/33
– 13 – 2014-07-15 – Sdec –
14/33
– 13 – 2014-07-15 – Sdec –
15/33
– 13 – 2014-07-15 – Sdec –
16/33
0 can be split into
– 13 – 2014-07-15 – Sdec –
17/33
(1) For all x ∈ X, ⌊ν1(x)⌋ = ⌊ν2(x)⌋ or both ν1(x) > cx and ν2(x) > cx. (2) For all x ∈ X with ν1(x) ≤ cx, frac(ν1(x)) = 0 if and only if frac(ν2(x)) = 0. (3) For all x, y ∈ X, ⌊ν1(x) − ν1(y)⌋ = ⌊ν2(x) − ν2(y)⌋
(4) For all x, y ∈ X with −c ≤ ν1(x) − ν1(y) ≤ c, frac(ν1(x) − ν1(y)) = 0 if and only if frac(ν2(x) − ν2(y)) = 0. Where c = max{cx, cy}.
– 13 – 2014-07-15 – Sdec –
18/33 (1) ∀ x ∈ X : ⌊ν1(x)⌋ = ⌊ν2(x)⌋ ∨ (ν1(x) > cx ∧ ν2(x) > cx) (2) ∀ x ∈ X : ν1(x) ≤ cx = ⇒ (frac(ν1(x)) = 0 ⇐ ⇒ frac(ν2(x)) = 0) (3) ∀ x, y ∈ X : ⌊ν1(x) − ν1(y)⌋ = ⌊ν2(x) − ν2(y)⌋ ∨ (|ν1(x) − ν1(y)| > c ∧ |ν2(x) − ν2(y)| > c) (4) ∀ x, y ∈ X : −c ≤ ν1(x) − ν1(y) ≤ c = ⇒ (frac(ν1(x) − ν1(y)) = 0 ⇐ ⇒ frac(ν2(x) − ν2(y)) = 0) 1 1 x y
– 13 – 2014-07-15 – Sdec –
19/33
– 13 – 2014-07-15 – Sdec –
20/33
α
– 13 – 2014-07-15 – Sdec –
21/33
light bright
press? x := 0 press? x ≤ 3 press? x > 3 press?
· · ·
press
= ⇒ light, [x = 0] bright, [x = 0]
press
= ⇒ · · · bright, [x = 0.1]
press
= ⇒ · · · bright, [x = 1.0]
press
= ⇒ · · · . . . bright, [x = 3.0]
press
= ⇒ · · · bright, [x = 3.001]
press
= ⇒ · · ·
press
= ⇒ · · · . . .
press
= ⇒ · · ·
press
= ⇒ · · ·
press
= ⇒ · · ·
p r e s s
= ⇒
press
= ⇒
p r e s s
= ⇒
press
= ⇒
press
= ⇒
– 13 – 2014-07-15 – Sdec –
22/33
– 13 – 2014-07-15 – Sdec –
23/33
✔ Observe: clock constraints are simple — w.l.o.g. assume constants c ∈ N0. ✔ Def. 4.19: time-abstract transition system U(A) — abstracts from uncountably many delay transitions, still infinite-state. ✔ Lem. 4.20: location reachability
✔ Def. 4.29: region automaton R(A) — equivalent configurations collapse into regions ✘ Lem. 4.32: location reachability of U(A) is preserved in R(A). ✘ Lem. 4.28: R(A) is finite.
– 13 – 2014-07-15 – Sdec –
24/33
α
1
2 with ν′ 1 ∼ ν′ 2 and ℓ, ν2 α
2.
– 13 – 2014-07-15 – Sdec –
25/33
✔ Observe: clock constraints are simple — w.l.o.g. assume constants c ∈ N0. ✔ Def. 4.19: time-abstract transition system U(A) — abstracts from uncountably many delay transitions, still infinite-state. ✔ Lem. 4.20: location reachability
✔ Def. 4.29: region automaton R(A) — equivalent configurations collapse into regions ✔ Lem. 4.32: location reachability of U(A) is preserved in R(A). ✘ Lem. 4.28: R(A) is finite.
– 13 – 2014-07-15 – Sdec –
26/33
1 2 |X|·(|X|−1)
– 13 – 2014-07-15 – Sdec –
27/33
– 13 – 2014-07-15 – Sdec –
28/33
✔ Observe: clock constraints are simple — w.l.o.g. assume constants c ∈ N0. ✔ Def. 4.19: time-abstract transition system U(A) — abstracts from uncountably many delay transitions, still infinite-state. ✔ Lem. 4.20: location reachability
✔ Def. 4.29: region automaton R(A) — equivalent configurations collapse into regions ✔ Lem. 4.32: location reachability of U(A) is preserved in R(A). ✔ Lem. 4.28: R(A) is finite.
– 13 – 2014-07-15 – Sdec –
29/33
– 13 – 2014-07-15 – Sdec –
29/33
– 13 – 2014-07-15 – Sdec –
30/33
– 13 – 2014-07-15 – Sdec –
30/33
– 13 – 2014-07-15 – Sdec –
31/33
– 13 – 2014-07-15 – Sdec –
31/33
– 13 – 2014-07-15 – main –
32/33
– 13 – 2014-07-15 – main –
33/33