1 / 31

CSC 4504 : Langages formels et applications (La méthode Event-B) J Paul Gibson, A207

Learn how to express and prove theorems on properties of odd and even numbers using the Event-B method. Explore proofs on addition, difference, and multiplication of even and odd numbers.

josiej
Download Presentation

CSC 4504 : Langages formels et applications (La méthode Event-B) J Paul Gibson, A207

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. CSC 4504 : Langages formels et applications (La méthode Event-B) J Paul Gibson, A207 paul.gibson@it-sudparis.eu http://www-public.it-sudparis.eu/~gibson/Teaching/Event-B/ OddEven http://www-public.it-sudparis.eu/~gibson/Teaching/Event-B/OddEven.pdf T&MSP-CSC 4504 : Langages formels et applications

  2. Simple proofs on properties of odd and even numbers • Express as theorems and use RODIN to prove: • thm1. The addition of two even numbers is even • thm2. The difference between two odd numbers is even • thm3. The multiplication of an even number with an odd number is even • thm4. The multiplication of two odd numbers is odd T&MSP-CSC 4504 : Langages formels et applications

  3. 1. The addition of two even numbers is even T&MSP-CSC 4504 : Langages formels et applications

  4. 1. The addition of two even numbers is even T&MSP-CSC 4504 : Langages formels et applications

  5. 1. The addition of two even numbers is even Autoprovers T&MSP-CSC 4504 : Langages formels et applications

  6. 1. The addition of two even numbers is even instantiate T&MSP-CSC 4504 : Langages formels et applications

  7. 1. The addition of two even numbers is even T&MSP-CSC 4504 : Langages formels et applications

  8. 1. The addition of two even numbers is even Remove selected hypothesis T&MSP-CSC 4504 : Langages formels et applications

  9. 1. The addition of two even numbers is even repeat sequence for instantiation of b T&MSP-CSC 4504 : Langages formels et applications

  10. 1. The addition of two even numbers is even Don’t forget to save if you are making progress T&MSP-CSC 4504 : Langages formels et applications

  11. 1. The addition of two even numbers is even Add hypothesis and select for proof Using autoprover T&MSP-CSC 4504 : Langages formels et applications

  12. 1. The addition of two even numbers is even Repeat the same sequence for b T&MSP-CSC 4504 : Langages formels et applications

  13. 1. The addition of two even numbers is even Free existential variables T&MSP-CSC 4504 : Langages formels et applications

  14. 1. The addition of two even numbers is even Remove hypotheses (no longer needed) T&MSP-CSC 4504 : Langages formels et applications

  15. 1. The addition of two even numbers is even Try autoprover on original theorem T&MSP-CSC 4504 : Langages formels et applications

  16. 1. The addition of two even numbers is even Instantiate with y+y+y0+y0 Remove unnecessary hypotheses Add new hypothesis: T&MSP-CSC 4504 : Langages formels et applications

  17. 1. The addition of two even numbers is even Add abstract expression: y+y0 T&MSP-CSC 4504 : Langages formels et applications

  18. 1. The addition of two even numbers is even This sequence leads to the final proof step Setting y1 to ae proves the theorem: can the automated prover do this? p0 fails but p1 manages it T&MSP-CSC 4504 : Langages formels et applications

  19. 1. The addition of two even numbers is even T&MSP-CSC 4504 : Langages formels et applications

  20. 1. The addition of two even numbers is even Save and explore proof tree T&MSP-CSC 4504 : Langages formels et applications

  21. 1. The addition of two even numbers is even The theorem has been marked as proved T&MSP-CSC 4504 : Langages formels et applications

  22. 1. The addition of two even numbers is even What if we change specification of EVEN? What if we change theorem to prove? … lets try theorem 3 with context1 T&MSP-CSC 4504 : Langages formels et applications

  23. 3. The multiplication of an even number with an odd number is even T&MSP-CSC 4504 : Langages formels et applications

  24. 3. The multiplication of an even number with an odd number is even Reset persepective context1 Enable/ Disable Post-tactic T&MSP-CSC 4504 : Langages formels et applications

  25. 3. The multiplication of an even number with an odd number is even Proof by contradiction (of goal) T&MSP-CSC 4504 : Langages formels et applications

  26. 3. The multiplication of an even number with an odd number is even Prune and run Post-tactics T&MSP-CSC 4504 : Langages formels et applications

  27. 3. The multiplication of an even number with an odd number is even Proof by contradiction (of hypothesis) T&MSP-CSC 4504 : Langages formels et applications

  28. 3. The multiplication of an even number with an odd number is even T&MSP-CSC 4504 : Langages formels et applications

  29. 3. The multiplication of an even number with an odd number is even Circular proof steps: Try to simplify proof tree, where possible T&MSP-CSC 4504 : Langages formels et applications

  30. 3. The multiplication of an even number with an odd number is even … try to complete it yourselves Proof for context2 T&MSP-CSC 4504 : Langages formels et applications

  31. For Next Week: send to me (by email) before 20th March Prove theorem 2 or theorem 4 for context 2 T&MSP-CSC 4504 : Langages formels et applications

More Related