The Complexity of Transducer Synthesis from Multi-Sequential Specifications

Similar documents
Copyful Streaming String Transducers

Uniformization in Automata Theory

From Monadic Second-Order Definable String Transformations to Transducers

The theory of regular cost functions.

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

Synthesis of Winning Strategies for Interaction under Partial Information

A Generalised Twinning Property for Minimisation of Cost Register Automata

Separating regular languages by piecewise testable and unambiguous languages

Synthesis of Asynchronous Systems

An algebraic characterization of unary two-way transducers

Lipschitz Robustness of Finite-state Transducers

Partially Ordered Two-way Büchi Automata

Aperiodic String Transducers

The Non-Deterministic Mostowski Hierarchy and Distance-Parity Automata

First-order definability of rational transductions: An algebraic approach

On Recognizable Languages of Infinite Pictures

Controlling probabilistic systems under partial observation an automata and verification perspective

Closure under the Regular Operations

Decision Procedures for CTL

Variable Automata over Infinite Alphabets

A Uniformization Theorem for Nested Word to Word Transductions

Temporal logics and model checking for fairly correct systems

Static Program Analysis using Abstract Interpretation

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

Randomness for Free. 1 Introduction. Krishnendu Chatterjee 1, Laurent Doyen 2, Hugo Gimbert 3, and Thomas A. Henzinger 1

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

Bounded Synthesis. Sven Schewe and Bernd Finkbeiner. Universität des Saarlandes, Saarbrücken, Germany

HKN CS/ECE 374 Midterm 1 Review. Nathan Bleier and Mahir Morshed

PSL Model Checking and Run-time Verification via Testers

On Recognizable Languages of Infinite Pictures

Regular transformations of data words through origin information

Semi-Automatic Distributed Synthesis

On the model checking of sequential reactive systems

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

From Liveness to Promptness

CHURCH SYNTHESIS PROBLEM and GAMES

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

From Nondeterministic Büchi and Streett Automata to Deterministic Parity Automata

Symposium on Theoretical Aspects of Computer Science 2008 (Bordeaux), pp

The Inclusion Problem for Weighted Automata on Infinite Trees

Decision Problems for Additive Regular Functions

Decision, Computation and Language

Nondeterministic Finite Automata

The Complexity of Admissibility in Omega-Regular Games

Deciding the weak definability of Büchi definable tree languages

Alternating nonzero automata

Yoshiharu Kojima 1,2

Chapter 5: Linear Temporal Logic

Prime Languages, Orna Kupferman, Jonathan Mosheiff. School of Engineering and Computer Science The Hebrew University, Jerusalem, Israel

Büchi Automata and Their Determinization

Reasoning about Finite-State Switched Systems

Computability and Complexity Theory: An Introduction

Final exam study sheet for CS3719 Turing machines and decidability.

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

Games and Synthesis. Nir Piterman University of Leicester Telč, July-Autugst 2014

Tree Automata and Rewriting

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

Chapter 3: Linear temporal logic

A Revisionist History of Algorithmic Game Theory

From Liveness to Promptness

arxiv: v1 [cs.fl] 19 Mar 2015

Visibly Linear Dynamic Logic

Languages, logics and automata

Reactive Synthesis. Swen Jacobs VTSA 2013 Nancy, France u

First-order Definable String Transformations

A look at the control of asynchronous automata

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

Regular Linear Temporal Logic

A Generalization of Cobham s Theorem to Automata over Real Numbers

Regularity Problems for Visibly Pushdown Languages

Contributions to timed systems and transducers

Simplification of finite automata

Real-time Synthesis is Hard!

Some techniques and results in deciding bisimilarity

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

Complexity of infinite tree languages

arxiv: v1 [cs.fl] 30 Sep 2017

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

Impartial Anticipation in Runtime-Verification

Efficient algorithms and tools for MITL model-checking and synthesis

Synthesis from Probabilistic Components

Iterated Games with LDL Goals over Finite Traces * (Communications)

Verifying Randomized Distributed Algorithms with PRISM

CDS 270 (Fall 09) - Lecture Notes for Assignment 8.

Probabilistic Aspects of Computer Science: Probabilistic Automata

Solving Partial-Information Stochastic Parity Games

Effective Synthesis of Asynchronous Systems from GR(1) Specifications

60-354, Theory of Computation Fall Asish Mukhopadhyay School of Computer Science University of Windsor

Peter Wood. Department of Computer Science and Information Systems Birkbeck, University of London Automata and Formal Languages

Non-Deterministic Time

arxiv: v3 [cs.fl] 2 Jul 2018

LTL is Closed Under Topological Closure

arxiv: v1 [cs.ds] 9 Apr 2018

Automata on Infinite words and LTL Model Checking

Automata-based Verification - III

Theoretical Foundations of the UML

Finite Automata and Languages

On decision problems for timed automata

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

Characterizing EF and EX tree logics

Transcription:

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

From verification to synthesis Reactive systems Environment Input Output System Interaction i 1 o 1 i 2 o 2 i 3 o 3 (I O) ω or (I O) Verification Check that a system satisfies a specification System Env = Specification Synthesis Generate a system from a specification? Env = Specification 1

From verification to synthesis Reactive systems Environment Input Output System Interaction i 1 o 1 i 2 o 2 i 3 o 3 (I O) ω or (I O) Verification Check that a system satisfies a specification System Env = Specification Synthesis Generate a system from a specification? Env = Specification 1

Synthesis? Environment = Specification Generate a system from a specification Implementing a specification Input words I Implementation M : I O Output words O Specification S I O M fulfils S, written M = S, if for all in I, (in, M(in)) S O S M I 2

The realisability and synthesis problem S = Class of specifications S I O M = Class of target implementations M : I O Synthesis problem from S to M Input: Output: Specification S S Implementation M M s.t. M = S if it exists No otherwise Realisability problem from S to M Corresponding decision problem 3

Finite transducers: automata with outputs b a b a a,b a 1 2 3 Replace every letter with an a when there are at least two a s 4

Finite transducers: automata with outputs b a b a a,b a 1 2 3 Replace every letter with an a when there are at least two a s a b a,b b b b 4 5 Replace every letter with a b when there is at least one b 4

Finite transducers: automata with outputs b a b a a,b a 1 2 3 Replace every letter with an a when there are at least two a s a b a,b b b b 4 5 Replace every letter with a b when there is at least one b Sequential transducer The transition and output letter are determined by the input letter 4

Multi-sequential transducers b a b a a,b a 1 2 3 b b 4 5 a b a,b b Running example D 1 D 2 Multi-sequential transducer Union of sequential transducers k T = i=1 D i Multi-sequentiality A relation is multi-sequential if it can be defined by a multi-sequential transducer Decidable for functions [?] Membership in PTime [?] 5

Transducer realisability problem Known results M = sequential transducers S Complexity MSO Nonelementary [?] LTL 2-ExpTime-c [?] Finite Transducers ExpTime-c 6

Transducer realisability problem Known results M = sequential transducers S Complexity MSO Nonelementary [?] LTL 2-ExpTime-c [?] Finite Transducers ExpTime-c Question: Class of transducers with better complexity? 6

Realisability of multi-sequential specifications S = Multi-seq. transducers Unions of sequential transducers T = k i=1 D i M = Seq. transducers Output letter and transition is determined by input letter b a b a a,b a 1 2 3 b b 4 5 D 1 D 2 a b a,b b Theorem Sequential transducer synthesis from multi-sequential specifications is PSpace-complete. 7

Realisability of multi-sequential specifications Proof b a b a a,b a 1 2 3 b b 4 5 D 1 D 2 a b a,b b 8

Realisability of multi-sequential specifications Proof b a b a a,b a 1 2 3 b b 4 5 D 1 D 2 On input a, need to drop one transducer a b a,b b 8

Realisability of multi-sequential specifications Proof b a b a a,b a 1 2 3 b b 4 5 a b a,b b D 1 D 2 On input a, need to drop one transducer Critical prefix u At least two runs on u disagree on their output 8

Realisability of multi-sequential specifications Proof b a b a a,b a 1 2 3 b b 4 5 a b a,b b D 1 D 2 On input a, need to drop one transducer Critical prefix u At least two runs on u disagree on their output Residual property For all critical prefix u, there exists P {D 1,..., D k } s.t.: 1. All transducers in P produce the same output on u 2. The domain is still covered: u 1 dom(t ) = u 1 dom(d i ) i P 3. The residual specification u 1 D i is realisable i P 8

Realisability of multi-sequential specifications Proof Theorem Sequential transducer realisability from multi-sequential specifications is PSpace-complete. Easiness The residual property can be checked in PSpace. 9

Realisability of multi-sequential specifications Proof Theorem Sequential transducer realisability from multi-sequential specifications is PSpace-complete. Easiness The residual property can be checked in PSpace. Hardness Emptiness problem of the intersection of n DFAs S : w#σ wσ# if i, w L(A i ) (σ {a, b}) w#σ w#σ if i, w / L(A i ) / A i 2 b b 1 # # # σ σ # id Ai F 3 σ 4 σ A i 9

Asynchronicity b a b a a,b a 1 2 3 b b 4 5 a b a,b b Our running example 10

Asynchronicity b a b a a,b a 1 2 3 b b 4 5 Waiting two steps allows to determine whether: There is at least one b There are at least two a s a b a,b b Our running example 10

Asynchronicity b a b a a,b a 1 2 3 b b 4 5 Waiting two steps allows to determine whether: There is at least one b There are at least two a s a b a,b b Our running example Asynchronous transducer At every transition, reads a letter, outputs a (possibly empty) word. 10

Asynchronicity b a b a a,b a 1 2 3 b b 4 5 Waiting two steps allows to determine whether: There is at least one b There are at least two a s a b a,b b a,b b Our running example Asynchronous transducer At every transition, reads a letter, outputs a (possibly empty) word. 5 b b a ε 8 a,b a b bb a 6 7 An asynchronous implementation 10

Asynchronous transducer realisability problem Known results M = Unambiguous functional transducers Feasible for any asynchronous specification [?] M = Sequential transducers S (async. transducers) Complexity Nondeterministic Undecidable [?] Finite-valued 3-ExpTime [?] Multi-sequential PSpace-c 11

Asynchronous transducer realisability problem Known results M = Unambiguous functional transducers Feasible for any asynchronous specification [?] M = Sequential transducers S (async. transducers) Complexity Nondeterministic Undecidable [?] Finite-valued 3-ExpTime [?] Multi-sequential PSpace-c 11

Asynchronous transducer realisability problem Proof b ε 1 2 3 4 a ε b a b b 5 6 7 8 Delay del(u 1, u 2 ) = (l 1 u 1, l 1 u 2 ) l = u 1 u 2 12

Asynchronous transducer realisability problem Proof b ε 1 2 3 4 a ε b a b b 5 6 7 8 Delay del(u 1, u 2 ) = (l 1 u 1, l 1 u 2 ) del(a, ε) = (a, ε) 12

Asynchronous transducer realisability problem Proof b ε 1 2 3 4 a ε b a b b 5 6 7 8 Delay del(u 1, u 2 ) = (l 1 u 1, l 1 u 2 ) del(a, ε) = (a, ε) = del(aa, a) = (a, ε) 12

Asynchronous transducer realisability problem Proof b ε 1 2 3 4 a b b a b b 5 6 7 8 Delay del(u 1, u 2 ) = (l 1 u 1, l 1 u 2 ) del(a, b) = (a, b) del(aa, ba) = (aa, ba) 12

Asynchronous transducer realisability problem Proof b ε 1 2 3 4 a b b a b b 5 6 7 8 Critical loop Triple (u, v, X ) s.t.: Delay del(u 1, u 2 ) = (l 1 u 1, l 1 u 2 ) del(a, b) = (a, b) v β i del(aa, ba) = (aa, ba) u α 1. For all D i X, i p i q i 2. For all D i / X, no run on u 3. For two transducers D i, D j X, delays accumulate: del(α i, α j ) del(α i β i, α j β j ) 12

Asynchronous transducer realisability problem Proof Recursive characterisation T = k i=1 D i is realisable iff for all critical loops (u, v, X ), there exists Y X s.t.: 1. Delays do not accumulate: D i, D j Y, del(α i, α j ) = del(α i β i, α j β j ) 2. The domain is still covered: u 1 dom(t ) = i P u 1 dom(d i ) 3. The residual specification (u, l) 1 D i is realisable i Y l longest common prefix of the α i s Can be easily checked in ExpTime 13

Asynchronous transducer realisability problem Proof Theorem Asynchronous sequential transducer synthesis from multi-sequential specifications is PSpace-complete. PSpace-easiness: a non-recursive characterisation Witness of non-satisfaction Unfolding of the recursive characterisation Reformulation of delay difference Can be found in PSpace PSpace-hardness Similar to the synchronous case 14

Conclusion Multi-sequential specifications Membership decidable in PTime Sequential realisability is PSpace-c both in synchronous and asynchronous cases Improvement of the general case: synchronous = ExpTime-c asynchronous = undecidable Synthesis game Practical synthesis algorithm Suitable for any type of specification defined by transducers (might not terminate) 15

The synthesis game 1 : ɛ 5 : 1 : ɛ 4 : ɛ b 1 : a 5 : b b b 1 : 5 : ɛ a a a a 2 : ɛ 4 : b 2 : ɛ 5 : 2 : a 4 : b b b a 2 : 4 : ɛ 2 : 5 : ɛ b a a a 3 : ɛ 4 : 3 : ɛ 5 : b b b a b a a 3 : 4 : ɛ b 3 : 5 : ɛ b a a 16

Bibliography i Büchi, J. R. and Landweber, L. H. (1969). Solving Sequential Conditions by Finite-State Strategies. Transactions of the American Mathematical Society, 138:295 311. Carayol, A. and Löding, C. (2014). Uniformization in Automata Theory. In Proceedings of the 14th Congress of Logic, Methodology and Philosophy of Science Nancy, July 19-26, 2011, pages 153 178, London. College Publications. 17

Bibliography ii Choffrut, C. and Schützenberger, M. P. (1986). Décomposition de fonctions rationnelles. In 2nd Annual Symposium on Theoretical Aspects of Computer Science, STACS, pages 213 226. Filiot, E., Jecker, I., Löding, C., and Winter, S. (2016). On equivalence and uniformisation problems for finite transducers. In 43rd International Colloquium on Automata, Languages, and Programming, ICALP 2016, July 11-15, Rome, Italy, pages 125:1 125:14. 18

Bibliography iii Jecker, I. and Filiot, E. (2015). Multi-sequential word relations. In Proceedings of the 19th International Conference on Developments in Language Theory, DLT 2015, Liverpool, UK, July 27-30, pages 288 299. Kobayashi, K. (1969). Classification of formal languages by functional binary transductions. Information and Control, 15(1):95 109. 19

Bibliography iv Pnueli, A. and Rosner, R. (1989). On the synthesis of a reactive module. In Proceedings of the 16th ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, POPL 89, pages 179 190, New York, NY, USA. ACM. 20