Tree Languages Definable with One Quantifier Alternation Mikoaj - - PowerPoint PPT Presentation

tree languages definable with one quantifier alternation
SMART_READER_LITE
LIVE PREVIEW

Tree Languages Definable with One Quantifier Alternation Mikoaj - - PowerPoint PPT Presentation

Tree Languages Definable with One Quantifier Alternation Mikoaj Bojaczyk (Warszawa) Luc Segoufin (Paris) e following problem is decidable: Input : A regular tree language L , given by a tree automaton. Question : Is L definable by a


slide-1
SLIDE 1

Tree Languages Definable with One Quantifier Alternation

Mikołaj Bojańczyk (Warszawa) Luc Segoufin (Paris)

slide-2
SLIDE 2

e following problem is decidable: Input: A regular tree language L, given by a tree automaton. Question: Is L definable by a formula with quantifier prefix ∃* ∀* and also by a formula with quantifier prefix ∀*∃*

slide-3
SLIDE 3

is talk is about understanding the expressive power of logics on words and trees. e logics involved can only define (some) regular languages.

slide-4
SLIDE 4

is talk is about understanding the expressive power of logics on words and trees. e logics involved can only define (some) regular languages.

all regular languages languages definable in logic X

Understand logic X = give na algorithm to decide if a language L is definable in X

slide-5
SLIDE 5

Why this notion of understanding?

ere is a rich theory connecting logic, regular languages, and algebra.

slide-6
SLIDE 6

Why this notion of understanding?

ere is a rich theory connecting logic, regular languages, and algebra.

eorem. (Schützenberger, McNaughton/Papert) e following are equivalent for a word language: – L is definable in first-order logic – L is star-free – the syntactic monoid of L is group-free

slide-7
SLIDE 7

Why this notion of understanding?

ere is a rich theory connecting logic, regular languages, and algebra.

eorem. (Schützenberger, McNaughton/Papert) e following are equivalent for a word language: – L is definable in first-order logic – L is star-free – the syntactic monoid of L is group-free ... more results, including modulo quantifiers, the quantifier alternation hierarchy, etc.

slide-8
SLIDE 8

Why this notion of understanding?

ere is a rich theory connecting logic, regular languages, and algebra.

eorem. (Schützenberger, McNaughton/Papert) e following are equivalent for a word language: – L is definable in first-order logic – L is star-free – the syntactic monoid of L is group-free ... more results, including modulo quantifiers, the quantifier alternation hierarchy, etc. is paper is part of a program investigating the algebra- logic connection for trees. Eventually, we want to answer questions such as: – what is the expressive power of first-order logic on trees? – what is a tree group? – is there a Krohn-Rhodes decomposition theory?

slide-9
SLIDE 9

eorem. (Etessami, Schützenberger, Schwentick, érien, Vollimer, Wilke) e following formalisms define the same word languages:

slide-10
SLIDE 10

eorem. (Etessami, Schützenberger, Schwentick, érien, Vollimer, Wilke) e following formalisms define the same word languages: b* · a · {a,b,c}*

slide-11
SLIDE 11

eorem. (Etessami, Schützenberger, Schwentick, érien, Vollimer, Wilke) e following formalisms define the same word languages:

  • 1. Two-variable first-order logic

b* · a · {a,b,c}*

slide-12
SLIDE 12

eorem. (Etessami, Schützenberger, Schwentick, érien, Vollimer, Wilke) e following formalisms define the same word languages:

  • 1. Two-variable first-order logic

∃x. a(x) ∧

  • ∀y < x. b(y)
  • b* · a · {a,b,c}*
slide-13
SLIDE 13

eorem. (Etessami, Schützenberger, Schwentick, érien, Vollimer, Wilke) e following formalisms define the same word languages:

  • 1. Two-variable first-order logic
  • 2. Temporal logic with operators F and F-1

b* · a · {a,b,c}*

slide-14
SLIDE 14

eorem. (Etessami, Schützenberger, Schwentick, érien, Vollimer, Wilke) e following formalisms define the same word languages:

  • 1. Two-variable first-order logic
  • 2. Temporal logic with operators F and F-1

b* · a · {a,b,c}* F

  • a ∧ ¬(F−1c)
slide-15
SLIDE 15

eorem. (Etessami, Schützenberger, Schwentick, érien, Vollimer, Wilke) e following formalisms define the same word languages:

  • 1. Two-variable first-order logic
  • 2. Temporal logic with operators F and F-1

b* · a · {a,b,c}*

  • 3. Languages definable with prefix ∃* ∀*

and also with prefix ∀* ∃*

slide-16
SLIDE 16

eorem. (Etessami, Schützenberger, Schwentick, érien, Vollimer, Wilke) e following formalisms define the same word languages:

  • 1. Two-variable first-order logic
  • 2. Temporal logic with operators F and F-1

b* · a · {a,b,c}* ∀x∃y. c(x) ⇒

  • y < x ∧ a(y)
  • 3. Languages definable with prefix ∃* ∀*

and also with prefix ∀* ∃*

slide-17
SLIDE 17

eorem. (Etessami, Schützenberger, Schwentick, érien, Vollimer, Wilke) e following formalisms define the same word languages:

  • 1. Two-variable first-order logic
  • 2. Temporal logic with operators F and F-1
  • 4. Two–way ordered deterministic automata

b* · a · {a,b,c}*

  • 3. Languages definable with prefix ∃* ∀*

and also with prefix ∀* ∃*

slide-18
SLIDE 18

eorem. (Etessami, Schützenberger, Schwentick, érien, Vollimer, Wilke) e following formalisms define the same word languages:

  • 1. Two-variable first-order logic
  • 2. Temporal logic with operators F and F-1
  • 4. Two–way ordered deterministic automata

b* · a · {a,b,c}* b⇾ a⇾

  • 3. Languages definable with prefix ∃* ∀*

and also with prefix ∀* ∃*

slide-19
SLIDE 19

eorem. (Etessami, Schützenberger, Schwentick, érien, Vollimer, Wilke) e following formalisms define the same word languages:

  • 1. Two-variable first-order logic
  • 2. Temporal logic with operators F and F-1
  • 4. Two–way ordered deterministic automata
  • 5. Turtle automata

b* · a · {a,b,c}*

  • 3. Languages definable with prefix ∃* ∀*

and also with prefix ∀* ∃*

slide-20
SLIDE 20

eorem. (Etessami, Schützenberger, Schwentick, érien, Vollimer, Wilke) e following formalisms define the same word languages:

  • 1. Two-variable first-order logic
  • 2. Temporal logic with operators F and F-1
  • 4. Two–way ordered deterministic automata
  • 5. Turtle automata

b* · a · {a,b,c}* “go right to first a; go left to first c” fails “go right to first a” works

  • 3. Languages definable with prefix ∃* ∀*

and also with prefix ∀* ∃*

slide-21
SLIDE 21

eorem. (Etessami, Schützenberger, Schwentick, érien, Vollimer, Wilke) e following formalisms define the same word languages:

  • 1. Two-variable first-order logic
  • 2. Temporal logic with operators F and F-1
  • 6. Monoids in DA
  • 4. Two–way ordered deterministic automata
  • 5. Turtle automata

b* · a · {a,b,c}*

  • 3. Languages definable with prefix ∃* ∀*

and also with prefix ∀* ∃*

slide-22
SLIDE 22

eorem. (Etessami, Schützenberger, Schwentick, érien, Vollimer, Wilke) e following formalisms define the same word languages:

  • 1. Two-variable first-order logic
  • 2. Temporal logic with operators F and F-1
  • 7. A type of unambiguous expression
  • 6. Monoids in DA
  • 4. Two–way ordered deterministic automata
  • 5. Turtle automata

b* · a · {a,b,c}*

  • 3. Languages definable with prefix ∃* ∀*

and also with prefix ∀* ∃*

slide-23
SLIDE 23

eorem. (Etessami, Schützenberger, Schwentick, érien, Vollimer, Wilke) e following formalisms define the same word languages:

  • 1. Two-variable first-order logic
  • 2. Temporal logic with operators F and F-1
  • 7. A type of unambiguous expression
  • 6. Monoids in DA
  • 4. Two–way ordered deterministic automata
  • 5. Turtle automata

b* · a · {a,b,c}*

  • 3. Languages definable with prefix ∃* ∀*

and also with prefix ∀* ∃* What about trees?

slide-24
SLIDE 24

eorem. (Etessami, Schützenberger, Schwentick, érien, Vollimer, Wilke) e following formalisms define the same word languages:

  • 1. Two-variable first-order logic
  • 2. Temporal logic with operators F and F-1
  • 7. A type of unambiguous expression
  • 6. Monoids in DA
  • 4. Two–way ordered deterministic automata
  • 5. Turtle automata

b* · a · {a,b,c}*

  • 3. Languages definable with prefix ∃* ∀*

and also with prefix ∀* ∃*

slide-25
SLIDE 25

eorem. (Etessami, Schützenberger, Schwentick, érien, Vollimer, Wilke) e following formalisms define the same word languages:

  • 1. Two-variable first-order logic
  • 2. Temporal logic with operators F and F-1
  • 6. Monoids in DA
  • 4. Two–way ordered deterministic automata
  • 5. Turtle automata

b* · a · {a,b,c}*

  • 3. Languages definable with prefix ∃* ∀*

and also with prefix ∀* ∃*

slide-26
SLIDE 26

eorem. (Etessami, Schützenberger, Schwentick, érien, Vollimer, Wilke) e following formalisms define the same word languages:

  • 1. Two-variable first-order logic
  • 2. Temporal logic with operators F and F-1
  • 6. Monoids in DA
  • 5. Turtle automata

b* · a · {a,b,c}*

  • 3. Languages definable with prefix ∃* ∀*

and also with prefix ∀* ∃*

slide-27
SLIDE 27

eorem. (Etessami, Schützenberger, Schwentick, érien, Vollimer, Wilke) e following formalisms define the same word languages:

  • 1. Two-variable first-order logic
  • 2. Temporal logic with operators F and F-1
  • 6. Monoids in DA

b* · a · {a,b,c}*

  • 3. Languages definable with prefix ∃* ∀*

and also with prefix ∀* ∃*

slide-28
SLIDE 28
  • 1. Two-variable first-order logic
  • 2. Temporal logic with operators F and F-1
  • 6. Monoids in DA
  • 3. Languages definable with prefix ∃* ∀*

and also with prefix ∀* ∃*

slide-29
SLIDE 29
  • 1. Two-variable first-order logic
  • 2. Temporal logic with operators F and F-1
  • 6. Monoids in DA
  • 3. Languages definable with prefix ∃* ∀*

and also with prefix ∀* ∃*

slide-30
SLIDE 30
  • 1. Two-variable first-order logic
  • 2. Temporal logic with operators F and F-1
  • 6. Monoids in DA
  • 3. Languages definable with prefix ∃* ∀*

and also with prefix ∀* ∃*

slide-31
SLIDE 31
  • 1. Two-variable first-order logic
  • 2. Temporal logic with operators F and F-1
  • 6. Monoids in DA
  • 3. Languages definable with prefix ∃* ∀*

and also with prefix ∀* ∃*

slide-32
SLIDE 32
  • 1. Two-variable first-order logic
  • 2. Temporal logic with operators F and F-1
  • 6. Monoids in DA
  • 3. Languages definable with prefix ∃* ∀*

and also with prefix ∀* ∃*

“two a’s”

slide-33
SLIDE 33
  • 1. Two-variable first-order logic
  • 2. Temporal logic with operators F and F-1
  • 6. Monoids in DA
  • 3. Languages definable with prefix ∃* ∀*

and also with prefix ∀* ∃*

“two a’s”

slide-34
SLIDE 34
  • 1. Two-variable first-order logic
  • 2. Temporal logic with operators F and F-1
  • 6. Monoids in DA
  • 3. Languages definable with prefix ∃* ∀*

and also with prefix ∀* ∃*

“all children of root have label a” “two a’s”

slide-35
SLIDE 35
  • 1. Two-variable first-order logic
  • 2. Temporal logic with operators F and F-1
  • 6. Monoids in DA
  • 3. Languages definable with prefix ∃* ∀*

and also with prefix ∀* ∃*

“all children of root have label a” “two a’s” “three a’s”

slide-36
SLIDE 36
  • 1. Two-variable first-order logic
  • 2. Temporal logic with operators F and F-1
  • 6. Monoids in DA
  • 3. Languages definable with prefix ∃* ∀*

and also with prefix ∀* ∃*

“all children of root have label a” “two a’s” “three a’s”

slide-37
SLIDE 37
  • 1. Two-variable first-order logic
  • 2. Temporal logic with operators F and F-1
  • 6. Monoids in DA
  • 3. Languages definable with prefix ∃* ∀*

and also with prefix ∀* ∃*

“all children of root have label a” “two a’s” “three a’s”

slide-38
SLIDE 38

We consider forest languages instead of tree languages (a forest is a sequence of trees)

a b a a a b a a b a b

We use first-order formulas to describe properties of forests. Variables quantify over nodes. Predicates allowed are: “x ancestor of y” “x lexicographically before y” “label of x is a”

slide-39
SLIDE 39

We are interested in forest languages that can be defined in both ∀* ∃* and ∃* ∀*. We call this class ∆2.

slide-40
SLIDE 40

We are interested in forest languages that can be defined in both ∀* ∃* and ∃* ∀*. We call this class ∆2. E.g. Trees ∈ ∆2

slide-41
SLIDE 41

We are interested in forest languages that can be defined in both ∀* ∃* and ∃* ∀*. We call this class ∆2. E.g. Trees ∈ ∆2 every two nodes have a common ancestor ∀x∀y∃z. z ≤ x ∧ z ≤ y

slide-42
SLIDE 42

∀* ∃* We are interested in forest languages that can be defined in both ∀* ∃* and ∃* ∀*. We call this class ∆2. E.g. Trees ∈ ∆2 every two nodes have a common ancestor ∀x∀y∃z. z ≤ x ∧ z ≤ y

slide-43
SLIDE 43

∀* ∃* We are interested in forest languages that can be defined in both ∀* ∃* and ∃* ∀*. We call this class ∆2. E.g. Trees ∈ ∆2 ∃x∀y. x ≤ y some node is ancestor to every node every two nodes have a common ancestor ∀x∀y∃z. z ≤ x ∧ z ≤ y

slide-44
SLIDE 44

∃* ∀* ∀* ∃* We are interested in forest languages that can be defined in both ∀* ∃* and ∃* ∀*. We call this class ∆2. E.g. Trees ∈ ∆2 ∃x∀y. x ≤ y some node is ancestor to every node every two nodes have a common ancestor ∀x∀y∃z. z ≤ x ∧ z ≤ y

slide-45
SLIDE 45

Question: What forest languages can be defined in ∆2 ? Preferably, give an algorithm that decides if L ∈ ∆2.

slide-46
SLIDE 46

a word w can have two encodings:

a b b a a b a

hor(w)

a b b a a b a

ver(w)

  • Fact. if L is a word language definable in ∆2, then both

hor(L) and ver(L) are forest languages definable in ∆2.

slide-47
SLIDE 47

Our characterization is stated as an identity. Intuitively, a forest language is definable in ∆2 iff it admits a certain pumping lemma.

slide-48
SLIDE 48
slide-49
SLIDE 49

A context is a forest with a hole in a leaf

a b a b a

slide-50
SLIDE 50

A context is a forest with a hole in a leaf

a b a b a a a b b a b a a a b b a b

=

slide-51
SLIDE 51

A context is a forest with a hole in a leaf

a b a b a a a b b a b a a a b b a b

=

Notion of piece for contexts. is a piece of

slide-52
SLIDE 52

Myhill-Nerode congruence for a forest language L.

slide-53
SLIDE 53

Myhill-Nerode congruence for a forest language L. Two contexts and are called L-equivalent if

slide-54
SLIDE 54

Myhill-Nerode congruence for a forest language L. Two contexts and are called L-equivalent if for every context and every forest

slide-55
SLIDE 55

Myhill-Nerode congruence for a forest language L. Two contexts and are called L-equivalent if for every context and every forest ∈ L iff ∈ L

slide-56
SLIDE 56

Main eorem. A forest language is definable in ∆2 iff the following holds for all sufficiently large n

slide-57
SLIDE 57

Main eorem. A forest language is definable in ∆2 iff the following holds for all sufficiently large n is a piece of if , then

slide-58
SLIDE 58

Main eorem. A forest language is definable in ∆2 iff the following holds for all sufficiently large n is equivalent to is a piece of if , then

n times{ n times{ n times

}

n times

}

slide-59
SLIDE 59

Main eorem. A forest language is definable in ∆2 iff the following holds for all sufficiently large n is equivalent to is a piece of if , then

n times{ n times{ n times

}

n times

}

is criterion is decidable. We also have variants of the theorem for unordered trees / forests.

slide-60
SLIDE 60

Application. e set of binary trees (every node has zero or two children) is not definable in ∆2 is confused with

slide-61
SLIDE 61

Big project: understand the expressive power of first-order logic on trees.

slide-62
SLIDE 62

FO(≤) Big project: understand the expressive power of first-order logic on trees. regular languages

slide-63
SLIDE 63

FO(≤) Σ1(≤) Π1(≤) Big project: understand the expressive power of first-order logic on trees. regular languages

slide-64
SLIDE 64

FO(≤) Σ1(≤) Π1(≤) Big project: understand the expressive power of first-order logic on trees. regular languages Easy excercise

slide-65
SLIDE 65

FO(≤) Σ1(≤) Π1(≤) Bool(Σ1(≤)) Big project: understand the expressive power of first-order logic on trees. regular languages Easy excercise

slide-66
SLIDE 66

FO(≤) Σ1(≤) Π1(≤) Bool(Σ1(≤)) Big project: understand the expressive power of first-order logic on trees. regular languages BSS LICS  Easy excercise

slide-67
SLIDE 67

FO(≤) Σ1(≤) Π1(≤) Bool(Σ1(≤)) Σ2(≤) Π2(≤) ∆2(≤) Big project: understand the expressive power of first-order logic on trees. regular languages BSS LICS  Easy excercise

slide-68
SLIDE 68

FO(≤) Σ1(≤) Π1(≤) Bool(Σ1(≤)) Σ2(≤) Π2(≤) ∆2(≤) Big project: understand the expressive power of first-order logic on trees. regular languages BSS LICS  this paper Easy excercise

slide-69
SLIDE 69

FO(≤) Σ1(≤) Π1(≤) Bool(Σ1(≤)) Σ2(≤) Π2(≤) ∆2(≤) Big project: understand the expressive power of first-order logic on trees. regular languages =? =? =? BSS LICS  this paper Easy excercise