CS1502 Formal Methods in Computer Science - PowerPoint PPT Presentation

About This Presentation
Title:

CS1502 Formal Methods in Computer Science

Description:

CS1502 Formal Methods in Computer Science Lecture Notes 9 Proofs Involving Conditionals Methods of Proof Want to prove P Q. Direct Method assume P deduce Q ... – PowerPoint PPT presentation

Number of Views:129
Avg rating:3.0/5.0
Slides: 22
Provided by: Jany158
Category:

less

Transcript and Presenter's Notes

Title: CS1502 Formal Methods in Computer Science


1
CS1502 Formal Methods in Computer Science
  • Lecture Notes 9
  • Proofs Involving Conditionals

2
Methods of Proof
  • Want to prove P ? Q.
  • Direct Method assume P deduce Q
  • Indirect Method assume ?Q deduce ?P
  • Proof by contradiction Assume P and ?Q deduce a
    contradiction
  • Proof by Induction more about this later

3
Informal Conditional Proof
  • Prove Tet(a) ? Tet(c) follows from Tet(a) ?
    Tet(b) and Tet(b) ? Tet(c).
  • Assume Tet(a) is true. Applying modus ponens to
    the first premise gives us Tet(b). Using modus
    ponens again, this time with the second premise,
    gives us Tet(c). So, we have established Tet(c)
    from our assumption of Tet(a). Thus, Tet(a) ?
    Tet(c)

4
In Fitch
5
Informal Indirect Proof
  • Prove Even(nn) ? Even(n).
  • Proving the contrapositive is easier
  • Even(n) ? Even(nn)
  • Assume Even(n), i.e., Odd(n). Then we can
    express n as 2m 1 for some m. But we see that
    nn 2(2mm 2m) 1, showing that nn is odd.
    Thus, we have shown Even(n) ? Even(nn)

6
? Elimination
  • P ? Q P Q

? Elim
7
? Introduction
  • P Q P ? Q

? Intro
8
Fitch Festival
9
Fitch Festival
10
(No Transcript)
11
Taut Con resolution step
12
Full Proof
13
(No Transcript)
14
(No Transcript)
15
(No Transcript)
16
(No Transcript)
17
(No Transcript)
18
(No Transcript)
19
(No Transcript)
20
? Introduction
  • P Q Q
    P P ? Q

? Intro
21
? Elimination
  • P ? Q P Q

? Elim
Write a Comment
User Comments (0)
About PowerShow.com