A Weak Bisimulation for Weighted Automata

Similar documents
Axioms of Kleene Algebra

Introduction to Kleene Algebras

Kleene Algebra and Arden s Theorem. Anshul Kumar Inzemamul Haque

Kleene Algebras and Algebraic Path Problems

Obtaining the syntactic monoid via duality

Solving weakly linear inequalities for matrices over max-plus semiring and applications to automata theory

On Fixed Point Equations over Commutative Semirings

Duality and Automata Theory

An Overview of Residuated Kleene Algebras and Lattices Peter Jipsen Chapman University, California. 2. Background: Semirings and Kleene algebras

On closures of lexicographic star-free languages. E. Ochmański and K. Stawikowska

Duality in Logic. Duality in Logic. Lecture 2. Mai Gehrke. Université Paris 7 and CNRS. {ε} A ((ab) (ba) ) (ab) + (ba) +

Kleene modules and linear languages

MATH 433 Applied Algebra Lecture 22: Semigroups. Rings.

Introduction to Finite-State Automata

Compositions of Tree Series Transformations

Completeness of Star-Continuity

Lecture 2: Connecting the Three Models

Trace Refinement of π-calculus Processes

Concurrent Processes and Reaction

Applications of Regular Algebra to Language Theory Problems. Roland Backhouse February 2001

Regular Expressions. Definitions Equivalence to Finite Automata

Bounded Stacks, Bags and Queues

Equational Theory of Kleene Algebra

CSE 105 Homework 1 Due: Monday October 9, Instructions. should be on each page of the submission.

From Monadic Second-Order Definable String Transformations to Transducers

Models of Concurrency

Hierarchy among Automata on Linear Orderings

CMPSCI 250: Introduction to Computation. Lecture #29: Proving Regular Language Identities David Mix Barrington 6 April 2012

An Algebraic Approach to Energy Problems I -Continuous Kleene ω-algebras

A Synchronous Process Calculus for Service Costs

An Equational Axiomatization for Multi-Exit Iteration

Closure Properties of Regular Languages. Union, Intersection, Difference, Concatenation, Kleene Closure, Reversal, Homomorphism, Inverse Homomorphism

Advanced Automata Theory 9 Automatic Structures in General

CS 121, Section 2. Week of September 16, 2013

Monoidal Categories, Bialgebras, and Automata

An algebraic characterization of unary two-way transducers

Some decision problems on integer matrices

Advanced Automata Theory 10 Transducers and Rational Relations

A Note on Scope and Infinite Behaviour in CCS-like Calculi p.1/32

Regular Expressions and Language Properties

Coinductive Proof Techniques for Language Equivalence

A GENERALIZATION OF BI IDEALS IN SEMIRINGS

BASIC MATHEMATICAL TECHNIQUES

Introduction to Finite Automaton

Streams and Coalgebra Lecture 2

GENERATING SETS AND DECOMPOSITIONS FOR IDEMPOTENT TREE LANGUAGES

ON THE STAR-HEIGHT OF SUBWORD COUNTING LANGUAGES AND THEIR RELATIONSHIP TO REES ZERO-MATRIX SEMIGROUPS

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

Solving fixed-point equations over semirings

The theory of regular cost functions.

Introduction to Kleene Algebra Lecture 9 CS786 Spring 2004 February 23, 2004

Mathematical Preliminaries. Sipser pages 1-28

Chapter 3. Regular grammars

Overlapping tile automata:

TROPICAL SCHEME THEORY

An introduction to process calculi: Calculus of Communicating Systems (CCS)

A Unique Decomposition Theorem for Ordered Monoids with Applications in Process Theory

Automata on linear orderings

A Graph Rewriting Semantics for the Polyadic π-calculus

Regular expressions and Kleene s theorem

Languages, logics and automata

The Algebra of Connectors Structuring Interaction in BIP

A Proof System for Timed Automata

Chapter 0 Introduction. Fourth Academic Year/ Elective Course Electrical Engineering Department College of Engineering University of Salahaddin

A Behavioral Congruence for Concurrent Constraint Programming with Nondeterministic Choice

A Characterization of Regular Expressions under Bisimulation

Communicating and Mobile Systems

UNIT-II. NONDETERMINISTIC FINITE AUTOMATA WITH ε TRANSITIONS: SIGNIFICANCE. Use of ε-transitions. s t a r t. ε r. e g u l a r

From Sequential Algebra to Kleene Algebra: Interval Modalities and Duration Calculus. Peter Höfner. Report Juli 2005

SYNTACTIC SEMIGROUP PROBLEM FOR THE SEMIGROUP REDUCTS OF AFFINE NEAR-SEMIRINGS OVER BRANDT SEMIGROUPS

CS:4330 Theory of Computation Spring Regular Languages. Finite Automata and Regular Expressions. Haniel Barbosa

Equational Logic. Chapter Syntax Terms and Term Algebras

Nondeterministic Finite Automata

Control Hierarchies and Tropical Algebras

Notes on generating functions in automata theory

CONCATENATION AND KLEENE STAR ON DETERMINISTIC FINITE AUTOMATA

Concurrent automata vs. asynchronous systems

Duality in Probabilistic Automata

The State Explosion Problem

COM364 Automata Theory Lecture Note 2 - Nondeterminism

A note on coinduction and weak bisimilarity for while programs

Sri vidya college of engineering and technology

Universal Disjunctive Concatenation and Star

Boolean Inner-Product Spaces and Boolean Matrices

Decidable Subsets of CCS

1 Alphabets and Languages

A Generalized Eigenmode Algorithm for Reducible Regular Matrices over the Max-Plus Algebra

Universität Augsburg

R S. Publication (rspublication.com), Page 316

REVIEW QUESTIONS. Chapter 1: Foundations: Sets, Logic, and Algorithms

An Algebra of Hybrid Systems

Finite State Machines 2

Lecture #14: NP-Completeness (Chapter 34 Old Edition Chapter 36) Discussion here is from the old edition.

Finite and Algorithmic Model Theory II: Automata-Based Methods

COMPUTING LOCAL UNIFIERS IN THE DESCRIPTION LOGIC EL WITHOUT THE TOP CONCEPT

Finite Automata and Regular Languages

CSE 311: Foundations of Computing. Lecture 23: Finite State Machine Minimization & NFAs

Weighted automata coalgebraically

Computability and Complexity

Classes of Boolean Functions

Transcription:

Weak Bisimulation for Weighted utomata Peter Kemper College of William and Mary Weighted utomata and Semirings here focus on commutative & idempotent semirings Weak Bisimulation Composition operators Congruence property

Motivation Notions of equivalence have been detected for many notations: process algebras automata stochastic processes Equivalences are useful for a theoretical investigation of equivalent behaviour increasing the efficiency of analysis techiques by minimization to the smallest equivalent automaton composition of minimized automata requires congruence property! Many different equivalences exist: trace-equivalence, failure equivalence, strong / weak bisimulation,... We consider a weak bisimulation for automata whose nodes and edges are annotated by labels and weights. Weights are elements of an algebra -> a semiring.

Semiring Semiring K +,* = ( K, +,*,0,) Operations + and * defined for K have the following properties associative: + and * commutative: + right/left distributive for + with respect to * 0 and are additive and multiplicative identities with 0 for all What is so special? Similar to a ring, but each element need not(!) have an additive inverse. Special cases: k! K 0 * k = k *0 = 0 Idempotent semiring (or Dioid): + is idempotent: a+a=a Commutative semiring: * is commutative

lternative definition Semiring semiring is a set K equipped with two binary operations + and, called addition and multiplication, such that: (K, +) is a commutative monoid with identity element 0: (a + b) + c = a + (b + c) 0 + a = a + 0 = a a + b = b + a (K, ) is a monoid with identity element : (a b) c = a (b c) a = a = a Multiplication distributes over addition: a (b + c) = (a b) + (a c) (a + b) c = (a c) + (b c) 0 annihilates K: 0 a = a 0 = 0 4

Semiring Semiring K +,* = ( K, +,*,0,) Examples Boolean semiring Real numbers max/+ semiring min/+ semiring max/min semiring square matrices ( B,,!,0,) ( R, +,*,0,) ( R #!, max, +,!,0) ( R!,min, +,!,0) ( R #! #!, max, min,!,!) n!n ( R, +,*,0,) Kleene algebra is an idempotent semiring R with an additional unary operator * : R R called the Kleene star. Kleene algebras are important in the theory of formal languages and regular expressions. 5

Idempotent Semiring Let s define a partial order on an idempotent semiring: a b whenever a + b = b (or, equivalently, if there exists an x such that a + x = b). Observations: 0 is the least element with respect to this order: 0 a for all a. ddition and multiplication respect the ordering : a b implies ac bc ca cb (a+c) (b+c) 6

Kleene lgebra Kleene algebra is a set with two binary operations + : and : and one function * :, (Notation: a+b, ab and a*) and ssociativity of + and, Commutativity of + Distributivity of over + Identity elements for + and : exists 0 in such that for all a in : a + 0 = 0 + a = a. exists in such that for all a in : a = a = a. a0 = 0a = 0 for all a in. The above axioms define a semiring. We further require: + is idempotent: a + a = a for all a in. 7

Kleene lgebra Let s define a partial order on : a b if and only if a + b = b (or equivalently: a b if and only if exists x in such that a + x = b). With this order we can formulate the last two axioms about the operation *: + a(a*) a* for all a in. + (a*)a a* for all a in. if a and x are in such that ax x, then a*x x if a and x are in such that xa x, then x(a*) x Think of a + b as the union or the least upper bound of a and b and of ab as some multiplication which is monotonic, in the sense that a b implies ax bx. The idea behind the star operator is a* = + a + aa + aaa +... From the standpoint of programming theory, one may also interpret + as choice, as sequencing and * as iteration. Example: Set of regular expressions over a finite alphabet 8

Weighted utomaton finite K-utomaton over finite alphabet L (including τ ) is with S : finite set of states and maps giving initial, transition and final weights. E.g. weights interpreted as costs, distances, time,... Weights multiply along a path, sum up over different paths. = ( S,, T,! ) : S! K, T : S L S! K, : S! K We focus on commutative and idempotent K-automata, i.e., K is a semiring where * is commutative and + is idempotent! Examples Boolean semiring max/+ semiring min/+ semiring max/min semiring Transitions are described by matrices Idempotency implies: k # # #! k= 0 =! k= 0! k= 0 k k 9

Examples 0 a, b, a, Final weight = b, Boolean semiring, weights encode existence / non-existence of paths in directed graphs labels serve the same purpose, hence weights are usually omitted idempotency is quite natural: existence of a paths remains valid in case of multiple paths Max/+ semiring interpretation weights are multiplied along a path, * is +, weight of a path is the sum over all edge weights sum over all paths starting at a node is given by max, hence the path with highest weight is taken (snob if these are costs, greedy if this is profit) Max/Min semiring interpretation weight of a path: * is min, weight of a path gives minimal weight of its edges sum over paths: + is max, selects path whose bottleneck has largest capacity 4 5 Label is τ, Initial weight = 0

Some more notation Weight of path π or by vectors/matrices Weight of sequence σ w( & ) = = a( s 0 ) ( n %( s ) 0)! i T ( si, li, si ) ( n M ( s, s )) b( s )! i= li i# ( n a! M )b! w(# ) = i= li = # $ i n ( s n ) Define automaton * where sequences of τ-transitions are replaced by single ε transition. * M$ = M# =! M i= 0 i # Weight of sequence σ, M = M! M! M, b = M! b l l w ( $ = a! = a! ( n ) = a! ) i= Mli! b ( n M M! M ) i= # li #! ( n M M )! M! b i= # li # M #! b

Weak bisimulation of K-automata n equivalence relation if R S! S is a weak bisimulation relation for all ( s, s)! R, all l! L \{ $ }{# }, all equivalence classes C! S / ( s! ( s T ( s ) = ( s ), l, C) ) =! ( s ) = T ( s, l, C) or in terms of matrices a( s b ( s ) ) = a( s M l ( s, C) = M l ( s ) = b ( s ) R, C) Two states are weakly bisimilar, s! s, if ( s, s )! R! Two automata are weakly bisimilar,, if there is a weak bisimulation on the union of both automata such that (C) = (C) for all C! S / R

If & for all# % Theorem for Ki - utomata L * where L = ( L $, L then w ) \{ } $ {! } ( # ) = w ( # ) Weights of sequences are equal in weakly bisimilar automata. Ki? commutative and idempotent semiring K Sequence? sequence considers all paths that have same sequence of labels, may start or stop at any state Weakly? Paths can contain subpaths of τ-labeled transitions represented by a single ε-labeled transition.

Example a, 0 b, is weakly bisimilar for max/+ semiring 0 a, b, a, 4 5 a, 0 b, is weakly bisimilar for min/max semiring b, 0 a, b, a, b, is weakly bisimilar for min/+ and max/min semiring 4

Deloping further consider largest bisimulation, i.e. the one with fewest classes same argumentation as for Milner s CCS computation by O(nm) fix point algorithm, n states, m edges starting from boolean semiring as in the concurrency workbench (Cleaveland, Parrows, Steffen) extended to semiring of real numbers by Buchholz extension to more general semirings straightforward more efficient ones like O(n log m) as for boolean semiring??? presupposes also computation of * bisimulation useful if preserved by composition operations (congruence property) composition operations for automata? sum direct or cascaded product synchronized product specific type of choice good news: these are all ok!!! but how are they defined? 5

Composition operations Sum union of automata with no interaction Direct or cascaded product build union of state sets and labels take initial weights only from first automaton Label is τ, Initial weight = Final weight = take final weights only from second automaton connect first with second automaton by new τ-transitions between final states of first, initial states of second automaton a, a, 0 b, a, 4 5 0 b, a, b, b, 6

Composition operations Sum union of automata with no interaction Direct or cascaded product build union of state sets and labels take initial weights only from first automaton take final weights only from second automaton Label is τ, Initial weight = Final weight = connect first with second automaton by new tau-transitions between final states of first, initial states of second automaton a, a, 0 b, a, 4 5 6 7 b, a, b, 8 b, Label is τ,* 7

Composition operations Synchronized product (with subset of labels for synchronisation) build cross product of state sets, union of label sets take product of initial weights take product of final weights take product of transition weights in case of synch otherwise proceed independently Note: free product is special case with empty set of labels for synchronisation a, 0 b, a, 0 b, Synch on {a} τ,+ b, b, 0,0,0 a,* 0,, τ,+ b, τ,+ b, τ,+ 8

Composition operations Synchronized product (with subset of labels for synchronisation) build cross product of state sets, union of label sets take product of initial weights take product of final weights take product of transition weights in case of synch otherwise proceed independently Note: free product is special case with empty set of labels for synchronisation Choice connects automata by merging only initial states initial states must be unique and have initial weight and equal final weights a, 0 b, a, 0 b, b, 0 a, a, b, 9

If... Theorem and if choice is defined then 4. + #! L C and # +! are finite Ki - utomata then and L C and # and! L C #! L C direct sum direct product synchronized product choice Some notes on proofs: proofs are lengthy, argumentation based matrices helps, argumentation along paths, resp. sequences more tedious idempotency simplifies valuation for concatenation of τ*l τ* transitions note that algebra does not provide inverse elements wrt + and * 0

Summary Weak Bisimulation for weighted automata over commutative and idempotent semirings Congruence for sum direct or cascaded product synchronized product specific choice operator References: P.Buchholz,P.Kemper: Weak bisimulation for (max/+) automata and related models; Journal of utomata, Languages and Combinatorics, Vol 8, Number, 00. P.Buchholz,P.Kemper: Quantifying the dynamic behaviour of process algebras; Proc. joint PPM/ProbMIV w shop, Springer LNCS 65, 00.