C. AISWARYA, PAUL GASTIN, PRAKASH SAIVASAN ORDER-2 NESTED WORDS

Size: px
Start display at page:

Download "C. AISWARYA, PAUL GASTIN, PRAKASH SAIVASAN ORDER-2 NESTED WORDS"

Transcription

1 Chennai Mathematical Institute cm i C. AISWARYA, PAUL GASTIN, PRAKASH SAIVASAN ORDER-2 NESTED WORDS

2 PROLOGUE HIGHER ORDER PUSHDOWN SYSTEMS Pushdown (stack) pop, push(a),?top(a) ababa babb

3 PROLOGUE HIGHER ORDER PUSHDOWN SYSTEMS Pushdown (stack) pop, push(a),?top(a) ababa bab

4 PROLOGUE HIGHER ORDER PUSHDOWN SYSTEMS Pushdown (stack) pop, push(a),?top(a) ababa baba b bb a ba

5 PROLOGUE HIGHER ORDER PUSHDOWN SYSTEMS order-2 stack (stack of stacks) pop, push(a),?top(a) Push2, Pop2 a ba b bb ababa baba

6 PROLOGUE HIGHER ORDER PUSHDOWN SYSTEMS order-2 stack (stack of stacks) pop, push(a),?top(a) Push2, Pop2 a ba b bb ababa baba ababa baba

7 PROLOGUE HIGHER ORDER PUSHDOWN SYSTEMS order-2 stack (stack of stacks) pop, push(a),?top(a) Push2, Pop2 a ba b bb ababa baba

8 PROLOGUE HIGHER ORDER PUSHDOWN SYSTEMS order-2 stack (stack of stacks) pop, push(b),?top(a) Push2, Pop2 Collapse push(a)

9 PROLOGUE HIGHER ORDER PUSHDOWN SYSTEMS order-2 stack (stack of stacks) pop, push(b),?top(a) Push2, Pop2 Collapse a push(a)

10 PROLOGUE HIGHER ORDER PUSHDOWN SYSTEMS order-2 stack (stack of stacks) pop, push(b),?top(a) Push2, Pop2 Collapse a push(a)push2

11 PROLOGUE HIGHER ORDER PUSHDOWN SYSTEMS order-2 stack (stack of stacks) pop, push(b),?top(a) Push2, Pop2 Collapse a a push(a)push2

12 PROLOGUE HIGHER ORDER PUSHDOWN SYSTEMS order-2 stack (stack of stacks) pop, push(b),?top(a) Push2, Pop2 Collapse a a push(a)push2push(b)

13 PROLOGUE HIGHER ORDER PUSHDOWN SYSTEMS order-2 stack (stack of stacks) pop, push(b),?top(a) Push2, Pop2 Collapse a ab push(a)push2push(b)

14 PROLOGUE HIGHER ORDER PUSHDOWN SYSTEMS order-2 stack (stack of stacks) pop, push(b),?top(a) Push2, Pop2 Collapse a ab push(a)push2push(b)push2

15 PROLOGUE HIGHER ORDER PUSHDOWN SYSTEMS order-2 stack (stack of stacks) pop, push(b),?top(a) Push2, Pop2 Collapse a ab ab push(a)push2push(b)push2

16 PROLOGUE HIGHER ORDER PUSHDOWN SYSTEMS order-2 stack (stack of stacks) pop, push(b),?top(a) Push2, Pop2 Collapse a ab ab push(a)push2push(b)push2push(a)

17 PROLOGUE HIGHER ORDER PUSHDOWN SYSTEMS order-2 stack (stack of stacks) pop, push(b),?top(a) Push2, Pop2 Collapse a ab aba push(a)push2push(b)push2push(a)

18 PROLOGUE HIGHER ORDER PUSHDOWN SYSTEMS order-2 stack (stack of stacks) pop, push(b),?top(a) Push2, Pop2 Collapse a ab aba push(a)push2push(b)push2push(a)push2

19 PROLOGUE HIGHER ORDER PUSHDOWN SYSTEMS order-2 stack (stack of stacks) pop, push(b),?top(a) Push2, Pop2 Collapse a ab aba aba push(a)push2push(b)push2push(a)push2

20 PROLOGUE HIGHER ORDER PUSHDOWN SYSTEMS order-2 stack (stack of stacks) pop, push(b),?top(a) Push2, Pop2 Collapse a ab aba aba push(a)push2push(b)push2push(a)push2collapse

21 PROLOGUE HIGHER ORDER PUSHDOWN SYSTEMS order-2 stack (stack of stacks) pop, push(b),?top(a) Push2, Pop2 Collapse a ab push(a)push2push(b)push2push(a)push2collapse

22 PROLOGUE HIGHER ORDER PUSHDOWN SYSTEMS order-2 stack (stack of stacks) pop, push(b),?top(a) Push2, Pop2 Collapse a ab aba aba push(a)push2push(b)push2push(a)push2

23 PROLOGUE HIGHER ORDER PUSHDOWN SYSTEMS order-2 stack (stack of stacks) pop, push(b),?top(a) Push2, Pop2 Collapse a ab aba aba push(a)push2push(b)push2push(a)push2pop2

24 PROLOGUE HIGHER ORDER PUSHDOWN SYSTEMS order-2 stack (stack of stacks) pop, push(b),?top(a) Push2, Pop2 Collapse a ab aba push(a)push2push(b)push2push(a)push2pop2

25 PROLOGUE HIGHER ORDER PUSHDOWN SYSTEMS order-2 stack (stack of stacks) pop, push(b),?top(a) Push2, Pop2 Collapse a ab aba aba push(a)push2push(b)push2push(a)push2

26 PROLOGUE HIGHER ORDER PUSHDOWN SYSTEMS order-2 stack (stack of stacks) pop, push(b),?top(a) Push2, Pop2 Collapse a ab aba aba push(a)push2push(b)push2push(a)push2pop

27 PROLOGUE HIGHER ORDER PUSHDOWN SYSTEMS order-2 stack (stack of stacks) pop, push(b),?top(a) Push2, Pop2 Collapse a ab aba ab push(a)push2push(b)push2push(a)push2pop

28 PROLOGUE HIGHER ORDER PUSHDOWN SYSTEMS order-2 stack (stack of stacks) pop, push(b),?top(a) Push2, Pop2 Collapse a ab aba ab push(a)push2push(b)push2push(a)push2popcollapse

29 PROLOGUE HIGHER ORDER PUSHDOWN SYSTEMS order-2 stack (stack of stacks) pop, push(b),?top(a) Push2, Pop2 Collapse a push(a)push2push(b)push2push(a)push2popcollapse

30 OUTLINE HIGHER ORDER PUSHDOWN SYSTEMS (OF ORDER 2) prologue 2CPDS - a brief overview of results 2NW: a different way of understanding CPDS behaviours Nestify Spec languages: MSO, PDL, - UNDECIDABALITY under-approximations - tree interpretations - decidability

31 2-CPDS - BRIEF OVERVIEW OF RESULTS ORDER-2 COLLAPSIBLE PUSHDOWN SYSTEMS finite state machine equipped with an order-2 stack transitions perform order-2 stack operations cò có dó 1 aò s 1 2 bò s 1 0 Ò s 1 Ò 2 Ó K? Ó 1 2

32 2-CPDS - BRIEF OVERVIEW OF RESULTS ORDER-2 COLLAPSIBLE PUSHDOWN SYSTEMS 2-CPDS capture order-2 recursion schemes (Hague et al 2008) 2-CPDS strictly more powerful than 2-PDS for rec. schemes (Parys 2012) thought of as generating words, trees or graphs μ-calculus model checking of 2-CPDS-trees is decidable (Ong 2006) via parity games on configuration graphs of CPDS (Hague et al 2008) via Krivine machines (SalvatiWalukiewicz 2011) configuration graphs of 2-CPDS can encode semi grids (Hague et al 2008) μ-calculus over configuration graphs of 2-PDS decidable

33 OUTLINE HIGHER ORDER PUSHDOWN SYSTEMS (OF ORDER 2) prologue 2CPDS - a brief overview of results 2NW: a different way of understanding CPDS behaviours Nestify Spec languages: MSO, PDL, - UNDECIDABALITY under-approximations - tree interpretations - decidability

34 ORDER-2 NESTED WORDS NESTED WORDS push(a)

35 ORDER-2 NESTED WORDS NESTED WORDS a push(a)

36 ORDER-2 NESTED WORDS NESTED WORDS a push(a)push2

37 ORDER-2 NESTED WORDS NESTED WORDS a a push(a)push2

38 ORDER-2 NESTED WORDS NESTED WORDS a a push(a)push2push(b)

39 ORDER-2 NESTED WORDS NESTED WORDS a ab push(a)push2push(b)

40 ORDER-2 NESTED WORDS NESTED WORDS a ab push(a)push2push(b)push2

41 ORDER-2 NESTED WORDS NESTED WORDS a ab ab push(a)push2push(b)push2

42 ORDER-2 NESTED WORDS NESTED WORDS a ab ab push(a)push2push(b)push2push(a)

43 ORDER-2 NESTED WORDS NESTED WORDS a ab aba push(a)push2push(b)push2push(a)

44 ORDER-2 NESTED WORDS NESTED WORDS a ab aba push(a)push2push(b)push2push(a)push2

45 ORDER-2 NESTED WORDS NESTED WORDS a ab aba aba push(a)push2push(b)push2push(a)push2

46 ORDER-2 NESTED WORDS NESTED WORDS a ab aba aba push(a)push2push(b)push2push(a)push2pop2

47 ORDER-2 NESTED WORDS NESTED WORDS a ab aba push(a)push2push(b)push2push(a)push2pop2

48 ORDER-2 NESTED WORDS NESTED WORDS a ab aba aba push(a)push2push(b)push2push(a)push2

49 ORDER-2 NESTED WORDS NESTED WORDS a ab aba aba push(a)push2push(b)push2push(a)push2pop

50 ORDER-2 NESTED WORDS NESTED WORDS a ab aba ab push(a)push2push(b)push2push(a)push2pop

51 ORDER-2 NESTED WORDS NESTED WORDS a ab aba ab push(a)push2push(b)push2push(a)push2popcollapse

52 ORDER-2 NESTED WORDS NESTED WORDS a push(a)push2push(b)push2push(a)push2popcollapse

53 ORDER-2 NESTED WORDS EXAMPLES Ò 1 Ò 1 Ò 2 Ó 1 Ò 2 Ó 1 Ó 2 Ó 2 Ó 1 Ó 1

54 ORDER-2 NESTED WORDS EXAMPLES Ò 1 Ò 1 Ò 2 Ó 1 Ò 2 Ó 1 Ó 2 Ó 2 Ó 1 Ó Ò 1 Ò 1 Ò 2 Ó 1 Ó 1 Ó 2 Ó 1 Ò 2 Ó 1 Ò 1 Ò 2 Ó 1 Ó 2 Ó 1 Ó 2 Ó 1 Ò 1 Ò 2 Ó 1 Ó 2 Ó 1

55 ORDER-2 NESTED WORDS LANGUAGE OF ORDER-2 CPDS L( ) = 0 Ò s 1 Ò 2 Ó K? Ó 1 2 { } Ò 1 Ò 1 Ò 2 Ó 1 Ò 2 Ó 1 Ó 2 Ó 2 Ó Ò 1 Ò 1 Ò 2 Ó 1 Ó 1 Ó 2 Ó 1 Ò 2 Ó 1 Ò 1 Ò 2 Ó 1 Ó 2 Ó 1 Ó 2 Ó 1 Ò 1 Ò 2 Ó 1 Ó 2 Ó 1 Ó 1

56 MOTIVATION FOR STUDYING NESTED WORDS WHAT ARE ORDER-2 NESTED WORDS? Not words Not trees Not configuration graphs Linear time behaviours extra information (matching) Words with binary relation on its positions = special graphs

57 MOTIVATION FOR STUDYING NESTED WORDS WHY ARE ORDER-2 NESTED WORDS INTERESTING? They make visible the data flow / communication Making visible the data flow is not new. Widely used in message passing distributed systems (Message Sequence Charts -MSC) also in pushdown and multi-pushdown systems (Nested words, multiply-nested words)

58 MOTIVATION FOR STUDYING NESTED WORDS MESSAGE PASSING DISTRIBUTED SYSTEMS Message Sequence Charts ITU Standard

59 MOTIVATION FOR STUDYING NESTED WORDS RECURSIVE PROGRAMS / XML q a ba c aa b a cb a a b cb a ab b aa b Nested Words Alur, Madhusudan, 2009

60 MOTIVATION FOR STUDYING NESTED WORDS MULTI-THREADED RECURSIVE PROGRAMS q Multiply Nested Words

61 MOTIVATION FOR STUDYING NESTED WORDS RECURSIVE PROCESSES COMMUNICATING VIA MESSAGE PASSING Concurrent Behaviours with Matching d 1 p a b a b d 1 d 1 a b a a a b b a d 2 d 3 d 2 d 2 q a b b a a b a b a b b a d 4 d 4 d 4 d 4

62 MOTIVATION FOR STUDYING NESTED WORDS WHY ARE ORDER-2 NESTED WORDS INTERESTING? They make visible the data flow / communication Making visible the data flow is not new. Widely used in message passing distributed systems (Message Sequence Charts -MSC) also in pushdown and multi-pushdown systems (Nested words, multiply-nested words)

63 MOTIVATION FOR STUDYING NESTED WORDS WHY NESTED WORDS yet another way of understanding the model for better specification more powerful specification formalism can make use of the nesting edges when expressing properties verification beyond reachability

64 SPECIFICATION BEYOND REACHABILITY RECURSIVE PROGRAMS / XML q a ba c aa b a cb a a b cb a ab b aa b Letter before outermost call is the same as the letter after its return

65 SPECIFICATION BEYOND REACHABILITY RECURSIVE PROGRAMS / XML Letter before outermost call is the same as the letter after its return q a ba c aa b a cb a a b cb a ab b aa b x, y ( a(x 1) x y z,z (z z z<x<z ) ) a(y +1)

66 SPECIFICATION BEYOND REACHABILITY RECURSIVE PROGRAMS / XML Relate outer most call and returns q a ba c aa b a cb a a b cb a ab b aa b Not expressible in MSO over Linear Traces even with visible alphabet

67 MOTIVATION FOR STUDYING NESTED WORDS WHAT CAN ORDER-2 NESTED WORDS MODEL? Data-flow-visible linear behaviors of order-2 CPDS Can model recursive program with stack data-structure, where stacks can be passed to subroutines (pass-by-value) Ò 1 Ò 1 Ò 2 Ò 1 Ò 2 Ó 1 Ó 1 Ó 2 Ó 1 Ò 2 Ó 1 Ó 2 Ó 2 Ó 1 Ò 2 Ó 1 Ó 2

68 MOTIVATION FOR STUDYING NESTED WORDS WHAT CAN ORDER-2 NESTED WORDS MODEL? Data flow visible linear behaviors of order-2 CPS Ò 1 Ò 2 Ò 1 Ò 2 Ó 1 Ó 2 Ó 2 Ò 1 Ò 2 Ò 2 Ó 1 Ó 2 Ó 2 Ó 1 Ó 1 Can model recursive program with stack data-structure, where stacks can be passed to subroutines (pass-by-value) Can capture branching behaviour of pushdown systems (similar to nested trees (AlurChaudhuriMadhusudhan 06)

69 OUTLINE HIGHER ORDER PUSHDOWN SYSTEMS (OF ORDER 2) prologue 2CPDS - a brief overview of results 2NW: a different way of understanding CPDS behaviours Nestify Spec languages: MSO, PDL, - UNDECIDABALITY under-approximations - tree interpretations - decidability

70 NESTIFY VALID ORDER-2 NESTED WORDS Words + two binary relations. When is it a valid 2-NW?

71 NESTIFY VALID ORDER-2 NESTED WORDS Words + two binary relations. When is it a valid 2-NW? Given a sequence of order-2 stack operations is it valid? Ops = { top=a?, top=b?, push(a), push(b), pop(a), pop(b), DupStack, PopStack, Collapse } Naïvely simulate an order-2 stack May take exponential space/time

72 NESTIFY VALID ORDER-2 NESTED WORDS Words + two binary relations. When is it a valid 2-NW? Given a sequence of order-2 stack operations is it valid? Can we construct the nesting relations from such a sequence? Nestify does it in linear time/space

73 NESTIFY push1 (x) = push1(x-1) VALID ORDER-2 NESTED WORDS based on the inductive characterisation. push1(i), Push2(i) p q $ j if op j PtÒ s 1 s P Su & push 1 1pjq if op j Ptnop, Ò 2 uyts? s P Su push 1 pjq push 1 1ppush 1 1pjqq if op j Ó 1 push 1 1pPush 1 2pjqq if op j Ó 2 % push 1 1pPush 1 2ppush 1 1pjqqq if op j ó $

74 NESTIFY Push (x) = Push(x-1) VALID ORDER-2 $ NESTED WORDS & based on the inductive characterisation. push(i), Push2(i) % p p p qqq ó Push 2 pjq $ j if op j Ò 2 & Push 1 2pjq if op j Ptnop, Ó 1 uytò s 1, s? s P Su Push 1 2pPush 1 2pjqq if op j Ó 2 % Push 1 2pPush 1 2ppush 1 1pjqqq if op j ó The proof is by induction on. When 0 we proceed with a case split

75 NESTIFY VALID ORDER-2 NESTED WORDS Words + two binary relations. When is it a valid 2-NW? Given a sequence of order-2 stack operations is it valid? Can we construct the nesting relations from such a sequence? Nestify does it in linear time/space keeps an array with two pointers

76 OUTLINE HIGHER ORDER PUSHDOWN SYSTEMS (OF ORDER 2) prologue 2CPDS - a brief overview of results 2NW: a different way of understanding CPDS behaviours Nestify Spec languages: MSO, PDL, - UNDECIDABALITY under-approximations - tree interpretations - decidability

77 SPECIFICATION FORMALISMS MONADIC SECOND-ORDER LOGIC NOT EXPRESSIBLE IN MSO WIHOUT NESTING : apxq x y x ñ 1 y x ñ 2 y _ Dx DX x P X P, are first-order variables and is a second-order variable. The sema EXAMPLE: CONSECUTIVE POPS LINKED TO THE SAME PUSH ãñ px, yq Dz `z ñ 1 x ^ z ñ 1 y ^ Dz 1 pz ñ 1 z 1 ^ x z 1 yq. EXAMPLES: set of all order-2 nested words language of an order-2 CPDS

78 SPECIFICATION FORMALISMS MONADIC SECOND-ORDER LOGIC : apxq x y x ñ 1 y x ñ 2 y _ Dx DX x P X P, are first-order variables and is a second-order variable. The sema SATISFIABILITY PROBLEM input: MSO sentence φ question: is there a order-2 NW that satifies φ? MODEL CHECKING PROBLEM input: MSO sentence φ, order-2 CPDS H question: do all order-2 NW from L(H) satisfy φ?

79 SPECIFICATION FORMALISMS NOTICE : ORDER-2 STACK IS BOUNDED, NO COLLAPSE MONADIC SECOND-ORDER LOGIC - UNDECIDABILITY 1 Ò s Ò 2 Ó 1 K? 5 6 Ó 2 Ò s Ò 2 Ó 1 Ó 1 K? Ó 2 Ò s Ò 2 Ó 1 Ó 1 Ó 1 K? Ó 2 Ò s Ò 2 Ó 1 Ó 1 Ó 1 Ó 1 K? 26 Ó 2 3 Ò s 1 Ò 2 1 Ó Ó 2 3 K?

80 SPECIFICATION FORMALISMS PROPOSITIONAL DYNAMIC LOGIC WITH LOOP AND CONVERSE Ï : a Ï _ Ï Ï xfiyï Looppfiq fi : tïu? Ñ ñ 1 apple 1 ñ 2 apple 2 fi fi fi ` fi fi 1 1 q p here P. The semantics is given on -labelled graphs p G, i ù xfiyï if G, i, j ù fi and G, j ù Ï for some j G, i ù Looppfiq if G, i, i ù fi G, i, j ù tïu? if i j and G, i ù Ï G, i, j ù Ñ if i Ñ j in the graph G G, i, j ù ñ 1 if i ñ 1 j in the graph G G, i, j ù apple 2 if j ñ 2 i in the graph G. An LCPDL sentence is a boolean combination of atomic se

81 SPECIFICATION FORMALISMS PROPOSITIONAL DYNAMIC LOGIC WITH LOOP AND CONVERSE Why LCPDL? MSO powerful, but high complexity LTL less expressive, but low complexity LCPCL offers the best of both worlds (expressiveness, complexity)

82 SPECIFICATION FORMALISMS PROPOSITIONAL DYNAMIC LOGIC WITH LOOP AND CONVERSE EXAMPLE: PATH THAT GOES TO THE PUSH WHICH PUSHED THE CURRENT TOPMOST ELEMENT ptò 2 _? _ nopu? ` apple 1 ` apple 2 t ptò _ Ó _? _ nopu? ` apple 2 t Lo q tò 1 u? tò u? Ò 1 Ò 1 Ò 2 Ò 1 Ò 2 Ó 1 Ó 1 Ó 2 Ó 1 Ò 2 Ó 1 Ó 2 Ó 2 Ó 1 Ò 2 Ó 1 Ó 2

83 SPECIFICATION FORMALISMS PROPOSITIONAL DYNAMIC LOGIC WITH LOOP AND CONVERSE EXAMPLE: PATH THAT GOES TO THE PUSH WHICH PUSHED THE CURRENT TOPMOST ELEMENT ptò 2 _? _ nopu? ` apple 1 ` apple 2 t t Loopp ` ñ 2 apple 2 qu? ptò _ Ó _? _ nopu? ` apple 2 t Loopp ` ñ 2 apple 2 qu? q q tò 1 u? tò u? 1 2 cò 2 aò s cò 2 aò s cò 2 aò s cò 2 bò s dó 1 dó 1 có cò 2 aò s cò 2 bò s dó 1 dó 1 có

84 SPECIFICATION FORMALISMS PROPOSITIONAL DYNAMIC LOGIC WITH LOOP AND CONVERSE LCPDL SENTENCE Boolean combinations of the form Eφ EXAMPLES: set of all order-2 nested words language of an order-2 CPDS

85 SPECIFICATION FORMALISMS PROPOSITIONAL DYNAMIC LOGIC WITH LOOP AND CONVERSE LCPDL SENTENCE Boolean combinations of the form Eφ SATISFIABILITY PROBLEM input: LCPDL sentence φ question: is there a order-2 NW that satifies φ? MODEL CHECKING PROBLEM input: LCPDL sentence φ, order-2 CPDS H question: do all order-2 NW from L(H) satisfy φ?

86 SPECIFICATION FORMALISMS LCPDL UNDECIDABILITY CANNOT GO TO NEXT-POP IN LCPDL Ò s Ò 2 Ó 1 K? 5 6 Ó 2 Ò s Ò 2 Ó 1 Ó 1 K? Ó 2 Ò s Ò 2 Ó 1 Ó 1 Ó 1 K? Ó 2 Ò s Ò 2 Ó 1 Ó 1 Ó 1 Ó 1 K? 26 Ó 2 xãñyï :: Looppptispop 1 u? Ñq` Ñ tispop 2 u? Ñ Ñ pñ tispop 1 u?q` tïu? apple 1 ñ 1 q With this, we can write an LCPDL formula to encode the computation of a Turing machine

87 OUTLINE HIGHER ORDER PUSHDOWN SYSTEMS (OF ORDER 2) prologue 2CPDS - a brief overview of results 2NW: a different way of understanding CPDS behaviours Nestify Spec languages: MSO, PDL, - UNDECIDABALITY Eliminating collapse under-approximations - tree interpretations - decidability

88 ELIMINATING COLLAPSE ELIMINATING COLLAPSE Ò 1 Ò 2 Ò 1 Ò 1 Ò 2 Ò 1 Ò 2 Ò 1 Ò 2 Ó 1 aó Ò 1 Ò 2 Ó 1 Ó 1 bó Ò 1 Ò 2 Ò 1 Ò 1 Ò 2 Ò 1 Ò 2 Ò 1 Ò 2 Ó 1 a #Ó 2 #Ó 2 #Ó 2 Ò 1 Ò 2 Ó 1 Ó 1 b #Ó 2 #Ó 2 Figure 2 A 2-NW (top) and its encoding in 2-NW without collapse (below). We show the labels a a _ a Ï 1 _ Ï 2 Ï 1 _ Ï 2 Ï Ï xfiyï xfiyï Looppfiq Looppfiq tïu? tïu? fi 1 fi 2 fi 1 fi 2 fi 1 ` fi 2 fi 1 ` fi 2 fi fi ñ 1 ñ 1 apple 1 apple 1 Ñ Ñ pt#u? Ñq t #u? pt#u? q t #u? apple 2 pñ t#u?q apple 2 ñ 2 ñ 2 pt#u? q t #u? MSO to MSO without collapse. Translation of MSO is similar in spirit to that of LCPDL

89 OUTLINE HIGHER ORDER PUSHDOWN SYSTEMS (OF ORDER 2) prologue 2CPDS - a brief overview of results 2NW: a different way of understanding CPDS behaviours Nestify Spec languages: MSO, PDL, - UNDECIDABALITY under-approximations - tree interpretations - decidability

90 TREE INTERPRETATIONS TREE-INTERPRETATIONS since the behaviors are graphs, we can use graph-based underapproximations. for example, tree-width. decidability follows if the graph relations can be interpreted in a tree, and if the class is MSO definable. (Courcelle, also ParlatoMadhu, AGastin) in our case they are even LCPDL definable (non-trivial, uses the characterisation) can work on the tree domain and show that MSO SAT/MC is decidable PDL SAT/MC is ExpTime Complete

91 TREE INTERPRETATION AN EXAMPLE : BOUNDED POP A pushed element can be popped at most k times does not bound the size of the stacks in either level definable in LCPDL has bounded split-width (implies bounded tree-width)

92 CONCLUSION HIGHER ORDER PUSHDOWN SYSTEMS (OF ORDER 2) prologue 2CPDS - a brief overview of results 2NW: a different way of understanding CPDS behaviours Nestify Spec languages: MSO, PDL, - UNDECIDABALITY Eliminating collapse under-approximations - tree interpretations - decidability

93 PERSPECTIVES CONCLUSIONS AND PERSPECTIVES Yet another way of understanding HOPDS The power of data-flow edges. How to harness that? under-approximations applications lifting to higher orders

94 QUESTIONS? THANK YOU cmi.ac.in

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

Symbolic Backwards-Reachability Analysis for Higher-Order Pushdown Systems

Symbolic Backwards-Reachability Analysis for Higher-Order Pushdown Systems Symbolic Backwards-Reachability Analysis for Higher-Order Pushdown Systems M. Hague C.-H. L. Ong Oxford University Computing Laboratory Wolfson Building, Parks Road, Oxford, UK, OX1 3QD Abstract. Higher-order

More information

Theoretical Foundations of the UML

Theoretical Foundations of the UML Theoretical Foundations of the UML Lecture 17+18: A Logic for MSCs Joost-Pieter Katoen Lehrstuhl für Informatik 2 Software Modeling and Verification Group moves.rwth-aachen.de/teaching/ws-1718/fuml/ 5.

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

Foundations of Informatics: a Bridging Course

Foundations of Informatics: a Bridging Course Foundations of Informatics: a Bridging Course Week 3: Formal Languages and Semantics Thomas Noll Lehrstuhl für Informatik 2 RWTH Aachen University noll@cs.rwth-aachen.de http://www.b-it-center.de/wob/en/view/class211_id948.html

More information

Boundedness Games. Séminaire de l équipe MoVe, LIF, Marseille, May 2nd, Nathanaël Fijalkow. Institute of Informatics, Warsaw University Poland

Boundedness Games. Séminaire de l équipe MoVe, LIF, Marseille, May 2nd, Nathanaël Fijalkow. Institute of Informatics, Warsaw University Poland Boundedness Games Séminaire de l équipe MoVe, LIF, Marseille, May 2nd, 2013 Nathanaël Fijalkow Institute of Informatics, Warsaw University Poland LIAFA, Université Paris 7 Denis Diderot France (based on

More information

Intelligent Agents. Formal Characteristics of Planning. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University

Intelligent Agents. Formal Characteristics of Planning. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University Intelligent Agents Formal Characteristics of Planning Ute Schmid Cognitive Systems, Applied Computer Science, Bamberg University Extensions to the slides for chapter 3 of Dana Nau with contributions by

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

Verification of Recursive Programs. Andreas Podelski February 8, 2012

Verification of Recursive Programs. Andreas Podelski February 8, 2012 Verification of Recursive Programs Andreas Podelski February 8, 2012 1 m(x) = x 10 if x > 100 m(m(x + 11)) if x 100 2 procedure m(x) returns (res) `0: if x>100 `1: res:=x-10 else `2: x m := x+11 `3: res

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 Pumping Lemma. for all n 0, u 1 v n u 2 L (i.e. u 1 u 2 L, u 1 vu 2 L [but we knew that anyway], u 1 vvu 2 L, u 1 vvvu 2 L, etc.

The Pumping Lemma. for all n 0, u 1 v n u 2 L (i.e. u 1 u 2 L, u 1 vu 2 L [but we knew that anyway], u 1 vvu 2 L, u 1 vvvu 2 L, etc. The Pumping Lemma For every regular language L, there is a number l 1 satisfying the pumping lemma property: All w L with w l can be expressed as a concatenation of three strings, w = u 1 vu 2, where u

More information

Logics with Counting. Ian Pratt-Hartmann School of Computer Science University of Manchester Manchester M13 9PL, UK

Logics with Counting. Ian Pratt-Hartmann School of Computer Science University of Manchester Manchester M13 9PL, UK Logics with Counting Ian Pratt-Hartmann School of Computer Science University of Manchester Manchester M13 9PL, UK 2 Chapter 1 Introduction It is well-known that first-order logic is able to express facts

More information

Boundedness Games. Séminaire du LIGM, April 16th, Nathanaël Fijalkow. Institute of Informatics, Warsaw University Poland

Boundedness Games. Séminaire du LIGM, April 16th, Nathanaël Fijalkow. Institute of Informatics, Warsaw University Poland Boundedness Games Séminaire du LIGM, April 16th, 2013 Nathanaël Fijalkow Institute of Informatics, Warsaw University Poland LIAFA, Université Paris 7 Denis Diderot France (based on joint works with Krishnendu

More information

An Alternative Construction in Symbolic Reachability Analysis of Second Order Pushdown Systems

An Alternative Construction in Symbolic Reachability Analysis of Second Order Pushdown Systems An Alternative Construction in Symbolic Reachability Analysis of Second Order Pushdown Systems Anil Seth CSE Department, I.I.T. Kanpur, Kanpur 208016, INDIA. seth@cse.iitk.ac.in Abstract. Recently, it

More information

Database Theory VU , SS Complexity of Query Evaluation. Reinhard Pichler

Database Theory VU , SS Complexity of Query Evaluation. Reinhard Pichler Database Theory Database Theory VU 181.140, SS 2018 5. Complexity of Query Evaluation Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität Wien 17 April, 2018 Pichler

More information

Dense-Timed Pushdown Automata

Dense-Timed Pushdown Automata Dense-Timed Pushdown Automata Parosh Aziz Abdulla Uppsala University Sweden Mohamed Faouzi Atig Uppsala University Sweden Jari Stenman Uppsala University Sweden Abstract We propose a model that captures

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 Theory (2A) Young Won Lim 5/31/18

Automata Theory (2A) Young Won Lim 5/31/18 Automata Theory (2A) Copyright (c) 2018 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later

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

Zone-Based Reachability Analysis of Dense-Timed Pushdown Automata

Zone-Based Reachability Analysis of Dense-Timed Pushdown Automata IT 12 034 Examensarbete 15 hp Juli 2012 Zone-Based Reachability Analysis of Dense-Timed Pushdown Automata Kristiina Ausmees Institutionen för informationsteknologi Department of Information Technology

More information

Automata, Logic and Games: Theory and Application

Automata, Logic and Games: Theory and Application Automata, Logic and Games: Theory and Application Higher-Order Model Checking 1 / 2 Luke Ong University of Oxford http://www.cs.ox.ac.uk/people/luke.ong/personal/ TACL Summer School University of Salerno,

More information

The purpose here is to classify computational problems according to their complexity. For that purpose we need first to agree on a computational

The purpose here is to classify computational problems according to their complexity. For that purpose we need first to agree on a computational 1 The purpose here is to classify computational problems according to their complexity. For that purpose we need first to agree on a computational model. We'll remind you what a Turing machine is --- you

More information

Abstractions and Decision Procedures for Effective Software Model Checking

Abstractions and Decision Procedures for Effective Software Model Checking Abstractions and Decision Procedures for Effective Software Model Checking Prof. Natasha Sharygina The University of Lugano, Carnegie Mellon University Microsoft Summer School, Moscow, July 2011 Lecture

More information

Pushdown automata. Twan van Laarhoven. Institute for Computing and Information Sciences Intelligent Systems Radboud University Nijmegen

Pushdown automata. Twan van Laarhoven. Institute for Computing and Information Sciences Intelligent Systems Radboud University Nijmegen Pushdown automata Twan van Laarhoven Institute for Computing and Information Sciences Intelligent Systems Version: fall 2014 T. van Laarhoven Version: fall 2014 Formal Languages, Grammars and Automata

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

Introduction to Temporal Logic. The purpose of temporal logics is to specify properties of dynamic systems. These can be either

Introduction to Temporal Logic. The purpose of temporal logics is to specify properties of dynamic systems. These can be either Introduction to Temporal Logic The purpose of temporal logics is to specify properties of dynamic systems. These can be either Desired properites. Often liveness properties like In every infinite run action

More information

Reachability Analysis of Pushdown Automata with an Upper Stack

Reachability Analysis of Pushdown Automata with an Upper Stack Reachability Analysis of Pushdown Automata with an Upper Stack Adrien Pommellet 1 Marcio Diaz 1 Tayssir Touili 2 1 Université Paris-Diderot and LIPN, France 2 LIPN, CNRS, and Université Paris 13, France

More information

Undecibability. Hilbert's 10th Problem: Give an algorithm that given a polynomial decides if the polynomial has integer roots or not.

Undecibability. Hilbert's 10th Problem: Give an algorithm that given a polynomial decides if the polynomial has integer roots or not. Undecibability Hilbert's 10th Problem: Give an algorithm that given a polynomial decides if the polynomial has integer roots or not. The problem was posed in 1900. In 1970 it was proved that there can

More information

A Collapsible Pushdown Automata and Recursion Schemes

A Collapsible Pushdown Automata and Recursion Schemes A Collapsible Pushdown Automata and Recursion Schemes MATTHEW HAGUE, Royal Holloway, University of London ANDRZEJ S. MURAWSKI, DIMAP and Department of Computer Science, University of Warwick C.-H. LUKE

More information

6.841/18.405J: Advanced Complexity Wednesday, February 12, Lecture Lecture 3

6.841/18.405J: Advanced Complexity Wednesday, February 12, Lecture Lecture 3 6.841/18.405J: Advanced Complexity Wednesday, February 12, 2003 Lecture Lecture 3 Instructor: Madhu Sudan Scribe: Bobby Kleinberg 1 The language MinDNF At the end of the last lecture, we introduced the

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

Theory of Computation (Classroom Practice Booklet Solutions)

Theory of Computation (Classroom Practice Booklet Solutions) Theory of Computation (Classroom Practice Booklet Solutions) 1. Finite Automata & Regular Sets 01. Ans: (a) & (c) Sol: (a) The reversal of a regular set is regular as the reversal of a regular expression

More information

Recent results on Timed Systems

Recent results on Timed Systems Recent results on Timed Systems Time Petri Nets and Timed Automata Béatrice Bérard LAMSADE Université Paris-Dauphine & CNRS berard@lamsade.dauphine.fr Based on joint work with F. Cassez, S. Haddad, D.

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

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

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

Distributed games with causal memory are decidable for series-parallel systems

Distributed games with causal memory are decidable for series-parallel systems Distributed games with causal memory are decidable for series-parallel systems Paul Gastin, enjamin Lerman, Marc Zeitoun Firstname.Name@liafa.jussieu.fr LIF, Université Paris 7, UMR CNRS 7089 FSTTCS, dec.

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 Model Checking for Visibly Pushdown Automata

On Model Checking for Visibly Pushdown Automata Japan Institute of Advanced Industrial Science and Technology Research Center for Specification and Verification LATA 2012 On Model Checking for Visibly Pushdown Automata Nguyen Van Tang and Hitoshi Ohsaki

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

Complexity of Model Checking Recursion Schemes for Fragments of the Modal Mu-Calculus

Complexity of Model Checking Recursion Schemes for Fragments of the Modal Mu-Calculus Complexity of Model Checking Recursion Schemes for Fragments of the Modal Mu-Calculus Naoki Kobayashi 1 C.-H. Luke Ong 2 1 Tohoku University 2 University of Oxford Abstract. Ong has shown that the modal

More information

Learning Goals of CS245 Logic and Computation

Learning Goals of CS245 Logic and Computation Learning Goals of CS245 Logic and Computation Alice Gao April 27, 2018 Contents 1 Propositional Logic 2 2 Predicate Logic 4 3 Program Verification 6 4 Undecidability 7 1 1 Propositional Logic Introduction

More information

Multiple Context Free Grammars

Multiple Context Free Grammars Multiple Context Free Grammars Siddharth Krishna September 14, 2013 Abstract Multiple context-free grammars (MCFGs) are a generalization of context-free grammars that deals with tuples of strings. This

More information

Discrete abstractions of hybrid systems for verification

Discrete abstractions of hybrid systems for verification Discrete abstractions of hybrid systems for verification George J. Pappas Departments of ESE and CIS University of Pennsylvania pappasg@ee.upenn.edu http://www.seas.upenn.edu/~pappasg DISC Summer School

More information

AC68 FINITE AUTOMATA & FORMULA LANGUAGES DEC 2013

AC68 FINITE AUTOMATA & FORMULA LANGUAGES DEC 2013 Q.2 a. Prove by mathematical induction n 4 4n 2 is divisible by 3 for n 0. Basic step: For n = 0, n 3 n = 0 which is divisible by 3. Induction hypothesis: Let p(n) = n 3 n is divisible by 3. Induction

More information

1 Circuit Complexity. CS 6743 Lecture 15 1 Fall Definitions

1 Circuit Complexity. CS 6743 Lecture 15 1 Fall Definitions CS 6743 Lecture 15 1 Fall 2007 1 Circuit Complexity 1.1 Definitions A Boolean circuit C on n inputs x 1,..., x n is a directed acyclic graph (DAG) with n nodes of in-degree 0 (the inputs x 1,..., x n ),

More information

CS156: The Calculus of Computation

CS156: The Calculus of Computation CS156: The Calculus of Computation Zohar Manna Winter 2010 It is reasonable to hope that the relationship between computation and mathematical logic will be as fruitful in the next century as that between

More information

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska LECTURE 14 SMALL REVIEW FOR FINAL SOME Y/N QUESTIONS Q1 Given Σ =, there is L over Σ Yes: = {e} and L = {e} Σ Q2 There are uncountably

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

CS21 Decidability and Tractability

CS21 Decidability and Tractability CS21 Decidability and Tractability Lecture 8 January 24, 2018 Outline Turing Machines and variants multitape TMs nondeterministic TMs Church-Turing Thesis So far several models of computation finite automata

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

Languages, regular languages, finite automata

Languages, regular languages, finite automata Notes on Computer Theory Last updated: January, 2018 Languages, regular languages, finite automata Content largely taken from Richards [1] and Sipser [2] 1 Languages An alphabet is a finite set of characters,

More information

Sanjit A. Seshia EECS, UC Berkeley

Sanjit A. Seshia EECS, UC Berkeley EECS 219C: Computer-Aided Verification Explicit-State Model Checking: Additional Material Sanjit A. Seshia EECS, UC Berkeley Acknowledgments: G. Holzmann Checking if M satisfies : Steps 1. Compute Buchi

More information

Definition: Alternating time and space Game Semantics: State of machine determines who

Definition: Alternating time and space Game Semantics: State of machine determines who CMPSCI 601: Recall From Last Time Lecture Definition: Alternating time and space Game Semantics: State of machine determines who controls, White wants it to accept, Black wants it to reject. White wins

More information

Fundamentele Informatica II

Fundamentele Informatica II Fundamentele Informatica II Answer to selected exercises 5 John C Martin: Introduction to Languages and the Theory of Computation M.M. Bonsangue (and J. Kleijn) Fall 2011 5.1.a (q 0, ab, Z 0 ) (q 1, b,

More information

An Infinite Automaton Characterization of Double Exponential Time

An Infinite Automaton Characterization of Double Exponential Time An Infinite Automaton Characterization of Double Exponential Time Salvatore La Torre 1, P. Madhusudan 2, and Gennaro Parlato 1,2 1 Università di Salerno, Italy 2 University of Illinois, Urbana-Champaign,

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

Reasoning about Strategies: From module checking to strategy logic

Reasoning about Strategies: From module checking to strategy logic Reasoning about Strategies: From module checking to strategy logic based on joint works with Fabio Mogavero, Giuseppe Perelli, Luigi Sauro, and Moshe Y. Vardi Luxembourg September 23, 2013 Reasoning about

More information

Visibly Pushdown Automata for Streaming XML

Visibly Pushdown Automata for Streaming XML Visibly Pushdown Automata for Streaming XML Viraj Kumar P. Madhusudan Mahesh Viswanathan University of Illinois at Urbana-Champaign Urbana, IL, USA {kumar, madhu, vmahesh}@cs.uiuc.edu ABSTRACT We propose

More information

Theory of Computation Turing Machine and Pushdown Automata

Theory of Computation Turing Machine and Pushdown Automata Theory of Computation Turing Machine and Pushdown Automata 1. What is a Turing Machine? A Turing Machine is an accepting device which accepts the languages (recursively enumerable set) generated by type

More information

MTH401A Theory of Computation. Lecture 17

MTH401A Theory of Computation. Lecture 17 MTH401A Theory of Computation Lecture 17 Chomsky Normal Form for CFG s Chomsky Normal Form for CFG s For every context free language, L, the language L {ε} has a grammar in which every production looks

More information

Safety Properties for Querying XML Streams

Safety Properties for Querying XML Streams Safety Properties for Querying XML Streams Olivier Gauwin University of Mons joint work with: J. Niehren, S. Tison, M. Benedikt and G. Puppis Workshop on Timed and Infinite Systems Warwick March 30th,

More information

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018 Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018 Lecture 14 Ana Bove May 14th 2018 Recap: Context-free Grammars Simplification of grammars: Elimination of ǫ-productions; Elimination of

More information

Introduction to Theory of Computing

Introduction to Theory of Computing CSCI 2670, Fall 2012 Introduction to Theory of Computing Department of Computer Science University of Georgia Athens, GA 30602 Instructor: Liming Cai www.cs.uga.edu/ cai 0 Lecture Note 3 Context-Free Languages

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

CSCI3390-Lecture 14: The class NP

CSCI3390-Lecture 14: The class NP CSCI3390-Lecture 14: The class NP 1 Problems and Witnesses All of the decision problems described below have the form: Is there a solution to X? where X is the given problem instance. If the instance is

More information

Regular Expressions Kleene s Theorem Equation-based alternate construction. Regular Expressions. Deepak D Souza

Regular Expressions Kleene s Theorem Equation-based alternate construction. Regular Expressions. Deepak D Souza Regular Expressions Deepak D Souza Department of Computer Science and Automation Indian Institute of Science, Bangalore. 11 August 2011 Outline 1 Regular Expressions 2 Kleene s Theorem 3 Equation-based

More information

PREDICATE LOGIC: UNDECIDABILITY AND INCOMPLETENESS HUTH AND RYAN 2.5, SUPPLEMENTARY NOTES 2

PREDICATE LOGIC: UNDECIDABILITY AND INCOMPLETENESS HUTH AND RYAN 2.5, SUPPLEMENTARY NOTES 2 PREDICATE LOGIC: UNDECIDABILITY AND INCOMPLETENESS HUTH AND RYAN 2.5, SUPPLEMENTARY NOTES 2 Neil D. Jones DIKU 2005 14 September, 2005 Some slides today new, some based on logic 2004 (Nils Andersen) OUTLINE,

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

PDL WITH INTERSECTION AND CONVERSE: SATISFIABILITY AND INFINITE-STATE MODEL CHECKING

PDL WITH INTERSECTION AND CONVERSE: SATISFIABILITY AND INFINITE-STATE MODEL CHECKING The Journal of Symbolic Logic Volume 00, Number 0, XXX 0000 PDL WITH INTERSECTION AND CONVERSE: SATISFIABILITY AND INFINITE-STATE MODEL CHECKING STEFAN GÖLLER, MARKUS LOHREY, AND CARSTEN LUTZ Abstract.

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

Equivalent Variations of Turing Machines

Equivalent Variations of Turing Machines Equivalent Variations of Turing Machines Nondeterministic TM = deterministic TM npda = pushdown automata with n stacks 2PDA = npda = TM for all n 2 Turing machines with n tapes (n 2) and n tape heads has

More information

Some techniques and results in deciding bisimilarity

Some techniques and results in deciding bisimilarity Some techniques and results in deciding bisimilarity Petr Jančar Dept of Computer Science Technical University Ostrava (FEI VŠB-TU) Czech Republic www.cs.vsb.cz/jancar Talk at the Verification Seminar,

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

Halting and Equivalence of Schemes over Recursive Theories

Halting and Equivalence of Schemes over Recursive Theories Halting and Equivalence of Schemes over Recursive Theories Dexter Kozen Computer Science Department, Cornell University, Ithaca, New York 14853-7501, USA Abstract Let Σ be a fixed first-order signature.

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

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

Covering of ordinals

Covering of ordinals Covering of ordinals Laurent Braud IGM, Univ. Paris-Est Liafa, 8 January 2010 Laurent Braud (IGM, Univ. Paris-Est) Covering of ordinals Liafa, 8 January 2010 1 / 27 1 Covering graphs Ordinals MSO logic

More information

How to Pop a Deep PDA Matters

How to Pop a Deep PDA Matters How to Pop a Deep PDA Matters Peter Leupold Department of Mathematics, Faculty of Science Kyoto Sangyo University Kyoto 603-8555, Japan email:leupold@cc.kyoto-su.ac.jp Abstract Deep PDA are push-down automata

More information

BASIC MATHEMATICAL TECHNIQUES

BASIC MATHEMATICAL TECHNIQUES CHAPTER 1 ASIC MATHEMATICAL TECHNIQUES 1.1 Introduction To understand automata theory, one must have a strong foundation about discrete mathematics. Discrete mathematics is a branch of mathematics dealing

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

CSCI3390-Lecture 6: An Undecidable Problem

CSCI3390-Lecture 6: An Undecidable Problem CSCI3390-Lecture 6: An Undecidable Problem September 21, 2018 1 Summary The language L T M recognized by the universal Turing machine is not decidable. Thus there is no algorithm that determines, yes or

More information

6.8 The Post Correspondence Problem

6.8 The Post Correspondence Problem 6.8. THE POST CORRESPONDENCE PROBLEM 423 6.8 The Post Correspondence Problem The Post correspondence problem (due to Emil Post) is another undecidable problem that turns out to be a very helpful tool for

More information

Abstract model theory for extensions of modal logic

Abstract model theory for extensions of modal logic Abstract model theory for extensions of modal logic Balder ten Cate Stanford, May 13, 2008 Largely based on joint work with Johan van Benthem and Jouko Väänänen Balder ten Cate Abstract model theory for

More information

CS375: Logic and Theory of Computing

CS375: Logic and Theory of Computing CS375: Logic and Theory of Computing Fuhua (Frank) Cheng Department of Computer Science University of Kentucky 1 Table of Contents: Week 1: Preliminaries (set algebra, relations, functions) (read Chapters

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

Chapter 1. Formal Definition and View. Lecture Formal Pushdown Automata on the 28th April 2009

Chapter 1. Formal Definition and View. Lecture Formal Pushdown Automata on the 28th April 2009 Chapter 1 Formal and View Lecture on the 28th April 2009 Formal of PA Faculty of Information Technology Brno University of Technology 1.1 Aim of the Lecture 1 Define pushdown automaton in a formal way

More information

Semantics and syntax of higher inductive types

Semantics and syntax of higher inductive types Semantics and syntax of higher inductive types Michael Shulman 1 Peter LeFanu Lumsdaine 2 1 University of San Diego 2 Stockholm University http://www.sandiego.edu/~shulman/papers/stthits.pdf March 20,

More information

COSE212: Programming Languages. Lecture 1 Inductive Definitions (1)

COSE212: Programming Languages. Lecture 1 Inductive Definitions (1) COSE212: Programming Languages Lecture 1 Inductive Definitions (1) Hakjoo Oh 2017 Fall Hakjoo Oh COSE212 2017 Fall, Lecture 1 September 4, 2017 1 / 9 Inductive Definitions Inductive definition (induction)

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

ON MONADIC LOGIC OF RECURSIVE PROGRAMS WITH PARAMETERS

ON MONADIC LOGIC OF RECURSIVE PROGRAMS WITH PARAMETERS Bulletin of the Section of Logic Volume 18/2 (1989), pp. 57 61 reedition 2006 [original edition, pp. 57 62] A. L. Rastsvetaev ON MONADIC LOGIC OF RECURSIVE PROGRAMS WITH PARAMETERS 1. Introduction The

More information

Model Checking: An Introduction

Model Checking: An Introduction Model Checking: An Introduction Meeting 3, CSCI 5535, Spring 2013 Announcements Homework 0 ( Preliminaries ) out, due Friday Saturday This Week Dive into research motivating CSCI 5535 Next Week Begin foundations

More information

State Space Search Problems

State Space Search Problems State Space Search Problems Lecture Heuristic Search Stefan Edelkamp 1 Overview Different state space formalisms, including labelled, implicit and explicit weighted graph representations Alternative formalisms:

More information

What is logic, the topic of this course? There are at least two answers to that question.

What is logic, the topic of this course? There are at least two answers to that question. Applied Logic Lecture 1 CS 486 Spring 2005 Tuesday, January 25, 2005 What is Logic? What is logic, the topic of this course? There are at least two answers to that question. General logic: critical examination

More information

The Expressivity of Universal Timed CCP: Undecidability of Monadic FLTL and Closure Operators for Security

The Expressivity of Universal Timed CCP: Undecidability of Monadic FLTL and Closure Operators for Security The Expressivity of Universal Timed CCP: Undecidability of Monadic FLTL and Closure Operators for Security Carlos Olarte and Frank D. Valencia INRIA /CNRS and LIX, Ecole Polytechnique Motivation Concurrent

More information

Valence automata as a generalization of automata with storage

Valence automata as a generalization of automata with storage Valence automata as a generalization of automata with storage Georg Zetzsche Technische Universität Kaiserslautern D-CON 2013 Georg Zetzsche (TU KL) Valence automata D-CON 2013 1 / 23 Example (Pushdown

More information

Definition: Alternating time and space Game Semantics: State of machine determines who

Definition: Alternating time and space Game Semantics: State of machine determines who CMPSCI 601: Recall From Last Time Lecture 3 Definition: Alternating time and space Game Semantics: State of machine determines who controls, White wants it to accept, Black wants it to reject. White wins

More information

VTU QUESTION BANK. Unit 1. Introduction to Finite Automata. 1. Obtain DFAs to accept strings of a s and b s having exactly one a.

VTU QUESTION BANK. Unit 1. Introduction to Finite Automata. 1. Obtain DFAs to accept strings of a s and b s having exactly one a. VTU QUESTION BANK Unit 1 Introduction to Finite Automata 1. Obtain DFAs to accept strings of a s and b s having exactly one a.(5m )( Dec-2014) 2. Obtain a DFA to accept strings of a s and b s having even

More information

Alternating Time Temporal Logics*

Alternating Time Temporal Logics* Alternating Time Temporal Logics* Sophie Pinchinat Visiting Research Fellow at RSISE Marie Curie Outgoing International Fellowship * @article{alur2002, title={alternating-time Temporal Logic}, author={alur,

More information

Automata Theory and Formal Grammars: Lecture 1

Automata Theory and Formal Grammars: Lecture 1 Automata Theory and Formal Grammars: Lecture 1 Sets, Languages, Logic Automata Theory and Formal Grammars: Lecture 1 p.1/72 Sets, Languages, Logic Today Course Overview Administrivia Sets Theory (Review?)

More information