Formal Methods in Computer Science CS1502 Proofs involving Conditionals PowerPoint PPT Presentation

presentation player overlay
1 / 12
About This Presentation
Transcript and Presenter's Notes

Title: Formal Methods in Computer Science CS1502 Proofs involving Conditionals


1
Formal Methods in Computer ScienceCS1502Proofs
involving Conditionals
  • Patchrawat Uthaisombut
  • University of Pittsburgh

2
Goals
  • To learn proof rules involving conditionals.
  • To gain skills in constructing proofs involving
    conditionals.
  • (Soundness and Completeness of a deductive system)

3
Conditional Proof
  • If argument is valid, it means
  • P implies Q.
  • We can capture this in an FOL sentence
  • P ? Q
  • Hence, the rule ? Intro

4
? Intro (cond intro)
Conditional proof
  • 3 P
  • 7 Q
  • P ? Q ? Intro 3-7

5
Conditional Proof
A /\ B implies A \/ B.
(A /\ B) ? (A \/ B) is a logical truth.
6
? Elim
(Modus Ponens)
  • 3 P ? Q
  • 5 P
  • Q ? Elim 3,5

7
A Simple Proof
  • A ? B
  • B ? C
  • A ? C

8
? Intro (bicond intro)
  • 2 P
  • 5 Q
  • 7 Q
  • 9 P
  • P ? Q ? Intro 2-5,7-9

9
? Elim
  • 3 P ? Q (or Q ? P)
  • 5 P
  • Q ? Elim 3,5

10
Example Exercise
  • C ? (A \/ E)
  • E ? B
  • C ? (A \/ B)
  • C ? (A \/ E)
  • E ? C
  • C ? (A \/ B)

11
Problem 8.32
  • Horned(c) ? (Elusive(c) /\ Dangerous(c))
  • (Elusive(c) \/ Mythical(c)) ? Rare(c)
  • Mammal(c) ? Rare(c)
  • Horned(c) ? Mammal(c)

12
Proving a set of equivalent sentences
  • The following conditions are all equivalent Q1,
    Q2, , Qn

Q1 ? Q2 Q1 ? Q3 Q1 ? Q4 How many equivalent
pairs?
How many pairs do we need to prove?
Is there a better way?
Q1 ? Q2, Q2 ? Q3, , Qn ? Q1
We can use any ordering besides Q1, Q2, Q3, ,Qn
Write a Comment
User Comments (0)
About PowerShow.com