Liveness of Randomised Parameterised Systems under Arbitrary - - PowerPoint PPT Presentation

liveness of randomised parameterised systems under
SMART_READER_LITE
LIVE PREVIEW

Liveness of Randomised Parameterised Systems under Arbitrary - - PowerPoint PPT Presentation

Liveness of Randomised Parameterised Systems under Arbitrary Schedulers Anthony W. Lin and Philipp Ruemmer Summary of results Automatic method for proving liveness for randomised parameterised systems, e.g., Randomised Self-Stabilising


slide-1
SLIDE 1

Liveness of Randomised Parameterised Systems under Arbitrary Schedulers

Anthony W. Lin and Philipp Ruemmer

slide-2
SLIDE 2

Summary of results

  • Automatic method for proving liveness for

randomised parameterised systems, e.g.,

  • Randomised Self-Stabilising (Israeli-Jalfon/Herman)
  • Randomised Dining Philosopher (Lehmann-Rabin)
  • Regular model checking as symbolic framework
  • CEGAR/Learning to synthesise “regular proofs”
slide-3
SLIDE 3

Background

slide-4
SLIDE 4

Parameterised Systems

Defjnition: An infinite family of finite-state systems Example: most distributed protocols in the verification literature, e.g., for the Dining Philosopher problem

slide-5
SLIDE 5

Randomised Parameterised Systems

Defjnition: An infinite family of randomised finite-state systems Markov Decision Processes 1/2 1/2 1/2 1/2 1

slide-6
SLIDE 6

Israeli-Jalfon Randomised Self-Stabilising Protocol

1/2 1/2

slide-7
SLIDE 7

Israeli-Jalfon Randomised Self-Stabilising Protocol

1/2 1/2

slide-8
SLIDE 8

Israeli-Jalfon Randomised Self-Stabilising Protocol

slide-9
SLIDE 9

Israeli-Jalfon Randomised Self-Stabilising Protocol

1/2 1/2

slide-10
SLIDE 10

Israeli-Jalfon Randomised Self-Stabilising Protocol

slide-11
SLIDE 11

Israeli-Jalfon Randomised Self-Stabilising Protocol

slide-12
SLIDE 12

Israeli-Jalfon Randomised Self-Stabilising Protocol

slide-13
SLIDE 13

Liveness (a.k.a. almost-sure termination)

  • (1) Can be unfair

(2) Desirable property in self-stabilising protocol literature

slide-14
SLIDE 14

Liveness for Parameterised Systems

  • Infinite-state verification (verify for each instance)
  • Challenging esp. for probabilitistic systems, e.g.,
  • Randomised Self-Stabilising (Israeli-Jalfon/Herman)
  • Randomised Dining Philosopher (Lehmann-Rabin)

reachability games on infinite graphs

slide-15
SLIDE 15

Regular Model Checking: Symbolic Framework

slide-16
SLIDE 16

Regular Specification

“Rich language for specifying parameterised systems using automata” Pioneered by:

* Kesten, Maler, Marcus, Pnueli, and Shahar (1997) * Wolper and Boigelot (1998) * Jonsson and Nilsson (2000) * Bouajjani, Jonsson, Nilsson, and Touili (2000)

slide-17
SLIDE 17

Premier of regular specifications

Configuration: represented as a word Set of configurations: represented as a regular automaton Transition relation: represented as a transducer Length-preserving

slide-18
SLIDE 18

Israeli-Jalfon as a regular specification

Configuration: a word over the alphabet {0,1,1} 10001

slide-19
SLIDE 19

Israeli-Jalfon as a regular specification

Configuration: a word over the alphabet {0,1,1} 10001

slide-20
SLIDE 20

Israeli-Jalfon as a regular specification

Set of configurations: a regular language over {0,1,1} 0*10* All stable configurations 1+ All initial configurations

slide-21
SLIDE 21

Israeli-Jalfon as a regular specification

Nondeterministic transition relation: a regular language

  • ver {0,1} x {0,1,1}

10001 10001

slide-22
SLIDE 22

Israeli-Jalfon as a regular specification

Nondeterministic transition relation: a regular language

  • ver {0,1} x {0,1,1}

10001 10001

slide-23
SLIDE 23

Israeli-Jalfon as a regular specification

Nondeterministic transition relation: a regular language

  • ver {0,1} x {0,1,1}

10001 10001

slide-24
SLIDE 24

Israeli-Jalfon as a regular specification

Nondeterministic transition relation: a regular language

  • ver {0,1} x {0,1,1}

10001 10001

slide-25
SLIDE 25

Israeli-Jalfon as a regular specification

Nondeterministic transition relation: a regular language

  • ver {0,1} x {0,1,1}

10001 10001

1 1 1 1 + * 1 1 + *

L =

slide-26
SLIDE 26

Israeli-Jalfon as a regular specification

Problem: How do you represent probabilistic transitions as transducers? Answer: almost sure liveness for finite MDPs, need only distinguish zero or non-zero probabilities Generalises to infinite family of finite MDPs (why?) Proposition (Hart et al.’83): almost sure liveness = 2-player non-stochastic reachability games

slide-27
SLIDE 27

Israeli-Jalfon as a regular specification

Probabilistic transition relation: a regular language over {0,1,1} x {0,1} 1 1 1 + * 1 1 + * 1 ………. (~10 more cases) Pass to right (w/o Mars bar) 1 1 1 + * 1 1 + * 1 1 Pass to right (with Mars bar)

slide-28
SLIDE 28

Semi-decision procedure

Proposition (Hart et al.’83): almost sure liveness = wins non-stochastic reachability games from each reachable state. 1/2 1/2 1/2 1/2 1

slide-29
SLIDE 29

Semi-decision procedure

Prop (LR’16): ’s winning strategies can be represented as “advice bits” Inductive invariant Well-founded relation that guides to win

slide-30
SLIDE 30

Semi-decision procedure

  • Advice bits are infinite objects
  • Solution: represent by an automaton and

by a transducer (“regular advice bits”) Prop: There exists a complete algorithm for verifying regular advice bits Regular advice bits often exist in practice

slide-31
SLIDE 31

Regular advice bits for Israeli-Jalfon

1 1u

1 1/1 0/1 0/0 2 1/0 0/0 1/1 3 0/1 0/1 1/1 1/0 0/0 1/1 1/0 0/1 0/0

slide-32
SLIDE 32

Learning Regular Advice Bits

slide-33
SLIDE 33

Problem

Although regular advice bits exist, a naive enumeration might take a long time to find them

slide-34
SLIDE 34

Our monolithic learning procedure

Learner Teacher Regular advice bits? YES DONE NO (cex)

slide-35
SLIDE 35

Inside the learner

SAT-solving to guess smallest DFAs Boolean formulas constraining candidate regular advice bits

slide-36
SLIDE 36

Inside the teacher

Automata-based algorithm If incorrect advice bits, return cex (as a boolean formula)

slide-37
SLIDE 37

The learner then …

Add the counterexample constraint from Teacher to further restrict And make another guess, etc.

slide-38
SLIDE 38

The main bottleneck

The number of iterations The number of candidate regular advice bits considered

~

Each iteration is quite cheap

slide-39
SLIDE 39

Further optimisations

  • Incremental learning algorithm: use

“disjunctive” advice bits

  • Precomputation of inductive invariant with

Angluin’s L* algorithm

  • Symmetries (e.g. rotations for rings)

Problem: When no “small” regular proof exists, monolithic procedure becomes very slow

slide-40
SLIDE 40

Experiments

(https://github.com/uuverifiers/ autosat/tree/master/ LivenessProver)

slide-41
SLIDE 41

Experimental results

slide-42
SLIDE 42

Experimental results

slide-43
SLIDE 43

Conclusion

slide-44
SLIDE 44

Summary of results

  • Automatic method for proving liveness for

randomised parameterised systems, e.g.,

  • Randomised Self-Stabilising (Israeli-Jalfon/Herman)
  • Randomised Dining Philosopher (Lehmann-Rabin)
  • Regular model checking as symbolic framework
  • CEGAR/Learning to synthesise “regular proofs”
slide-45
SLIDE 45

Future Work

  • Embedding fairness in RMC
  • New result (joint with O. Lengal, R. Majumdar)
  • Extend the framework to encode process IDs