Bisimulation, Logics and Metrics for Labelled Markov Processes - - PowerPoint PPT Presentation

bisimulation logics and metrics for labelled markov
SMART_READER_LITE
LIVE PREVIEW

Bisimulation, Logics and Metrics for Labelled Markov Processes - - PowerPoint PPT Presentation

Bisimulation, Logics and Metrics for Labelled Markov Processes Prakash Panangaden School of Computer Science McGill University and Research Visitor: The Alan Turing Institute Logic for Data Science Seminar The Alan Turing Institute 8th June


slide-1
SLIDE 1

Bisimulation, Logics and Metrics for Labelled Markov Processes

Prakash Panangaden School of Computer Science McGill University and Research Visitor: The Alan Turing Institute Logic for Data Science Seminar The Alan Turing Institute 8th June 2018

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 1 / 39

slide-2
SLIDE 2

Introduction

Summary of Results

Probabilistic bisimulation can be defined for continuous state-space systems. [LICS 97]

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 2 / 39

slide-3
SLIDE 3

Introduction

Summary of Results

Probabilistic bisimulation can be defined for continuous state-space systems. [LICS 97] Logical characterization. [LICS 98, Info and Comp 02]

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 2 / 39

slide-4
SLIDE 4

Introduction

Summary of Results

Probabilistic bisimulation can be defined for continuous state-space systems. [LICS 97] Logical characterization. [LICS 98, Info and Comp 02] Metric analogue of bisimulation. [CONCUR 99, TCS 04]

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 2 / 39

slide-5
SLIDE 5

Introduction

Summary of Results

Probabilistic bisimulation can be defined for continuous state-space systems. [LICS 97] Logical characterization. [LICS 98, Info and Comp 02] Metric analogue of bisimulation. [CONCUR 99, TCS 04] Approximation of LMPs. [LICS00, Info and Comp 03, CONCUR 05, ICALP 09]

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 2 / 39

slide-6
SLIDE 6

Introduction

Summary of Results

Probabilistic bisimulation can be defined for continuous state-space systems. [LICS 97] Logical characterization. [LICS 98, Info and Comp 02] Metric analogue of bisimulation. [CONCUR 99, TCS 04] Approximation of LMPs. [LICS00, Info and Comp 03, CONCUR 05, ICALP 09] Weak bisimulation. [LICS 02, CONCUR 02]

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 2 / 39

slide-7
SLIDE 7

Introduction

Summary of Results

Probabilistic bisimulation can be defined for continuous state-space systems. [LICS 97] Logical characterization. [LICS 98, Info and Comp 02] Metric analogue of bisimulation. [CONCUR 99, TCS 04] Approximation of LMPs. [LICS00, Info and Comp 03, CONCUR 05, ICALP 09] Weak bisimulation. [LICS 02, CONCUR 02] Real time. [QEST 04, JLAP 03,LMCS 06]

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 2 / 39

slide-8
SLIDE 8

Introduction

Summary of Results

Probabilistic bisimulation can be defined for continuous state-space systems. [LICS 97] Logical characterization. [LICS 98, Info and Comp 02] Metric analogue of bisimulation. [CONCUR 99, TCS 04] Approximation of LMPs. [LICS00, Info and Comp 03, CONCUR 05, ICALP 09] Weak bisimulation. [LICS 02, CONCUR 02] Real time. [QEST 04, JLAP 03,LMCS 06] Metrics for MDPs [UAI 04, 05, QEST 12, AAAI 15, NIPS 15]

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 2 / 39

slide-9
SLIDE 9

Introduction

Summary of Results

Probabilistic bisimulation can be defined for continuous state-space systems. [LICS 97] Logical characterization. [LICS 98, Info and Comp 02] Metric analogue of bisimulation. [CONCUR 99, TCS 04] Approximation of LMPs. [LICS00, Info and Comp 03, CONCUR 05, ICALP 09] Weak bisimulation. [LICS 02, CONCUR 02] Real time. [QEST 04, JLAP 03,LMCS 06] Metrics for MDPs [UAI 04, 05, QEST 12, AAAI 15, NIPS 15] Duality theory [LICS 13, JACM 14, LICS 17]

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 2 / 39

slide-10
SLIDE 10

Introduction

Summary of Results

Probabilistic bisimulation can be defined for continuous state-space systems. [LICS 97] Logical characterization. [LICS 98, Info and Comp 02] Metric analogue of bisimulation. [CONCUR 99, TCS 04] Approximation of LMPs. [LICS00, Info and Comp 03, CONCUR 05, ICALP 09] Weak bisimulation. [LICS 02, CONCUR 02] Real time. [QEST 04, JLAP 03,LMCS 06] Metrics for MDPs [UAI 04, 05, QEST 12, AAAI 15, NIPS 15] Duality theory [LICS 13, JACM 14, LICS 17] Quantitative equational logic [LICS 16, 17, 18]

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 2 / 39

slide-11
SLIDE 11

Introduction

Collaborators

Josée Desharnais

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 3 / 39

slide-12
SLIDE 12

Introduction

Collaborators

Josée Desharnais Radha Jagadeesan and Vineet Gupta

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 3 / 39

slide-13
SLIDE 13

Introduction

Collaborators

Josée Desharnais Radha Jagadeesan and Vineet Gupta Abbas Edalat, Vincent Danos, Radu Mardare, François Laviolette

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 3 / 39

slide-14
SLIDE 14

Introduction

Collaborators

Josée Desharnais Radha Jagadeesan and Vineet Gupta Abbas Edalat, Vincent Danos, Radu Mardare, François Laviolette Philippe Chaput, Florence Clerc, Nathanaël Fijalkow, Bartek Klin

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 3 / 39

slide-15
SLIDE 15

Introduction

Collaborators

Josée Desharnais Radha Jagadeesan and Vineet Gupta Abbas Edalat, Vincent Danos, Radu Mardare, François Laviolette Philippe Chaput, Florence Clerc, Nathanaël Fijalkow, Bartek Klin Doina Precup, Norm Ferns, Gheorghe Comanici, Giorgio Bacci

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 3 / 39

slide-16
SLIDE 16

Introduction

Collaborators

Josée Desharnais Radha Jagadeesan and Vineet Gupta Abbas Edalat, Vincent Danos, Radu Mardare, François Laviolette Philippe Chaput, Florence Clerc, Nathanaël Fijalkow, Bartek Klin Doina Precup, Norm Ferns, Gheorghe Comanici, Giorgio Bacci Dexter Kozen, Kim Larsen, Gordon Plotkin

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 3 / 39

slide-17
SLIDE 17

Labelled transition systems

The definition

A set of states S,

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 4 / 39

slide-18
SLIDE 18

Labelled transition systems

The definition

A set of states S, a set of labels or actions, L or A and

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 4 / 39

slide-19
SLIDE 19

Labelled transition systems

The definition

A set of states S, a set of labels or actions, L or A and a transition relation ⊆ S × A × S, usually written →a⊆ S × S. The transitions could be indeterminate (nondeterministic).

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 4 / 39

slide-20
SLIDE 20

Labelled transition systems

The definition

A set of states S, a set of labels or actions, L or A and a 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 Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 4 / 39

slide-21
SLIDE 21

Labelled transition systems

A simple example

s0

a

  • a
  • s1

s2

b

  • s3

s0

a

  • b
  • s1

c

  • c
  • s2

a

  • s4

s3 A1 A2

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 5 / 39

slide-22
SLIDE 22

Ordinary bisimulation

Bisimulation

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

a

− → s′ ⇒ ∃t′ such that t

a

− → t′ and s′ ∼ t′ and t

a

− → t′ ⇒ ∃s′ such that s

a

− → s′ and s′ ∼ t′.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 6 / 39

slide-23
SLIDE 23

Ordinary bisimulation

Bisimulation relations

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

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 7 / 39

slide-24
SLIDE 24

Ordinary bisimulation

Bisimulation relations

Define a (note the indefinite article) bisimulation relation R to be an equivalence relation on S such that sRt means ∀a, s

a

− → s′ ⇒ ∃t′, t

a

− → t′ with s′Rt′ and vice versa.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 7 / 39

slide-25
SLIDE 25

Ordinary bisimulation

Bisimulation relations

Define a (note the indefinite article) bisimulation relation R to be an 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.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 7 / 39

slide-26
SLIDE 26

Ordinary bisimulation

Bisimulation relations

Define a (note the indefinite article) bisimulation relation R to be an 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.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 7 / 39

slide-27
SLIDE 27

Ordinary bisimulation

Bisimulation relations

Define a (note the indefinite article) bisimulation relation R to be an 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 Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 7 / 39

slide-28
SLIDE 28

Ordinary bisimulation

An example

s0

a

  • a
  • a
  • s1

b

  • s2

b

  • c
  • s3

c

  • s4

s5 t0

a

  • t2

b

  • c
  • t4

t5 P1 P2

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 8 / 39

slide-29
SLIDE 29

Ordinary bisimulation

An example

s0

a

  • a
  • a
  • s1

b

  • s2

b

  • c
  • s3

c

  • s4

s5 t0

a

  • t2

b

  • c
  • t4

t5 P1 P2 Here s0 and t0 are not bisimilar.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 8 / 39

slide-30
SLIDE 30

Ordinary bisimulation

An example

s0

a

  • a
  • a
  • s1

b

  • s2

b

  • c
  • s3

c

  • s4

s5 t0

a

  • t2

b

  • c
  • t4

t5 P1 P2 Here s0 and t0 are not bisimilar. However s0 and t0 can simulate each other!

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 8 / 39

slide-31
SLIDE 31

Ordinary bisimulation

How do we know that two processes are not bisimilar?

Define a logic as follows:

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 9 / 39

slide-32
SLIDE 32

Ordinary bisimulation

How do we know that two processes are not bisimilar?

Define a logic as follows: φ ::== T|¬φ|φ1 ∧ φ2|aφ

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 9 / 39

slide-33
SLIDE 33

Ordinary bisimulation

How do we know that two processes are not bisimilar?

Define a logic as follows: φ ::== T|¬φ|φ1 ∧ φ2|aφ s | = aφ means that s

a

− → s′ and t | = φ.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 9 / 39

slide-34
SLIDE 34

Ordinary bisimulation

How do we know that two processes are not bisimilar?

Define a logic as follows: φ ::== T|¬φ|φ1 ∧ φ2|aφ s | = aφ means that s

a

− → s′ and t | = φ. We can define a dual to (written []) by using negation.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 9 / 39

slide-35
SLIDE 35

Ordinary bisimulation

How do we know that two processes are not bisimilar?

Define a logic as follows: φ ::== T|¬φ|φ1 ∧ φ2|aφ s | = aφ means that s

a

− → s′ and t | = φ. We can define a dual to (written []) by using negation. s | = [a]φ means that if s can do an a the resulting state must satisfy φ.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 9 / 39

slide-36
SLIDE 36

Ordinary bisimulation

Examples of HM Logic

T is satisfied by any process, F is not satisfied by any process.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 10 / 39

slide-37
SLIDE 37

Ordinary bisimulation

Examples of HM Logic

T is satisfied by any process, F is not satisfied by any process. s | = aT means s can do an a action.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 10 / 39

slide-38
SLIDE 38

Ordinary bisimulation

Examples of HM Logic

T is satisfied by any process, F is not satisfied by any process. s | = aT means s can do an a action. s | = ¬aT or s | = [a]F means s cannot do an a action.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 10 / 39

slide-39
SLIDE 39

Ordinary bisimulation

Examples of HM Logic

T is satisfied by any process, F is not satisfied by any process. s | = aT means s can do an a action. s | = ¬aT or s | = [a]F means s cannot do an a action. s | = a(bT) means that s can do an a and then do a b.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 10 / 39

slide-40
SLIDE 40

Ordinary bisimulation

The logical characterization theorem

Two processes are bisimilar if and only if they satisfy the same formulas of HM logic.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 11 / 39

slide-41
SLIDE 41

Ordinary bisimulation

The logical characterization theorem

Two processes are bisimilar if and only if they satisfy the same formulas of HM logic. Basic assumption: the processes are finitely-branching (otherwise you need infinitary conjunctions).

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 11 / 39

slide-42
SLIDE 42

Ordinary bisimulation

The logical characterization theorem

Two processes are bisimilar if and only if they satisfy the same formulas of HM logic. Basic assumption: the processes are finitely-branching (otherwise you need infinitary conjunctions). To show that two processes are not bisimilar find a formula on which they disagree.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 11 / 39

slide-43
SLIDE 43

Ordinary bisimulation

The role of negation

Consider the processes below: s0

a

  • a
  • s1

s2

b

  • s3

t0

a

  • t2

b

  • t3

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 12 / 39

slide-44
SLIDE 44

Ordinary bisimulation

The role of negation

Consider the processes below: s0

a

  • a
  • s1

s2

b

  • s3

t0

a

  • t2

b

  • t3

s0 | = a¬bT but t0 does not.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 12 / 39

slide-45
SLIDE 45

Ordinary bisimulation

The role of negation

Consider the processes below: s0

a

  • a
  • s1

s2

b

  • s3

t0

a

  • t2

b

  • t3

s0 | = a¬bT but t0 does not. s0 and t0 agree on all formulas without negation.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 12 / 39

slide-46
SLIDE 46

Ordinary bisimulation

The role of negation

Consider the processes below: s0

a

  • a
  • s1

s2

b

  • s3

t0

a

  • t2

b

  • t3

s0 | = a¬bT but t0 does not. s0 and t0 agree on all formulas without negation. Note that [a] has an implicit negation.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 12 / 39

slide-47
SLIDE 47

Discrete probabilistic transition systems

Discrete probabilistic transition systems

Just like a labelled transition system with probabilities associated with the transitions.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 13 / 39

slide-48
SLIDE 48

Discrete probabilistic transition systems

Discrete probabilistic transition systems

Just like a labelled transition system with probabilities associated with the transitions. (S, L, ∀a ∈ L Ta : S × S − → [0, 1])

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 13 / 39

slide-49
SLIDE 49

Discrete probabilistic transition systems

Discrete probabilistic transition systems

Just like a labelled transition system with probabilities associated with the transitions. (S, L, ∀a ∈ L Ta : S × S − → [0, 1]) The model is reactive: All probabilistic data is internal - no probabilities associated with environment behaviour.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 13 / 39

slide-50
SLIDE 50

Discrete probabilistic transition systems

Bisimulation for PTS: Larsen and Skou

Consider t0

a[ 1

3]

  • a[ 2

3 ]

  • t1

t2

b[1]

  • t3

s0

a[ 1

3 ]

  • a[ 1

3 ]

  • a[ 1

3 ]

  • s1

s2

b[1]

  • s3

b[1]

  • s4

P1 P2

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 14 / 39

slide-51
SLIDE 51

Discrete probabilistic transition systems

Bisimulation for PTS: Larsen and Skou

Consider t0

a[ 1

3]

  • a[ 2

3 ]

  • t1

t2

b[1]

  • t3

s0

a[ 1

3 ]

  • a[ 1

3 ]

  • a[ 1

3 ]

  • s1

s2

b[1]

  • s3

b[1]

  • s4

P1 P2 Should s0 and t0 be bisimilar?

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 14 / 39

slide-52
SLIDE 52

Discrete probabilistic transition systems

Bisimulation for PTS: Larsen and Skou

Consider t0

a[ 1

3]

  • a[ 2

3 ]

  • t1

t2

b[1]

  • t3

s0

a[ 1

3 ]

  • a[ 1

3 ]

  • a[ 1

3 ]

  • s1

s2

b[1]

  • s3

b[1]

  • s4

P1 P2 Should s0 and t0 be bisimilar? Yes, but we need to add the probabilities.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 14 / 39

slide-53
SLIDE 53

Discrete probabilistic transition systems

The Official Definition

Let S = (S, L, Ta) be a PTS. An equivalence relation R on S is a bisimulation if whenever sRs′, with s, s′ ∈ S, we have that for all a ∈ A and every R-equivalence class, A, Ta(s, A) = Ta(s′, A).

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 15 / 39

slide-54
SLIDE 54

Discrete probabilistic transition systems

The Official Definition

Let S = (S, L, Ta) be a PTS. An equivalence relation R on S is a bisimulation if whenever sRs′, with s, s′ ∈ S, we have that for all a ∈ A and every R-equivalence class, A, Ta(s, A) = Ta(s′, A). The notation Ta(s, A) means “the probability of starting from s and jumping to a state in the set A.”

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 15 / 39

slide-55
SLIDE 55

Discrete probabilistic transition systems

The Official Definition

Let S = (S, L, Ta) be a PTS. An equivalence relation R on S is a bisimulation if whenever sRs′, with s, s′ ∈ S, we have that for all a ∈ A and every R-equivalence class, A, Ta(s, A) = Ta(s′, A). The notation Ta(s, A) means “the probability of starting from s and jumping to a state in the set A.” Two states are bisimilar if there is some bisimulation relation R relating them.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 15 / 39

slide-56
SLIDE 56

Labelled Markov processes

What are labelled Markov processes?

Labelled Markov processes are probabilistic versions of labelled transition systems. Labelled transition systems where the final state is governed by a probability distribution - no other indeterminacy.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 16 / 39

slide-57
SLIDE 57

Labelled Markov processes

What are labelled Markov processes?

Labelled Markov processes are probabilistic versions of labelled transition systems. Labelled transition systems where the final state is governed by a probability distribution - no other indeterminacy. All probabilistic data is internal - no probabilities associated with environment behaviour.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 16 / 39

slide-58
SLIDE 58

Labelled Markov processes

What are labelled Markov processes?

Labelled Markov processes are probabilistic versions of labelled transition systems. Labelled transition systems where the final state is governed by a probability distribution - no other indeterminacy. All probabilistic data is internal - no probabilities associated with environment behaviour. We observe the interactions - not the internal states.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 16 / 39

slide-59
SLIDE 59

Labelled Markov processes

What are labelled Markov processes?

Labelled Markov processes are probabilistic versions of labelled transition systems. Labelled transition systems where the final state is governed by a probability distribution - no other indeterminacy. All probabilistic data is internal - no probabilities associated with environment behaviour. We observe the interactions - not the internal states. In general, the state space of a labelled Markov process may be a continuum.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 16 / 39

slide-60
SLIDE 60

Labelled Markov processes

Motivation

Model and reason about systems with continuous state spaces or continuous time evolution or both. hybrid control systems; e.g. flight management systems.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 17 / 39

slide-61
SLIDE 61

Labelled Markov processes

Motivation

Model and reason about systems with continuous state spaces or continuous time evolution or both. hybrid control systems; e.g. flight management systems. telecommunication systems with spatial variation; e.g. cell phones

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 17 / 39

slide-62
SLIDE 62

Labelled Markov processes

Motivation

Model and reason about systems with continuous state spaces or continuous time evolution or both. hybrid control systems; e.g. flight management systems. telecommunication systems with spatial variation; e.g. cell phones performance modelling,

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 17 / 39

slide-63
SLIDE 63

Labelled Markov processes

Motivation

Model and reason about systems with continuous state spaces or continuous time evolution or both. hybrid control systems; e.g. flight management systems. telecommunication systems with spatial variation; e.g. cell phones performance modelling, continuous time systems,

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 17 / 39

slide-64
SLIDE 64

Labelled Markov processes

Motivation

Model and reason about systems with continuous state spaces or continuous time evolution or both. hybrid control systems; e.g. flight management systems. telecommunication systems with spatial variation; e.g. cell phones performance modelling, continuous time systems, probabilistic process algebra with recursion.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 17 / 39

slide-65
SLIDE 65

Labelled Markov processes

The Need for Measure Theory

Basic fact: There are subsets of R for which no sensible notion of size can be defined.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 18 / 39

slide-66
SLIDE 66

Labelled Markov processes

The Need for Measure Theory

Basic fact: There are subsets of R for which no sensible notion of size can be defined. More precisely, there is no translation-invariant measure defined

  • n all the subsets of the reals.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 18 / 39

slide-67
SLIDE 67

Labelled Markov processes

The Need for Measure Theory

Basic fact: There are subsets of R for which no sensible notion of size can be defined. More precisely, there is no translation-invariant measure defined

  • n all the subsets of the reals.

Actually there is if you only require finite additivity. Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 18 / 39

slide-68
SLIDE 68

Labelled Markov processes

Stochastic Kernels

A stochastic kernel (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] a measurable function.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 19 / 39

slide-69
SLIDE 69

Labelled Markov processes

Stochastic Kernels

A stochastic kernel (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] a measurable function. Though apparantly asymmetric, these are the stochastic analogues of binary relations

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 19 / 39

slide-70
SLIDE 70

Labelled Markov processes

Stochastic Kernels

A stochastic kernel (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] a measurable function. Though apparantly asymmetric, these are the stochastic analogues of binary relations and the uncountable generalization of a matrix.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 19 / 39

slide-71
SLIDE 71

Labelled Markov processes

Formal Definition of LMPs

An LMP is a tuple (S, Σ, L, ∀α ∈ L.τα) where τα : S × Σ − → [0, 1] is a transition probability function such that

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 20 / 39

slide-72
SLIDE 72

Labelled Markov processes

Formal Definition of LMPs

An LMP is a tuple (S, Σ, L, ∀α ∈ L.τα) where τα : S × Σ − → [0, 1] is a transition probability function such that ∀s : S.λA : Σ.τα(s, A) is a subprobability measure and ∀A : Σ.λs : S.τα(s, A) is a measurable function.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 20 / 39

slide-73
SLIDE 73

Probabilistic bisimulation

Larsen-Skou Bisimulation

Let S = (S, i, Σ, τ) be a labelled Markov process. An equivalence relation R on S is a bisimulation if whenever sRs′, with s, s′ ∈ S, we have 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 Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 21 / 39

slide-74
SLIDE 74

Probabilistic bisimulation

Larsen-Skou Bisimulation

Let S = (S, i, Σ, τ) be a labelled Markov process. An equivalence relation R on S is a bisimulation if whenever sRs′, with s, s′ ∈ S, we have 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. Can be extended to bisimulation between two different LMPs.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 21 / 39

slide-75
SLIDE 75

Probabilistic bisimulation

A game for bisimulation

Two players: spoiler (S) and duplicator (D).

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 22 / 39

slide-76
SLIDE 76

Probabilistic bisimulation

A game for bisimulation

Two players: spoiler (S) and duplicator (D). Duplicator claims x, y are bisimilar.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 22 / 39

slide-77
SLIDE 77

Probabilistic bisimulation

A game for bisimulation

Two players: spoiler (S) and duplicator (D). Duplicator claims x, y are bisimilar. Spoiler exhibits a set C and says C is bisimulation-closed and that τ(x, C) = τ(y, C). Assume that the inequality holds; it is easy to check.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 22 / 39

slide-78
SLIDE 78

Probabilistic bisimulation

A game for bisimulation

Two players: spoiler (S) and duplicator (D). Duplicator claims x, y are bisimilar. Spoiler exhibits a set C and says C is bisimulation-closed and that τ(x, C) = τ(y, C). Assume that the inequality holds; it is easy to check. Duplicator responds by saying that C is not bisimulation-closed and that exhibits x′ ∈ C and y′ ∈ C and claims that x′, y′ are bisimilar.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 22 / 39

slide-79
SLIDE 79

Probabilistic bisimulation

A game for bisimulation

Two players: spoiler (S) and duplicator (D). Duplicator claims x, y are bisimilar. Spoiler exhibits a set C and says C is bisimulation-closed and that τ(x, C) = τ(y, C). Assume that the inequality holds; it is easy to check. Duplicator responds by saying that C is not bisimulation-closed and that exhibits x′ ∈ C and y′ ∈ C and claims that x′, y′ are bisimilar. A player loses when he or she cannot make a move. Note that if C is all of the state space, duplicator loses. Duplicator wins if she can play forever.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 22 / 39

slide-80
SLIDE 80

Probabilistic bisimulation

A game for bisimulation

Two players: spoiler (S) and duplicator (D). Duplicator claims x, y are bisimilar. Spoiler exhibits a set C and says C is bisimulation-closed and that τ(x, C) = τ(y, C). Assume that the inequality holds; it is easy to check. Duplicator responds by saying that C is not bisimulation-closed and that exhibits x′ ∈ C and y′ ∈ C and claims that x′, y′ are bisimilar. A player loses when he or she cannot make a move. Note that if C is all of the state space, duplicator loses. Duplicator wins if she can play forever. We prove that x is bisimilar to y iff Duplicator has a winning strategy starting from (x, y).

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 22 / 39

slide-81
SLIDE 81

Probabilistic bisimulation

Logical Characterization

L ::== T|φ1 ∧ φ2|aqφ

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 23 / 39

slide-82
SLIDE 82

Probabilistic bisimulation

Logical Characterization

L ::== T|φ1 ∧ φ2|aqφ We say s | = aqφ iff ∃A ∈ Σ.(∀s′ ∈ A.s′ | = φ) ∧ (τa(s, A) > q).

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 23 / 39

slide-83
SLIDE 83

Probabilistic bisimulation

Logical Characterization

L ::== T|φ1 ∧ φ2|aqφ We say s | = aqφ iff ∃A ∈ Σ.(∀s′ ∈ A.s′ | = φ) ∧ (τa(s, A) > q). Two systems are bisimilar iff they obey the same formulas of L. [DEP 1998 LICS, I and C 2002]

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 23 / 39

slide-84
SLIDE 84

Probabilistic bisimulation

That cannot be right?

s0

a

  • a
  • s1

s2

b

  • s3

t0

a

  • t1

b

  • t2

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

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 24 / 39

slide-85
SLIDE 85

Probabilistic bisimulation

But it is!

s0

a[p]

  • a[q]
  • s1

s2

b

  • s3

t0

a[r]

  • t1

b

  • t2

We add probabilities to the transitions.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 25 / 39

slide-86
SLIDE 86

Probabilistic bisimulation

But it is!

s0

a[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.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 25 / 39

slide-87
SLIDE 87

Probabilistic bisimulation

But it is!

s0

a[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 arb1⊤ distinguishes them.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 25 / 39

slide-88
SLIDE 88

Metrics

A metric-based approximate viewpoint

Move from equality between processes to distances between processes (Jou and Smolka 1990).

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 26 / 39

slide-89
SLIDE 89

Metrics

A metric-based approximate viewpoint

Move from equality between processes to distances between processes (Jou and Smolka 1990). Formalize distance as a metric: d(s, s) = 0, d(s, t) = d(t, s), d(s, u) d(s, t) + d(t, u). Quantitative analogue of an equivalence relation.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 26 / 39

slide-90
SLIDE 90

Metrics

A metric-based approximate viewpoint

Move from equality between processes to distances between processes (Jou and Smolka 1990). Formalize distance as a metric: d(s, s) = 0, d(s, t) = d(t, s), d(s, u) d(s, t) + d(t, u). Quantitative analogue of an equivalence relation. Quantitative measurement of the distinction between processes.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 26 / 39

slide-91
SLIDE 91

Metrics

Criteria on Metrics

Soundness: d(s, t) = 0 ⇔ s, t are bisimilar

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 27 / 39

slide-92
SLIDE 92

Metrics

Criteria on Metrics

Soundness: d(s, t) = 0 ⇔ s, t are bisimilar Stability of distance under temporal evolution:“Nearby states stay close forever.”

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 27 / 39

slide-93
SLIDE 93

Metrics

Criteria on Metrics

Soundness: d(s, t) = 0 ⇔ s, t are bisimilar Stability of distance under temporal evolution:“Nearby states stay close forever.” Metrics should be computable (efficiently?).

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 27 / 39

slide-94
SLIDE 94

Metrics

Bisimulation Recalled

Let R be an equivalence relation. R is a bisimulation if: s R t if: (s − → P) ⇒ [t − → Q, P =R Q] (t − → Q) ⇒ [s − → P, P =R Q] where P =R Q if (∀R − closed E) P(E) = Q(E)

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 28 / 39

slide-95
SLIDE 95

Metrics

A putative definition of a metric analogue of bisimulation

m is a metric-bisimulation if: m(s, t) < ǫ ⇒: s − → P ⇒ t − → Q, m(P, Q) < ǫ t − → Q ⇒ s − → P, m(P, Q) < ǫ

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 29 / 39

slide-96
SLIDE 96

Metrics

A putative definition of a metric analogue of bisimulation

m is a metric-bisimulation if: m(s, t) < ǫ ⇒: s − → P ⇒ t − → Q, m(P, Q) < ǫ t − → Q ⇒ s − → P, m(P, Q) < ǫ Problem: what is m(P, Q)? — Type mismatch!!

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 29 / 39

slide-97
SLIDE 97

Metrics

A putative definition of a metric analogue of bisimulation

m is a metric-bisimulation if: m(s, t) < ǫ ⇒: s − → P ⇒ t − → Q, m(P, Q) < ǫ t − → Q ⇒ s − → P, m(P, Q) < ǫ Problem: what is m(P, Q)? — Type mismatch!! Need a way to lift distances from states to a distances on distributions of states.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 29 / 39

slide-98
SLIDE 98

Metrics

A detour: Kantorovich metric

Metrics on probability measures on metric spaces.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 30 / 39

slide-99
SLIDE 99

Metrics

A detour: Kantorovich metric

Metrics on probability measures on metric spaces. M: 1-bounded pseudometrics on states.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 30 / 39

slide-100
SLIDE 100

Metrics

A detour: Kantorovich metric

Metrics on probability measures on metric spaces. M: 1-bounded pseudometrics on states. d(µ, ν) = sup

f

|

  • fdµ −
  • fdν|, f 1-Lipschitz

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 30 / 39

slide-101
SLIDE 101

Metrics

A detour: Kantorovich metric

Metrics on probability measures on metric spaces. M: 1-bounded pseudometrics on states. d(µ, ν) = sup

f

|

  • fdµ −
  • fdν|, f 1-Lipschitz

Arises in the solution of an LP problem: transshipment.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 30 / 39

slide-102
SLIDE 102

Metrics

An LP version for Finite-State Spaces

When state space is finite: Let P, Q be probability distributions. Then: m(P, Q) = max

  • i

(P(si) − Q(si))ai subject to: ∀i.0 ai 1 ∀i, j. ai − aj m(si, sj).

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 31 / 39

slide-103
SLIDE 103

Metrics

The Dual Form

Dual form from Worrell and van Breugel:

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 32 / 39

slide-104
SLIDE 104

Metrics

The Dual Form

Dual form from Worrell and van Breugel: min

  • i,j

lijm(si, sj) +

  • i

xi +

  • j

yj subject to: ∀i.

j lij + xi = P(si)

∀j.

i lij + yj = Q(sj)

∀i, j. lij, xi, yj 0.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 32 / 39

slide-105
SLIDE 105

Metrics

The Dual Form

Dual form from Worrell and van Breugel: min

  • i,j

lijm(si, sj) +

  • i

xi +

  • j

yj subject to: ∀i.

j lij + xi = P(si)

∀j.

i lij + yj = Q(sj)

∀i, j. lij, xi, yj 0. We prove many equations by using the primal form to show one direction and the dual to show the other.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 32 / 39

slide-106
SLIDE 106

Metrics

Example

Let m(s, t) = r < 1. Let δs(δt) be the probability measure concentrated at s(t). Then, m(δs, δt) = r

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 33 / 39

slide-107
SLIDE 107

Metrics

Example

Let m(s, t) = r < 1. Let δs(δt) be the probability measure concentrated at s(t). Then, m(δs, δt) = r Upper bound from dual: Choose lst = 1 all other lij = 0. Then

  • ij

lijm(si, sj) = m(s, t) = r.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 33 / 39

slide-108
SLIDE 108

Metrics

Example

Let m(s, t) = r < 1. Let δs(δt) be the probability measure concentrated at s(t). Then, m(δs, δt) = r Upper bound from dual: Choose lst = 1 all other lij = 0. Then

  • ij

lijm(si, sj) = m(s, t) = r. Lower bound from primal: Choose as = 0, at = r, all others to match the constraints. Then

  • i

(δt(si) − δs(si))ai = r.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 33 / 39

slide-109
SLIDE 109

Metrics

The Importance of the Example

We can isometrically embed the original space in the metric space of distributions.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 34 / 39

slide-110
SLIDE 110

Metrics

Return from Detour

Summary of detour: Given a metric on states in a metric space, it can be lifted to a metric on probability distributions on states.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 35 / 39

slide-111
SLIDE 111

Metrics

Metric “Bisimulation”

m is a metric-bisimulation if: m(s, t) < ǫ ⇒: s − → P ⇒ t − → Q, m(P, Q) < ǫ t − → Q ⇒ s − → P, m(P, Q) < ǫ

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 36 / 39

slide-112
SLIDE 112

Metrics

Metric “Bisimulation”

m is a metric-bisimulation if: m(s, t) < ǫ ⇒: s − → P ⇒ t − → Q, m(P, Q) < ǫ t − → Q ⇒ s − → P, m(P, Q) < ǫ The required canonical metric on processes is the least such: ie. the distances are the least possible.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 36 / 39

slide-113
SLIDE 113

Metrics

Metric “Bisimulation”

m is a metric-bisimulation if: m(s, t) < ǫ ⇒: s − → P ⇒ t − → Q, m(P, Q) < ǫ t − → Q ⇒ s − → P, m(P, Q) < ǫ The required canonical metric on processes is the least such: ie. the distances are the least possible. Thm: Canonical least metric exists. Usual fixed-point theory arguments.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 36 / 39

slide-114
SLIDE 114

Metrics

What about Continuous-State Systems?

Develop a real-valued “modal logic” based on the analogy: Program Logic Probabilistic Logic State s Distribution µ Formula φ Random Variable f Satisfaction s | = φ

  • fdµ

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 37 / 39

slide-115
SLIDE 115

Metrics

What about Continuous-State Systems?

Develop a real-valued “modal logic” based on the analogy: Program Logic Probabilistic Logic State s Distribution µ Formula φ Random Variable f Satisfaction s | = φ

  • fdµ

Define a metric based on how closely the random variables agree.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 37 / 39

slide-116
SLIDE 116

Metrics

What about Continuous-State Systems?

Develop a real-valued “modal logic” based on the analogy: Program Logic Probabilistic Logic State s Distribution µ Formula φ Random Variable f Satisfaction s | = φ

  • fdµ

Define a metric based on how closely the random variables agree. This metric coincides with the metric based on the Kantorovich metric.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 37 / 39

slide-117
SLIDE 117

Metrics

Logic and metric

Metrics seem like a piece of real analysis, where is the logic?

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 38 / 39

slide-118
SLIDE 118

Metrics

Logic and metric

Metrics seem like a piece of real analysis, where is the logic? Quantitative equational logic: =ǫ, approximate equality

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 38 / 39

slide-119
SLIDE 119

Metrics

Logic and metric

Metrics seem like a piece of real analysis, where is the logic? Quantitative equational logic: =ǫ, approximate equality Algebras are naturally equipped with a metric

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 38 / 39

slide-120
SLIDE 120

Metrics

Logic and metric

Metrics seem like a piece of real analysis, where is the logic? Quantitative equational logic: =ǫ, approximate equality Algebras are naturally equipped with a metric Simple equational axioms capture Kantorovich and total variation metrics.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 38 / 39

slide-121
SLIDE 121

Conclusions

Conclusions

Modal logics are closely related to behavioural equivalence.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 39 / 39

slide-122
SLIDE 122

Conclusions

Conclusions

Modal logics are closely related to behavioural equivalence. Metrics arise as a natural quantitative relaxation of logic.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 39 / 39

slide-123
SLIDE 123

Conclusions

Conclusions

Modal logics are closely related to behavioural equivalence. Metrics arise as a natural quantitative relaxation of logic. Quantitative equational logic captures metrics.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 39 / 39

slide-124
SLIDE 124

Conclusions

Conclusions

Modal logics are closely related to behavioural equivalence. Metrics arise as a natural quantitative relaxation of logic. Quantitative equational logic captures metrics. Metrics and logics: exploring links with neural nets.

Panangaden Bisimulation, Logics and Metrics for Labelled Markov Processes Turing June 2018 39 / 39