Logic
Logic
p or q or 𝑝∨𝑞 Disjunction
Example
•Let p, q, and r represent the following.
p: You get a promotion.
q: You complete the training.
r: You will receive a bonus.
Compound Statements and Grouping Symbols
Example
•a. Write (𝒑 ∧ 𝒒) ⟶ r as an English sentence.
• b. Write “If you do not complete the
training, then you will not get a promotion
and you will not receive a bonus.” in
symbolic form.
Compound Statements and Grouping Symbols
Example
•Let p, q, and r represent the following.
p: Kesha’s singing style is similar to Uffie’s.
q: Kesha has messy hair.
r: Kesha is a rapper.
Compound Statements and Grouping Symbols
Example
•a. Write (𝒑 ∧ 𝒒) ⟶ r as an English sentence.
• b. Write “If Kesha is not a rapper, then Kesha
does not have messy hair and Kesha’s
singing style is not similar to Uffie’s.” in
symbolic form.
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. A truth table is a table that
shows the truth value of a compound
statement for all possible truth values of its
simple statements.
Truth Value and Truth Tables
•Negation
The Truth Table of the Negation of p
P ∼𝒑
T F
F T
Truth Value and Truth Tables
•Conjunction
The Truth Table for 𝒑 ∧ 𝒒
P q 𝒑∧𝒒
T T T
T F F
F T F
F F F
Truth Value and Truth Tables
•Disjunction
The Truth Table for 𝒑 ∨ 𝒒
P q 𝒑∨𝒒
T T T
T F T
F T T
F F F
Truth Value and Truth Tables
•Conditional
The Truth Table for 𝒑 ⟶ 𝒒
P Q 𝒑⟶𝒒
T T T
T F F
F T T
F F T
Truth Value and Truth Tables
•Biconditional
The Truth Table of 𝒑 ⟷ 𝒒
P Q 𝒑⟷𝒒
T T T
T F F
F T F
F F T
Truth Value and Truth Tables
Example
• Determine whether each statement is true or false.
a. 7 ≥ 5.
b. 5 is a whole number and 5 is an even number.
c. 2 is a prime number and 2 is an even number.
d. 21 is a rational number and 21 is a natural number.
e. 4 ≤ 9.
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.
•While the words none, no, all, and every are
called universal quantifiers.
Quantifiers and Negation
•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.
Quantifiers and Negation