Input/Output Stochastic Automata with Urgency Confluence and - - PowerPoint PPT Presentation

input output stochastic automata with urgency
SMART_READER_LITE
LIVE PREVIEW

Input/Output Stochastic Automata with Urgency Confluence and - - PowerPoint PPT Presentation

Input/Output Stochastic Automata with Urgency Confluence and Determinism Pedro R. DArgenio 1 , 2 , Ra ul E. Monti 1 1 Universidad Nacional de C ordoba - CONICET - Argentina 2 Saarland University, Saarbr ucken, Germany ICTAC 2018 -


slide-1
SLIDE 1

Input/Output Stochastic Automata with Urgency

Confluence and Determinism Pedro R. D’Argenio1,2, Ra´ ul E. Monti1

1Universidad Nacional de C´

  • rdoba - CONICET - Argentina

2Saarland University, Saarbr¨

ucken, Germany

ICTAC 2018 - Stellenbosch

slide-2
SLIDE 2

Table of Contents

Introduction Motivation Introducing urgent actions Weak determinism Conclusion

slide-3
SLIDE 3

Table of Contents

Introduction Motivation Introducing urgent actions Weak determinism Conclusion

slide-4
SLIDE 4

Introduction

This talk involves the development of an Automata framework tailored to the formal analysis of Stochastic Systems:

IOSA

slide-5
SLIDE 5

Introduction

Do we all know Automata? Do you allow me to skip Formal Analysis? Key point: we want to do discrete event simulation on IOSA, hence we need IOSA to be deterministic.

slide-6
SLIDE 6

Table of Contents

Introduction Motivation Introducing urgent actions Weak determinism Conclusion

slide-7
SLIDE 7

Former Input/Output Stochastic Automata

(S,A,C, →,C0,s0)

▸ S = states ▸ A = actions (AI ⊍AO) ▸ C = clocks

▸ x ∈ C ↦ µx

→ ⊆ S × C × A × C × S

▸ + some rules ▸ Compositional ▸ Deterministic

s1 s2 {x},a,{y,z}

slide-8
SLIDE 8

Parallel Composition I1∣∣I2 = (S1 × S2,A,C, →,C0,s1

0∣∣s2 0)

▸ AO = AO 1 ∪ AO 2 ▸ AI = (AI 1 ∪ AI 2) ∖ AO ▸ C = C1 ∪ C2 and C0 = C1 0 ∪ C2

s1

C,a,C ′

  • →1 s′

1

s1∣∣s2

C,a,C ′

  • → s′

1∣∣s2

a ∈ A1∖A2 s2

C,a,C ′

  • →2 s′

2

s1∣∣s2

C,a,C ′

  • → s1∣∣s′

2

a ∈ A2∖A1 s1

C1,a,C ′

1

  • →1 s′

1

s2

C2,a,C ′

2

  • →2 s′

2

s1∣∣s2

C1∪C2,a,C ′

1∪C ′ 2

  • → s′

1∣∣s′ 2

a ∈ A1∩A2

slide-9
SLIDE 9

A Fault Tree modeling example

s4 s3 s2 s1 s6 s5 s8 s7 AND {},f 1?,{} {},f 2?,{} {},f 2?,{} {},f 1?,{} {x},f 1!,{} {y},f 2!,{}

slide-10
SLIDE 10

A Fault Tree modeling example

s4 s3 s2 s1 s6 s5 s8 s7 AND {},f 1?,{} {},f 2?,{} {},f 2?,{} {},f 1?,{} {x},f 1!,{} {y},f 2!,{} s1∣∣s5∣∣s7 s3∣∣s5∣∣s8 s2∣∣s6∣∣s7 s1∣∣s5∣∣s7 ∣∣ {x},f 1!,{} {y},f 2!,{} {y},f 2!,{} {x},f 1!,{}

Deterministic closed IOSA

slide-11
SLIDE 11

Composition problem

s4 s3 s2 s1 s6 s5 s8 s7 s10 s9 s11 s12 AND OR {},f 1?,{} {},f 2?,{} {},f 2?,{} {},f 1?,{} {x},f 1!,{} {y},f 2!,{} {z},f 3!,{} {},f 3?,{} {},?,{}

slide-12
SLIDE 12

Composition problem

Synchronization ⇒ delay

s4 s3 s2 s1 s6 s5 s8 s7 s10 s9 s11 s12 AND OR {},f 1?,{} {},f 2?,{} {},f 2?,{} {},f 1?,{} {x},f 1!,{} {y},f 2!,{} {z},f 3!,{} {},f 3?,{} {},f ?,{} {w},f!,{}

slide-13
SLIDE 13

Composition problem

Poor use of composition

s4 s3 s2 s1 s6 s5 s8 s7 s10 s9 Monolithic AND/OR {},f 1?,{} {},f 2?,{} {},f 2?,{} {},f 1?,{} {x},f 1!,{} {y},f 2!,{} {z},f 3!,{} {},f 3?,{}

slide-14
SLIDE 14

Table of Contents

Introduction Motivation Introducing urgent actions Weak determinism Conclusion

slide-15
SLIDE 15

Input/Output Stochastic Automata

with urgent actions

(S,A,C, →,C0,s0)

▸ S = states ▸ A = actions (AI ⊍AO)

and Au ⊆ A are urgent.

▸ C = clocks

▸ x ∈ C ↦ µx

→ ⊆ S × C × A × C × S

▸ Compositional

s1 s2 {},a!!,{y,z}

slide-16
SLIDE 16

Urgent IOSA are non-det. even for closed models Former IOSA

s1 s2 s3 {x},a!,{} {y},b!,{}

Urgent IOSA

s1 s2 s3 {},a!!,{} {},b!!,{}

slide-17
SLIDE 17

Spurious non-determinism?

s0 s1 s2 s3 s4 s5 ∅,a!!,{x} ∅,b!!,{y} ∅,b!!,{y} ∅,a!!,{x} {x},c!,∅ {y},d!,∅ I confluent ⇒ I weak deterministic.

slide-18
SLIDE 18

Confluence (from Milner)

a and b urgent actions:

∀ ∃

s s1 s2 s3 ∅,a,C1 ∅,b,C2 ∅,b,C2 ∅,a,C1

Proposition If I1 and I2 are confluent, I1∣∣I2 is also confluent.

slide-19
SLIDE 19

Weak determinism

Definition

We say that a closed IOSA is weakly deterministic if (i) almost surely at most one discrete non-urgent transition is enabled at every time point, (ii) the election over enabled urgent transitions does not affect the non urgent-behavior of the model, and (iii) no non-urgent output and urgent output are enabled simultaneously.

slide-20
SLIDE 20

Weak transition

s0 s1 s2 s3 s4 s5 ∅,a!!,{x} ∅,b!!,{y} ∅,b!!,{y} ∅,a!!,{x} {x},c!,∅ {y},d!,∅ s0 {},τ,{x,y} s3 s4 s5 {x},c!,∅ {y},d!,∅

slide-21
SLIDE 21

IOSA semantics

Given an IOSA I = (S,A,C, →,C0,s0) with C = {x1,...,xN}, its semantics is defined by the NLMP P(I) = (S,B(S),{Ta ∣ a ∈ L}) where

▸ S = (S ∪ {init}) × RN, L = A ∪ R>0 ∪ {init}, with

init ∉ S ∪ A ∪ R>0

▸ Tinit(init, ⃗

v) = {δs0 × ∏N

i=1 µxi}, ▸ Ta(s, ⃗

v) = {µ⃗

v C ′,s′ ∣ s C,a,C ′

  • → s′,⋀xi∈C ⃗

v(i) ≤ 0}, for all a ∈ A, where µ⃗

v C ′,s′ = δs′ × ∏N i=1 µxi with µxi = µxi if xi ∈ C ′ and

µxi = δ⃗

v(i) otherwise, and ▸ Td(s, ⃗

v) = {δs × ∏N

i=1 δ⃗ v(i)−d} if there is no urgent b ∈ Ao ∩ Au

for which s

,b,

and 0 < d ≤ min{⃗ v(i) ∣ ∃a∈Ao,C ′⊆C,s′∈S ∶ s

{xi},a,C ′

  • → s′}, and

Td(s, ⃗ v) = ∅ otherwise, for all d ∈ R≥0.

slide-22
SLIDE 22

Discrete vs Continuous Confluence

s0 s1 s2 s3 τ τ τ τ

slide-23
SLIDE 23

Discrete vs Continuous Confluence

s0 s1 s2 s3 τ τ τ τ

slide-24
SLIDE 24

Discrete vs Continuous Confluence

s0 s1 s2 s3 τ τ τ τ

µ

slide-25
SLIDE 25

Table of Contents

Introduction Motivation Introducing urgent actions Weak determinism Conclusion

slide-26
SLIDE 26

Weak Transition

Definition

We define (s, ⃗ v)

C

  • ⇒n µ inductively by the following rules:

(T1) s

∅,τ,C

  • → s′

st (s′) (s, ⃗ v)

C

  • ⇒1 µ⃗

v C,s′

(T2) s

∅,τ,C ′

  • → s′

∀⃗ v′ ∈ RN ∶ ∃C ′′,µ′ ∶ (s′, ⃗ v′)

C ′′

  • ⇒n µ′

(s, ⃗ v)

C ′∪C ′′

  • ⇒n+1 ˆ

µ Where µ⃗

v C,s is defined as in IOSA semantics and

ˆ µ = ∫S×RN f C ′′

n

dµ⃗

v C ′,s′, with f C ′′ n

(t, ⃗ w) = ν, if (t, ⃗ w)

C ′′

  • ⇒n ν, and

f C ′′

n

(t, ⃗ w) = 0 otherwise. We define the weak transition (s, ⃗ v) ⇒ µ if (s, ⃗ v)

C

  • ⇒n µ for some n ≥ 1 and C ⊆ C.
slide-27
SLIDE 27

Weak determinism

Definition

A closed IOSA I is weakly deterministic if ⇒ is well defined in I and, in P(I), any state (s,v) ∈ S that satisfies one of the following conditions is almost never reached from any (init,v0) ∈ S: (a) s is stable and ∪a∈A∪{init}Ta(s,v) contains at least two different probability measures, (b) s is not stable, (s,v) ⇒ µ, (s,v) ⇒ µ′ and µ ≠ µ′, or (c) s is not stable and (s,v)

a

  • → µ for some a ∈ Ao ∖ Au.

Theorem

Every closed confluent IOSA is weakly deterministic.

slide-28
SLIDE 28

Table of Contents

Introduction Motivation Introducing urgent actions Weak determinism Conclusion

slide-29
SLIDE 29

Conclusion and Bonus

▸ IOSA allows to compositionally model general distributed

stochastic systems. It behaves deterministically under confluence conditions, hence it is amenable to discrete event simulation.

▸ Non confluent components may yield a confluent closed IOSA.

Sufficient conditions for weak determinism.

▸ We achieved a deterministic general distributed model of

Repairable Fault Trees. We do rare event simulation with the FIG tool.

slide-30
SLIDE 30

Conclusion and Bonus

▸ We achieved a deterministic general distributed model of

Repairable Fault Trees. We do rare event simulation with the FIG tool.