SLIDE 1 Separability
by Piecewise Testable Languages
Wim Martens Wojciech Czerwiński
SLIDE 2
Separability
SLIDE 3
Separability
K L
SLIDE 4
Separability
S K L
SLIDE 5
Separability
S S separates K and L K L
SLIDE 6
Separability
S S separates K and L K L K and L are separable by family F if some S from F separates them
SLIDE 7
Problem
SLIDE 8
Problem
Given: context-free grammars for languages K and L
SLIDE 9
Problem
Given: context-free grammars for languages K and L Question: are K and L separable by piecewise testable languages (PTL)?
SLIDE 10
Problem
Given: context-free grammars for languages K and L Question: are K and L separable by piecewise testable languages (PTL)? piece language
SLIDE 11
Problem
Given: context-free grammars for languages K and L Question: are K and L separable by piecewise testable languages (PTL)? Σ* a1 Σ* a2 Σ*... Σ* an Σ* piece language
SLIDE 12
Problem
Given: context-free grammars for languages K and L Question: are K and L separable by piecewise testable languages (PTL)? Σ* a1 Σ* a2 Σ*... Σ* an Σ* piece language piecewise testable language
SLIDE 13 Problem
Given: context-free grammars for languages K and L Question: are K and L separable by piecewise testable languages (PTL)? Σ* a1 Σ* a2 Σ*... Σ* an Σ* piece language
piecewise testable language
SLIDE 14
What is known?
Separability of CFL by
SLIDE 15 What is known?
- CFL - undecidable (intersection problem)
Separability of CFL by
SLIDE 16 What is known?
- CFL - undecidable (intersection problem)
- regular languages - undecidable
Separability of CFL by
SLIDE 17 What is known?
- CFL - undecidable (intersection problem)
- regular languages - undecidable
- any family containing (reverse)-definite
languages - undecidable Separability of CFL by
SLIDE 18
Definite languages
SLIDE 19
Definite languages
reverse definite language = finite union of wΣ*
SLIDE 20
Definite languages
reverse definite language = finite union of wΣ* any logic L
SLIDE 21 Definite languages
reverse definite language = finite union of wΣ* any logic L
- able to express n-th letter equals a
SLIDE 22 Definite languages
reverse definite language = finite union of wΣ* any logic L
- able to express n-th letter equals a
- closed under boolean combinations
SLIDE 23 Definite languages
reverse definite language = finite union of wΣ* any logic L
- able to express n-th letter equals a
- closed under boolean combinations
describes all reverse definite languages
SLIDE 24
Our main result
SLIDE 25
Our main result
Theorem: Separability of context free languages by piecewise testable languages is decidable
SLIDE 26
Our main message
SLIDE 27 Our main message
- something nontrivial possible for separability
- f CFL
SLIDE 28 Our main message
- something nontrivial possible for separability
- f CFL
- no algebra needed
SLIDE 29 Our main message
- something nontrivial possible for separability
- f CFL
- no algebra needed
- piecewise testable languages are special
SLIDE 30
Generalization
SLIDE 31
Generalization
The same construction works for separating:
SLIDE 32 Generalization
The same construction works for separating:
SLIDE 33 Generalization
The same construction works for separating:
- languages of Petri Nets
- languages of Lossy Counter Machines (?)
SLIDE 34 Generalization
The same construction works for separating:
- languages of Petri Nets
- languages of Lossy Counter Machines (?)
- every class of well-behaving languages
SLIDE 35
Thank you!
SLIDE 36
Proof (sketch)
SLIDE 37
Proof (sketch)
Two semi-procedures
SLIDE 38
Proof (sketch)
Two semi-procedures One tries to show separability
SLIDE 39
Proof (sketch)
Two semi-procedures One tries to show separability One tries to show non-separability
SLIDE 40
Proof (sketch)
Two semi-procedures One tries to show separability One tries to show non-separability Enumerates all piecewise testable languages and test them
SLIDE 41
Proof (sketch)
Two semi-procedures One tries to show separability One tries to show non-separability Enumerates all piecewise testable languages and test them Enumerates all patterns and test them
SLIDE 42
Patterns
SLIDE 43
Patterns
Pattern p over Σ consists of:
SLIDE 44
Patterns
Pattern p over Σ consists of: words w0, w1, ..., wn in Σ*
SLIDE 45
Patterns
Pattern p over Σ consists of: words w0, w1, ..., wn in Σ* subalphabets B1, ..., Bn of Σ
SLIDE 46
Patterns
Pattern p over Σ consists of: words w0, w1, ..., wn in Σ* subalphabets B1, ..., Bn of Σ B⊗ = words from B* that contain all the letters from B
SLIDE 47
Patterns
Pattern p over Σ consists of: words w0, w1, ..., wn in Σ* subalphabets B1, ..., Bn of Σ Pattern p fits to a language L if for all k ≥ 0 intersection of L and w0 (B1⊗)k w1 ... wn-1 (Bn⊗)k wn is nonempty B⊗ = words from B* that contain all the letters from B
SLIDE 48
Patterns and separability
SLIDE 49
Patterns and separability
Theorem (van Rooijen, Zeitoun `13): Languages K and L are non-separable by PTL if and only if there exists a pattern p, that fits to both to K and L