The Value 1 Problem for Probabilistic Automata

Similar documents
Deciding the value 1 problem for probabilistic leaktight automata

Coalgebra, Lecture 15: Equations for Deterministic Automata

The University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 2 MODULE, SPRING SEMESTER LANGUAGES AND COMPUTATION ANSWERS

Chapter 2 Finite Automata

Formal languages, automata, and theory of computation

Deterministic Finite Automata

1. For each of the following theorems, give a two or three sentence sketch of how the proof goes or why it is not true.

CSE : Exam 3-ANSWERS, Spring 2011 Time: 50 minutes

On Determinisation of History-Deterministic Automata.

CHAPTER 1 Regular Languages. Contents

Theory of Computation Regular Languages. (NTU EE) Regular Languages Fall / 38

12.1 Nondeterminism Nondeterministic Finite Automata. a a b ε. CS125 Lecture 12 Fall 2014

Computing with finite semigroups: part I

Theory of Computation Regular Languages

First Midterm Examination

Non-deterministic Finite Automata

Non-deterministic Finite Automata

Nondeterminism and Nodeterministic Automata

Non-Deterministic Finite Automata. Fall 2018 Costas Busch - RPI 1

State Minimization for DFAs

Probabilistic Automata on Finite words: Decidable and Undecidable Problems

Synchronizing Automata with Random Inputs

Myhill-Nerode Theorem

Non Deterministic Automata. Linz: Nondeterministic Finite Accepters, page 51

CMPSCI 250: Introduction to Computation. Lecture #31: What DFA s Can and Can t Do David Mix Barrington 9 April 2014

Controlling a population of identical NFA

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018

Automata Theory 101. Introduction. Outline. Introduction Finite Automata Regular Expressions ω-automata. Ralf Huuck.

First Midterm Examination

Harvard University Computer Science 121 Midterm October 23, 2012

Anatomy of a Deterministic Finite Automaton. Deterministic Finite Automata. A machine so simple that you can understand it in less than one minute

Assignment 1 Automata, Languages, and Computability. 1 Finite State Automata and Regular Languages

Lecture 9: LTL and Büchi Automata

Finite Automata-cont d

Speech Recognition Lecture 2: Finite Automata and Finite-State Transducers. Mehryar Mohri Courant Institute and Google Research

Convert the NFA into DFA

Regular expressions, Finite Automata, transition graphs are all the same!!

Homework 4. 0 ε 0. (00) ε 0 ε 0 (00) (11) CS 341: Foundations of Computer Science II Prof. Marvin Nakayama

NFAs continued, Closure Properties of Regular Languages

Finite Automata. Informatics 2A: Lecture 3. Mary Cryan. 21 September School of Informatics University of Edinburgh

NFAs continued, Closure Properties of Regular Languages

12.1 Nondeterminism Nondeterministic Finite Automata. a a b ε. CS125 Lecture 12 Fall 2016

A tutorial on sequential functions

Nondeterministic Biautomata and Their Descriptional Complexity

input tape head moves current state

Lecture 08: Feb. 08, 2019

Fundamentals of Computer Science

More general families of infinite graphs

CS 310 (sec 20) - Winter Final Exam (solutions) SOLUTIONS

CHAPTER 1 Regular Languages. Contents. definitions, examples, designing, regular operations. Non-deterministic Finite Automata (NFA)

5. (±±) Λ = fw j w is string of even lengthg [ 00 = f11,00g 7. (11 [ 00)± Λ = fw j w egins with either 11 or 00g 8. (0 [ ffl)1 Λ = 01 Λ [ 1 Λ 9.

Geometric Sequences. Geometric Sequence a sequence whose consecutive terms have a common ratio.

Finite-State Automata: Recap

4 Deterministic Büchi Automata

AUTOMATA AND LANGUAGES. Definition 1.5: Finite Automaton

A negative answer to a question of Wilke on varieties of!-languages

Finite Automata. Informatics 2A: Lecture 3. John Longley. 22 September School of Informatics University of Edinburgh

Bases for Vector Spaces

Formal Languages and Automata

1 Nondeterministic Finite Automata

Good-for-Games Automata versus Deterministic Automata.

Speech Recognition Lecture 2: Finite Automata and Finite-State Transducers

Chapter 4 Regular Grammar and Regular Sets. (Solutions / Hints)

Minimal DFA. minimal DFA for L starting from any other

CISC 4090 Theory of Computation

CS103B Handout 18 Winter 2007 February 28, 2007 Finite Automata

CS 373, Spring Solutions to Mock midterm 1 (Based on first midterm in CS 273, Fall 2008.)

Chapter 1, Part 1. Regular Languages. CSC527, Chapter 1, Part 1 c 2012 Mitsunori Ogihara 1

Formal Methods in Software Engineering

Regular Language. Nonregular Languages The Pumping Lemma. The pumping lemma. Regular Language. The pumping lemma. Infinitely long words 3/17/15

Random subgroups of a free group

Exercises Chapter 1. Exercise 1.1. Let Σ be an alphabet. Prove wv = w + v for all strings w and v.

Grammar. Languages. Content 5/10/16. Automata and Languages. Regular Languages. Regular Languages

In-depth introduction to main models, concepts of theory of computation:

CS415 Compilers. Lexical Analysis and. These slides are based on slides copyrighted by Keith Cooper, Ken Kennedy & Linda Torczon at Rice University

CS 301. Lecture 04 Regular Expressions. Stephen Checkoway. January 29, 2018

Revision Sheet. (a) Give a regular expression for each of the following languages:

The University of Nottingham

CDM Automata on Infinite Words

CSCI 340: Computational Models. Kleene s Theorem. Department of Computer Science

We will see what is meant by standard form very shortly

Model Reduction of Finite State Machines by Contraction

3 Regular expressions

1. For each of the following theorems, give a two or three sentence sketch of how the proof goes or why it is not true.

Intermediate Math Circles Wednesday, November 14, 2018 Finite Automata II. Nickolas Rollick a b b. a b 4

1.4 Nonregular Languages

Designing finite automata II

Pavel Rytí. November 22, 2011 Discrete Math Seminar - Simon Fraser University

Second Lecture: Basics of model-checking for finite and timed systems

Chapter Five: Nondeterministic Finite Automata. Formal Language, chapter 5, slide 1

Module 6 Value Iteration. CS 886 Sequential Decision Making and Reinforcement Learning University of Waterloo

Kleene s Theorem. Kleene s Theorem. Kleene s Theorem. Kleene s Theorem. Kleene s Theorem. Kleene s Theorem 2/16/15

LTL Translation Improvements in Spot

CMSC 330: Organization of Programming Languages

Learning Automata with Hankel Matrices

Part 5 out of 5. Automata & languages. A primer on the Theory of Computation. Last week was all about. a superset of Regular Languages

CS375: Logic and Theory of Computing

Deterministic Finite-State Automata

Relating logic to formal languages

State Complexity of Union and Intersection of Binary Suffix-Free Languages

Transcription:

The Vlue 1 Prolem for Proilistic Automt Bruxelles Nthnël Fijlkow LIAFA, Université Denis Diderot - Pris 7, Frnce Institute of Informtics, Wrsw University, Polnd nth@lif.univ-pris-diderot.fr June 20th, 2014

Proilistic utomt (Rin, 1963), 1 2, 0.4, 0.6 1 3 P A : A [0, 1] P A (w) is the proility tht run for w ends up in F

The vlue 1 prolem 2 This tlk is out the vlue 1 prolem: INPUT:Aproilistic utomton OUTPUT: for ll ε > 0, there exists w A,P A (w) 1 ε. In other words, define vl(a) = sup w A P A (w), is vl(a) = 1?

The vlue 1 prolem 2 This tlk is out the vlue 1 prolem: INPUT:Aproilistic utomton OUTPUT: for ll ε > 0, there exists w A,P A (w) 1 ε. In other words, define vl(a) = sup w A P A (w), is vl(a) = 1? It is undecidle (Gimert nd Oulhdj, 2010). But to wht extent?

Ojective 3 Construct n lgorithm to decide the vlue 1 prolem, which is often correct.

Ojective 3 Construct n lgorithm to decide the vlue 1 prolem, which is often correct. Quntify how often.

Ojective 3 Construct n lgorithm to decide the vlue 1 prolem, which is often correct. Quntify how often. Argue tht you cnnot do more often thn tht.

Outline 3 1 Theory A first ttempt: get rid of numericl vlues A second ttempt: the Mrkov Monoid Algorithm On the optimlity of the Mrkov Monoid Algorithm 2 Prctice: ACMÉ

Outline 3 1 Theory A first ttempt: get rid of numericl vlues A second ttempt: the Mrkov Monoid Algorithm On the optimlity of the Mrkov Monoid Algorithm 2 Prctice: ACMÉ

Outline 3 1 Theory A first ttempt: get rid of numericl vlues A second ttempt: the Mrkov Monoid Algorithm On the optimlity of the Mrkov Monoid Algorithm 2 Prctice: ACMÉ

At first thought 4 Does the undecidility come from the numericl vlues?

At first thought 4 Does the undecidility come from the numericl vlues? Consider numerless proilistic utomt: 1 2 Two decision prolems: for ll, vl(a[ ]) = 1, there exists, such tht vl(a[ ]) = 1.

No future (in this direction) 5 Theorem (F., Horn, Gimert nd Oulhdj) There is no lgorithm such tht: On input A ( non-deterministic utomton), if for ll, vl(a[ ]) = 1 then YES, if for ll, vl(a[ ]) < 1 then NO, nything in the other cses.

Outline 5 1 Theory A first ttempt: get rid of numericl vlues A second ttempt: the Mrkov Monoid Algorithm On the optimlity of the Mrkov Monoid Algorithm 2 Prctice: ACMÉ

An exmple 6, 0 1 F,

An exmple 6, 0 1 F, 0 1 F

An exmple 6, 0 1 F, 0 1 F 0 1 F

An exmple 6, 0 1 F, 0 1 F 0 1 F

An exmple 6, 0 1 F, 0 1 F 0 1 F 0 1 F

An exmple 6, 0 1 F, 0 1 F ( ) 0 1 F

An exmple 6, 0 1 F, 0 1 F 0 1 F 0 1 F 0 1 F ( ) 0 1 F

Stiliztion monoids (Colcomet) 7 This is n lgeric structure with two opertions: inry composition stiliztion, denoted.

Boolen mtrices representtions 8, 0 1 F, = 1 0 0 0 0 1 1 0 0 0 1 0 0 0 0 1 = 1 0 0 0 1 0 0 0 0 1 1 0 0 0 0 1 I u F = 1 if nd only if P A (u) > 0

Defining stiliztion 9 1 2 = ( 1 1 0 1 In, the stte 1 is trnsient nd the stte 2 is recurrent. )

Defining stiliztion 9 1 2 = ( 1 1 0 1 ) = ( 0 1 0 1 In, the stte 1 is trnsient nd the stte 2 is recurrent. )

Defining stiliztion 9 1 2 = ( 1 1 0 1 ) = ( 0 1 0 1 In, the stte 1 is trnsient nd the stte 2 is recurrent. ) { M 1 if M(s, t) = 1 nd t recurrent in M, (s, t) = 0 otherwise.

The Mrkov Monoid Algorithm 10 Compute monoid inside the finite monoid M Q Q ({0, 1},, ). Compute for A: { 1 if PA (s t) > 0, (s, t) = 0 otherwise. Close under product nd stiliztion.

The Mrkov Monoid Algorithm 10 Compute monoid inside the finite monoid M Q Q ({0, 1},, ). Compute for A: { 1 if PA (s t) > 0, (s, t) = 0 otherwise. Close under product nd stiliztion. If there exists mtrix M such tht t Q, M(s 0, t) = 1 t F then A hs vlue 1, otherwise A does not hve vlue 1.

Correctness 11 Theorem If there exists mtrix M such tht then A hs vlue 1. t Q, M(s 0, t) = 1 t F

Correctness 11 Theorem If there exists mtrix M such tht then A hs vlue 1. t Q, M(s 0, t) = 1 t F But the vlue 1 prolem is undecidle, so...

No completeness,, 12 L 2 R 2, 1 x 0, x L 1 R 1, x, 1 2, 1 2 Left nd right prts re symmetric, so for ll M:, 1 x M(0, L 2 ) = 1 M(0, R 2 ) = 1. Yet: it hs vlue 1 if nd only if x > 1 2.

A lek, 13 2 1 3

A lek, 13 2 2 1 1 3 3

A lek, 13 2 2 1 ε 1 3 3 There is lek from 1 to 2.

A lek, 13 2 2 1 1 3 3 There is lek from 1 to 2. Definition An utomton A is lektight if it hs no lek.

Lektight utomt 14 Theorem (F.,Gimert nd Oulhdj 2012) The lgorithm is complete for lektight utomt. Hence, the vlue 1 prolem is decidle for lektight utomt. The proof relies on Simon s fctoriztion forest theorem.

Other decidle suclsses: in 2012 15 simple structurlly simple lektight -cyclic hierrchicl deterministic

Other decidle suclsses: tody 16 (F.,Gimert,Kelmendi nd Oulhdj 2013) lektight

Corollry 17 So fr, the Mrkov Monoid Algorithm is the most correct lgorithm known to solve the vlue 1 prolem.

Corollry 17 So fr, the Mrkov Monoid Algorithm is the most correct lgorithm known to solve the vlue 1 prolem. But for how long?

Outline 17 1 Theory A first ttempt: get rid of numericl vlues A second ttempt: the Mrkov Monoid Algorithm On the optimlity of the Mrkov Monoid Algorithm 2 Prctice: ACMÉ

Wht it misses: different convergence speeds,, 18 L 2 R 2, 1 4 0, 3 4 L 1 R 1, 1 2, 1 2, 3 4 lim n P A (( n ) f(n)) = 1 if nd only if lim n f(n), 1 4 ( ) 3 n =, 4

Wht it misses: different convergence speeds,, 18 L 2 R 2, 1 4 0, 3 4 L 1 R 1, 1 2, 1 2, 3 4 lim n P A (( n ) f(n)) = 1 if nd only if lim n f(n), 1 4 ( ) 3 n =, 4 so f(n) = 2 n works ut f(n) = n does not.

A chrcteriztion 19 Ã is the spce of prostochstic words. A = Ã [0] Ã [1] Ã [2] Ã. Lemm The following re equivlent: The vlue 1 prolem over finite words, The emptiness prolem over prostochstic words.

A chrcteriztion 19 à is the spce of prostochstic words. A = à [0] à [1] à [2] Ã. Lemm The following re equivlent: Theorem The vlue 1 prolem over finite words, The emptiness prolem over prostochstic words. 1 The Mrkov Monoid Algorithm nswers YES if nd only if there exists x à [1] ccepted y A, 2 The following prolem is undecidle: determine whether there exists x à [2] ccepted y A.

Prostochstic words 20 Definition (u n ) n N converges if for every A, the limit lim n P A (u n ) exists.

Prostochstic words 20 Definition (u n ) n N converges if for every A, the limit lim n P A (u n ) exists. Definition Two (converging) sequences (u n ) n N nd (v n ) n N re equivlent if for every A, lim n P A (u n ) > 0 lim n P A (v n ) > 0.

Prostochstic words 20 Definition (u n ) n N converges if for every A, the limit lim n P A (u n ) exists. Definition Two (converging) sequences (u n ) n N nd (v n ) n N re equivlent if for every A, lim n P A (u n ) > 0 lim n P A (v n ) > 0. Definition A prostochstic word is n equivlence clss of converging sequences.

The ω opertors 21 Definition Let u e converging sequence. u ω 1 is the converging sequence (u n! n ) n N.

The ω opertors 21 Definition Let u e converging sequence. u ω 1 is the converging sequence (u n! n ) n N. Definition Let u e converging sequence. u ω k is the converging sequence (u (n!)k n ) n N.

The ω opertors 21 Definition Let u e converging sequence. u ω 1 is the converging sequence (u n! n ) n N. Definition Let u e converging sequence. u ω k is the converging sequence (u (n!)k n ) n N. Exmple The prostochstic words ( ω 1) ω 1 nd ( ω 1) ω 2 re not equl.

An equivlent chrcteriztion 22 Theorem The Mrkov Monoid Algorithm nswers YES if nd only if there exists regulr sequence (u n ) n N of finite words such tht lim n P A (u n ) = 1. The regulr sequences re descried y the following grmmr: u = u u (u n n) n N.

Corollry 23 In some sense, the Mrkov Monoid Algorithm is the most correct lgorithm to solve the vlue 1 prolem.

Outline 23 1 Theory A first ttempt: get rid of numericl vlues A second ttempt: the Mrkov Monoid Algorithm On the optimlity of the Mrkov Monoid Algorithm 2 Prctice: ACMÉ

ACMÉ 24 The tool ACME (Automt with Counters, Monoids nd Equivlence) hs een written in OCml y Nthnël Fijlkow nd Denis Kupererg. ********************************** Sttistics on the Mrkov Monoid Algorithm: ********************************** Automt tht re lektight nd do not hve vlue 1: 540 Automt tht re lektight nd hve vlue 1: 133 Automt tht re not lektight nd my hve vlue 1: 17 Automt tht re not lektight nd hve vlue 1: 310

The end. 25 Thnk you for your ttention!