Linear Temporal Logics and Grammars
Joachim Baran
The University of Manchester
April 2006
Overview Word Systems Regular expressiveness Linear temporal logic - - PowerPoint PPT Presentation
ormal ethods roup Linear Temporal Logics and Grammars Joachim Baran The University of Manchester April 2006 Overview Word Systems Regular expressiveness Linear temporal logic B uchi-automata Right-linear grammars TL,
Linear Temporal Logics and Grammars
Joachim Baran
The University of Manchester
April 2006
Overview – Word Systems
Regular expressiveness Linear temporal logic
νTL, QPTL, ETL, . . .
B¨ uchi-automata
Right-linear grammars
Overview – Word Systems
Regular expressiveness Beyond context-free expressiveness Linear temporal logic
νTL, QPTL, ETL, . . .
Linear temporal logic
+
chop/concatenation LFLC B¨ uchi-automata
Right-linear grammars
Alternating context-free grammars
Temporal Logic
Linear-time temporal logic with chop (LFLC):
p, q, . . .
ε
∨, ∧
;
X, Y, . . .
µ, ν
p ≡ {¬a, ¬b} q ≡ {¬a, b} r ≡ { a, ¬b} s ≡ { a, b}
Temporal Logic
Linear-time temporal logic with chop (LFLC):
p, q, . . .
ε
∨, ∧
;
X, Y, . . .
µ, ν
p ≡ {¬a, ¬b} q ≡ {¬a, b} r ≡ { a, ¬b} s ≡ { a, b}
Temporal Logic
Linear-time temporal logic with chop (LFLC):
p, q, . . .
ε
∨, ∧
;
X, Y, . . .
µ, ν
p ≡ {¬a, ¬b} q ≡ {¬a, b} r ≡ { a, ¬b} s ≡ { a, b}
Temporal Logic
Linear-time temporal logic with chop (LFLC):
p, q, . . .
ε
∨, ∧
;
X, Y, . . .
µ, ν
p ≡ {¬a, ¬b} q ≡ {¬a, b} r ≡ { a, ¬b} s ≡ { a, b}
Models:
M | = p
p
Temporal Logic
Linear-time temporal logic with chop (LFLC):
p, q, . . .
ε
∨, ∧
;
X, Y, . . .
µ, ν
p ≡ {¬a, ¬b} q ≡ {¬a, b} r ≡ { a, ¬b} s ≡ { a, b}
Models:
M | = p; q; p; q
q p q p
Temporal Logic
Linear-time temporal logic with chop (LFLC):
p, q, . . .
ε
∨, ∧
;
X, Y, . . .
µ, ν
p ≡ {¬a, ¬b} q ≡ {¬a, b} r ≡ { a, ¬b} s ≡ { a, b}
Models:
M | = p; q; p; q
q p q p
Temporal Logic
Linear-time temporal logic with chop (LFLC):
p, q, . . .
ε
∨, ∧
;
X, Y, . . .
µ, ν
p ≡ {¬a, ¬b} q ≡ {¬a, b} r ≡ { a, ¬b} s ≡ { a, b}
Models:
M | = p; q; p; q
q p q p
Temporal Logic
Linear-time temporal logic with chop (LFLC):
p, q, . . .
ε
∨, ∧
;
X, Y, . . .
µ, ν
p ≡ {¬a, ¬b} q ≡ {¬a, b} r ≡ { a, ¬b} s ≡ { a, b}
Models:
M | = p; q; p; q
q p q p
Temporal Logic
Linear-time temporal logic with chop (LFLC):
p, q, . . .
ε
∨, ∧
;
X, Y, . . .
µ, ν
p ≡ {¬a, ¬b} q ≡ {¬a, b} r ≡ { a, ¬b} s ≡ { a, b}
Models:
M | = p; q; p; q
q p q p
Temporal Logic
Linear-time temporal logic with chop (LFLC):
p, q, . . .
ε
∨, ∧
;
X, Y, . . .
µ, ν
p ≡ {¬a, ¬b} q ≡ {¬a, b} r ≡ { a, ¬b} s ≡ { a, b}
Models:
M | = νX.(p; q; X)
q
. . .
p q p q p q p q p
Temporal Logic
Linear-time temporal logic with chop (LFLC):
p, q, . . .
ε
∨, ∧
;
X, Y, . . .
µ, ν
p ≡ {¬a, ¬b} q ≡ {¬a, b} r ≡ { a, ¬b} s ≡ { a, b}
Models:
M | = p ∨ p; q; p; q ∨ νX.(p; q; X)
p q p q p q
. . .
p q p q p q p q p
Grammars
Alternating Context-Free Grammar (ACFG):
p, q, . . . ∈ Σ
X, Y, . . . ∈ N
N → (N ∪ Σ)∗
S ∈ N
λ : N → {∀, ∃}
Ω : N → N
X → pq X → pYq X → ε
Grammars
Alternating Context-Free Grammar (ACFG):
p, q, . . . ∈ Σ
X, Y, . . . ∈ N
N → (N ∪ Σ)∗
S ∈ N
λ : N → {∀, ∃}
Ω : N → N
X → pq X → pYq X → ε
Grammars
Alternating Context-Free Grammar (ACFG):
p, q, . . . ∈ Σ
X, Y, . . . ∈ N
N → (N ∪ Σ)∗
S ∈ N
λ : N → {∀, ∃}
Ω : N → N
X → pq X → pYq X → ε
Grammars
Alternating Context-Free Grammar (ACFG):
p, q, . . . ∈ Σ
X, Y, . . . ∈ N
N → (N ∪ Σ)∗
S ∈ N
λ : N → {∀, ∃}
Ω : N → N
X → pq X → pYq X → ε
Languages: L
Ω(S) = 0
Grammars
Alternating Context-Free Grammar (ACFG):
p, q, . . . ∈ Σ
X, Y, . . . ∈ N
N → (N ∪ Σ)∗
S ∈ N
λ : N → {∀, ∃}
Ω : N → N
X → pq X → pYq X → ε
Languages: L
Ω(S) = 0
p q p
Grammars
Alternating Context-Free Grammar (ACFG):
p, q, . . . ∈ Σ
X, Y, . . . ∈ N
N → (N ∪ Σ)∗
S ∈ N
λ : N → {∀, ∃}
Ω : N → N
X → pq X → pYq X → ε
Languages: L
Ω(S) = 0
. . .
p q p q p q p q p
Grammars
Alternating Context-Free Grammar (ACFG):
p, q, . . . ∈ Σ
X, Y, . . . ∈ N
N → (N ∪ Σ)∗
S ∈ N
λ : N → {∀, ∃}
Ω : N → N
X → pq X → pYq X → ε
Languages: L S → p | pqpq | A A → pqA λ(S) = λ(A) = ∃ Ω(S) = Ω(A) = 0
p q p q p q
. . .
p q p q p q p q p
Relationship of LFLC and ACFGs
µX.(a; X ∨ b) L
Ω(S) = 1
a; X ∨ b a X µX.(a; X ∨ b) a; X ∨ b a X b S aS a S | aS a S b
Relationship of LFLC and ACFGs
µX.(a; X ∨ b) L
Ω(S) = 1
a; X ∨ b a X µX.(a; X ∨ b) a; X ∨ b a X b S aS a S | aS a S b
Relationship of LFLC and ACFGs
µX.(a; X ∨ b) L
Ω(S) = 1
a; X ∨ b a X µX.(a; X ∨ b) a; X ∨ b a X b S aS a S | aS a S b
Relationship of LFLC and ACFGs
µX.(a; X ∨ b) L
Ω(S) = 1
a; X ∨ b a X µX.(a; X ∨ b) a; X ∨ b a X b S aS a S | aS a S b
Relationship of LFLC and ACFGs
µX.(a; X ∨ b) L
Ω(S) = 1
a; X ∨ b a X µX.(a; X ∨ b) a; X ∨ b a X b S aS a S | aS a S b
Relationship of LFLC and ACFGs
µX.(a; X ∨ b) L
Ω(S) = 1
a; X ∨ b a X µX.(a; X ∨ b) a; X ∨ b a X b S aS a S | aS a S b
Relationship of LFLC and ACFGs
µX.(a; X ∨ b) L
Ω(S) = 1
a; X ∨ b a X µX.(a; X ∨ b) a; X ∨ b a X b S aS a S | aS a S b
Relationship of LFLC and ACFGs
µX.(a; X ∨ b) L
Ω(S) = 1
a; X ∨ b a X µX.(a; X ∨ b) a; X ∨ b a X b S aS a S | aS a S b
Expressiveness of LFLC and ACFGs
L = {anbncn | n ≥ 0}
L = L1 ∩ L2, where L1,L2 are context-free
due to
ϕ = ϕ1 ∧ ϕ2, ϕ1,ϕ2 are context-free
ultimately periodic infinite words is decidable
w | = ϕ or w ∈ L(G)
As long as ε |
= ϕ:
?
| = ϕ is decidable:
– ϕ becomes either ϕ′ = ϕ or ϕ′ = ϕ ∨ ε – new initial symbol S′, such that either
S′ → S or S′ → S | ε, λ(S) = ∃ ⇒ LFLC’s syntax/semantics is not concise
Alternation Hierarchy
ϕ L(ϕ)
depth(ϕ)
ν X .(µY .(ε ∨ b; Y ) ∨ b; X ) (a∗b)ω
ϕ L(ϕ)
depth(ϕ)
νX.(µY.(ε ∨ b; Y) ∨ b; X) (a∗b)ω νX.µY.(a; Y ∨ b; X) (a∗b)ω
1
– Logic’s fixed-point alternation:
hierarchy collapses at level 0
– Grammar’s acceptance condition:
parity acceptance is equiv. to weak parity acc.
c.f. his submitted “Specifying Non-Regular Properties of Runs”
Future Work
– proper inclusion in context-sensitive languages
– non-periodic infinite words
– extending w |
= ϕ to regular-L | = ϕ