Top Banner
Liveness of Randomised Parameterised Systems under Arbitrary Schedulers Anthony W. Lin and Philipp Ruemmer
45

Liveness of Randomised Parameterised Systems under ...

Jan 25, 2022

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Liveness of Randomised Parameterised Systems under ...

Liveness of Randomised Parameterised Systems

under Arbitrary SchedulersAnthony W. Lin and Philipp Ruemmer

Page 2: Liveness of Randomised Parameterised Systems under ...

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”

Page 3: Liveness of Randomised Parameterised Systems under ...

Background

Page 4: Liveness of Randomised Parameterised Systems under ...

Parameterised SystemsDefinition: An infinite family of finite-state systems

Example: most distributed protocols in the verification literature, e.g., for the Dining Philosopher problem

Page 5: Liveness of Randomised Parameterised Systems under ...

Randomised Parameterised Systems

Definition: An infinite family of randomised finite-state systems

Markov Decision Processes1/2

1/21/2

1/21

Page 6: Liveness of Randomised Parameterised Systems under ...

Israeli-Jalfon Randomised Self-Stabilising Protocol

1/2

1/2

Page 7: Liveness of Randomised Parameterised Systems under ...

Israeli-Jalfon Randomised Self-Stabilising Protocol

1/2

1/2

Page 8: Liveness of Randomised Parameterised Systems under ...

Israeli-Jalfon Randomised Self-Stabilising Protocol

Page 9: Liveness of Randomised Parameterised Systems under ...

Israeli-Jalfon Randomised Self-Stabilising Protocol

1/2

1/2

Page 10: Liveness of Randomised Parameterised Systems under ...

Israeli-Jalfon Randomised Self-Stabilising Protocol

Page 11: Liveness of Randomised Parameterised Systems under ...

Israeli-Jalfon Randomised Self-Stabilising Protocol

Page 12: Liveness of Randomised Parameterised Systems under ...

Israeli-Jalfon Randomised Self-Stabilising Protocol

Page 13: Liveness of Randomised Parameterised Systems under ...

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

(1) Can be unfair (2) Desirable property in self-stabilising protocol literature

Page 14: Liveness of Randomised Parameterised Systems under ...

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

Page 15: Liveness of Randomised Parameterised Systems under ...

Regular Model Checking: Symbolic Framework

Page 16: Liveness of Randomised Parameterised Systems under ...

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)

Page 17: Liveness of Randomised Parameterised Systems under ...

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

Page 18: Liveness of Randomised Parameterised Systems under ...

Israeli-Jalfon as a regular specification

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

10001

Page 19: Liveness of Randomised Parameterised Systems under ...

Israeli-Jalfon as a regular specification

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

10001

Page 20: Liveness of Randomised Parameterised Systems under ...

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

Page 21: Liveness of Randomised Parameterised Systems under ...

Israeli-Jalfon as a regular specification

Nondeterministic transition relation: a regular language over {0,1} x {0,1,1}

10001

10001

Page 22: Liveness of Randomised Parameterised Systems under ...

Israeli-Jalfon as a regular specification

Nondeterministic transition relation: a regular language over {0,1} x {0,1,1}

10001

10001

Page 23: Liveness of Randomised Parameterised Systems under ...

Israeli-Jalfon as a regular specification

Nondeterministic transition relation: a regular language over {0,1} x {0,1,1}

10001

10001

Page 24: Liveness of Randomised Parameterised Systems under ...

Israeli-Jalfon as a regular specification

Nondeterministic transition relation: a regular language over {0,1} x {0,1,1}

10001

10001

Page 25: Liveness of Randomised Parameterised Systems under ...

Israeli-Jalfon as a regular specification

Nondeterministic transition relation: a regular language over {0,1} x {0,1,1}

10001

10001

11

00

11+

* 00

11+

*

L =

Page 26: Liveness of Randomised Parameterised Systems under ...

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

Page 27: Liveness of Randomised Parameterised Systems under ...

Israeli-Jalfon as a regular specification

Probabilistic transition relation: a regular language over {0,1,1} x {0,1}

10

00

11+

* 00

11+

*01

………. (~10 more cases)

Pass to right (w/o Mars bar)

10

00

11+

* 00

11+

*11

Pass to right (with Mars bar)

Page 28: Liveness of Randomised Parameterised Systems under ...

Semi-decision procedureProposition (Hart et al.’83): almost sure liveness = wins non-stochastic reachability games from each reachable state.

1/21/2

1/2

1/21

Page 29: Liveness of Randomised Parameterised Systems under ...

Semi-decision procedure

Prop (LR’16): ’s winning strategies can be represented as “advice bits”

Inductive invariant Well-founded relation that guides to win

Page 30: Liveness of Randomised Parameterised Systems under ...

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

Page 31: Liveness of Randomised Parameterised Systems under ...

Regular advice bits for Israeli-Jalfon

0

101u

1

1/10/10/0

21/0

0

0/0 1/1

3

0/1

0/1

1/11/00/0

1/1

1/0

0/10/0

Page 32: Liveness of Randomised Parameterised Systems under ...

Learning Regular Advice Bits

Page 33: Liveness of Randomised Parameterised Systems under ...

ProblemAlthough regular advice bits exist, a naive

enumeration might take a long time to find them

Page 34: Liveness of Randomised Parameterised Systems under ...

Our monolithic learning procedure

Learner TeacherRegular

advice bits?

YES

DONE

NO

(cex)

Page 35: Liveness of Randomised Parameterised Systems under ...

Inside the learner

SAT-solving to guess smallest DFAs

Boolean formulas constraining candidate regular advice bits

Page 36: Liveness of Randomised Parameterised Systems under ...

Inside the teacher

Automata-based algorithm

If incorrect advice bits, return cex

(as a boolean formula)

Page 37: Liveness of Randomised Parameterised Systems under ...

The learner then …

Add the counterexample constraint from Teacher to further restrict

And make another guess, etc.

Page 38: Liveness of Randomised Parameterised Systems under ...

The main bottleneckThe number of iterations

The number of candidate regular advice bits considered~

Each iteration is quite cheap

Page 39: Liveness of Randomised Parameterised Systems under ...

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

Page 40: Liveness of Randomised Parameterised Systems under ...

Experiments (https://github.com/uuverifiers/ autosat/tree/master/

LivenessProver)

Page 41: Liveness of Randomised Parameterised Systems under ...

Experimental results

Page 42: Liveness of Randomised Parameterised Systems under ...

Experimental results

Page 43: Liveness of Randomised Parameterised Systems under ...

Conclusion

Page 44: Liveness of Randomised Parameterised Systems under ...

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”

Page 45: Liveness of Randomised Parameterised Systems under ...

Future Work

• Embedding fairness in RMC

• New result (joint with O. Lengal, R. Majumdar)

• Extend the framework to encode process IDs