Functional Reachability
|
|
- Stuart Moore
- 6 years ago
- Views:
Transcription
1 Functional Reachability Luke Ong Nikos Tzevelekos Oxford University Computing Laboratory 24th Symposium on Logic in Computer Science Los Angeles, August Ong & Tzevelekos Functional Reachability 1
2 The Problem Reachability in functional computation. Consider a term M of a higher-order functional programming language. Now consider a point p inside M. Is there a program context C such that the computation of C[M] reaches p? The Problem Relevant work The examined language: PCF Reachability PCF-with-error: PCF Reach template An undecidability result Our approach Computation trees Traversals Alternating Tree Automata Traversal-simulating ATA s Variable profiles ATA correspondence Results Alternating Dependency Tree Automata Conclusion and on Ong & Tzevelekos Functional Reachability 2
3 The Problem Reachability in functional computation. Consider a term M of a higher-order functional programming language. Now consider a point p inside M. Is there a program context C such that the computation of C[M] reaches p? The Problem Relevant work The examined language: PCF Reachability PCF-with-error: PCF Reach template An undecidability result Our approach Computation trees Traversals Alternating Tree Automata Traversal-simulating ATA s Variable profiles ATA correspondence Results Alternating Dependency Tree Automata Conclusion and on Ong & Tzevelekos Functional Reachability 2
4 The Problem Reachability in functional computation. Consider a term M of a higher-order functional programming language. Now consider a point p inside M. Is there a program context C such that the computation of C[M] reaches p? Surprisingly, (Contextual) Reachability per se had not been studied in HO functional languages. The Problem Relevant work The examined language: PCF Reachability PCF-with-error: PCF Reach template An undecidability result Our approach Computation trees Traversals Alternating Tree Automata Traversal-simulating ATA s Variable profiles ATA correspondence Results Alternating Dependency Tree Automata Conclusion and on Ong & Tzevelekos Functional Reachability 2
5 Relevant work Control Flow Analysis: Approximate at compile time the flow of control to happen at run time. In a HO-setting, the crucial element is that of closures. Reynolds ( 70), Jones ( 80), Shivers ( 90),... Malacaria & Hankin (late 90 s). CFA > Reach: more general. Reach > CFA: open vs closed world approach. Useless code detection, etc. The Problem Relevant work The examined language: PCF Reachability PCF-with-error: PCF Reach template An undecidability result Our approach Computation trees Traversals Alternating Tree Automata Traversal-simulating ATA s Variable profiles ATA correspondence Results Alternating Dependency Tree Automata Conclusion and on Ong & Tzevelekos Functional Reachability 3
6 The examined language: PCF Types: Terms: A,B ::= o A B M,N ::= x x.m MN t f if M N 1 N 2 Y A Contexts: C ::=... Ong & Tzevelekos Functional Reachability 4
7 The examined language: PCF Types: Terms: A,B ::= o A B M,N ::= x x.m MN t f if M N 1 N 2 Y A Contexts: C ::=... Reductions: (x.m)n M{N/x} if t xy.x YM M(YM) if f xy.y M N = E[M] E[N] Ev. Contexts: E ::= [ ] E M if E Ong & Tzevelekos Functional Reachability 4
8 The examined language: PCF Types: Terms: A,B ::= o A B M,N ::= x x.m MN t f if M N 1 N 2 Y A Contexts: C ::=... Reductions: Call-by-name -calculus + if + Y Write (A 1,...,A n,o) for A 1 A n o. Divergence definable, e.g. := Y o (x.x). Finitary restrictions (i.e. no Y): fpcf, fpcf. Ong & Tzevelekos Functional Reachability 4
9 Reachability Given a PCF-term M and a coloured subterm L of M, Is there a program context C such that C[M] E[L ] with L coloured? The Problem Relevant work The examined language: PCF Reachability PCF-with-error: PCF Reach template An undecidability result Our approach Computation trees Traversals Alternating Tree Automata Traversal-simulating ATA s Variable profiles ATA correspondence Results Alternating Dependency Tree Automata Conclusion and on Ong & Tzevelekos Functional Reachability 5
10 Reachability Given a PCF-term M and a coloured subterm L of M, Is there a program context C such that C[M] E[L ] with L coloured? Equivalently: Given a closed PCF-term M : (A 1,...,A n,o) and a coloured subterm L of M, Are there closed PCF-terms N 1,...,N n such that M N E[L ] The Problem Relevant work The examined language: PCF Reachability PCF-with-error: PCF Reach template An undecidability result Our approach Computation trees Traversals Alternating Tree Automata Traversal-simulating ATA s Variable profiles ATA correspondence Results Alternating Dependency Tree Automata Conclusion and on with L coloured? Ong & Tzevelekos Functional Reachability 5
11 PCF-with-error: PCF Take base type o = {t, f, } with an error constant: -Reachability: E[ ] Given a closed PCF -term M : (A 1,...,A n,o) that has exactly one occurrence of, are there closed PCF-terms N 1,...,N n such that M N? The Problem Relevant work The examined language: PCF Reachability PCF-with-error: PCF Reach template An undecidability result Our approach Computation trees Traversals Alternating Tree Automata Traversal-simulating ATA s Variable profiles ATA correspondence Results Alternating Dependency Tree Automata Conclusion and on Ong & Tzevelekos Functional Reachability 6
12 PCF-with-error: PCF Take base type o = {t, f, } with an error constant: -Reachability: E[ ] Given a closed PCF -term M : (A 1,...,A n,o) that has exactly one occurrence of, are there closed PCF-terms N 1,...,N n such that M N? Lemma: Reachability = -Reachability. The Problem Relevant work The examined language: PCF Reachability PCF-with-error: PCF Reach template An undecidability result Our approach Computation trees Traversals Alternating Tree Automata Traversal-simulating ATA s Variable profiles ATA correspondence Results Alternating Dependency Tree Automata Conclusion and on Ong & Tzevelekos Functional Reachability 6
13 Reach template For v {t, f, } and L 1, L 2 PCF : v-reach [L 1, L 2 ]: Given a closed L 1 -term M : (A 1,...,A n,o), are there closed L 2 -terms N 1,...,N n such that M N v? e.g. -Reachability = -Reach [PCF 1, PCF]. Ong & Tzevelekos Functional Reachability 7
14 Reach template For v {t, f, } and L 1, L 2 PCF : v-reach [L 1, L 2 ]: Given a closed L 1 -term M : (A 1,...,A n,o), are there closed L 2 -terms N 1,...,N n such that M N v? Three classes of problems: Reachability -Reachability -Reach [PCF 1, PCF] -Reach [PCF 1, fpcf] -Reach [fpcf 1, fpcf] -Reach [fpcf, fpcf]... -Reach [fpcf 1, fpcf] -Reach [fpcf, fpcf]... Ong & Tzevelekos Functional Reachability 7
15 An undecidability result Lemma: -Reach [fpcf 1, fpcf] is undecidable. Proof: By reduction of solvability of systems of fpcf -equations (proved undecidable by [Loader 01]). Reachability -Reachability -Reach [PCF 1, PCF] -Reach [PCF 1, fpcf] -Reach [fpcf 1, fpcf] -Reach [fpcf, fpcf]... -Reach [fpcf 1, fpcf] -Reach [fpcf, fpcf]... Ong & Tzevelekos Functional Reachability 8
16 Our approach We focus on v-reach [fpcf, fpcf]. For fpcf -term P : o, Computations of P Traversals over its computation tree, (P) Runs of an Alternating Tree Automaton (ATA) on (P) Ong & Tzevelekos Functional Reachability 9
17 Our approach We focus on v-reach [fpcf, fpcf]. For fpcf -term P : o, Computations of P Traversals over its computation tree, (P) Runs of an Alternating Tree Automaton (ATA) on (P) P v iff an ATA accepts (P) on initial state with value v. Ong & Tzevelekos Functional Reachability 9
18 Computation trees Starting from a fpcf -term M, take its η-long form, add application symbols (@), view the result as a tree, (M). Ong & Tzevelekos Functional Reachability 10
19 Computation trees Starting from a fpcf -term M, take its η-long form, add application symbols (@), view the result as a tree, (M). (Φz. Φ(y. ify z)t)(ϕx.ϕx) t Φz ϕx ϕ y t if t x y z Ong & Tzevelekos Functional Reachability 10
20 Traversals A traversal [Blum, Ong] over a computation tree, follows the flow of control within it, seen from the perspective of Game Semantics. Ong & Tzevelekos Functional Reachability 11
21 Traversals A traversal [Blum, Ong] over a computation tree, follows the flow of control within it, seen from the perspective of Game Φz ϕx Φ ϕ t y if t x y z Ong & Tzevelekos Functional Reachability 11
22 Traversals A traversal [Blum, Ong] over a computation tree, follows the flow of control within it, seen from the perspective of Game Φz ϕx Φ ϕ t y if t x y z Ong & Tzevelekos Functional Reachability 11
23 Traversals A traversal [Blum, Ong] over a computation tree, follows the flow of control within it, seen from the perspective of Game Φz ϕx Φ ϕ t y if t x y z Ong & Tzevelekos Functional Reachability 11
24 Traversals A traversal [Blum, Ong] over a computation tree, follows the flow of control within it, seen from the perspective of Game Φz ϕx Φ ϕ t y if t x y z Ong & Tzevelekos Functional Reachability 11
25 Traversals A traversal [Blum, Ong] over a computation tree, follows the flow of control within it, seen from the perspective of Game Φz ϕx Φ ϕ t y if t x y z Ong & Tzevelekos Functional Reachability 11
26 Traversals A traversal [Blum, Ong] over a computation tree, follows the flow of control within it, seen from the perspective of Game Φz ϕx Φ ϕ t y if t x y z Ong & Tzevelekos Functional Reachability 11
27 Traversals A traversal [Blum, Ong] over a computation tree, follows the flow of control within it, seen from the perspective of Game Φz ϕx Φ ϕ t y if t x y z Ong & Tzevelekos Functional Reachability 11
28 Traversals A traversal [Blum, Ong] over a computation tree, follows the flow of control within it, seen from the perspective of Game Φz ϕx Φ ϕ t y if t x y z Ong & Tzevelekos Functional Reachability 11
29 Traversals A traversal [Blum, Ong] over a computation tree, follows the flow of control within it, seen from the perspective of Game Φz ϕx Φ ϕ t y if t x y z Ong & Tzevelekos Functional Reachability 11
30 Traversals A traversal [Blum, Ong] over a computation tree, follows the flow of control within it, seen from the perspective of Game Φz ϕx Φ ϕ t y if t x y z Ong & Tzevelekos Functional Reachability 11
31 Traversals A traversal [Blum, Ong] over a computation tree, follows the flow of control within it, seen from the perspective of Game Φz ϕx Φ ϕ t y if t x y z Ong & Tzevelekos Functional Reachability 11
32 Traversals A traversal [Blum, Ong] over a computation tree, follows the flow of control within it, seen from the perspective of Game Φz ϕx Φ ϕ t y if t x y z Ong & Tzevelekos Functional Reachability 11
33 Traversals A traversal [Blum, Ong] over a computation tree, follows the flow of control within it, seen from the perspective of Game Φz ϕx Φ ϕ t y if t x y z Ong & Tzevelekos Functional Reachability 11
34 Traversals A traversal [Blum, Ong] over a computation tree, follows the flow of control within it, seen from the perspective of Game Φz ϕx Φ ϕ t y if t x y z Ong & Tzevelekos Functional Reachability 11
35 Traversals A traversal [Blum, Ong] over a computation tree, follows the flow of control within it, seen from the perspective of Game Φz ϕx Φ ϕ t y if t x y z Ong & Tzevelekos Functional Reachability 11
36 Traversals A traversal [Blum, Ong] over a computation tree, follows the flow of control within it, seen from the perspective of Game Φz ϕx Φ ϕ t y if t x y z Ong & Tzevelekos Functional Reachability 11
37 Traversals A traversal [Blum, Ong] over a computation tree, follows the flow of control within it, seen from the perspective of Game Φz ϕx Φ ϕ t y if t x y z Ong & Tzevelekos Functional Reachability 11
38 Traversals A traversal [Blum, Ong] over a computation tree, follows the flow of control within it, seen from the perspective of Game Φz ϕx Φ ϕ t y if t x y z -complete traversal Ong & Tzevelekos Functional Reachability 11
39 Traversals A traversal [Blum, Ong] over a computation tree, follows the flow of control within it, seen from the perspective of Game Semantics. A traversal is v-complete if every question (red visit) has been answered (green visit), and the root question has been answered with v. Theorem: For any P : o and value v, P v iff there is a complete v-traversal over (P). Ong & Tzevelekos Functional Reachability 11
40 Alternating Tree Automata An ATA is a quadruple A = Q, Σ,q 0, where: Q is a finite set of states, Σ is a finite ranked alphabet, q 0 Q is the initial state, is a finite transition relation: q s (Q 1,...,Q k ). s Σ q Q Q 1,..., Q k Q Ong & Tzevelekos Functional Reachability 12
41 Alternating Tree Automata An ATA is a quadruple A = Q, Σ,q 0, where: Q is a finite set of states, Σ is a finite ranked alphabet, q 0 Q is the initial state, is a finite transition relation: q s (Q 1,...,Q k ). s Σ q Q Q 1,..., Q k Q Ong & Tzevelekos Functional Reachability 12 s s 1 s 2... s k
42 Alternating Tree Automata An ATA is a quadruple A = Q, Σ,q 0, where: Q is a finite set of states, Σ is a finite ranked alphabet, q 0 Q is the initial state, is a finite transition relation: q s (Q 1,...,Q k ). s Σ q Q Q 1,..., Q k Q Ong & Tzevelekos Functional Reachability 12 s A(q) s 1 s 2... s k
43 Alternating Tree Automata An ATA is a quadruple A = Q, Σ,q 0, where: Q is a finite set of states, Σ is a finite ranked alphabet, q 0 Q is the initial state, is a finite transition relation: q s (Q 1,...,Q k ). s Σ q Q Q 1,..., Q k Q Ong & Tzevelekos Functional Reachability 12 s A(Q 1 ) A(Q 2 ) A(Q k ) s 1 s 2... s k
44 Traversal-simulating ATA s How can we simulate a complete traversal by an ATA? ϕx Φ ϕ y t if t x y z Ong & Tzevelekos Functional Reachability 13
45 Traversal-simulating ATA s How can we simulate a complete traversal by an ATA? By guessing the number of visits of each node. By guessing the profile of each variable per visit. ϕx By verifying these guesses. Φ ϕ y t if t x y z Ong & Tzevelekos Functional Reachability 13
46 Variable profiles Introduced by [Ong 06]. VP(A 1,...,A n,o) := Var Val P( n i=1 VP(A i)) Notation: (x,v), (x,v π 1,...,π n ) Ong & Tzevelekos Functional Reachability 14
47 Variable Φz ϕx Φ ϕ t y if t x y z Ong & Tzevelekos Functional Reachability 14
48 Variable Φz Φϕx Φ ϕ t ϕ y x y if t x y z Ong & Tzevelekos Functional Reachability 14
49 Variable Φz Φ ϕx Φ ϕ t ϕ y x y t t t if t t x t t y z Ong & Tzevelekos Functional Reachability 14
50 Variable Φz Φϕx Φ ϕ t ϕ y x y if t t x t y z Ong & Tzevelekos Functional Reachability 14
51 Variable profiles Ong & Tzevelekos Functional Reachability Φz Φϕx Φ ϕ t ϕ y x y if t (x, t) x y z (y, t)
52 Variable profiles Ong & Tzevelekos Functional Reachability Φz Φϕx Φ ϕ t (ϕ, (y, t)) ϕ y x y if t (x, t) x y z (y, t)
53 Variable profiles Ong & Tzevelekos Functional Reachability Φz Φϕx (Φ, (ϕ, (y, t)), (x, t)) Φ ϕ t (ϕ, (y, t)) ϕ y x y if t (x, t) x y z (y, t)
54 ATA correspondence Given a finite fpcf -alphabet Σ, the states of the traveral-simulating ATA A Σ are: Q := Val P(VP Σ ) P(VP Σ ) Ong & Tzevelekos Functional Reachability 15
55 ATA correspondence Given a finite fpcf -alphabet Σ, the states of the traveral-simulating ATA A Σ are: Q := Val P(VP Σ ) P(VP Σ ) M N v iff A Σ accepts (M N) on initial state with value v. Any tree accepted by ÃΣ is a closed fpcf-term. Ong & Tzevelekos Functional Reachability 15
56 Results Theorem: M v-reach [fpcf Σ, fpcf Σ ] iff there is an initial state q 0 with value v such that: A Σ (q o ) accepts (M), i, the language accepted by ÃΣ(q 0 A i ) is non-empty. The Problem Relevant work The examined language: PCF Reachability PCF-with-error: PCF Reach template An undecidability result Our approach Computation trees Traversals Alternating Tree Automata Traversal-simulating ATA s Variable profiles ATA correspondence Results Alternating Dependency Tree Automata Conclusion and on Ong & Tzevelekos Functional Reachability 16
57 Results Theorem: M v-reach [fpcf Σ, fpcf Σ ] iff there is an initial state q 0 with value v such that: A Σ (q o ) accepts (M), i, the language accepted by ÃΣ(q 0 A i ) is non-empty. Corollary: -Reach [fpcf, fpcf(n)] is decidable. Corollary: -Reach [fpcf, fpcf] is decidable up to order 3. The Problem Relevant work The examined language: PCF Reachability PCF-with-error: PCF Reach template An undecidability result Our approach Computation trees Traversals Alternating Tree Automata Traversal-simulating ATA s Variable profiles ATA correspondence Results Alternating Dependency Tree Automata Conclusion and on Ong & Tzevelekos Functional Reachability 16
58 Alternating Dependency Tree Automata For the general case we can use Alternating Dependency Tree Automata [Stirling 09]. Corollary: Emptiness problem is undecidable for ADTA s. The Problem Relevant work The examined language: PCF Reachability PCF-with-error: PCF Reach template An undecidability result Our approach Computation trees Traversals Alternating Tree Automata Traversal-simulating ATA s Variable profiles ATA correspondence Results Alternating Dependency Tree Automata Conclusion and on Ong & Tzevelekos Functional Reachability 17
59 Conclusion and on A new kind of Reachability problems. Some undecidability results. Some technology from game semantics. Characterisation by ATA s and ADTA s. Some (relativised) decidability results. The Problem Relevant work The examined language: PCF Reachability PCF-with-error: PCF Reach template An undecidability result Our approach Computation trees Traversals Alternating Tree Automata Traversal-simulating ATA s Variable profiles ATA correspondence Results Alternating Dependency Tree Automata Conclusion and on Ong & Tzevelekos Functional Reachability 18
60 Conclusion and on A new kind of Reachability problems. Some undecidability results. Some technology from game semantics. Characterisation by ATA s and ADTA s. Some (relativised) decidability results. Revisit (semantic) CFA? Reachability through intersection types? Conjecture: -Reach [fpcf, fpcf]? The Problem Relevant work The examined language: PCF Reachability PCF-with-error: PCF Reach template An undecidability result Our approach Computation trees Traversals Alternating Tree Automata Traversal-simulating ATA s Variable profiles ATA correspondence Results Alternating Dependency Tree Automata Conclusion and on Ong & Tzevelekos Functional Reachability 18
61 Conclusion and on A new kind of Reachability problems. Some undecidability results. Some technology from game semantics. Characterisation by ATA s and ADTA s. Some (relativised) decidability results. Revisit (semantic) CFA? Reachability through intersection types? Conjecture: -Reach [fpcf, fpcf]? The Problem Relevant work The examined language: PCF Reachability PCF-with-error: PCF Reach template An undecidability result Our approach Computation trees Traversals Alternating Tree Automata Traversal-simulating ATA s Variable profiles ATA correspondence Results Alternating Dependency Tree Automata Conclusion and on THANKS! Ong & Tzevelekos Functional Reachability 18
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 informationAlgorithmic Reasoning about Böhm Trees
Algorithmic Reasoning about Böhm Trees Luke Ong University of Oxford (Joint with Bahareh Afshari, Matthew Hague, Graham Leigh, Steven Ramsay, and Takeshi Tsukada) IMS Workshop on Higher-Order Model Checking
More informationThe Safe λ-calculus. William Blum. Joint work with C.-H. Luke Ong. Lunch-time meeting, 14 May Oxford University Computing Laboratory
The Safe λ-calculus William Blum Joint work with C.-H. Luke Ong Oxford University Computing Laboratory Lunch-time meeting, 14 May 2007 Overview Safety is originally a syntactic restriction for higher-order
More informationAlternating 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 informationQuasi-Weak Cost Automata
Quasi-Weak Cost Automata A New Variant of Weakness Denis Kuperberg 1 Michael Vanden Boom 2 1 LIAFA/CNRS/Université Paris 7, Denis Diderot, France 2 Department of Computer Science, University of Oxford,
More informationFoundations 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 informationLogic 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 informationComputability and Complexity
Computability and Complexity Lecture 5 Reductions Undecidable problems from language theory Linear bounded automata given by Jiri Srba Lecture 5 Computability and Complexity 1/14 Reduction Informal Definition
More informationComputer-Aided Program Design
Computer-Aided Program Design Spring 2015, Rice University Unit 3 Swarat Chaudhuri February 5, 2015 Temporal logic Propositional logic is a good language for describing properties of program states. However,
More informationHigher-Order Matching, Games and Automata
Higher-Order Matching, Games and Automata Colin Stirling School of Informatics University of Edinburgh cps@inf.ed.ac.uk Abstract Higher-order matching is the problem given t = u where t, u are terms of
More informationWeak 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 informationAutomata, 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 informationHISTORY-REGISTER AUTOMATA
Logical Methods in Computer Science Vol. 12(1:7)2016, pp. 1 32 www.lmcs-online.org Submitted Sep. 10, 2015 Published Mar. 31, 2016 HISTORY-REGISTER AUTOMATA a University of Kent e-mail address: radugrigore@gmail.com
More informationAutomata, 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 informationDeciding 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 informationTree 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 informationTheory of Computation
Thomas Zeugmann Hokkaido University Laboratory for Algorithmics http://www-alg.ist.hokudai.ac.jp/ thomas/toc/ Lecture 3: Finite State Automata Motivation In the previous lecture we learned how to formalize
More informationLecturecise 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 informationAutomata theory and higher-order model-checking
Automata theory and higher-order model-checking Igor Walukiewicz, CNRS, LaBRI, Bordeaux University In verification, an automata theoretic approach is by now a standard. In order to extend this approach
More informationVisibly Linear Dynamic Logic
Visibly Linear Dynamic Logic Joint work with Alexander Weinert (Saarland University) Martin Zimmermann Saarland University September 8th, 2016 Highlights Conference, Brussels, Belgium Martin Zimmermann
More informationUsing models to model-check recursive schemes
Using models to model-check recursive schemes S Salvati and I Walukiewicz Université de Bordeaux, INRIA, CNRS, LaBRI UMR5800 Abstract We propose a model-based approach to the model checking problem for
More informationEquivalence of DFAs and NFAs
CS 172: Computability and Complexity Equivalence of DFAs and NFAs It s a tie! DFA NFA Sanjit A. Seshia EECS, UC Berkeley Acknowledgments: L.von Ahn, L. Blum, M. Blum What we ll do today Prove that DFAs
More informationOn language equations with one-sided concatenation
Fundamenta Informaticae 126 (2013) 1 34 1 IOS Press On language equations with one-sided concatenation Franz Baader Alexander Okhotin Abstract. Language equations are equations where both the constants
More informationOn the complexity of infinite computations
On the complexity of infinite computations Damian Niwiński, Warsaw University joint work with Igor Walukiewicz and Filip Murlak Newton Institute, Cambridge, June 2006 1 Infinite computations Büchi (1960)
More informationMAX-PLANCK-INSTITUT INFORMATIK
MAX-PLANCK-INSTITUT FÜR INFORMATIK Negative set constraints: an easy proof of decidability Witold Charatonik Leszek Pacholski MPI I 93 265 December 1993 I N F O R M A T I K Im Stadtwald D 66123 Saarbrücken
More informationBü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 informationFormal Languages, Automata and Compilers
Formal Languages, Automata and Compilers Lecure 4 2017-18 LFAC (2017-18) Lecture 4 1 / 31 Curs 4 1 Grammars of type 3 and finite automata 2 Closure properties for type 3 languages 3 Regular Expressions
More informationFull abstraction for nominal exceptions and general references
Full abstraction for nominal exceptions and general references Nikos Tzevelekos Oxford University N.Tzevelekos GALOP 08 1 Summary Summary Nominal games Further directions Semantics of nominal computation.
More informationLet us first give some intuitive idea about a state of a system and state transitions before describing finite automata.
Finite Automata Automata (singular: automation) are a particularly simple, but useful, model of computation. They were initially proposed as a simple model for the behavior of neurons. The concept of a
More informationDependency Tree Automata
Dependency Tree Automata Colin Stirling School of Informatics Informatics Forum University of Edinburgh email: cps@inf.ed.ac.uk Abstract. We introduce a new kind of tree automaton, a dependency tree automaton,
More informationFinite 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 informationThe 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 informationFrom 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 informationTYPING WEAK MSOL PROPERTIES
Logical Methods in Computer Science Vol. 13(1:14)2017, pp. 1 27 www.lmcs-online.org Submitted Nov. 16, 2015 Published Mar. 23, 2017 TYPING WEK MSOL PROPERTIES SYLVIN SLVTI a ND IGOR WLUKIEWICZ b a INRI,
More informationTemporal Logic Model Checking
18 Feb, 2009 Thomas Wahl, Oxford University Temporal Logic Model Checking 1 Temporal Logic Model Checking Thomas Wahl Computing Laboratory, Oxford University 18 Feb, 2009 Thomas Wahl, Oxford University
More informationRabin 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 informationChapter 3. Regular grammars
Chapter 3 Regular grammars 59 3.1 Introduction Other view of the concept of language: not the formalization of the notion of effective procedure, but set of words satisfying a given set of rules Origin
More informationWhat is this course about?
What is this course about? Examining the power of an abstract machine What can this box of tricks do? What is this course about? Examining the power of an abstract machine Domains of discourse: automata
More informationReal-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 informationComputation Histories
208 Computation Histories The computation history for a Turing machine on an input is simply the sequence of configurations that the machine goes through as it processes the input. An accepting computation
More informationACS2: Decidability Decidability
Decidability Bernhard Nebel and Christian Becker-Asano 1 Overview An investigation into the solvable/decidable Decidable languages The halting problem (undecidable) 2 Decidable problems? Acceptance problem
More informationNon-emptiness Testing for TMs
180 5. Reducibility The proof of unsolvability of the halting problem is an example of a reduction: a way of converting problem A to problem B in such a way that a solution to problem B can be used to
More informationQuery Reasoning on Data Trees with Counting
Query Reasoning on Data Trees with Counting Everardo Bárcenas 1,2, Edgard Benítez-Guerrero 2, and Jesús Lavalle 3,4 1 CONACYT 2 Universidad Veracruzana 3 Benemérita Universidad Autónoma de Puebla 4 Instituto
More informationGENERATING SETS AND DECOMPOSITIONS FOR IDEMPOTENT TREE LANGUAGES
Atlantic Electronic http://aejm.ca Journal of Mathematics http://aejm.ca/rema Volume 6, Number 1, Summer 2014 pp. 26-37 GENERATING SETS AND DECOMPOSITIONS FOR IDEMPOTENT TREE ANGUAGES MARK THOM AND SHEY
More information15-251: Great Theoretical Ideas in Computer Science Lecture 7. Turing s Legacy Continues
15-251: Great Theoretical Ideas in Computer Science Lecture 7 Turing s Legacy Continues Solvable with Python = Solvable with C = Solvable with Java = Solvable with SML = Decidable Languages (decidable
More informationCHURCH 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 informationOn space efficiency of Krivine s abstract machine and Hyland-Ong games
13/02/08, LIPN p.1/28 On space efficiency of Krivine s abstract machine and Hyland-Ong games Kazushige Terui terui@nii.ac.jp National Institute of Informatics, Tokyo Laboratoire d Informatics de Paris
More informationUnary 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 informationGeneralising Automaticity to Modal Properties of Finite Structures
Generalising Automaticity to Modal Properties of Finite Structures Anuj Dawar University of Cambridge Computer Laboratory, Cambridge CB3 0FD, UK. anuj.dawar@cl.cam.ac.uk Stephan Kreutzer Institut für Informatik,
More informationT (s, xa) = T (T (s, x), a). The language recognized by M, denoted L(M), is the set of strings accepted by M. That is,
Recall A deterministic finite automaton is a five-tuple where S is a finite set of states, M = (S, Σ, T, s 0, F ) Σ is an alphabet the input alphabet, T : S Σ S is the transition function, s 0 S is the
More informationChapter 2: Finite Automata
Chapter 2: Finite Automata 2.1 States, State Diagrams, and Transitions Finite automaton is the simplest acceptor or recognizer for language specification. It is also the simplest model of a computer. A
More informationCPSC 421: Tutorial #1
CPSC 421: Tutorial #1 October 14, 2016 Set Theory. 1. Let A be an arbitrary set, and let B = {x A : x / x}. That is, B contains all sets in A that do not contain themselves: For all y, ( ) y B if and only
More informationIntroduction. Büchi Automata and Model Checking. Outline. Büchi Automata. The simplest computation model for infinite behaviors is the
Introduction Büchi Automata and Model Checking Yih-Kuen Tsay Department of Information Management National Taiwan University FLOLAC 2009 The simplest computation model for finite behaviors is the finite
More informationSafety Analysis versus Type Inference
Information and Computation, 118(1):128 141, 1995. Safety Analysis versus Type Inference Jens Palsberg palsberg@daimi.aau.dk Michael I. Schwartzbach mis@daimi.aau.dk Computer Science Department, Aarhus
More informationLecture 23 : Nondeterministic Finite Automata DRAFT Connection between Regular Expressions and Finite Automata
CS/Math 24: Introduction to Discrete Mathematics 4/2/2 Lecture 23 : Nondeterministic Finite Automata Instructor: Dieter van Melkebeek Scribe: Dalibor Zelený DRAFT Last time we designed finite state automata
More informationChapter 11: Automated Proof Systems
Chapter 11: Automated Proof Systems SYSTEM RS OVERVIEW Hilbert style systems are easy to define and admit a simple proof of the Completeness Theorem but they are difficult to use. Automated systems are
More informationClasses and conversions
Classes and conversions Regular expressions Syntax: r = ε a r r r + r r Semantics: The language L r of a regular expression r is inductively defined as follows: L =, L ε = {ε}, L a = a L r r = L r L r
More informationComputational Models - Lecture 5 1
Computational Models - Lecture 5 1 Handout Mode Iftach Haitner and Yishay Mansour. Tel Aviv University. April 10/22, 2013 1 Based on frames by Benny Chor, Tel Aviv University, modifying frames by Maurice
More informationRegular 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 informationAutomata, Logic and Games. C.-H. L. Ong
Automata, Logic and Games C.-H. L. Ong June 12, 2015 2 Contents 0 Automata, Logic and Games 1 0.1 Aims and Prerequisites............................... 1 0.2 Motivation.....................................
More informationSequentiality in Kahn- Macqueen nets and the λ-calculus
Sequentiality in Kahn- Macqueen nets and the λ-calculus Jean-Jacques Lévy Macqueen Fest, 11-05-2012 1 Plan Kahn-Macqueen networks Stability in the λ-calculus Stability in Kahn-Macqueen networks Revisiting
More informationMonadic second-order logic on tree-like structures
Monadic second-order logic on tree-like structures Igor Walukiewicz Institute of Informatics, Warsaw University Banacha 2, 02-097 Warsaw, POLAND igw@mimuw.edu.pl Abstract An operation M which constructs
More informationDefinition of Büchi Automata
Büchi Automata Definition of Büchi Automata Let Σ = {a,b,...} be a finite alphabet. By Σ ω we denote the set of all infinite words over Σ. A non-deterministic Büchi automaton (NBA) over Σ is a tuple A
More informationComputability and Complexity
Computability and Complexity Push-Down Automata CAS 705 Ryszard Janicki Department of Computing and Software McMaster University Hamilton, Ontario, Canada janicki@mcmaster.ca Ryszard Janicki Computability
More informationCS 275 Automata and Formal Language Theory
CS 275 Automata and Formal Language Theory Course Notes Part II: The Recognition Problem (II) Chapter II.4.: Properties of Regular Languages (13) Anton Setzer (Based on a book draft by J. V. Tucker and
More informationSri vidya college of engineering and technology
Unit I FINITE AUTOMATA 1. Define hypothesis. The formal proof can be using deductive proof and inductive proof. The deductive proof consists of sequence of statements given with logical reasoning in order
More informationThis lecture covers Chapter 7 of HMU: Properties of CFLs
This lecture covers Chapter 7 of HMU: Properties of CFLs Chomsky Normal Form Pumping Lemma for CFs Closure Properties of CFLs Decision Properties of CFLs Additional Reading: Chapter 7 of HMU. Chomsky Normal
More informationAutomata-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 informationChapter 5. Finite Automata
Chapter 5 Finite Automata 5.1 Finite State Automata Capable of recognizing numerous symbol patterns, the class of regular languages Suitable for pattern-recognition type applications, such as the lexical
More informationRobust Controller Synthesis in Timed Automata
Robust Controller Synthesis in Timed Automata Ocan Sankur LSV, ENS Cachan & CNRS Joint with Patricia Bouyer, Nicolas Markey, Pierre-Alain Reynier. Ocan Sankur (ENS Cachan) Robust Control in Timed Automata
More informationFinite Automata. BİL405 - Automata Theory and Formal Languages 1
Finite Automata BİL405 - Automata Theory and Formal Languages 1 Deterministic Finite Automata (DFA) A Deterministic Finite Automata (DFA) is a quintuple A = (Q,,, q 0, F) 1. Q is a finite set of states
More informationYoshiharu Kojima 1,2
Reachability Problems for Controlled Rewriting Systems Yoshiharu Kojima 1,2 joint work with Masahiko Sakai 1 and Florent Jacquemard 3 1 Nagoya University 2 Research Fellow of JSPS 3 INRIA Sacray, LSV AJSW2010,
More informationRegularity 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 informationCS 455/555: Finite automata
CS 455/555: Finite automata Stefan D. Bruda Winter 2019 AUTOMATA (FINITE OR NOT) Generally any automaton Has a finite-state control Scans the input one symbol at a time Takes an action based on the currently
More informationThe Safe λ-calculus. William Blum. Oxford University Computing Laboratory. DPhil Transfer thesis
The Safe λ-calculus DPhil Transfer thesis William Blum Oxford University Computing Laboratory The Safe λ-calculus DPhil Transfer thesis The Safe λ-calculus DPhil Transfer thesis William Blum Submitted
More information3 Propositional Logic
3 Propositional Logic 3.1 Syntax 3.2 Semantics 3.3 Equivalence and Normal Forms 3.4 Proof Procedures 3.5 Properties Propositional Logic (25th October 2007) 1 3.1 Syntax Definition 3.0 An alphabet Σ consists
More informationModal Dependence Logic
Modal Dependence Logic Jouko Väänänen Institute for Logic, Language and Computation Universiteit van Amsterdam Plantage Muidergracht 24 1018 TV Amsterdam, The Netherlands J.A.Vaananen@uva.nl Abstract We
More informationConcurrent automata vs. asynchronous systems
Concurrent automata vs. asynchronous systems Une application d un résultat d ndré rnold avec l aide du théorème de Zielonka Réunion TGD 3 novembre 2005 Rémi MORIN Concurrent automata vs. asynchronous systems
More informationOverview 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 informationarxiv: v2 [cs.fl] 29 Nov 2013
A Survey of Multi-Tape Automata Carlo A. Furia May 2012 arxiv:1205.0178v2 [cs.fl] 29 Nov 2013 Abstract This paper summarizes the fundamental expressiveness, closure, and decidability properties of various
More informationIntroduction 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 informationCS21 Decidability and Tractability
CS21 Decidability and Tractability Lecture 3 January 9, 2017 January 9, 2017 CS21 Lecture 3 1 Outline NFA, FA equivalence Regular Expressions FA and Regular Expressions January 9, 2017 CS21 Lecture 3 2
More informationEinführung in die Computerlinguistik
Einführung in die Computerlinguistik Context-Free Grammars formal properties Laura Kallmeyer Heinrich-Heine-Universität Düsseldorf Summer 2018 1 / 20 Normal forms (1) Hopcroft and Ullman (1979) A normal
More informationTAFL 1 (ECS-403) Unit- III. 3.1 Definition of CFG (Context Free Grammar) and problems. 3.2 Derivation. 3.3 Ambiguity in Grammar
TAFL 1 (ECS-403) Unit- III 3.1 Definition of CFG (Context Free Grammar) and problems 3.2 Derivation 3.3 Ambiguity in Grammar 3.3.1 Inherent Ambiguity 3.3.2 Ambiguous to Unambiguous CFG 3.4 Simplification
More informationModal and Temporal Logics
Modal and Temporal Logics Colin Stirling School of Informatics University of Edinburgh July 26, 2003 Computational Properties 1 Satisfiability Problem: Given a modal µ-calculus formula Φ, is Φ satisfiable?
More informationPushdown Automata. We have seen examples of context-free languages that are not regular, and hence can not be recognized by finite automata.
Pushdown Automata We have seen examples of context-free languages that are not regular, and hence can not be recognized by finite automata. Next we consider a more powerful computation model, called a
More informationOn model-checking trees generated by higher-order recursion schemes
On model-checking trees generated by higher-order recursion schemes C.-H. L. Ong Oxford University Computing Laboratory We prove that the modal mu-calculus model-checking problem for (ranked and ordered)
More informationFrom Constructibility and Absoluteness to Computability and Domain Independence
From Constructibility and Absoluteness to Computability and Domain Independence Arnon Avron School of Computer Science Tel Aviv University, Tel Aviv 69978, Israel aa@math.tau.ac.il Abstract. Gödel s main
More informationTree Adjoining Grammars
Tree Adjoining Grammars TAG: Parsing and formal properties Laura Kallmeyer & Benjamin Burkhardt HHU Düsseldorf WS 2017/2018 1 / 36 Outline 1 Parsing as deduction 2 CYK for TAG 3 Closure properties of TALs
More informationSEQUENTIALITY & COMPLEXITY. Jim Royer Syracuse University
SEQUENTIALITY & COMPLEXITY Jim Royer Syracuse University OUTLINE I. Some History and Background and Background Sequential vs. Parallel PCF and parallel junk No junk models of PCF Sequentiality beyond PCF
More informationFORMAL LANGUAGES, AUTOMATA AND COMPUTATION
FORMAL LANGUAGES, AUTOMATA AND COMPUTATION DECIDABILITY ( LECTURE 15) SLIDES FOR 15-453 SPRING 2011 1 / 34 TURING MACHINES-SYNOPSIS The most general model of computation Computations of a TM are described
More informationAutomata on Infinite words and LTL Model Checking
Automata on Infinite words and LTL Model Checking Rodica Condurache Lecture 4 Lecture 4 Automata on Infinite words and LTL Model Checking 1 / 35 Labeled Transition Systems Let AP be the (finite) set of
More informationParameterized Regular Expressions and Their Languages
Parameterized Regular Expressions and Their Languages Pablo Barceló a, Juan Reutter b, Leonid Libkin b a Department of Computer Science, University of Chile b School of Informatics, University of Edinburgh
More informationNOTES ON AUTOMATA. Date: April 29,
NOTES ON AUTOMATA 1. Monoids acting on sets We say that a monoid S with identity element ɛ acts on a set Q if q(st) = (qs)t and qɛ = q. As with groups, if we set s = t whenever qs = qt for all q Q, then
More informationPolynomial Time Computation. Topics in Logic and Complexity Handout 2. Nondeterministic Polynomial Time. Succinct Certificates.
1 2 Topics in Logic and Complexity Handout 2 Anuj Dawar MPhil Advanced Computer Science, Lent 2010 Polynomial Time Computation P = TIME(n k ) k=1 The class of languages decidable in polynomial time. The
More informationComplexity of language equations with one-sided concatenation and all Boolean operations
Complexity of language equations with one-sided concatenation and all Boolean operations Franz Baader 1 and Alexander Okhotin 2,3 1 Theoretical Computer Science, Technical University of Dresden, Germany,
More informationFinite 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 information2. Elements of the Theory of Computation, Lewis and Papadimitrou,
Introduction Finite Automata DFA, regular languages Nondeterminism, NFA, subset construction Regular Epressions Synta, Semantics Relationship to regular languages Properties of regular languages Pumping
More informationIntro to Theory of Computation
Intro to Theory of Computation 1/19/2016 LECTURE 3 Last time: DFAs and NFAs Operations on languages Today: Nondeterminism Equivalence of NFAs and DFAs Closure properties of regular languages Sofya Raskhodnikova
More informationAntichain Algorithms for Finite Automata
Antichain Algorithms for Finite Automata Laurent Doyen 1 and Jean-François Raskin 2 1 LSV, ENS Cachan & CNRS, France 2 U.L.B., Université Libre de Bruxelles, Belgium Abstract. We present a general theory
More information