Logic Statements and Quantifiers
Logic Statements and Quantifiers
Quantifiers
Reporter: Yasmin M. Miro
Table of contents
01 02
03 04
The symbolic logic that Boole was instrumental in creating applies only
to sentences that are statements as defined next slide.
A Statement
• a statement is a declarative sentence that is either true or false, but not both
true and false.
• It may not be necessary to determine whether a sentence is true to determine
whether it is a statement. For instance, consider the following sentence.
Yosimete National Park is located in California.
You may not know if the sentence is true, but you do know that the
sentence is either true or it is false, and that is not both true and false. Thus
you know that the sentence is a statement.
• Connecting simple statements with words and phrases such as and, or, if …
then, and if and only if creates a compound statement. For instance, “I will
attend the meeting or I will go to school.” is a compound statement. It is
composed of the two simple statements, “I will attend the meeting.” and “I
will go to school.” The word “or” is a connective for the two simple
statements.
7
Logic Connectives and Symbols
p or q or p˅q Disjunction
8
Truth Value and Truth Tables
• The truth value of a simple statement is either true (T) or false (F).
• The truth value of a compound statement depends on the truth
values of its simple statements and its connectives.
F T
Solution:
Solution: a. p ˄ q b. ~ q ˄ r c. ~ s ˅ r d. q → s
Translate Symbolic Statements
Solution:
a. The game will be shown on CBS and the game will be played in Atlanta.
b. The game will be shown on ESPN and the Mets are favored to win.
c. The Mets are favored to win if and only if the game will not be played in Atlanta.
03
Compound Statements
and Grouping Symbols
• If a compound statement is written in symbolic form, then parentheses are
used to indicate which simple statements are grouped together. the table
below illustrates the use of parentheses to indicate groupings for some
statements in symbolic form.
Symbolic Form The parentheses indicate that:
p, and q, or not r. q and ~r are grouped together because they are both on
the same side of the comma.
p and q, or r. p and q are grouped together because they are both on the
same side of the comma.
If p and not q, then p and ~q are grouped together because they are both to
r or s. the left of the comma.
r and s are grouped together because they are both to the
right of the comma.
Solution:
a. Because the p and the q statements both appear in parentheses in the
symbolic form, they are placed to the left of the comma in the English sentence.
(p^q)→r
b. Because the not p and the not r statements are both to the right of the comma
in the English sentence, they are grouped together in parentheses in the symbolic
form.
If you do not complete , then you will not get and you will not
the training a promotion receive a bonus
~q→(~p^~r)
T T T
T F F
F T F
F F F
T: TrueF: False
• In general, the conjunction p ^ q is true if both p and q are true, and the conjunction is false
if either p or q is false. The truth table in the above shows the four possible cases that arise
when we form a conjunction of two statements.
Truth value of a Conjunction
• The conjunction p ^ q is true if and only if both p and q are true.
Sometimes, the word “but” is used in place of the connective “and”. For
instance, “I ride my bike to school, but I ride the bus to work,” is equivalent to the
conjunction, “I ride my bike to school and I ride the bus to work.”
Any disjunction p ˅ q is true if p is true or q is true or both p and q are true. The
truth table below shows that the disjunction p or q is false if both p and q are false;
however, it is true in all other cases.
p q p˅q
T T T
T F T
F T T
F F F
Truth table for p ˅ q
Truth Value of a Disjunction
• The disjunction p ˅ q is true if and only if p is true, q is true, or both p and q are
true.
Solution:
d. 7 ≥ 5 means 7 > 5 or 7 = 5. because 7 > 5 is true, the statement 7 ≥ 5 is a true statement.
e. This is a false statement because 5 is not an even number.
f. This is a true statement because each simple statement is true.
04
Quantifiers and
Negation
• In a statement, the word “some” and the phrases “there exists” and “at least
one” are called existential quantifiers. Existential quantifiers are used as
prefixes to assert the existence of something.
• In a statement, the words none, no, all, and every are called universal
quantifiers. The universal quantifiers none, and no deny the existence of
something, whereas the universal quantifiers all and every are used to assert
that every element of a given set satisfies some condition.
Statement Negation
Solution:
d. No airports are open.
e. Some movies are not worth the price of admission.
f. Some odd numbers are divisible by 2.
Thank you!