A Formalized Hierarchy of Probabilistic System Types Proof Pearl - - PowerPoint PPT Presentation

a formalized hierarchy of probabilistic system types
SMART_READER_LITE
LIVE PREVIEW

A Formalized Hierarchy of Probabilistic System Types Proof Pearl - - PowerPoint PPT Presentation

A Formalized Hierarchy of Probabilistic System Types Proof Pearl olzl 1 , Andreas Lochbihler 2 , and Dmitriy Traytel 1 , 2 Johannes H 1 Institut f ur Informatik 2 Institute of Information Security TU M unchen, Germany ETH Zurich,


slide-1
SLIDE 1

A Formalized Hierarchy of Probabilistic System Types

Proof Pearl Johannes H¨

  • lzl1, Andreas Lochbihler 2, and Dmitriy Traytel1,2

1Institut f¨

ur Informatik TU M¨ unchen, Germany

2Institute of Information Security

ETH Zurich, Switzerland

ITP 2015

slide-2
SLIDE 2

Zoo of Probabilistic System Types

  • Det. automaton

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 2 / 19

slide-3
SLIDE 3

Zoo of Probabilistic System Types

  • Det. automaton

Non-det. automaton

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 2 / 19

slide-4
SLIDE 4

Zoo of Probabilistic System Types

  • Det. automaton

Non-det. automaton Labeled Markov chain

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 2 / 19

slide-5
SLIDE 5

Zoo of Probabilistic System Types

  • Det. automaton

Non-det. automaton Labeled Markov chain Labeled Markov decision process

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 2 / 19

slide-6
SLIDE 6

Zoo of Probabilistic System Types

  • Det. automaton

Non-det. automaton Labeled Markov chain Labeled Markov decision process Reactive system

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 2 / 19

slide-7
SLIDE 7

Zoo of Probabilistic System Types

  • Det. automaton

Non-det. automaton Labeled Markov chain Labeled Markov decision process Reactive system Generative system

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 2 / 19

slide-8
SLIDE 8

Zoo of Probabilistic System Types

  • Det. automaton

Non-det. automaton Labeled Markov chain Labeled Markov decision process Reactive system Generative system Stratified system

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 2 / 19

slide-9
SLIDE 9

Zoo of Probabilistic System Types

  • Det. automaton

Non-det. automaton Labeled Markov chain Labeled Markov decision process Reactive system Generative system Stratified system Alternating system

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 2 / 19

slide-10
SLIDE 10

Zoo of Probabilistic System Types

  • Det. automaton

Non-det. automaton Labeled Markov chain Labeled Markov decision process Reactive system Generative system Stratified system Alternating system Segala system

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 2 / 19

slide-11
SLIDE 11

Zoo of Probabilistic System Types

  • Det. automaton

Non-det. automaton Labeled Markov chain Labeled Markov decision process Reactive system Generative system Stratified system Alternating system Segala system Simple Segala system

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 2 / 19

slide-12
SLIDE 12

Zoo of Probabilistic System Types

  • Det. automaton

Non-det. automaton Labeled Markov chain Labeled Markov decision process Reactive system Generative system Stratified system Alternating system Segala system Simple Segala system Bundle system

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 2 / 19

slide-13
SLIDE 13

Zoo of Probabilistic System Types

  • Det. automaton

Non-det. automaton Labeled Markov chain Labeled Markov decision process Reactive system Generative system Stratified system Alternating system Segala system Simple Segala system Bundle system Pnueli-Zuck system

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 2 / 19

slide-14
SLIDE 14

Zoo of Probabilistic System Types

  • Det. automaton

Non-det. automaton Labeled Markov chain Labeled Markov decision process Reactive system Generative system Stratified system Alternating system Segala system Simple Segala system Bundle system Pnueli-Zuck system Most general system

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 2 / 19

slide-15
SLIDE 15

Hierarchy of Probabilistic System Types

Ana Sokolva – Coalgebraic Analysis of Probabilistic Systems (2005):

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 3 / 19

slide-16
SLIDE 16

Hierarchy of Probabilistic Systems Types

How to . . .

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 4 / 19

slide-17
SLIDE 17

Hierarchy of Probabilistic Systems Types

How to . . . . . . model system types?

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 4 / 19

slide-18
SLIDE 18

Hierarchy of Probabilistic Systems Types

How to . . . . . . model system types? . . . compare systems of same type?

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 4 / 19

slide-19
SLIDE 19

Hierarchy of Probabilistic Systems Types

How to . . . . . . model system types? . . . compare systems of same type? . . . compare different system types?

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 4 / 19

slide-20
SLIDE 20

Hierarchy of Probabilistic Systems Types

How to . . . . . . model system types? . . . compare systems of same type? . . . compare different system types? Coalgebras

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 4 / 19

slide-21
SLIDE 21

Hierarchy of Probabilistic Systems Types

How to . . . . . . model system types? . . . compare systems of same type? . . . compare different system types? Coalgebras Bisimulation

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 4 / 19

slide-22
SLIDE 22

Hierarchy of Probabilistic Systems Types

How to . . . . . . model system types? . . . compare systems of same type? . . . compare different system types? Coalgebras Bisimulation Embedding respecting bisimulation

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 4 / 19

slide-23
SLIDE 23

Hierarchy of Probabilistic Systems Types

How to . . . . . . model system types? . . . compare systems of same type? . . . compare different system types? Coalgebras Bisimulation Embedding respecting bisimulation

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 4 / 19

slide-24
SLIDE 24

Hierarchy of Probabilistic Systems Types

How to . . . . . . model system types? . . . compare systems of same type? . . . compare different system types? Coalgebras Bisimulation Embedding respecting bisimulation . . . formalize it in Isabelle/HOL?

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 4 / 19

slide-25
SLIDE 25

Hierarchy of Probabilistic Systems Types

How to . . . . . . model system types? . . . compare systems of same type? . . . compare different system types? Coalgebras Bisimulation Embedding respecting bisimulation . . . formalize it in Isabelle/HOL? codatatype + Probability Mass Func. + Eisbach

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 4 / 19

slide-26
SLIDE 26

Coalgebras

◮ Functor F describes the system type

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 5 / 19

slide-27
SLIDE 27

Coalgebras

◮ Functor F describes the system type ◮ Examples:

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 5 / 19

slide-28
SLIDE 28

Coalgebras

◮ Functor F describes the system type ◮ Examples:

Deterministic System α × (β ⇒ )

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 5 / 19

slide-29
SLIDE 29

Coalgebras

◮ Functor F describes the system type ◮ Examples:

Deterministic System α × (β ⇒ ) Non-Deterministic System α × (β ⇒ set)

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 5 / 19

slide-30
SLIDE 30

Coalgebras

◮ Functor F describes the system type ◮ Examples:

Deterministic System α × (β ⇒ ) Non-Deterministic System α × (β ⇒ set)

◮ System (σ, s) of type F:

σ type of states, s :: σ ⇒ σ F transition system

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 5 / 19

slide-31
SLIDE 31

Coalgebras

◮ Functor F describes the system type ◮ Examples:

Deterministic System α × (β ⇒ ) Non-Deterministic System α × (β ⇒ set)

◮ System (σ, s) of type F:

σ type of states, s :: σ ⇒ σ F transition system

◮ (σ, s) is a F-coalgebra

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 5 / 19

slide-32
SLIDE 32

Types of Transition System

  • Property

Functor

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 6 / 19

slide-33
SLIDE 33

Types of Transition System

  • p

q r Property

◮ Probability p

Functor pmf

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 6 / 19

slide-34
SLIDE 34

Types of Transition System

  • α

p q r Property

◮ Probability p ◮ Label α

Functor pmf α × ( pmf )

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 6 / 19

slide-35
SLIDE 35

Types of Transition System

  • α

p q r Property

◮ Probability p ◮ Label α ◮ Non-determinism

Functor pmf α × ( pmf ) α × ( pmf set)

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 6 / 19

slide-36
SLIDE 36

Types of Transition System

  • α

β1 β2 p q r Property

◮ Probability p ◮ Label α ◮ Non-determinism ◮ Reactive β

Functor pmf α × ( pmf ) α × ( pmf set) α × (β ⇒ pmf)

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 6 / 19

slide-37
SLIDE 37

Types of Transition System

  • α

β1 β2 p, δ1 q, δ2 r, δ3 Property

◮ Probability p ◮ Label α ◮ Non-determinism ◮ Reactive β ◮ Generative δ

Functor pmf α × ( pmf ) α × ( pmf set) α × (β ⇒ pmf) α × (β ⇒ (δ × ) pmf)

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 6 / 19

slide-38
SLIDE 38

Bisimulation

F = α × ( pmf ) ⋄ ⋄ ⋄ . . . △ △ △ 0.5 0.5 0.5 0.5 0.5 0.5 ⋄ △ 0.5 0.5

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 7 / 19

slide-39
SLIDE 39

Bisimulation

F = α × ( pmf ) ⋄ ⋄ ⋄ . . . △ △ △ 0.5 0.5 0.5 0.5 0.5 0.5 ⋄ △ 0.5 0.5

◮ Expresses observational equality

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 7 / 19

slide-40
SLIDE 40

Bisimulation

F = α × ( pmf ) ⋄ ⋄ ⋄ . . . △ △ △ 0.5 0.5 0.5 0.5 0.5 0.5 ⋄ △ 0.5 0.5

◮ Expresses observational equality ◮ Bisimulation relation R :: (σ × τ) set for a system type F:

∀(x, y) ∈ R. (s x, t y) ∈ relF R

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 7 / 19

slide-41
SLIDE 41

Bisimulation

F = α × ( pmf ) ⋄ ⋄ ⋄ . . . △ △ △ 0.5 0.5 0.5 0.5 0.5 0.5 ⋄ △ 0.5 0.5

◮ Expresses observational equality ◮ Bisimulation relation R :: (σ × τ) set for a system type F:

∀(x, y) ∈ R. (s x, t y) ∈ relF R

◮ State x in system s is bisimilar to state y in system t iff

∃ bisimulation relation R with (x, y) ∈ R

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 7 / 19

slide-42
SLIDE 42

Coalgebras in Isabelle/HOL

Idea: Analyse transition systems modulo bisimulation!

Equality :⇐ ⇒ Bisimulation

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 8 / 19

slide-43
SLIDE 43

Coalgebras in Isabelle/HOL

Idea: Analyse transition systems modulo bisimulation!

Equality :⇐ ⇒ Bisimulation

How to model all F-coalgebras as type?

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 8 / 19

slide-44
SLIDE 44

Coalgebras in Isabelle/HOL

Idea: Analyse transition systems modulo bisimulation!

Equality :⇐ ⇒ Bisimulation

How to model all F-coalgebras as type? codatatype τF = C (τF F)

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 8 / 19

slide-45
SLIDE 45

Coalgebras in Isabelle/HOL

Idea: Analyse transition systems modulo bisimulation!

Equality :⇐ ⇒ Bisimulation

How to model all F-coalgebras as type? codatatype τF = C (τF F) Example (Labeled Markov Chains where F = α × pmf ): codatatype α mc = MC (α × α mc pmf )

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 8 / 19

slide-46
SLIDE 46

Bounded Natural Functors (BNFs)

Traytel, Popescu & Blanchette: Foundational, compositional (co)datatypes for HOL

Codatatype only allows nesting through BNFs:

◮ Examples: products, sums, functions, lists

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 9 / 19

slide-47
SLIDE 47

Bounded Natural Functors (BNFs)

Traytel, Popescu & Blanchette: Foundational, compositional (co)datatypes for HOL

Codatatype only allows nesting through BNFs:

◮ Examples: products, sums, functions, lists ◮ Has map and set functions:

mapF :: (σ ⇒ τ) ⇒ σ F ⇒ τ F setF :: σ F ⇒ σ set

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 9 / 19

slide-48
SLIDE 48

Bounded Natural Functors (BNFs)

Traytel, Popescu & Blanchette: Foundational, compositional (co)datatypes for HOL

Codatatype only allows nesting through BNFs:

◮ Examples: products, sums, functions, lists ◮ Has map and set functions:

mapF :: (σ ⇒ τ) ⇒ σ F ⇒ τ F setF :: σ F ⇒ σ set

◮ Bound κ on the elements |setF x| ≤ κ

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 9 / 19

slide-49
SLIDE 49

Bounded Natural Functors (BNFs)

Traytel, Popescu & Blanchette: Foundational, compositional (co)datatypes for HOL

Codatatype only allows nesting through BNFs:

◮ Examples: products, sums, functions, lists ◮ Has map and set functions:

mapF :: (σ ⇒ τ) ⇒ σ F ⇒ τ F setF :: σ F ⇒ σ set

◮ Bound κ on the elements |setF x| ≤ κ ◮ Has relator lifting relations R component wise:

relF :: (σ × τ) set ⇒ (σ F × τ F) set relF R := {(mapF π1 z, mapF π2 z) | z :: (σ × τ) F. setF z ⊆ R}

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 9 / 19

slide-50
SLIDE 50

Bounded Natural Functors (BNFs)

Traytel, Popescu & Blanchette: Foundational, compositional (co)datatypes for HOL

Codatatype only allows nesting through BNFs:

◮ Examples: products, sums, functions, lists ◮ Has map and set functions:

mapF :: (σ ⇒ τ) ⇒ σ F ⇒ τ F setF :: σ F ⇒ σ set

◮ Bound κ on the elements |setF x| ≤ κ ◮ Has relator lifting relations R component wise:

relF :: (σ × τ) set ⇒ (σ F × τ F) set relF R := {(mapF π1 z, mapF π2 z) | z :: (σ × τ) F. setF z ⊆ R} Example: R = {(a, i), (b, j), (c, k), (d, l)} a b c d i j k l

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 9 / 19

slide-51
SLIDE 51

Bounded Natural Functors (BNFs)

Traytel, Popescu & Blanchette: Foundational, compositional (co)datatypes for HOL

Codatatype only allows nesting through BNFs:

◮ Examples: products, sums, functions, lists ◮ Has map and set functions:

mapF :: (σ ⇒ τ) ⇒ σ F ⇒ τ F setF :: σ F ⇒ σ set

◮ Bound κ on the elements |setF x| ≤ κ ◮ Has relator lifting relations R component wise:

relF :: (σ × τ) set ⇒ (σ F × τ F) set relF R := {(mapF π1 z, mapF π2 z) | z :: (σ × τ) F. setF z ⊆ R} Example: R = {(a, i), (b, j), (c, k), (d, l)} a b c d (a, i) (b, j) (c, k) (d, l) i j k l

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 9 / 19

slide-52
SLIDE 52

Bounded Natural Functors (BNFs)

Traytel, Popescu & Blanchette: Foundational, compositional (co)datatypes for HOL

Codatatype only allows nesting through BNFs:

◮ Examples: products, sums, functions, lists ◮ Has map and set functions:

mapF :: (σ ⇒ τ) ⇒ σ F ⇒ τ F setF :: σ F ⇒ σ set

◮ Bound κ on the elements |setF x| ≤ κ ◮ Has relator lifting relations R component wise:

relF :: (σ × τ) set ⇒ (σ F × τ F) set relF R := {(mapF π1 z, mapF π2 z) | z :: (σ × τ) F. setF z ⊆ R} relF R ◦ relF Q ⊆ relF (R ◦ Q) Example: R = {(a, i), (b, j), (c, k), (d, l)} a b c d (a, i) (b, j) (c, k) (d, l) i j k l

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 9 / 19

slide-53
SLIDE 53

Bounded Natural Functors (BNFs)

Traytel, Popescu & Blanchette: Foundational, compositional (co)datatypes for HOL

Codatatype only allows nesting through BNFs:

◮ Examples: products, sums, functions, lists ◮ Has map and set functions:

mapF :: (σ ⇒ τ) ⇒ σ F ⇒ τ F setF :: σ F ⇒ σ set

◮ Bound κ on the elements |setF x| ≤ κ ◮ Has relator lifting relations R component wise:

relF :: (σ × τ) set ⇒ (σ F × τ F) set relF R := {(mapF π1 z, mapF π2 z) | z :: (σ × τ) F. setF z ⊆ R} relF R ◦ relF Q ⊆ relF (R ◦ Q) Example: R = {(a, i), (b, j), (c, k), (d, l)} a b c d (a, i) (b, j) (c, k) (d, l) i j k l

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 9 / 19

slide-54
SLIDE 54

BNF: Bounded Sets To model non-determinism we need sets!

◮ Problem: Bound of |X :: σ set| depends on σ

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 10 / 19

slide-55
SLIDE 55

BNF: Bounded Sets To model non-determinism we need sets!

◮ Problem: Bound of |X :: σ set| depends on σ ◮ Introduce type σ setκ of sets bounded by κ: |X :: σ setκ| ≤ κ

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 10 / 19

slide-56
SLIDE 56

BNF: Bounded Sets To model non-determinism we need sets!

◮ Problem: Bound of |X :: σ set| depends on σ ◮ Introduce type σ setκ of sets bounded by κ: |X :: σ setκ| ≤ κ

Map is direct image

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 10 / 19

slide-57
SLIDE 57

BNF: Bounded Sets To model non-determinism we need sets!

◮ Problem: Bound of |X :: σ set| depends on σ ◮ Introduce type σ setκ of sets bounded by κ: |X :: σ setκ| ≤ κ

Map is direct image Set is identity

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 10 / 19

slide-58
SLIDE 58

BNF: Bounded Sets To model non-determinism we need sets!

◮ Problem: Bound of |X :: σ set| depends on σ ◮ Introduce type σ setκ of sets bounded by κ: |X :: σ setκ| ≤ κ

Map is direct image Set is identity Bound is κ, needs to be infinite! – wrong claim in previous publications

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 10 / 19

slide-59
SLIDE 59

BNF: Bounded Sets To model non-determinism we need sets!

◮ Problem: Bound of |X :: σ set| depends on σ ◮ Introduce type σ setκ of sets bounded by κ: |X :: σ setκ| ≤ κ

Map is direct image Set is identity Bound is κ, needs to be infinite! – wrong claim in previous publications Relator (∀a ∈ A. ∃b ∈ B. (a, b) ∈ R) ∧ (∀b ∈ B. ∃a ∈ A. (a, b) ∈ R) A · · · B · ·

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 10 / 19

slide-60
SLIDE 60

BNF: Probability Mass Function Model probabilistic transitions!

µ :: σ pmf ≈ µ :: σ ⇒ [0, 1],

  • x µ x = 1

≈ µ :: σ measure, µ U = 1, discrete Similar to Audebaud & Paulin-Mohring (2009)

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 11 / 19

slide-61
SLIDE 61

BNF: Probability Mass Function Model probabilistic transitions!

µ :: σ pmf ≈ µ :: σ ⇒ [0, 1],

  • x µ x = 1

≈ µ :: σ measure, µ U = 1, discrete Similar to Audebaud & Paulin-Mohring (2009) Map is λx.

  • f y=x

y Set is {x | µ x = 0} Bound is ℵ0

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 11 / 19

slide-62
SLIDE 62

BNF: Probability Mass Function Model probabilistic transitions!

µ :: σ pmf ≈ µ :: σ ⇒ [0, 1],

  • x µ x = 1

≈ µ :: σ measure, µ U = 1, discrete Similar to Audebaud & Paulin-Mohring (2009) Map is λx.

  • f y=x

y Set is {x | µ x = 0} Bound is ℵ0 Relator a b c x R = {(a, e), (b, e), (b, d), (c, d)} relpmf R x y ? e d y

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 11 / 19

slide-63
SLIDE 63

BNF: Probability Mass Function Model probabilistic transitions!

µ :: σ pmf ≈ µ :: σ ⇒ [0, 1],

  • x µ x = 1

≈ µ :: σ measure, µ U = 1, discrete Similar to Audebaud & Paulin-Mohring (2009) Map is λx.

  • f y=x

y Set is {x | µ x = 0} Bound is ℵ0 Relator a b c x R = {(a, e), (b, e), (b, d), (c, d)} relpmf R x y ? z e d y

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 11 / 19

slide-64
SLIDE 64

BNF: Probability Mass Function Model probabilistic transitions!

µ :: σ pmf ≈ µ :: σ ⇒ [0, 1],

  • x µ x = 1

≈ µ :: σ measure, µ U = 1, discrete Similar to Audebaud & Paulin-Mohring (2009) Map is λx.

  • f y=x

y Set is {x | µ x = 0} Bound is ℵ0 Relator a b c x e d y R′ = {(a, e), (b, e), (c, d)}

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 11 / 19

slide-65
SLIDE 65

BNF: Probability Mass Function Model probabilistic transitions!

µ :: σ pmf ≈ µ :: σ ⇒ [0, 1],

  • x µ x = 1

≈ µ :: σ measure, µ U = 1, discrete Similar to Audebaud & Paulin-Mohring (2009) Map is λx.

  • f y=x

y Set is {x | µ x = 0} Bound is ℵ0 Relator a b c x e d y R′ = {(a, e), (b, e), (c, d)} ¬relpmf R′ x y

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 11 / 19

slide-66
SLIDE 66

Proving the Relator Property

relpmf R ◦ relpmf Q ⊆ relpmf (R ◦ Q) lines

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 12 / 19

slide-67
SLIDE 67

Proving the Relator Property

relpmf R ◦ relpmf Q ⊆ relpmf (R ◦ Q) lines 577 a a Elementary, based on A. Sokolova’s thesis

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 12 / 19

slide-68
SLIDE 68

Proving the Relator Property

relpmf R ◦ relpmf Q ⊆ relpmf (R ◦ Q) lines 577 a 406 b a Elementary, based on A. Sokolova’s thesis b Using mappmf

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 12 / 19

slide-69
SLIDE 69

Proving the Relator Property

relpmf R ◦ relpmf Q ⊆ relpmf (R ◦ Q) lines 577 a 406 b 101 c a Elementary, based on A. Sokolova’s thesis b Using mappmf c Based on Jonsson et al.

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 12 / 19

slide-70
SLIDE 70

Proving the Relator Property

relpmf R ◦ relpmf Q ⊆ relpmf (R ◦ Q) lines 577 a 406 b 101 c 46 d a Elementary, based on A. Sokolova’s thesis b Using mappmf c Based on Jonsson et al. d Using mappmf, bindpmf, and condpmf

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 12 / 19

slide-71
SLIDE 71

Proving the Relator Property

relpmf R ◦ relpmf Q ⊆ relpmf (R ◦ Q) lines 577 a 406 b 101 c 46 d 337 e a Elementary, based on A. Sokolova’s thesis b Using mappmf c Based on Jonsson et al. d Using mappmf, bindpmf, and condpmf e Zanella et al. in Coq

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 12 / 19

slide-72
SLIDE 72

System Types

Name Functor Codatatype Markov chain σ pmf MC Labeled MC α × σ pmf α LMC Labeled MDP α × σ pmf setκ

1

α LMDPκ

  • Det. automaton

α ⇒ σ option α DLTS Non-det. automaton (α × σ) setκ α LTSκ Reactive system α ⇒ σ pmf option α React Generative system (α × σ) pmf option α Gen Stratified system σ pmf + (α × σ) option α Str Alternating system σ pmf + (α × σ) setκ α Altκ Simple Segala system (α × σ pmf) setκ α SSegκ Segala system (α × σ) pmf setκ α Segκ Bundle system (α × σ) setκ pmf α Bunκ Pnueli-Zuck system (α × σ) setκ1 pmf setκ2 α PZκ1, κ2 Most general system (α × σ + σ) setκ1 pmf setκ2 α MGκ1, κ2

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 13 / 19

slide-73
SLIDE 73

Hierarchy of Probabilistic System Types

Ana Sokolva – Coalgebraic Analysis of Probabilistic Systems (2005):

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 14 / 19

slide-74
SLIDE 74

Proving the Hierarchy in Isabelle/HOL G is at least as expressive as F, iff ∃G of F :: σ F ⇒ σ G preserving and reflecting bisimilarity Lift to G of F :: τF ⇒ τG Theorem: G of F is injective Proof: by coinduction (proof method in Eisbach)

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 15 / 19

slide-75
SLIDE 75

Hierarchy

α MGκ1, κ2 α option PZκ1, κ2 α option Bunκ α option Segκ α Altκ α PZκ1, κ2 α Bunκ α Segκ α Gen α SSegκ α option SSegκ α Str α LMDPκ α LMC α React α LTSκ MC α DLTS

κ≤κ1 κ≤κ2 κ≤κ1 κ≤κ2 α set≤κ α set≤κ

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 16 / 19

slide-76
SLIDE 76

Hierarchy of Probabilistic System Types

Ana Sokolva – Coalgebraic Analysis of Probabilistic Systems (2005):

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 17 / 19

slide-77
SLIDE 77

Problem with Vardi Systems

◮ Varκ = (α × ) pmf + (α × ) setκ

with: returnpmf (a, s) = {(a, s)}

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 18 / 19

slide-78
SLIDE 78

Problem with Vardi Systems

◮ Varκ = (α × ) pmf + (α × ) setκ

with: returnpmf (a, s) = {(a, s)}

◮ Couldn’t prove that this is a BNF!

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 18 / 19

slide-79
SLIDE 79

Problem with Vardi Systems

◮ Varκ = (α × ) pmf + (α × ) setκ

with: returnpmf (a, s) = {(a, s)}

◮ Couldn’t prove that this is a BNF! ◮ Bisimulation not transitive: relVar R ◦ relVar Q ⊆ relVar (R ◦ Q)

relset R (x, y) ∈ R ↔ y = △

  • 0.5

△ 0.5 △ 1 relpmf Q = (x, y) ∈ Q ↔ x = △

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 18 / 19

slide-80
SLIDE 80

Problem with Vardi Systems

◮ Varκ = (α × ) pmf + (α × ) setκ

with: returnpmf (a, s) = {(a, s)}

◮ Couldn’t prove that this is a BNF! ◮ Bisimulation not transitive: relVar R ◦ relVar Q ⊆ relVar (R ◦ Q)

relset R (x, y) ∈ R ↔ y = △

  • 0.5

△ 0.5 △ 1 relpmf Q = (x, y) ∈ Q ↔ x = △

◮ Approach not possible

That is even a flaw in the original proof!

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 18 / 19

slide-81
SLIDE 81

Conclusion

◮ Formalized hierarchy of probabilistic systems types

α MGκ1, κ2 α option PZκ1, κ2 α option Bunκ α option Segκ α Altκ α PZκ1, κ2 α Bunκ α Segκ α Gen α SSegκ α option SSegκ α Str α LMDPκ α LMC α React α LTSκ MC α DLTS

κ≤κ1 κ≤κ2 κ≤κ1 κ≤κ2 α set≤κ α set≤κ

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 19 / 19

slide-82
SLIDE 82

Conclusion

◮ Formalized hierarchy of probabilistic systems types

α MGκ1, κ2 α option PZκ1, κ2 α option Bunκ α option Segκ α Altκ α PZκ1, κ2 α Bunκ α Segκ α Gen α SSegκ α option SSegκ α Str α LMDPκ α LMC α React α LTSκ MC α DLTS

κ≤κ1 κ≤κ2 κ≤κ1 κ≤κ2 α set≤κ α set≤κ

◮ Found two flaws:

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 19 / 19

slide-83
SLIDE 83

Conclusion

◮ Formalized hierarchy of probabilistic systems types

α MGκ1, κ2 α option PZκ1, κ2 α option Bunκ α option Segκ α Altκ α PZκ1, κ2 α Bunκ α Segκ α Gen α SSegκ α option SSegκ α Str α LMDPκ α LMC α React α LTSκ MC α DLTS

κ≤κ1 κ≤κ2 κ≤κ1 κ≤κ2 α set≤κ α set≤κ

◮ Found two flaws:

◮ Bisimulation on Vardi systems is no equiv. relation H¨

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 19 / 19

slide-84
SLIDE 84

Conclusion

◮ Formalized hierarchy of probabilistic systems types

α MGκ1, κ2 α option PZκ1, κ2 α option Bunκ α option Segκ α Altκ α PZκ1, κ2 α Bunκ α Segκ α Gen α SSegκ α option SSegκ α Str α LMDPκ α LMC α React α LTSκ MC α DLTS

κ≤κ1 κ≤κ2 κ≤κ1 κ≤κ2 α set≤κ α set≤κ

◮ Found two flaws:

◮ Bisimulation on Vardi systems is no equiv. relation ◮ Bounded sets are BNFs for κ ≥ ℵ0 H¨

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 19 / 19

slide-85
SLIDE 85

Conclusion

◮ Formalized hierarchy of probabilistic systems types

α MGκ1, κ2 α option PZκ1, κ2 α option Bunκ α option Segκ α Altκ α PZκ1, κ2 α Bunκ α Segκ α Gen α SSegκ α option SSegκ α Str α LMDPκ α LMC α React α LTSκ MC α DLTS

κ≤κ1 κ≤κ2 κ≤κ1 κ≤κ2 α set≤κ α set≤κ

◮ Found two flaws:

◮ Bisimulation on Vardi systems is no equiv. relation ◮ Bounded sets are BNFs for κ ≥ ℵ0

codatatype + PMF + Eisbach = Hierarchy

  • lzl, Lochbihler & Traytel

A Formalized Hierarchy of Probabilistic System Types ITP 2015 19 / 19