Formal Methods in Computer Science CS1502 FO Equivalence - PowerPoint PPT Presentation

1 / 25
About This Presentation
Title:

Formal Methods in Computer Science CS1502 FO Equivalence

Description:

Tautological equivalence: equivalent solely in virtue of the meaning of. the boolean connectives ... Tautological equivalence. Equivalence of wffs. Equivalence ... – PowerPoint PPT presentation

Number of Views:42
Avg rating:3.0/5.0
Slides: 26
Provided by: patchrawat
Category:

less

Transcript and Presenter's Notes

Title: Formal Methods in Computer Science CS1502 FO Equivalence


1
Formal Methods in Computer ScienceCS1502FO
Equivalence
  • Patchrawat Uthaisombut
  • University of Pittsburgh

2
Goals
  • To learn about the notion of FO equivalence
  • FO Equivalence
  • Equivalent wffs
  • Substitution of equivalent wffs
  • DeMorgan laws for quantifiers
  • Other equivalence laws
  • To learn about common FO equivalences and to gain
    skills in using them.

3
Equivalence
  • Two sentences P and Q are equivalent if they
    have the same truth value in any circumstance.
  • P ? Q

4
Equivalences
  • Tautological equivalence equivalent solely in
    virtue of the meaning of
  • the boolean connectives /\, \/,
  • FO equivalence equivalent solely in virtue of
    the meaning of
  • the boolean connectives /\, \/,
  • the quantifiers ?, ?
  • the identity symbol

5
3 kinds of FO equivalences
  • Tautological equivalence
  • Equivalence of wffs
  • Equivalence involving quantifiers
  • Use them with substitution law.
  • By classifying them, it should help use remember
    them better.

6
Substitution Law
  • Suppose S is a complete unit of something.
  • Suppose P is a component of S.
  • We write S as S(P) to emphasize that P is a
    component of S.
  • If Q ? P, we can replace P in S(P) with Q.
  • Equivalence depends on context.
  • We get S(Q). Every other part of S is the same.
  • S(P) ? S(Q).

7
  • P, Q could be
  • Tautologically Equivalent sentences
  • Equivalent wffs
  • FO equivalent sentences

8
Tautological equivalence
  • ( ?x Large(x) \/ ?y Tet(y) )
  • TTF ( A \/ B )
  • ?x Large(x) /\ ?y Tet(y)
  • TTF A /\ B

9
Taut EQ with Substitution
  • Substitution of parts that are Taut EQ.
  • Tet(c) \/ (( ?x Large(x) \/ ?y Tet(y) ) /\
    Cube(d))
  • C \/ (( A \/ B ) /\ D)
  • Tet(c) \/ (?x Large(x) /\ ?y Tet(y) /\ Cube(d))
  • C \/ (A /\ B /\ D)

10
Equivalence of wffs
  • Up until now, when we talk about Equivalence
    between two things, we refer to Equivalence of
    their truth values under any circumstance.
  • What kind of things have truth values?
  • What about wffs? Do they have truth value?
  • How do we adjust the definition of equivalence
    to accommodate this?

satisfaction
11
Equivalence of wffs
  • P(x) is a wff.
  • An object c satisfies wff P(x) if and only if
    sentence P(c) is true.
  • Two sentences P and Q are equivalent if they
    have the same truth value in any circumstance.
  • Two wffs P(x) and Q(x) are equivalent if they
    are satisfied by exactly the same objects in any
    circumstance.

12
Example
  • Cube(x) ? Small(x)
  • Cube(x) \/ Small(x)

13
Wwfs EQ and Substitution
  • Substitution of parts that are Equivalent wwfs.
  • ?x (Cube(x) ? Small(x))
  • ?x (Cube(x) \/ Small(x))
  • This is different from substitution with
    tautological equivalence because we are
    substituting wffs rather than sentences.

14
Equivalence involving ? ?
15
DeMorgan laws for quantifiers
  • Tet(a) /\ Tet(b) /\ Tet(c) /\ Tet(d)
  • (Tet(a) /\ Tet(b) /\ Tet(c) /\ Tet(d))
  • Tet(a)\/Tet(b)\/Tet(c)\/Tet(d)
  • Consider a world with 4 blocks, a,b,c,d.
  • ?x Tet(x)
  • ?x Tet(x)
  • ?x Tet(x)

16
DeMorgan laws for quantifiers
  • ?x P(x) ? ?x P(x)
  • ?x P(x) ? ?x P(x)

17
Aristotelian forms revisited
  • All Ps are Qs
  • ?x (P(x) ? Q(x))
  • Some Ps are Qs
  • ?x (P(x) /\ Q(x))
  • No Ps are Qs
  • Homework
  • ?x (P(x) ? Q(x))
  • Some Os are not Qs
  • ?x (P(x) /\ Q(x))

18
Aristotelian forms revisited
  • All Ps are Qs
  • ?x (P(x) ? Q(x))
  • Some Ps are Qs
  • ?x (P(x) /\ Q(x))
  • No Ps are Qs
  • Homework
  • ?x (P(x) ? Q(x))
  • Some Os are not Qs
  • ?x (P(x) ? Q(x))
  • ?x (P(x) \/ Q(x))
  • ?x (P(x) \/ Q(x))
  • ?x (P(x) /\ Q(x))

19
Quantifiers and Boolean Connectives
  • ?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)
  • Find a counterexample.

20
Null Quantification
  • ?x Cube(b)
  • For every object x, b is a cube.
  • This is true if and only if b is a cube.
  • Cube(b)
  • ?x P ? P
  • ?x P ? P

21
More Null Quantification
  • ?x (P \/ Q(x)) ? P \/ ?x Q(x)
  • ?x (P /\ Q(x)) ? P /\ ?x Q(x)

22
Variable Replacement
  • ?x P(x) ? ?y P(y)
  • ?x P(x) ? ?y P(y)
  • Example
  • ?x (?x (?x Cube(x) /\ Tet(x)) /\ Dodec(x))
  • ? ?x (?y (?z Cube(z) /\ Tet(y)) /\ Dodec(x))

23
Exercise
  • ?x (Tet(x) ? ?y (LeftOf(x,y) /\ Larger(b,x)))
  • ?x (Tet(x) ? ?y (LeftOf(x,y) /\ Larger(b,x)))
  • ?x (Tet(x) \/ ?y (LeftOf(x,y) /\ Larger(b,x)))
  • ?x (Tet(x) /\ ?y (LeftOf(x,y) /\ Larger(b,x)))
  • ?x (Tet(x) /\ (?y LeftOf(x,y) /\ Larger(b,x)))
  • ?x (Tet(x) /\ (?y LeftOf(x,y) \/ Larger(b,x)))
  • ?x (Tet(x) /\ (?y LeftOf(x,y) \/ Larger(b,x)))
  • ?x (Tet(x) /\ (?y LeftOf(x,y) \/ Larger(b,x)))
  • ?x ((Tet(x) /\ ?y LeftOf(x,y)) \/ (Tet(x) /\
    Larger(b,x)))
  • ?x (Tet(x) /\ ?y LeftOf(x,y)) \/ ?x(Tet(x) /\
    Larger(b,x))
  • ?x (Tet(x) /\ ?y LeftOf(x,y)) \/ ?y(Tet(y) /\
    Larger(b,y))

24
  • There are a few more equivalences in the textbook
    that you should familiarize yourself with.

25
  • ?x (P(x) /\ Q(x)) ? ?x P(x) /\ ?x Q(x)
  • ?x (P(x) \/ Q(x)) not ? ?x P(x) \/ ?x Q(x)
  • ?x (P(x) \/ Q(x)) ? ?x P(x) \/ ?x Q(x)
  • ?x (P(x) /\ Q(x)) not ? ?x P(x) \/ ?x Q(x)
  • ?x P ? P
  • ?x P ? 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)
  • ?x P(x) ? ?y P(y)
  • ?x P(x) ? ?y P(y)
Write a Comment
User Comments (0)
About PowerShow.com