Expressiveness and Closure Properties for Quantitative Languages Krishnendu Chatterjee, IST Austria Laurent Doyen, ULB Belgium Tom Henzinger, EPFL Switzerland.

Slides:



Advertisements
Similar presentations
Black Box Checking Book: Chapter 9 Model Checking Finite state description of a system B. LTL formula. Translate into an automaton P. Check whether L(B)
Advertisements

CS 267: Automated Verification Lecture 8: Automata Theoretic Model Checking Instructor: Tevfik Bultan.
CSE 202 – Formal Languages and Automata Theory 1 REGULAR LANGUAGE.
1 Generalized Buchi automaton. 2 Reminder: Buchi automata A=  Alphabet (finite). S: States (finite).  : S x  x S ) S is the transition relation. I.
Finite Automata CPSC 388 Ellen Walker Hiram College.
1 1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 3 School of Innovation, Design and Engineering Mälardalen University 2012.
Energy and Mean-Payoff Parity Markov Decision Processes Laurent Doyen LSV, ENS Cachan & CNRS Krishnendu Chatterjee IST Austria MFCS 2011.
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
Applied Computer Science II Chapter 1 : Regular Languages Prof. Dr. Luc De Raedt Institut für Informatik Albert-Ludwigs Universität Freiburg Germany.
CS21 Decidability and Tractability
Discounting the Future in Systems Theory Chess Review May 11, 2005 Berkeley, CA Luca de Alfaro, UC Santa Cruz Tom Henzinger, UC Berkeley Rupak Majumdar,
Quantitative Verification Arindam Chakrabarti * Krishnendu Chatterjee * Thomas A. Henzinger * Orna Kupferman ** Rupak Majumdar *** * UC Berkeley ** Hebrew.
Deterministic FA/ PDA Sequential Machine Theory Prof. K. J. Hintz Department of Electrical and Computer Engineering Lecture 4 Updated by Marek Perkowski.
1 Finite Automata. 2 Finite Automaton Input “Accept” or “Reject” String Finite Automaton Output.
Validating Streaming XML Documents Luc Segoufin & Victor Vianu Presented by Harel Paz.
Specification Formalisms Book: Chapter 5. Properties of formalisms Formal. Unique interpretation. Intuitive. Simple to understand (visual). Succinct.
Lecture 3 Goals: Formal definition of NFA, acceptance of a string by an NFA, computation tree associated with a string. Algorithm to convert an NFA to.
Review of the automata-theoretic approach to model-checking.
From Boolean to Quantitative System Specifications Tom Henzinger EPFL.
CS5371 Theory of Computation Lecture 4: Automata Theory II (DFA = NFA, Regular Language)
Designing Predictable and Robust Systems Tom Henzinger UC Berkeley and EPFL.
1 Non-Deterministic Finite Automata. 2 Alphabet = Nondeterministic Finite Automaton (NFA)
Abstract Verification is traditionally done by determining the truth of a temporal formula (the specification) with respect to a timed transition system.
Nondeterminism (Deterministic) FA required for every state q and every symbol  of the alphabet to have exactly one arrow out of q labeled . What happens.
Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008.
Jun. Sun Singapore University of Technology and Design Songzheng Song and Yang Liu National University of Singapore.
Regular Model Checking Ahmed Bouajjani,Benget Jonsson, Marcus Nillson and Tayssir Touili Moran Ben Tulila
Energy Parity Games Laurent Doyen LSV, ENS Cachan & CNRS Krishnendu Chatterjee IST Austria.
Basics of automata theory
THEORY OF COMPUTATION 08 KLEENE’S THEOREM.
Model Checking Lecture 3 Tom Henzinger. Model-Checking Problem I |= S System modelSystem property.
Languages of nested trees Swarat Chaudhuri University of Pennsylvania (with Rajeev Alur and P. Madhusudan)
1 Chapter 3 Scanning – Theory and Practice. 2 Overview Formal notations for specifying the precise structure of tokens are necessary –Quoted string in.
DECIDABILITY OF PRESBURGER ARITHMETIC USING FINITE AUTOMATA Presented by : Shubha Jain Reference : Paper by Alexandre Boudet and Hubert Comon.
Automatic Structures Bakhadyr Khoussainov Computer Science Department The University of Auckland, New Zealand.
CIS 842: Specification and Verification of Reactive Systems Lecture Specifications: LTL Model Checking Copyright , Matt Dwyer, John Hatcliff,
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 3 Mälardalen University 2010.
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 11 Midterm Exam 2 -Context-Free Languages Mälardalen University 2005.
Inferring Finite Automata from queries and counter-examples Eggert Jón Magnússon.
Recognizing safety and liveness Presented by Qian Huang.
1Computer Sciences Department. Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Reference 3Computer Sciences Department.
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
An Introduction to Rabin Automata Presented By: Tamar Aizikowitz Spring 2007 Automata Seminar.
Finite Automata Chapter 1. Automatic Door Example Top View.
When Simulation Meets Antichains Yu-Fang Chen Academia Sinica, Taiwan Joint work with Parosh Aziz Abdulla, Lukas Holik, Richard Mayr, and Tomas Vojunar.
using Deterministic Finite Automata & Nondeterministic Finite Automata
CS 154 Formal Languages and Computability February 9 Class Meeting Department of Computer Science San Jose State University Spring 2016 Instructor: Ron.
Nondeterministic Finite Automata (NFAs). Reminder: Deterministic Finite Automata (DFA) q For every state q in Q and every character  in , one and only.
BİL711 Natural Language Processing1 Regular Expressions & FSAs Any regular expression can be realized as a finite state automaton (FSA) There are two kinds.
Model Checking Lecture 1: Specification Tom Henzinger.
CSCI 4325 / 6339 Theory of Computation Zhixiang Chen.
CSE 202 – Formal Languages and Automata Theory 1 REGULAR EXPRESSION.
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
Model Checking Lecture 2. Model-Checking Problem I |= S System modelSystem property.
Model Checking Lecture 2 Tom Henzinger. Model-Checking Problem I |= S System modelSystem property.
Theory of Computation Automata Theory Dr. Ayman Srour.
Four Lectures on Model Checking Tom Henzinger University of California, Berkeley.
Fall 2004COMP 3351 Finite Automata. Fall 2004COMP 3352 Finite Automaton Input String Output String Finite Automaton.
Non Deterministic Automata
PROPERTIES OF REGULAR LANGUAGES
Chapter 2 FINITE AUTOMATA.
Non-Deterministic Finite Automata
Non-Deterministic Finite Automata
CSE322 Definition and description of finite Automata
Non Deterministic Automata
CS 583 Fall 2006 Analysis of Algorithms
Quantitative Modeling, Verification, and Synthesis
Chapter 1 Regular Language
Non Deterministic Automata
Presentation transcript:

Expressiveness and Closure Properties for Quantitative Languages Krishnendu Chatterjee, IST Austria Laurent Doyen, ULB Belgium Tom Henzinger, EPFL Switzerland LICS 2009

Model-Checking Property/ Specification Yes / No Satisfaction Relation Program/ System -perhaps a proof -perhaps some counterexamples

Model-Checking Property/ Specification Yes/No Trace inclusion Program/ System Formula Every request is followed by a grant Finite automaton

Model-Checking Property/ Specification Yes/No Trace inclusion Program/ System Finite automaton Model-checking is boolean Formula Every request is followed by a grant - a trace is either good or bad

Quantitative Analysis Property/ Specification Value (R) Quantitative Analysis Program/ System Finite automaton Formula Every request is followed by a grant -Measure of “fit” between system and spec -e.g. average number of requests immediately granted

Distance (R) Quantitative Analysis Program/ System #1 Finite automaton - Comparing two implementations e.g. cost or quality measure Program/ System #2 Every request is followed by a grant

Quantitative Model-checking Is there a Quantitative Framework with - an appealing mathematical formulation, - useful expressive power, and - good algorithmic properties ? (Like the boolean theory of  -regularity.) Note: “Quantitative” is more than “timed” and “probabilistic”

A language is a boolean function: Quantitative languages A quantitative language is a function: L(w) can be interpreted as: the amount of some resource needed by the system to produce w (power, energy, time consumption), a reliability measure (the average number of “faults” in w).

Outline Weighted automata Expressive power Closure properties

Weighted automata Quantitative languages are generated by weighted automata. Weight function

Weighted automata Quantitative languages are generated by weighted automata. Weight function Value of a word w: max of {values of the runs r over w} Value of a run r: Val(r) where is a value function

Some value functions (reachability) (Büchi) (coBüchi) (v i  {0,1})

Some value functions (reachability) (Büchi) (coBüchi) (v i  {0,1})

Outline Weighted automata Expressive power Closure properties

Reducibility A class C of weighted automata can be reduced to a class C’ of weighted automata if for all A  C, there is A’  C’ such that L A = L A’.

Reducibility A class C of weighted automata can be reduced to a class C’ of weighted automata if for all A  C, there is A’  C’ such that L A = L A’. E.g. for boolean languages: Nondet. coBüchi can be reduced to nondet. Büchi Nondet. Büchi cannot be reduced to det. Büchi (nondet. Büchi cannot be determinized)

cannot be determinized. Some known facts (CSL’08) cannot be reduced to

Reducibility relations

Cut-point languages Words with value above some threshold: ω-regular for Sup, LimSup, LimInf can be non-ω-regular for LimAvg and Discounted

Cut-point languages LimAvg: «average number of a’s = 1» is not ω-regular A deterministic automaton for would accept (a n b) ω for some n

Cut-point languages Disc: «disc. sum of a’s ≥ 1» is not ω-regular ambiguous word 1 p1p1 p2p2

Cut-point languages Disc: «disc. sum of a’s ≥ 1» is not ω-regular ambiguous word 1 From any two positions p 1 and p 2, there is a continuation accepted from p 1 but not from p 2 p1p1 p2p2

Cut-point Languages Cut-point languages for deterministic LimAvg-automata are studied in [Alur/Degorre/Maler/Weiss’09] Cut-point languages of LimAvg and Discounted can be non-ω-regular Cut-point languages are not robust w.r.t. transition weights.

Cut-point Languages isolated cut-point Isolated cut-point languages are robust Isolated cut-point languages are ω-regular (for deterministic automata)

Cut-point Languages Each s.c.c. defines an interval of values. Make accepting those s.c.c. with interval above LimAvg: s.c.c. decomposition

Either value is, then accept or value is, the reject Cut-point Languages Disc: after sufficiently long prefix, decision can be taken

is reducible to. Expressive power of {0,1}-automata is not reducible to.

is reducible to. Expressive power of {0,1}-automata Store the value A B

is reducible to. Expressive power of {0,1}-automata A B can take finitely many different values. Store the value

is reducible to. Expressive power of {0,1}-automata A B

is reducible to. Expressive power of {0,1}-automata A B

is reducible to. Expressive power of {0,1}-automata A B

is reducible to. Expressive power of {0,1}-automata B A

Therefore for is reducible to. Expressive power of {0,1}-automata AB for all

Outline Weighted automata Expressive power Closure properties

Operations Operations on quantitative languages: shift(L 1,c)(w) = L 1 (w) + c scale(L 1,c)(w) = c·L 1 (w) (c>0)

Operations Operations on quantitative languages: shift(L 1,c)(w) = L 1 (w) + c scale(L 1,c)(w) = c·L 1 (w) (c>0) max(L 1,L 2 )(w) = max(L 1 (w),L 2 (w)) min(L 1,L 2 )(w) = min(L 1 (w),L 2 (w)) complement(L 1 )(w) = 1-L 1 (w)

Operations Operations on quantitative languages: shift(L 1,c)(w) = L 1 (w) + c scale(L 1,c)(w) = c·L 1 (w) (c>0) max(L 1,L 2 )(w) = max(L 1 (w),L 2 (w)) min(L 1,L 2 )(w) = min(L 1 (w),L 2 (w)) complement(L 1 )(w) = 1-L 1 (w) sum(L 1,L 2 )(w) = L 1 (w) + L 2 (w)

Closure properties All classes of weighted automata are closed under shift and scale. All classes of nondeterministic weighted automata are closed under max.

Closure properties

Analogous results for boolean languages.

Closure properties There is no nondeterministic LimAvg automaton for the language L m = min(L a,L b ).

Closure properties There is no nondeterministic LimAvg automaton for the language L m = min(L a,L b ). Assume that L is definable by a LimAvg automaton C.

Closure properties There is no nondeterministic LimAvg automaton for the language L m = min(L a,L b ). Assume that L is definable by a LimAvg automaton C. Then, some a-cycle or b-cycle in C has average weight >0. (consider the word for large)

Closure properties Assume that L is definable by a LimAvg automaton C. Then, some a-cycle or b-cycle in C has average weight >0. Then, some word gets value >0… There is no nondeterministic LimAvg automaton for the language L m = min(L a,L b ).

Closure properties There is no nondeterministic LimAvg automaton for the language L m = min(L a,L b ). There is no nondeterministic Discounted automaton for the language L m = min(L a,L b ). Proof: analogous argument.

Closure properties

min(L 1,L 2 ) = 1-max(1-L 1,1-L 2 )

Closure properties By analogous arguments (analysis of cycles).

Conclusion Quantitative generalization of languages to model programs/systems more accurately. Expressive power: Cut-point languages; {0,1} automata. Closure properties. Outlook: other/equivalent formalisms for quantitative specification ?

Thank you ! Questions ? The end