1 / 36

Focusing in Proof-search and Concurrent Synchronization

Focusing in Proof-search and Concurrent Synchronization. Deepak Garg Carnegie Mellon University (Based on joint work with Frank Pfenning). Objectives. Direct translation of asynchronous pi-calculus to intuitionistic linear logic formulas

sana
Download Presentation

Focusing in Proof-search and Concurrent Synchronization

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Focusing in Proof-search and Concurrent Synchronization Deepak Garg Carnegie Mellon University (Based on joint work with Frank Pfenning)

  2. Objectives • Direct translation of asynchronous pi-calculus to intuitionistic linear logic formulas • Committed Forward chaining in linear logic to simulate pi-calculus reductions • Combine with focusing to obtain atomicity in synchronization Focusing in Proof-search and Concurrent Synchronization

  3. Direct translation • Connectives of pi-calculus map to connectives of linear logic Focusing in Proof-search and Concurrent Synchronization

  4. First attempt at translation (No focusing, unsound!)

  5. Pi-calculus, Linear Logic • Asynchronous pi-calculus (without replication): • Intuitionistic linear logic fragment: Focusing in Proof-search and Concurrent Synchronization

  6. Pi-calculus: semantics • Modified CHAM semantics Focusing in Proof-search and Concurrent Synchronization

  7. Linear Logic: Forward Chaining • Judgment: Term variables Formulas (Linear) Focusing in Proof-search and Concurrent Synchronization

  8. Linear Logic: Forward Chaining Focusing in Proof-search and Concurrent Synchronization

  9. Forward Chaining as Rewriting Focusing in Proof-search and Concurrent Synchronization

  10. Forward Chaining as Rewriting Focusing in Proof-search and Concurrent Synchronization

  11. Forward Chaining as Rewriting Focusing in Proof-search and Concurrent Synchronization

  12. Translation Focusing in Proof-search and Concurrent Synchronization

  13. Simulation example Focusing in Proof-search and Concurrent Synchronization

  14. Unsound! • Another possible reduction sequence: Focusing in Proof-search and Concurrent Synchronization

  15. Unsoundness analysis • Forward chaining may get stuck incorrectly • Universal quantifier and implication in inputs must be eliminated simultaneously • Can be done using focusing • Each communication is exactly one focusing Focusing in Proof-search and Concurrent Synchronization

  16. Focusing in Forward Chaining

  17. Synchronous and Asynchronous • Divide formulas into (right) synchronous S and (right) asynchronous A • Coerce S to A via a monad (CLF, LolliMon) Focusing in Proof-search and Concurrent Synchronization

  18. Focused Forward Chaining • Judgments • Different from CLF focusing • Decomposition of ­, 9 on left is not in focus • No right rules Focusing in Proof-search and Concurrent Synchronization

  19. Focusing in Proof-search and Concurrent Synchronization

  20. Focusing in Proof-search and Concurrent Synchronization

  21. Focusing in Proof-search and Concurrent Synchronization

  22. Focused Forward Chaining as Rewriting • We read rules bottom up, ignore synchronous goals and get a conditional rewrite system. • Judgments: Unchanged Focusing in Proof-search and Concurrent Synchronization

  23. Complete Rewrite System Focusing in Proof-search and Concurrent Synchronization

  24. Translation of the pi-calculus Focusing in Proof-search and Concurrent Synchronization

  25. Simulation example Focusing in Proof-search and Concurrent Synchronization

  26. Simulation example Focusing in Proof-search and Concurrent Synchronization

  27. Correctness of translation Focusing in Proof-search and Concurrent Synchronization

  28. A Strange External Choice… • What does A&B correspond to in the pi-calculus? • It corresponds to external choice between input/output actions Focusing in Proof-search and Concurrent Synchronization

  29. Extension to the logic • Extension of asynchronous formulas • New focusing rules Focusing in Proof-search and Concurrent Synchronization

  30. Translation of choice Correctness results remain the same Focusing in Proof-search and Concurrent Synchronization

  31. Expressiveness • How expressive is this extension of the asynchronous pi-calculus? • Conjecture: It is as expressive as the synchronous pi-calculus (with choice, without replication) - Translation follows from Boudol’s encoding Focusing in Proof-search and Concurrent Synchronization

  32. 3-way synchronization • Can encode receivers with 2 simultaneous inputs Focusing in Proof-search and Concurrent Synchronization

  33. Works because both implications must be eliminated in one focusing step Generalizes to n-way inputs Encoding 3-way synchronization Focusing in Proof-search and Concurrent Synchronization

  34. Other connectives Focusing in Proof-search and Concurrent Synchronization

  35. Summary • Dynamic semantics of the asynchronous pi-calculus can be simulated using focusing and forward chaining • Focusing – atomicity in synchronization • Correspondence between connectives of the pi-calculus and intuitionistic linear logic Focusing in Proof-search and Concurrent Synchronization

  36. Related Work • Translation idea is not new • Miller92 – pi-calculus as a theory in linear logic • Cervesato03 – similar idea, no focusing • Abramsky93 – classical logic and concurrency • Concurrent Logic Programming Focusing in Proof-search and Concurrent Synchronization

More Related