Download presentation

Presentation is loading. Please wait.

Published byNyah Large Modified over 2 years ago

1
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/OddEven.1 CSC 4504 : Langages formels et applications (La méthode Event-B) J Paul Gibson, A207 OddEven

2
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/OddEven.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

3
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/OddEven.3 1. The addition of two even numbers is even

4
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/OddEven.4 1. The addition of two even numbers is even

5
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/OddEven.5 1. The addition of two even numbers is even Autoprovers

6
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/OddEven.6 1. The addition of two even numbers is even instantiate

7
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/OddEven.7 1. The addition of two even numbers is even

8
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/OddEven.8 1. The addition of two even numbers is even Remove selected hypothesis

9
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/OddEven.9 1. The addition of two even numbers is even repeat sequence for instantiation of b

10
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/OddEven The addition of two even numbers is even Don’t forget to save if you are making progress

11
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/OddEven The addition of two even numbers is even Add hypothesis and select for proof Using autoprover

12
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/OddEven The addition of two even numbers is even Repeat the same sequence for b

13
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/OddEven The addition of two even numbers is even Free existential variables

14
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/OddEven The addition of two even numbers is even Remove hypotheses (no longer needed)

15
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/OddEven The addition of two even numbers is even Try autoprover on original theorem

16
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/OddEven The addition of two even numbers is even Instantiate with y+y+y0+y0 Remove unnecessary hypotheses Add new hypothesis:

17
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/OddEven The addition of two even numbers is even Add abstract expression: y+y0

18
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/OddEven 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

19
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/OddEven The addition of two even numbers is even

20
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/OddEven The addition of two even numbers is even Save and explore proof tree

21
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/OddEven The addition of two even numbers is even The theorem has been marked as proved

22
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/OddEven 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

23
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/OddEven The multiplication of an even number with an odd number is even

24
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/OddEven The multiplication of an even number with an odd number is even Enable/ Disable Post-tactic Reset persepective context1

25
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/OddEven The multiplication of an even number with an odd number is even Proof by contradiction (of goal)

26
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/OddEven The multiplication of an even number with an odd number is even Prune and run Post-tactics

27
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/OddEven The multiplication of an even number with an odd number is even Proof by contradiction (of hypothesis)

28
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/OddEven The multiplication of an even number with an odd number is even

29
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/OddEven The multiplication of an even number with an odd number is even Circular proof steps: Try to simplify proof tree, where possible

30
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/OddEven The multiplication of an even number with an odd number is even Proof for context2 … try to complete it yourselves

31
2009: J Paul GibsonT&MSP-CSC 4504 : Langages formels et applications Event-B/OddEven.31 For Next Week: send to me (by ) before 20th March Prove theorem 2 or theorem 4 for context 2

Similar presentations

© 2017 SlidePlayer.com Inc.

All rights reserved.

Ads by Google