IS184101 LCN Week 03
IS184101 LCN Week 03
Example:
Example:
• L(x,y) = x loves y
• L(Romeo, Julia) = Romeo loves Julia
• P(x,y) = x + y = 0
• P(1,2) is false, P(1,-1) is true
• P(x,y,z) = x + y = z
• P(3,4,5) is false, P(1,2,3) is true
• P(x1,x2,x3 … xn) = …
• In some cases, it’s a more accurate way to describe things than Boolean propositions
• Existential quantifier
• Represented by an upside-down A:
• It means “for all”
• Let P(x) = x+1 > x
• Represented by a backwards E:
• It means “there exists”
• Let P(x) = x2 > 10
x P(x)
x P(x)
• Consider: x P(x, y)
• This is not a proposition!
• What is y?
• If it’s 5, then x P(x, y) is false
• If it’s x-1, then x P(x, y) is true
x P(x) x P(x) For all x, P(x) is false There is a value of x for
which P(x) is true
Let P(x), Q(x), R(x), and S(x) be the statements “x is a baby,” “x is logical,”
“x is able to manage a crocodile,” and “x is despised,” respectively.
Suppose that the domain consists of all people. Express each of these
statements using quantifiers; logical connectives; and P(x), Q(x), R(x), and
S(x).
a) ∀x(P(x) → ¬Q(x))
b) ∀x(¬Q(x) → S(x))
c) ∀x(P(x) → ¬R(x))
a) ∀x(P(x) → ¬Q(x))
b) ∀x(Q(x) → R(x))
c) ∀x(P(x) → ¬R(x))
• xy P(x, y)
• “For all x, there exists a y such that P(x,y)”
• Example: xy (x+y = 0)
• xy P(x,y)
• There exists an x such that for all y P(x,y) is true”
• Example: xy (x*y = 0)
• xy P(x,y)
• P(x, y) = (x+y = 0) is false
• xy P(x,y)
• P(x,y) = (x+y = 0) is true
• Examples:
• ¬(xy P(x,y)) = xy ¬P(x,y)
• ¬(xyz P(x,y,z)) = xyz ¬P(x,y,z)
Let N(x) be the statement "x has visited North Dakota", where he domain consist of the
students in your school. Express each of these quantifications in English.
a) x N(x)
Some students in the school have visited North Dakota.
There exists a student in the school who has visited N.D.
b) x N(x)
Every student in the school has visited North Dakota.
All students in the school have visited North Dakota.
c) ¬ x N(x) : negation of part a)
No student in the school has visited North Dakota.
There does not exist a student in the school who has visited N.D.
Let N(x) be the statement "x has visited North Dakota", where he domain consist of
the students in your school. Express each of these quantifications in English.
d) x ¬ N(x)
Some students in the school have not visited North Dakota.
There exists a student in the school who has not visited N.D.
e) ¬ x N(x) : negation of part b)
It is not true that every student in the school has visited N.D.
Not all students in the school have visited N.D.
f) x ¬ N(x)
All students in the school have not visited North Dakota.
(common English sentence takes this sentence, incorrectly, the answer of part e)
Note: c) and f) are equivalent; d) and e) are also equivalent. But both pairs are
not equivalent to each other.
Let N(x) be the statement "x has visited North Dakota", where he domain consist of
the students in your school. Express each of these quantifications in English.
d) x ¬ N(x)
Some students in the school have not visited North Dakota.
There exists a student in the school who has not visited N.D.
e) ¬ x N(x) : negation of part b)
It is not true that every student in the school has visited N.D.
Not all students in the school have visited N.D.
f) x ¬ N(x)
All students in the school have not visited North Dakota.
(common English sentence takes this sentence, incorrectly, the answer of part e)
Note: c) and f) are equivalent; d) and e) are also equivalent. But both pairs are
not equivalent to each other.
xy (x+y = y)
• There exists an additive identity for all real numbers
xy (((x≥0) (y<0)) → (x-y > 0))
• A non-negative number minus a negative number is greater than
zero
xy (((x≤0) (y≤0)) (x-y > 0))
• The difference between two non-positive numbers is not
necessarily non-positive (i.e. can be positive)
xy (((x≠0) (y≠0)) ↔ (xy ≠ 0))
• The product of two non-zero numbers is non-zero if and only if
both factors are non-zero