A probabilistic Kleene Theorem Benjamin Monmege LSV, ENS Cachan, - - PowerPoint PPT Presentation

a probabilistic kleene theorem
SMART_READER_LITE
LIVE PREVIEW

A probabilistic Kleene Theorem Benjamin Monmege LSV, ENS Cachan, - - PowerPoint PPT Presentation

A probabilistic Kleene Theorem Benjamin Monmege LSV, ENS Cachan, CNRS, France MOVEP 2012, Marseille Part of works published at ATVA12 with Benedikt Bollig, Paul Gastin and Marc Zeitoun Kleenes Theorem a b b Finite State Automata 2


slide-1
SLIDE 1

A probabilistic Kleene Theorem

Benjamin Monmege LSV, ENS Cachan, CNRS, France MOVEP 2012, Marseille

Part of works published at ATVA’12 with Benedikt Bollig, Paul Gastin and Marc Zeitoun

slide-2
SLIDE 2

Kleene’s Theorem

Finite State Automata Regular Expressions same expressivity E ::= a | E+E | E·E | E*

1 3 2 a a b a a b

slide-3
SLIDE 3

Motivations

  • Theoretically: relate denotational and computational

models

  • Practically: easier to write specifications using regular

expressions vs. easier to check properties (emptiness, inclusion...) with automata

  • Goal: translate expressions to automata, as efficiently

as possible

slide-4
SLIDE 4

Kleene’s Theorem

Finite State Automata Regular Expressions same expressivity E ::= a | E+E | E·E | E*

1 3 2 a a b a a b 1 3 2 a a b a a b

slide-5
SLIDE 5

Kleene’s Theorem

Finite State Automata Regular Expressions same expressivity W e i g h t e d E ::= a | E+E | E·E | E*

1 3 1 2

1 2

a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1

2

b, 1

2

1 3 1 2

1 2

a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1

2

b, 1

2

slide-6
SLIDE 6

Kleene’s Theorem

Finite State Automata Regular Expressions same expressivity W e i g h t e d E ::= a | E+E | E·E | E*

1 3 1 2 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1 1 3 1 2 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1

slide-7
SLIDE 7

Kleene’s Theorem

Finite State Automata Regular Expressions same expressivity W e i g h t e d E ::= a | E+E | E·E | E*

1 3 1 2 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1 1 3 1 2 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1

Σ*→ℝ

slide-8
SLIDE 8

Kleene’s Theorem

Finite State Automata Regular Expressions same expressivity W e i g h t e d E ::= a | E+E | E·E | E*

a a b

two runs: 1→2→1→3 of weight 1/6x1x1x1=1/6 and 1→1→1→3 of weight 1/2x1/2x1x1=1/4

1 3 1 2 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1 1 3 1 2 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1

Σ*→ℝ

slide-9
SLIDE 9

Kleene’s Theorem

Finite State Automata Regular Expressions same expressivity W e i g h t e d E ::= a | E+E | E·E | E*

a a b

two runs: 1→2→1→3 of weight 1/6x1x1x1=1/6 and 1→1→1→3 of weight 1/2x1/2x1x1=1/4 hence, a a b recognized with weight 1/6+1/4=5/12

1 3 1 2 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1 1 3 1 2 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1

Σ*→ℝ

slide-10
SLIDE 10

Kleene’s Theorem

Finite State Automata Regular Expressions same expressivity W e i g h t e d W e i g h t e d E ::= a | E+E | E·E | E* E p r

  • p

e r p |

a a b

two runs: 1→2→1→3 of weight 1/6x1x1x1=1/6 and 1→1→1→3 of weight 1/2x1/2x1x1=1/4 hence, a a b recognized with weight 1/6+1/4=5/12

1 3 1 2 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1 1 3 1 2 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1

Σ*→ℝ

slide-11
SLIDE 11

Kleene’s Theorem

Finite State Automata Regular Expressions same expressivity

S c h ü t z e n b e r g e r

W e i g h t e d W e i g h t e d E ::= a | E+E | E·E | E* E p r

  • p

e r p |

[1] S. Kleene (1956). Representation of events in nerve nets and finite automata. [2] M.-P . Schützenberger (1961). On the Definition of a Family of Automata. Information and Control. For an overview about Weighted Automata, see, e.g., Handbook of Weighted Automata. Editors: Manfred Droste, Werner Kuich, and Heiko

  • Vogler. EATCS Monographs in Theoretical Computer Science. Springer, 2009.

a a b

two runs: 1→2→1→3 of weight 1/6x1x1x1=1/6 and 1→1→1→3 of weight 1/2x1/2x1x1=1/4 hence, a a b recognized with weight 1/6+1/4=5/12

1 3 1 2 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1 1 3 1 2 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1

Σ*→ℝ

slide-12
SLIDE 12

Probabilistic case?

A = (Q, ι, Acc, P)

P : Q × Σ × Q → [0, 1] Acc(q) + X

q02Q

P(q, a, q0) ≤ 1 for all (q, a) ∈ Q × A

1 3 1 2 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1

slide-13
SLIDE 13

Probabilistic case?

R e a c t i v e P r

  • b

a b i l i s t i c F i n i t e A u t

  • m

a t a

A = (Q, ι, Acc, P)

P : Q × Σ × Q → [0, 1] Acc(q) + X

q02Q

P(q, a, q0) ≤ 1 for all (q, a) ∈ Q × A

1 3 1 2 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1

slide-14
SLIDE 14

Probabilistic case?

( 1

6a(a + b) + 1 2a)∗( 1 3a + b)

R e a c t i v e P r

  • b

a b i l i s t i c F i n i t e A u t

  • m

a t a

A = (Q, ι, Acc, P)

P : Q × Σ × Q → [0, 1] Acc(q) + X

q02Q

P(q, a, q0) ≤ 1 for all (q, a) ∈ Q × A

Applying Schützenberger’s Theorem

  • ver these special Weighted Automata,

we obtain regular expressions (proper)

1 3 1 2 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1

slide-15
SLIDE 15

What kind of expressions?

1 3 1 2 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1

slide-16
SLIDE 16

What kind of expressions?

( 1

6a(a + b) + 1 2a)∗( 1 3a + b)

1 3 1 2 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1

slide-17
SLIDE 17

What kind of expressions?

( 1

6a(a + b) + 1 2a)∗( 1 3a + b)

1 3 1 2 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1

slide-18
SLIDE 18

What kind of expressions?

( 1

6a(a + b) + 1 2a)∗( 1 3a + b)

( 1

6a(a + b) + 1 2a)∗(a + b)

1 3 1 2 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1

slide-19
SLIDE 19

What kind of expressions?

( 1

6a(a + b) + 1 2a)∗( 1 3a + b)

( 1

6a(a + b) + 1 2a)∗(a + b)

1 3 1 2 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1

slide-20
SLIDE 20

What kind of expressions?

( 1

6a(a + b) + 1 2a)∗( 1 3a + b)

( 1

6a(a + b) + 1 2a)∗(a + b)

( 1

6a(a + b) + 1 2a)∗( 1 3a + 1 2b)

1 3 1 2 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1

slide-21
SLIDE 21

What kind of expressions?

( 1

6a(a + b) + 1 2a)∗( 1 3a + b)

( 1

6a(a + b) + 1 2a)∗(a + b)

( 1

6a(a + b) + 1 2a)∗( 1 3a + 1 2b)

1 3 1 2 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1

slide-22
SLIDE 22

What kind of expressions?

( 1

6a(a + b) + 1 2a)∗( 1 3a + b)

( 1

6a(a + b) + 1 2a)∗(a + b)

( 1

6a(a + b) + 1 2a)∗( 1 3a + 1 2b)

Searching for a natural fragment

  • f weighted regular expressions

representing probabilistic behaviors

1 3 1 2 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1

slide-23
SLIDE 23

Constructing Probabilistic Expressions

How to iterate?

1 2 3 1 4 1 5 1 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1

slide-24
SLIDE 24

Constructing Probabilistic Expressions

How to iterate?

1 6a(a + b) + 1 2a + ( 1 3a + b)

1 2 3 1 4 1 5 1 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1

slide-25
SLIDE 25

Constructing Probabilistic Expressions

How to iterate?

1 6a(a + b) + 1 2a + ( 1 3a + b)

1 2 3 1 4 1 5 1 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1

slide-26
SLIDE 26

Constructing Probabilistic Expressions

How to iterate?

1 6a(a + b) + 1 2a + ( 1 3a + b)

1

6a(a + b) + 1 2a + ( 1 3a + b)

1 2 3 1 4 1 5 1 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1

1 1 2 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1

slide-27
SLIDE 27

Constructing Probabilistic Expressions

How to iterate?

Not a valid Probabilistic Automaton anymore (acceptance condition not fulfilled)

1 6a(a + b) + 1 2a + ( 1 3a + b)

1

6a(a + b) + 1 2a + ( 1 3a + b)

1 2 3 1 4 1 5 1 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1

1 1 2 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1

slide-28
SLIDE 28

Constructing Probabilistic Expressions

How to iterate?

1 6a(a + b) + 1 2a + ( 1 3a + b)

1 2 3 1 4 1 5 1 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1

slide-29
SLIDE 29

Constructing Probabilistic Expressions

How to iterate?

1 6a(a + b) + 1 2a + ( 1 3a + b)

1 2 3 1 4 1 5 1 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1

slide-30
SLIDE 30

Constructing Probabilistic Expressions

How to iterate?

1 6a(a + b) + 1 2a + ( 1 3a + b)

( 1

6a(a + b) + 1 2a)∗( 1 3a + b)

1 2 3 1 4 1 5 1 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1

1 3 1 2 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1

slide-31
SLIDE 31

Constructing Probabilistic Expressions

How to iterate? Keep some branch for termination of the Probabilistic Automaton

1 6a(a + b) + 1 2a + ( 1 3a + b)

( 1

6a(a + b) + 1 2a)∗( 1 3a + b)

1 2 3 1 4 1 5 1 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1

1 3 1 2 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1

slide-32
SLIDE 32

Probabilistic Expressions

slide-33
SLIDE 33

Probabilistic Expressions

  • a∈A and p∈[0,1] are PREs
slide-34
SLIDE 34

Probabilistic Expressions

  • a∈A and p∈[0,1] are PREs
  • if (Ea)a∈A are PREs, then ∑a∈A a·Ea is a PRE

a b E F

slide-35
SLIDE 35

Probabilistic Expressions

  • a∈A and p∈[0,1] are PREs
  • if (Ea)a∈A are PREs, then ∑a∈A a·Ea is a PRE
  • if E and F are PREs, then p·E + (1-p)·F is a PRE

a b E F p 1 − p E F

slide-36
SLIDE 36

Probabilistic Expressions

  • a∈A and p∈[0,1] are PREs
  • if (Ea)a∈A are PREs, then ∑a∈A a·Ea is a PRE
  • if E and F are PREs, then p·E + (1-p)·F is a PRE
  • if E and F are PREs, then E·F is a PRE

a b E F p 1 − p E F

slide-37
SLIDE 37

Probabilistic Expressions

  • a∈A and p∈[0,1] are PREs
  • if (Ea)a∈A are PREs, then ∑a∈A a·Ea is a PRE
  • if E and F are PREs, then p·E + (1-p)·F is a PRE
  • if E and F are PREs, then E·F is a PRE
  • if E+F is a PRE, then E*·F is a PRE

a b E F

E F

p 1 − p E F

slide-38
SLIDE 38

Probabilistic Expressions

  • a∈A and p∈[0,1] are PREs
  • if (Ea)a∈A are PREs, then ∑a∈A a·Ea is a PRE
  • if E and F are PREs, then p·E + (1-p)·F is a PRE
  • if E and F are PREs, then E·F is a PRE
  • if E+F is a PRE, then E*·F is a PRE

(a·E)*·b·F (p·E)*·(1-p)·F

a b E F

E F

p 1 − p E F

slide-39
SLIDE 39

Probabilistic Expressions

  • Closure of PRE under commutativity of +,

associativity of + and ·, distributivity of · over +

  • a∈A and p∈[0,1] are PREs
  • if (Ea)a∈A are PREs, then ∑a∈A a·Ea is a PRE
  • if E and F are PREs, then p·E + (1-p)·F is a PRE
  • if E and F are PREs, then E·F is a PRE
  • if E+F is a PRE, then E*·F is a PRE

(a·E)*·b·F (p·E)*·(1-p)·F

a b E F

E F

p 1 − p E F

slide-40
SLIDE 40

Probabilistic Expressions

  • Closure of PRE under commutativity of +,

associativity of + and ·, distributivity of · over +

  • a∈A and p∈[0,1] are PREs
  • if (Ea)a∈A are PREs, then ∑a∈A a·Ea is a PRE
  • if E and F are PREs, then p·E + (1-p)·F is a PRE
  • if E and F are PREs, then E·F is a PRE
  • if E+F is a PRE, then E*·F is a PRE

(a·E)*·b·F (p·E)*·(1-p)·F

Semantics given as a fragment of regular expressions in complete semirings...

a b E F

E F

P(E · F, u) =

  • u=vw

P(E, v) × P(F, w)

p 1 − p E F

slide-41
SLIDE 41

Example

(a∗b 1

2a)∗a∗b 1 2b

a∗b 1

2a + a∗b 1 2b

a∗b( 1

2a + 1 2b)

a∗b a + b

1 2a + 1 2b

slide-42
SLIDE 42

Example

(a∗b 1

2a)∗a∗b 1 2b

a∗b 1

2a + a∗b 1 2b

a∗b( 1

2a + 1 2b)

a∗b a + b

1 2a + 1 2b

Deterministic choice

slide-43
SLIDE 43

Example

(a∗b 1

2a)∗a∗b 1 2b

a∗b 1

2a + a∗b 1 2b

a∗b( 1

2a + 1 2b)

a∗b a + b

1 2a + 1 2b

Star rule Deterministic choice

slide-44
SLIDE 44

Example

(a∗b 1

2a)∗a∗b 1 2b

a∗b 1

2a + a∗b 1 2b

a∗b( 1

2a + 1 2b)

a∗b a + b

1 2a + 1 2b

Star rule Deterministic choice Probabilistic choice

slide-45
SLIDE 45

Example

(a∗b 1

2a)∗a∗b 1 2b

a∗b 1

2a + a∗b 1 2b

a∗b( 1

2a + 1 2b)

a∗b a + b

1 2a + 1 2b

Star rule Concatenation rule Deterministic choice Probabilistic choice

slide-46
SLIDE 46

Example

(a∗b 1

2a)∗a∗b 1 2b

a∗b 1

2a + a∗b 1 2b

a∗b( 1

2a + 1 2b)

a∗b a + b

1 2a + 1 2b

Star rule Concatenation rule Distributivity

  • f · over +

Deterministic choice Probabilistic choice

slide-47
SLIDE 47

Example

(a∗b 1

2a)∗a∗b 1 2b

a∗b 1

2a + a∗b 1 2b

a∗b( 1

2a + 1 2b)

a∗b a + b

1 2a + 1 2b

Star rule Concatenation rule Distributivity

  • f · over +

Star rule Deterministic choice Probabilistic choice

slide-48
SLIDE 48

Example

(a∗b 1

2a)∗a∗b 1 2b

a∗b 1

2a + a∗b 1 2b

a∗b( 1

2a + 1 2b)

a∗b a + b

1 2a + 1 2b

Star rule Concatenation rule Distributivity

  • f · over +

Star rule

The choice in the star is made far from the beginning...

Deterministic choice Probabilistic choice

slide-49
SLIDE 49

Probabilistic Kleene- Schützenberger Theorem

  • Every PRE can be translated into an

equivalent Probabilistic automaton.

  • Every Probabilistic automaton can be

denoted by an equivalent PRE.

slide-50
SLIDE 50

From Automata to Expressions

  • Usual procedures (Brozozwski-McCluskey,

elimination, McNaughton-Yamada...) keeping probabilistic constraints in mind

  • Requires to prove some (useful) properties of PREs,

e.g., if E+F and G are PREs, then E+F·G is a PRE

[1] J. A. Brzozowski and E. J. McCluskey (1963). Signal Flow Graph Techniques for Sequential Circuit State

  • Diagrams. IEEE Trans. on Electronic Computers 12.
slide-51
SLIDE 51

From Expressions to Automata

[1]

  • V. M. Glushkov (1961). The abstract theory of automata. Russian Math. Surveys 16.

[2] G. Berry and R. Sethi (1986). From regular expressions to deterministic automata. Theoretical Computer Science 48.

slide-52
SLIDE 52

From Expressions to Automata

  • We have to prove closure

properties of Probabilistic Automata (for example constructing standard automata, [1,2])

[1]

  • V. M. Glushkov (1961). The abstract theory of automata. Russian Math. Surveys 16.

[2] G. Berry and R. Sethi (1986). From regular expressions to deterministic automata. Theoretical Computer Science 48.

slide-53
SLIDE 53

From Expressions to Automata

  • We have to prove closure

properties of Probabilistic Automata (for example constructing standard automata, [1,2])

  • Problem: « if E+F is a PRE,

then E*·F is a PRE » is not an inductive rule

[1]

  • V. M. Glushkov (1961). The abstract theory of automata. Russian Math. Surveys 16.

[2] G. Berry and R. Sethi (1986). From regular expressions to deterministic automata. Theoretical Computer Science 48.

slide-54
SLIDE 54

From Expressions to Automata

  • We have to prove closure

properties of Probabilistic Automata (for example constructing standard automata, [1,2])

  • Problem: « if E+F is a PRE,

then E*·F is a PRE » is not an inductive rule

  • Probabilistic Automata in a

normal form: accepting states labelled by subexpressions they are computing

[1]

  • V. M. Glushkov (1961). The abstract theory of automata. Russian Math. Surveys 16.

[2] G. Berry and R. Sethi (1986). From regular expressions to deterministic automata. Theoretical Computer Science 48.

slide-55
SLIDE 55

From Expressions to Automata

  • We have to prove closure

properties of Probabilistic Automata (for example constructing standard automata, [1,2])

  • Problem: « if E+F is a PRE,

then E*·F is a PRE » is not an inductive rule

  • Probabilistic Automata in a

normal form: accepting states labelled by subexpressions they are computing

A ι

E F

[1]

  • V. M. Glushkov (1961). The abstract theory of automata. Russian Math. Surveys 16.

[2] G. Berry and R. Sethi (1986). From regular expressions to deterministic automata. Theoretical Computer Science 48.

slide-56
SLIDE 56

From Expressions to Automata

  • We have to prove closure

properties of Probabilistic Automata (for example constructing standard automata, [1,2])

  • Problem: « if E+F is a PRE,

then E*·F is a PRE » is not an inductive rule

  • Probabilistic Automata in a

normal form: accepting states labelled by subexpressions they are computing

A ι

E F

[1]

  • V. M. Glushkov (1961). The abstract theory of automata. Russian Math. Surveys 16.

[2] G. Berry and R. Sethi (1986). From regular expressions to deterministic automata. Theoretical Computer Science 48.

slide-57
SLIDE 57

From Expressions to Automata

  • We have to prove closure

properties of Probabilistic Automata (for example constructing standard automata, [1,2])

  • Problem: « if E+F is a PRE,

then E*·F is a PRE » is not an inductive rule

  • Probabilistic Automata in a

normal form: accepting states labelled by subexpressions they are computing

A ι

E F

[1]

  • V. M. Glushkov (1961). The abstract theory of automata. Russian Math. Surveys 16.

[2] G. Berry and R. Sethi (1986). From regular expressions to deterministic automata. Theoretical Computer Science 48.

slide-58
SLIDE 58

From Expressions to Automata

  • We have to prove closure

properties of Probabilistic Automata (for example constructing standard automata, [1,2])

  • Problem: « if E+F is a PRE,

then E*·F is a PRE » is not an inductive rule

  • Probabilistic Automata in a

normal form: accepting states labelled by subexpressions they are computing

A ι

E F

[1]

  • V. M. Glushkov (1961). The abstract theory of automata. Russian Math. Surveys 16.

[2] G. Berry and R. Sethi (1986). From regular expressions to deterministic automata. Theoretical Computer Science 48.

slide-59
SLIDE 59

From Expressions to Automata

  • We have to prove closure

properties of Probabilistic Automata (for example constructing standard automata, [1,2])

  • Problem: « if E+F is a PRE,

then E*·F is a PRE » is not an inductive rule

  • Probabilistic Automata in a

normal form: accepting states labelled by subexpressions they are computing

A ι

E F

[1]

  • V. M. Glushkov (1961). The abstract theory of automata. Russian Math. Surveys 16.

[2] G. Berry and R. Sethi (1986). From regular expressions to deterministic automata. Theoretical Computer Science 48.

slide-60
SLIDE 60

From Expressions to Automata

  • We have to prove closure

properties of Probabilistic Automata (for example constructing standard automata, [1,2])

  • Problem: « if E+F is a PRE,

then E*·F is a PRE » is not an inductive rule

  • Probabilistic Automata in a

normal form: accepting states labelled by subexpressions they are computing

A ι

E F

[1]

  • V. M. Glushkov (1961). The abstract theory of automata. Russian Math. Surveys 16.

[2] G. Berry and R. Sethi (1986). From regular expressions to deterministic automata. Theoretical Computer Science 48.

slide-61
SLIDE 61

From Expressions to Automata

  • We have to prove closure

properties of Probabilistic Automata (for example constructing standard automata, [1,2])

  • Problem: « if E+F is a PRE,

then E*·F is a PRE » is not an inductive rule

  • Probabilistic Automata in a

normal form: accepting states labelled by subexpressions they are computing

A ι

E F

A ι

E∗ · F

1

[1]

  • V. M. Glushkov (1961). The abstract theory of automata. Russian Math. Surveys 16.

[2] G. Berry and R. Sethi (1986). From regular expressions to deterministic automata. Theoretical Computer Science 48.

slide-62
SLIDE 62

Corollaries

  • Equivalence problem for PREs is decidable:

given PREs E and F, does they generate the same semantics? (translation into automata [1])

  • Threshold problem for PREs is undecidable:

given a PRE E and a threshold s, is there a word w which is mapped by to a probability greater than s? (by reduction to automata [2])

[1] M.-P . Schützenberger (1961). On the Definition of a Family of Automata. Information and Control. [2] A. Paz. (1971). Introduction to probabilistic automata. Academic Press,

slide-63
SLIDE 63

Summary and Future Works

  • General Kleene-Schützenberger theorems for Probabilistic

models (classical, extended to two-way automata, pebble automata in full paper [1])

  • Study of Probabilistic Expressions and their extensions

permits us to better understand which behavior Probabilistic Automata can generate

  • In [2], we proved that Weighted Automata (with two-way

and pebbles) can be evaluated efficiently

  • Future work: get logical formalisms generating the same

expressivity, and implement quick algorithms to perform translation from PREs to PAs (as there are some for weighted automata, see [2,3] e.g.)

[1] B. Bollig, P . Gastin, B. M. and M. Zeitoun. (2012). A Probabilistic Kleene Theorem. In Proceedings of ATVA’12. [2] P . Gastin and B. M. (2006). Adding Pebbles to Weighted Automata. In Proceedings of CIAA’12. [3] C. Allauzen, and M., Mohri, (2006). A Unified Construction of the Glushkov, Follow, and Antimirov Automata. In Proceedings of MFCS’06

slide-64
SLIDE 64

Automata Model

1 3 2 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1

Usual Rabin automata...

A = (Q, ι, Acc, P)

P : Q × Σ × Q → [0, 1] Acc(q) + X

q02Q

P(q, a, q0) ≤ 1 for all (q, a) ∈ Q × A

slide-65
SLIDE 65

Automata Model

1 3 2 a, 1

2

a, 1

3

b, 1 a, 1

6

a, 1 b, 1

Usual Rabin automata... GOAL: Remove all trace of non-determinism

  • seems to be a strong restriction

+ indeed we can drop it using a right marker ◁ in words

A = (Q, ι, Acc, P)

P : Q × Σ × Q → [0, 1] Acc(q) + X

q02Q

P(q, a, q0) ≤ 1 for all (q, a) ∈ Q × A

slide-66
SLIDE 66

2-way Probabilistic Expressions

1 2 n − 2 n − 1 n s 1 − s s 1 − s . . . s 1 − s s

Random Walk over a finite linear graph

slide-67
SLIDE 67

2-way Probabilistic Expressions

1 2 n − 2 n − 1 n s 1 − s s 1 − s . . . s 1 − s s

Random Walk over a finite linear graph

Expressible with Probabilistic 2-way Automata

s, ¬⊳?, → (1 − s), ¬⊳?, ← ⊳?

slide-68
SLIDE 68

2-way Probabilistic Expressions

1 2 n − 2 n − 1 n s 1 − s s 1 − s . . . s 1 − s s

Random Walk over a finite linear graph

Expressible with Probabilistic 2-way Automata Expressible with Probabilistic 2-way Expressions

s, ¬⊳?, → (1 − s), ¬⊳?, ← ⊳?

E =

  • ¬⊳?s→ + ¬⊳?(1 − s)←

∗⊳?

slide-69
SLIDE 69

2-way Probabilistic Expressions

1 2 n − 2 n − 1 n s 1 − s s 1 − s . . . s 1 − s s

Random Walk over a finite linear graph

Expressible with Probabilistic 2-way Automata Expressible with Probabilistic 2-way Expressions Not expressible with Probabilistic Expressions / Probabilistic Automata

s, ¬⊳?, → (1 − s), ¬⊳?, ← ⊳?

E =

  • ¬⊳?s→ + ¬⊳?(1 − s)←

∗⊳?

slide-70
SLIDE 70

2-way Probabilistic Expressions

1 2 n − 2 n − 1 n s 1 − s s 1 − s . . . s 1 − s s

Random Walk over a finite linear graph

Expressible with Probabilistic 2-way Automata Expressible with Probabilistic 2-way Expressions

Idea: replace every letter a by a test a? followed by a move (either → or ←)

Not expressible with Probabilistic Expressions / Probabilistic Automata

s, ¬⊳?, → (1 − s), ¬⊳?, ← ⊳?

E =

  • ¬⊳?s→ + ¬⊳?(1 − s)←

∗⊳?

slide-71
SLIDE 71

2-way Probabilistic Expressions

1 2 n − 2 n − 1 n s 1 − s s 1 − s . . . s 1 − s s

Random Walk over a finite linear graph

Expressible with Probabilistic 2-way Automata Expressible with Probabilistic 2-way Expressions

Idea: replace every letter a by a test a? followed by a move (either → or ←) Expressiveness result still holds!

Not expressible with Probabilistic Expressions / Probabilistic Automata

s, ¬⊳?, → (1 − s), ¬⊳?, ← ⊳?

E =

  • ¬⊳?s→ + ¬⊳?(1 − s)←

∗⊳?

slide-72
SLIDE 72

Adding Pebbles: pLTL

Each LTL formula φ has an implicit free variable x denoting the position where the formula is

  • evaluated. We use a pebble to mark this position.

Let P(φ, u, i ) denote the probability that φ holds on word u at position i.

P(G ϕ, u, i) = Q

j≥i P(ϕ, u, j)

AG ϕ(x) = ⊳? Aϕ(x)

OK KO

→ x? → ↓x ⊳?↑

slide-73
SLIDE 73

Adding Pebbles: pLTL

Each LTL formula φ has an implicit free variable x denoting the position where the formula is

  • evaluated. We use a pebble to mark this position.

Let P(φ, u, i ) denote the probability that φ holds on word u at position i.

P(G ϕ, u, i) = Q

j≥i P(ϕ, u, j)

AG ϕ(x) = ⊳? Aϕ(x)

OK KO

→ x? → ↓x ⊳?↑ P(G ϕ, u, i) = Q

j≥i P(ϕ, u, j)

AG ϕ(x) = ⊳? Aϕ(x)

OK KO

→ x? → ↓x ⊳?↑

EG ϕ(x) = ⊲?→∗x?

  • (x!Eϕ(x))→

∗⊳?

slide-74
SLIDE 74

Adding Pebbles: pLTL

Each LTL formula φ has an implicit free variable x denoting the position where the formula is

  • evaluated. We use a pebble to mark this position.

Let P(φ, u, i ) denote the probability that φ holds on word u at position i.

P(F ϕ, u, i) = P(ϕ, u, i) + (1 − P(ϕ, u, i)) × P(F ϕ, u, i + 1) = P

j≥i

⇣Q

i≤k<j P(¬ϕ, u, k)

⌘ × P(ϕ, u, j) AF ϕ(x) = ⊳? Aϕ(x)

OK KO

→ x? → ↓x ⊳?↑ ⊳?↑ → P(F ϕ, u, i) = P(ϕ, u, i) + (1 − P(ϕ, u, i)) × P(F ϕ, u, i + 1) = P

j≥i

⇣Q

i≤k<j P(¬ϕ, u, k)

⌘ × P(ϕ, u, j) AF ϕ(x) = ⊳? Aϕ(x)

OK KO

→ x? → ↓x ⊳?↑ ⊳?↑ →

EF ϕ(x) = ⊲?→∗x?

  • (x!E¬ϕ(x))→

∗(x!Eϕ(x))→∗⊳?

slide-75
SLIDE 75

Theorem PREs and PAs are expressively equivalent. 2-way PREs and 2-way PAs are expressively equivalent. Pebble PREs and Pebble PAs are expressively equivalent.

1-way 2-way Pebble

slide-76
SLIDE 76

Extensions

  • Add 2-way and pebbles in automata and

expressions (XPath-like syntax)

  • Possibility to express more, e.g. smaller

probabilities (to represent rare events)

  • Still a natural way to denote probabilistic

properties about words

slide-77
SLIDE 77

Conclusion

  • General Kleene-Schützenberger theorems for

Probabilistic models (classical, two-way, pebbles...)

  • Study of Probabilistic Expressions and their

extensions permits us to better understand which behavior Probabilistic Automata can generate

  • In [1], we proved that Weighted Automata with two-

way and pebbles can be evaluated efficiently

  • Future work: get logical formalisms generating the

same expressivity, and implement quick algorithms to perform translation from PREs to PAs (as there are some for weighted automata, see [2,1] e.g.)

[1] P . Gastin and B. M. (2006). Adding Pebbles to Weighted Automata. In Proceedings of CIAA’12. [2] C. Allauzen, and M., Mohri, (2006). A Unified Construction of the Glushkov, Follow, and Antimirov Automata. In Proceedings of MFCS’06