towards a theory ab toolbox
play

Towards a Theory AB Toolbox Verifying Randomized Algorithms Marco - PowerPoint PPT Presentation

Towards a Theory AB Toolbox Verifying Randomized Algorithms Marco Gaboardi 1 and Justin Hsu 2 1 University of Dundee 2 University of Pennsylvania May 6th, 2015 A story Alice wants to protect privacy A story Alice wants to protect privacy


  1. Towards a Theory AB Toolbox Verifying Randomized Algorithms Marco Gaboardi 1 and Justin Hsu 2 1 University of Dundee 2 University of Pennsylvania May 6th, 2015

  2. A story Alice wants to protect privacy

  3. A story Alice wants to protect privacy

  4. Complex code

  5. Complex proofs

  6. Current practice Paper proofs ◮ Produced by humans ◮ Major steps included ◮ Minor steps skipped “Morally correct” ◮ Complex proofs checked by humans ◮ Sometimes bugs

  7. Challenges in formalizing proofs Complex properties ◮ Single run/multiple runs/??? ◮ Quantitative: measure how performance scales with input

  8. Challenges in formalizing proofs Complex properties ◮ Single run/multiple runs/??? ◮ Quantitative: measure how performance scales with input Diverse proofs ◮ Variety of tools and proof structures, non-local reasoning ◮ Proof about a single program can be research contribution

  9. Challenges in formalizing proofs Complex properties ◮ Single run/multiple runs/??? ◮ Quantitative: measure how performance scales with input Diverse proofs ◮ Variety of tools and proof structures, non-local reasoning ◮ Proof about a single program can be research contribution Probability theory ◮ Probabilities of events, expected values ◮ Very rich theory, too much to formalize

  10. The overall idea Imitate paper proofs Bring patterns, abstractions, notations to formal verification

  11. What’s so great about paper proofs? Probability theory: just the good parts ◮ Use useful properties and abstractions ◮ Avoid low-level probability theory

  12. What’s so great about paper proofs? Probability theory: just the good parts ◮ Use useful properties and abstractions ◮ Avoid low-level probability theory Concise, light reasoning ◮ Useful notations and high-level reasoning ◮ Major steps are evident, not buried in boilerplate ◮ Powerful patterns to structure proofs

  13. Pattern: The union bound Pr[ E 1 ∨· · ·∨ E n ] ≤ Pr[ E 1 ]+ · · · +Pr[ E n ]

  14. Pattern: The union bound Pr[ E 1 ∨· · ·∨ E n ] ≤ Pr[ E 1 ]+ · · · +Pr[ E n ] Noise Loop doesn’t too big terminate Compositional reasoning ◮ Let events be different ways algorithm can fail Bad subcomputation

  15. Pattern: The union bound Pr[ E 1 ∨· · ·∨ E n ] ≤ Pr[ E 1 ]+ · · · +Pr[ E n ] Noise Loop doesn’t too big terminate Compositional reasoning ◮ Let events be different ways algorithm can fail Bad subcomputation

  16. Pattern: The union bound Pr[ E 1 ∨· · ·∨ E n ] ≤ Pr[ E 1 ]+ · · · +Pr[ E n ] Noise Loop doesn’t too big terminate Compositional reasoning ◮ Let events be different ways algorithm can fail Bad subcomputation

  17. Pattern: The union bound Pr[ E 1 ∨· · ·∨ E n ] ≤ Pr[ E 1 ]+ · · · +Pr[ E n ] Noise Loop doesn’t too big terminate Compositional reasoning ◮ Let events be different ways algorithm can fail Bad subcomputation

  18. Pattern: The union bound Pr[ E 1 ∨· · ·∨ E n ] ≤ Pr[ E 1 ]+ · · · +Pr[ E n ] Noise Loop doesn’t too big terminate Compositional reasoning ◮ Let events be different ways algorithm can fail Bad subcomputation

  19. Pattern: The union bound Pr[ E 1 ∨· · ·∨ E n ] ≤ Pr[ E 1 ]+ · · · +Pr[ E n ] Noise Loop doesn’t too big terminate Compositional reasoning ◮ Let events be different ways algorithm can fail ◮ Analyze each possible failure in isolation Bad subcomputation

  20. Work in progress A probabilistic Hoare logic ◮ Assertions from paper proofs: Y = � n # n Pr[ X = 1] = 1 / 2 , i =1 X i , i =1 X i , . . . ◮ Interactive: part of the EasyCrypt system ◮ Target: algorithms from recent STOC/FOCS/??? Fantastic collaborators

  21. Towards a Theory AB

  22. Towards a Theory AB For Algorithms/Complexity Theory ◮ Computer verification of complex proofs ◮ Tools for different scales ◮ Theoretical tools (?)

  23. Towards a Theory AB For Algorithms/Complexity Theory ◮ Computer verification of complex proofs ◮ Tools for different scales ◮ Theoretical tools (?) For our community ◮ Tons and tons of novel, challenging properties ◮ Different styles of proofs ◮ New abstractions?

  24. Towards a Theory AB Toolbox Verifying Randomized Algorithms Marco Gaboardi 1 and Justin Hsu 2 1 University of Dundee 2 University of Pennsylvania May 6th, 2015

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