CS%201502%20Formal%20Methods%20in%20Computer%20Science - PowerPoint PPT Presentation

About This Presentation
Title:

CS%201502%20Formal%20Methods%20in%20Computer%20Science

Description:

Takes into consideration all of the truth-functional connectives ( the identity ... All tautological equivalencies are FO Equivalencies. 6. FO Consequence x [P(x) Q(x) ... – PowerPoint PPT presentation

Number of Views:31
Avg rating:3.0/5.0
Slides: 30
Provided by: janyce8
Category:

less

Transcript and Presenter's Notes

Title: CS%201502%20Formal%20Methods%20in%20Computer%20Science


1
CS 1502 Formal Methods in Computer Science
  • Lecture Notes 13
  • Equivalences, Arguments, and Proofs involving
    Quantifiers

2
Propositional Logic
  • Tautology
  • Tautological Consequence
  • Tautological Equivalence

Based on the truth-functional Connectives
3
First-Order Logic
  • Takes into consideration all of the
    truth-functional connectives (? ? ? ? ?
    ), the identity symbol (), and the quantifiers
    (?x ?y).

4
First-Order Logic
  • FO Validity a sentence that cant be false
  • FO Consequence applies to an argument whose
    conclusion cant be made false when all of its
    premises are true.
  • FO Equivalence applies to a pair of sentences
    that, in all possible circumstances, have the
    same truth values

5
Facts
  • All tautological consequences are FO
    Consequences.
  • All tautological equivalencies are FO
    Equivalencies.

6
FO Consequence

7
Replacement Method
  • This method is used to determine if a sentence is
    an FO Validity and if an argument is an FO
    Consequence.

8
Replacement Method
  • Replace all predicates in the sentence or in the
    argument with symbolic ones making sure that if a
    predicate appears more than once it is replaced
    with the same symbolic name.
  • See if you can describe a circumstance where the
    sentence is false, if this is impossible then the
    sentence is a FO Validity.
  • See if you can describe a circumstance where the
    conclusion is false and the premises are all
    true. If this is impossible, then the conclusion
    is an FO Consequence of its premises.

9
DeMorgans Laws for Quantifiers
  • ??x P(x) ? ?x ?P(x)Nobody is P.Everyone is
    not P.
  • ??x P(x) ? ?x ?P(x)It is not the case that
    everyone is P.Somebody is not P.

?P
P
10
Aristotelian Forms Revisited
  • Negate All Ps are Qs.all x (P(x) ?
    Q(x)) ?all x (P(x) v Q(x)) ?exist x ((P(x)
    v Q(x))) ?
  • exist x (P(x) Q(x))
  • Some Ps are not Qs

11
A Special Form and its Equivalent
  • Only Qs are Ps
  • All Ps are Qs

12
(No Transcript)
13
Other Equivalences and Non-Equivalences (which
are which?)
  • ?x P(x) ? Q(x) ? ?x P(x) ? ?x Q(x)
  • ?x P(x) ? Q(x) ? ?x P(x) ? ?x Q(x)
  • ?x P(x) ? Q(x) ? ?x P(x) ? ?x Q(x)
  • ?x P(x) ? Q(x) ? ?x P(x) ? ?x Q(x)

14
Other Equivalences
  • ?x P ? P, where x is not free in P
  • ?x P ? P, where x is not free in P
  • ?x P ? Q(x) ? P ? ?x Q(x)
  • ?x P ? Q(x) ? P ? ?x Q(x)
  • ?x P(x) ? ?y P(y)
  • ? x P(x) ? ? y P(y)

15
Proofs Involving Quantifiers
  • Universal Elimination
  • ?x S(x)
  • S(c) ?
    Elim

16
Example
  • Prove ?x Cube(x)
    ?x Large(x) Large(d) ?
    Cube(d)

17
(No Transcript)
18
Proofs Involving Quantifiers
  • Universal Introduction
  • c
  • S(c) ?x
    S(x) ? Intro

19
Example
  • Prove ?x Cube(x)
    ?x Large(x) ?x
    Large(x) ? Cube(x)

20
(No Transcript)
21
Proofs Involving Quantifiers
  • Existential Introduction
  • S(c)
  • ?x S(x) ?
    Intro

22
Example
  • Prove Cube(e)
    Large(e) ? LeftOf(e,a) ?x
    Cube(x) ? LeftOf(x,a)

23
(No Transcript)
24
Proofs Involving Quantifiers
  • Existential Elimination ?x S(x)
  • c S(c)
  • Q Q
    ? Elim

25
Example
  • Prove ?x Large(x)
    ?x Cube(x) ?x
    Large(x) ? Cube(x)

26
(No Transcript)
27
General Conditional Proof
  • Universal Introduction
  • c P(c)
  • Q(c) ?x
    P(x) ? Q(x) ? Intro

28
Example
  • Prove ?x P(x) ? Q(x)
    ?z Q(z) ? R(z)
    ?x P(x) ? R(x)

29
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com