Week 5 Flashcards

1
Q

Operators of Linear Temporal Logic

A
  1. X (next)
  2. U (until)
  3. G (always)
  4. F (eventually)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Next Operator

A

unary operator that expresses what happens at the next point in time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Until Operator

A

binary operator that indicates one thing (first argument) will not become false until the second becomes true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Globally Operator

A

unary operator that expresses that something is always true from this point on

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Eventually Operator

A

unary operator that expresses something will definitely happen at some point in time but does not specify when

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does pi |= y mean when pi is a path and y is a formula

A

That the path satisfies the formula.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

pi |= a if and only if

A

a is in L(pi[0])

where L is the function that maps states to atomic propositions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

pi |= not y if and only if

A

pi |= y does not hold

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

pi |= y1 and y2 if and only if

A

pi |= y1 and pi |= y2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

pi |= y1 or y2 if and only if

A

pi |= y1 or pi |= y2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

pi |= X(y) if and only if

A

pi[1…] =| y

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

pi |= (y1 U y2) if and only if

A

there exists some j > 0 such that pi[j…] |= y2 and for all 0 <= i < j pi[i…]|=y1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

pi |= F(y) if and only if

A

there exists some i>=0 such that pi[i…] |= y

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

pi |= G(y) if and only if

A

for all i>= 0, pi[i….] |= y

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

When is a formula true in a state? Explanation in natural language and formal

A

A formula is true in a state if it is true for all paths that start in that state.

That is, s |= y if and only if for all pi in Paths(s), pi |= y

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

When is a formula true in a Kripke structure?

A

A formula is true in a Kripe structure if it holds in its initial state

That is, K |= y if and only if s0 |= y

17
Q

Which two LTL operators are derived?

A

F and G

18
Q

F(y) is equivalent to - Hint: Includes U

A

true U y

19
Q

G(y) is equivalent to - Hint: Includes F

A

not F not y

20
Q

Duality: not X(y) is equivalent to

A

X(not y)

21
Q

Duality of F and G: not F(y), not G(y)

A

not F(y) is equivalent to G(not y)
not G(y) is equivalent to F(not y)

22
Q

Idempotency: GGy, FFy, yU(yUx), (yUx)Ux

A

G(G(y)) is equivalent to G(y)
F(F(y)) is equivalent to F(y)
yU(yUx) is equivalent to yUx
(yUx)Ux is equivalent to yUx

23
Q

Absorption: FGFy, GFGy

A

FGFy is equivalent to GFy
GFGy is equivalent to FGy

24
Q

Distributivity: X(y and x), X(y or x), F(y or x), G(y and x), X(F(y)), X(G(y)), X(y U x)

A

X(y and x) equivalent to X(y) and X(x)
X(y or x) equivalent to X(y) or X(x)
F(x or y) equivalent to F(x) or F(y)
G(y and x) equivalent to G(y) and G(x)
X(F(y)) equivalent to F(X(y))
X(G(y)) equivalent to G(X(y))
X(y U x) equivalent to X(y) U X(x)

25
Q

LTL Operators in PROMELA

A

Xy - Xy
Gy - []y
Fy - <>y
p U q - p U q

26
Q

Weak Until ( p W q)

A

(p U q) or (G p)

27
Q

Release p V q

A

not (not p U not q)

28
Q

Adding LTL formulas to SPIN

A

Add LTL formula to model in format:

ltl name { formula }

29
Q

Weak Fairness

A

each continuously executable statement is eventually executed

avoids unrealistic counter-examples to LTL formulas