Transcript
Page 1: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Quantitative Languages

Krishnendu Chatterjee, UCSC

Laurent Doyen, EPFL

Tom Henzinger, EPFL

CSL 2008

Page 2: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Languages

L(A) Σω

A language

can be viewed as a boolean function:

LA: Σω → {0,1}

Page 3: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Model-Checking

Model A of the program

Model B of the specification

does the program A satisfy the specification B ?

²A B?Questio

n:

Input:

Model-checking problem

Page 4: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Automata & Languages

Input: finite automata A and B

Question: is L(A) L(B) ?

Model-checking as language

inclusion

²A B?

Page 5: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Automata & Languages

Input: finite automata A and B

Question: is LA(w) LB(w) for all words w ?

Languages are boolean

Model-checking as language

inclusion

Page 6: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Quantitative languages

A quantitative language (over infinite words) 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),

• a probability, etc.

Page 7: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Is LA(w) LB(w) for all words w ?

Quantitative languages

Quantitative language inclusion

LA(w)

peak resource consumption

Long-run average response time

LB(w)

resource bound a

Average response-time requirement

Example:

Page 8: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Outline

• Motivation

• Weighted automata

• Decision problems

• Expressive power

Page 9: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Automata

Boolean languages are generated by finite automata.

Nondeterministic Büchi automaton

Page 10: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Automata

Boolean languages are generated by finite automata.

Nondeterministic Büchi automaton

Value of a run r: Val(r)=1 if an accepting state occurs -ly often in r

Page 11: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Automata

Boolean languages are generated by finite automata.

Nondeterministic Büchi automaton

Value of a run r: Val(r)=1 if an accepting state occurs -ly often in r

Value of a word w: max of {values of the runs r over w}

Page 12: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Automata

Boolean languages are generated by finite automata.

Nondeterministic Büchi automaton

LA(w) = max of {Val(r) | r is a run of A over w}

Page 13: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Weighted automata

Quantitative languages are generated by weighted automata.

Weight function

Page 14: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Weighted automata

Quantitative languages are generated by weighted automata.

Weight functionValue 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

Page 15: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Some value functions

Page 16: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Some value functions

Page 17: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Outline

• Motivation

• Weighted automata

• Decision problems

• Expressive power

Page 18: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Emptiness

Given , is LA(w) ≥ for some word w ?

• solved by finding the maximal value of an infinite path in the graph of A,

• memoryless strategies exist in the corresponding quantitative 1-player games,

• decidable in polynomial time for

Page 19: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Language Inclusion

Is LA(w) LB(w) for all words w ?

• PSPACE-complete for

• Solvable in polynomial-time when B is deterministic for and ,

• open question for nondeterministic automata.

Page 20: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Language-inclusion game

Language inclusion as a

game

Discounted-sum automata, λ=3/4

Page 21: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Language-inclusion game

Tokens on the initial states

Language inclusion as a

game

Page 22: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Language-inclusion game

Challenger:

Simulator:

Challenger constructs a run r1 of A,

Simulator constructs a run r2 of B.

Challenger wins if Val(r1) > Val(r2).

Language inclusion as a

game

Page 23: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Language-inclusion game

Challenger:

Simulator:

Language inclusion as a

game

Page 24: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Language-inclusion game

Challenger:

Simulator:

Language inclusion as a

game

Page 25: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Language-inclusion game

Challenger:

Simulator:

Language inclusion as a

game

Page 26: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Language-inclusion game

Challenger:

Simulator:

Language inclusion as a

game

Page 27: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Language-inclusion game

Challenger:

Simulator:

Language inclusion as a

game

Page 28: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Language-inclusion game

Challenger:

Simulator:

Language inclusion as a

game

Page 29: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Language-inclusion game

Challenger:

Simulator:

Language inclusion as a

game

Page 30: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Language-inclusion game

Challenger:

Simulator:

Challenger wins since 4>2.

Language inclusion as a

game

However, LA(w) LB(w) for all w.

Page 31: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Language-inclusion gameThe game is blind if the Challenger cannot observe the state of the Simulator.

Challenger has no winning strategy in the blind game

if and only if LA(w) LB(w) for all words w.

Page 32: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Language-inclusion gameThe game is blind if the Challenger cannot observe the state of the Simulator.

Challenger has no winning strategy in the blind game

if and only if LA(w) LB(w) for all words w.

When the game is not blind, we say that B simulates A if the Challenger has no winning strategy.

Simulation implies language inclusion.

Page 33: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Simulation is decidable

Page 34: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Universality and Equivalence

Is LA(w) = LB(w) for all words w ?

Language equivalence problem:

Universality problem:

Given , is LA(w) ≥ for all words w ?

Complexity/decidability: same situation as Language inclusion.

Page 35: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Outline

• Motivation

• Weighted automata

• Decision problems

• Expressive power

Page 36: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

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 LA = LA’.

Page 37: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

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 LA = LA’.

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)

Page 38: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Some easy facts

and cannot be reduced to and

and can define quantitative languages with infinite range, and cannot.

Page 39: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Some easy facts

For discounted-sum, prefixes provide good approximations of the value.

For LimSup, LimInf and LimAvg, suffixes determine the value.

and cannot be reduced to

cannot be reduced to and

Page 40: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Büchi does not reduce to LimAvg

“infinitely many ’’Deterministic Büchi automaton

Assume that L is definable by a LimAvg automaton A.Then, all -cycles in A have average weight 0.

Page 41: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Büchi does not reduce to LimAvg

Hence, the maximal average weight of a run over any word in tends to (at most) 0 when

“infinitely many ’’Deterministic Büchi automaton

Page 42: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Büchi does not reduce to LimAvg

Let We have

where for sufficienly large

“infinitely many ’’Deterministic Büchi automaton

Page 43: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

where for sufficienly large Hence,

Büchi does not reduce to LimAvg

Let We have

and A cannot exist !

“infinitely many ’’Deterministic Büchi automaton

Page 44: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

(co)Büchi and LimAvg

cannot be reduced to By analogous arguments,

cannot be reduced to

“finitely many ’’Deterministic coBüchi automaton

Page 45: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

(co)Büchi and LimAvg

Det. coBüchi automaton

L2 is defined by the following nondet. LimAvg automaton:

Page 46: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

(co)Büchi and LimAvg

Det. coBüchi automaton

L2 is defined by the following nondet. LimAvg automaton:

Hence, cannot be determinized.

Page 47: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Reducibility relations

Page 48: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Reducibility relations

Page 49: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Reducibility relations

Page 50: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Reducibility relations

What about Discounted Sum ?

Page 51: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Last result

cannot be determinized.

λ=3/4

Page 52: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Discλ cannot be determinizedValue of a word :

disc. sum of ’s

disc. sum of ’s

Page 53: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Discλ cannot be determinized

Let

Page 54: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Discλ cannot be determinized

Let

Page 55: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Discλ cannot be determinized

Let

Page 56: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Discλ cannot be determinized

Let

Page 57: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Discλ cannot be determinized

Let

Page 58: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Discλ cannot be determinized

Let

Page 59: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Discλ cannot be determinized

Let

Page 60: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Discλ cannot be determinized

Let

Page 61: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Discλ cannot be determinized

Let

Page 62: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Discλ cannot be determinized

Let

If

then

Page 63: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Discλ cannot be determinized

Let

If

then

Page 64: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Discλ cannot be determinized

Page 65: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Discλ cannot be determinized

Page 66: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Discλ cannot be determinized

How many different values can take ?

Page 67: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Discλ cannot be determinized

How many different values can take ?

infinitely many if

for all

Page 68: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Discλ cannot be determinized

How many different values can take ?

infinitely many if

for all

By a careful analysis of the shape of the family of equations,

it can be proven that no rational can be a solution.

Page 69: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Last result

cannot be determinized.

λ=3/4

Page 70: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Reducibility relations

Page 71: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Conclusion

• Quantitative generalization of languages to model programs/systems more accurately.

• LimAvg and Discλ: deciding language inclusion is open;

• Simulation is a decidable over-approximation.

• Expressive power classification:

• DBW and LimAvg are incomparable;

• LimAvg and Discλ cannot be determinized.

Page 72: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Thank you !

Questions ?

The end

Page 73: Quantitative Languages Krishnendu Chatterjee, UCSC Laurent Doyen, EPFL Tom Henzinger, EPFL CSL 2008

Top Related