Categorical Liveness Checking by Corecursive Algebras Natsuki - - PowerPoint PPT Presentation

categorical liveness checking
SMART_READER_LITE
LIVE PREVIEW

Categorical Liveness Checking by Corecursive Algebras Natsuki - - PowerPoint PPT Presentation

Categorical Liveness Checking by Corecursive Algebras Natsuki Urabe, Masaki Hara & Ichiro Hasuo June 20, 2017 Natsuki Urabe (U. Tokyo) 1 / 29 Motivation ranking function nondeterministic system Natsuki Urabe (U.


slide-1
SLIDE 1

Natsuki Urabe (U. Tokyo)

/ 29

Categorical Liveness Checking

by

Corecursive Algebras

Natsuki Urabe, Masaki Hara & Ichiro Hasuo June 20, 2017

1

slide-2
SLIDE 2

Natsuki Urabe (U. Tokyo)

/ 29

Motivation

2

nondeterministic system

ranking function

slide-3
SLIDE 3

Natsuki Urabe (U. Tokyo)

/ 29

Motivation

2

nondeterministic system

ranking function

generalization

categorically generalized system

“categorical ranking function”

slide-4
SLIDE 4

Natsuki Urabe (U. Tokyo)

/ 29

Motivation

2

nondeterministic system

ranking function

probabilistic system

concretization

“probabilistic ranking function”?

generalization

categorically generalized system

“categorical ranking function”

slide-5
SLIDE 5

Natsuki Urabe (U. Tokyo)

/ 29

Outline

  • Preliminary
  • Ranking Function
  • Coalgebra and Coalgebra-Algebra Homomorphism
  • Contribution
  • Coalgebraic Ranking Function
  • Probabilistic Ranking Function
  • Conclusion and Future Work

3

slide-6
SLIDE 6

Natsuki Urabe (U. Tokyo)

/ 29

Outline

3

  • Preliminary
  • Ranking Function
  • Coalgebra and Coalgebra-Algebra Homomorphism
  • Contribution
  • Coalgebraic Ranking Function
  • Probabilistic Ranking Function
  • Conclusion and Future Work
slide-7
SLIDE 7

Natsuki Urabe (U. Tokyo)

/ 29 4

Ranking Function (see e.g. [Floyd, ’67])

Def: A function is a ranking function if:

for each nonaccepting state x b : X → N∞ N ∪ {∞} N∞ =

( )

min

x!x0 b(x0)+1 ≤ b(x)

  • A method for checking reachability
slide-8
SLIDE 8

Natsuki Urabe (U. Tokyo)

/ 29 4

Ranking Function (see e.g. [Floyd, ’67])

Def: A function is a ranking function if:

for each nonaccepting state x b : X → N∞ N ∪ {∞} N∞ =

( )

x

nonaccepting

○ ○ ○

a

b

c

  • x

accepting

arbitrary

≥ min{a, b, c} + 1 min

x!x0 b(x0)+1 ≤ b(x)

  • A method for checking reachability
slide-9
SLIDE 9

Natsuki Urabe (U. Tokyo)

/ 29 5

Ranking Function (see e.g. [Floyd, ’67])

  • Example:

x0 x1 x2 x3 x4 u x5 / / O / O

  • O

/

Def: A function is a ranking function if:

for each nonaccepting state x b : X → N∞ N ∪ {∞} N∞ =

( )

min

x!x0 b(x0)+1 ≤ b(x)

  • A method for checking reachability
slide-10
SLIDE 10

Natsuki Urabe (U. Tokyo)

/ 29 5

Ranking Function (see e.g. [Floyd, ’67])

  • Example:

x0 x1 x2 x3 x4 u x5 / / O / O

  • O

/

Def: A function is a ranking function if:

for each nonaccepting state x b : X → N∞ N ∪ {∞} N∞ =

( )

min

x!x0 b(x0)+1 ≤ b(x)

  • A method for checking reachability
slide-11
SLIDE 11

Natsuki Urabe (U. Tokyo)

/ 29 5

Ranking Function (see e.g. [Floyd, ’67])

  • Example:

x0 x1 x2 x3 x4 u x5 / / O / O

  • O

/

1

Def: A function is a ranking function if:

for each nonaccepting state x b : X → N∞ N ∪ {∞} N∞ =

( )

min

x!x0 b(x0)+1 ≤ b(x)

  • A method for checking reachability
slide-12
SLIDE 12

Natsuki Urabe (U. Tokyo)

/ 29 5

Ranking Function (see e.g. [Floyd, ’67])

  • Example:

x0 x1 x2 x3 x4 u x5 / / O / O

  • O

/

1 2

Def: A function is a ranking function if:

for each nonaccepting state x b : X → N∞ N ∪ {∞} N∞ =

( )

min

x!x0 b(x0)+1 ≤ b(x)

  • A method for checking reachability
slide-13
SLIDE 13

Natsuki Urabe (U. Tokyo)

/ 29 5

Ranking Function (see e.g. [Floyd, ’67])

  • Example:

x0 x1 x2 x3 x4 u x5 / / O / O

  • O

/

1 2

Def: A function is a ranking function if:

for each nonaccepting state x b : X → N∞ N ∪ {∞} N∞ =

( )

min

x!x0 b(x0)+1 ≤ b(x)

  • A method for checking reachability
slide-14
SLIDE 14

Natsuki Urabe (U. Tokyo)

/ 29 5

Ranking Function (see e.g. [Floyd, ’67])

  • Example:

x0 x1 x2 x3 x4 u x5 / / O / O

  • O

/

1 2

∞ ∞ ∞

Def: A function is a ranking function if:

for each nonaccepting state x b : X → N∞ N ∪ {∞} N∞ =

( )

min

x!x0 b(x0)+1 ≤ b(x)

  • A method for checking reachability
slide-15
SLIDE 15

Natsuki Urabe (U. Tokyo)

/ 29 6

x0 x1 x2 x3 x4 u x5 / / O / O

  • O

/

1 2

∞ ∞ ∞

Soundness of Ranking Functions

b(x) ≥ distance to an accepting state from x !

slide-16
SLIDE 16

Natsuki Urabe (U. Tokyo)

/ 29 6

x0 x1 x2 x3 x4 u x5 / / O / O

  • O

/

1 2

∞ ∞ ∞

Soundness of Ranking Functions

Thm: (see e.g. [Floyd, PSAM ’67])

b(x) < ∞ b is a ranking function and an accepting state is reachable from x b(x) ≥ distance to an accepting state from x !

slide-17
SLIDE 17

Natsuki Urabe (U. Tokyo)

/ 29 6

x0 x1 x2 x3 x4 u x5 / / O / O

  • O

/

1 2

∞ ∞ ∞

Soundness of Ranking Functions

Thm: (see e.g. [Floyd, PSAM ’67])

b(x) < ∞ b is a ranking function and an accepting state is reachable from x

under-approximates the reaching set

b(x) ≥ distance to an accepting state from x !

slide-18
SLIDE 18

Natsuki Urabe (U. Tokyo)

/ 29

Outline

  • Preliminary
  • Ranking Function
  • Coalgebra and Coalgebra-Algebra Homomorphism
  • Contribution
  • Coalgebraic Ranking Function
  • Probabilistic Ranking Function
  • Conclusion and Future Work

7

slide-19
SLIDE 19

Natsuki Urabe (U. Tokyo)

/ 29

Towards Categorical Generalization

8

  • We have to categorically characterize:
  • a transition system
  • a reachability to accepting states
  • Our first goal:

categorical generalization of ranking function

slide-20
SLIDE 20

Natsuki Urabe (U. Tokyo)

/ 29

Coalgebra

  • An (F-)coalgebra is a function of the following form:

9

X → F X

  • Coalgebras model transition systems

: a functor

F

7!

X 7! F X

(f : X → Y )

(F f : F X → F Y )

slide-21
SLIDE 21

Natsuki Urabe (U. Tokyo)

/ 29

Coalgebra

  • An (F-)coalgebra is a function of the following form:

9

X → F X

  • Coalgebras model transition systems

: a functor

F

7!

X 7! F X

(f : X → Y )

(F f : F X → F Y )

  • Dual notion: algebra

F X → X

  • Algebras model modalities
slide-22
SLIDE 22

Natsuki Urabe (U. Tokyo)

/ 29 10

Example I: Nondeterministic Transition System with Accepting States

where PX = {A ⊆ X}

F = P( ) × {0, 1} c : X → PX × {0, 1}

slide-23
SLIDE 23

Natsuki Urabe (U. Tokyo)

/ 29 10

Example I: Nondeterministic Transition System with Accepting States

an accepting state

x0 x1 x2 x3 x4 u x5 / / O / O

  • O

/

where PX = {A ⊆ X}

F = P( ) × {0, 1} c : X → PX × {0, 1}

slide-24
SLIDE 24

Natsuki Urabe (U. Tokyo)

/ 29 10

Example I: Nondeterministic Transition System with Accepting States

an accepting state

x0 x1 x2 x3 x4 u x5 / / O / O

  • O

/

where PX = {A ⊆ X}

F = P( ) × {0, 1} c : X → PX × {0, 1} X = {x0, x1, x2, x3, x4, x5} c :            x0 7! ({x1, x2}, 0) x1 7! ({x3}, 0) . . . x4 7! ({x5}, 1) . . .

slide-25
SLIDE 25

Natsuki Urabe (U. Tokyo)

/ 29 11

Example II: Probabilistic Transition System with Accepting States

where

c : X → DX × {0, 1}

DX = {d : X → [0, 1] | P

x d(x) = 1}

F = D( ) × {0, 1}

slide-26
SLIDE 26

Natsuki Urabe (U. Tokyo)

/ 29 11

Example II: Probabilistic Transition System with Accepting States

x0 x1 x2 x3 x4

u

x5

0.3 / 0.4

O /

1

O

0.7 1

  • 1

O

0.6 /

where

c : X → DX × {0, 1}

DX = {d : X → [0, 1] | P

x d(x) = 1}

F = D( ) × {0, 1}

slide-27
SLIDE 27

Natsuki Urabe (U. Tokyo)

/ 29 11

Example II: Probabilistic Transition System with Accepting States

x0 x1 x2 x3 x4

u

x5

0.3 / 0.4

O /

1

O

0.7 1

  • 1

O

0.6 /

where

c : X → DX × {0, 1}

DX = {d : X → [0, 1] | P

x d(x) = 1}

F = D( ) × {0, 1} X = {x0, x1, x2, x3, x4, x5}

c :          x0 7! ([x1 7! 0.7, x2 7! 0.3], 0) x1 7! ([x3 7! 1], 0) x2 7! ([x3 7! 0.4, x4 7! 0.6], 0) . . .

slide-28
SLIDE 28

Natsuki Urabe (U. Tokyo)

/ 29

Def:

Coalgebra-Algebra Homomorphism

12

A coalgebra-algebra homomorphism from to is s.t.

σ : F Ω → Ω

c : X → F X f : X → Ω

σ F f c = f

F X

= F f

/ F Ω

σ

✏ X

c

O

f

/ Ω

  • Especially, the least coalgebra-algebra homomorphism

captures reachability

JµσKc : X → Ω

slide-29
SLIDE 29

Natsuki Urabe (U. Tokyo)

/ 29

Def:

Coalgebra-Algebra Homomorphism

12

A coalgebra-algebra homomorphism from to is s.t.

σ : F Ω → Ω

c : X → F X f : X → Ω

σ F f c = f

F X

= F f

/ F Ω

σ

✏ X

c

O

f

/ Ω

  • Especially, the least coalgebra-algebra homomorphism

captures reachability

JµσKc : X → Ω

Example:

JµσKc(x) = 1 ⇔ an accepting state is reachable from x

  • For nondeterministic systems, s.t.

σ : F {0, 1} → {0, 1} ∃

  • For probabilistic systems, s.t.

∃ σ : F [0, 1] → [0, 1] JµσKc(x) = Prob(reach an accepting state from x)

slide-30
SLIDE 30

Natsuki Urabe (U. Tokyo)

/ 29

Remark: Coalgebra-Algebra Homomorphism is Fixed Point

(see e.g. [Jacobs, LMCS 2015])

13

Def:

F X

F f

/ F Ω

σ

✏ X

c

O Ω

X

f

/ Ω 7!

Φc,σ :

(predicate lifting + precomposing c => weakest precondition)

slide-31
SLIDE 31

Natsuki Urabe (U. Tokyo)

/ 29

Remark: Coalgebra-Algebra Homomorphism is Fixed Point

(see e.g. [Jacobs, LMCS 2015])

13

Def:

F X

F f

/ F Ω

σ

✏ X

c

O Ω

X

f

/ Ω 7!

Φc,σ :

Prop:

⇔ f is a fixed point of Φc,σ

F X

= F f

/ F Ω

σ

✏ X

c

O

f

/ Ω

(predicate lifting + precomposing c => weakest precondition)

slide-32
SLIDE 32

Natsuki Urabe (U. Tokyo)

/ 29

Remark: Coalgebra-Algebra Homomorphism is Fixed Point

(see e.g. [Jacobs, LMCS 2015])

13

Def:

F X

F f

/ F Ω

σ

✏ X

c

O Ω

X

f

/ Ω 7!

Φc,σ :

Prop:

⇔ f is a fixed point of Φc,σ

F X

= F f

/ F Ω

σ

✏ X

c

O

f

/ Ω

  • Reachability as the least fixed point (see e.g. [Baier & Katoen])

reachability as the least coalgebra-algebra homomorphism

(predicate lifting + precomposing c => weakest precondition)

slide-33
SLIDE 33

Natsuki Urabe (U. Tokyo)

/ 29

Outline

  • Preliminary
  • Ranking Function
  • Coalgebra and Coalgebra-Algebra Homomorphism
  • Contribution
  • Coalgebraic Ranking Function
  • Probabilistic Ranking Function
  • Conclusion and Future Work

14

slide-34
SLIDE 34

Natsuki Urabe (U. Tokyo)

/ 29

for each nonaccepting state x

A function is a ranking function if:

b : X → N∞ N ∪ {∞} N∞ =

( )

Def:

15

Categorical Ranking Function

min

x!x0 b(x0)+1 ≤ b(x)

slide-35
SLIDE 35

Natsuki Urabe (U. Tokyo)

/ 29

for each nonaccepting state x

A function is a ranking function if:

b : X → N∞ N ∪ {∞} N∞ =

( )

Def:

15

Categorical Ranking Function

min

x!x0 b(x0)+1 ≤ b(x)

15

Def:

An arrow is a ranking arrow wrt. if: b : X → R

(r, q, vR)

Def:

A ranking domain wrt. σ : F Ω → Ω is a triple ( r : F R ! R, q : R ! Ω, vR ) s.t.

  • 1. R is a complete lattice and Φc,r is monotone
  • 2. q is monotone, ⊥-preserving and continuous
  • 4. r is corecursive
  • 3. q r v σ F q

b vR r F b c

slide-36
SLIDE 36

Natsuki Urabe (U. Tokyo)

/ 29

Categorical Ranking Function

16 16

Def:

An arrow is a ranking arrow wrt. if: b : X → R

(r, q, vR)

Def:

A ranking domain wrt. σ : F Ω → Ω is a triple ( r : F R ! R, q : R ! Ω, vR ) s.t.

  • 1. R is a complete lattice and Φc,r is monotone
  • 2. q is monotone, ⊥-preserving and continuous
  • 4. r is corecursive
  • 3. q r v σ F q

b vR r F b c

slide-37
SLIDE 37

Natsuki Urabe (U. Tokyo)

/ 29

Categorical Ranking Function

16

F X v

F b

/ F R

r

v F q

/ F Ω

σ

✏ X

c

O

b

/ 7 R

q

/ Ω

16

Def:

An arrow is a ranking arrow wrt. if: b : X → R

(r, q, vR)

Def:

A ranking domain wrt. σ : F Ω → Ω is a triple ( r : F R ! R, q : R ! Ω, vR ) s.t.

  • 1. R is a complete lattice and Φc,r is monotone
  • 2. q is monotone, ⊥-preserving and continuous
  • 4. r is corecursive
  • 3. q r v σ F q

b vR r F b c

slide-38
SLIDE 38

Natsuki Urabe (U. Tokyo)

/ 29

Categorical Ranking Function

16

F X v

F b

/ F R

r

v F q

/ F Ω

σ

✏ X

c

O

b

/ 7 R

q

/ Ω

16

Def:

An arrow is a ranking arrow wrt. if: b : X → R

(r, q, vR)

Def:

A ranking domain wrt. σ : F Ω → Ω is a triple ( r : F R ! R, q : R ! Ω, vR ) s.t.

  • 1. R is a complete lattice and Φc,r is monotone
  • 2. q is monotone, ⊥-preserving and continuous
  • 4. r is corecursive
  • 3. q r v σ F q

b vR r F b c

slide-39
SLIDE 39

Natsuki Urabe (U. Tokyo)

/ 29

Categorical Ranking Function

16

F X v

F b

/ F R

r

v F q

/ F Ω

σ

✏ X

c

O

b

/ 7 R

q

/ Ω

16

Def:

An arrow is a ranking arrow wrt. if: b : X → R

(r, q, vR)

Def:

A ranking domain wrt. σ : F Ω → Ω is a triple ( r : F R ! R, q : R ! Ω, vR ) s.t.

  • 1. R is a complete lattice and Φc,r is monotone
  • 2. q is monotone, ⊥-preserving and continuous
  • 4. r is corecursive
  • 3. q r v σ F q

b vR r F b c

slide-40
SLIDE 40

Natsuki Urabe (U. Tokyo)

/ 29

Corecursive Algebra

17

  • It has been used to ensure productivity of general

structured corecursion [Capretta et al., SBMF ‘09]

Def:

An algebra is corecursive if for all coalgebra , a coalgebra-algebra homomorphism from to uniquely exists.

r : F R → R c : X → F X

c

r

F X

= F LrMc / F R r

✏ X

c

O

LrMc

/ R

  • We use it to ensure reachability (termination)
slide-41
SLIDE 41

Natsuki Urabe (U. Tokyo)

/ 29

Categorical Ranking Function

18 18

Def:

An arrow is a ranking arrow wrt. if: b : X → R

(r, q, vR)

Def:

A ranking domain wrt. σ : F Ω → Ω is a triple ( r : F R ! R, q : R ! Ω, vR ) s.t.

  • 1. R is a complete lattice and Φc,r is monotone
  • 2. q is monotone, ⊥-preserving and continuous
  • 4. r is corecursive
  • 3. q r v σ F q

b vR r F b c F X v

F b

/ F R

r

v F q

/ F Ω

σ

✏ X

c

O

b

/ R

q

/ Ω

slide-42
SLIDE 42

Natsuki Urabe (U. Tokyo)

/ 29

Categorical Ranking Function

18 18

Def:

An arrow is a ranking arrow wrt. if: b : X → R

(r, q, vR)

Def:

A ranking domain wrt. σ : F Ω → Ω is a triple ( r : F R ! R, q : R ! Ω, vR ) s.t.

  • 1. R is a complete lattice and Φc,r is monotone
  • 2. q is monotone, ⊥-preserving and continuous
  • 4. r is corecursive
  • 3. q r v σ F q

b vR r F b c F X v

F b

/ F R

r

v F q

/ F Ω

σ

✏ X

c

O

b

/ R

q

/ Ω

fix a ranking domain

notion of ranking function

slide-43
SLIDE 43

Natsuki Urabe (U. Tokyo)

/ 29

Categorical Soundness Theorem

19

Thm: (see e.g. [Floyd, PSAM ’67])

b(x) < ∞ b is a ranking function and an accepting state is reachable from x

slide-44
SLIDE 44

Natsuki Urabe (U. Tokyo)

/ 29

Categorical Soundness Theorem

19

Thm: (see e.g. [Floyd, PSAM ’67])

{x | b(x) < ∞} b is a ranking function ⊆ ( x

  • accepting states

reachable )

slide-45
SLIDE 45

Natsuki Urabe (U. Tokyo)

/ 29

Categorical Soundness Theorem

19

Thm: (see e.g. [Floyd, PSAM ’67])

{x | b(x) < ∞} b is a ranking function ⊆ ( x

  • accepting states

reachable )

Thm (soundness):

q b v JµσKc

b is a ranking arrow

  • wrt. (r, q, vR)

F X v

F b

/ F R

r

v F q

/ F Ω

σ

✏ X

c

O

b

/

JµσKc

7 R

q

/ Ω

v

slide-46
SLIDE 46

Natsuki Urabe (U. Tokyo)

/ 29

Intuition behind Corecursiveness

20

  • Aim of ranking function:

under-approximate the least fixed point

F X

=µ F JµσKc / F Ω σ

✏ X

c

O

JµσKc

/ Ω

slide-47
SLIDE 47

Natsuki Urabe (U. Tokyo)

/ 29

Intuition behind Corecursiveness

20

  • Aim of ranking function:

under-approximate the least fixed point

F X

=µ F JµσKc / F Ω σ

✏ X

c

O

JµσKc

/ Ω

  • Ranking arrow is a post-fixed point

F X v

F b

/ F R

r

✏ X

c

O

b

/ R

slide-48
SLIDE 48

Natsuki Urabe (U. Tokyo)

/ 29

Intuition behind Corecursiveness

20

  • Aim of ranking function:

under-approximate the least fixed point

F X

=µ F JµσKc / F Ω σ

✏ X

c

O

JµσKc

/ Ω

  • Ranking arrow is a post-fixed point

F X v

F b

/ F R

r

✏ X

c

O

b

/ R

It under-approximates the greatest fixed point

(the Knaster-Tarski theorem)

slide-49
SLIDE 49

Natsuki Urabe (U. Tokyo)

/ 29

Intuition behind Corecursiveness

20

  • Aim of ranking function:

under-approximate the least fixed point

F X

=µ F JµσKc / F Ω σ

✏ X

c

O

JµσKc

/ Ω

we collapse the least and the greatest fixed points (i.e. unique coalgebra-algebra homomorphism)

  • Ranking arrow is a post-fixed point

F X v

F b

/ F R

r

✏ X

c

O

b

/ R

It under-approximates the greatest fixed point

(the Knaster-Tarski theorem)

slide-50
SLIDE 50

Natsuki Urabe (U. Tokyo)

/ 29

Outline

  • Preliminary
  • Ranking Function
  • Coalgebra and Coalgebra-Algebra Homomorphism
  • Contribution
  • Coalgebraic Ranking Function
  • Probabilistic Ranking Function
  • Conclusion and Future Work

21

slide-51
SLIDE 51

Natsuki Urabe (U. Tokyo)

/ 29

Concretization

22

nondeterministic system

ranking function & soundness theorem

probabilistic automaton

concretization

“probabilistic ranking function”?

generalization

categorically generalized system

“categorical ranking function” & soundness theorem

c : X → PX × {0, 1} c : X → DX × {0, 1}

slide-52
SLIDE 52

Natsuki Urabe (U. Tokyo)

/ 29

Ranking Supermartingale [Chakarov et al., ’13]

23

Def:

X

x02X

Prob(x → x0) · b(x0) +1 ≤ b(x)

A function is a ranking supermartingale if:

b : X → [0, ∞]

  • A method for checking almost-sure reachability on

probabilistic systems

slide-53
SLIDE 53

Natsuki Urabe (U. Tokyo)

/ 29

Ranking Supermartingale [Chakarov et al., ’13]

23

Def:

X

x02X

Prob(x → x0) · b(x0) +1 ≤ b(x)

A function is a ranking supermartingale if:

b : X → [0, ∞]

  • A method for checking almost-sure reachability on

probabilistic systems

  • x

accepting

x

nonaccepting

○ ○ ○

c a b

p q r

≥ pa + qb + rc+1

arbitrary

slide-54
SLIDE 54

Natsuki Urabe (U. Tokyo)

/ 29

Soundness Theorem

24

Def:

X

x02X

Prob(x → x0) · b(x0) +1 ≤ b(x)

A function is a ranking supermartingale if:

b : X → [0, ∞] u O

1 2

O

1 2

;

  • Example
slide-55
SLIDE 55

Natsuki Urabe (U. Tokyo)

/ 29

Soundness Theorem

24

Def:

X

x02X

Prob(x → x0) · b(x0) +1 ≤ b(x)

A function is a ranking supermartingale if:

b : X → [0, ∞] u O

1 2

O

1 2

;

2

  • Example
slide-56
SLIDE 56

Natsuki Urabe (U. Tokyo)

/ 29

Soundness Theorem

24

Def:

X

x02X

Prob(x → x0) · b(x0) +1 ≤ b(x)

A function is a ranking supermartingale if:

b : X → [0, ∞] u O

1 2

O

1 2

;

2

  • Example

b(x) ≥ E number of steps to an accepting state from x !

slide-57
SLIDE 57

Natsuki Urabe (U. Tokyo)

/ 29

Soundness Theorem

24

Def:

X

x02X

Prob(x → x0) · b(x0) +1 ≤ b(x)

A function is a ranking supermartingale if:

b : X → [0, ∞] u O

1 2

O

1 2

;

2

Thm:

b is a ranking supermartingale and b(x) < ∞

⇒ Pr

an accepting state is reached ! = 1

  • Example

b(x) ≥ E number of steps to an accepting state from x !

slide-58
SLIDE 58

Natsuki Urabe (U. Tokyo)

/ 29

Soundness Theorem

24

Def:

X

x02X

Prob(x → x0) · b(x0) +1 ≤ b(x)

A function is a ranking supermartingale if:

b : X → [0, ∞] u O

1 2

O

1 2

;

2

Thm:

b is a ranking supermartingale and b(x) < ∞

⇒ Pr

an accepting state is reached ! = 1

  • Example
  • Ranking supermartingale resembles to ranking function

a ranking domain for ranking supermartingale exists? b(x) ≥ E number of steps to an accepting state from x !

slide-59
SLIDE 59

Natsuki Urabe (U. Tokyo)

/ 29

Problem and Next Step

25

(r, q, vR)

  • We couldn’t find a ranking domain s.t.

b is a ranking arrow

  • wrt. (r, q, vR)

b is a ranking supermartingale

slide-60
SLIDE 60

Natsuki Urabe (U. Tokyo)

/ 29

Problem and Next Step

25

(r, q, vR)

  • We couldn’t find a ranking domain s.t.

b is a ranking arrow

  • wrt. (r, q, vR)

b is a ranking supermartingale

We decided to give up describing ranking supermartingales

slide-61
SLIDE 61

Natsuki Urabe (U. Tokyo)

/ 29

Problem and Next Step

25

(r, q, vR)

  • We couldn’t find a ranking domain s.t.

b is a ranking arrow

  • wrt. (r, q, vR)

b is a ranking supermartingale

  • Instead, we found two ranking domains

for probabilistic systems

We decided to give up describing ranking supermartingales They induces new definitions of ranking function (to the best of our knowledge)

slide-62
SLIDE 62

Natsuki Urabe (U. Tokyo)

/ 29

For a probabilistic transition system, a function is a distribution-valued ranking function if:

b : X → DN∞

X

x02X

Pr(x → x0) · b(x0) !

  • [0, a − 1]
  • ≥ b(x)
  • [0, a]
  • Def:

Distribution-valued Ranking Supermartingale

26

∀a ∈ N∞. By soundness of (categorical) ranking arrows,

Thm:

Pr an accepting state is reached from x ! b(x)

  • [0, ∞)
slide-63
SLIDE 63

Natsuki Urabe (U. Tokyo)

/ 29

For a probabilistic transition system, a function is a distribution-valued ranking function if:

b : X → DN∞

X

x02X

Pr(x → x0) · b(x0) !

  • [0, a − 1]
  • ≥ b(x)
  • [0, a]
  • Def:

Distribution-valued Ranking Supermartingale

26

∀a ∈ N∞. By soundness of (categorical) ranking arrows,

Thm:

Pr an accepting state is reached from x ! b(x)

  • [0, ∞)

Quantitative reasoning

slide-64
SLIDE 64

Natsuki Urabe (U. Tokyo)

/ 29

Def:

Scaled Noncounting Ranking Supermartingale

27

Quantitative reasoning

For , a function is a -scaled noncounting ranking function if:

By soundness of (categorical) ranking arrows,

Thm:

Pr an accepting state is reached from x !

b(x) ≤

γ ∈ (0, 1) b : X → [0, 1]

γ

γ· X

x02X

Pr(x → x0) · b(x0) ≥ b(x)

slide-65
SLIDE 65

Natsuki Urabe (U. Tokyo)

/ 29

Outline

  • Preliminary
  • Ranking Function
  • Coalgebra and Coalgebra-Algebra Homomorphism
  • Contribution
  • Coalgebraic Ranking Function
  • Probabilistic Ranking Function
  • Conclusion and Future Work

28

slide-66
SLIDE 66

Natsuki Urabe (U. Tokyo)

/ 29

Conclusion

29

  • Categorical generalization of ranking function
  • Post-fixed point + corecursive algebra
  • (Categorical) soundness theorem
  • Concretization for probabilistic systems:
  • failed to describe ranking supermartingale
  • induced two new notions for liveness checking

Future Work

  • Extension to Büchi/parity systems
  • Implementation
slide-67
SLIDE 67

Natsuki Urabe (U. Tokyo)

/ 29 30

slide-68
SLIDE 68

Natsuki Urabe (U. Tokyo)

/ 29 31