Languages, logics and automata

Size: px
Start display at page:

Download "Languages, logics and automata"

Transcription

1 Languages, logics and automata Anca Muscholl LaBRI, Bordeaux, France EWM summer school, Leiden / 89

2 Before all that.. Sonia Kowalewskaya Emmy Noether Julia Robinson All this attention has been gratifying but also embarrassing. What I really am is a mathematician. Rather than being remembered as the first woman this or that, I would prefer to be remembered, as a mathematician should, simply for the theorems I have proved and the problems I have solved. (J. Robinson) 2 / 89

3 Plan 1 Automata 2 Logic 3 Schützenberger s theorem 4 Infinite words and trees 3 / 89

4 Plan 1 Automata 2 Logic 3 Schützenberger s theorem 4 Infinite words and trees 4 / 89

5 Automata Automata in Computer Science Fundamental notion for Theoretical Computer Science, rooted in computability theory and logic (Turing, Church, Kleene, 1930) and formal language theory (Chomsky, 1960). Mathematical model for computers. Applications verification of digital circuits, programs, systems,... modelization and dynamics of biological systems speech and image processing... 5 / 89

6 Languages Languages Words (strings) over Σ = {a, b,...}: Concatenation: ɛ, a, b, aa, ab,... ab ba = abba Free monoid (Σ,, ɛ): set of all words over Σ, together with concatenation (associative) Language: set of words, L Σ Beyond finite words Infinite words, ordinal words Binary trees (finite and infinite) Pictures Finite structures: partial orders, graphs Infinite structures: automatic structures, structures defined by logics 6 / 89

7 Automata on finite words 7 / 89

8 Automata Finite automata Finite automata (or finite-state machines): computers with limited memory. Example: switch press off on release states: on, off transitions: (off, press, on), (on, release, off ) initial state: off 8 / 89

9 Finite automata A finite automaton is a tuple A = S, Σ, δ, s 0, F with: S finite set of states Σ alphabet (finite set of letters) δ : S Σ S partially defined transition function s 0 S initial state, F S set of accept states Runs, accepted language Run: sequence of transitions Accepting run: s n F Accepted language L(A) Σ : a s 0 a 0 1 a n 1 s1 s n a L(A) = {a 0 a n 1 s 0 a 0 1 a n 1 s1 s n is accepting run} 9 / 89

10 Non-determinism Multiple transitions with same label from a state, multiple initial states: non-deterministic automaton A = S, Σ, δ, I, F. Transition relation: δ S Σ S L(A) is the set of words labeling some accepting run of A. Example a, b a, b a a a 3 S = {0, 1, 2, 3} Σ = {a, b} I = {0, 3}, F = {2, 3} aaa L(A) 10 / 89

11 Non-determinism Multiple transitions with same label from a state, multiple initial states: non-deterministic automaton A = S, Σ, δ, I, F. Transition relation: δ S Σ S L(A) is the set of words labeling some accepting run of A. Example a, b a, b a a a 3 S = {0, 1, 2, 3} Σ = {a, b} I = {0, 3}, F = {2, 3} aaa L(A) 11 / 89

12 Non-determinism Multiple transitions with same label from a state, multiple initial states: non-deterministic automaton A = S, Σ, δ, I, F. Transition relation: δ S Σ S L(A) is the set of words labeling some accepting run of A. Example a, b a, b a a a 3 S = {0, 1, 2, 3} Σ = {a, b} I = {0, 3}, F = {2, 3} aaa L(A) 12 / 89

13 Non-determinism Multiple transitions with same label from a state, multiple initial states: non-deterministic automaton A = S, Σ, δ, I, F. Transition relation: δ S Σ S L(A) is the set of words labeling some accepting run of A. Example a, b a, b a a a 3 S = {0, 1, 2, 3} Σ = {a, b} I = {0, 3}, F = {2, 3} aaa L(A) 13 / 89

14 Non-determinism Multiple transitions with same label from a state, multiple initial states: non-deterministic automaton A = S, Σ, δ, I, F. Transition relation: δ S Σ S L(A) is the set of words labeling some accepting run of A. Example a, b a, b a a a 3 S = {0, 1, 2, 3} Σ = {a, b} I = {0, 3}, F = {2, 3} aaa L(A) 14 / 89

15 Non-determinism Multiple transitions with same label from a state, multiple initial states: non-deterministic automaton A = S, Σ, δ, I, F. Transition relation: δ S Σ S L(A) is the set of words labeling some accepting run of A. Example a, b a, b a a a 3 S = {0, 1, 2, 3} Σ = {a, b} I = {0, 3}, F = {2, 3} aaa L(A) 15 / 89

16 Non-determinism Multiple transitions with same label from a state, multiple initial states: non-deterministic automaton A = S, Σ, δ, I, F. Transition relation: δ S Σ S L(A) is the set of words labeling some accepting run of A. Example a, b a, b a a a 3 S = {0, 1, 2, 3} Σ = {a, b} I = {0, 3}, F = {2, 3} aaa L(A) 16 / 89

17 Expressions Regular expressions Expressions built from, ɛ and a (a Σ), using the operations union, product and Kleene iteration ( ). Example E 1 + E 2 L(E 1) L(E 2) E 1E 2 L(E 1) L(E 2) = {uv u L(E 1), v L(E 2)} E L(E ) = S n 0 L(E) L(E) {z } n L(A) = (a + b) a + ɛ + (a + b) aa(a + b) 17 / 89

18 Expressions Regular expressions Expressions built from, ɛ and a (a Σ), using the operations union, product and Kleene iteration ( ). Example E 1 + E 2 L(E 1) L(E 2) E 1E 2 L(E 1) L(E 2) = {uv u L(E 1), v L(E 2)} E L(E ) = S n 0 L(E) L(E) {z } n L(A) = (a + b) a + ɛ + (a + b) aa(a + b) Star-free expressions Expressions built from, ɛ and a (a Σ), using the operations union, product and complementation ( co ). Example (a + b) = co 18 / 89

19 Regular languages (Non-deterministic) finite automata and regular expressions define the same class of word languages, called regular languages. Remark Regular languages over a given alphabet form a Boolean algebra. 19 / 89

20 Plan 1 Automata 2 Logic 3 Schützenberger s theorem 4 Infinite words and trees 20 / 89

21 Logic Logic on words: syntax First-order variables x, y,... and second-order variables X, Y,.... Atomic propositions a(x) (a Σ), x < y, y = x + 1, x X. Boolean connectors,,,..., quantifiers,. MSOL: monadic second-order logic, FOL: first-order logic. Semantics Relational structure associated to w = a 1 a n Σ + with dom(w) = {1,..., n}: dom(w), succ, <, {a a Σ} succ = {(k, k + 1) 1 k < n} < linear order on dom(w) a = {k {1,..., n} a k = a} First-order (second-order, resp.) variables = positions (sets of positions, resp.). 21 / 89

22 Language of ϕ w ϕ L(ϕ) = {w Σ + w ϕ} w models ϕ language of ϕ 22 / 89

23 Language of ϕ w ϕ L(ϕ) = {w Σ + w ϕ} w models ϕ language of ϕ Examples X 0 X 1 x `(x X 0 x X 1) (x X 0 x / X 1) 1 X 1 x `(x X 0 x + 1 X 1) (x X 1 x + 1 X 0) x (x X 1 a(x)) =: ODD a Every odd position carries an a. ϕ := ODD a EVEN b L(ϕ) = (ab) + 23 / 89

24 Language of ϕ w ϕ L(ϕ) = {w Σ + w ϕ} w models ϕ language of ϕ Examples X 0 X 1 x `(x X 0 x X 1) (x X 0 x / X 1) 1 X 1 x `(x X 0 x + 1 X 1) (x X 1 x + 1 X 0) x (x X 1 a(x)) =: ODD a Every odd position carries an a. ϕ := ODD a EVEN b L(ϕ) = (ab) + ϕ := x a(x) b(x + 1) b(x) a(x + 1) a(1) b(n) 24 / 89

25 Logic and automata Büchi (1960) and Elgot (1961) show that finite automata and monadic second-order logic have the same expressive power. Büchi (1962), McNaughton (1966), Rabin (1969) extend the equivalence to infinite words and trees. Motivation: decision problems for logical systems and synthesis problems. Also: descriptive complexity theory relates logics with complexity classes Ptime, NP, Pspace,... (Fagin 1974). Today automata are a central algorithmic tool for logic-related problems: language theory, model-checking, synthesis/control, navigation in XML documents, / 89

26 Büchi Büchi s theorem, 1960 A language is regular if and only if it is definable in MSOL. 26 / 89

27 Büchi Büchi s theorem, 1960 A language is regular if and only if it is definable in MSOL. Proof ( ) Describe accepting runs in MSOL: Partition dom(w) into sets X s, one for each state s. First position belongs to X s0, last one to S f F X f. Consistency of automaton transitions: for each 1 k < n, s S, a Σ, (k X s a(x)) [ (k + 1) X s s :(s,a,a ) δ 27 / 89

28 Büchi s theorem A language is regular if and only if it is definable in MSOL. Proof ( ) Formula ϕ(x 1,..., x k, X k+1,..., X l ) with free variables x i, X j is interpreted over Σ {0, 1} l. Automata for atomic predicates: succ(x 1, x 2) Σ {0} 2 Σ {0} 2 (, 1, 0) (, 0, 1) Boolean connectors, : closure under union, complementation. Quantifier corresponds to a projection from Σ {0, 1} l to Σ {0, 1} l / 89

29 Application: Presburger arithmetic Peano arithmetic FOL(N, +, ) is undecidable (even the existential fragment, i.e. diophantine equations, Matyasevich 1970). Presburger arithmetic FOL(N, +) is decidable (Presburger 1929). Decision procedure via automata: encode natural numbers in binary (lest significant bit left). Automaton for addition: (0, 0, 0), (0, 1, 1) (0, 1, 0), (1, 0, 0) (1,1,0) 0 1 (1, 0, 1) (0, 0, 1) (1, 1, 1) The automata-based procedure applied to formulas in prenex normal form yields automata of triple exponential size (Klaedtke 2004). Quantifier elimination yields a double alternating time procedure. 29 / 89

30 Definability Definability problem Given a restricted fragment of MSOL, say FOL, how can we decide whether a language is definable in that fragment? 30 / 89

31 Definability Definability problem Given a restricted fragment of MSOL, say FOL, how can we decide whether a language is definable in that fragment? For word languages, the answer is provided using algebra. 31 / 89

32 Definability Definability problem Given a restricted fragment of MSOL, say FOL, how can we decide whether a language is definable in that fragment? For word languages, the answer is provided using algebra. Recognizable languages Finite monoid M,, 1 : x (y z) = (x y) z, 1 x = x 1 = x Language L Σ, homomorphism h : Σ M. h recognizes L if L = h 1 (h(l)). L is recognized by M if there exists a homomorphism h : Σ M recognizing L. Languages recognized by finite monoids are precisely the regular languages. 32 / 89

33 Example (a + b) aa(a + b) is recognized by M = {1, a, b, 0, ab, ba}, h(a) = a, h(b) = b with a a = 0, b b = b, x 0 = 0 y = 0, ab b = ab, ab a = a,... h 1 (1) = ɛ h 1 (0) = (a + b) aa(a + b) h 1 (a) = (ab + ) a h 1 (b) = b(ab + ) h 1 (ab) = (ab + ) h 1 (ba) = b(ab + ) a 33 / 89

34 Plan 1 Automata 2 Logic 3 Schützenberger s theorem 4 Infinite words and trees 34 / 89

35 Aperiodicity e x n+1 x x 2 x n x n+p 1 x n = x n+p A monoid is aperiodic if it satisfies x n = x n+1 for some n. Example with M = {1, a, b, 0, ab, ba}, h(a) = a, h(b) = b a a = 0, b b = b, x 0 = 0 y = 0, ab b = ab, ab a = a, ab ab = ab,... is aperiodic: a 2 = a 3 and x 2 = x for every x a 35 / 89

36 Aperiodic language A language is aperiodic if it is recognized by some finite aperiodic monoid. Schützenberger s theorem A regular language is star-free if and only if it is aperiodic. McNaughton & Papert A regular language is star-free if and only if it is definable in FOL. 36 / 89

37 Aperiodic language A language is aperiodic if it is recognized by some finite aperiodic monoid. Schützenberger s theorem A regular language is star-free if and only if it is aperiodic. McNaughton & Papert A regular language is star-free if and only if it is definable in FOL. Example is defined by (a + b) aa(a + b) x y. a(x) a(y) succ(x, y) 37 / 89

38 McNaughton & Papert A regular language is star-free if and only if it is definable in FOL. 38 / 89

39 McNaughton & Papert A regular language is star-free if and only if it is definable in FOL. Proof ( ) Translate union, complementation and concatenation into FOL. Let L i = L(ϕ i), i = 1, 2. Formula for L 1 L 2: x. `ϕ 1 x ϕ 2 >x ϕ x : ϕ relative to dom(w) {i i x}. 39 / 89

40 McNaughton & Papert A regular language is star-free if and only if it is definable in FOL. Proof ( ) Translate union, complementation and concatenation into FOL. Let L i = L(ϕ i), i = 1, 2. Formula for L 1 L 2: x. `ϕ 1 x ϕ 2 >x ϕ x : ϕ relative to dom(w) {i i x}. Proof ( ) x y. a(x) a(y) {z} {z} 1 2 succ(x, y) {z } 3 {z } 4 E 1 = (a + b) a x(a + b), E 2 = (a + b) a y(a + b) E 3 = (a + b) (a x + b x)(a y + b y)(a + b) E 4 = E 1 E 2 E 3 = (a + b) a xa y(a + b) E = (a + b) aa(a + b) 40 / 89

41 Schützenberger s theorem A regular language is star-free if and only if it is aperiodic. Proof( ) Syntactic congruence on Σ Σ : u L v if xuy L xvy L, x, y Σ Show that for every star-free L Σ there exists n > 0 such that w n L w n+1, for all w Σ. 41 / 89

42 Schützenberger s theorem A regular language is star-free if and only if it is aperiodic. Proof( ) Syntactic congruence on Σ Σ : u L v if xuy L xvy L, x, y Σ Show that for every star-free L Σ there exists n > 0 such that w n L w n+1, for all w Σ. w w {a} w w w {a} 42 / 89

43 Schützenberger s theorem A regular language is star-free if and only if it is aperiodic. Proof( ) Syntactic congruence on Σ Σ : u L v if xuy L xvy L, x, y Σ Show that for every star-free L Σ there exists n > 0 such that w n L w n+1, for all w Σ. w w w w L 1 L 2 n 1 n 2 43 / 89

44 Schützenberger s theorem A regular language is star-free if and only if it is aperiodic. Proof( ) Syntactic congruence on Σ Σ : u L v if xuy L xvy L, x, y Σ Show that for every star-free L Σ there exists n > 0 such that w n L w n+1, for all w Σ. w w w w L 1 L 2 n 1+1 n 2 44 / 89

45 Schützenberger s theorem A regular language is star-free if and only if it is aperiodic. Proof( ) Original proof by Schützenberger uses algebra. Simpler proof due to Wilke (1998) by induction over the size of the alphabet Σ and the size of an (aperiodic) monoid recognizing L Σ. Even more simple proof due to Diekert/Kufleitner, / 89

46 Proof by Diekert/Kufleitner 1/3 A tiny bit of algebra M,, 1 monoid, m M Define operation on mm Mm: xm my = xmy mm Mm,, m is a monoid mm Mm,, m aperiodic if M aperiodic mm Mm < M if M aperiodic and m 1 46 / 89

47 Proof by Diekert/Kufleitner 2/3 Preliminary L Σ recognized by homomorphism h : Σ M means L = [ h 1 (m) m h(l) Sufficient to know that each h 1 (m) is star-free. 47 / 89

48 Proof by Diekert/Kufleitner 2/3 Preliminary L Σ recognized by homomorphism h : Σ M means L = [ h 1 (m) m h(l) Sufficient to know that each h 1 (m) is star-free. h 1 (1) M aperiodic and x 1 x n = 1 implies x i = 1 for each i. h 1 (1) = {a Σ h(a) = 1} is star-free 48 / 89

49 Proof by Diekert/Kufleitner 2/3 Preliminary L Σ recognized by homomorphism h : Σ M means L = [ h 1 (m) m h(l) Sufficient to know that each h 1 (m) is star-free. h 1 (1) M aperiodic and x 1 x n = 1 implies x i = 1 for each i. h 1 (m), m 1 h 1 (1) = {a Σ h(a) = 1} is star-free Every word w with h(w) = m can be decomposed as c c c c h 1 (m 1) h 1 (m 2) h 1 (m 3) for some m i with m = m 1 m 2 m 3 and c Σ with h(c) 1. h 1 (m 1), h 1 (m 3): induction over Σ. 49 / 89

50 Proof by Diekert/Kufleitner 3/3 h 1 (m) (cσ Σ c), h(c) 1 T = h((σ \ {c}) ) v 1 v 2 v k w Σ c c c c c c c c T h h h h(v 1) h(v 2) h(v k ) g g h(c)m Mh(c) h(cv 1c) h(cv 2c) h(cv k c) = h(w) Recall: h(c)m Mh(c) is aperiodic and smaller than M. g 1 (m) T is star-free (induction on M) h 1 (t) (Σ \ {c}) star-free (induction on Σ) Star-free languages are closed under substitution. 50 / 89

51 Ehrenfeucht-Fraïssé games FOL definability Ehrenfeucht-Fraïssé games: general method for determining FOL definability (words, graphs etc.) EF-game: Played on two structures S, s, T, t. Spoiler picks an element from either S or T. Duplicator answers with an element in the other structure. Duplicator wins if she can always extend the partial isomorphism. Example FOL on words Structures S = aaba, T = aba: Duplicator wins the 2-round game for FOL with =, < a a b a a b a 51 / 89

52 Ehrenfeucht-Fraïssé games FOL definability Ehrenfeucht-Fraïssé games: general method for determining FOL definability (words, graphs etc.) EF-game: Played on two structures S, s, T, t. Spoiler picks an element from either S or T. Duplicator answers with an element in the other structure. Duplicator wins if she can always extend the partial isomorphism. Example FOL on words Structures S = aaba, T = aba: Duplicator wins the 2-round game for FOL with =, < a a b a a b a 52 / 89

53 Ehrenfeucht-Fraïssé games FOL definability Ehrenfeucht-Fraïssé games: general method for determining FOL definability (words, graphs etc.) EF-game: Played on two structures S, s, T, t. Spoiler picks an element from either S or T. Duplicator answers with an element in the other structure. Duplicator wins if she can always extend the partial isomorphism. Example FOL on words Structures S = aaba, T = aba: Duplicator wins the 2-round game for FOL with =, < a a b a a b a 53 / 89

54 Ehrenfeucht-Fraïssé games FOL definability Ehrenfeucht-Fraïssé games: general method for determining FOL definability (words, graphs etc.) EF-game: Played on two structures S, s, T, t. Spoiler picks an element from either S or T. Duplicator answers with an element in the other structure. Duplicator wins if she can always extend the partial isomorphism. Example FOL on words Structures S = aaba, T = aba: Duplicator wins the 2-round game for FOL with =, < a a b a a b a 54 / 89

55 Ehrenfeucht-Fraïssé games FOL definability Ehrenfeucht-Fraïssé games: general method for determining FOL definability (words, graphs etc.) EF-game: Played on two structures S, s, T, t. Spoiler picks an element from either S or T. Duplicator answers with an element in the other structure. Duplicator wins if she can always extend the partial isomorphism. Example FOL on words Structures S = aaba, T = aba: Duplicator wins the 2-round game for FOL with =, < a a b a a b a 55 / 89

56 Ehrenfeucht-Fraïssé games FOL definability Ehrenfeucht-Fraïssé games: general method for determining FOL definability (words, graphs etc.) EF-game: Played on two structures S, s, T, t. Spoiler picks an element from either S or T. Duplicator answers with an element in the other structure. Duplicator wins if she can always extend the partial isomorphism. Example FOL on words Structures S = aaba, T = aba: Duplicator wins the 2-round game for FOL with =, < a a b a a b a Duplicator looses the 3-round game (Spoiler chooses 3 a s in aaba). 56 / 89

57 Ehrenfeucht-Fraïssé games FOL definability Ehrenfeucht-Fraïssé games: general method for determining FOL definability (words, graphs etc.) EF-game: Played on two structures S, s, T, t. Spoiler picks an element from either S or T. Duplicator answers with an element in the other structure. Duplicator wins if she can always extend the partial isomorphism. Example FOL on words Structures S = aaba, T = aba: Duplicator wins the 2-round game for FOL with =, < a a b a a b a Duplicator looses the 3-round game (Spoiler chooses 3 a s in aaba). Structures S = a k, T = a l : Duplicator wins the m-round EF-game, iff either max(k, l) > 2 m or k = l. 57 / 89

58 Ehrenfeucht-Fraïssé games FOL definability Ehrenfeucht-Fraïssé games: general method for determining FOL definability (words, graphs etc.) EF-game: Played on two structures S, s, T, t. Spoiler picks an element from either S or T. Duplicator answers with an element in the other structure. Duplicator wins if she can always extend the partial isomorphism. Example FOL on words Structures S = aaba, T = aba: Duplicator wins the 2-round game for FOL with =, < a a b a a b a Duplicator looses the 3-round game (Spoiler chooses 3 a s in aaba). Structures S = a k, T = a l : Duplicator wins the m-round EF-game, iff either max(k, l) > 2 m or k = l. a a a a a a a a 58 / 89

59 Ehrenfeucht-Fraïssé games FOL definability Ehrenfeucht-Fraïssé games: general method for determining FOL definability (words, graphs etc.) EF-game: Played on two structures S, s, T, t. Spoiler picks an element from either S or T. Duplicator answers with an element in the other structure. Duplicator wins if she can always extend the partial isomorphism. Example FOL on words Structures S = aaba, T = aba: Duplicator wins the 2-round game for FOL with =, < a a b a a b a Duplicator looses the 3-round game (Spoiler chooses 3 a s in aaba). Structures S = a k, T = a l : Duplicator wins the m-round EF-game, iff either max(k, l) > 2 m or k = l. a a a a a a a a 59 / 89

60 Ehrenfeucht-Fraïssé games FOL definability Ehrenfeucht-Fraïssé games: general method for determining FOL definability (words, graphs etc.) EF-game: Played on two structures S, s, T, t. Spoiler picks an element from either S or T. Duplicator answers with an element in the other structure. Duplicator wins if she can always extend the partial isomorphism. Example FOL on words Structures S = aaba, T = aba: Duplicator wins the 2-round game for FOL with =, < a a b a a b a Duplicator looses the 3-round game (Spoiler chooses 3 a s in aaba). Structures S = a k, T = a l : Duplicator wins the m-round EF-game, iff either max(k, l) > 2 m or k = l. a a a a a a a a 60 / 89

61 Ehrenfeucht-Fraïssé games FOL definability Ehrenfeucht-Fraïssé games: general method for determining FOL definability (words, graphs etc.) EF-game: Played on two structures S, s, T, t. Spoiler picks an element from either S or T. Duplicator answers with an element in the other structure. Duplicator wins if she can always extend the partial isomorphism. Example FOL on words Structures S = aaba, T = aba: Duplicator wins the 2-round game for FOL with =, < a a b a a b a Duplicator looses the 3-round game (Spoiler chooses 3 a s in aaba). Structures S = a k, T = a l : Duplicator wins the m-round EF-game, iff either max(k, l) > 2 m or k = l. a a a a a a a a 61 / 89

62 Ehrenfeucht-Fraïssé games FOL definability Ehrenfeucht-Fraïssé games: general method for determining FOL definability (words, graphs etc.) EF-game: Played on two structures S, s, T, t. Spoiler picks an element from either S or T. Duplicator answers with an element in the other structure. Duplicator wins if she can always extend the partial isomorphism. Example FOL on words Structures S = aaba, T = aba: Duplicator wins the 2-round game for FOL with =, < a a b a a b a Duplicator looses the 3-round game (Spoiler chooses 3 a s in aaba). Structures S = a k, T = a l : Duplicator wins the m-round EF-game, iff either max(k, l) > 2 m or k = l. a a a a a a a a 62 / 89

63 Ehrenfeucht-Fraïssé games FOL definability Ehrenfeucht-Fraïssé games: general method for determining FOL definability (words, graphs etc.) EF-game: Played on two structures S, s, T, t. Spoiler picks an element from either S or T. Duplicator answers with an element in the other structure. Duplicator wins if she can always extend the partial isomorphism. Example FOL on words Structures S = aaba, T = aba: Duplicator wins the 2-round game for FOL with =, < a a b a a b a Duplicator looses the 3-round game (Spoiler chooses 3 a s in aaba). Structures S = a k, T = a l : Duplicator wins the m-round EF-game, iff either max(k, l) > 2 m or k = l. a a a a a a a a 63 / 89

64 Ehrenfeucht-Fraïssé games FOL definability Ehrenfeucht-Fraïssé games: general method for determining FOL definability (words, graphs etc.) EF-game: Played on two structures S, s, T, t. Spoiler picks an element from either S or T. Duplicator answers with an element in the other structure. Duplicator wins if she can always extend the partial isomorphism. Example FOL on words Structures S = aaba, T = aba: Duplicator wins the 2-round game for FOL with =, < a a b a a b a Duplicator looses the 3-round game (Spoiler chooses 3 a s in aaba). Structures S = a k, T = a l : Duplicator wins the m-round EF-game, iff either max(k, l) > 2 m or k = l. a a a a a a a a Thus, Even = {a n n is even} is not FOL-definable. Syntactic monoid of Even is Z 2 (group, period 2). 64 / 89

65 Plan 1 Automata 2 Logic 3 Schützenberger s theorem 4 Infinite words and trees 65 / 89

66 Words Infinite words Word w : N Σ. Denote by Σ ω the set of infinite words over Σ. Büchi automata A Büchi automaton is a tuple A = S, Σ, δ, s 0, F with: S finite set of states Σ alphabet δ S Σ S transition relation s 0 S initial state, F S set of accept states Runs, languages Run: infinite sequence of transitions a s 0 a 0 1 s1 Accepting run: {n s n F } is infinite Accepted language L(A) Σ ω : a L(A) = {a 0a 1 s i : s 0 a 0 1 s1 accepting run} 66 / 89

67 Büchi automata and determinism Deterministic Büchi automata are strictly weaker than deterministic ones. L = {w {a, b} ω w i = a for finitely many i} a, b b b 0 1 Assume L = L(A) for A deterministic, A = S, Σ, s 0, δ, F. b ω L run s 0 b k 1 s 1 F for some k 1. b k 1 ab ω L run s 0 b k 1 s 1 b k 2 s 2 F for some k 2. Thus one constructs b k 1 ab k 2 a L(A) \ L. 67 / 89

68 Regular languages Büchi automata and determinism Büchi automata can be determinized into automata with more powerful acceptance conditions (Muller, Rabin,... ). Cf. Safra s construction. Regular omega-word languages Characterizations of regular word languages extend to omega-word languages: Acceptance by Büchi automata Definability in MSOL Definability by ω-regular expressions Recognition by finite monoids 68 / 89

69 Logic First-order omega-word languages Characterizations of star-free word languages extend to omega-word languages (Ladner/Thomas, Perrin,... ): Definability in FOL Definability by star-free ω-regular expressions Recognition by finite aperiodic monoids 69 / 89

70 Logic First-order omega-word languages Characterizations of star-free word languages extend to omega-word languages (Ladner/Thomas, Perrin,... ): Definability in FOL Definability by star-free ω-regular expressions Recognition by finite aperiodic monoids Linear temporal logics (LTL), Kamp 1968 ϕ ::== tt a Σ ϕ ϕ ϕ Xϕ ϕ U ϕ Interpreted over w = w 1w 2... Σ ω : a holds if the current position is labeled by a, Next: Xϕ holds at position k if ϕ holds at position k + 1, Until: ϕ 1 U ϕ 2 holds at position i if ϕ 2 holds at some (later) position k i and ϕ 1 holds in-between (for all i j < k). 70 / 89

71 Logic First-order omega-word languages Characterizations of star-free word languages extend to omega-word languages (Ladner/Thomas, Perrin,... ): Definability in FOL Definability by star-free ω-regular expressions Recognition by finite aperiodic monoids Linear temporal logics (LTL), Kamp 1968 ϕ ::== tt a Σ ϕ ϕ ϕ Xϕ ϕ U ϕ Interpreted over w = w 1w 2... Σ ω : a holds if the current position is labeled by a, Next: Xϕ holds at position k if ϕ holds at position k + 1, Until: ϕ 1 U ϕ 2 holds at position i if ϕ 2 holds at some (later) position k i and ϕ 1 holds in-between (for all i j < k). LTL operators Future Fϕ ::== tt U ϕ Always Gϕ ::== (F( ϕ)) 71 / 89

72 From LTL to FOL... Translate LTL formula ϕ into FOL formula ϕ(x): ϕ = a ϕ = Xψ ϕ = ψ 1 U ψ 2 ϕ(x) = a(x) ϕ(x) = y. `succ(x, y) ψ(y) ϕ(x) = z. `x z ψ 2(z) y. (x y < z ψ 1(y)) 72 / 89

73 From LTL to FOL... Translate LTL formula ϕ into FOL formula ϕ(x): ϕ = a ϕ = Xψ ϕ = ψ 1 U ψ 2 ϕ(x) = a(x) ϕ(x) = y. `succ(x, y) ψ(y) ϕ(x) = z. `x z ψ 2(z) y. (x y < z ψ 1(y))... and from FOL to LTL Original proof (by Kamp) very technical. Alternative proof (by Wilke 98) over aperiodic monoids. 73 / 89

74 Temporal logics and program verification Verification Two basic problems: model-checking and synthesis. Model-checking program specification model formula 74 / 89

75 Temporal logics and program verification Verification Two basic problems: model-checking and synthesis. Model-checking program specification model Kripke structure formula Temporal logics 75 / 89

76 Model-checking Given a Büchi automaton A and an LTL formula ϕ, check whether each run in A satisfies ϕ. 76 / 89

77 Model-checking Given a Büchi automaton A and an LTL formula ϕ, check whether each run in A satisfies ϕ. Translate ϕ into Büchi automaton B ϕ and check empty intersection L(A) L(B f )? = 77 / 89

78 Synthesis C Church s problem (1950): given an input/output relation R, construct a circuit C implementing R. Example: if the current input is 1, then the corresponding output is 1; if the input is 0 then the output is the parity of the number of 0 s seen so far. A finite memory circuit C does the job. 78 / 89

79 Synthesis C Church s problem (1950): given an input/output relation R, construct a circuit C implementing R. Example: if the current input is 1, then the corresponding output is 1; if the input is 0 then the output is the parity of the number of 0 s seen so far. A finite memory circuit C does the job. Program synthesis Program synthesis amounts to write a program that satisfies a specification, no matter how the environment acts. 79 / 89

80 Synthesis C Church s problem (1950): given an input/output relation R, construct a circuit C implementing R. Example: if the current input is 1, then the corresponding output is 1; if the input is 0 then the output is the parity of the number of 0 s seen so far. A finite memory circuit C does the job. Program synthesis Program synthesis amounts to write a program that satisfies a specification, no matter how the environment acts. Trees, games Reasoning about the synthesis problem: Branching behaviors needed. Consider trees instead of words. Program/environment interaction can be seen as a two-player game. Constructing a circuit/program/... amounts to find a winning strategy. 80 / 89

81 Tree automata Automata on infinite, binary trees A tree automaton is is a tuple A = S, Σ, δ, s 0 with: δ S Σ S 2 transition relation Acceptance condition: parity (Mostowski 1984, Emerson/Jutla 1991). Infinite binary trees t : {0, 1} Σ. Children of node i {0, 1} : i0, i1. Run ρ of A on t: labeling by states ρ : {0, 1} S compatible with δ: (ρ(i), t(i), ρ(i0), ρ(i1)) δ. Coloring χ : S {0,... n} of states with priorities. Accepting run: For each path, the minimal priority seen infinitely often, is even. 81 / 89

82 Automata and logic Büchi tree automata Büchi tree automata are strictly weaker than parity tree automata. Example: each path of the tree has finitely many a-nodes. Parity tree automaton: S = {s a, s b }, Σ = {a, b}, δ = {s a} {a} S 2 {s b } {b} S 2. χ(s b ) = 0, χ(s a) = 1. Complementation (Rabin 1972) Parity tree automata can be effectively complemented. Complementation via games (Gurevich/Harrington 1982) Two players, Automaton and Pathfinder. Player Automaton chooses a transition, player Pathfinder chooses a direction (left/right) to proceed. The outcome is an infinite sequence from (Σ S) ω. Automaton wins the game if each outcome satisfies the parity condition. 82 / 89

83 Example a b a 83 / 89

84 Example a s a b a 84 / 89

85 Example a s a b a 85 / 89

86 Example a s a b s b a 86 / 89

87 Example a s a b s b Outcome (a, s a)(b, s b )(a, s a) a s a Winning strategy for Automaton = accepting run for the parity tree automaton. The above game is a parity game. In particular, it is determined (Martin s theorem), i.e. either Automaton or Pathfinder has a (memoryless) winning strategy. Turn Pathfinder s winning strategy into a parity tree automaton (accepting the complementary tree language). 87 / 89

88 Rabin Rabin s theorem, 1972 MSOL is decidable over infinite binary trees. Applications Various applications: decidability of synthesis problems decidability of MSOL over trees with countable branching decidability of modal logics over Kripke structures / 89

89 Thank you! 89 / 89

The theory of regular cost functions.

The theory of regular cost functions. The theory of regular cost functions. Denis Kuperberg PhD under supervision of Thomas Colcombet Hebrew University of Jerusalem ERC Workshop on Quantitative Formal Methods Jerusalem, 10-05-2013 1 / 30 Introduction

More information

Applied Automata Theory

Applied Automata Theory Applied Automata Theory Roland Meyer TU Kaiserslautern Roland Meyer (TU KL) Applied Automata Theory (WiSe 2013) 1 / 161 Table of Contents I 1 Regular Languages and Finite Automata Regular Languages Finite

More information

Logic and Automata I. Wolfgang Thomas. EATCS School, Telc, July 2014

Logic and Automata I. Wolfgang Thomas. EATCS School, Telc, July 2014 Logic and Automata I EATCS School, Telc, July 2014 The Plan We present automata theory as a tool to make logic effective. Four parts: 1. Some history 2. Automata on infinite words First step: MSO-logic

More information

Automata, Logic and Games: Theory and Application

Automata, Logic and Games: Theory and Application Automata, Logic and Games: Theory and Application 1. Büchi Automata and S1S Luke Ong University of Oxford TACL Summer School University of Salerno, 14-19 June 2015 Luke Ong Büchi Automata & S1S 14-19 June

More information

CHURCH SYNTHESIS PROBLEM and GAMES

CHURCH SYNTHESIS PROBLEM and GAMES p. 1/? CHURCH SYNTHESIS PROBLEM and GAMES Alexander Rabinovich Tel-Aviv University, Israel http://www.tau.ac.il/ rabinoa p. 2/? Plan of the Course 1. The Church problem - logic and automata. 2. Games -

More information

Büchi Automata and Their Determinization

Büchi Automata and Their Determinization Büchi Automata and Their Determinization Edinburgh, October 215 Plan of the Day 1. Büchi automata and their determinization 2. Infinite games 3. Rabin s Tree Theorem 4. Decidability of monadic theories

More information

Duality and Automata Theory

Duality and Automata Theory Duality and Automata Theory Mai Gehrke Université Paris VII and CNRS Joint work with Serge Grigorieff and Jean-Éric Pin Elements of automata theory A finite automaton a 1 2 b b a 3 a, b The states are

More information

2. Syntactic Congruences and Monoids

2. Syntactic Congruences and Monoids IAS/PCMI Summer Session 2000 Clay Mathematics Undergraduate Program Advanced Course on Computational Complexity Lecture 3: Algebra and Languages David Mix Barrington and Alexis Maciel July 19, 2000 1.

More information

Lecturecise 22 Weak monadic second-order theory of one successor (WS1S)

Lecturecise 22 Weak monadic second-order theory of one successor (WS1S) Lecturecise 22 Weak monadic second-order theory of one successor (WS1S) 2013 Reachability in the Heap Many programs manipulate linked data structures (lists, trees). To express many important properties

More information

Duality in Logic. Duality in Logic. Lecture 2. Mai Gehrke. Université Paris 7 and CNRS. {ε} A ((ab) (ba) ) (ab) + (ba) +

Duality in Logic. Duality in Logic. Lecture 2. Mai Gehrke. Université Paris 7 and CNRS. {ε} A ((ab) (ba) ) (ab) + (ba) + Lecture 2 Mai Gehrke Université Paris 7 and CNRS A {ε} A ((ab) (ba) ) (ab) + (ba) + Further examples - revisited 1. Completeness of modal logic with respect to Kripke semantics was obtained via duality

More information

Automata, Logic and Games: Theory and Application

Automata, Logic and Games: Theory and Application Automata, Logic and Games: Theory and Application 2 Parity Games, Tree Automata, and S2S Luke Ong University of Oxford TACL Summer School University of Salerno, 14-19 June 2015 Luke Ong S2S 14-19 June

More information

Monadic Second Order Logic and Automata on Infinite Words: Büchi s Theorem

Monadic Second Order Logic and Automata on Infinite Words: Büchi s Theorem Monadic Second Order Logic and Automata on Infinite Words: Büchi s Theorem R. Dustin Wehr December 18, 2007 Büchi s theorem establishes the equivalence of the satisfiability relation for monadic second-order

More information

Temporal logics and explicit-state model checking. Pierre Wolper Université de Liège

Temporal logics and explicit-state model checking. Pierre Wolper Université de Liège Temporal logics and explicit-state model checking Pierre Wolper Université de Liège 1 Topics to be covered Introducing explicit-state model checking Finite automata on infinite words Temporal Logics and

More information

Lecture 2: Connecting the Three Models

Lecture 2: Connecting the Three Models IAS/PCMI Summer Session 2000 Clay Mathematics Undergraduate Program Advanced Course on Computational Complexity Lecture 2: Connecting the Three Models David Mix Barrington and Alexis Maciel July 18, 2000

More information

Finite Automata and Languages

Finite Automata and Languages CS62, IIT BOMBAY Finite Automata and Languages Ashutosh Trivedi Department of Computer Science and Engineering, IIT Bombay CS62: New Trends in IT: Modeling and Verification of Cyber-Physical Systems (2

More information

Alternating nonzero automata

Alternating nonzero automata Alternating nonzero automata Application to the satisfiability of CTL [,, P >0, P =1 ] Hugo Gimbert, joint work with Paulin Fournier LaBRI, Université de Bordeaux ANR Stoch-MC 06/07/2017 Control and verification

More information

Algebraic Approach to Automata Theory

Algebraic Approach to Automata Theory Algebraic Approach to Automata Theory Deepak D Souza Department of Computer Science and Automation Indian Institute of Science, Bangalore. 20 September 2016 Outline 1 Overview 2 Recognition via monoid

More information

From Monadic Second-Order Definable String Transformations to Transducers

From Monadic Second-Order Definable String Transformations to Transducers From Monadic Second-Order Definable String Transformations to Transducers Rajeev Alur 1 Antoine Durand-Gasselin 2 Ashutosh Trivedi 3 1 University of Pennsylvania 2 LIAFA, Université Paris Diderot 3 Indian

More information

CS256/Spring 2008 Lecture #11 Zohar Manna. Beyond Temporal Logics

CS256/Spring 2008 Lecture #11 Zohar Manna. Beyond Temporal Logics CS256/Spring 2008 Lecture #11 Zohar Manna Beyond Temporal Logics Temporal logic expresses properties of infinite sequences of states, but there are interesting properties that cannot be expressed, e.g.,

More information

SEPARATING REGULAR LANGUAGES WITH FIRST-ORDER LOGIC

SEPARATING REGULAR LANGUAGES WITH FIRST-ORDER LOGIC Logical Methods in Computer Science Vol. 12(1:5)2016, pp. 1 30 www.lmcs-online.org Submitted Jun. 4, 2014 Published Mar. 9, 2016 SEPARATING REGULAR LANGUAGES WITH FIRST-ORDER LOGIC THOMAS PLACE AND MARC

More information

Complexity Bounds for Muller Games 1

Complexity Bounds for Muller Games 1 Complexity Bounds for Muller Games 1 Paul Hunter a, Anuj Dawar b a Oxford University Computing Laboratory, UK b University of Cambridge Computer Laboratory, UK Abstract We consider the complexity of infinite

More information

Quasi-Weak Cost Automata

Quasi-Weak Cost Automata Quasi-Weak Cost Automata A New Variant of Weakness Denis Kuperberg 1 Michael Vanden Boom 2 1 LIAFA/CNRS/Université Paris 7, Denis Diderot, France 2 Department of Computer Science, University of Oxford,

More information

Automata and Reactive Systems

Automata and Reactive Systems Automata and Reactive Systems Lecture WS 2002/2003 Prof. Dr. W. Thomas RWTH Aachen Preliminary version (Last change March 20, 2003) Translated and revised by S. N. Cho and S. Wöhrle German version by M.

More information

Aperiodic languages p. 1/34. Aperiodic languages. Verimag, Grenoble

Aperiodic languages p. 1/34. Aperiodic languages. Verimag, Grenoble Aperiodic languages p. 1/34 Aperiodic languages Dejan Ničković Verimag, Grenoble Aperiodic languages p. 2/34 Table of Contents Introduction Aperiodic Sets Star-Free Regular Sets Schützenberger s theorem

More information

Automata on Infinite words and LTL Model Checking

Automata on Infinite words and LTL Model Checking Automata on Infinite words and LTL Model Checking Rodica Condurache Lecture 4 Lecture 4 Automata on Infinite words and LTL Model Checking 1 / 35 Labeled Transition Systems Let AP be the (finite) set of

More information

Obtaining the syntactic monoid via duality

Obtaining the syntactic monoid via duality Radboud University Nijmegen MLNL Groningen May 19th, 2011 Formal languages An alphabet is a non-empty finite set of symbols. If Σ is an alphabet, then Σ denotes the set of all words over Σ. The set Σ forms

More information

Tree Automata and Rewriting

Tree Automata and Rewriting and Rewriting Ralf Treinen Université Paris Diderot UFR Informatique Laboratoire Preuves, Programmes et Systèmes treinen@pps.jussieu.fr July 23, 2010 What are? Definition Tree Automaton A tree automaton

More information

Automata, Logic and Games. C.-H. L. Ong

Automata, Logic and Games. C.-H. L. Ong Automata, Logic and Games C.-H. L. Ong June 12, 2015 2 Contents 0 Automata, Logic and Games 1 0.1 Aims and Prerequisites............................... 1 0.2 Motivation.....................................

More information

L is finite or cofinite}, A + k+1 = { L A + L is a boolean combination of languages of the form L 1 L n (n 1) with L 1, L n A +

L is finite or cofinite}, A + k+1 = { L A + L is a boolean combination of languages of the form L 1 L n (n 1) with L 1, L n A + Some Logical Characterizations of the Dot-Depth Hierarchy and Applications By: Francine Blanchet-Sadri F. Blanchet-Sadri, "Some Logical Characterizations of the Dot-Depth Hierarchy and Applications." Journal

More information

On the use of guards for logics with data

On the use of guards for logics with data Author manuscript, published in "Proceedings of MFCS 2011, Warsaw : Poland (2011)" DOI : 10.1007/978-3-642-22993-0_24 On the use of guards for logics with data Thomas Colcombet 1, Clemens Ley 2, Gabriele

More information

Automata theory. An algorithmic approach. Lecture Notes. Javier Esparza

Automata theory. An algorithmic approach. Lecture Notes. Javier Esparza Automata theory An algorithmic approach Lecture Notes Javier Esparza July 2 22 2 Chapter 9 Automata and Logic A regular expression can be seen as a set of instructions ( a recipe ) for generating the words

More information

Lecture 3: MSO to Regular Languages

Lecture 3: MSO to Regular Languages Lecture 3: MSO to Regular Languages To describe the translation from MSO formulas to regular languages one has to be a bit more formal! All the examples we used in the previous class were sentences i.e.,

More information

Finite and Algorithmic Model Theory II: Automata-Based Methods

Finite and Algorithmic Model Theory II: Automata-Based Methods Finite and Algorithmic Model Theory II: Automata-Based Methods Anuj Dawar University of Cambridge Computer Laboratory Simons Institute, 30 August 2016 Review We aim to develop tools for studying the expressive

More information

On Model-theoretic Approaches to Monadic Second-Order Logic Evaluation

On Model-theoretic Approaches to Monadic Second-Order Logic Evaluation On Model-theoretic Approaches to Monadic Second-Order Logic Evaluation Stavros Cosmadakis Eugénie Foustoucos October 2013 Abstract We review the model-theoretic approaches to Monadic Second-Order Logic

More information

On the coinductive nature of centralizers

On the coinductive nature of centralizers On the coinductive nature of centralizers Charles Grellois INRIA & University of Bologna Séminaire du LIFO Jan 16, 2017 Charles Grellois (INRIA & Bologna) On the coinductive nature of centralizers Jan

More information

Automata, Logic and Games. C.-H. L. Ong

Automata, Logic and Games. C.-H. L. Ong Automata, Logic and Games C.-H. L. Ong March 6, 2013 2 Contents 0 Automata, Logic and Games 1 0.1 Aims and Prerequisites............................... 1 0.2 Motivation.....................................

More information

Preliminaries. Introduction to EF-games. Inexpressivity results for first-order logic. Normal forms for first-order logic

Preliminaries. Introduction to EF-games. Inexpressivity results for first-order logic. Normal forms for first-order logic Introduction to EF-games Inexpressivity results for first-order logic Normal forms for first-order logic Algorithms and complexity for specific classes of structures General complexity bounds Preliminaries

More information

Finite Automata and Regular Languages

Finite Automata and Regular Languages Finite Automata and Regular Languages Topics to be covered in Chapters 1-4 include: deterministic vs. nondeterministic FA, regular expressions, one-way vs. two-way FA, minimization, pumping lemma for regular

More information

ω-automata Automata that accept (or reject) words of infinite length. Languages of infinite words appear:

ω-automata Automata that accept (or reject) words of infinite length. Languages of infinite words appear: ω-automata ω-automata Automata that accept (or reject) words of infinite length. Languages of infinite words appear: in verification, as encodings of non-terminating executions of a program. in arithmetic,

More information

2. Elements of the Theory of Computation, Lewis and Papadimitrou,

2. Elements of the Theory of Computation, Lewis and Papadimitrou, Introduction Finite Automata DFA, regular languages Nondeterminism, NFA, subset construction Regular Epressions Synta, Semantics Relationship to regular languages Properties of regular languages Pumping

More information

The Complexity of Computing the Behaviour of Lattice Automata on Infinite Trees

The Complexity of Computing the Behaviour of Lattice Automata on Infinite Trees The Complexity of Computing the Behaviour of Lattice Automata on Infinite Trees Karsten Lehmann a, Rafael Peñaloza b a Optimisation Research Group, NICTA Artificial Intelligence Group, Australian National

More information

Undecidable Problems. Z. Sawa (TU Ostrava) Introd. to Theoretical Computer Science May 12, / 65

Undecidable Problems. Z. Sawa (TU Ostrava) Introd. to Theoretical Computer Science May 12, / 65 Undecidable Problems Z. Sawa (TU Ostrava) Introd. to Theoretical Computer Science May 12, 2018 1/ 65 Algorithmically Solvable Problems Let us assume we have a problem P. If there is an algorithm solving

More information

Definition of Büchi Automata

Definition of Büchi Automata Büchi Automata Definition of Büchi Automata Let Σ = {a,b,...} be a finite alphabet. By Σ ω we denote the set of all infinite words over Σ. A non-deterministic Büchi automaton (NBA) over Σ is a tuple A

More information

Automata Theory for Presburger Arithmetic Logic

Automata Theory for Presburger Arithmetic Logic Automata Theory for Presburger Arithmetic Logic References from Introduction to Automata Theory, Languages & Computation and Constraints in Computational Logic Theory & Application Presented by Masood

More information

Overview of Topics. Finite Model Theory. Finite Model Theory. Connections to Database Theory. Qing Wang

Overview of Topics. Finite Model Theory. Finite Model Theory. Connections to Database Theory. Qing Wang Overview of Topics Finite Model Theory Part 1: Introduction 1 What is finite model theory? 2 Connections to some areas in CS Qing Wang qing.wang@anu.edu.au Database theory Complexity theory 3 Basic definitions

More information

A Model Theoretic Proof of Completeness of an Axiomatization of Monadic Second-Order Logic on Infinite Words

A Model Theoretic Proof of Completeness of an Axiomatization of Monadic Second-Order Logic on Infinite Words A Model Theoretic Proof of Completeness of an Axiomatization of Monadic Second-Order Logic on Infinite Words Colin Riba ENS de Lyon, Université de Lyon, LIP colin.riba@ens-lyon.fr http://perso.ens-lyon.fr/colin.riba/

More information

On Recognizable Languages of Infinite Pictures

On Recognizable Languages of Infinite Pictures On Recognizable Languages of Infinite Pictures Equipe de Logique Mathématique CNRS and Université Paris 7 JAF 28, Fontainebleau, Juin 2009 Pictures Pictures are two-dimensional words. Let Σ be a finite

More information

F. Blanchet-Sadri and F.D. Gaddis, "On a Product of Finite Monoids." Semigroup Forum, Vol. 57, 1998, pp DOI: 10.

F. Blanchet-Sadri and F.D. Gaddis, On a Product of Finite Monoids. Semigroup Forum, Vol. 57, 1998, pp DOI: 10. On a Product of Finite Monoids By: F. Blanchet-Sadri and F. Dale Gaddis F. Blanchet-Sadri and F.D. Gaddis, "On a Product of Finite Monoids." Semigroup Forum, Vol. 57, 1998, pp 75-91. DOI: 10.1007/PL00005969

More information

Weak Alternating Automata Are Not That Weak

Weak Alternating Automata Are Not That Weak Weak Alternating Automata Are Not That Weak Orna Kupferman Hebrew University Moshe Y. Vardi Rice University Abstract Automata on infinite words are used for specification and verification of nonterminating

More information

Automata-Theoretic LTL Model-Checking

Automata-Theoretic LTL Model-Checking Automata-Theoretic LTL Model-Checking Arie Gurfinkel arie@cmu.edu SEI/CMU Automata-Theoretic LTL Model-Checking p.1 LTL - Linear Time Logic (Pn 77) Determines Patterns on Infinite Traces Atomic Propositions

More information

Automata on linear orderings

Automata on linear orderings Automata on linear orderings Véronique Bruyère Institut d Informatique Université de Mons-Hainaut Olivier Carton LIAFA Université Paris 7 September 25, 2006 Abstract We consider words indexed by linear

More information

Complexity of infinite tree languages

Complexity of infinite tree languages Complexity of infinite tree languages when automata meet topology Damian Niwiński University of Warsaw joint work with André Arnold, Szczepan Hummel, and Henryk Michalewski Liverpool, October 2010 1 Example

More information

03 Review of First-Order Logic

03 Review of First-Order Logic CAS 734 Winter 2014 03 Review of First-Order Logic William M. Farmer Department of Computing and Software McMaster University 18 January 2014 What is First-Order Logic? First-order logic is the study of

More information

Sri vidya college of engineering and technology

Sri vidya college of engineering and technology Unit I FINITE AUTOMATA 1. Define hypothesis. The formal proof can be using deductive proof and inductive proof. The deductive proof consists of sequence of statements given with logical reasoning in order

More information

On Recognizable Languages of Infinite Pictures

On Recognizable Languages of Infinite Pictures On Recognizable Languages of Infinite Pictures Equipe de Logique Mathématique CNRS and Université Paris 7 LIF, Marseille, Avril 2009 Pictures Pictures are two-dimensional words. Let Σ be a finite alphabet

More information

Infinite and Finite Model Theory Part II

Infinite and Finite Model Theory Part II Infinite and Finite Model Theory Part II Anuj Dawar Computer Laboratory University of Cambridge Lent 2002 3/2002 0 Finite Model Theory Finite Model Theory motivated by computational issues; relationship

More information

On the Accepting Power of 2-Tape Büchi Automata

On the Accepting Power of 2-Tape Büchi Automata On the Accepting Power of 2-Tape Büchi Automata Equipe de Logique Mathématique Université Paris 7 STACS 2006 Acceptance of infinite words In the sixties, Acceptance of infinite words by finite automata

More information

Hierarchy among Automata on Linear Orderings

Hierarchy among Automata on Linear Orderings Hierarchy among Automata on Linear Orderings Véronique Bruyère Institut d Informatique Université de Mons-Hainaut Olivier Carton LIAFA Université Paris 7 Abstract In a preceding paper, automata and rational

More information

Rabin Theory and Game Automata An Introduction

Rabin Theory and Game Automata An Introduction Rabin Theory and Game Automata An Introduction Ting Zhang Stanford University November 2002 Logic Seminar 1 Outline 1. Monadic second-order theory of two successors (S2S) 2. Rabin Automata 3. Game Automata

More information

Theory of computation: initial remarks (Chapter 11)

Theory of computation: initial remarks (Chapter 11) Theory of computation: initial remarks (Chapter 11) For many purposes, computation is elegantly modeled with simple mathematical objects: Turing machines, finite automata, pushdown automata, and such.

More information

Chapter 4: Computation tree logic

Chapter 4: Computation tree logic INFOF412 Formal verification of computer systems Chapter 4: Computation tree logic Mickael Randour Formal Methods and Verification group Computer Science Department, ULB March 2017 1 CTL: a specification

More information

Two-Way Cost Automata and Cost Logics over Infinite Trees

Two-Way Cost Automata and Cost Logics over Infinite Trees Two-Way Cost Automata and Cost Logics over Infinite Trees Achim Blumensath TU Darmstadt blumensath@mathematik.tudarmstadt.de Thomas Colcombet Université Paris Diderot thomas.colcombet@liafa.univ-parisdiderot.fr

More information

Chapter 3. Regular grammars

Chapter 3. Regular grammars Chapter 3 Regular grammars 59 3.1 Introduction Other view of the concept of language: not the formalization of the notion of effective procedure, but set of words satisfying a given set of rules Origin

More information

Mixed and Integer Linear Programming Using Automata Techniques

Mixed and Integer Linear Programming Using Automata Techniques Mixed and Integer Linear Programming Using Automata Techniques Mia Minnes Cornell University Ithaca, NY minnes@math.cornell.edu ABSTRACT We present a comprehensive overview of automata techniques for deciding

More information

Infinite Games. Sumit Nain. 28 January Slides Credit: Barbara Jobstmann (CNRS/Verimag) Department of Computer Science Rice University

Infinite Games. Sumit Nain. 28 January Slides Credit: Barbara Jobstmann (CNRS/Verimag) Department of Computer Science Rice University Infinite Games Sumit Nain Department of Computer Science Rice University 28 January 2013 Slides Credit: Barbara Jobstmann (CNRS/Verimag) Motivation Abstract games are of fundamental importance in mathematics

More information

CS 154, Lecture 2: Finite Automata, Closure Properties Nondeterminism,

CS 154, Lecture 2: Finite Automata, Closure Properties Nondeterminism, CS 54, Lecture 2: Finite Automata, Closure Properties Nondeterminism, Why so Many Models? Streaming Algorithms 0 42 Deterministic Finite Automata Anatomy of Deterministic Finite Automata transition: for

More information

Counting in trees. Helmut Seidl 1 Thomas Schwentick 2 Anca Muscholl 3. 1 Introduction

Counting in trees. Helmut Seidl 1 Thomas Schwentick 2 Anca Muscholl 3. 1 Introduction Counting in trees Helmut Seidl 1 Thomas Schwentick 2 Anca Muscholl 3 1 Institut für Informatik, I2 TU München Germany 2 Lehrstuhl Informatik I Universität Dortmund Germany 3 LaBRI Université Bordeaux France

More information

Counter Automata and Classical Logics for Data Words

Counter Automata and Classical Logics for Data Words Counter Automata and Classical Logics for Data Words Amal Dev Manuel amal@imsc.res.in Institute of Mathematical Sciences, Taramani, Chennai, India. January 31, 2012 Data Words Definition (Data Words) A

More information

Tree languages defined in first-order logic with one quantifier alternation

Tree languages defined in first-order logic with one quantifier alternation Tree languages defined in first-order logic with one quantifier alternation Miko laj Bojańczyk, Luc Segoufin Warsaw University, INRIA - LSV March 9, 2010 Abstract We study tree languages that can be defined

More information

Finite Model Theory: First-Order Logic on the Class of Finite Models

Finite Model Theory: First-Order Logic on the Class of Finite Models 1 Finite Model Theory: First-Order Logic on the Class of Finite Models Anuj Dawar University of Cambridge Modnet Tutorial, La Roche, 21 April 2008 2 Finite Model Theory In the 1980s, the term finite model

More information

Overlapping tile automata:

Overlapping tile automata: Overlapping tile automata: towards a language theory of overlapping structures David Janin LaBRI, Université de Bordeaux Computer Science in Russia, Ekaterinburg, june 2013 1. From strings to overlapping

More information

A Local Normal Form Theorem for Infinitary Logic with Unary Quantifiers

A Local Normal Form Theorem for Infinitary Logic with Unary Quantifiers mlq header will be provided by the publisher Local Normal Form Theorem for Infinitary Logic with Unary Quantifiers H. Jerome Keisler 1 and Wafik Boulos Lotfallah 2 1 Department of Mathematics University

More information

Final exam study sheet for CS3719 Turing machines and decidability.

Final exam study sheet for CS3719 Turing machines and decidability. Final exam study sheet for CS3719 Turing machines and decidability. A Turing machine is a finite automaton with an infinite memory (tape). Formally, a Turing machine is a 6-tuple M = (Q, Σ, Γ, δ, q 0,

More information

AUTOMATIC STRUCTURES OF BOUNDED DEGREE REVISITED

AUTOMATIC STRUCTURES OF BOUNDED DEGREE REVISITED The Journal of Symbolic Logic Volume 00, Number 0, XXX 0000 AUTOMATIC STRUCTURES OF BOUNDED DEGREE REVISITED DIETRICH KUSKE AND MARKUS LOHREY Abstract. The first-order theory of a string automatic structure

More information

GEETANJALI INSTITUTE OF TECHNICAL STUDIES, UDAIPUR I

GEETANJALI INSTITUTE OF TECHNICAL STUDIES, UDAIPUR I GEETANJALI INSTITUTE OF TECHNICAL STUDIES, UDAIPUR I Internal Examination 2017-18 B.Tech III Year VI Semester Sub: Theory of Computation (6CS3A) Time: 1 Hour 30 min. Max Marks: 40 Note: Attempt all three

More information

Introduction. Büchi Automata and Model Checking. Outline. Büchi Automata. The simplest computation model for infinite behaviors is the

Introduction. Büchi Automata and Model Checking. Outline. Büchi Automata. The simplest computation model for infinite behaviors is the Introduction Büchi Automata and Model Checking Yih-Kuen Tsay Department of Information Management National Taiwan University FLOLAC 2009 The simplest computation model for finite behaviors is the finite

More information

Finite State Automata

Finite State Automata Trento 2005 p. 1/4 Finite State Automata Automata: Theory and Practice Paritosh K. Pandya (TIFR, Mumbai, India) Unversity of Trento 10-24 May 2005 Trento 2005 p. 2/4 Finite Word Langauges Alphabet Σ is

More information

Introduction to Kleene Algebras

Introduction to Kleene Algebras Introduction to Kleene Algebras Riccardo Pucella Basic Notions Seminar December 1, 2005 Introduction to Kleene Algebras p.1 Idempotent Semirings An idempotent semiring is a structure S = (S, +,, 1, 0)

More information

Course Runtime Verification

Course Runtime Verification Course Martin Leucker (ISP) Volker Stolz (Høgskolen i Bergen, NO) INF5140 / V17 Chapters of the Course Chapter 1 Recall in More Depth Chapter 2 Specification Languages on Words Chapter 3 LTL on Finite

More information

Büchi Automata and Linear Temporal Logic

Büchi Automata and Linear Temporal Logic Büchi Automata and Linear Temporal Logic Joshua D. Guttman Worcester Polytechnic Institute 18 February 2010 Guttman ( WPI ) Büchi & LTL 18 Feb 10 1 / 10 Büchi Automata Definition A Büchi automaton is a

More information

Weak Cost Monadic Logic over Infinite Trees

Weak Cost Monadic Logic over Infinite Trees Weak Cost Monadic Logic over Infinite Trees Michael Vanden Boom Department of Computer Science University of Oxford MFCS 011 Warsaw Cost monadic second-order logic (cost MSO) Syntax First-order logic with

More information

On the use of guards for logics with data

On the use of guards for logics with data On the use of guards for logics with data Thomas Colcombet 1, Clemens Ley 2, Gabriele Puppis 2 1 CNRS/LIAFA 2 Department of Computer Science, Oxford University Abstract. The notion of orbit finite data

More information

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY 15-453 FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY REVIEW for MIDTERM 1 THURSDAY Feb 6 Midterm 1 will cover everything we have seen so far The PROBLEMS will be from Sipser, Chapters 1, 2, 3 It will be

More information

Complexity Bounds for Regular Games (Extended Abstract)

Complexity Bounds for Regular Games (Extended Abstract) Complexity Bounds for Regular Games (Extended Abstract) Paul Hunter and Anuj Dawar University of Cambridge Computer Laboratory, Cambridge CB3 0FD, UK. paul.hunter@cl.cam.ac.uk, anuj.dawar@cl.cam.ac.uk

More information

FINITE MEMORY DETERMINACY

FINITE MEMORY DETERMINACY p. 1/? FINITE MEMORY DETERMINACY Alexander Rabinovich Department of Computer Science Tel-Aviv University p. 2/? Plan 1. Finite Memory Strategies. 2. Finite Memory Determinacy of Muller games. 3. Latest

More information

FORMAL LANGUAGES, AUTOMATA AND COMPUTATION

FORMAL LANGUAGES, AUTOMATA AND COMPUTATION FORMAL LANGUAGES, AUTOMATA AND COMPUTATION DECIDABILITY ( LECTURE 15) SLIDES FOR 15-453 SPRING 2011 1 / 34 TURING MACHINES-SYNOPSIS The most general model of computation Computations of a TM are described

More information

Circuits. Lecture 11 Uniform Circuit Complexity

Circuits. Lecture 11 Uniform Circuit Complexity Circuits Lecture 11 Uniform Circuit Complexity 1 Recall 2 Recall Non-uniform complexity 2 Recall Non-uniform complexity P/1 Decidable 2 Recall Non-uniform complexity P/1 Decidable NP P/log NP = P 2 Recall

More information

Büchi Automata and their closure properties. - Ajith S and Ankit Kumar

Büchi Automata and their closure properties. - Ajith S and Ankit Kumar Büchi Automata and their closure properties - Ajith S and Ankit Kumar Motivation Conventional programs accept input, compute, output result, then terminate Reactive program : not expected to terminate

More information

Algebra for Infinite Forests with an Application to the Temporal Logic EF

Algebra for Infinite Forests with an Application to the Temporal Logic EF Algebra for Infinite Forests with an Application to the Temporal Logic EF Miko laj Bojańczyk and Tomasz Idziaszek University of Warsaw, Poland {bojan,idziaszek}@mimuw.edu.pl Abstract. We define an extension

More information

arxiv: v2 [cs.fl] 29 Nov 2013

arxiv: v2 [cs.fl] 29 Nov 2013 A Survey of Multi-Tape Automata Carlo A. Furia May 2012 arxiv:1205.0178v2 [cs.fl] 29 Nov 2013 Abstract This paper summarizes the fundamental expressiveness, closure, and decidability properties of various

More information

Computation Tree Logic (CTL) & Basic Model Checking Algorithms

Computation Tree Logic (CTL) & Basic Model Checking Algorithms Computation Tree Logic (CTL) & Basic Model Checking Algorithms Martin Fränzle Carl von Ossietzky Universität Dpt. of Computing Science Res. Grp. Hybride Systeme Oldenburg, Germany 02917: CTL & Model Checking

More information

LOGIC MEETS ALGEBRA: THE CASE OF REGULAR LANGUAGES

LOGIC MEETS ALGEBRA: THE CASE OF REGULAR LANGUAGES Logical Methods in Computer Science Volume 00, Number 0, Pages 000 000 S 0000-0000(XX)0000-0 LOGIC MEETS ALGEBRA: THE CASE OF REGULAR LANGUAGES PASCAL TESSON AND DENIS THÉRIEN Département d Informatique

More information

Overview. CS389L: Automated Logical Reasoning. Lecture 7: Validity Proofs and Properties of FOL. Motivation for semantic argument method

Overview. CS389L: Automated Logical Reasoning. Lecture 7: Validity Proofs and Properties of FOL. Motivation for semantic argument method Overview CS389L: Automated Logical Reasoning Lecture 7: Validity Proofs and Properties of FOL Agenda for today: Semantic argument method for proving FOL validity Işıl Dillig Important properties of FOL

More information

Note on winning positions on pushdown games with omega-regular winning conditions

Note on winning positions on pushdown games with omega-regular winning conditions Note on winning positions on pushdown games with omega-regular winning conditions Olivier Serre To cite this version: Olivier Serre. Note on winning positions on pushdown games with omega-regular winning

More information

Automata-based Verification - III

Automata-based Verification - III COMP30172: Advanced Algorithms Automata-based Verification - III Howard Barringer Room KB2.20: email: howard.barringer@manchester.ac.uk March 2009 Third Topic Infinite Word Automata Motivation Büchi Automata

More information

On the complexity of infinite computations

On the complexity of infinite computations On the complexity of infinite computations Damian Niwiński, Warsaw University joint work with Igor Walukiewicz and Filip Murlak Newton Institute, Cambridge, June 2006 1 Infinite computations Büchi (1960)

More information

Green s Relations and their Use in Automata Theory

Green s Relations and their Use in Automata Theory Green s Relations and their Use in Automata Theory Thomas Colcombet thomas.colcombet@liafa.jussieu.fr Liafa/Cnrs/Université Paris Diderot Paris 7 Abstract. The objective of this survey is to present the

More information

Two-variable first order logic with modular predicates over words

Two-variable first order logic with modular predicates over words Two-variable first order logic with modular predicates over words Luc Dartois 1 and Charles Paperman 1 1 LIAFA, Université Paris-Diderot and CNRS, Case 7014, 75205 Paris Cedex 13, France lucdartois,charlespaperman@liafauniv-paris-diderotfr

More information

Algebra Meets Logic: The Case of Regular Languages (With Applications to Circuit Complexity) Denis Thérien, McGill University p.

Algebra Meets Logic: The Case of Regular Languages (With Applications to Circuit Complexity) Denis Thérien, McGill University p. Algebra Meets Logic: The Case of Regular Languages (With Applications to Circuit Complexity) Denis Thérien McGill University Denis Thérien, McGill University p.1/26 Introduction The following are equivalent:

More information

ERICH GRÄDEL a AND IGOR WALUKIEWICZ b. address: address:

ERICH GRÄDEL a AND IGOR WALUKIEWICZ b.  address:  address: Logical Methods in Computer Science Vol. 2 (4:6) 2006, pp. 1 22 www.lmcs-online.org Submitted Feb. 27, 2006 Published Nov. 3, 2006 POSITIONAL DETERMINACY OF GAMES WITH INFINITELY MANY PRIORITIES ERICH

More information