Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the...

233
Overview overview4.2 Introduction Modelling parallel systems Linear Time Properties Regular Properties regular safety properties ω-regular properties ←− ←− ←− model checking with B¨ uchi automata Linear Temporal Logic Computation-Tree Logic Equivalences and Abstraction 1 / 233

Transcript of Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the...

Page 1: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Overview overview4.2

Introduction

Modelling parallel systems

Linear Time Properties

Regular Properties

regular safety propertiesωωω-regular properties ←−←−←−model checking with Buchi automata

Linear Temporal Logic

Computation-Tree Logic

Equivalences and Abstraction

1 / 233

Page 2: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Regular LT properties lf2.6-regular-extended

idea: define regular LT properties to be thoselanguages of infinite words over the alphabet 2AP2AP2AP

that have a representation by a finite automata

2 / 233

Page 3: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Regular LT properties lf2.6-regular-extended

idea: define regular LT properties to be thoselanguages of infinite words over the alphabet 2AP2AP2AP

that have a representation by a finite automata

• regular safety properties:NFA-representation for the bad prefixes

3 / 233

Page 4: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Regular LT properties lf2.6-regular-extended

idea: define regular LT properties to be thoselanguages of infinite words over the alphabet 2AP2AP2AP

that have a representation by a finite automata

• regular safety properties:NFA-representation for the bad prefixes

• representation other regular LT properties by

∗∗∗ ωωω-automata, i.e., acceptors for infinite words

4 / 233

Page 5: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Regular LT properties lf2.6-regular-extended

idea: define regular LT properties to be thoselanguages of infinite words over the alphabet 2AP2AP2AP

that have a representation by a finite automata

• regular safety properties:NFA-representation for the bad prefixes

• representation other regular LT properties by

∗∗∗ ωωω-automata, i.e., acceptors for infinite words

∗∗∗ ωωω-regular expressions

5 / 233

Page 6: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Regular expressions Ltl/ltlmc3.2-23

remind: syntax and semantics of regular expressionsover some alphabet Σ = {A, B, . . .}Σ = {A, B, . . .}Σ = {A, B, . . .}

6 / 233

Page 7: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Regular expressions over ΣΣΣ Ltl/ltlmc3.2-23

α ::= ∅ ∣∣ ε∣∣ A

∣∣ α1+α2

∣∣ α1...α2

∣∣ α∗α ::= ∅ ∣∣ ε∣∣ A

∣∣ α1+α2

∣∣ α1...α2

∣∣ α∗α ::= ∅ ∣∣ ε∣∣ A

∣∣ α1+α2

∣∣ α1...α2

∣∣ α∗

7 / 233

Page 8: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Regular expressions over ΣΣΣ Ltl/ltlmc3.2-23

α ::= ∅ ∣∣ ε∣∣ A

∣∣ α1+α2

∣∣ α1...α2

∣∣ α∗α ::= ∅ ∣∣ ε∣∣ A

∣∣ α1+α2

∣∣ α1...α2

∣∣ α∗α ::= ∅ ∣∣ ε∣∣ A

∣∣ α1+α2

∣∣ α1...α2

∣∣ α∗

↑↑↑where A ∈ ΣA ∈ ΣA ∈ Σ

8 / 233

Page 9: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Regular expressions over ΣΣΣ Ltl/ltlmc3.2-23

α ::= ∅ ∣∣ ε∣∣ A

∣∣ α1+α2

∣∣ α1...α2

∣∣ α∗α ::= ∅ ∣∣ ε∣∣ A

∣∣ α1+α2

∣∣ α1...α2

∣∣ α∗α ::= ∅ ∣∣ ε∣∣ A

∣∣ α1+α2

∣∣ α1...α2

∣∣ α∗

↑↑↑where A ∈ ΣA ∈ ΣA ∈ Σ

semantics: α �→ L(α) ⊆ Σ∗α �→ L(α) ⊆ Σ∗α �→ L(α) ⊆ Σ∗ language of finite words

9 / 233

Page 10: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Regular expressions over ΣΣΣ Ltl/ltlmc3.2-23

α ::= ∅ ∣∣ ε∣∣ A

∣∣ α1+α2

∣∣ α1...α2

∣∣ α∗α ::= ∅ ∣∣ ε∣∣ A

∣∣ α1+α2

∣∣ α1...α2

∣∣ α∗α ::= ∅ ∣∣ ε∣∣ A

∣∣ α1+α2

∣∣ α1...α2

∣∣ α∗

↑↑↑where A ∈ ΣA ∈ ΣA ∈ Σ

semantics: α �→ L(α) ⊆ Σ∗α �→ L(α) ⊆ Σ∗α �→ L(α) ⊆ Σ∗ language of finite words

L(∅) = ∅L(∅) = ∅L(∅) = ∅ L(ε) = {ε}L(ε) = {ε}L(ε) = {ε} L(A) = {A}L(A) = {A}L(A) = {A}L(α1+α2)L(α1+α2)L(α1+α2) === L(α1) ∪ L(α2)L(α1) ∪ L(α2)L(α1) ∪ L(α2) union

L(α1...α2)L(α1...α2)L(α1...α2) === L(α1)L(α2)L(α1)L(α2)L(α1)L(α2) concatenation

L(α∗)L(α∗)L(α∗) === L(α)∗L(α)∗L(α)∗ Kleene closure

10 / 233

Page 11: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

ωωω-regular expressions Ltl/ltlmc3.2-24

regular expressions:

α ::= ∅ | ε | A | α1+α2 | α1...α2 | α∗∗∗α ::= ∅ | ε | A | α1+α2 | α1...α2 | α∗∗∗α ::= ∅ | ε | A | α1+α2 | α1...α2 | α∗∗∗

ωωω-regular expressions:

regular expressions +++ ωωω-operator αααωωω

11 / 233

Page 12: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

ωωω-regular expressions Ltl/ltlmc3.2-24

regular expressions:

α ::= ∅ | ε | A | α1+α2 | α1...α2 | α∗∗∗α ::= ∅ | ε | A | α1+α2 | α1...α2 | α∗∗∗α ::= ∅ | ε | A | α1+α2 | α1...α2 | α∗∗∗

ωωω-regular expressions:

regular expressions +++ ωωω-operator αααωωω

Kleene star: “finite repetition”ωωω-operator: “infinite repetition”

12 / 233

Page 13: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

ωωω-regular expressions Ltl/ltlmc3.2-24

regular expressions:

α ::= ∅ | ε | A | α1+α2 | α1...α2 | α∗∗∗α ::= ∅ | ε | A | α1+α2 | α1...α2 | α∗∗∗α ::= ∅ | ε | A | α1+α2 | α1...α2 | α∗∗∗

ωωω-regular expressions:

regular expressions +++ ωωω-operator αααωωω

Kleene star: “finite repetition”ωωω-operator: “infinite repetition”

for L ⊆ Σ∗∗∗L ⊆ Σ∗∗∗L ⊆ Σ∗∗∗:

Lω def=

{w1w2w3 . . . : wi ∈ LLω def

={w1w2w3 . . . : wi ∈ LLω def

={w1w2w3 . . . : wi ∈ L for all i ≥ 1

}i ≥ 1

}i ≥ 1

}13 / 233

Page 14: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

ωωω-regular expressions Ltl/ltlmc3.2-24

regular expressions:

α ::= ∅ | ε | A | α1+α2 | α1...α2 | α∗∗∗α ::= ∅ | ε | A | α1+α2 | α1...α2 | α∗∗∗α ::= ∅ | ε | A | α1+α2 | α1...α2 | α∗∗∗

ωωω-regular expressions:

regular expressions +++ ωωω-operator αααωωω

Kleene star: “finite repetition”ωωω-operator: “infinite repetition”

for L ⊆ Σ∗∗∗L ⊆ Σ∗∗∗L ⊆ Σ∗∗∗:

Lω def=

{w1w2w3 . . . : wi ∈ LLω def

={w1w2w3 . . . : wi ∈ LLω def

={w1w2w3 . . . : wi ∈ L for all i ≥ 1

}i ≥ 1

}i ≥ 1

}note: Lω ⊆ ΣωLω ⊆ ΣωLω ⊆ Σω if ε /∈ Lε /∈ Lε /∈ L

14 / 233

Page 15: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Syntax and semantics of ωωω-regular expressions ltlmc3.2-25

15 / 233

Page 16: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Syntax and semantics of ωωω-regular expressions ltlmc3.2-25

syntax of ωωω-regular expressions over alphabet ΣΣΣ:

γγγ = α1...βω1 + ... + αn...β

ωnγγγ = α1...β

ω1 + ... + αn...β

ωnγγγ = α1...β

ω1 + ... + αn...β

ωn where

αiαiαi , βiβiβi are regular expressions over ΣΣΣ s.t. ε �∈ L(βi)ε �∈ L(βi)ε �∈ L(βi)

16 / 233

Page 17: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Syntax and semantics of ωωω-regular expressions ltlmc3.2-25

syntax of ωωω-regular expressions over alphabet ΣΣΣ:

γγγ = α1...βω1 + ... + αn...β

ωnγγγ = α1...β

ω1 + ... + αn...β

ωnγγγ = α1...β

ω1 + ... + αn...β

ωn where

αiαiαi , βiβiβi are regular expressions over ΣΣΣ s.t. ε �∈ L(βi)ε �∈ L(βi)ε �∈ L(βi)

semantics: the language generated by γγγ is:

Lω(γ)def=

⋃1≤i≤n

L(αi)L(βi)ωLω(γ)

def=

⋃1≤i≤n

L(αi)L(βi)ωLω(γ)

def=

⋃1≤i≤n

L(αi)L(βi)ω

17 / 233

Page 18: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Syntax and semantics of ωωω-regular expressions ltlmc3.2-25

syntax of ωωω-regular expressions over alphabet ΣΣΣ:

γγγ = α1...βω1 + ... + αn...β

ωnγγγ = α1...β

ω1 + ... + αn...β

ωnγγγ = α1...β

ω1 + ... + αn...β

ωn where

αiαiαi , βiβiβi are regular expressions over ΣΣΣ s.t. ε �∈ L(βi)ε �∈ L(βi)ε �∈ L(βi)

semantics: the language generated by γγγ is:

Lω(γ)def=

⋃1≤i≤n

L(αi)L(βi)ω ⊆ ΣωLω(γ)

def=

⋃1≤i≤n

L(αi)L(βi)ω ⊆ ΣωLω(γ)

def=

⋃1≤i≤n

L(αi)L(βi)ω ⊆ Σω

18 / 233

Page 19: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Syntax and semantics of ωωω-regular expressions ltlmc3.2-25

syntax of ωωω-regular expressions over alphabet ΣΣΣ:

γγγ = α1...βω1 + ... + αn...β

ωnγγγ = α1...β

ω1 + ... + αn...β

ωnγγγ = α1...β

ω1 + ... + αn...β

ωn where

αiαiαi , βiβiβi are regular expressions over ΣΣΣ s.t. ε �∈ L(βi)ε �∈ L(βi)ε �∈ L(βi)

semantics: the language generated by γγγ is:

Lω(γ)def=

⋃1≤i≤n

L(αi)L(βi)ω ⊆ ΣωLω(γ)

def=

⋃1≤i≤n

L(αi)L(βi)ω ⊆ ΣωLω(γ)

def=

⋃1≤i≤n

L(αi)L(βi)ω ⊆ Σω

• language of (A∗...B)ω(A∗...B)ω(A∗...B)ω

19 / 233

Page 20: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Syntax and semantics of ωωω-regular expressions ltlmc3.2-25

syntax of ωωω-regular expressions over alphabet ΣΣΣ:

γγγ = α1...βω1 + ... + αn...β

ωnγγγ = α1...β

ω1 + ... + αn...β

ωnγγγ = α1...β

ω1 + ... + αn...β

ωn where

αiαiαi , βiβiβi are regular expressions over ΣΣΣ s.t. ε �∈ L(βi)ε �∈ L(βi)ε �∈ L(βi)

semantics: the language generated by γγγ is:

Lω(γ)def=

⋃1≤i≤n

L(αi)L(βi)ω ⊆ ΣωLω(γ)

def=

⋃1≤i≤n

L(αi)L(βi)ω ⊆ ΣωLω(γ)

def=

⋃1≤i≤n

L(αi)L(βi)ω ⊆ Σω

• language of (A∗...B)ω(A∗...B)ω(A∗...B)ω === set of all infinite words overΣ = {A, B}Σ = {A, B}Σ = {A, B} containing infinitely many BBB’s

20 / 233

Page 21: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Syntax and semantics of ωωω-regular expressions ltlmc3.2-25

syntax of ωωω-regular expressions over alphabet ΣΣΣ:

γγγ = α1...βω1 + ... + αn...β

ωnγγγ = α1...β

ω1 + ... + αn...β

ωnγγγ = α1...β

ω1 + ... + αn...β

ωn where

αiαiαi , βiβiβi are regular expressions over ΣΣΣ s.t. ε �∈ L(βi)ε �∈ L(βi)ε �∈ L(βi)

semantics: the language generated by γγγ is:

Lω(γ)def=

⋃1≤i≤n

L(αi)L(βi)ω ⊆ ΣωLω(γ)

def=

⋃1≤i≤n

L(αi)L(βi)ω ⊆ ΣωLω(γ)

def=

⋃1≤i≤n

L(αi)L(βi)ω ⊆ Σω

• language of (A∗...B)ω(A∗...B)ω(A∗...B)ω === set of all infinite words overΣ = {A, B}Σ = {A, B}Σ = {A, B} containing infinitely many BBB’s

• language of (A∗...B)ω + (B∗...A)ω(A∗...B)ω + (B∗...A)ω(A∗...B)ω + (B∗...A)ω

21 / 233

Page 22: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Syntax and semantics of ωωω-regular expressions ltlmc3.2-25

syntax of ωωω-regular expressions over alphabet ΣΣΣ:

γγγ = α1...βω1 + ... + αn...β

ωnγγγ = α1...β

ω1 + ... + αn...β

ωnγγγ = α1...β

ω1 + ... + αn...β

ωn where

αiαiαi , βiβiβi are regular expressions over ΣΣΣ s.t. ε �∈ L(βi)ε �∈ L(βi)ε �∈ L(βi)

semantics: the language generated by γγγ is:

Lω(γ)def=

⋃1≤i≤n

L(αi)L(βi)ω ⊆ ΣωLω(γ)

def=

⋃1≤i≤n

L(αi)L(βi)ω ⊆ ΣωLω(γ)

def=

⋃1≤i≤n

L(αi)L(βi)ω ⊆ Σω

• language of (A∗...B)ω(A∗...B)ω(A∗...B)ω === set of all infinite words overΣ = {A, B}Σ = {A, B}Σ = {A, B} containing infinitely many BBB’s

• language of (A∗...B)ω + (B∗...A)ω(A∗...B)ω + (B∗...A)ω(A∗...B)ω + (B∗...A)ω === set of all infinitewords over ΣΣΣ with infinitely many AAA’s or BBB ’s

22 / 233

Page 23: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Syntax and semantics of ωωω-regular expressions ltlmc3.2-25

syntax of ωωω-regular expressions over alphabet ΣΣΣ:

γγγ = α1...βω1 + ... + αn...β

ωnγγγ = α1...β

ω1 + ... + αn...β

ωnγγγ = α1...β

ω1 + ... + αn...β

ωn where

αiαiαi , βiβiβi are regular expressions over ΣΣΣ s.t. ε �∈ L(βi)ε �∈ L(βi)ε �∈ L(βi)

semantics: the language generated by γγγ is:

Lω(γ)def=

⋃1≤i≤n

L(αi)L(βi)ω ⊆ ΣωLω(γ)

def=

⋃1≤i≤n

L(αi)L(βi)ω ⊆ ΣωLω(γ)

def=

⋃1≤i≤n

L(αi)L(βi)ω ⊆ Σω

• language of (A∗...B)ω(A∗...B)ω(A∗...B)ω === set of all infinite words overΣ = {A, B}Σ = {A, B}Σ = {A, B} containing infinitely many BBB’s

• language of (A∗...B)ω + (B∗...A)ω(A∗...B)ω + (B∗...A)ω(A∗...B)ω + (B∗...A)ω === set of all infinitewords over ΣΣΣ with infinitely many AAA’s or BBB ’s === ΣωΣωΣω

23 / 233

Page 24: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

ωωω-regular languages ltlmc3.2-25e

syntax of ωωω-regular expressions over alphabet ΣΣΣ:

γγγ = α1...βω1 + ... + αn...β

ωnγγγ = α1...β

ω1 + ... + αn...β

ωnγγγ = α1...β

ω1 + ... + αn...β

ωn where

αiαiαi , βiβiβi are regular expressions over ΣΣΣ s.t. ε �∈ L(βi)ε �∈ L(βi)ε �∈ L(βi)

semantics: the language generated by γγγ is:

Lω(γ)def=

⋃1≤i≤n

L(αi)L(βi)ω ⊆ ΣωLω(γ)

def=

⋃1≤i≤n

L(αi)L(βi)ω ⊆ ΣωLω(γ)

def=

⋃1≤i≤n

L(αi)L(βi)ω ⊆ Σω

A language L ⊆ ΣωL ⊆ ΣωL ⊆ Σω is called ωωω-regular iffthere exists an ωωω-regular expression γγγ s.t.

L = Lω(γ)L = Lω(γ)L = Lω(γ)

24 / 233

Page 25: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Provide an ωωω-regular expression for ... ltlmc3.2-25a

alphabet Σ = {A, B}Σ = {A, B}Σ = {A, B}• set of all infinite words over ΣΣΣ containing only

finitely many AAA’s

25 / 233

Page 26: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Provide an ωωω-regular expression for ... ltlmc3.2-25a

alphabet Σ = {A, B}Σ = {A, B}Σ = {A, B}• set of all infinite words over ΣΣΣ containing only

finitely many AAA’s

(A + B)∗.Bω(A + B)∗.Bω(A + B)∗.Bω

26 / 233

Page 27: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Provide an ωωω-regular expression for ... ltlmc3.2-25a

alphabet Σ = {A, B}Σ = {A, B}Σ = {A, B}• set of all infinite words over ΣΣΣ containing only

finitely many AAA’s

(A + B)∗.Bω(A + B)∗.Bω(A + B)∗.Bω

• set of all infinite words where each AAA is followedimmediately by letter BBB

27 / 233

Page 28: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Provide an ωωω-regular expression for ... ltlmc3.2-25a

alphabet Σ = {A, B}Σ = {A, B}Σ = {A, B}• set of all infinite words over ΣΣΣ containing only

finitely many AAA’s

(A + B)∗.Bω(A + B)∗.Bω(A + B)∗.Bω

• set of all infinite words where each AAA is followedimmediately by letter BBB

(B∗.A.B)∗.Bω + (B∗.A.B)ω(B∗.A.B)∗.Bω + (B∗.A.B)ω(B∗.A.B)∗.Bω + (B∗.A.B)ω

28 / 233

Page 29: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Provide an ωωω-regular expression for ... ltlmc3.2-25a

alphabet Σ = {A, B}Σ = {A, B}Σ = {A, B}• set of all infinite words over ΣΣΣ containing only

finitely many AAA’s

(A + B)∗.Bω(A + B)∗.Bω(A + B)∗.Bω

• set of all infinite words where each AAA is followedimmediately by letter BBB

(B∗.A.B)∗.Bω + (B∗.A.B)ω(B∗.A.B)∗.Bω + (B∗.A.B)ω(B∗.A.B)∗.Bω + (B∗.A.B)ω

• set of all infinite words where each AAA is followedeventually by letter BBB

29 / 233

Page 30: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Provide an ωωω-regular expression for ... ltlmc3.2-25a

alphabet Σ = {A, B}Σ = {A, B}Σ = {A, B}• set of all infinite words over ΣΣΣ containing only

finitely many AAA’s

(A + B)∗.Bω(A + B)∗.Bω(A + B)∗.Bω

• set of all infinite words where each AAA is followedimmediately by letter BBB

(B∗.A.B)∗.Bω + (B∗.A.B)ω(B∗.A.B)∗.Bω + (B∗.A.B)ω(B∗.A.B)∗.Bω + (B∗.A.B)ω

• set of all infinite words where each AAA is followedeventually by letter BBB

(B∗.A+.B)∗.Bω + (B∗.A+.B)ω(B∗.A+.B)∗.Bω + (B∗.A+.B)ω(B∗.A+.B)∗.Bω + (B∗.A+.B)ω

where α+ def= α...α∗α+ def= α...α∗α+ def= α...α∗.

30 / 233

Page 31: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Provide an ωωω-regular expression for ... ltlmc3.2-25a

alphabet Σ = {A, B}Σ = {A, B}Σ = {A, B}• set of all infinite words over ΣΣΣ containing only

finitely many AAA’s

(A + B)∗.Bω(A + B)∗.Bω(A + B)∗.Bω

• set of all infinite words where each AAA is followedimmediately by letter BBB

(B∗.A.B)∗.Bω + (B∗.A.B)ω(B∗.A.B)∗.Bω + (B∗.A.B)ω(B∗.A.B)∗.Bω + (B∗.A.B)ω

• set of all infinite words where each AAA is followedeventually by letter BBB

(B∗.A+.B)∗.Bω + (B∗.A+.B)ω(B∗.A+.B)∗.Bω + (B∗.A+.B)ω(B∗.A+.B)∗.Bω + (B∗.A+.B)ω ≡ (A∗.B)ω≡ (A∗.B)ω≡ (A∗.B)ω

where α+ def= α...α∗α+ def= α...α∗α+ def= α...α∗.

31 / 233

Page 32: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

ωωω-regular properties ltlmc3.2-25b

Let EEE be an LT-property over APAPAP , i.e., EEE ⊆ (2AP

)ω⊆ (2AP

)ω⊆ (2AP

32 / 233

Page 33: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

ωωω-regular properties ltlmc3.2-25b

Let EEE be an LT-property over APAPAP , i.e., EEE ⊆ (2AP

)ω⊆ (2AP

)ω⊆ (2AP

EEE is called an ωωω-regular property iff there existsan ωωω-regular expression γγγ over 2AP2AP2AP s.t. E = Lω(γ)E = Lω(γ)E = Lω(γ)

33 / 233

Page 34: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

ωωω-regular properties ltlmc3.2-25b

Let EEE be an LT-property over APAPAP , i.e., EEE ⊆ (2AP

)ω⊆ (2AP

)ω⊆ (2AP

EEE is called an ωωω-regular property iff there existsan ωωω-regular expression γγγ over 2AP2AP2AP s.t. E = Lω(γ)E = Lω(γ)E = Lω(γ)

Examples for AP = {a, b}AP = {a, b}AP = {a, b}• invariant with invariant condition a ∨ ¬ba ∨ ¬ba ∨ ¬b

34 / 233

Page 35: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

ωωω-regular properties ltlmc3.2-25b

Let EEE be an LT-property over APAPAP , i.e., EEE ⊆ (2AP

)ω⊆ (2AP

)ω⊆ (2AP

EEE is called an ωωω-regular property iff there existsan ωωω-regular expression γγγ over 2AP2AP2AP s.t. E = Lω(γ)E = Lω(γ)E = Lω(γ)

Examples for AP = {a, b}AP = {a, b}AP = {a, b}• invariant with invariant condition a ∨ ¬ba ∨ ¬ba ∨ ¬b

(∅+ {a}+ {a, b})ω(∅+ {a}+ {a, b})ω(∅+ {a}+ {a, b})ω

35 / 233

Page 36: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

ωωω-regular properties ltlmc3.2-25b

Let EEE be an LT-property over APAPAP , i.e., EEE ⊆ (2AP

)ω⊆ (2AP

)ω⊆ (2AP

EEE is called an ωωω-regular property iff there existsan ωωω-regular expression γγγ over 2AP2AP2AP s.t. E = Lω(γ)E = Lω(γ)E = Lω(γ)

Examples for AP = {a, b}AP = {a, b}AP = {a, b}• invariant with invariant condition a ∨ ¬ba ∨ ¬ba ∨ ¬b

(∅+ {a}+ {a, b})ω(∅+ {a}+ {a, b})ω(∅+ {a}+ {a, b})ω Each invariant is ωωω-regular

36 / 233

Page 37: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

ωωω-regular properties ltlmc3.2-25b

Let EEE be an LT-property over APAPAP , i.e., EEE ⊆ (2AP

)ω⊆ (2AP

)ω⊆ (2AP

EEE is called an ωωω-regular property iff there existsan ωωω-regular expression γγγ over 2AP2AP2AP s.t. E = Lω(γ)E = Lω(γ)E = Lω(γ)

Examples for AP = {a, b}AP = {a, b}AP = {a, b}• invariant with invariant condition a ∨ ¬ba ∨ ¬ba ∨ ¬b

(∅+ {a}+ {a, b})ω(∅+ {a}+ {a, b})ω(∅+ {a}+ {a, b})ω Each invariant is ωωω-regular

↙↙↙Let ΦΦΦ be an invariant condition and let

{A ⊆ AP : A |= Φ} = {A1, ..., Ak}{A ⊆ AP : A |= Φ} = {A1, ..., Ak}{A ⊆ AP : A |= Φ} = {A1, ..., Ak}Then: invariant “always ΦΦΦ” = (A1 + ... + Ak)

ω= (A1 + ... + Ak)ω= (A1 + ... + Ak)ω

37 / 233

Page 38: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

ωωω-regular properties ltlmc3.2-25f

Let EEE be an LT-property over APAPAP , i.e., EEE ⊆ (2AP

)ω⊆ (2AP

)ω⊆ (2AP

EEE is called an ωωω-regular property iff there existsan ωωω-regular expression γγγ over 2AP2AP2AP s.t. E = Lω(γ)E = Lω(γ)E = Lω(γ)

Examples for AP = {a, b}AP = {a, b}AP = {a, b}• invariant with invariant condition a ∨ ¬ba ∨ ¬ba ∨ ¬b

(∅+ {a}+ {a, b})ω(∅+ {a}+ {a, b})ω(∅+ {a}+ {a, b})ω

Indeed: each invariant is ωωω-regular

• “infinitely often aaa”

38 / 233

Page 39: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

ωωω-regular properties ltlmc3.2-25f

Let EEE be an LT-property over APAPAP , i.e., EEE ⊆ (2AP

)ω⊆ (2AP

)ω⊆ (2AP

EEE is called an ωωω-regular property iff there existsan ωωω-regular expression γγγ over 2AP2AP2AP s.t. E = Lω(γ)E = Lω(γ)E = Lω(γ)

Examples for AP = {a, b}AP = {a, b}AP = {a, b}• invariant with invariant condition a ∨ ¬ba ∨ ¬ba ∨ ¬b

(∅+ {a}+ {a, b})ω(∅+ {a}+ {a, b})ω(∅+ {a}+ {a, b})ω

Indeed: each invariant is ωωω-regular

• “infinitely often aaa”((∅+ {b})∗.({a}+ {a, b}) )ω((∅+ {b})∗.({a}+ {a, b}) )ω((∅+ {b})∗.({a}+ {a, b}) )ω

39 / 233

Page 40: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

ωωω-regular properties ltlmc3.2-25c

Let EEE be an LT-property over APAPAP , i.e., EEE ⊆ 2AP⊆ 2AP⊆ 2AP .

EEE is called an ωωω-regular property iff there existsan ωωω-regular expression γγγ over 2AP2AP2AP s.t. E = Lω(γ)E = Lω(γ)E = Lω(γ)

Examples for AP = {a, b}AP = {a, b}AP = {a, b}:• “always aaa” (or any other invariant)

• “infinitely often aaa”

• “eventually aaa”

40 / 233

Page 41: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

ωωω-regular properties ltlmc3.2-25c

Let EEE be an LT-property over APAPAP , i.e., EEE ⊆ 2AP⊆ 2AP⊆ 2AP .

EEE is called an ωωω-regular property iff there existsan ωωω-regular expression γγγ over 2AP2AP2AP s.t. E = Lω(γ)E = Lω(γ)E = Lω(γ)

Examples for AP = {a, b}AP = {a, b}AP = {a, b}:• “always aaa” (or any other invariant)

• “infinitely often aaa”

• “eventually aaa”

(2AP)∗.({a}+ {a, b}).(2AP)ω(2AP)∗.({a}+ {a, b}).(2AP)ω(2AP)∗.({a}+ {a, b}).(2AP)ω

where 2AP = ∅+ {a}+ {b}+ {a, b}2AP = ∅+ {a}+ {b}+ {a, b}2AP = ∅+ {a}+ {b}+ {a, b}41 / 233

Page 42: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

ωωω-regular properties ltlmc3.2-25c

Let EEE be an LT-property over APAPAP , i.e., EEE ⊆ 2AP⊆ 2AP⊆ 2AP .

EEE is called an ωωω-regular property iff there existsan ωωω-regular expression γγγ over 2AP2AP2AP s.t. E = Lω(γ)E = Lω(γ)E = Lω(γ)

Examples for AP = {a, b}AP = {a, b}AP = {a, b}:• “always aaa” (or any other invariant)

• “infinitely often aaa”

• “eventually aaa”

(2AP)∗.({a}+ {a, b}).(2AP)ω(2AP)∗.({a}+ {a, b}).(2AP)ω(2AP)∗.({a}+ {a, b}).(2AP)ω

• “from some moment on aaa”

42 / 233

Page 43: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

ωωω-regular properties ltlmc3.2-25c

Let EEE be an LT-property over APAPAP , i.e., EEE ⊆ 2AP⊆ 2AP⊆ 2AP .

EEE is called an ωωω-regular property iff there existsan ωωω-regular expression γγγ over 2AP2AP2AP s.t. E = Lω(γ)E = Lω(γ)E = Lω(γ)

Examples for AP = {a, b}AP = {a, b}AP = {a, b}:• “always aaa” (or any other invariant)

• “infinitely often aaa”

• “eventually aaa”

(2AP)∗.({a}+ {a, b}).(2AP)ω(2AP)∗.({a}+ {a, b}).(2AP)ω(2AP)∗.({a}+ {a, b}).(2AP)ω

• “from some moment on aaa”

(2AP)∗.({a}+ {a, b})ω(2AP)∗.({a}+ {a, b})ω(2AP)∗.({a}+ {a, b})ω

43 / 233

Page 44: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Symbolic notation ltlmc3.2-25d

symbolic notation for ωωω-regular properties

... using formulas instead of sums ....

44 / 233

Page 45: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Symbolic notation ltlmc3.2-25d

Examples for AP = {a, b}AP = {a, b}AP = {a, b}• invariant with invariant condition a ∨ ¬ba ∨ ¬ba ∨ ¬b

(∅+ {a}+ {a, b})ω(∅+ {a}+ {a, b})ω(∅+ {a}+ {a, b})ω

45 / 233

Page 46: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Symbolic notation ltlmc3.2-25d

Examples for AP = {a, b}AP = {a, b}AP = {a, b}• invariant with invariant condition a ∨ ¬ba ∨ ¬ba ∨ ¬b

(a ∨ ¬b)ω(a ∨ ¬b)ω(a ∨ ¬b)ω === (∅+ {a}+ {a, b})ω(∅+ {a}+ {a, b})ω(∅+ {a}+ {a, b})ω

46 / 233

Page 47: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Symbolic notation ltlmc3.2-25d

Examples for AP = {a, b}AP = {a, b}AP = {a, b}• invariant with invariant condition a ∨ ¬ba ∨ ¬ba ∨ ¬b

(a ∨ ¬b)ω(a ∨ ¬b)ω(a ∨ ¬b)ω === (∅+ {a}+ {a, b})ω(∅+ {a}+ {a, b})ω(∅+ {a}+ {a, b})ω

• “infinitely often aaa”((¬a)∗.a

)ω((¬a)∗.a

)ω((¬a)∗.a

)ω===

((∅+ {b})∗.({a}+ {a, b}))ω((∅+ {b})∗.({a}+ {a, b}))ω((∅+ {b})∗.({a}+ {a, b}))ω

47 / 233

Page 48: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Symbolic notation ltlmc3.2-25d

Examples for AP = {a, b}AP = {a, b}AP = {a, b}• invariant with invariant condition a ∨ ¬ba ∨ ¬ba ∨ ¬b

(a ∨ ¬b)ω(a ∨ ¬b)ω(a ∨ ¬b)ω === (∅+ {a}+ {a, b})ω(∅+ {a}+ {a, b})ω(∅+ {a}+ {a, b})ω

• “infinitely often aaa”((¬a)∗.a

)ω((¬a)∗.a

)ω((¬a)∗.a

)ω===

((∅+ {b})∗.({a}+ {a, b}))ω((∅+ {b})∗.({a}+ {a, b}))ω((∅+ {b})∗.({a}+ {a, b}))ω

• “from some moment on aaa”:

48 / 233

Page 49: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Symbolic notation ltlmc3.2-25d

Examples for AP = {a, b}AP = {a, b}AP = {a, b}• invariant with invariant condition a ∨ ¬ba ∨ ¬ba ∨ ¬b

(a ∨ ¬b)ω(a ∨ ¬b)ω(a ∨ ¬b)ω === (∅+ {a}+ {a, b})ω(∅+ {a}+ {a, b})ω(∅+ {a}+ {a, b})ω

• “infinitely often aaa”((¬a)∗.a

)ω((¬a)∗.a

)ω((¬a)∗.a

)ω===

((∅+ {b})∗.({a}+ {a, b}))ω((∅+ {b})∗.({a}+ {a, b}))ω((∅+ {b})∗.({a}+ {a, b}))ω

• “from some moment on aaa”:

true∗.aωtrue∗.aωtrue∗.aω

49 / 233

Page 50: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Symbolic notation ltlmc3.2-25d

Examples for AP = {a, b}AP = {a, b}AP = {a, b}• invariant with invariant condition a ∨ ¬ba ∨ ¬ba ∨ ¬b

(a ∨ ¬b)ω(a ∨ ¬b)ω(a ∨ ¬b)ω === (∅+ {a}+ {a, b})ω(∅+ {a}+ {a, b})ω(∅+ {a}+ {a, b})ω

• “infinitely often aaa”((¬a)∗.a

)ω((¬a)∗.a

)ω((¬a)∗.a

)ω===

((∅+ {b})∗.({a}+ {a, b}))ω((∅+ {b})∗.({a}+ {a, b}))ω((∅+ {b})∗.({a}+ {a, b}))ω

• “from some moment on aaa”:

true∗.aωtrue∗.aωtrue∗.aω

• “whenever aaa then bbb will hold somewhen later”

50 / 233

Page 51: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Symbolic notation ltlmc3.2-25d

Examples for AP = {a, b}AP = {a, b}AP = {a, b}• invariant with invariant condition a ∨ ¬ba ∨ ¬ba ∨ ¬b

(a ∨ ¬b)ω(a ∨ ¬b)ω(a ∨ ¬b)ω === (∅+ {a}+ {a, b})ω(∅+ {a}+ {a, b})ω(∅+ {a}+ {a, b})ω

• “infinitely often aaa”((¬a)∗.a

)ω((¬a)∗.a

)ω((¬a)∗.a

)ω===

((∅+ {b})∗.({a}+ {a, b}))ω((∅+ {b})∗.({a}+ {a, b}))ω((∅+ {b})∗.({a}+ {a, b}))ω

• “from some moment on aaa”:

true∗.aωtrue∗.aωtrue∗.aω

• “whenever aaa then bbb will hold somewhen later”((¬a)∗.a.true∗.b

)∗.(¬a)ω +

((¬a)∗.a.true∗.b

)ω((¬a)∗.a.true∗.b

)∗.(¬a)ω +

((¬a)∗.a.true∗.b

)ω((¬a)∗.a.true∗.b

)∗.(¬a)ω +

((¬a)∗.a.true∗.b

51 / 233

Page 52: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Nondeterministic Buchi automata (NBA) ltlmc3.2-21a

52 / 233

Page 53: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Nondeterministic Buchi automata (NBA) ltlmc3.2-21a

syntax as for NFA↑↑↑

nondeterministic finite automata

53 / 233

Page 54: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Nondeterministic Buchi automata (NBA) ltlmc3.2-21a

syntax as for NFA↑↑↑

nondeterministic finite automata

semantics: language of infinite words

54 / 233

Page 55: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Nondeterministic Buchi automata (NBA) ltlmc3.2-21a

NBA A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )

55 / 233

Page 56: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Nondeterministic Buchi automata (NBA) ltlmc3.2-21a

NBA A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )

• QQQ finite set of states

56 / 233

Page 57: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Nondeterministic Buchi automata (NBA) ltlmc3.2-21a

NBA A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )

• QQQ finite set of states

• ΣΣΣ alphabet

57 / 233

Page 58: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Nondeterministic Buchi automata (NBA) ltlmc3.2-21a

NBA A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )

• QQQ finite set of states

• ΣΣΣ alphabet

• δ : Q × Σ→ 2Qδ : Q × Σ→ 2Qδ : Q × Σ→ 2Q transition relation

58 / 233

Page 59: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Nondeterministic Buchi automata (NBA) ltlmc3.2-21a

NBA A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )

• QQQ finite set of states

• ΣΣΣ alphabet

• δ : Q × Σ→ 2Qδ : Q × Σ→ 2Qδ : Q × Σ→ 2Q transition relation

• Q0 ⊆ QQ0 ⊆ QQ0 ⊆ Q set of initial states

59 / 233

Page 60: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Nondeterministic Buchi automata (NBA) ltlmc3.2-21a

NBA A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )

• QQQ finite set of states

• ΣΣΣ alphabet

• δ : Q × Σ→ 2Qδ : Q × Σ→ 2Qδ : Q × Σ→ 2Q transition relation

• Q0 ⊆ QQ0 ⊆ QQ0 ⊆ Q set of initial states

• F ⊆ QF ⊆ QF ⊆ Q set of final states, also called accept states

60 / 233

Page 61: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Nondeterministic Buchi automata (NBA) ltlmc3.2-21a

NBA A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )

• QQQ finite set of states

• ΣΣΣ alphabet

• δ : Q × Σ→ 2Qδ : Q × Σ→ 2Qδ : Q × Σ→ 2Q transition relation

• Q0 ⊆ QQ0 ⊆ QQ0 ⊆ Q set of initial states

• F ⊆ QF ⊆ QF ⊆ Q set of final states, also called accept states

run for a word A0 A1 A2 . . . ∈ ΣωA0 A1 A2 . . . ∈ ΣωA0 A1 A2 . . . ∈ Σω:

state sequence π = q0 q1 q2 . . .π = q0 q1 q2 . . .π = q0 q1 q2 . . . where q0 ∈ Q0q0 ∈ Q0q0 ∈ Q0

and qi+1 ∈ δ(qi , Ai)qi+1 ∈ δ(qi , Ai)qi+1 ∈ δ(qi , Ai) for i ≥ 0i ≥ 0i ≥ 0

61 / 233

Page 62: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Nondeterministic Buchi automata (NBA) ltlmc3.2-21a

NBA A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )

• QQQ finite set of states

• ΣΣΣ alphabet

• δ : Q × Σ→ 2Qδ : Q × Σ→ 2Qδ : Q × Σ→ 2Q transition relation

• Q0 ⊆ QQ0 ⊆ QQ0 ⊆ Q set of initial states

• F ⊆ QF ⊆ QF ⊆ Q set of final states, also called accept states

run for a word A0 A1 A2 . . . ∈ ΣωA0 A1 A2 . . . ∈ ΣωA0 A1 A2 . . . ∈ Σω:

state sequence π = q0 q1 q2 . . .π = q0 q1 q2 . . .π = q0 q1 q2 . . . where q0 ∈ Q0q0 ∈ Q0q0 ∈ Q0

and qi+1 ∈ δ(qi , Ai)qi+1 ∈ δ(qi , Ai)qi+1 ∈ δ(qi , Ai) for i ≥ 0i ≥ 0i ≥ 0

run πππ is accepting if∞∃ i ∈ N. qi ∈ F∞∃ i ∈ N. qi ∈ F∞∃ i ∈ N. qi ∈ F

62 / 233

Page 63: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Nondeterministic Buchi automata (NBA) ltlmc3.2-21

NBA A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )

• QQQ finite set of states

• ΣΣΣ alphabet

• δ : Q × Σ→ 2Qδ : Q × Σ→ 2Qδ : Q × Σ→ 2Q transition relation

• Q0 ⊆ QQ0 ⊆ QQ0 ⊆ Q set of initial states

• F ⊆ QF ⊆ QF ⊆ Q set of final states, also called accept states

accepted language Lω(A) ⊆ ΣωLω(A) ⊆ ΣωLω(A) ⊆ Σω is given by:

Lω(A)def=Lω(A)def=Lω(A)def= set of infinite words over ΣΣΣ that have

an accepting run in AAA63 / 233

Page 64: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Notations in pictures for NBA ltlmc3.2-22a

q0q0q0 q1q1q1

BBB AAA

AAA

BBB initial state

nonfinal state

final state

64 / 233

Page 65: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Notations in pictures for NBA ltlmc3.2-22a

q0q0q0 q1q1q1

BBB AAA

AAA

BBB initial state

nonfinal state

final state

NBA with state space {q0, q1}{q0, q1}{q0, q1}q0q0q0 initial stateq1q1q1 accept statealphabet Σ = {A, B}Σ = {A, B}Σ = {A, B}

65 / 233

Page 66: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Examples for NBA over Σ = {A, B}Σ = {A, B}Σ = {A, B} ltlmc3.2-22

q0q0q0 q1q1q1

BBB AAA

AAA

BBB accepted language: ?

66/233

Page 67: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Examples for NBA over Σ = {A, B}Σ = {A, B}Σ = {A, B} ltlmc3.2-22

q0q0q0 q1q1q1

BBB AAA

AAA

BBB accepted language:set of all infinite words thatcontain infinitely many AAA’s

67 / 233

Page 68: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Examples for NBA over Σ = {A, B}Σ = {A, B}Σ = {A, B} ltlmc3.2-22

q0q0q0 q1q1q1

BBB AAA

AAA

BBB accepted language:set of all infinite words thatcontain infinitely many AAA’s

(B∗.A)ω(B∗.A)ω(B∗.A)ω

68 / 233

Page 69: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Examples for NBA over Σ = {A, B}Σ = {A, B}Σ = {A, B} ltlmc3.2-22

q0q0q0 q1q1q1

BBB AAA

AAA

BBB accepted language:set of all infinite words thatcontain infinitely many AAA’s

(B∗.A)ω(B∗.A)ω(B∗.A)ω

q1q1q1 q2q2q2q0q0q0

AAA

AAA

BBB

AAA

69 / 233

Page 70: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Examples for NBA over Σ = {A, B}Σ = {A, B}Σ = {A, B} ltlmc3.2-22

q0q0q0 q1q1q1

BBB AAA

AAA

BBB accepted language:set of all infinite words thatcontain infinitely many AAA’s

(B∗.A)ω(B∗.A)ω(B∗.A)ω

q1q1q1 q2q2q2q0q0q0

AAA

AAA

BBB

AAA

A A B A A B A A B ...A A B A A B A A B ...A A B A A B A A B ...

A A A A A A A A A ...A A A A A A A A A ...A A A A A A A A A ...

}}}accepted words

70 / 233

Page 71: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Examples for NBA over Σ = {A, B}Σ = {A, B}Σ = {A, B} ltlmc3.2-22

q0q0q0 q1q1q1

BBB AAA

AAA

BBB accepted language:set of all infinite words thatcontain infinitely many AAA’s

(B∗.A)ω(B∗.A)ω(B∗.A)ω

q1q1q1 q2q2q2q0q0q0

AAA

AAA

BBB

AAA

accepted language:“every BBB is precededby a positive evennumber of AAA’s”

A A B A A B A A B ...A A B A A B A A B ...A A B A A B A A B ...

A A A A A A A A A ...A A A A A A A A A ...A A A A A A A A A ...

}}}accepted words

71 / 233

Page 72: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Examples for NBA over Σ = {A, B}Σ = {A, B}Σ = {A, B} ltlmc3.2-22

q0q0q0 q1q1q1

BBB AAA

AAA

BBB accepted language:set of all infinite words thatcontain infinitely many AAA’s

(B∗.A)ω(B∗.A)ω(B∗.A)ω

q1q1q1 q2q2q2q0q0q0

AAA

AAA

BBB

AAA

accepted language:“every BBB is precededby a positive evennumber of AAA’s”

((A.A)+.B)ω + ((A.A)+.B)∗.Aω((A.A)+.B)ω + ((A.A)+.B)∗.Aω((A.A)+.B)ω + ((A.A)+.B)∗.Aω

72 / 233

Page 73: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

NBA for LT properties ltlmc3.2-21b

73 / 233

Page 74: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

NBA for LT properties ltlmc3.2-21b

NBA A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )

• QQQ finite set of states

• ΣΣΣ alphabet

• δ : Q × Σ→ 2Qδ : Q × Σ→ 2Qδ : Q × Σ→ 2Q transition relation

• Q0 ⊆ QQ0 ⊆ QQ0 ⊆ Q set of initial states

• F ⊆ QF ⊆ QF ⊆ Q set of final states, also called accept states

74 / 233

Page 75: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

NBA for LT properties ltlmc3.2-21b

NBA A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )

• QQQ finite set of states

• ΣΣΣ alphabet←−←−←− here: Σ = 2APΣ = 2APΣ = 2AP

• δ : Q × Σ→ 2Qδ : Q × Σ→ 2Qδ : Q × Σ→ 2Q transition relation

• Q0 ⊆ QQ0 ⊆ QQ0 ⊆ Q set of initial states

• F ⊆ QF ⊆ QF ⊆ Q set of final states, also called accept states

75 / 233

Page 76: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

NBA for LT properties ltlmc3.2-21b

NBA A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )

• QQQ finite set of states

• ΣΣΣ alphabet←−←−←− here: Σ = 2APΣ = 2APΣ = 2AP

• δ : Q × Σ→ 2Qδ : Q × Σ→ 2Qδ : Q × Σ→ 2Q transition relation

• Q0 ⊆ QQ0 ⊆ QQ0 ⊆ Q set of initial states

• F ⊆ QF ⊆ QF ⊆ Q set of final states, also called accept states

accepted language Lω(A)Lω(A)Lω(A) is an LT-property:

Lω(A) =Lω(A) =Lω(A) = set of infinite words over 2AP2AP2AP thathave an accepting run in AAA

76 / 233

Page 77: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

NBA for LT properties ltlmc3.2-NBA-2-omega-reg

q0q0q0 q1q1q1 q2q2q2 truetrue ¬a¬a¬a

Lω(A)Lω(A)Lω(A) === ?

set of atomic propositions AP = {a, b}AP = {a, b}AP = {a, b}

77 / 233

Page 78: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

NBA for LT properties ltlmc3.2-NBA-2-omega-reg

q0q0q0 q1q1q1 q2q2q2 truetrue ¬a¬a¬a

Lω(A)Lω(A)Lω(A) === true.¬a..¬a..¬a. trueωωω

set of atomic propositions AP = {a, b}AP = {a, b}AP = {a, b}

78 / 233

Page 79: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

NBA for LT properties ltlmc3.2-NBA-2-omega-reg

q0q0q0 q1q1q1 q2q2q2 truetrue ¬a¬a¬a

Lω(A)Lω(A)Lω(A) === true.¬a..¬a..¬a. trueωωω

q0q0q0 q1q1q1 trueaaa

p0p0p0 p1p1p1 true¬b¬b¬b

set of atomic propositions AP = {a, b}AP = {a, b}AP = {a, b}

79 / 233

Page 80: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

NBA for LT properties ltlmc3.2-NBA-2-omega-reg

q0q0q0 q1q1q1 q2q2q2 truetrue ¬a¬a¬a

Lω(A)Lω(A)Lω(A) === true.¬a..¬a..¬a. trueωωω

q0q0q0 q1q1q1 trueaaa

p0p0p0 p1p1p1 true¬b¬b¬b (a ∨ ¬b).(a ∨ ¬b).(a ∨ ¬b).trueωωω

set of atomic propositions AP = {a, b}AP = {a, b}AP = {a, b}

80 / 233

Page 81: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

NBA for LT properties ltlmc3.2-NBA-2-omega-reg

q0q0q0 q1q1q1

aaa

bbba ∨ ¬ba ∨ ¬ba ∨ ¬b

81 / 233

Page 82: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

NBA for LT properties ltlmc3.2-NBA-2-omega-reg

q0q0q0 q1q1q1

aaa

bbba ∨ ¬ba ∨ ¬ba ∨ ¬b

“always aaa” === aωaωaω

82 / 233

Page 83: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

NBA for LT properties ltlmc3.2-NBA-2-omega-reg

q0q0q0 q1q1q1

aaa

bbba ∨ ¬ba ∨ ¬ba ∨ ¬b

“always aaa” === aωaωaω

q0q0q0 q1q1q1

aaabbbaaa

bbb

83 / 233

Page 84: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

NBA for LT properties ltlmc3.2-NBA-2-omega-reg

q0q0q0 q1q1q1

aaa

bbba ∨ ¬ba ∨ ¬ba ∨ ¬b

“always aaa” === aωaωaω

q0q0q0 q1q1q1

aaabbbaaa

bbb

“infinitely often aaa and ...”

84 / 233

Page 85: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

NBA for LT properties ltlmc3.2-NBA-2-omega-reg

q0q0q0 q1q1q1

aaa

bbba ∨ ¬ba ∨ ¬ba ∨ ¬b

“always aaa” === aωaωaω

q0q0q0 q1q1q1

aaabbbaaa

bbb

“infinitely often aaa and always a ∨ ba ∨ ba ∨ b”

===((a ∨ b)∗.a

)ω((a ∨ b)∗.a

)ω((a ∨ b)∗.a

85 / 233

Page 86: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

NBA for LT properties ltlmc3.2-NBA-2-omega-reg

q0q0q0 q1q1q1

aaabbbaaa

bbb

“infinitely often aaa andalways a ∨ ba ∨ ba ∨ b”((a ∨ b)∗.a

)ω((a ∨ b)∗.a

)ω((a ∨ b)∗.a

“infinitely often aaa”((¬a)∗.a

)ω((¬a)∗.a

)ω((¬a)∗.a

86 / 233

Page 87: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

NBA for LT properties ltlmc3.2-NBA-2-omega-reg

q0q0q0 q1q1q1

aaabbbaaa

bbb

“infinitely often aaa andalways a ∨ ba ∨ ba ∨ b”((a ∨ b)∗.a

)ω((a ∨ b)∗.a

)ω((a ∨ b)∗.a

q0q0q0 q1q1q1

aaa¬a¬a¬aaaa

¬a¬a¬a

“infinitely often aaa”((¬a)∗.a

)ω((¬a)∗.a

)ω((¬a)∗.a

87 / 233

Page 88: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

From NBA to ωωω-regular expressions ltlmc3.2-NBA-to-omega

88 / 233

Page 89: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

From NBA to ωωω-regular expressions ltlmc3.2-NBA-to-omega

For each NBA AAA there is an ωωω-regular expression γγγwith Lω(A) = Lω(γ)Lω(A) = Lω(γ)Lω(A) = Lω(γ)

89 / 233

Page 90: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

From NBA to ωωω-regular expressions ltlmc3.2-NBA-to-omega

For each NBA AAA there is an ωωω-regular expression γγγwith Lω(A) = Lω(γ)Lω(A) = Lω(γ)Lω(A) = Lω(γ)

Proof. Let AAA be an NBA (Q, Σ, δ, Q0, F )(Q, Σ, δ, Q0, F )(Q, Σ, δ, Q0, F )

90 / 233

Page 91: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

From NBA to ωωω-regular expressions ltlmc3.2-NBA-to-omega

For each NBA AAA there is an ωωω-regular expression γγγwith Lω(A) = Lω(γ)Lω(A) = Lω(γ)Lω(A) = Lω(γ)

Proof. Let AAA be an NBA (Q, Σ, δ, Q0, F )(Q, Σ, δ, Q0, F )(Q, Σ, δ, Q0, F ) and q, p ∈ Qq, p ∈ Qq, p ∈ Q.

Let Aq,pAq,pAq,p be the NFA (Q, Σ, δ, q, {p})(Q, Σ, δ, q, {p})(Q, Σ, δ, q, {p}).

91 / 233

Page 92: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

From NBA to ωωω-regular expressions ltlmc3.2-NBA-to-omega

For each NBA AAA there is an ωωω-regular expression γγγwith Lω(A) = Lω(γ)Lω(A) = Lω(γ)Lω(A) = Lω(γ)

Proof. Let AAA be an NBA (Q, Σ, δ, Q0, F )(Q, Σ, δ, Q0, F )(Q, Σ, δ, Q0, F ) and q, p ∈ Qq, p ∈ Qq, p ∈ Q.

Let Aq,pAq,pAq,p be the NFA (Q, Σ, δ, q, {p})(Q, Σ, δ, q, {p})(Q, Σ, δ, q, {p}). Then:

Lω(A) =⋃

q∈Q0

⋃p∈F

L(Aq,p)(L(Ap,p) \ {ε}

)ωLω(A) =⋃

q∈Q0

⋃p∈F

L(Aq,p)(L(Ap,p) \ {ε}

)ωLω(A) =⋃

q∈Q0

⋃p∈F

L(Aq,p)(L(Ap,p) \ {ε}

92 / 233

Page 93: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

From NBA to ωωω-regular expressions ltlmc3.2-NBA-to-omega

For each NBA AAA there is an ωωω-regular expression γγγwith Lω(A) = Lω(γ)Lω(A) = Lω(γ)Lω(A) = Lω(γ)

Proof. Let AAA be an NBA (Q, Σ, δ, Q0, F )(Q, Σ, δ, Q0, F )(Q, Σ, δ, Q0, F ) and q, p ∈ Qq, p ∈ Qq, p ∈ Q.

Let Aq,pAq,pAq,p be the NFA (Q, Σ, δ, q, {p})(Q, Σ, δ, q, {p})(Q, Σ, δ, q, {p}). Then:

Lω(A) =⋃

q∈Q0

⋃p∈F

L(Aq,p)(L(Ap,p) \ {ε}

)ωLω(A) =⋃

q∈Q0

⋃p∈F

L(Aq,p)(L(Ap,p) \ {ε}

)ωLω(A) =⋃

q∈Q0

⋃p∈F

L(Aq,p)(L(Ap,p) \ {ε}

is ωωω-regular as L(Aq,p)L(Aq,p)L(Aq,p) and L(Ap,p) \ {ε}L(Ap,p) \ {ε}L(Ap,p) \ {ε} are regular

93 / 233

Page 94: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Example: NBA ��� ωωω-regular expression ltlmc3.2-26

NBA AAA

111 333

222AAA

AAA

AAA

BBB

94 / 233

Page 95: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Example: NBA ��� ωωω-regular expression ltlmc3.2-26

NBA AAA

111 333

222AAA

AAA

AAA

BBB

Lω(A)Lω(A)Lω(A) === L12(L′22)

ω ∪ L22(L′22)

ωL12(L′22)

ω ∪ L22(L′22)

ωL12(L′22)

ω ∪ L22(L′22)

ω

L12L12L12 === L(A12)L(A12)L(A12)L22L22L22 === L(A22)L(A22)L(A22)L′22L′22L′22 === L22 \ {ε}L22 \ {ε}L22 \ {ε}

95 / 233

Page 96: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Example: NBA ��� ωωω-regular expression ltlmc3.2-26

NBA AAA

111 333

222AAA

AAA

AAA

BBB

Lω(A)Lω(A)Lω(A) === L12(L′22)

ω ∪ L22(L′22)

ωL12(L′22)

ω ∪ L22(L′22)

ωL12(L′22)

ω ∪ L22(L′22)

ω

L12L12L12 === L(A12)L(A12)L(A12)L22L22L22 === L(A22)L(A22)L(A22)L′22L′22L′22 === L22 \ {ε}L22 \ {ε}L22 \ {ε}

NFA A12A12A12

111 333

222AAA

AAA

AAA

BBB

96 / 233

Page 97: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Example: NBA ��� ωωω-regular expression ltlmc3.2-26

NBA AAA

111 333

222AAA

AAA

AAA

BBB

Lω(A)Lω(A)Lω(A) === L12(L′22)

ω ∪ L22(L′22)

ωL12(L′22)

ω ∪ L22(L′22)

ωL12(L′22)

ω ∪ L22(L′22)

ω

L12L12L12 === L(A12)L(A12)L(A12)L22L22L22 === L(A22)L(A22)L(A22)L′22L′22L′22 === L22 \ {ε}L22 \ {ε}L22 \ {ε}

L12L12L12 === A.(B.A + A.A.A)∗A.(B.A + A.A.A)∗A.(B.A + A.A.A)∗

NFA A12A12A12

111 333

222AAA

AAA

AAA

BBB

97 / 233

Page 98: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Example: NBA ��� ωωω-regular expression ltlmc3.2-26

NBA AAA

111 333

222AAA

AAA

AAA

BBB

Lω(A)Lω(A)Lω(A) === L12(L′22)

ω ∪ L22(L′22)

ωL12(L′22)

ω ∪ L22(L′22)

ωL12(L′22)

ω ∪ L22(L′22)

ω

L12L12L12 === L(A12)L(A12)L(A12)L22L22L22 === L(A22)L(A22)L(A22)L′22L′22L′22 === L22 \ {ε}L22 \ {ε}L22 \ {ε}

L12L12L12 === A.(B.A + A.A.A)∗A.(B.A + A.A.A)∗A.(B.A + A.A.A)∗ L′22L′22L′22 === (B .A + A.A.A)+(B.A + A.A.A)+(B.A + A.A.A)+

NFA A12A12A12

111 333

222AAA

AAA

AAA

BBB111 333

init

222AAABBB

AAA

AAA

AAA

BBB

98 / 233

Page 99: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Example: NBA ��� ωωω-regular expression ltlmc3.2-26

NBA AAA

111 333

222AAA

AAA

AAA

BBB

language of AAA:

A.(B.A + A.A.A)ωA.(B.A + A.A.A)ωA.(B.A + A.A.A)ω

+++ (B.A + A.A.A)ω(B .A + A.A.A)ω(B.A + A.A.A)ω

L12L12L12 === A.(B.A + A.A.A)∗A.(B.A + A.A.A)∗A.(B.A + A.A.A)∗ L′22L′22L′22 === (B .A + A.A.A)+(B.A + A.A.A)+(B.A + A.A.A)+

NFA A12A12A12

111 333

222AAA

AAA

AAA

BBB111 333

init

222AAABBB

AAA

AAA

AAA

BBB

99 / 233

Page 100: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Example: NBA ��� ωωω-regular expression ltlmc3.2-26

NBA AAA

111 333

222AAA

AAA

AAA

BBB

language of AAA:

A.(B.A + A.A.A)ωA.(B.A + A.A.A)ωA.(B.A + A.A.A)ω

+++ (B.A + A.A.A)ω(B .A + A.A.A)ω(B.A + A.A.A)ω

≡ (A + ε).(B.A + A.A.A)ω≡ (A + ε).(B.A + A.A.A)ω≡ (A + ε).(B.A + A.A.A)ω

L12L12L12 === A.(B.A + A.A.A)∗A.(B.A + A.A.A)∗A.(B.A + A.A.A)∗ L′22L′22L′22 === (B .A + A.A.A)+(B.A + A.A.A)+(B.A + A.A.A)+

NFA A12A12A12

111 333

222AAA

AAA

AAA

BBB111 333

init

222AAABBB

AAA

AAA

AAA

BBB

100 / 233

Page 101: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

From ωωω-regular expressions to NBA ltlmc3.2-27

101 / 233

Page 102: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

From ωωω-regular expressions to NBA ltlmc3.2-27

For each ωωω-regular expression

γ = α1.βω1 + ... + αn.β

ωnγ = α1.β

ω1 + ... + αn.β

ωnγ = α1.β

ω1 + ... + αn.β

ωn

there exists an NBA AAA with Lω(A) = Lω(γ)Lω(A) = Lω(γ)Lω(A) = Lω(γ).

102 / 233

Page 103: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

From ωωω-regular expressions to NBA ltlmc3.2-27

For each ωωω-regular expression

γ = α1.βω1 + ... + αn.β

ωnγ = α1.β

ω1 + ... + αn.β

ωnγ = α1.β

ω1 + ... + αn.β

ωn

there exists an NBA AAA with Lω(A) = Lω(γ)Lω(A) = Lω(γ)Lω(A) = Lω(γ).

Proof.

103 / 233

Page 104: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

From ωωω-regular expressions to NBA ltlmc3.2-27

For each ωωω-regular expression

γ = α1.βω1 + ... + αn.β

ωnγ = α1.β

ω1 + ... + αn.β

ωnγ = α1.β

ω1 + ... + αn.β

ωn

there exists an NBA AAA with Lω(A) = Lω(γ)Lω(A) = Lω(γ)Lω(A) = Lω(γ).

Proof. consider NFA AiAiAi for αiαiαi and BiBiBi for βiβiβi

104 / 233

Page 105: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

From ωωω-regular expressions to NBA ltlmc3.2-27

For each ωωω-regular expression

γ = α1.βω1 + ... + αn.β

ωnγ = α1.β

ω1 + ... + αn.β

ωnγ = α1.β

ω1 + ... + αn.β

ωn

there exists an NBA AAA with Lω(A) = Lω(γ)Lω(A) = Lω(γ)Lω(A) = Lω(γ).

Proof. consider NFA AiAiAi for αiαiαi and BiBiBi for βiβiβi

• construct NBA BωiBωiBωi for βω

iβωiβωi

105 / 233

Page 106: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

From ωωω-regular expressions to NBA ltlmc3.2-27

For each ωωω-regular expression

γ = α1.βω1 + ... + αn.β

ωnγ = α1.β

ω1 + ... + αn.β

ωnγ = α1.β

ω1 + ... + αn.β

ωn

there exists an NBA AAA with Lω(A) = Lω(γ)Lω(A) = Lω(γ)Lω(A) = Lω(γ).

Proof. consider NFA AiAiAi for αiαiαi and BiBiBi for βiβiβi

• construct NBA BωiBωiBωi for βω

iβωiβωi

• construct NBA Ci = AiBωiCi = AiBωiCi = AiBωi for αi .β

ωiαi .βωiαi .βωi

106 / 233

Page 107: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

From ωωω-regular expressions to NBA ltlmc3.2-27

For each ωωω-regular expression

γ = α1.βω1 + ... + αn.β

ωnγ = α1.β

ω1 + ... + αn.β

ωnγ = α1.β

ω1 + ... + αn.β

ωn

there exists an NBA AAA with Lω(A) = Lω(γ)Lω(A) = Lω(γ)Lω(A) = Lω(γ).

Proof. consider NFA AiAiAi for αiαiαi and BiBiBi for βiβiβi

• construct NBA BωiBωiBωi for βω

iβωiβωi

• construct NBA Ci = AiBωiCi = AiBωiCi = AiBωi for αi .β

ωiαi .βωiαi .βωi

• construct NBA for⋃

1≤i≤n

Lω(Ci)⋃

1≤i≤n

Lω(Ci)⋃

1≤i≤n

Lω(Ci)

107 / 233

Page 108: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

From ωωω-regular expressions to NBA ltlmc3.2-27a

For each ωωω-regular expression

γ = α1.βω1 + ... + αn.β

ωnγ = α1.β

ω1 + ... + αn.β

ωnγ = α1.β

ω1 + ... + αn.β

ωn

there exists an NBA AAA with Lω(A) = Lω(γ)Lω(A) = Lω(γ)Lω(A) = Lω(γ).

Proof. consider NFA AiAiAi for αiαiαi and BiBiBi for βiβiβi

• construct NBA BωiBωiBωi for βω

iβωiβωi

• construct NBA Ci = AiBωiCi = AiBωiCi = AiBωi for αi .β

ωiαi .βωiαi .βωi

• construct NBA for⋃

1≤i≤n

Lω(Ci)⋃

1≤i≤n

Lω(Ci)⋃

1≤i≤n

Lω(Ci) ←−←−←−

108 / 233

Page 109: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

NBA are closed under union ltlmc3.2-28

109 / 233

Page 110: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

NBA are closed under union ltlmc3.2-28

NBA A1A1A1

q0q0q0

...

...

............

NBA A2A2A2

p0p0p0

...

...

............

110 / 233

Page 111: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

NBA are closed under union ltlmc3.2-28

NBA A1A1A1

q0q0q0

...

...

............

NBA A2A2A2

p0p0p0

...

...

............

NBA for Lω(A1) ∪ Lω(A2)Lω(A1) ∪ Lω(A2)Lω(A1) ∪ Lω(A2)

q0q0q0

...

...

............

p0p0p0

...

...

............

111 / 233

Page 112: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

From ωωω-regular expressions to NBA ltlmc3.2-27b

For each ωωω-regular expression

γ = α1.βω1 + ... + αn.β

ωnγ = α1.β

ω1 + ... + αn.β

ωnγ = α1.β

ω1 + ... + αn.β

ωn

there exists an NBA AAA with Lω(A) = Lω(γ)Lω(A) = Lω(γ)Lω(A) = Lω(γ).

Proof. consider NFA AiAiAi for αiαiαi and BiBiBi for βiβiβi

• construct NBA BωiBωiBωi for βω

iβωiβωi

• construct NBA Ci = AiBωiCi = AiBωiCi = AiBωi for αi .β

ωiαi .βωiαi .βωi ←−←−←−

• construct NBA for⋃

1≤i≤n

Lω(Ci)⋃

1≤i≤n

Lω(Ci)⋃

1≤i≤n

Lω(Ci)

112 / 233

Page 113: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Concatenation of an NFA and an NBA ltlmc3.2-29

113 / 233

Page 114: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Concatenation of an NFA and an NBA ltlmc3.2-29

NFA A1A1A1

q0q0q0. . .. . .. . .. . .. . .. . . qqq

NBA A2A2A2

p0p0p0

p1p1p1

p2p2p2

. . .. . .. . .

. . .. . .. . .AAA

BBB . . .. . .. . .. . .. . .. . .

114 / 233

Page 115: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Concatenation of an NFA and an NBA ltlmc3.2-29

NFA A1A1A1

q0q0q0. . .. . .. . .. . .. . .. . . qqq

NBA A2A2A2

p0p0p0

p1p1p1

p2p2p2

. . .. . .. . .

. . .. . .. . .AAA

BBB . . .. . .. . .. . .. . .. . .

NBA for L(A1).Lω(A2)L(A1).Lω(A2)L(A1).Lω(A2):

q0q0q0 qqq p0p0p0

p1p1p1

p2p2p2

. . .. . .. . .

. . .. . .. . .. . .. . .. . .. . .. . .. . .

. . .. . .. . .

. . .. . .. . .

AAA

BBBBBB

AAA

115 / 233

Page 116: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Concatenation of an NFA and an NBA ltlmc3.2-29

NFA A1A1A1

q0q0q0. . .. . .. . .. . .. . .. . . qqq

NBA A2A2A2

p0p0p0

p1p1p1

p2p2p2

. . .. . .. . .

. . .. . .. . .AAA

BBB . . .. . .. . .. . .. . .. . .

NBA for L(A1).Lω(A2)L(A1).Lω(A2)L(A1).Lω(A2):

q0q0q0 qqq p0p0p0

p1p1p1

p2p2p2

. . .. . .. . .

. . .. . .. . .. . .. . .. . .. . .. . .. . .

. . .. . .. . .

. . .. . .. . .

AAA

BBBBBB

AAA

accept states as in A2A2A2116 / 233

Page 117: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Concatenation of an NFA and an NBA ltlmc3.2-29

NFA A1A1A1

q0q0q0. . .. . .. . .. . .. . .. . . qqq

NBA A2A2A2

p0p0p0

p1p1p1

p2p2p2

. . .. . .. . .

. . .. . .. . .AAA

BBB . . .. . .. . .. . .. . .. . .

NBA for L(A1).Lω(A2)L(A1).Lω(A2)L(A1).Lω(A2):

q0q0q0 qqq p0p0p0

p1p1p1

p2p2p2

. . .. . .. . .

. . .. . .. . .. . .. . .. . .. . .. . .. . .

. . .. . .. . .

. . .. . .. . .

AAA

BBBBBB

AAA

accept states as in A2A2A2117 / 233

Page 118: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

From ωωω-regular expressions to NBA ltlmc3.2-27c

For each ωωω-regular expression

γ = α1.βω1 + ... + αn.β

ωnγ = α1.β

ω1 + ... + αn.β

ωnγ = α1.β

ω1 + ... + αn.β

ωn

there exists an NBA AAA with Lω(A) = Lω(γ)Lω(A) = Lω(γ)Lω(A) = Lω(γ).

Proof. consider NFA AiAiAi for αiαiαi and BiBiBi for βiβiβi

• construct NBA BωiBωiBωi for βω

iβωiβωi ←−←−←−

• construct NBA Ci = AiBωiCi = AiBωiCi = AiBωi for αi .β

ωiαi .βωiαi .βωi

• construct NBA for⋃

1≤i≤n

Lω(Ci)⋃

1≤i≤n

Lω(Ci)⋃

1≤i≤n

Lω(Ci)

118 / 233

Page 119: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

ωωω-operator for NFA ltlmc3.2-30

119 / 233

Page 120: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

ωωω-operator for NFA ltlmc3.2-30

NFA AAA for languageL ⊆ Σ+L ⊆ Σ+L ⊆ Σ+

q0q0q0

q1q1q1 q2q2q2

qqq......

...

AAA BBB

��� NBA AωAωAω for languageLω ⊆ ΣωLω ⊆ ΣωLω ⊆ Σω

120 / 233

Page 121: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

ωωω-operator for NFA ltlmc3.2-30

NFA AAA for languageL ⊆ Σ+L ⊆ Σ+L ⊆ Σ+

q0q0q0

q1q1q1 q2q2q2

qqq......

...

AAA BBB

��� NBA AωAωAω for languageLω ⊆ ΣωLω ⊆ ΣωLω ⊆ Σω

q0q0q0

q1q1q1 q2q2q2

qqq......

...

AAA BBB

AAA BBB

121 / 233

Page 122: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

ωωω-operator for NFA ltlmc3.2-30

NFA AAA for languageL ⊆ Σ+L ⊆ Σ+L ⊆ Σ+

q0q0q0

q1q1q1 q2q2q2

qqq......

...

AAA BBB

��� NBA AωAωAω for languageLω ⊆ ΣωLω ⊆ ΣωLω ⊆ Σω

q0q0q0

q1q1q1 q2q2q2

qqq......

...

AAA BBB

AAA BBB

wrong !

122/ 233

Page 123: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

ωωω-operator for NFA ltlmc3.2-30

NFA AAA for languageL ⊆ Σ+L ⊆ Σ+L ⊆ Σ+

q0q0q0

q1q1q1 q2q2q2

qqq......

...

AAA BBB

��� NBA AωAωAω for languageLω ⊆ ΣωLω ⊆ ΣωLω ⊆ Σω

q0q0q0

q1q1q1 q2q2q2

qqq......

...

AAA BBB

AAA BBB

wrong !

123/ 233

Page 124: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

ωωω-operator for NFA ltlmc3.2-30

NFA AAA for languageL ⊆ Σ+L ⊆ Σ+L ⊆ Σ+

q0q0q0

q1q1q1 q2q2q2

qqq......

...

AAA BBB

��� NBA AωAωAω for languageLω ⊆ ΣωLω ⊆ ΣωLω ⊆ Σω

q0q0q0

q1q1q1 q2q2q2

qqq......

...

AAA BBB

AAA BBB

wrong !

... correct, if δ(q, x) = ∅ ∀q ∈ F ∀x ∈ Σδ(q, x) = ∅ ∀q ∈ F ∀x ∈ Σδ(q, x) = ∅ ∀q ∈ F ∀x ∈ Σ

124 / 233

Page 125: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

ωωω-operator for NFA ltlmc3.2-31

NFA AAA for languageL ⊆ Σ+L ⊆ Σ+L ⊆ Σ+ =⇒=⇒=⇒ NFA BBB for LLL s.t. all

final states are terminal

qqq

ppp

...

...

AAA

...

125 / 233

Page 126: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

ωωω-operator for NFA ltlmc3.2-31

NFA AAA for languageL ⊆ Σ+L ⊆ Σ+L ⊆ Σ+ =⇒=⇒=⇒ NFA BBB for LLL s.t. all

final states are terminal

qqq

ppp

...

...

AAA

...qqq

pppp′p′p′

...

...

AAA AAA

...

... add a new final state p′p′p′ ...126 / 233

Page 127: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

ωωω-operator for NFA ltlmc3.2-31

NFA AAA for languageL ⊆ Σ+L ⊆ Σ+L ⊆ Σ+ =⇒=⇒=⇒ NFA BBB for LLL s.t. all

final states are terminal⇓⇓⇓

NBA BωBωBω

qqq

ppp

...

...

AAA

...qqq

pppp′p′p′

...

...

AAA AAA

...

... add a new final state p′p′p′ ...127 / 233

Page 128: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

ωωω-operator for NFA ltlmc3.2-31

NFA AAA for languageL ⊆ Σ+L ⊆ Σ+L ⊆ Σ+ =⇒=⇒=⇒ NFA BBB for LLL s.t. all

final states are terminal⇓⇓⇓

NBA BωBωBω

q0q0q0

qqq

ppp

...

...

AAA

BBBq0q0q0

qqq

pppp′p′p′

...

...

AAA AAA

BBB

... add a new final state p′p′p′ ...128 / 233

Page 129: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

ωωω-operator for NFA ltlmc3.2-31

NFA AAA for languageL ⊆ Σ+L ⊆ Σ+L ⊆ Σ+ =⇒=⇒=⇒ NFA BBB for LLL s.t. all

final states are terminal⇓⇓⇓

NBA BωBωBω

q0q0q0

qqq

ppp

...

...

AAA

BBBq0q0q0

qqq

pppp′p′p′

...

...

AAA AAA

BBB

BBB

... add a new final state p′p′p′ ...129 / 233

Page 130: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

ωωω-operator for NFA ltlmc3.2-31

NFA AAA for languageL ⊆ Σ+L ⊆ Σ+L ⊆ Σ+ =⇒=⇒=⇒ NFA BBB for LLL s.t. all

final states are terminal⇓⇓⇓

NBA BωBωBω

q0q0q0

qqq

ppp

...

...

AAA

BBBq0q0q0

qqq

pppp′p′p′

...

...

AAA AAA

BBB

BBB

L(A)ω = Lω(Bω)L(A)ω = Lω(Bω)L(A)ω = Lω(Bω)130 / 233

Page 131: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Example: ωωω-operator for NFA ltlmc3.2-32

q0q0q0

ppp

NFA AAA for A.B∗A.B∗A.B∗

AAA

BBB

131 / 233

Page 132: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Example: ωωω-operator for NFA ltlmc3.2-32

q0q0q0

ppp

NFA AAA for A.B∗A.B∗A.B∗

AAA

BBB

NFA BBB for A.B∗A.B∗A.B∗

q0q0q0

ppp p′p′p′BBB

AAABBB

AAA

132 / 233

Page 133: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Example: ωωω-operator for NFA ltlmc3.2-32

q0q0q0

ppp

NFA AAA for A.B∗A.B∗A.B∗

AAA

BBB

NFA BBB for A.B∗A.B∗A.B∗

q0q0q0

ppp p′p′p′BBB

AAABBB

AAA

NBA BBBωωω

p′p′p′

q0q0q0

pppBBB

AAA

AAA AAA

BBB

AAA

133 / 233

Page 134: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Example: ωωω-operator for NFA ltlmc3.2-32

q0q0q0

ppp

NFA AAA for A.B∗A.B∗A.B∗

AAA

BBB

NFA BBB for A.B∗A.B∗A.B∗

q0q0q0

ppp p′p′p′BBB

AAABBB

AAA

NBA BBBωωω for (A.B∗)ω(A.B∗)ω(A.B∗)ω

p′p′p′

q0q0q0

pppBBB

AAA

AAA AAA

BBB

AAA

134 / 233

Page 135: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Equivalence of ωωω-regular expressions and NBA ltlmc3.2-32a

(1) For each NBA AAA there exists an ωωω-regularexpression γγγ with Lω(A) = Lω(γ)Lω(A) = Lω(γ)Lω(A) = Lω(γ)

(2) For each ωωω-regular expression γγγ there exists anNBA AAA with Lω(A) = Lω(γ)Lω(A) = Lω(γ)Lω(A) = Lω(γ)

135 / 233

Page 136: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Equivalence of ωωω-regular expressions and NBA ltlmc3.2-32a

(1) For each NBA AAA there exists an ωωω-regularexpression γγγ with Lω(A) = Lω(γ)Lω(A) = Lω(γ)Lω(A) = Lω(γ)

(2) For each ωωω-regular expression γγγ there exists anNBA AAA with Lω(A) = Lω(γ)Lω(A) = Lω(γ)Lω(A) = Lω(γ)

Corollary:

If EEE be an LT property then:

EEE is ωωω-regular iff E = Lω(A)E = Lω(A)E = Lω(A) for some NBA AAA

136 / 233

Page 137: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Equivalence of ωωω-regular expressions and NBA ltlmc3.2-32a

(1) For each NBA AAA there exists an ωωω-regularexpression γγγ with Lω(A) = Lω(γ)Lω(A) = Lω(γ)Lω(A) = Lω(γ)

(2) For each ωωω-regular expression γγγ there exists anNBA AAA with Lω(A) = Lω(γ)Lω(A) = Lω(γ)Lω(A) = Lω(γ)

Corollary:

If EEE be an LT property, i.e., E ⊆ (2AP

)ωE ⊆ (

2AP)ω

E ⊆ (2AP

)ω, then:

EEE is ωωω-regular iff E = Lω(A)E = Lω(A)E = Lω(A) for some NBA AAAover the alphabet 2AP2AP2AP

137 / 233

Page 138: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Closure properties of ωωω-regular properties ltlmc3.2-32b

138 / 233

Page 139: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Closure properties of ωωω-regular properties ltlmc3.2-32b

remind: Kleene’s theorem for regular languages:

The class of regular languages is closed under

• union, intersection, complementation• concatenation and Kleene star

139 / 233

Page 140: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Closure properties of ωωω-regular properties ltlmc3.2-32b

remind: Kleene’s theorem for regular languages:

The class of regular languages is closed under

• union, intersection, complementation• concatenation and Kleene star

The class of ωωω-regular languages is closed underunion, intersection and complementation.

140 / 233

Page 141: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Closure properties of ωωω-regular properties ltlmc3.2-32b

The class of ωωω-regular languages is closed underunion, intersection and complementation.

• union:

• intersection:

• complementation:

141 / 233

Page 142: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Closure properties of ωωω-regular properties ltlmc3.2-32b

The class of ωωω-regular languages is closed underunion, intersection and complementation.

• union:obvious from definition of ωωω-regular expressions

• intersection:

• complementation:

142 / 233

Page 143: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Closure properties of ωωω-regular properties ltlmc3.2-32b

The class of ωωω-regular languages is closed underunion, intersection and complementation.

• union:obvious from definition of ωωω-regular expressions

• intersection:will be discussed laterrelies on a certain product construction for NBA

• complementation:

143 / 233

Page 144: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Closure properties of ωωω-regular properties ltlmc3.2-32b

The class of ωωω-regular languages is closed underunion, intersection and complementation.

• union:obvious from definition of ωωω-regular expressions

• intersection:will be discussed laterrelies on a certain product construction for NBA

• complementation:much more difficult than for NFA,via other types of ωωω-automata

144 / 233

Page 145: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Nonemptiness for NBA ltlmc3.2-NBA-emptiness

145 / 233

Page 146: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Nonemptiness for NBA ltlmc3.2-NBA-emptiness

given: NBA A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )

question: does Lω(A) �= ∅Lω(A) �= ∅Lω(A) �= ∅ hold ?

146/233

Page 147: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Nonemptiness for NBA ltlmc3.2-NBA-emptiness

Let A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F ) be an NBA. Then:

Lω(A) �= ∅Lω(A) �= ∅Lω(A) �= ∅ iff ∃q0 ∈ Q0 ∃p ∈ F ∃x ∈ Σ∗ ∃y ∈ Σ+∃q0 ∈ Q0 ∃p ∈ F ∃x ∈ Σ∗ ∃y ∈ Σ+∃q0 ∈ Q0 ∃p ∈ F ∃x ∈ Σ∗ ∃y ∈ Σ+.

p ∈ δ(q0, x) ∩ δ(p, y)p ∈ δ(q0, x) ∩ δ(p, y)p ∈ δ(q0, x) ∩ δ(p, y)

147 / 233

Page 148: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Nonemptiness for NBA ltlmc3.2-NBA-emptiness

Let A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F ) be an NBA. Then:

Lω(A) �= ∅Lω(A) �= ∅Lω(A) �= ∅ iff ∃q0 ∈ Q0 ∃p ∈ F ∃x ∈ Σ∗ ∃y ∈ Σ+∃q0 ∈ Q0 ∃p ∈ F ∃x ∈ Σ∗ ∃y ∈ Σ+∃q0 ∈ Q0 ∃p ∈ F ∃x ∈ Σ∗ ∃y ∈ Σ+.

p ∈ δ(q0, x) ∩ δ(p, y)p ∈ δ(q0, x) ∩ δ(p, y)p ∈ δ(q0, x) ∩ δ(p, y)

↑↑↑there exists a reachable accept state p ∈ Fp ∈ Fp ∈ F

that belongs to a cycle

q0q0q0 ppp

xxx

yyy

148 / 233

Page 149: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Nonemptiness for NBA ltlmc3.2-NBA-emptiness

Let A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F ) be an NBA. Then:

Lω(A) �= ∅Lω(A) �= ∅Lω(A) �= ∅ iff ∃q0 ∈ Q0 ∃p ∈ F ∃x ∈ Σ∗ ∃y ∈ Σ+∃q0 ∈ Q0 ∃p ∈ F ∃x ∈ Σ∗ ∃y ∈ Σ+∃q0 ∈ Q0 ∃p ∈ F ∃x ∈ Σ∗ ∃y ∈ Σ+.

p ∈ δ(q0, x) ∩ δ(p, y)p ∈ δ(q0, x) ∩ δ(p, y)p ∈ δ(q0, x) ∩ δ(p, y)

iff there exist finite words x , y ∈ Σ∗x , y ∈ Σ∗x , y ∈ Σ∗

s.t. y �= εy �= εy �= ε and xyω ∈ Lω(A)xyω ∈ Lω(A)xyω ∈ Lω(A)

q0q0q0 ppp

xxx

yyy

149 / 233

Page 150: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Nonemptiness for NBA ltlmc3.2-NBA-emptiness

Let A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F ) be an NBA. Then:

Lω(A) �= ∅Lω(A) �= ∅Lω(A) �= ∅ iff ∃q0 ∈ Q0 ∃p ∈ F ∃x ∈ Σ∗ ∃y ∈ Σ+∃q0 ∈ Q0 ∃p ∈ F ∃x ∈ Σ∗ ∃y ∈ Σ+∃q0 ∈ Q0 ∃p ∈ F ∃x ∈ Σ∗ ∃y ∈ Σ+.

p ∈ δ(q0, x) ∩ δ(p, y)p ∈ δ(q0, x) ∩ δ(p, y)p ∈ δ(q0, x) ∩ δ(p, y)

iff there exist finite words x , y ∈ Σ∗x , y ∈ Σ∗x , y ∈ Σ∗

s.t. y �= εy �= εy �= ε and xyω ∈ Lω(A)xyω ∈ Lω(A)xyω ∈ Lω(A)↑↑↑

“ultimatively periodic words”

q0q0q0 ppp

xxx

yyy

150 / 233

Page 151: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Nonemptiness for NBA ltlmc3.2-NBA-emptiness

Let A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F ) be an NBA. Then:

Lω(A) �= ∅Lω(A) �= ∅Lω(A) �= ∅ iff ∃q0 ∈ Q0 ∃p ∈ F ∃x ∈ Σ∗ ∃y ∈ Σ+∃q0 ∈ Q0 ∃p ∈ F ∃x ∈ Σ∗ ∃y ∈ Σ+∃q0 ∈ Q0 ∃p ∈ F ∃x ∈ Σ∗ ∃y ∈ Σ+.

p ∈ δ(q0, x) ∩ δ(p, y)p ∈ δ(q0, x) ∩ δ(p, y)p ∈ δ(q0, x) ∩ δ(p, y)

iff there exist finite words x , y ∈ Σ∗x , y ∈ Σ∗x , y ∈ Σ∗

s.t. y �= εy �= εy �= ε and xyω ∈ Lω(A)xyω ∈ Lω(A)xyω ∈ Lω(A)

The emptiness problem for NBA is solvableby means of graph algorithms in time O( poly(A) )O( poly(A) )O( poly(A) )

151 / 233

Page 152: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Deterministic Buchi automata (DBA) ltlmc3.2-81

152 / 233

Page 153: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Deterministic Buchi automata (DBA) ltlmc3.2-81

A DBA is an NBA A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F ) such that

• AAA has a unique initial state,

• ∣∣δ(q, A)∣∣ ≤ 1

∣∣δ(q, A)∣∣ ≤ 1

∣∣δ(q, A)∣∣ ≤ 1 for all q ∈ Qq ∈ Qq ∈ Q and A ∈ ΣA ∈ ΣA ∈ Σ

153 / 233

Page 154: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Deterministic Buchi automata (DBA) ltlmc3.2-81

A DBA is an NBA A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F ) such that

• AAA has a unique initial state,i.e., Q0Q0Q0 is a singleton

• ∣∣δ(q, A)∣∣ ≤ 1

∣∣δ(q, A)∣∣ ≤ 1

∣∣δ(q, A)∣∣ ≤ 1 for all q ∈ Qq ∈ Qq ∈ Q and A ∈ ΣA ∈ ΣA ∈ Σ

154 / 233

Page 155: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Deterministic Buchi automata (DBA) ltlmc3.2-81

A DBA is an NBA A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F ) such that

• AAA has a unique initial state,i.e., Q0Q0Q0 is a singleton

• ∣∣δ(q, A)∣∣ ≤ 1

∣∣δ(q, A)∣∣ ≤ 1

∣∣δ(q, A)∣∣ ≤ 1 for all q ∈ Qq ∈ Qq ∈ Q and A ∈ ΣA ∈ ΣA ∈ Σ

notation: A = (Q, Σ, δ, q0, F )A = (Q, Σ, δ, q0, F )A = (Q, Σ, δ, q0, F ) if Q0 = {q0}Q0 = {q0}Q0 = {q0}

155 / 233

Page 156: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Deterministic Buchi automata (DBA) ltlmc3.2-81

A DBA is an NBA A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F ) such that

• AAA has a unique initial state,i.e., Q0Q0Q0 is a singleton

• ∣∣δ(q, A)∣∣ ≤ 1

∣∣δ(q, A)∣∣ ≤ 1

∣∣δ(q, A)∣∣ ≤ 1 for all q ∈ Qq ∈ Qq ∈ Q and A ∈ ΣA ∈ ΣA ∈ Σ

notation: A = (Q, Σ, δ, q0, F )A = (Q, Σ, δ, q0, F )A = (Q, Σ, δ, q0, F ) if Q0 = {q0}Q0 = {q0}Q0 = {q0}

q0q0q0 q1q1q1

AAA BBB

BBB

AAA alphabet Σ = {A, B}Σ = {A, B}Σ = {A, B}

156 / 233

Page 157: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Deterministic Buchi automata (DBA) ltlmc3.2-81

A DBA is an NBA A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F )A = (Q, Σ, δ, Q0, F ) such that

• AAA has a unique initial state,i.e., Q0Q0Q0 is a singleton

• ∣∣δ(q, A)∣∣ ≤ 1

∣∣δ(q, A)∣∣ ≤ 1

∣∣δ(q, A)∣∣ ≤ 1 for all q ∈ Qq ∈ Qq ∈ Q and A ∈ ΣA ∈ ΣA ∈ Σ

notation: A = (Q, Σ, δ, q0, F )A = (Q, Σ, δ, q0, F )A = (Q, Σ, δ, q0, F ) if Q0 = {q0}Q0 = {q0}Q0 = {q0}

q0q0q0 q1q1q1

AAA BBB

BBB

AAA

DBA for “infinitely often BBB”

alphabet Σ = {A, B}Σ = {A, B}Σ = {A, B}

157 / 233

Page 158: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Determinization by powerset construction ltlmc3.2-82

well-known:

the powerset construction for thedeterminization (and complementation) offinite automata (NFA)

158/233

Page 159: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Determinization by powerset construction ltlmc3.2-82

well-known:

the powerset construction for thedeterminization (and complementation) offinite automata (NFA)

question:

does the powerset construction also work forBuchi automata (NBA) ?

159/233

Page 160: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Determinization by powerset construction ltlmc3.2-82

NBA for “eventually forever aaa”

q0q0q0 qFqFqF

aaa

aaa

true

160 / 233

Page 161: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Determinization by powerset construction ltlmc3.2-82

NBA for “eventually forever aaa”

q0q0q0 qFqFqF

aaa

aaa q1q1q1¬a¬a¬a

true true

161 / 233

Page 162: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Determinization by powerset construction ltlmc3.2-82

NBA for “eventually forever aaa”

q0q0q0 qFqFqF

aaa

aaa q1q1q1¬a¬a¬a

true true

powerset construction

q0q0q0 q0 qFq0 qFq0 qF q0 q1q0 q1q0 q1 q0 q1 qFq0 q1 qFq0 q1 qF

aaaaaa¬a¬a¬a ¬a¬a¬a

aaa ¬a¬a¬aaaa

¬a¬a¬a

162 / 233

Page 163: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Determinization by powerset construction ltlmc3.2-82

NBA for “eventually forever aaa”

q0q0q0 qFqFqF

aaa

aaa q1q1q1¬a¬a¬a

true true

powerset construction

q0q0q0 q0 qFq0 qFq0 qF q0 q1q0 q1q0 q1 q0 q1 qFq0 q1 qFq0 q1 qF

aaaaaa¬a¬a¬a ¬a¬a¬a

aaa ¬a¬a¬aaaa

¬a¬a¬a

e.g., δ(q0, a) = {q0, qF}δ(q0, a) = {q0, qF}δ(q0, a) = {q0, qF} and δ(q0,¬a) = {q0}δ(q0,¬a) = {q0}δ(q0,¬a) = {q0}163 / 233

Page 164: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Determinization by powerset construction ltlmc3.2-82

NBA for “eventually forever aaa”

q0q0q0 qFqFqF

aaa

aaa q1q1q1¬a¬a¬a

aaa

¬a¬a¬a

aaa

¬a¬a¬a

powerset construction

q0q0q0 q0 qFq0 qFq0 qF q0 q1q0 q1q0 q1 q0 q1 qFq0 q1 qFq0 q1 qF

aaaaaa¬a¬a¬a ¬a¬a¬a

aaa ¬a¬a¬aaaa

¬a¬a¬a

e.g., δ(q0, a) = {q0, qF}δ(q0, a) = {q0, qF}δ(q0, a) = {q0, qF} and δ(q0,¬a) = {q0}δ(q0,¬a) = {q0}δ(q0,¬a) = {q0}164 / 233

Page 165: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Determinization by powerset construction ltlmc3.2-82

NBA for “eventually forever aaa”

q0q0q0 qFqFqF

aaa

aaa q1q1q1¬a¬a¬a

aaa

¬a¬a¬a

aaa

¬a¬a¬a

powerset construction

q0q0q0 q0 qFq0 qFq0 qF q0 q1q0 q1q0 q1 q0 q1 qFq0 q1 qFq0 q1 qF

aaaaaa¬a¬a¬a ¬a¬a¬a

aaa ¬a¬a¬aaaa

¬a¬a¬a

DBA for “infinitely often aaa”

165 / 233

Page 166: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Powerset construction ←←← fails for NBA ltlmc3.2-82

NBA for “eventually forever aaa”

q0q0q0 qFqFqF

aaa

aaa q1q1q1¬a¬a¬a

aaa

¬a¬a¬a

aaa

¬a¬a¬a

powerset construction

q0q0q0 q0 qFq0 qFq0 qF q0 q1q0 q1q0 q1 q0 q1 qFq0 q1 qFq0 q1 qF

aaaaaa¬a¬a¬a ¬a¬a¬a

aaa ¬a¬a¬aaaa

¬a¬a¬a

DBA for “infinitely often aaa”

166 / 233

Page 167: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Complementation of DBA ltlmc3.2-83

167 / 233

Page 168: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Complementation of DBA ltlmc3.2-83

well-known:

DFA can be complemented bycomplementation of the acceptance set

question:

does this also work for DBA ?

168/233

Page 169: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Complementation of DBA ltlmc3.2-83

q0q0q0 qFqFqF

aaa ¬a¬a¬a

¬a¬a¬a

aaa

DBA for“infinitely often ¬a¬a¬a”

169 / 233

Page 170: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Complementation of DBA ltlmc3.2-83

q0q0q0 qFqFqF

aaa ¬a¬a¬a

¬a¬a¬a

aaa

DBA for“infinitely often ¬a¬a¬a”

complement automaton

q0q0q0 qFqFqF

aaa ¬a¬a¬a

¬a¬a¬a

aaa

170 / 233

Page 171: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Complementation of DBA ltlmc3.2-83

q0q0q0 qFqFqF

aaa ¬a¬a¬a

¬a¬a¬a

aaa

DBA for“infinitely often ¬a¬a¬a”

complement automaton

q0q0q0 qFqFqF

aaa ¬a¬a¬a

¬a¬a¬a

aaaDBA for

“infinitely often aaa”

171 / 233

Page 172: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Complementation ←−←−←− fails for DBA ltlmc3.2-83

q0q0q0 qFqFqF

aaa ¬a¬a¬a

¬a¬a¬a

aaa

DBA for“infinitely often ¬a¬a¬a”

complement automaton

q0q0q0 qFqFqF

aaa ¬a¬a¬a

¬a¬a¬a

aaaDBA for

“infinitely often aaa”

172 / 233

Page 173: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Complementation ←−←−←− fails for DBA ltlmc3.2-83

q0q0q0 qFqFqF

aaa ¬a¬a¬a

¬a¬a¬a

aaa

DBA for“infinitely often ¬a¬a¬a”

complement automaton

q0q0q0 qFqFqF

aaa ¬a¬a¬a

¬a¬a¬a

aaaDBA for

“infinitely often aaa”

There is no DBA for the LT-property“eventually forever aaa”

173 / 233

Page 174: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

On the power of DBA ltlmc3.2-84

There is no DBA AAA over the alphabet Σ = {A, B}Σ = {A, B}Σ = {A, B}such that Lω(A) = Lω

((A + B)∗.Aω

)Lω(A) = Lω

((A + B)∗.Aω

)Lω(A) = Lω

((A + B)∗.Aω

)

174 / 233

Page 175: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

On the power of DBA ltlmc3.2-84

There is no DBA AAA over the alphabet Σ = {A, B}Σ = {A, B}Σ = {A, B}such that Lω(A) = Lω

((A + B)∗.Aω

)Lω(A) = Lω

((A + B)∗.Aω

)Lω(A) = Lω

((A + B)∗.Aω

)Hence: there is no DBA for the LT-property

“eventually forever aaa”

175 / 233

Page 176: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

On the power of DBA ltlmc3.2-84

There is no DBA AAA over the alphabet Σ = {A, B}Σ = {A, B}Σ = {A, B}such that Lω(A) = Lω

((A + B)∗.Aω

)Lω(A) = Lω

((A + B)∗.Aω

)Lω(A) = Lω

((A + B)∗.Aω

)Hence: there is no DBA for the LT-property

“eventually forever aaa”

Proof: apply the above theorem for A = {a}A = {a}A = {a}, B = ∅B = ∅B = ∅

176 / 233

Page 177: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

On the power of DBA ltlmc3.2-84

There is no DBA AAA over the alphabet Σ = {A, B}Σ = {A, B}Σ = {A, B}such that Lω(A) = Lω

((A + B)∗.Aω

)Lω(A) = Lω

((A + B)∗.Aω

)Lω(A) = Lω

((A + B)∗.Aω

)Hence: there is no DBA for the LT-property

“eventually forever aaa”

Proof: apply the above theorem for A = {a}A = {a}A = {a}, B = ∅B = ∅B = ∅

The class of DBA-recognizable languages is aproper subclass of the class of ωωω-regular languages

177 / 233

Page 178: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

On the power of DBA ltlmc3.2-84

There is no DBA AAA over the alphabet Σ = {A, B}Σ = {A, B}Σ = {A, B}such that Lω(A) = Lω

((A + B)∗.Aω

)Lω(A) = Lω

((A + B)∗.Aω

)Lω(A) = Lω

((A + B)∗.Aω

)Hence: there is no DBA for the LT-property

“eventually forever aaa”

Proof: apply the above theorem for A = {a}A = {a}A = {a}, B = ∅B = ∅B = ∅

The class of DBA-recognizable languages is aproper subclass of the class of ωωω-regular languagesand is not closed under complementation.

178 / 233

Page 179: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

On the power of DBA ltlmc3.2-84

There is no DBA AAA over the alphabet Σ = {A, B}Σ = {A, B}Σ = {A, B}such that Lω(A) = Lω

((A + B)∗.Aω

)Lω(A) = Lω

((A + B)∗.Aω

)Lω(A) = Lω

((A + B)∗.Aω

)

The class of DBA-recognizable languages is aproper subclass of the class of ωωω-regular languagesand is not closed under complementation.

(A∗.B)ω(A∗.B)ω(A∗.B)ω “infinitely many BBB’s” DBA-recognizable

(A + B)∗.Aω(A + B)∗.Aω(A + B)∗.Aω “only finitely many BBB ’s”not DBA-recognizable

179 / 233

Page 180: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Generalized NBA (GNBA) ltlmc3.2-40

180 / 233

Page 181: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Generalized NBA (GNBA) ltlmc3.2-40

A generalized nondeterministic Buchi automatonis a tuple

G = (Q, Σ, δ, Q0,F)G = (Q, Σ, δ, Q0,F)G = (Q, Σ, δ, Q0,F)

where Q, Σ, δ, Q0Q, Σ, δ, Q0Q, Σ, δ, Q0 are as in NBA, but FFF is a setof accept sets, i.e., F ⊆ 2QF ⊆ 2QF ⊆ 2Q .

181 / 233

Page 182: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Generalized NBA (GNBA) ltlmc3.2-40

A generalized nondeterministic Buchi automatonis a tuple

G = (Q, Σ, δ, Q0,F)G = (Q, Σ, δ, Q0,F)G = (Q, Σ, δ, Q0,F)

where Q, Σ, δ, Q0Q, Σ, δ, Q0Q, Σ, δ, Q0 are as in NBA, but FFF is a setof accept sets, i.e., F ⊆ 2QF ⊆ 2QF ⊆ 2Q .

A run q0 q1 q2 . . .q0 q1 q2 . . .q0 q1 q2 . . . for some infinite word σ ∈ Σωσ ∈ Σωσ ∈ Σω

is called accepting if each accept set is visitedinfinitely often

182 / 233

Page 183: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Generalized NBA (GNBA) ltlmc3.2-40

A generalized nondeterministic Buchi automatonis a tuple

G = (Q, Σ, δ, Q0,F)G = (Q, Σ, δ, Q0,F)G = (Q, Σ, δ, Q0,F)

where Q, Σ, δ, Q0Q, Σ, δ, Q0Q, Σ, δ, Q0 are as in NBA, but FFF is a setof accept sets, i.e., F ⊆ 2QF ⊆ 2QF ⊆ 2Q .

A run q0 q1 q2 . . .q0 q1 q2 . . .q0 q1 q2 . . . for some infinite word σ ∈ Σωσ ∈ Σωσ ∈ Σω

is called accepting if each accept set is visitedinfinitely often, i.e.,

∀F ∈ F ∞∃ i ∈ N∀F ∈ F ∞∃ i ∈ N∀F ∈ F ∞∃ i ∈ N s.t. qi ∈ Fqi ∈ Fqi ∈ F

183 / 233

Page 184: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Accepted language of a GNBA ltlmc3.2-40

GNBA G = (Q, Σ, δ, Q0,F)G = (Q, Σ, δ, Q0,F)G = (Q, Σ, δ, Q0,F) as NBA, but F ⊆ 2QF ⊆ 2QF ⊆ 2Q

A run q0 q1 q2 . . .q0 q1 q2 . . .q0 q1 q2 . . . for some infinite word σ ∈ Σωσ ∈ Σωσ ∈ Σω isaccepting if

∀F ∈ F ∞∃ i ∈ N∀F ∈ F ∞∃ i ∈ N∀F ∈ F ∞∃ i ∈ N s.t. qi ∈ Fqi ∈ Fqi ∈ F

accepted language:

Lω(G)Lω(G)Lω(G) def=def=def=

{σ ∈ Σω :

{σ ∈ Σω :

{σ ∈ Σω : σσσ has an accepting run in GGG }}}

184 / 233

Page 185: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Example: GNBA for liveness property ltlmc3.2-40a

GNBA GGG over Σ = 2APΣ = 2APΣ = 2AP where AP = {crit1, crit2}AP = {crit1, crit2}AP = {crit1, crit2}

q0q0q0

q1q1q1 q2q2q2

true

crit2crit2crit2

true

crit1crit1crit1

true

F ={{q1}, {q2}

}F ={{q1}, {q2}

}F ={{q1}, {q2}

}

185 / 233

Page 186: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Example: GNBA for liveness property ltlmc3.2-40a

GNBA GGG over Σ = 2APΣ = 2APΣ = 2AP where AP = {crit1, crit2}AP = {crit1, crit2}AP = {crit1, crit2}

q0q0q0

q1q1q1 q2q2q2

true

crit2crit2crit2

true

crit1crit1crit1

true

F ={{q1}, {q2}

}F ={{q1}, {q2}

}F ={{q1}, {q2}

}

specifies the LT-property

“infinitely often crit1crit1crit1 and infinitely often crit2crit2crit2”

186 / 233

Page 187: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Example: GNBA for liveness property ltlmc3.2-40a

GNBA GGG over Σ = 2APΣ = 2APΣ = 2AP where AP = {crit1, crit2}AP = {crit1, crit2}AP = {crit1, crit2}

q0q0q0

q1q1q1 q2q2q2

true

crit2crit2crit2

true

crit1crit1crit1

true

F ={{q1}, {q2}

}F ={{q1}, {q2}

}F ={{q1}, {q2}

}

note: q0A−→ q1q0A−→ q1q0A−→ q1 implies A |= crit1A |= crit1A |= crit1

q0A−→ q2q0A−→ q2q0A−→ q2 implies A |= crit2A |= crit2A |= crit2

187 / 233

Page 188: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Example: GNBA for liveness property ltlmc3.2-40a

GNBA GGG over Σ = 2APΣ = 2APΣ = 2AP where AP = {crit1, crit2}AP = {crit1, crit2}AP = {crit1, crit2}

q0q0q0

q1q1q1 q2q2q2

true

crit2crit2crit2

true

crit1crit1crit1

true

F ={{q1}, {q2}

}F ={{q1}, {q2}

}F ={{q1}, {q2}

}

note: q0A−→ q1q0A−→ q1q0A−→ q1 implies A |= crit1A |= crit1A |= crit1

q0A−→ q2q0A−→ q2q0A−→ q2 implies A |= crit2A |= crit2A |= crit2

hence: if A0 A1 A2 . . . ∈ Lω(G)A0 A1 A2 . . . ∈ Lω(G)A0 A1 A2 . . . ∈ Lω(G) then∞∃ i ≥ 0. crit1 ∈ Ai

∞∃ i ≥ 0. crit1 ∈ Ai

∞∃ i ≥ 0. crit1 ∈ Ai ∧∧∧

∞∃ i ≥ 0. crit2 ∈ Ai

∞∃ i ≥ 0. crit2 ∈ Ai

∞∃ i ≥ 0. crit2 ∈ Ai

188 / 233

Page 189: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Example: GNBA for liveness property ltlmc3.2-40a

GNBA GGG over Σ = 2APΣ = 2APΣ = 2AP where AP = {crit1, crit2}AP = {crit1, crit2}AP = {crit1, crit2}

q0q0q0

q1q1q1 q2q2q2

true

crit2crit2crit2

true

crit1crit1crit1

true

F ={{q1}, {q2}

}F ={{q1}, {q2}

}F ={{q1}, {q2}

}

all words A0 A1 A2 . . . ∈ ΣωA0 A1 A2 . . . ∈ ΣωA0 A1 A2 . . . ∈ Σω s.t.∞∃ i ≥ 0. crit1 ∈ Ai

∞∃ i ≥ 0. crit1 ∈ Ai

∞∃ i ≥ 0. crit1 ∈ Ai and

∞∃ i ≥ 0. crit2 ∈ Ai

∞∃ i ≥ 0. crit2 ∈ Ai

∞∃ i ≥ 0. crit2 ∈ Ai have an accepting run of the form:

q0 . . . q0 q1 q0 . . . q0 q2 q0 . . . q0 q1 q0 . . . q0 q2 . . .q0 . . . q0 q1 q0 . . . q0 q2 q0 . . . q0 q1 q0 . . . q0 q2 . . .q0 . . . q0 q1 q0 . . . q0 q2 q0 . . . q0 q1 q0 . . . q0 q2 . . .

189 / 233

Page 190: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Examples: GNBA over Σ = {A, B}Σ = {A, B}Σ = {A, B} ltlmc3.2-41

GNBA GGG

q0q0q0 q1q1q1 q2q2q2

AAA AAA

AAA BBB

F ={{q1}, {q2}

}F ={{q1}, {q2}

}F ={{q1}, {q2}

}

190 / 233

Page 191: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Examples: GNBA over Σ = {A, B}Σ = {A, B}Σ = {A, B} ltlmc3.2-41

GNBA GGG

q0q0q0 q1q1q1 q2q2q2

AAA AAA

AAA BBB

F ={{q1}, {q2}

}F ={{q1}, {q2}

}F ={{q1}, {q2}

}Lω(G) =Lω(G) =Lω(G) = ?

191/233

Page 192: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Examples: GNBA over Σ = {A, B}Σ = {A, B}Σ = {A, B} ltlmc3.2-41

GNBA GGG

q0q0q0 q1q1q1 q2q2q2

AAA AAA

AAA BBB

F ={{q1}, {q2}

}F ={{q1}, {q2}

}F ={{q1}, {q2}

}Lω(G) =Lω(G) =Lω(G) = ∅∅∅

192 / 233

Page 193: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Examples: GNBA over Σ = {A, B}Σ = {A, B}Σ = {A, B} ltlmc3.2-41

GNBA GGG

q0q0q0 q1q1q1 q2q2q2

AAA AAA

AAA BBB

F ={{q1}, {q2}

}F ={{q1}, {q2}

}F ={{q1}, {q2}

}Lω(G) =Lω(G) =Lω(G) = ∅∅∅

GNBA G′G′G′ with F′ = {{q1, q3}, {q2, q4}}F′ = {{q1, q3}, {q2, q4}}F′ = {{q1, q3}, {q2, q4}}

q0q0q0 q1q1q1 q2q2q2

BBB

AAA q3q3q3 q4q4q4

BBB

BBB

AAA

BBB

AAA

193 / 233

Page 194: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Examples: GNBA over Σ = {A, B}Σ = {A, B}Σ = {A, B} ltlmc3.2-41

GNBA GGG

q0q0q0 q1q1q1 q2q2q2

AAA AAA

AAA BBB

F ={{q1}, {q2}

}F ={{q1}, {q2}

}F ={{q1}, {q2}

}Lω(G) =Lω(G) =Lω(G) = ∅∅∅

GNBA G′G′G′ with F′ = {{q1, q3}, {q2, q4}}F′ = {{q1, q3}, {q2, q4}}F′ = {{q1, q3}, {q2, q4}}

q0q0q0 q1q1q1 q2q2q2

BBB

AAA q3q3q3 q4q4q4

BBB

BBB

AAA

BBB

AAA

accepted language: ?

194/233

Page 195: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Examples: GNBA over Σ = {A, B}Σ = {A, B}Σ = {A, B} ltlmc3.2-41

GNBA GGG

q0q0q0 q1q1q1 q2q2q2

AAA AAA

AAA BBB

F ={{q1}, {q2}

}F ={{q1}, {q2}

}F ={{q1}, {q2}

}Lω(G) =Lω(G) =Lω(G) = ∅∅∅

GNBA G′G′G′ with F′ = {{q1, q3}, {q2, q4}}F′ = {{q1, q3}, {q2, q4}}F′ = {{q1, q3}, {q2, q4}}

q0q0q0 q1q1q1 q2q2q2

BBB

AAA q3q3q3 q4q4q4

BBB

BBB

AAA

BBB

AAA

accepted language: A.Bω + A.B+.A.(A.B)ωA.Bω + A.B+.A.(A.B)ωA.Bω + A.B+.A.(A.B)ω

195 / 233

Page 196: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Empty acceptance condition ltlmc3.2-42

196 / 233

Page 197: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Empty acceptance condition ltlmc3.2-42

NBA AAA over Σ = {A, B}Σ = {A, B}Σ = {A, B}:

q0q0q0 q1q1q1

AAA

AAA

acceptance set F = ∅F = ∅F = ∅

GNBA GGG over Σ = {A, B}Σ = {A, B}Σ = {A, B}:

q0q0q0 q1q1q1

AAA

AAA

set of acceptance setsF = ∅F = ∅F = ∅

197 / 233

Page 198: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Empty acceptance condition ltlmc3.2-42

NBA AAA over Σ = {A, B}Σ = {A, B}Σ = {A, B}:

q0q0q0 q1q1q1

AAA

AAA

acceptance set F = ∅F = ∅F = ∅

Lω(A) = ∅Lω(A) = ∅Lω(A) = ∅

GNBA GGG over Σ = {A, B}Σ = {A, B}Σ = {A, B}:

q0q0q0 q1q1q1

AAA

AAA

set of acceptance setsF = ∅F = ∅F = ∅

198 / 233

Page 199: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Empty acceptance condition ltlmc3.2-42

NBA AAA over Σ = {A, B}Σ = {A, B}Σ = {A, B}:

q0q0q0 q1q1q1

AAA

AAA

acceptance set F = ∅F = ∅F = ∅

Lω(A) = ∅Lω(A) = ∅Lω(A) = ∅

GNBA GGG over Σ = {A, B}Σ = {A, B}Σ = {A, B}:

q0q0q0 q1q1q1

AAA

AAA

set of acceptance setsF = ∅F = ∅F = ∅

Lω(G) =Lω(G) =Lω(G) = ?

199/233

Page 200: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Empty acceptance condition ltlmc3.2-42

NBA AAA over Σ = {A, B}Σ = {A, B}Σ = {A, B}:

q0q0q0 q1q1q1

AAA

AAA

acceptance set F = ∅F = ∅F = ∅

Lω(A) = ∅Lω(A) = ∅Lω(A) = ∅

GNBA GGG over Σ = {A, B}Σ = {A, B}Σ = {A, B}:

q0q0q0 q1q1q1

AAA

AAA

set of acceptance setsF = ∅F = ∅F = ∅

Lω(G) ={Aω

}Lω(G) ={Aω

}Lω(G) ={Aω

}

200 / 233

Page 201: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Empty acceptance condition ltlmc3.2-42

NBA AAA over Σ = {A, B}Σ = {A, B}Σ = {A, B}:

q0q0q0 q1q1q1

AAA

AAA

acceptance set F = ∅F = ∅F = ∅

Lω(A) = ∅Lω(A) = ∅Lω(A) = ∅

GNBA GGG over Σ = {A, B}Σ = {A, B}Σ = {A, B}:

q0q0q0 q1q1q1

AAA

AAA

set of acceptance setsF = ∅F = ∅F = ∅

Lω(G) ={Aω

}Lω(G) ={Aω

}Lω(G) ={Aω

}

Lω(G) =Lω(G) =Lω(G) =

{set of all infinite wordsthat have an infinite run

201 / 233

Page 202: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Correct or wrong? ltlmc3.2-43

For every GNBA GGG there exists a GNBA G′G′G′ such that

• Lω(G) = Lω(G′)Lω(G) = Lω(G′)Lω(G) = Lω(G′)• the set of acceptance sets of G′G′G′ is nonempty

202 / 233

Page 203: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Correct or wrong? ltlmc3.2-43

For every GNBA GGG there exists a GNBA G′G′G′ such that

• Lω(G) = Lω(G′)Lω(G) = Lω(G′)Lω(G) = Lω(G′)• the set of acceptance sets of G′G′G′ is nonempty

correct

GNBA GGG === (Q, Σ, δ, Q0, ∅)(Q, Σ, δ, Q0, ∅)(Q, Σ, δ, Q0, ∅)

⇓⇓⇓GNBA G′G′G′ === (Q, Σ, δ, Q0, {Q})(Q, Σ, δ, Q0, {Q})(Q, Σ, δ, Q0, {Q})

203 / 233

Page 204: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

From GNBA to NBA ltlmc3.2-44

204 / 233

Page 205: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

From GNBA to NBA ltlmc3.2-44

For each GNBA GGG there exists an NBA AAA with

Lω(G) = Lω(A)Lω(G) = Lω(A)Lω(G) = Lω(A)

205 / 233

Page 206: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

From GNBA to NBA ltlmc3.2-44

For each GNBA GGG there exists an NBA AAA with

Lω(G) = Lω(A)Lω(G) = Lω(A)Lω(G) = Lω(A)

Proof. Let G = (Q, Σ, δ, Q0,F)G = (Q, Σ, δ, Q0,F)G = (Q, Σ, δ, Q0,F) with F = {F1, . . ., Fk}F = {F1, . . ., Fk}F = {F1, . . ., Fk}

206 / 233

Page 207: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

From GNBA to NBA ltlmc3.2-44

For each GNBA GGG there exists an NBA AAA with

Lω(G) = Lω(A)Lω(G) = Lω(A)Lω(G) = Lω(A)

Proof. Let G = (Q, Σ, δ, Q0,F)G = (Q, Σ, δ, Q0,F)G = (Q, Σ, δ, Q0,F) with F = {F1, . . ., Fk}F = {F1, . . ., Fk}F = {F1, . . ., Fk}and k ≥ 1k ≥ 1k ≥ 1

207 / 233

Page 208: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

From GNBA to NBA ltlmc3.2-44

For each GNBA GGG there exists an NBA AAA with

Lω(G) = Lω(A)Lω(G) = Lω(A)Lω(G) = Lω(A)

Proof. Let G = (Q, Σ, δ, Q0,F)G = (Q, Σ, δ, Q0,F)G = (Q, Σ, δ, Q0,F) with F = {F1, . . ., Fk}F = {F1, . . ., Fk}F = {F1, . . ., Fk}and k ≥ 1k ≥ 1k ≥ 1

note: if k = 1k = 1k = 1 then GGG is an NBA

208 / 233

Page 209: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

From GNBA to NBA ltlmc3.2-44

For each GNBA GGG there exists an NBA AAA with

Lω(G) = Lω(A)Lω(G) = Lω(A)Lω(G) = Lω(A)

Proof. Let G = (Q, Σ, δ, Q0,F)G = (Q, Σ, δ, Q0,F)G = (Q, Σ, δ, Q0,F) with F = {F1, . . ., Fk}F = {F1, . . ., Fk}F = {F1, . . ., Fk}and k ≥ 2k ≥ 2k ≥ 2

note: if k = 1k = 1k = 1 then GGG is an NBA

209 / 233

Page 210: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

From GNBA to NBA ltlmc3.2-44

For each GNBA GGG there exists an NBA AAA with

Lω(G) = Lω(A)Lω(G) = Lω(A)Lω(G) = Lω(A)

Proof. Let G = (Q, Σ, δ, Q0,F)G = (Q, Σ, δ, Q0,F)G = (Q, Σ, δ, Q0,F) with F = {F1, . . ., Fk}F = {F1, . . ., Fk}F = {F1, . . ., Fk}and k ≥ 2k ≥ 2k ≥ 2. NBA AAA results from kkk copies of GGG:

210 / 233

Page 211: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

From GNBA to NBA ltlmc3.2-44

For each GNBA GGG there exists an NBA AAA with

Lω(G) = Lω(A)Lω(G) = Lω(A)Lω(G) = Lω(A)

Proof. Let G = (Q, Σ, δ, Q0,F)G = (Q, Σ, δ, Q0,F)G = (Q, Σ, δ, Q0,F) with F = {F1, . . ., Fk}F = {F1, . . ., Fk}F = {F1, . . ., Fk}and k ≥ 2k ≥ 2k ≥ 2. NBA AAA results from kkk copies of GGG:

Q0Q0Q0

F1F1F1F2F2F2

... FkFkFk

211 / 233

Page 212: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

From GNBA to NBA ltlmc3.2-44

For each GNBA GGG there exists an NBA AAA with

Lω(G) = Lω(A)Lω(G) = Lω(A)Lω(G) = Lω(A)

Proof. Let G = (Q, Σ, δ, Q0,F)G = (Q, Σ, δ, Q0,F)G = (Q, Σ, δ, Q0,F) with F = {F1, . . ., Fk}F = {F1, . . ., Fk}F = {F1, . . ., Fk}and k ≥ 2k ≥ 2k ≥ 2. NBA AAA results from kkk copies of GGG:

Q0Q0Q0

F1F1F1F2F2F2

... FkFkFk

size of the NBA: size(A) = O(size(G) · |F|)size(A) = O(size(G) · |F|)size(A) = O(size(G) · |F|)212 / 233

Page 213: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Example: from GNBA to NBA ltlmc3.2-45

GNBA GGGq0q0q0

q1q1q1 q2q2q2

true

crit2crit2crit2

true

crit1crit1crit1

alphabet Σ = 2APΣ = 2APΣ = 2AP whereAP = {crit1, crit2}AP = {crit1, crit2}AP = {crit1, crit2}infinitely often crit1crit1crit1 andinfinitely often crit2crit2crit2

213 / 233

Page 214: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Example: from GNBA to NBA ltlmc3.2-45

GNBA GGGq0q0q0

q1q1q1 q2q2q2

true

crit2crit2crit2

true

crit1crit1crit1

alphabet Σ = 2APΣ = 2APΣ = 2AP whereAP = {crit1, crit2}AP = {crit1, crit2}AP = {crit1, crit2}infinitely often crit1crit1crit1 andinfinitely often crit2crit2crit2

q0q0q0 111

q1q1q1 111 q2q2q2 111

true

crit2crit2crit2true

crit1crit1crit1

q0q0q0 222

q2q2q2 222q1q1q1 222true

true

crit1crit1crit1

true

crit2crit2crit2

NBA AAA

214 / 233

Page 215: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Closure properties of ωωω-regular properties ltlmc3.2-32b-copy

The class of ωωω-regular languages is closed underunion, intersection and complementation.

215 / 233

Page 216: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Closure properties of ωωω-regular properties ltlmc3.2-32b-copy

The class of ωωω-regular languages is closed underunion, intersection and complementation.

• union:obvious from definition of ωωω-regular expressions

• intersection:

via some product construction

• complementation:via other types of ωωω-automata(not discussed here)

216 / 233

Page 217: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Closure properties of ωωω-regular properties ltlmc3.2-32b-copy

The class of ωωω-regular languages is closed underunion, intersection and complementation.

• union:obvious from definition of ωωω-regular expressions

• intersection: ←−←−←− using GNBA

via some product construction

• complementation:via other types of ωωω-automata(not discussed here)

217 / 233

Page 218: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Intersection for NBA ltlmc3.2-45a

A1A1A1 === (Q1, Σ, δ1, Q0,1, F1)(Q1, Σ, δ1, Q0,1, F1)(Q1, Σ, δ1, Q0,1, F1)A2A2A2 === (Q2, Σ, δ2, Q0,2, F2)(Q2, Σ, δ2, Q0,2, F2)(Q2, Σ, δ2, Q0,2, F2)

}two NBA

goal: define an NBA AAA s.t. Lω(A) = Lω(A1) ∩ Lω(A2)Lω(A) = Lω(A1) ∩ Lω(A2)Lω(A) = Lω(A1) ∩ Lω(A2)

218 / 233

Page 219: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Intersection for NBA ltlmc3.2-45a

A1A1A1 === (Q1, Σ, δ1, Q0,1, F1)(Q1, Σ, δ1, Q0,1, F1)(Q1, Σ, δ1, Q0,1, F1)A2A2A2 === (Q2, Σ, δ2, Q0,2, F2)(Q2, Σ, δ2, Q0,2, F2)(Q2, Σ, δ2, Q0,2, F2)

}two NBA

goal: define an NBA AAA s.t. Lω(A) = Lω(A1) ∩ Lω(A2)Lω(A) = Lω(A1) ∩ Lω(A2)Lω(A) = Lω(A1) ∩ Lω(A2)

recall:intersection for finite automata NFA A1A1A1 and A2A2A2

is realized by a product construction that

• runs A1A1A1 and A2A2A2 in parallel (synchronously)

• checks whether both end in a final state

219 / 233

Page 220: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Intersection for NBA ltlmc3.2-45a

A1A1A1 === (Q1, Σ, δ1, Q0,1, F1)(Q1, Σ, δ1, Q0,1, F1)(Q1, Σ, δ1, Q0,1, F1)A2A2A2 === (Q2, Σ, δ2, Q0,2, F2)(Q2, Σ, δ2, Q0,2, F2)(Q2, Σ, δ2, Q0,2, F2)

}two NBA

goal: define an NBA AAA s.t. Lω(A) = Lω(A1) ∩ Lω(A2)Lω(A) = Lω(A1) ∩ Lω(A2)Lω(A) = Lω(A1) ∩ Lω(A2)

idea: define A1 ⊗A2A1 ⊗A2A1 ⊗A2 as for NFA, i.e.,

• A1A1A1 and A2A2A2 run in parallel (synchronously)

• and check whether both are accepting

220 / 233

Page 221: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Intersection for NBA ltlmc3.2-45a

A1A1A1 === (Q1, Σ, δ1, Q0,1, F1)(Q1, Σ, δ1, Q0,1, F1)(Q1, Σ, δ1, Q0,1, F1)A2A2A2 === (Q2, Σ, δ2, Q0,2, F2)(Q2, Σ, δ2, Q0,2, F2)(Q2, Σ, δ2, Q0,2, F2)

}two NBA

goal: define an NBA AAA s.t. Lω(A) = Lω(A1) ∩ Lω(A2)Lω(A) = Lω(A1) ∩ Lω(A2)Lω(A) = Lω(A1) ∩ Lω(A2)

idea: define A1 ⊗A2A1 ⊗A2A1 ⊗A2 as for NFA, i.e.,

• A1A1A1 and A2A2A2 run in parallel (synchronously)

• and check whether both are accepting↑↑↑

i.e., both F1F1F1 and F2F2F2 are visited infinitely often

221 / 233

Page 222: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Intersection for NBA ltlmc3.2-45a

A1A1A1 === (Q1, Σ, δ1, Q0,1, F1)(Q1, Σ, δ1, Q0,1, F1)(Q1, Σ, δ1, Q0,1, F1)A2A2A2 === (Q2, Σ, δ2, Q0,2, F2)(Q2, Σ, δ2, Q0,2, F2)(Q2, Σ, δ2, Q0,2, F2)

}two NBA

goal: define an NBA AAA s.t. Lω(A) = Lω(A1) ∩ Lω(A2)Lω(A) = Lω(A1) ∩ Lω(A2)Lω(A) = Lω(A1) ∩ Lω(A2)

idea: define A1 ⊗A2A1 ⊗A2A1 ⊗A2 as for NFA, i.e.,

• A1A1A1 and A2A2A2 run in parallel (synchronously)

• and check whether both are accepting↑↑↑

i.e., both F1F1F1 and F2F2F2 are visited infinitely often

��� product of A1A1A1 and A2A2A2 yields a GNBA222/233

Page 223: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Intersection for NBA ltlmc3.2-45b

A1A1A1 === (Q1, Σ, δ1, Q0,1, F1)(Q1, Σ, δ1, Q0,1, F1)(Q1, Σ, δ1, Q0,1, F1)A2A2A2 === (Q2, Σ, δ2, Q0,2, F2)(Q2, Σ, δ2, Q0,2, F2)(Q2, Σ, δ2, Q0,2, F2)

}two NBA

goal: define an NBA AAA s.t. Lω(A) = Lω(A1) ∩ Lω(A2)Lω(A) = Lω(A1) ∩ Lω(A2)Lω(A) = Lω(A1) ∩ Lω(A2)

GNBA G = A1 ⊗A2G = A1 ⊗A2G = A1 ⊗A2

223 / 233

Page 224: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Intersection for NBA ltlmc3.2-45b

A1A1A1 === (Q1, Σ, δ1, Q0,1, F1)(Q1, Σ, δ1, Q0,1, F1)(Q1, Σ, δ1, Q0,1, F1)A2A2A2 === (Q2, Σ, δ2, Q0,2, F2)(Q2, Σ, δ2, Q0,2, F2)(Q2, Σ, δ2, Q0,2, F2)

}two NBA

goal: define an NBA AAA s.t. Lω(A) = Lω(A1) ∩ Lω(A2)Lω(A) = Lω(A1) ∩ Lω(A2)Lω(A) = Lω(A1) ∩ Lω(A2)

GNBA G = A1 ⊗A2G = A1 ⊗A2G = A1 ⊗A2

• state space Q = Q1 × Q2Q = Q1 × Q2Q = Q1 × Q2

224 / 233

Page 225: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Intersection for NBA ltlmc3.2-45b

A1A1A1 === (Q1, Σ, δ1, Q0,1, F1)(Q1, Σ, δ1, Q0,1, F1)(Q1, Σ, δ1, Q0,1, F1)A2A2A2 === (Q2, Σ, δ2, Q0,2, F2)(Q2, Σ, δ2, Q0,2, F2)(Q2, Σ, δ2, Q0,2, F2)

}two NBA

goal: define an NBA AAA s.t. Lω(A) = Lω(A1) ∩ Lω(A2)Lω(A) = Lω(A1) ∩ Lω(A2)Lω(A) = Lω(A1) ∩ Lω(A2)

GNBA G = A1 ⊗A2G = A1 ⊗A2G = A1 ⊗A2

• state space Q = Q1 × Q2Q = Q1 × Q2Q = Q1 × Q2

• alphabet ΣΣΣ

225 / 233

Page 226: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Intersection for NBA ltlmc3.2-45b

A1A1A1 === (Q1, Σ, δ1, Q0,1, F1)(Q1, Σ, δ1, Q0,1, F1)(Q1, Σ, δ1, Q0,1, F1)A2A2A2 === (Q2, Σ, δ2, Q0,2, F2)(Q2, Σ, δ2, Q0,2, F2)(Q2, Σ, δ2, Q0,2, F2)

}two NBA

goal: define an NBA AAA s.t. Lω(A) = Lω(A1) ∩ Lω(A2)Lω(A) = Lω(A1) ∩ Lω(A2)Lω(A) = Lω(A1) ∩ Lω(A2)

GNBA G = A1 ⊗A2G = A1 ⊗A2G = A1 ⊗A2

• state space Q = Q1 × Q2Q = Q1 × Q2Q = Q1 × Q2

• alphabet ΣΣΣ

• set of initial states: Q0 = Q0,1 × Q0,2Q0 = Q0,1 × Q0,2Q0 = Q0,1 × Q0,2

226 / 233

Page 227: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Intersection for NBA ltlmc3.2-45b

A1A1A1 === (Q1, Σ, δ1, Q0,1, F1)(Q1, Σ, δ1, Q0,1, F1)(Q1, Σ, δ1, Q0,1, F1)A2A2A2 === (Q2, Σ, δ2, Q0,2, F2)(Q2, Σ, δ2, Q0,2, F2)(Q2, Σ, δ2, Q0,2, F2)

}two NBA

goal: define an NBA AAA s.t. Lω(A) = Lω(A1) ∩ Lω(A2)Lω(A) = Lω(A1) ∩ Lω(A2)Lω(A) = Lω(A1) ∩ Lω(A2)

GNBA G = A1 ⊗A2G = A1 ⊗A2G = A1 ⊗A2

• state space Q = Q1 × Q2Q = Q1 × Q2Q = Q1 × Q2

• alphabet ΣΣΣ

• set of initial states: Q0 = Q0,1 × Q0,2Q0 = Q0,1 × Q0,2Q0 = Q0,1 × Q0,2

• acceptance condition: F ={F1×Q2, Q1×F2

}F ={F1×Q2, Q1×F2

}F ={F1×Q2, Q1×F2

}

227 / 233

Page 228: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Intersection for NBA ltlmc3.2-45b

A1A1A1 === (Q1, Σ, δ1, Q0,1, F1)(Q1, Σ, δ1, Q0,1, F1)(Q1, Σ, δ1, Q0,1, F1)A2A2A2 === (Q2, Σ, δ2, Q0,2, F2)(Q2, Σ, δ2, Q0,2, F2)(Q2, Σ, δ2, Q0,2, F2)

}two NBA

goal: define an NBA AAA s.t. Lω(A) = Lω(A1) ∩ Lω(A2)Lω(A) = Lω(A1) ∩ Lω(A2)Lω(A) = Lω(A1) ∩ Lω(A2)

GNBA G = A1 ⊗A2G = A1 ⊗A2G = A1 ⊗A2

• state space Q = Q1 × Q2Q = Q1 × Q2Q = Q1 × Q2

• alphabet ΣΣΣ

• set of initial states: Q0 = Q0,1 × Q0,2Q0 = Q0,1 × Q0,2Q0 = Q0,1 × Q0,2

• acceptance condition: F ={F1×Q2, Q1×F2

}F ={F1×Q2, Q1×F2

}F ={F1×Q2, Q1×F2

}• transition relation:

δ(〈q1, q2〉, A) ={〈p1, p2〉 : p1 ∈ δ1(q1, A), p2 ∈ δ2(q2, A)

}δ(〈q1, q2〉, A) =

{〈p1, p2〉 : p1 ∈ δ1(q1, A), p2 ∈ δ2(q2, A)}

δ(〈q1, q2〉, A) ={〈p1, p2〉 : p1 ∈ δ1(q1, A), p2 ∈ δ2(q2, A)

}228 / 233

Page 229: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Intersection for NBA ltlmc3.2-45b

A1A1A1 === (Q1, Σ, δ1, Q0,1, F1)(Q1, Σ, δ1, Q0,1, F1)(Q1, Σ, δ1, Q0,1, F1)A2A2A2 === (Q2, Σ, δ2, Q0,2, F2)(Q2, Σ, δ2, Q0,2, F2)(Q2, Σ, δ2, Q0,2, F2)

}two NBA

goal: define an NBA AAA s.t. Lω(A) = Lω(A1) ∩ Lω(A2)Lω(A) = Lω(A1) ∩ Lω(A2)Lω(A) = Lω(A1) ∩ Lω(A2)

GNBA G = A1 ⊗A2G = A1 ⊗A2G = A1 ⊗A2 ��� equivalent NBA AAA• state space Q = Q1 × Q2Q = Q1 × Q2Q = Q1 × Q2

• alphabet ΣΣΣ

• set of initial states: Q0 = Q0,1 × Q0,2Q0 = Q0,1 × Q0,2Q0 = Q0,1 × Q0,2

• acceptance condition: F ={F1×Q2, Q1×F2

}F ={F1×Q2, Q1×F2

}F ={F1×Q2, Q1×F2

}• transition relation:

δ(〈q1, q2〉, A) ={〈p1, p2〉 : p1 ∈ δ1(q1, A), p2 ∈ δ2(q2, A)

}δ(〈q1, q2〉, A) =

{〈p1, p2〉 : p1 ∈ δ1(q1, A), p2 ∈ δ2(q2, A)}

δ(〈q1, q2〉, A) ={〈p1, p2〉 : p1 ∈ δ1(q1, A), p2 ∈ δ2(q2, A)

}229 / 233

Page 230: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Summary: ωωω-regular languages ltlmc3.2-45c

230 / 233

Page 231: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Summary: ωωω-regular languages ltlmc3.2-45c

The class of ωωω-regular languages agrees with

• the class of languages given by ωωω-regularexpressions

• the class of NBA-recognizable languages

• the class of GNBA-recognizable languages

231 / 233

Page 232: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Summary: ωωω-regular languages ltlmc3.2-45c

The class of ωωω-regular languages agrees with

• the class of languages given by ωωω-regularexpressions

• the class of NBA-recognizable languages

• the class of GNBA-recognizable languages

but DBA are strictly less expressive

232 / 233

Page 233: Introduction Linear Time Properties · 2016. 5. 13. · languages of infinite words over the alphabet 2APAP that have a representation by a finite automata • regular safety properties:

Summary: ωωω-regular languages ltlmc3.2-45c

The class of ωωω-regular languages agrees with

• the class of languages given by ωωω-regularexpressions

• the class of NBA-recognizable languages

• the class of GNBA-recognizable languages

but DBA are strictly less expressive

The class of ωωω-regular languages is closed underunion, intersection and complementation.

233 / 233