From Monadic Second-Order Definable String Transformations to Transducers

Size: px
Start display at page:

Download "From Monadic Second-Order Definable String Transformations to Transducers"

Transcription

1 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 Institute of Technology Bombay June 21, 2013 Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

2 Regular Word Analysis Qualitative properties over words ϕ : Σ {0, 1} Logically MSO formulas Computational model Finite state automata Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

3 Regular Word Analysis Qualitative properties over words ϕ : Σ {0, 1} Logically MSO formulas Equivalence [Büchi, 1960] Computational model Finite state automata Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

4 Regular Word Analysis Qualitative properties over words ϕ : Σ {0, 1} Logically MSO formulas Equivalence [Büchi, 1960] Regular Word Transformation Logically Definition using MSO Transformations of words ϕ : Σ Σ Computational model Finite state automata Computational model Streaming Transducers Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

5 Regular Word Analysis Qualitative properties over words ϕ : Σ {0, 1} Logically MSO formulas Equivalence [Büchi, 1960] Regular Word Transformation Logically Definition using MSO Transformations of words ϕ : Σ Σ Equi-expressiveness Computational model Finite state automata Computational model Streaming Transducers Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

6 Monadic Second Order Logic (MSO) We deal about MSO over the linear order: The structure is ( N, >, P 1,..., P k ) The domain: N or [1, n] The order relation Some unary predicates Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

7 Monadic Second Order Logic (MSO) We deal about MSO over the linear order: The structure is ( N, >, P 1,..., P k ) The domain: N or [1, n] The order relation Some unary predicates Words are interpreted structures: e.g. ([1, 10], >, P a, P b, P c ) w = a b b a b c a b c c P a = { 1, 4, 7} P b = { 2, 3, 5, 8} P c = { 6, 9, 10} Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

8 Monadic Second Order Logic (MSO) We deal about MSO over the linear order: The structure is ( N, >, P 1,..., P k ) The domain: N or [1, n] The order relation Some unary predicates Words are interpreted structures: e.g. ([1, 10], >, P a, P b, P c ) w = a b b a b c a b c c P a = { 1, 4, 7} P b = { 2, 3, 5, 8} P c = { 6, 9, 10} Formulas are defined inductively: Atomic: x 1 < x 2, P(x 1 ), X (x),... Boolean connectives: ϕ 1 ϕ 2, ϕ 3,... First-order quantification: x.ϕ Second-order quantification: X.ϕ Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

9 Monadic Second Order Logic (MSO) We deal about MSO over the linear order: The structure is ( N, >, P 1,..., P k ) The domain: N or [1, n] The order relation Some unary predicates Words are interpreted structures: e.g. ([1, 10], >, P a, P b, P c ) w = a b b a b c a b c c P a = { 1, 4, 7} P b = { 2, 3, 5, 8} P c = { 6, 9, 10} Formulas are defined inductively: Atomic: x 1 < x 2, P(x 1 ), X (x),... Boolean connectives: ϕ 1 ϕ 2, ϕ 3,... First-order quantification: x.ϕ Second-order quantification: X.ϕ An MSO formula with no free variables defines a language Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

10 Appealing computational model: Finite State Automata Theorem [Büchi, 1960] A language is MSO definable iff it is accepted by a finite-state automaton. Deterministic automata are a computational model to analyse words: process sequentially a word input by jumping from state to state Can be efficiently manipulated Automata can be determinized LSPACE algorithm to check if a word is accepted by an automaton Minimization (equivalence in time O(n log log n)) Product of automata (language union, intersection,...) Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

11 Regular Word Analysis Qualitative properties over words ϕ : Σ {0, 1} Logically MSO formulas Equivalence [Büchi, 1960] Regular Word Transformation Logically Definition using MSO Transformations of words ϕ : Σ Σ Equi-expressiveness Computational model Finite state automata Computational model Streaming Transducers Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

12 Contents 1 Regular Transformations Logical definition Streaming Transducers 2 Contribution: Equivalence with a direct logic-based reduction Some logical considerations Proof Walkthrough 3 Decision procedures Functional equivalence Typechecking Problem 4 Conclusion Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

13 Contents 1 Regular Transformations Logical definition Streaming Transducers 2 Contribution: Equivalence with a direct logic-based reduction Some logical considerations Proof Walkthrough 3 Decision procedures Functional equivalence Typechecking Problem 4 Conclusion Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

14 MSO-definable Transformations [Courcelle, 1994] Defining Graph Transformations using MSO A labeled graph transformation using MSO is specified by: input and output alphabets; an MSO formula specifying the domain of the transformation; output is specified using a finite number of copies of nodes of input graph; the node labels are specified using MSO formulas; and the existence of edges between nodes of various copies is specified using MSO formulas Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

15 MSO-definable Transformations [Courcelle, 1994] Defining Graph Transformations using MSO A labeled graph transformation using MSO is specified by: input and output alphabets; an MSO formula specifying the domain of the transformation; output is specified using a finite number of copies of nodes of input graph; the node labels are specified using MSO formulas; and the existence of edges between nodes of various copies is specified using MSO formulas Example Let Σ = {a, b, #}. Consider a transformation f 1 : Σ Σ where u is reverse of u. u 1 #u 2 #... u n 1 #u n #v u 1 u 1 #... #u n u n #v. Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

16 MSO-definable Transformations input: a b c b b # a a b # c c a a # b copy 1: a b c b b a a b c c a a copy 2: a b c b b # a a b # c c a a # b Σ = Γ = {a, b, c, #}, C = {1, 2}, and Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

17 MSO-definable Transformations input: a b c b b # a a b # c c a a # b copy 1: a b c b b a a b c c a a copy 2: a b c b b # a a b # c c a a # b Σ = Γ = {a, b, c, #}, C = {1, 2}, and Node Label Formulas ( Γ. C formulas) Label c1 α (x) = Label inp α (x) Label inp # (x) reach #(x) Label c2 α (x) = Label inp (x) α Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

18 MSO-definable Transformations input: a b c b b # a a b # c c a a # b copy 1: a b c b b a a b c c a a copy 2: a b c b b # a a b # c c a a # b Σ = Γ = {a, b, c, #}, C = {1, 2}, and Node Label Formulas ( Γ. C formulas) Label c1 α (x) = Label inp α (x) Label inp # (x) reach #(x) Label c2 α (x) = Label inp α (x) Edge Label Formulas ( C 2 formulas) Edge c1,c1 (x, y) = Edge inp (y, x) Label inp # (x) Labelinp # (y). Edge c2,c2 (x, y) = Edge inp (x, y) ( Label inp # (x) (Labelinp # (x) reach #(x))) Edge 1,2 (x, y)=(x=y) (first(x) z(label inp # (z) Edgeinp (z, x))) Edge 2,1 (x, y)=label inp # (x) reach #(x) ( z(edge inp (y, z) Label inp # (z))) ( z((path(x, z) path(z, y)) Labelinp # (z))) Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

19 Streaming Transducers [Alur and Černý, 2011] A streaming transducer is an automaton: ( Σ, Q, δ, q 0, F, X, (D, f 1,..., f k ), ρ ) Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

20 Streaming Transducers [Alur and Černý, 2011] A streaming transducer is an automaton: ( Σ, Q, δ, q 0, F, X, (D, f 1,..., f k ), ρ ) extended with a finite set of registers X Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

21 Streaming Transducers [Alur and Černý, 2011] A streaming transducer is an automaton: ( Σ, Q, δ, q 0, F, X, (D, f 1,..., f k ), ρ ) extended with a finite set of registers X which will store values from domain D Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

22 Streaming Transducers [Alur and Černý, 2011] A streaming transducer is an automaton: ( Σ, Q, δ, q 0, F, X, (D, f 1,..., f k ), ρ ) extended with a finite set of registers X which will store values from domain D with an update function ρ : Q Σ X T (X, f 1,..., f k ) T (X, f 1,..., f k ) denotes terms obtained with functions f 1,..., f k registers. and Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

23 Streaming Transducers [Alur and Černý, 2011] A streaming transducer is an automaton: ( Σ, Q, δ, q 0, F, X, (D, f 1,..., f k ), ρ ) extended with a finite set of registers X which will store values from domain D with an update function ρ : Q Σ X T (X, f 1,..., f k ) T (X, f 1,..., f k ) denotes terms obtained with functions f 1,..., f k and registers. Its configurations will be a state together with a valuation of each register Q [X D] Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

24 Streaming Transducers [Alur and Černý, 2011] A streaming transducer is an automaton: ( Σ, Q, δ, q 0, F, X, (D, f 1,..., f k ), ρ ) extended with a finite set of registers X which will store values from domain D with an update function ρ : Q Σ X T (X, f 1,..., f k ) T (X, f 1,..., f k ) denotes terms obtained with functions f 1,..., f k and registers. Its configurations will be a state together with a valuation of each register Q [X D] An output function F : Finite word input this is a function from Q to T (X, f1,..., f k ). The image of w is the value of the term F(ˆδ(w)) in the case of infinite word input, this is a function from 2 Q to X. The image of w is the limit of the value of register F(ˆδ(w)) Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

25 An example A = ( Σ, Q, δ, q 0, F, X, (D, f 1,..., f k ), ρ ) Here D = Σ, and we have binary function (concatenation) and constants ε, a, b, c, # Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

26 An example A = ( Σ, Q, δ, q 0, F, X, (D, f 1,..., f k ), ρ ) Here D = Σ, and we have binary function (concatenation) and constants ε, a, b, c, # start q # α X := X Z # Y := ε Z := ε X := X Y := Y α Z := α Z α F(q) = X Y a b # a # a b X ε ε baab# baab# baab#aa# baab#aa# baab#aa# Y a ab ε a ε a ab Z aa baab ε aa ε aa baab Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

27 An example A = ( Σ, Q, δ, q 0, F, X, (D, f 1,..., f k ), ρ ) Here D = Σ, and we have binary function (concatenation) and constants ε, a, b, c, # start q # α X := X Z # Y := ε Z := ε X := X Y := Y α Z := α Z α F(q) = X Y a b # a # a b X ε ε baab# baab# baab#aa# baab#aa# baab#aa# Y a ab ε a ε a ab Z aa baab ε aa ε aa baab Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

28 An example A = ( Σ, Q, δ, q 0, F, X, (D, f 1,..., f k ), ρ ) Here D = Σ, and we have binary function (concatenation) and constants ε, a, b, c, # start q # α X := X Z # Y := ε Z := ε X := X Y := Y α Z := α Z α F(q) = X Y a b # a # a b X ε ε baab# baab# baab#aa# baab#aa# baab#aa# Y a ab ε a ε a ab Z aa baab ε aa ε aa baab Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

29 An example A = ( Σ, Q, δ, q 0, F, X, (D, f 1,..., f k ), ρ ) Here D = Σ, and we have binary function (concatenation) and constants ε, a, b, c, # start q # α X := X Z # Y := ε Z := ε X := X Y := Y α Z := α Z α F(q) = X Y a b # a # a b X ε ε baab# baab# baab#aa# baab#aa# baab#aa# Y a ab ε a ε a ab Z aa baab ε aa ε aa baab Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

30 An example A = ( Σ, Q, δ, q 0, F, X, (D, f 1,..., f k ), ρ ) Here D = Σ, and we have binary function (concatenation) and constants ε, a, b, c, # start q # α X := X Z # Y := ε Z := ε X := X Y := Y α Z := α Z α F(q) = X Y a b # a # a b X ε ε baab# baab# baab#aa# baab#aa# baab#aa# Y a ab ε a ε a ab Z aa baab ε aa ε aa baab Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

31 An example A = ( Σ, Q, δ, q 0, F, X, (D, f 1,..., f k ), ρ ) Here D = Σ, and we have binary function (concatenation) and constants ε, a, b, c, # start q # α X := X Z # Y := ε Z := ε X := X Y := Y α Z := α Z α F(q) = X Y a b # a # a b X ε ε baab# baab# baab#aa# baab#aa# baab#aa# Y a ab ε a ε a ab Z aa baab ε aa ε aa baab Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

32 An example A = ( Σ, Q, δ, q 0, F, X, (D, f 1,..., f k ), ρ ) Here D = Σ, and we have binary function (concatenation) and constants ε, a, b, c, # start q # α X := X Z # Y := ε Z := ε X := X Y := Y α Z := α Z α F(q) = X Y a b # a # a b X ε ε baab# baab# baab#aa# baab#aa# baab#aa# Y a ab ε a ε a ab Z aa baab ε aa ε aa baab Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

33 An example A = ( Σ, Q, δ, q 0, F, X, (D, f 1,..., f k ), ρ ) Here D = Σ, and we have binary function (concatenation) and constants ε, a, b, c, # start q # α X := X Z # Y := ε Z := ε X := X Y := Y α Z := α Z α F(q) = X Y a b # a # a b X ε ε baab# baab# baab#aa# baab#aa# baab#aa# Y a ab ε a ε a ab Z aa baab ε aa ε aa baab Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

34 A restriction on the update function start q α X = X α X F = X This leads to an exponential output Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

35 A restriction on the update function start q α X = X α X F = X This leads to an exponential output We want to forbid this behaviour: Copylessness: each register appear at most once on the r.h.s. Restricted copy: copies allowed but recombining is not possible Bounded copy: in the end the content of any register is never copies more than a bounded number of times Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

36 A restriction on the update function start q α X = X α X F = X This leads to an exponential output We want to forbid this behaviour: Copylessness: each register appear at most once on the r.h.s. Restricted copy: copies allowed but recombining is not possible Bounded copy: in the end the content of any register is never copies more than a bounded number of times Streaming transducers have to satisfy this syntactic restriction Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

37 Contents 1 Regular Transformations Logical definition Streaming Transducers 2 Contribution: Equivalence with a direct logic-based reduction Some logical considerations Proof Walkthrough 3 Decision procedures Functional equivalence Typechecking Problem 4 Conclusion Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

38 A computational model for some restricted Courcelle transformations from to {0, 1} Σ Σ ω T T ω graphs finite words infinite words finite trees infinite trees graphs Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

39 A computational model for some restricted Courcelle transformations from to {0, 1} Σ Σ ω T T ω graphs finite words infinite words finite trees infinite trees Büchi Rabin graphs Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

40 A computational model for some restricted Courcelle transformations from to {0, 1} Σ Σ ω T T ω graphs finite words infinite words finite trees infinite trees graphs Büchi Rabin [AČ11] [Alur and Černý, 2011] (POPL) Streaming transducers for algorithmic verification of single-pass list-processing programs Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

41 Existing proof, through a two way transducer Case of transformations from finite strings to finite strings [Alur and Černý, 2011] [Engelfriet and Hoogeboom, 2001] MSO Transformation Two-Way transducer w/ look-ahead [Alur and Černý, 2011] [Chytil and Jákl, 1977] Streaming Transducer Two-Way Transducer [Alur and Černý, 2011] Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

42 A computational model for some restricted Courcelle transformations from to {0, 1} Σ Σ ω T T ω graphs finite words infinite words finite trees infinite trees graphs Büchi Rabin [AČ11] [AFT12] [Alur and Černý, 2011] (POPL) Streaming transducers for algorithmic verification of single-pass list-processing programs [Alur et al., 2012] (LICS) Regular Transformations of Infinite Strings Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

43 Existing proof, of a through way transducer Case of transformations from infinite strings to infinite strings[alur et al., 2012] [Engelfriet and Hoogeboom, 2001][Alur et al., 2012] MSO Transformation Two-Way transducer w/ look-ahead Functional NSST w/ look-ahead [Alur and Černý, 2011] Streaming Transducer Streaming Transducer w/ bounded copy [Miyano and Hayashi, 1984] Functional NSST [Alur et al., 2012] [Alur et al., 2012] Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

44 A computational model for some restricted Courcelle transformations from to {0, 1} Σ Σ ω T T ω graphs finite words infinite words Büchi [AČ11] [AFT12] [Ad A12] finite trees infinite trees Rabin [Ad A12] [Ad A12] graphs [Alur and Černý, 2011] (POPL) Streaming transducers for algorithmic verification of single-pass list-processing programs [Alur et al., 2012] (LICS) Regular Transformations of Infinite Strings [Alur and D Antoni, 2012] (ICALP) Streaming Tree Transducers Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

45 A computational model for some restricted Courcelle transformations from to {0, 1} Σ Σ ω T T ω graphs finite words infinite words Büchi [AČ11] [AFT12] [Ad A12]?? finite trees infinite trees Rabin [Ad A12]?? [Ad A12]???? graphs?????? [Alur and Černý, 2011] (POPL) Streaming transducers for algorithmic verification of single-pass list-processing programs [Alur et al., 2012] (LICS) Regular Transformations of Infinite Strings [Alur and D Antoni, 2012] (ICALP) Streaming Tree Transducers Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

46 A computational model for some restricted Courcelle transformations from to {0, 1} Σ Σ ω T T ω graphs finite words infinite words Büchi [AČ11] [AFT12] [Ad A12] [ADT13]?? finite trees infinite trees Rabin [Ad A12]?? [Ad A12]???? graphs?????? [Alur and Černý, 2011] (POPL) Streaming transducers for algorithmic verification of single-pass list-processing programs [Alur et al., 2012] (LICS) Regular Transformations of Infinite Strings [Alur and D Antoni, 2012] (ICALP) Streaming Tree Transducers [Alur et al., 2013] (LICS) From Monadic Second-Order Definable String Transformations to Transducers Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

47 A direct proof MSO Transformation [Alur, DG and Trivedi 13] [Alur and Černý, 2011] [Alur et al., 2012] Streaming Transducer w/ restricted copy Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

48 Finiteness of MSO formula up to some quantifier depth Remark The number of MSO sentences of quantifier depth at most k is finite Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

49 Finiteness of MSO formula up to some quantifier depth Remark The number of MSO sentences of quantifier depth at most k is finite By induction over formulas with r FV and quantifier depth at most k: true when k = 0 if true for some k, notice that an MSO formula with qd k + 1 and r FV is a boolean combination of formulas of the form X.ϕ where ϕ has qd k and r + 1 FV. Thus a finitely generated (by induction) boolean algebra Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

50 Finiteness of MSO formula up to some quantifier depth Remark The number of MSO sentences of quantifier depth at most k is finite We define an equivalence relation over words Two words are k-equivalent iff no formula of q.d. k can distinguish them This equivalence relation has finite index We denote k-types these equivalence classes Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

51 Finiteness of MSO formula up to some quantifier depth Remark The number of MSO sentences of quantifier depth at most k is finite We define an equivalence relation over words Two words are k-equivalent iff no formula of q.d. k can distinguish them This equivalence relation has finite index We denote k-types these equivalence classes Remark: This equivalence relation is a monoïd congruence The k-type of u v is determined by the k-types of u and v Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

52 Finiteness of MSO formula up to some quantifier depth Remark The number of MSO sentences of quantifier depth at most k is finite We define an equivalence relation over words Two words are k-equivalent iff no formula of q.d. k can distinguish them This equivalence relation has finite index We denote k-types these equivalence classes Remark: This equivalence relation is a monoïd congruence The k-type of u v is determined by the k-types of u and v Remark Formulas with quantifier depth k and 2 first-order free variables: w 1 w 2 w 3 ϕ(x, y) w : x y Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

53 Finiteness of MSO formula up to some quantifier depth Remark The number of MSO sentences of quantifier depth at most k is finite We define an equivalence relation over words Two words are k-equivalent iff no formula of q.d. k can distinguish them This equivalence relation has finite index We denote k-types these equivalence classes Remark: This equivalence relation is a monoïd congruence The k-type of u v is determined by the k-types of u and v Remark Formulas with quantifier depth k and 2 first-order free variables: w 1 w 2 w 3 ϕ(x, y) w : x y The validity of ϕ only depends on w[x], w[y] and the k-types of w 1, w 2, w 3 Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

54 Crossings w : x A crossing at position x is an edge which connects two nodes which are not on the same side w.r.t. x. Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

55 Boundedly many crossings input output 1 y b y a x y a y b w : α α c 1 c 2. u v w w u v.. c Theorem At any given position there are at most 2C k-types crossings Otherwise in the image, two distinct nodes have an outgoing edge to the same node Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

56 Boundedly many crossings means boundedly many registers w : x One register for each triple k-type, letter, k-type would be enough Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

57 Boundedly many crossings means boundedly many registers w : x?????????? One register for each triple k-type, letter, k-type would be enough We will also need to handle all possible behaviours Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

58 Handling all possible behaviours with Regular Look-Ahead Regular look-ahead: guards on transitions (and updates) MSO queries over the suffix. Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

59 Handling all possible behaviours with Regular Look-Ahead Regular look-ahead: guards on transitions (and updates) MSO queries over the suffix. w : y x?????????? Is there in the image some subword that starts at a position y (labeled by α), before x such that the k-type of w[0:y) is τ 1 and the k-type of w(y:x) is τ 2? Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

60 Handling all possible behaviours with Regular Look-Ahead Regular look-ahead: guards on transitions (and updates) MSO queries over the suffix. w : y x?????????? Is there in the image some subword that starts at a position y (labeled by α), before x such that the k-type of w[0:y) is τ 1 and the k-type of w(y:x) is τ 2? This is an MSO query with quantifier depth K = k + C + 3! Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

61 Handling all possible behaviours with Regular Look-Ahead Regular look-ahead: guards on transitions (and updates) MSO queries over the suffix. w : y x?????????? Is there in the image some subword that starts at a position y (labeled by α), before x such that the k-type of w[0:y) is τ 1 and the k-type of w(y:x) is τ 2? This is an MSO query with quantifier depth K = k + C + 3! Thus all the possible cases are handled by guessing the K-type of w(x: w ] Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

62 Handling all possible behaviours with Regular Look-Ahead Regular look-ahead: guards on transitions (and updates) MSO queries over the suffix. w : y x?????????? Is there in the image some subword that starts at a position y (labeled by α), before x such that the k-type of w[0:y) is τ 1 and the k-type of w(y:x) is τ 2? This is an MSO query with quantifier depth K = k + C + 3! Thus all the possible cases are handled by guessing the K-type of w(x: w ] The set of registers will be k-types Σ k-types K-types The set of states will be the set of K-types (the state will state which is the K-type of the prefix read so far). Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

63 Finite word case At the end of the input, we output the non-empty register corresponding to the regular-look ahead ε. Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

64 Finite word case At the end of the input, we output the non-empty register corresponding to the regular-look ahead ε. The reduction does not go through a two-way model. Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

65 Infinite word input case The main difficulty lies in that we have to guess correctly and infinitely often the regular look-ahead. Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

66 Infinite word input case The main difficulty lies in that we have to guess correctly and infinitely often the regular look-ahead. The image is defined as the limit of the content of some register, depending on the set of infinitely occuring states (Muller condition) Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

67 Infinite word input case The main difficulty lies in that we have to guess correctly and infinitely often the regular look-ahead. The image is defined as the limit of the content of some register, depending on the set of infinitely occuring states (Muller condition) With the Muller output condition, we can have some MSO property over the whole word. Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

68 Infinite word input case The main difficulty lies in that we have to guess correctly and infinitely often the regular look-ahead. The image is defined as the limit of the content of some register, depending on the set of infinitely occuring states (Muller condition) With the Muller output condition, we can have some MSO property over the whole word. We need to effectively find a factorization τ(τ ) ω of the input. This can be found in Shelah s alternative proof of Büchi Theorem, using a finite additive coloring (Ramsey s Theorem) Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

69 Infinite word input case The main difficulty lies in that we have to guess correctly and infinitely often the regular look-ahead. The image is defined as the limit of the content of some register, depending on the set of infinitely occuring states (Muller condition) With the Muller output condition, we can have some MSO property over the whole word. We need to effectively find a factorization τ(τ ) ω of the input. This can be found in Shelah s alternative proof of Büchi Theorem, using a finite additive coloring (Ramsey s Theorem) Thus we can output infinitely often some increasing prefixes of the image Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

70 Infinite word input case The main difficulty lies in that we have to guess correctly and infinitely often the regular look-ahead. The image is defined as the limit of the content of some register, depending on the set of infinitely occuring states (Muller condition) With the Muller output condition, we can have some MSO property over the whole word. We need to effectively find a factorization τ(τ ) ω of the input. This can be found in Shelah s alternative proof of Büchi Theorem, using a finite additive coloring (Ramsey s Theorem) Thus we can output infinitely often some increasing prefixes of the image We converge toward the output Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

71 Contents 1 Regular Transformations Logical definition Streaming Transducers 2 Contribution: Equivalence with a direct logic-based reduction Some logical considerations Proof Walkthrough 3 Decision procedures Functional equivalence Typechecking Problem 4 Conclusion Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

72 Functional equivalence is decidable Do two transformations have the same image on any input? Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

73 Functional equivalence is decidable Do two transformations have the same image on any input? A hard problem: different logical ways to define the same transformation w : a 0 a 1 a 2... a n 1 a n o 1 : a 1 a 2... a n 1 a n o 2 : a 1 a 2 a 3... a n Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

74 Functional equivalence is decidable Do two transformations have the same image on any input? A hard problem: different logical ways to define the same transformation w : a 0 a 1 a 2... a n 1 a n o 1 : a 1 a 2... a n 1 a n o 2 : a 1 a 2 a 3... a n Reduction to reachability in a counter system (no test, no decrement): Idea: finding a conflicting position (say a in first image, b in the second) Two counters tracking the number of letters before the conflicting postion in each image Set of states: (states of the transducer 4 registers of the transducer ) 2 0: the value of this register does not appear in the output 1: its value appears before the conflicting position 2: its value contains the conflicting position 3: its value is after the conflicting position Erase the letters in the transitions, increment corresponding to the registers updates Find a reachable configuration where the two counters are equal Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

75 The typechecking problem Definition Given formulas ϕ, ψ do we have w. w ϕ = T (w) ψ We can perform this check by some automatic construction Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

76 Contents 1 Regular Transformations Logical definition Streaming Transducers 2 Contribution: Equivalence with a direct logic-based reduction Some logical considerations Proof Walkthrough 3 Decision procedures Functional equivalence Typechecking Problem 4 Conclusion Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

77 Conclusion Contributions Direct proof of equivalence between Courcelle transformations and Streaming Transducers Previously unexplored setting of ω-words to trees Syntactically ensuring convergence of the output Equivalence and type-checking problems are decidable Perspectives More expressive transformations (relaxing the restriction on copies) Less expressive transformations (First-order fragment) Extension to regular cost functions Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

78 Conclusion Contributions Direct proof of equivalence between Courcelle transformations and Streaming Transducers Previously unexplored setting of ω-words to trees Syntactically ensuring convergence of the output Equivalence and type-checking problems are decidable Perspectives More expressive transformations (relaxing the restriction on copies) Less expressive transformations (First-order fragment) Extension to regular cost functions Thank you for your attention! Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

79 Alur, R. and Černý, P. (2011). Streaming transducers for algorithmic verification of single-pass list-processing programs. In POPL, pages Alur, R. and D Antoni, L. (2012). Streaming tree transducers. In ICALP (2), volume 7392 of Lecture Notes in Computer Science, pages Springer. Alur, R., Durand-Gasselin, A., and Trivedi, A. (2013). From monadic second-order definable string transformations to transducers. In LICS. IEEE. Alur, R., Filiot, E., and Trivedi, A. (2012). Regular transformations of infinite strings. In LICS, pages Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

80 Büchi, J. R. (1960). Weak second-order Arithmetic and Finite Automata. Zeitschrift fur Mathematische Logik und Grundlagen der Mathematik, 6: Chytil, M. and Jákl, V. (1977). Serial composition of 2-way finite-state transducers and simple programs on strings. In ICALP, volume 52 of Lecture Notes in Computer Science, pages Springer. Courcelle, B. (1994). Monadic second-order definable graph transductions: a survey. Theoretical Computer Science, 126(1): Engelfriet, J. and Hoogeboom, H. J. (2001). MSO definable string transductions and two-way finite-state transducers. ACM Trans. Comput. Logic, 2: Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

81 Miyano, S. and Hayashi, T. (1984). Alternating finite automata on omega-words. Theor. Comput. Sci., 32: Alur, Durand-Gasselin, Trivedi Streaming String Transducers June 21, / 31

Regular transformations of data words through origin information

Regular transformations of data words through origin information Regular transformations of data words through origin information Antoine Durand-Gasselin 1 and Peter Habermehl 2 1 Aix Marseille Université, CNRS & Centrale Marseille Antoine.Durand-Gasselin@centrale-marseille.fr

More information

First-order Definable String Transformations

First-order Definable String Transformations First-order Definable String Transformations Emmanuel Filiot 1, Shankara Narayanan Krishna 2, and Ashutosh Trivedi 2 1 F.N.R.S. Research Associate, Université Libre de Bruxelles, Belgium efiliot@ulb.ac.be

More information

FO-Definable Transformations of Infinite Strings

FO-Definable Transformations of Infinite Strings FO-Definable Transformations of Infinite Strings Vrunda Dave 1, Shankara Narayanan Krishna 2, and Ashutosh Trivedi 3 1 Indian Institute of Technology, Bombay, India vrunda@cse.iitb.ac.in 2 Indian Institute

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

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

Nondeterministic Streaming String Transducers

Nondeterministic Streaming String Transducers Nondeterministic Streaming String Transducers Rajeev Alur and Jyotirmoy V. Deshmukh Dept. of Computer and Information Science, University of Pennsylvania. {alur,djy}@cis.upenn.edu Abstract. We introduce

More information

The Parikh image of languages and linear constraints

The Parikh image of languages and linear constraints The Parikh image of languages and linear constraints Peter.Habermehl@liafa.univ-paris-diderot.fr 1 1 LIAFA, Université Paris Diderot, Sorbonne Paris Cité, CNRS CP meets CAV, Turunç June 28th, 2012 Peter

More information

Copyful Streaming String Transducers

Copyful Streaming String Transducers Copyful Streaming String Transducers Emmanuel Filiot 1 and Pierre-Alain Reynier 2 1 Computer Science department, Université Libre de Bruxelles, Belgium 2 Aix-Marseille Univ, LIF, CNRS, Marseille, France

More information

arxiv: v5 [cs.fl] 21 Feb 2012

arxiv: v5 [cs.fl] 21 Feb 2012 Streaming Tree Transducers Rajeev Alur and Loris D Antoni University of Pennsylvania February 23, 2012 arxiv:1104.2599v5 [cs.fl] 21 Feb 2012 Abstract Theory of tree transducers provides a foundation for

More information

Languages, logics and automata

Languages, logics and automata Languages, logics and automata Anca Muscholl LaBRI, Bordeaux, France EWM summer school, Leiden 2011 1 / 89 Before all that.. Sonia Kowalewskaya Emmy Noether Julia Robinson All this attention has been gratifying

More information

An algebraic characterization of unary two-way transducers

An algebraic characterization of unary two-way transducers An algebraic characterization of unary two-way transducers (Extended Abstract) Christian Choffrut 1 and Bruno Guillon 1 LIAFA, CNRS and Université Paris 7 Denis Diderot, France. Abstract. Two-way transducers

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

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

Decision Problems for Additive Regular Functions

Decision Problems for Additive Regular Functions Decision Problems for Additive Regular Functions Rajeev Alur and Mukund Raghothaman University of Pennsylvania {alur, rmukund}@cis.upenn.edu Abstract. Additive Cost Register Automata (ACRA) map strings

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

Complexity of Regular Functions

Complexity of Regular Functions Electronic Colloquium on Computational Complexity, Report No. 18 (2015) Complexity of Regular Functions Eric Allender and Ian Mertz Department of Computer Science Rutgers University Piscataway, NJ 08854,

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

DReX: A Declarative Language for Efficiently Evaluating Regular String Transformations

DReX: A Declarative Language for Efficiently Evaluating Regular String Transformations DReX: A Declarative Language for Efficiently Evaluating Regular String Transformations Rajeev Alur Loris D Antoni Mukund Raghothaman POPL 2015 1 DReX is a DSL for String Transformations align-bibtex...

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

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

Logical Characterization of Weighted Pebble Walking Automata

Logical Characterization of Weighted Pebble Walking Automata Logical Characterization of Weighted Pebble Walking Automata Benjamin Monmege Université libre de Bruxelles, Belgium Benedikt Bollig and Paul Gastin (LSV, ENS Cachan, France) Marc Zeitoun (LaBRI, Bordeaux

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

Streaming Tree Transducers

Streaming Tree Transducers 1 Streaming Tree Transducers RAJEEV ALUR, University of Pennsylvania LORIS D ANTONI, University of Wisconsin-Madison The theory of tree transducers provides a foundation for understanding expressiveness

More information

What You Must Remember When Processing Data Words

What You Must Remember When Processing Data Words What You Must Remember When Processing Data Words Michael Benedikt, Clemens Ley, and Gabriele Puppis Oxford University Computing Laboratory, Park Rd, Oxford OX13QD UK Abstract. We provide a Myhill-Nerode-like

More information

Modal Logic XIII. Yanjing Wang

Modal Logic XIII. Yanjing Wang Modal Logic XIII Yanjing Wang Department of Philosophy, Peking University Apr 16th, 2015 Advanced Modal Logic (2015 Spring) 1 Frames Frames and validity Why do we study frames? Frames as tools for analysing

More information

Uniformization in Automata Theory

Uniformization in Automata Theory Uniformization in Automata Theory Arnaud Carayol Laboratoire d Informatique Gaspard Monge, Université Paris-Est & CNRS arnaud.carayol@univ-mlv.fr Christof Löding RWTH Aachen, Informatik 7, Aachen, Germany

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

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

Automata for Branching and Layered Temporal Structures

Automata for Branching and Layered Temporal Structures Università degli Studi di Udine Dipartimento di Matematica e Informatica Dottorato di Ricerca in Informatica Thesis Automata for Branching and Layered Temporal Structures Gabriele Puppis March 31, 2006

More information

Deciding the weak definability of Büchi definable tree languages

Deciding the weak definability of Büchi definable tree languages Deciding the weak definability of Büchi definable tree languages Thomas Colcombet 1,DenisKuperberg 1, Christof Löding 2, Michael Vanden Boom 3 1 CNRS and LIAFA, Université Paris Diderot, France 2 Informatik

More information

Partially Ordered Two-way Büchi Automata

Partially Ordered Two-way Büchi Automata Partially Ordered Two-way Büchi Automata Manfred Kufleitner Alexander Lauser FMI, Universität Stuttgart, Germany {kufleitner, lauser}@fmi.uni-stuttgart.de June 14, 2010 Abstract We introduce partially

More information

Aperiodic String Transducers

Aperiodic String Transducers Aperiodic String Transducers Luc Dartois, Ismaël Jecker Université Libre de Bruxelles, Belgium Pierre-Alain Reynier Aix Marseille Univ, Université de Toulon, CNRS, LIS, Marseille, France Regular string-to-string

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

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

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 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

On the Satisfiability of Two-Variable Logic over Data Words

On the Satisfiability of Two-Variable Logic over Data Words On the Satisfiability of Two-Variable Logic over Data Words Claire David, Leonid Libkin, and Tony Tan School of Informatics, University of Edinburgh Abstract. Data trees and data words have been studied

More information

Verifying qualitative and quantitative properties with LTL over concrete domains

Verifying qualitative and quantitative properties with LTL over concrete domains Verifying qualitative and quantitative properties with LTL over concrete domains Régis Gascon Laboratoire Spécification et Vérification CNRS & ENS Cachan FRANCE gascon@lsv.ens-cachan.fr Abstract. We introduce

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

The Complexity of Transducer Synthesis from Multi-Sequential Specifications

The Complexity of Transducer Synthesis from Multi-Sequential Specifications The Complexity of Transducer Synthesis from Multi-Sequential Specifications Léo Exibard 12 Emmanuel Filiot 13 Ismaël Jecker 1 Tuesday, August 28 th, 2018 1 Université libre de Bruxelles 2 LIS Aix-Marseille

More information

Weighted Automata and Logics on Infinite Graphs

Weighted Automata and Logics on Infinite Graphs Weighted Automata and Logics on Infinite Graphs Stefan Dück Institute of Computer Science, Leipzig University, D-04109 Leipzig, Germany dueck@informatik.uni-leipzig.de Abstract. We show a Büchi-like connection

More information

On decision problems for timed automata

On decision problems for timed automata On decision problems for timed automata Olivier Finkel Equipe de Logique Mathématique, U.F.R. de Mathématiques, Université Paris 7 2 Place Jussieu 75251 Paris cedex 05, France. finkel@logique.jussieu.fr

More information

The Non-Deterministic Mostowski Hierarchy and Distance-Parity Automata

The Non-Deterministic Mostowski Hierarchy and Distance-Parity Automata The Non-Deterministic Mostowski Hierarchy and Distance-Parity Automata Thomas Colcombet 1, and Christof Löding 2 1 LIAFA/CNRS, France 2 RWTH Aachen, Germany Abstract. Given a Rabin tree-language and natural

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

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

First-order definability of rational transductions: An algebraic approach

First-order definability of rational transductions: An algebraic approach First-order definability of rational transductions: An algebraic approach Emmanuel Filiot, Olivier Gauwin, Nathan Lhote To cite this version: Emmanuel Filiot, Olivier Gauwin, Nathan Lhote. First-order

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

Automata-based Verification - III

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

More information

On the bisimulation invariant fragment of monadic Σ 1 in the finite

On the bisimulation invariant fragment of monadic Σ 1 in the finite On the bisimulation invariant fragment of monadic Σ 1 in the finite Anuj Dawar 1 and David Janin 2 1 University of Cambridge Computer Laboratory, Cambridge CB3 0FD, UK, anuj.dawar@cl.cam.ac.uk. 2 LaBRI,

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

From Liveness to Promptness

From Liveness to Promptness From Liveness to Promptness Orna Kupferman Hebrew University Nir Piterman EPFL Moshe Y. Vardi Rice University Abstract Liveness temporal properties state that something good eventually happens, e.g., every

More information

Algorithmic Analysis of Array-Accessing Programs

Algorithmic Analysis of Array-Accessing Programs Algorithmic Analysis of Array-Accessing Programs Rajeev Alur Pavol Černý Scott Weinstein University of Pennsylvania {alur,cernyp,weinstein}@cis.upenn.edu Abstract For programs whose data variables range

More information

Ehrenfeucht-Fraïssé goes elementarily automatic for structures of bounded degree

Ehrenfeucht-Fraïssé goes elementarily automatic for structures of bounded degree Ehrenfeucht-Fraïssé goes elementarily automatic for structures of bounded degree Antoine Durand-Gasselin and Peter Habermehl Univ Paris Diderot, Sorbonne Paris Cité, LIAFA, UMR 7089 CNRS, F-75205 Paris,

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

Chapter 1. Automata over infinite alphabets

Chapter 1. Automata over infinite alphabets Chapter 1 Automata over infinite alphabets Amaldev Manuel and R. Ramanujam Institute of Mathematical Sciences, C.I.T campus, Taramani, Chennai - 600113. In many contexts such as validation of XML data,

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

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

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

Regularity Problems for Visibly Pushdown Languages

Regularity Problems for Visibly Pushdown Languages Regularity Problems for Visibly Pushdown Languages Vince Bárány 1, Christof Löding 1, and Olivier Serre 2 1 RWTH Aachen, Germany 2 LIAFA, Université Paris VII & CNRS, France Abstract. Visibly pushdown

More information

Real-Time Systems. Lecture 15: The Universality Problem for TBA Dr. Bernd Westphal. Albert-Ludwigs-Universität Freiburg, Germany

Real-Time Systems. Lecture 15: The Universality Problem for TBA Dr. Bernd Westphal. Albert-Ludwigs-Universität Freiburg, Germany Real-Time Systems Lecture 15: The Universality Problem for TBA 2013-06-26 15 2013-06-26 main Dr. Bernd Westphal Albert-Ludwigs-Universität Freiburg, Germany Contents & Goals Last Lecture: Extended Timed

More information

Mathematical Preliminaries. Sipser pages 1-28

Mathematical Preliminaries. Sipser pages 1-28 Mathematical Preliminaries Sipser pages 1-28 Mathematical Preliminaries This course is about the fundamental capabilities and limitations of computers. It has 3 parts 1. Automata Models of computation

More information

A Logical Characterization for Weighted Event-Recording Automata

A Logical Characterization for Weighted Event-Recording Automata A Logical Characterization for Weighted Event-Recording Automata June 23, 2009 Karin Quaas Institut für Informatik, Universität Leipzig 04009 Leipzig, Germany quaas@informatik.uni-leipzig.de Abstract.

More information

Cost Functions Definable by Min/Max Automata

Cost Functions Definable by Min/Max Automata Cost Functions Definable by Min/Max Automata Thomas Colcombet 1, Denis Kuperberg 2, Amaldev Manuel 3, and Szymon Toruńczyk 4 1 CNRS & LIAFA, Université Paris Diderot, Paris 7, France 2 IRIT/ONERA, Toulouse,

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

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

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

The State Explosion Problem

The State Explosion Problem The State Explosion Problem Martin Kot August 16, 2003 1 Introduction One from main approaches to checking correctness of a concurrent system are state space methods. They are suitable for automatic analysis

More information

A Generalization of Cobham s Theorem to Automata over Real Numbers 1

A Generalization of Cobham s Theorem to Automata over Real Numbers 1 A Generalization of Cobham s Theorem to Automata over Real Numbers 1 Bernard Boigelot and Julien Brusten 2 Institut Montefiore, B28 Université de Liège B-4000 Liège Sart-Tilman Belgium Phone: +32-43662970

More information

PSL Model Checking and Run-time Verification via Testers

PSL Model Checking and Run-time Verification via Testers PSL Model Checking and Run-time Verification via Testers Formal Methods 2006 Aleksandr Zaks and Amir Pnueli New York University Introduction Motivation (Why PSL?) A new property specification language,

More information

LTL with Arithmetic and its Applications in Reasoning about Hierarchical Systems

LTL with Arithmetic and its Applications in Reasoning about Hierarchical Systems This space is reserved for the EPiC Series header, do not use it LTL with Arithmetic and its Applications in Reasoning about Hierarchical Systems Rachel Faran and Orna Kupferman The Hebrew University,

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

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

A Generalization of Cobham s Theorem to Automata over Real Numbers

A Generalization of Cobham s Theorem to Automata over Real Numbers A Generalization of Cobham s Theorem to Automata over Real Numbers Bernard Boigelot and Julien Brusten Institut Montefiore, B28 Université de Liège B-4000 Liège, Belgium {boigelot,brusten}@montefiore.ulg.ac.be

More information

Linear Temporal Logic and Büchi Automata

Linear Temporal Logic and Büchi Automata Linear Temporal Logic and Büchi Automata Yih-Kuen Tsay Department of Information Management National Taiwan University FLOLAC 2009 Yih-Kuen Tsay (SVVRL @ IM.NTU) Linear Temporal Logic and Büchi Automata

More information

Model Theoretic Complexity of Automatic Structures (Extended Abstract)

Model Theoretic Complexity of Automatic Structures (Extended Abstract) Model Theoretic Complexity of Automatic Structures (Extended Abstract) Bakhadyr Khoussainov 1 and Mia Minnes 2 1 Department of Computer Science University of Auckland Auckland, New Zealand bmk@cs.auckland.ac.nz

More information

The MSO Theory of Connectedly Communicating Processes

The MSO Theory of Connectedly Communicating Processes The MSO Theory of Connectedly Communicating Processes P. Madhusudan 1, P. S. Thiagarajan 2, and Shaofa Yang 2 1 Dept. of Computer Science, University of Illinois at Urbana-Champaign Email: madhu@cs.uiuc.edu

More information

Spectra of Monadic Second-Order Formulas with One Unary Function

Spectra of Monadic Second-Order Formulas with One Unary Function Spectra of Monadic Second-Order Formulas with One Unary Function Yuri Gurevich Saharon Shelah Abstract We establish the eventual periodicity of the spectrum of any monadic second-order formula where (i)

More information

Variable Automata over Infinite Alphabets

Variable Automata over Infinite Alphabets Variable Automata over Infinite Alphabets Orna Grumberg a, Orna Kupferman b, Sarai Sheinvald b a Department of Computer Science, The Technion, Haifa 32000, Israel b School of Computer Science and Engineering,

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

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

Chapter XIII Monadic Second-Order Theories

Chapter XIII Monadic Second-Order Theories Chapter XIII Monadic Second-Order Theories by Y. Gurevich In the present chapter we will make a case for the monadic second-order logic (that is to say, for the extension of first-order logic allowing

More information

Unary Automatic Graphs: An Algorithmic Perspective 1

Unary Automatic Graphs: An Algorithmic Perspective 1 Unary Automatic Graphs: An Algorithmic Perspective 1 This paper studies infinite graphs produced from a natural unfolding operation applied to finite graphs. Graphs produced via such operations are of

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

Decidability of WS1S and S1S (An Exposition) Exposition by William Gasarch-U of MD

Decidability of WS1S and S1S (An Exposition) Exposition by William Gasarch-U of MD 1 Introduction Decidability of WS1S and S1S (An Exposition) Exposition by William Gasarch-U of MD We are going to prove that a (small) fragment of mathematics is decidable. 1. A Formula allows variables

More information

Pumping for Ordinal-Automatic Structures *

Pumping for Ordinal-Automatic Structures * Computability 1 (2012) 1 40 DOI IOS Press 1 Pumping for Ordinal-Automatic Structures * Martin Huschenbett Institut für Informatik, Ludwig-Maximilians-Universität München, Germany martin.huschenbett@ifi.lmu.de

More information

Article begins on next page

Article begins on next page Complexity of Regular Functions Rutgers University has made this article freely available. Please share how this access benefits you. Your story matters. [https://rucore.libraries.rutgers.edu/rutgers-lib/47263/story/]

More information

Introduction to Tree Logics

Introduction to Tree Logics 1 / 26 Introduction to Tree Logics Pierre Genevès CNRS (slides mostly based on the ones by W. Martens and T. Schwentick) University of Grenoble, 2014 2015 2 / 26 Why Logic? Tree automaton algorithm Logical

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 Unified Approach to Boundedness Properties in MSO

A Unified Approach to Boundedness Properties in MSO A Unified Approach to Boundedness Properties in MSO Łukasz Kaiser 1, Martin Lang 2, Simon Leßenich 3, and Christof Löding 2 1 LIAFA, CNRS & Université Paris Diderot Paris 7, France 2 Lehrstuhl für Informatik

More information

Outline. Complexity Theory. Example. Sketch of a log-space TM for palindromes. Log-space computations. Example VU , SS 2018

Outline. Complexity Theory. Example. Sketch of a log-space TM for palindromes. Log-space computations. Example VU , SS 2018 Complexity Theory Complexity Theory Outline Complexity Theory VU 181.142, SS 2018 3. Logarithmic Space Reinhard Pichler Institute of Logic and Computation DBAI Group TU Wien 3. Logarithmic Space 3.1 Computational

More information

Acceptance of!-languages by Communicating Deterministic Turing Machines

Acceptance of!-languages by Communicating Deterministic Turing Machines Acceptance of!-languages by Communicating Deterministic Turing Machines Rudolf Freund Institut für Computersprachen, Technische Universität Wien, Karlsplatz 13 A-1040 Wien, Austria Ludwig Staiger y Institut

More information

Deciding Safety and Liveness in TPTL

Deciding Safety and Liveness in TPTL Deciding Safety and Liveness in TPTL David Basin a, Carlos Cotrini Jiménez a,, Felix Klaedtke b,1, Eugen Zălinescu a a Institute of Information Security, ETH Zurich, Switzerland b NEC Europe Ltd., Heidelberg,

More information

Unranked Tree Automata with Sibling Equalities and Disequalities

Unranked Tree Automata with Sibling Equalities and Disequalities Unranked Tree Automata with Sibling Equalities and Disequalities Wong Karianto Christof Löding Lehrstuhl für Informatik 7, RWTH Aachen, Germany 34th International Colloquium, ICALP 2007 Xu Gao (NFS) Unranked

More information

Strategy Logic. 1 Introduction. Krishnendu Chatterjee 1, Thomas A. Henzinger 1,2, and Nir Piterman 2

Strategy Logic. 1 Introduction. Krishnendu Chatterjee 1, Thomas A. Henzinger 1,2, and Nir Piterman 2 Strategy Logic Krishnendu Chatterjee 1, Thomas A. Henzinger 1,2, and Nir Piterman 2 1 University of California, Berkeley, USA 2 EPFL, Switzerland c krish@eecs.berkeley.edu, {tah,nir.piterman}@epfl.ch Abstract.

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

A Weak Bisimulation for Weighted Automata

A Weak Bisimulation for Weighted Automata Weak Bisimulation for Weighted utomata Peter Kemper College of William and Mary Weighted utomata and Semirings here focus on commutative & idempotent semirings Weak Bisimulation Composition operators Congruence

More information

Halting and Equivalence of Program Schemes in Models of Arbitrary Theories

Halting and Equivalence of Program Schemes in Models of Arbitrary Theories Halting and Equivalence of Program Schemes in Models of Arbitrary Theories Dexter Kozen Cornell University, Ithaca, New York 14853-7501, USA, kozen@cs.cornell.edu, http://www.cs.cornell.edu/~kozen In Honor

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

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

Finite Universes. L is a fixed-length language if it has length n for some

Finite Universes. L is a fixed-length language if it has length n for some Finite Universes Finite Universes When the universe is finite (e.g., the interval 0, 2 1 ), all objects can be encoded by words of the same length. A language L has length n 0 if L =, or every word of

More information