Behavior Composition in the Presence of Failure

Similar documents
Behavior Composition in the Presence of Failure

Automatic Synthesis of New Behaviors from a Library of Available Behaviors

Abstraction of Nondeterministic Automata Rong Su

On the Maximally-Permissive Range Control Problem in Partially-Observed Discrete Event Systems

Project 6: Minigoals Towards Simplifying and Rewriting Expressions

System Validation (IN4387) November 2, 2012, 14:00-17:00

CS 573 Automata Theory and Formal Languages

Chapter 4 State-Space Planning

NON-DETERMINISTIC FSA

Petri Nets. Rebecca Albrecht. Seminar: Automata Theory Chair of Software Engeneering

Bisimulation, Games & Hennessy Milner logic

AP Calculus BC Chapter 8: Integration Techniques, L Hopital s Rule and Improper Integrals

Nondeterministic Automata vs Deterministic Automata

On Determinism in Modal Transition Systems

Transition systems (motivation)

Arrow s Impossibility Theorem

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

Hybrid Systems Modeling, Analysis and Control

where the box contains a finite number of gates from the given collection. Examples of gates that are commonly used are the following: a b

Pre-Lie algebras, rooted trees and related algebraic structures

Unfoldings of Networks of Timed Automata

Alpha Algorithm: Limitations

Electromagnetism Notes, NYU Spring 2018

University of Sioux Falls. MAT204/205 Calculus I/II

Engr354: Digital Logic Circuits

Appendix C Partial discharges. 1. Relationship Between Measured and Actual Discharge Quantities

Arrow s Impossibility Theorem

Chapter 2 Finite Automata

Nondeterministic Finite Automata

Linear Algebra Introduction

Unit 4. Combinational Circuits

Generalization of 2-Corner Frequency Source Models Used in SMSIM

1 PYTHAGORAS THEOREM 1. Given a right angled triangle, the square of the hypotenuse is equal to the sum of the squares of the other two sides.

Symmetrical Components 1

6.5 Improper integrals

CS 2204 DIGITAL LOGIC & STATE MACHINE DESIGN SPRING 2014

= state, a = reading and q j

Technische Universität München Winter term 2009/10 I7 Prof. J. Esparza / J. Křetínský / M. Luttenberger 11. Februar Solution

1 Nondeterministic Finite Automata

Active Diagnosis. Serge Haddad. Vecos 16. October the 6th 2016

(a) A partition P of [a, b] is a finite subset of [a, b] containing a and b. If Q is another partition and P Q, then Q is a refinement of P.

PYTHAGORAS THEOREM WHAT S IN CHAPTER 1? IN THIS CHAPTER YOU WILL:

Functions. mjarrar Watch this lecture and download the slides

Algorithm Design and Analysis

Algorithm Design and Analysis

Math 32B Discussion Session Week 8 Notes February 28 and March 2, f(b) f(a) = f (t)dt (1)

Prefix-Free Regular-Expression Matching

Exercise 3 Logic Control

Logic Synthesis and Verification

CS311 Computational Structures Regular Languages and Regular Grammars. Lecture 6

Section 1.3 Triangles

Activities. 4.1 Pythagoras' Theorem 4.2 Spirals 4.3 Clinometers 4.4 Radar 4.5 Posting Parcels 4.6 Interlocking Pipes 4.7 Sine Rule Notes and Solutions

Alpha Algorithm: A Process Discovery Algorithm

Probability. b a b. a b 32.

Introduction to Olympiad Inequalities

More on automata. Michael George. March 24 April 7, 2014

BİL 354 Veritabanı Sistemleri. Relational Algebra (İlişkisel Cebir)

Lecture Notes No. 10

TIME AND STATE IN DISTRIBUTED SYSTEMS

Discrete Structures Lecture 11

Exercises with (Some) Solutions

Algorithms & Data Structures Homework 8 HS 18 Exercise Class (Room & TA): Submitted by: Peer Feedback by: Points:

A Study on the Properties of Rational Triangles

Chapter 5 Plan-Space Planning

CHENG Chun Chor Litwin The Hong Kong Institute of Education

Section 4.4. Green s Theorem

MA10207B: ANALYSIS SECOND SEMESTER OUTLINE NOTES

A Differential Approach to Inference in Bayesian Networks

Strong Bisimulation. Overview. References. Actions Labeled transition system Transition semantics Simulation Bisimulation

Learning Partially Observable Markov Models from First Passage Times

CSC2542 State-Space Planning

The Area of a Triangle

arxiv: v1 [math.ca] 21 Aug 2018

Foundation of Diagnosis and Predictability in Probabilistic Systems

, g. Exercise 1. Generator polynomials of a convolutional code, given in binary form, are g. Solution 1.

Convert the NFA into DFA

Coalgebra, Lecture 15: Equations for Deterministic Automata

Supervisory Control under Partial Observation

AC/DC/AC Converters: Two-Level and Multilevel VSI

Designing finite automata II

Part 4. Integration (with Proofs)

Finite State Automata and Determinisation

Solutions to Assignment 1

Running an NFA & the subset algorithm (NFA->DFA) CS 350 Fall 2018 gilray.org/classes/fall2018/cs350/

The area under the graph of f and above the x-axis between a and b is denoted by. f(x) dx. π O

Logic Synthesis and Verification

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

1.3 SCALARS AND VECTORS

LESSON 11: TRIANGLE FORMULAE

Lecture 1 - Introduction and Basic Facts about PDEs

In right-angled triangles the square on the side subtending the right angle is equal to the squares on the sides containing the right angle.

Exercise sheet 6: Solutions

CS 491G Combinatorial Optimization Lecture Notes

Laboratory for Foundations of Computer Science. An Unfolding Approach. University of Edinburgh. Model Checking. Javier Esparza

Section 3.6. Definite Integrals

Intermediate Math Circles Wednesday 17 October 2012 Geometry II: Side Lengths

CS103B Handout 18 Winter 2007 February 28, 2007 Finite Automata

Computing data with spreadsheets. Enter the following into the corresponding cells: A1: n B1: triangle C1: sqrt

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

On Implicative and Strong Implicative Filters of Lattice Wajsberg Algebras

Transcription:

Behior Composition in the Presene of Filure Sestin Srdin RMIT Uniersity, Melourne, Austrli Fio Ptrizi & Giuseppe De Giomo Spienz Uni. Rom, Itly KR 08, Sept. 2008, Sydney Austrli Introdution There re t lest two kinds of gmes. One ould e lled finite, the other infinite. A finite gme is plyed for the purpose of winning...... n infinite gme for the purpose of ontinuing the ply. Finite nd Infinite Gmes J. P. Crse

Behior omposition s Plnning Plnning Opertors: tomi Gol: desired stte of ffir Finite gme: ompose opertor sequentilly so s to reh the gol Plying strtegy: pln Behior omposition Opertors : ille trnsition systems Gol : trget trnsition system Infinite gme: ompose ille trnsition systems onurrently so s to ply the trget trnsition systems Plying strtegy: omposition ontroller Behior omposition Gien: - set of ille ehiors B 1,,B n - trget ehior T we wnt to relize T y delegting tions to B 1,,B n i.e.: ontrol the onurrent exeution of B 1,,B n so s to mimi T oer time Behior omposition: synthesis of the ontroller 4

5 Exmple,2,3,2,1,1,2,1,1,2,2,3,2,3,3,2,2 5 Exmple,2,3,2,1,1,2,1,1,2,2,3,2,3,3,2,2

5 Exmple,2,3,2,1,1,2,1,1,2,2,3,2,3,3,2,2 5 Exmple,2,3,2,1,1,2,1,1,2,2,3,2,3,3,2,2

5 Exmple,2,3,2,1,1,2,1,1,2,2,3,2,3,3,2,2 5 Exmple,2,3,2,1,1,2,1,1,2,2,3,2,3,3,2,2

6 Exmple,2,3,2,1,1,2,1,1,2,2,3,2,3,3,2,2 6 Exmple,2,3,2,1,1,2,1,1,2,2,3,2,3,3,2,2

6 Exmple,2,3,2,1,1,2,1,1,2,2,3,2,3,3,2,2 6 Exmple,2,3,2,1,1,2,1,1,2,2,3,2,3,3,2,2

6 Exmple,2,3,2,1,1,2,1,1,2,2,3,2,3,3,2,2 6 Exmple,2,3,2,1,1,2,1,1,2,2,3,2,3,3,2,2

7 Exmple,2,3,2,1,1,2,1,1,2,2,3,2,3,3,2,2 7 Exmple,2,3,2,1,1,2,1,1,2,2,3,2,3,3,2,2

7 Exmple,2,3,2,1,1,2,1,1,2,2,3,2,3,3,2,2 7 Exmple,2,3,2,1,1,2,1,1,2,2,3,2,3,3,2,2

7 Exmple,2,3,2,1,1,2,1,1,2,2,3,2,3,3,2,2 7 Exmple,2,3,2,1,1,2,1,1,2,2,3,2,3,3,2,2

Synthesizing omposition Tehniques for omputing ompositions: Redution to PDL SAT [IJCAI07, AAAI07, VLDB05, ICSOC03] Simultion-sed LTL synthesis s model heking of gme struture [ICAPS08] All tehniques re for finite stte ehiors 8 Synthesizing omposition Tehniques for omputing ompositions: Redution to PDL SAT [IJCAI07, AAAI07, VLDB05, ICSOC03] Simultion-sed LTL synthesis s model heking of gme struture [ICAPS08] All tehniques re for finite stte ehiors 8

Diretly sed on Simultion-sed tehnique... ontrol the onurrent exeution of B 1,,B n so s to mimi T Note this is possile...... if the onurrent exeution of B 1,,B n n mimi T Thm: this is possile iff... the synhronous (Crtesin) produt C of B 1,,B n n (ND-)simulte T 9 Simultion reltion Gien two trnsition systems T = < A,ST, t 0,!T> nd C = < A, SC, sc 0,! C > (ND-)simultion is reltion R etween the sttes t! T n (,..,sn) of C suh tht: (t,,..,sn)! R implies tht # si " s i in Bi for ll t " t exists Bi! C s.t. $ si " s i in Bi % (t,,..,s i,..,sn)! R If exists simultion reltion R suh tht (t0, s C 0 )! R, then we sy tht T is simulted y C. Simulted-y is (i) simultion; (ii) the lrgest simultion. Simulted-y is oindutie definition

Simultion reltion Gien two trnsition systems T = < A,ST, t 0,!T> nd C = < A, SC, sc 0,! C > (ND-)simultion is reltion R etween the sttes t! T n (,..,sn) of C suh tht: (t,,..,sn)! R implies tht # si " s i in Bi for ll t " t exists Bi! C s.t. $ si " s i in Bi % (t,,..,s i,..,sn)! R If exists simultion reltion R suh tht (t0, s C 0 )! R, then we sy tht T is simulted y C. Simulted-y is (i) simultion; (ii) the lrgest simultion. Simulted-y is oindutie definition Exmple,2,2,3,3,2,2,1,1,1,1,2,3,3,2,2,2 11

Rehility reltion (Plnning) A inry reltion R is rehility-like reltion iff: (s,s)! R if #. s. s " s & (s,s )! R then (s,s )! R A stte sg of trnsition system S is rehle-from stte s0 iff for ll rehility-like reltions R we he (s0, sg)! R. rehle-from is (i) rehility-like reltion itself; (ii) the smllest rehility-like reltion. Rehle-from is indutie definition! Rehility reltion (Plnning) A inry reltion R is rehility-like reltion iff: (s,s)! R if #. s. s " s & (s,s )! R then (s,s )! R A stte sg of trnsition system S is rehle-from stte s0 iff for ll rehility-like reltions R we he (s0, sg)! R. rehle-from is (i) rehility-like reltion itself; (ii) the smllest rehility-like reltion. Rehle-from is indutie definition!

Simultion reltion (ont.) Algorithm Compute (ND-)simultion Input: trget ehior T = <A, ST, t 0,!T, FT> nd (Crt. prod. of) ille ehiors C= <A, S C, s C 0,! C, F C > Output: the simulted-y reltion (the lrgest simultion) Body R = ' R = ST ( S C while (R " R ) { R := R R := R - {(t,,..,sn) # t " t in T & $ Bi. # s " s in Bi ) # si " s i in Bi & (t,,..s i,..sn) *! R } } return R End Simultion reltion (ont.) Algorithm Compute (ND-)simultion Input: trget ehior T = <A, ST, t 0,!T, FT> nd (Crt. prod. of) ille ehiors C= <A, S C, s C 0,! C, F C > Output: the simulted-y reltion (the lrgest simultion) Body R = ' R = ST ( S C while (R " R ) { R := R R := R - {(t,,..,sn) # t " t in T & $ Bi. # s " s in Bi ) # si " s i in Bi & (t,,..s i,..sn) *! R } } return R End

Computing omposition i simultion Let S1,...,Sn e the TSs of the ille ehiors. The Aille ehiors TS C = < A, S C, s 0 C,! C, F C > is the synhronous produt of S1,...,Sn where: A is the set of tions SC = S1 (...( Sn sc 0 = (s 0 1,..., s 0 m)! C + S C ( A ( S C is defined s follows: ( (...( sn) " (s 1 (...( s n) iff # i. si " s i!!i $ j"i. s j = sj 14 Using simultion for omposition Gien the lrgest simultion R of T y C, we n uild eery omposition through the ontroller genertor (CG). CG = < A, [1,,n], Sr, sr 0,!, #> with A : the tions shred y the ehiors [1,,n]: the identifiers of the ille ehiors Sr = ST( S1 (...( Sn : the sttes of the ontroller genertor sr 0 = (t 0, s 0 1,..., s 0 n) : the initil stte of the ontroller genertor #: Sr ( A " 2 [1,,n] : the output funtion, defined s follows:!(t,,..,sn, ) = { i Bi n do nd remin in R}! + Sr ( A ( [1,,n] " Sr : the stte trnsition funtion, defined s follows (t,,..,si,..,sn)",i (t,,..,s i,..,sn) iff i! #(t,,..,si,..,sn, ) 15

Exmple,2,2,3,3,2,2,1,1,1,1,2,3,3,2,2,2 16 Exmple 16,3,2,2,3,2,2,1,1 W(,,),2 = {1,2} W(,,) = {2},1,3 W(,,) = {2} W(,,) = {2} W(,,),1 = {3} W(,,) = {1,3} W(,,) = {2} W(,,) = {2} W(,,) = {1} W(,,) = {2} W(,,) = {1,3} W(,,) = {2},3,2,2,2

Results for simultion Thm: Choosing t eh point ny lue in! gies us orret ontroller for the omposition. Thm: Eery ontroller tht is omposition n e otined y hoosing, t eh point, suitle lue in!. Thm: Computing the ontroller genertor is EXPTIME (omposition is EXPTIME-omplete [IJCAI07]) where the exponentil depends only on the numer (not the size) of the ille ehiors. 17 Behior filures Components my eome unexpetedly unille for rious resons. We onsider four kinds of ehior filures: A ehior temporrily freezes; it will eentully resume in the sme stte it ws in; A ehior (or the enironment) unexpetedly nd ritrrily (i.e., without respeting its trnsition reltion) hnges its urrent stte; A ehior dies - it eomes permnently unille. A ded ehior unexpetedly omes lie gin (this is n opportunity more thn filure).

Just-in-time omposition One we he the ontroller genertor...... we n oid hoosing ny prtiulr omposition priori...... nd use diretly! to hoose the ille ehior to whih delegte the next tion. We n e lzy nd mke suh hoie just-in-time, possily dpting retiely to runtime feedk. 19 Retie filure reoery with CG CG lredy soles: Temporry freezing of n ille ehior B i - In priniple: wit for Bi - But with CG: stop seleting Bi until it omes k! - - - Unexpeted ehior (enironment) stte hnge In priniple: reompute CG / simulted-y from new initil stte...... ut CG / simulted-y independent from initil stte! Hene: simply use old CG / simulted-y from the new stte!! 20

Prsimonious filure reoery Algorithm Computing (ND-)simultion - prmetrized ersion Input: trnsition system T = <A, T, t 0,!T, FT> nd trnsition system C= <A, S, s C 0,! C, F C > reltion Rrw inluding the simulted-y reltion reltion Rsure inluded the simulted-y reltion Output: the simulted-y reltion (the lrgest simultion) Body Q = ' Q = Rrw - Rsure //Note R = (Q! Rsure) while (Q " Q ) { Q := Q Q := Q - {(t,,..,sn) # t " t in T & $ Bi. # s " s in Bi ) # si " s i in Bi & (t,,..s i,..sn) *! Q! Rsure } } return Q! Rsure 21 End Prsimonious filure reoery (ont.) Let [1,.., n] = W! F e the ille ehiors. Let R = RW!F e the simulted-y reltion of trget y ehiors W! F. Then the following hold: RW "!W(RW!F) -!W(RW!F) is not simultion in generl - Behiors F die: ompute RW with Rrw =!W(RW!F)! RW " F " RW!F - RW " F is simultion of trget y ehiors W! F - Ded ehiors F ome k: ompute RW!F with Rsure = RW " F! 22

Tools for omputing omposition sed on simultion Computing simultion is well-studied prolem (relted to isimultion, key notion in proess lger). Tools, like the Edinurgh Conurreny Workenh nd its lones, n e dpted to ompute omposition i simultion. Also LTL-sed syntesis tools, like TLV, n e used for (indiretly) omputing omposition i simultion [Ptrizi PhD08] We re urrently foussing on the seond pproh. 23 Behior omposition: n infinite gme. Simultion sed omposition tehniques llow for filure tolerne! It relies on ontroller genertor: kind of stteful uniersl pln genertor for omposition. Full oserility of ille ehior sttes is ruil for CG to work properly. But... Prtil oserility ddressle y mnipulting knowledge sttes! [work in progress] Conlusion All tehniques re for finite sttes. Wht out deling with infinite sttes? Very diffiult, ut lso ruil when mixing proesses nd dt! 24