analysis of probabilistic systems · transition systems. labelled transition systems where the...

29
Analysis of Probabilistic Systems Boot camp Lecture 4: The logical characterization of bisimulation Prakash Panangaden 1 1 School of Computer Science McGill University Fall 2016, Simons Institute Panangaden (McGill) Analysis of Probabilistic Systems Logic and bisimulation 1 / 29

Upload: others

Post on 21-Jan-2021

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Analysis of Probabilistic Systems · transition systems. Labelled transition systems where the final state is governed by a probability distribution - no other indeterminacy. All

Analysis of Probabilistic SystemsBoot camp Lecture 4: The logical characterization of bisimulation

Prakash Panangaden1

1School of Computer ScienceMcGill University

Fall 2016, Simons Institute

Panangaden (McGill) Analysis of Probabilistic Systems Logic and bisimulation 1 / 29

Page 2: Analysis of Probabilistic Systems · transition systems. Labelled transition systems where the final state is governed by a probability distribution - no other indeterminacy. All

Outline

1 Labelled transition systems

2 Labelled Markov processes

3 Intuitions and examples

4 Polish and Analytic spaces

5 Back to the proof

6 Simulation

7 Concluding remarks

Panangaden (McGill) Analysis of Probabilistic Systems Logic and bisimulation 2 / 29

Page 3: Analysis of Probabilistic Systems · transition systems. Labelled transition systems where the final state is governed by a probability distribution - no other indeterminacy. All

The definition

A set of states S,a set of labels or actions, L or A anda transition relation ⊆ S×A× S, usually written

→a⊆ S× S.

The transitions could be indeterminate (nondeterministic).We write s a−−→ s′ for (s, s′) ∈→a.

Panangaden (McGill) Analysis of Probabilistic Systems Logic and bisimulation 3 / 29

Page 4: Analysis of Probabilistic Systems · transition systems. Labelled transition systems where the final state is governed by a probability distribution - no other indeterminacy. All

A simple example

s0a

a

s1 s2

b

s3

s0a

b

s1

c

c

&&

s2

a

s4 s3A1 A2

Panangaden (McGill) Analysis of Probabilistic Systems Logic and bisimulation 4 / 29

Page 5: Analysis of Probabilistic Systems · transition systems. Labelled transition systems where the final state is governed by a probability distribution - no other indeterminacy. All

Bisimulation

s and t are states of a labelled transition system. We say s is bisimilarto t – written s ∼ t – if

s a−−→ s′ ⇒ ∃t′ such that t a−−→ t′ and s′ ∼ t′

andt a−−→ t′ ⇒ ∃s′ such that s a−−→ s′ and s′ ∼ t′.

Panangaden (McGill) Analysis of Probabilistic Systems Logic and bisimulation 5 / 29

Page 6: Analysis of Probabilistic Systems · transition systems. Labelled transition systems where the final state is governed by a probability distribution - no other indeterminacy. All

Bisimulation relations

Define a (note the indefinite article) bisimulation relation R to bean equivalence relation on S such that

sRt means ∀a, s a−−→ s′ ⇒ ∃t′, t a−−→ t′ with s′Rt′

and vice versa.This is not circular; it is a condition on R.We define s ∼ t if there is some bisimulation relation R with sRt.This is the version that is used most often.

Panangaden (McGill) Analysis of Probabilistic Systems Logic and bisimulation 6 / 29

Page 7: Analysis of Probabilistic Systems · transition systems. Labelled transition systems where the final state is governed by a probability distribution - no other indeterminacy. All

What are Labelled Markov Processes?

Labelled Markov processes are probabilistic versions of labelledtransition systems. Labelled transition systems where the finalstate is governed by a probability distribution - no otherindeterminacy.All probabilistic data is internal - no probabilities associated withenvironment behaviour.We observe the interactions - not the internal states.In general, the state space of a labelled Markov process may be acontinuum.

Panangaden (McGill) Analysis of Probabilistic Systems Logic and bisimulation 7 / 29

Page 8: Analysis of Probabilistic Systems · transition systems. Labelled transition systems where the final state is governed by a probability distribution - no other indeterminacy. All

Markov Kernels

A Markov kernel is a function h : S× Σ −→ [0, 1] with (a) h(s, ·) : Σ−→ [0, 1] a (sub)probability measure and (b) h(·,A) : X −→ [0, 1] ameasurable function.Though apparantly asymmetric, these are the probabilisticanalogues of binary relationsand the uncountable generalization of a matrix.

Panangaden (McGill) Analysis of Probabilistic Systems Logic and bisimulation 8 / 29

Page 9: Analysis of Probabilistic Systems · transition systems. Labelled transition systems where the final state is governed by a probability distribution - no other indeterminacy. All

Formal Definition of LMPs

An LMP is a tuple (S,Σ,L, ∀α ∈ L.τα) where(S,Σ) is an analytic space (what?, why?) with its Borel σ-algebra.and τα : S× Σ −→ [0, 1] the transition function is a Markov kernel∀s : S.λA : Σ.τα(s,A) is a subprobability measureand∀A : Σ.λs : S.τα(s,A) is a measurable function.

Panangaden (McGill) Analysis of Probabilistic Systems Logic and bisimulation 9 / 29

Page 10: Analysis of Probabilistic Systems · transition systems. Labelled transition systems where the final state is governed by a probability distribution - no other indeterminacy. All

Probabilistic Bisimulation

Let S = (S, i,Σ, τ) be a labelled Markov process. An equivalencerelation R on S is a bisimulation if whenever sRs′, with s, s′ ∈ S, wehave that for all a ∈ A and every R-closed measurable set A ∈ Σ,τa(s,A) = τa(s′,A).Two states are bisimilar if they are related by a bisimulation relation.

Panangaden (McGill) Analysis of Probabilistic Systems Logic and bisimulation 10 / 29

Page 11: Analysis of Probabilistic Systems · transition systems. Labelled transition systems where the final state is governed by a probability distribution - no other indeterminacy. All

Logical Characterization

L ::== T|φ1 ∧ φ2|〈a〉qφ

We say s |= 〈a〉qφ iff

∃A ∈ Σ.(∀s′ ∈ A.s′ |= φ) ∧ (τa(s,A) > q).

Two systems are bisimilar iff they obey the same formulas of L.[Desharnais, Edalat, P. 1998 LICS, I and C 2002]

Panangaden (McGill) Analysis of Probabilistic Systems Logic and bisimulation 11 / 29

Page 12: Analysis of Probabilistic Systems · transition systems. Labelled transition systems where the final state is governed by a probability distribution - no other indeterminacy. All

That cannot be right?

s0a

a

s1 s2

b

s3

t0a

t1

b

t2

Two processes that cannot be distinguished without negation.The formula that distinguishes them is 〈a〉(¬〈b〉>).

Panangaden (McGill) Analysis of Probabilistic Systems Logic and bisimulation 12 / 29

Page 13: Analysis of Probabilistic Systems · transition systems. Labelled transition systems where the final state is governed by a probability distribution - no other indeterminacy. All

But it is!

s0a[p]

a[q]

s1 s2

b

s3

t0

a[r]

t1

b

t2

We add probabilities to the transitions.If p + q < r or p + q > r we can easily distinguish them.If p + q = r and p > 0 then q < r so 〈a〉r〈b〉1> distinguishes them.

Panangaden (McGill) Analysis of Probabilistic Systems Logic and bisimulation 13 / 29

Page 14: Analysis of Probabilistic Systems · transition systems. Labelled transition systems where the final state is governed by a probability distribution - no other indeterminacy. All

Bisimulation implies logical equivalence

Let R be a bisimulation relation on an LMP (S,Σ, τa). We prove byinduction on φ that ∀φ ∈ L ∀s, s′ ∈ S.sRs′ ⇒ s |= φ⇔ s′ |= φ.

Base case trivial.∧ is obvious from Inductive Hypothesis.For φ = 〈a〉qψ we have that JψK is R-closed from inductivehypothesis. Thus τa(s, JψK) = τa(s′, JψK) and thussRs′ ⇒ s |= φ⇔ s′ |= φ.

Panangaden (McGill) Analysis of Probabilistic Systems Logic and bisimulation 14 / 29

Page 15: Analysis of Probabilistic Systems · transition systems. Labelled transition systems where the final state is governed by a probability distribution - no other indeterminacy. All

Polish space

A topological space is separable if it has a countable densesubset.A separable metric space has a countable base of open sets.A Polish space is the topological space underlying a completeseparable metric space.Why did topology creep in?Measure theory works nicely on Polish spaces: e.g. the Borel setsof X1 × X2 is the product σ-algebra of the Borel sets of X1 and X2 ifthey are Polish.The Gíry monad can be defined on Polish spaces.

Panangaden (McGill) Analysis of Probabilistic Systems Logic and bisimulation 15 / 29

Page 16: Analysis of Probabilistic Systems · transition systems. Labelled transition systems where the final state is governed by a probability distribution - no other indeterminacy. All

Analytic space

An analytic set A is the image of a Polish space X (or a Borelsubset of X) under a continuous (or measurable) function f : X−→ Y, where Y is Polish. If (S,Σ) is a measurable space where S isan analytic set in some ambient topological space and Σ is theBorel σ-algebra on S.Analytic sets do not form a σ-algebra but they are in thecompletion of the Borel algebra under any probability measure.[Universally measurable.]Regular conditional probability densities can be defined onanalytic spaces.

Panangaden (McGill) Analysis of Probabilistic Systems Logic and bisimulation 16 / 29

Page 17: Analysis of Probabilistic Systems · transition systems. Labelled transition systems where the final state is governed by a probability distribution - no other indeterminacy. All

Amazing Facts about Analytic Spaces

Given S an analytic space and ∼ an equivalence relation such thatthere is a countable family of real-valued measurable functionsfi : S −→ R such that

∀s, s′ ∈ S.s ∼ s′ ⇐⇒ ∀fi.fi(s) = fi(s′)

then the quotient space (Q,Ω) - where Q = S/ ∼ and Ω is thefinest σ-algebra making the canonical surjection q : S −→ Qmeasurable - is also analytic.If an analytic space (S,Σ) has a sub-σ-algebra Σ0 of Σ whichseparates points and is countably generated then Σ0 is Σ! TheUnique Structure Theorem (UST).

Panangaden (McGill) Analysis of Probabilistic Systems Logic and bisimulation 17 / 29

Page 18: Analysis of Probabilistic Systems · transition systems. Labelled transition systems where the final state is governed by a probability distribution - no other indeterminacy. All

Proof Sketch

Show that the relation “s and s′ satisfy exactly the same formulas”is a bisimulation.Can easily show that τa(s,A) = τa(s′,A) for A of the form JφK.Use Dynkin’ λ− π theorem to show that we get a well definedmeasure on the σ-algebra generated by such sets and the aboveequality holds.Use special properties of analytic spaces to show that thisσ-algebra is the same as the original σ-algebra.

Panangaden (McGill) Analysis of Probabilistic Systems Logic and bisimulation 18 / 29

Page 19: Analysis of Probabilistic Systems · transition systems. Labelled transition systems where the final state is governed by a probability distribution - no other indeterminacy. All

The Quotient

Given (S,Σ, τa) an LMP, we define s ' s′ if s and s′ obey exactly thesame formulas of L0.The functions IJφK : S −→ R defined by IJφK(s) = 1 if s |= φ and 0otherwise are a countable family of measurable functions suchthat s ' s′ if and only if all the functions agree on s and s′. Thus thequotient space (Q,Ω) is analytic.We define an LMP (Q,Ω, ρa) where ρa(t,U) := τa(s, q−1(U));s ∈ q−1(t).

Panangaden (McGill) Analysis of Probabilistic Systems Logic and bisimulation 19 / 29

Page 20: Analysis of Probabilistic Systems · transition systems. Labelled transition systems where the final state is governed by a probability distribution - no other indeterminacy. All

ρ is well defined - I

Easy to check that q−1(q(JφK)) = JφK:s ∈ q−1(q(JφK)) implies that q(s) ∈ q(JφK), i.e. ∃s′ ∈ JφK.s ' s′, so s |= φ so s ∈ JφK. Yes, I know this is too small

to read.

Thus q(JφK) is measurable.Thus the σ-algebra generated -say, Λ - by q(JφK) is asub-σ-algebra of Ω.Λ is countably generated and separates points so by UST it is Ω.Thus q(JφK) generates Ω.

Panangaden (McGill) Analysis of Probabilistic Systems Logic and bisimulation 20 / 29

Page 21: Analysis of Probabilistic Systems · transition systems. Labelled transition systems where the final state is governed by a probability distribution - no other indeterminacy. All

ρ is well defined - II

The collection q(JφK) is a π-system (because L0 has conjunction)and it generates Ω; thus if we can show that two measures agreeon these sets they agree on all of Ω.If q(s) = q(s′) = t then τa(s, JφK) = τa(s′, JφK) (simple interpolation).Thus τa(s, q−1(q(JφK))) = τa(s′, q−1(q(JφK))) and hence ρ is welldefined. We have ρa(q(s),B) = τa(s, q−1(B)).

Panangaden (McGill) Analysis of Probabilistic Systems Logic and bisimulation 21 / 29

Page 22: Analysis of Probabilistic Systems · transition systems. Labelled transition systems where the final state is governed by a probability distribution - no other indeterminacy. All

Finishing the Argument

Let X be any '-closed subset of S.Then q−1(q(X)) = X and q(X) ∈ Ω.If s ' s′ then q(s) = q(s′) and

τa(s,X) = τa(s, q−1(q(X))) = ρa(q(s), q(X)) =

ρa(q(s′), q(X)) = τa(s′, q−1(q(X))) = τa(s′,X).

Panangaden (McGill) Analysis of Probabilistic Systems Logic and bisimulation 22 / 29

Page 23: Analysis of Probabilistic Systems · transition systems. Labelled transition systems where the final state is governed by a probability distribution - no other indeterminacy. All

Simulation

Let S = (S,Σ, τ) be a labelled Markov process. A preorder R on S is asimulation if whenever sRs′, we have that for all a ∈ A and everyR-closed measurable set A ∈ Σ, τa(s,A) ≤ τa(s′,A). We say s issimulated by s′ if sRs′ for some simulation relation R.

Panangaden (McGill) Analysis of Probabilistic Systems Logic and bisimulation 23 / 29

Page 24: Analysis of Probabilistic Systems · transition systems. Labelled transition systems where the final state is governed by a probability distribution - no other indeterminacy. All

Logic for simulation?

The logic used in the characterization has no negation, not even alimited negative construct.One can show that if s simulates s′ then s satisfies all the formulasof L that s′ satisfies.What about the converse?

Panangaden (McGill) Analysis of Probabilistic Systems Logic and bisimulation 24 / 29

Page 25: Analysis of Probabilistic Systems · transition systems. Labelled transition systems where the final state is governed by a probability distribution - no other indeterminacy. All

Counter example!

In the following picture, t satisfies all formulas of L that s satisfies but tdoes not simulate s.

s12

12

s1

a

s2

b

· ·

t14

xx14

14

14

&&·a

·a

b

·b

t1

· · · ·All transitions from s and t are labelled by a.

Panangaden (McGill) Analysis of Probabilistic Systems Logic and bisimulation 25 / 29

Page 26: Analysis of Probabilistic Systems · transition systems. Labelled transition systems where the final state is governed by a probability distribution - no other indeterminacy. All

Counter example (contd.)

A formula of L that is satisfied by t but not by s.

〈a〉0(〈a〉0T ∧ 〈b〉0T).

A formula with disjunction that is satisfied by s but not by t:

〈a〉 34(〈a〉0T ∨ 〈b〉0T).

Panangaden (McGill) Analysis of Probabilistic Systems Logic and bisimulation 26 / 29

Page 27: Analysis of Probabilistic Systems · transition systems. Labelled transition systems where the final state is governed by a probability distribution - no other indeterminacy. All

A logical characterization for simulation

The logic L does not characterize simulation. One needsdisjunction.

L∨ := L | φ1 ∨ φ2.

With this logic we have:An LMP s1 simulates s2 if and only if for every formula φ of L∨ wehave

s1 |= φ⇒ s2 |= φ.

The only proof we know uses domain theory.

Panangaden (McGill) Analysis of Probabilistic Systems Logic and bisimulation 27 / 29

Page 28: Analysis of Probabilistic Systems · transition systems. Labelled transition systems where the final state is governed by a probability distribution - no other indeterminacy. All

Other Logics

LCan := L0 | Can(a)

L∆ := L0 | ∆a

L¬ := L0 | ¬φL∨ := L0 | φ1 ∨ φ2

L∧ := L¬ |∧i∈N

φi

where

s |= Can(a) to mean that τa(s, S) > 0;s |= ∆a to mean that τa(s, S) = 0.

We need L∨ to characterise simulation.

Panangaden (McGill) Analysis of Probabilistic Systems Logic and bisimulation 28 / 29

Page 29: Analysis of Probabilistic Systems · transition systems. Labelled transition systems where the final state is governed by a probability distribution - no other indeterminacy. All

Conclusions

Strong probabilistic bisimulation is characterised by a very simplemodal logic with no negative constructs.There is a logical characterisation of simulation.There is a “metric” on LMPs which is based on this logic.Why did the proof require so many subtle properties of analyticspaces? There is a more general definition of bisimulation forwhich the logical characterisation proof is “easy” but to prove thatthat definition coincides with this one in analytic spaces requiresroughly the same proof as that given here.

Panangaden (McGill) Analysis of Probabilistic Systems Logic and bisimulation 29 / 29