formalising semantics for expected running time of
play

Formalising Semantics for Expected Running Time of Probabilistic - PowerPoint PPT Presentation

Johannes Hlzl TU Mnchen, Germany Formalising Semantics for Expected Running Time of Probabilistic Programs (Rough Diamond) Kaminski, Katoen, Matheja, and Olmedo [ESOP 2016] Denotational: Operational: Correspondence: Denotational 2


  1. Johannes Hölzl TU München, Germany Formalising Semantics for Expected Running Time of Probabilistic Programs (Rough Diamond)

  2. Kaminski, Katoen, Matheja, and Olmedo [ESOP 2016] ⋆ Denotational: Operational: Correspondence: Denotational 2 – clarified semantics – different proofs – correct proofs – Our work: • Coupon Collector • Simple Random Walk  • Examples: Operational pgcl stream measure • Probabilistic programs (pGCL) + expected running time. pgcl 0 0 pgcl • Two semantics: This Talk

  3. Denotational: Operational: Correspondence: Denotational 2 stream measure – clarified semantics – different proofs – correct proofs – Our work: • Coupon Collector • Simple Random Walk  • Examples: Operational pgcl pgcl • Probabilistic programs (pGCL) + expected running time. 0 0 pgcl • Two semantics: ⋆ This Talk Kaminski, Katoen, Matheja, and Olmedo [ESOP 2016]

  4. Denotational: Operational: Correspondence: Denotational 2 – clarified semantics – different proofs – correct proofs – Our work: • Coupon Collector • Simple Random Walk  • Examples: Operational pgcl stream measure • Probabilistic programs (pGCL) + expected running time. pgcl 0 0 pgcl • Two semantics: This Talk Kaminski, Katoen, Matheja, and Olmedo [ESOP 2016] ⋆

  5. Denotational: Operational: Correspondence: Denotational 2 – clarified semantics – different proofs – correct proofs – Our work: • Coupon Collector • Simple Random Walk  • Examples: Operational pgcl stream measure • Probabilistic programs (pGCL) + expected running time. pgcl 0 0 pgcl • Two semantics: This Talk Kaminski, Katoen, Matheja, and Olmedo [ESOP 2016] ⋆

  6. Operational: Correspondence: Denotational pgcl – clarified semantics – different proofs – correct proofs – Our work: • Coupon Collector • Simple Random Walk  • Examples: Operational stream measure pgcl 2 • Probabilistic programs (pGCL) + expected running time. • Two semantics: This Talk Kaminski, Katoen, Matheja, and Olmedo [ESOP 2016] ⋆ ( ) ( ) Denotational: σ pgcl ⇒ σ ⇒ R ≥ 0 ⇒ σ ⇒ R ≥ 0

  7. Correspondence: Denotational 2 • Probabilistic programs (pGCL) + expected running time. – clarified semantics – different proofs – correct proofs – • Two semantics: Our work: • Coupon Collector • Simple Random Walk  • Examples: Operational stream measure This Talk Kaminski, Katoen, Matheja, and Olmedo [ESOP 2016] ⋆ ( ) ( ) Denotational: σ pgcl ⇒ σ ⇒ R ≥ 0 ⇒ σ ⇒ R ≥ 0 ( ) ( ) Operational: σ pgcl × σ ⇒ σ pgcl × σ

  8. • Simple Random Walk  2 • Probabilistic programs (pGCL) + expected running time. – clarified semantics – different proofs – correct proofs – • Two semantics: Our work: • Coupon Collector • Examples: stream measure This Talk Kaminski, Katoen, Matheja, and Olmedo [ESOP 2016] ⋆ ( ) ( ) Denotational: σ pgcl ⇒ σ ⇒ R ≥ 0 ⇒ σ ⇒ R ≥ 0 ( ) ( ) Operational: σ pgcl × σ ⇒ σ pgcl × σ Correspondence: Denotational ⇔ Operational

  9. • Simple Random Walk  2 • Probabilistic programs (pGCL) + expected running time. – clarified semantics – different proofs – correct proofs – • Two semantics: Our work: • Coupon Collector • Examples: stream measure This Talk Kaminski, Katoen, Matheja, and Olmedo [ESOP 2016] ⋆ ( ) ( ) Denotational: σ pgcl ⇒ σ ⇒ R ≥ 0 ⇒ σ ⇒ R ≥ 0 ( ) ( ) Operational: σ pgcl × σ ⇒ σ pgcl × σ Correspondence: Denotational ⇔ Operational

  10. 2 • Probabilistic programs (pGCL) + expected running time. – clarified semantics – different proofs – correct proofs – • Two semantics: Our work: • Coupon Collector • Examples: stream measure This Talk Kaminski, Katoen, Matheja, and Olmedo [ESOP 2016] ⋆ ( ) ( ) Denotational: σ pgcl ⇒ σ ⇒ R ≥ 0 ⇒ σ ⇒ R ≥ 0 ( ) ( ) Operational: σ pgcl × σ ⇒ σ pgcl × σ Correspondence: Denotational ⇔ Operational • Simple Random Walk 

  11. 2 • Probabilistic programs (pGCL) + expected running time. – clarified semantics – different proofs – correct proofs – • Two semantics: Our work: • Coupon Collector • Examples: stream measure This Talk Kaminski, Katoen, Matheja, and Olmedo [ESOP 2016] ⋆ ( ) ( ) Denotational: σ pgcl ⇒ σ ⇒ R ≥ 0 ⇒ σ ⇒ R ≥ 0 ( ) ( ) Operational: σ pgcl × σ ⇒ σ pgcl × σ Correspondence: Denotational ⇔ Operational • Simple Random Walk 

  12. 2 • Probabilistic programs (pGCL) + expected running time. different proofs – correct proofs – • Two semantics: – clarified semantics – Our work: • Coupon Collector • Examples: stream measure This Talk Kaminski, Katoen, Matheja, and Olmedo [ESOP 2016] ⋆ ( ) ( ) Denotational: σ pgcl ⇒ σ ⇒ R ≥ 0 ⇒ σ ⇒ R ≥ 0 ( ) ( ) Operational: σ pgcl × σ ⇒ σ pgcl × σ Correspondence: Denotational ⇔ Operational • Simple Random Walk 

  13. 2 • Probabilistic programs (pGCL) + expected running time. correct proofs – • Two semantics: – clarified semantics – different proofs – Our work: • Coupon Collector • Examples: stream measure This Talk Kaminski, Katoen, Matheja, and Olmedo [ESOP 2016] ⋆ ( ) ( ) Denotational: σ pgcl ⇒ σ ⇒ R ≥ 0 ⇒ σ ⇒ R ≥ 0 ( ) ( ) Operational: σ pgcl × σ ⇒ σ pgcl × σ Correspondence: Denotational ⇔ Operational • Simple Random Walk 

  14. 2 • Probabilistic programs (pGCL) + expected running time. – clarified semantics – different proofs – correct proofs – • Two semantics: Our work: • Coupon Collector • Examples: stream measure This Talk Kaminski, Katoen, Matheja, and Olmedo [ESOP 2016] ⋆ ( ) ( ) Denotational: σ pgcl ⇒ σ ⇒ R ≥ 0 ⇒ σ ⇒ R ≥ 0 ( ) ( ) Operational: σ pgcl × σ ⇒ σ pgcl × σ Correspondence: Denotational ⇔ Operational • Simple Random Walk 

  15. pGCL

  16. x x p 1 p 2 p 1 p 2 ITE g p 1 p 2 g WHILE g DO p 4 bool Assign pmf expr or   Probabilistic Guarded Command Language (pGCL) σ pgcl = ⊥

  17. x x p 1 p 2 p 1 p 2 ITE g p 1 p 2 g WHILE g DO p 4 bool Assign pmf expr or  Probabilistic Guarded Command Language (pGCL) σ pgcl = ⊥ | 

  18. x x p 1 p 2 p 1 p 2 ITE g p 1 p 2 g WHILE g DO p 4 bool pmf Assign expr or Probabilistic Guarded Command Language (pGCL) σ pgcl = ⊥ |  | 

  19. p 1 p 2 p 1 p 2 ITE g p 1 p 2 g WHILE g DO p 4 bool or Probabilistic Guarded Command Language (pGCL) σ pgcl = ⊥ |  |  x : ∼ D x := expr | ” Assign ( σ ⇒ σ pmf )”

  20. p 1 p 2 ITE g p 1 p 2 g WHILE g DO p 4 bool or Probabilistic Guarded Command Language (pGCL) σ pgcl = ⊥ |  |  x : ∼ D x := expr | ” Assign ( σ ⇒ σ pmf )” p 1 ; p 2 |

  21. ITE g p 1 p 2 g WHILE g DO p 4 or bool Probabilistic Guarded Command Language (pGCL) σ pgcl = ⊥ |  |  x : ∼ D x := expr | ” Assign ( σ ⇒ σ pmf )” p 1 ; p 2 | p 1 | p 2 |

  22. WHILE g DO p 4 or Probabilistic Guarded Command Language (pGCL) σ pgcl = ⊥ |  |  x : ∼ D x := expr | ” Assign ( σ ⇒ σ pmf )” p 1 ; p 2 | p 1 | p 2 | ITE g p 1 p 2 g :: σ ⇒ bool |

  23. 4 or Probabilistic Guarded Command Language (pGCL) σ pgcl = ⊥ |  |  x : ∼ D x := expr | ” Assign ( σ ⇒ σ pmf )” p 1 ; p 2 | p 1 | p 2 | ITE g p 1 p 2 g :: σ ⇒ bool | WHILE g DO p |

  24. Values computed for the a starting state Values we want assigned to a terminal state c c c c c ert Assign u c x c y d u x y ert p 1 p 2 c ert p 1 ert p 2 c ert p 1 p 2 c ert p 1 c ert p 2 c ert ITE g p 1 p 2 c x if g x then ert p 1 c x else ert p 2 c x ert WHILE g DO p c W x 1 if g x then ert p W x else c x lfp 1 5 1 0 ert  1 ert  ert Denotational Semantics (Expected Running Time) ert :: σ pgcl ⇒ ( σ ⇒ R ≥ 0 ) ⇒ ( σ ⇒ R ≥ 0 )

  25. Values computed for the a starting state c c c c c ert Assign u c x c y d u x y ert p 1 p 2 c ert p 1 ert p 2 c ert p 1 p 2 c ert p 1 c ert p 2 c ert ITE g p 1 p 2 c x if g x then ert p 1 c x else ert p 2 c x ert WHILE g DO p c W x 1 if g x then ert p W x else c x 1 lfp 5 1 0 ert  1 ert  ert Denotational Semantics (Expected Running Time) ert :: σ pgcl ⇒ ( σ ⇒ R ≥ 0 ) ⇒ ( σ ⇒ R ≥ 0 ) Values we want assigned to a terminal state

  26. c c c c c ert Assign u c x c y d u x y ert p 1 p 2 c ert p 1 ert p 2 c ert p 1 p 2 c ert p 1 c ert p 2 c ert ITE g p 1 p 2 c x if g x then ert p 1 c x else ert p 2 c x ert WHILE g DO p c W x 1 if g x then ert p W x else c x lfp 1 5 1 0 ert  1 ert  ert Denotational Semantics (Expected Running Time) Values computed for the a starting state ert :: σ pgcl ⇒ ( σ ⇒ R ≥ 0 ) ⇒ ( σ ⇒ R ≥ 0 ) Values we want assigned to a terminal state

  27. Values computed for the a starting state Values we want assigned to a terminal state c c c ert Assign u c x c y d u x y ert p 1 p 2 c ert p 1 ert p 2 c ert p 1 p 2 c ert p 1 c ert p 2 c ert ITE g p 1 p 2 c x if g x then ert p 1 c x else ert p 2 c x ert WHILE g DO p c W x 1 if g x then ert p W x else c x lfp 1 5 1 0 ert  1 ert  Denotational Semantics (Expected Running Time) ert :: σ pgcl ⇒ ( σ ⇒ R ≥ 0 ) ⇒ ( σ ⇒ R ≥ 0 ) c c ert ⊥ =

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend