Unit 1 Propositional Logic
Unit 1 Propositional Logic
Propositional Logic
1.1 Propositions
Definition 1
A proposition is a declarative sentence that is either true or false, but not both. If a
proposition is true, then its truth value is “true” and is denoted by T or 1; otherwise, its
truth value is false and is denoted by F or 0.
Example 1. Determine whether each of the following statements is a proposition or not a propo-
sition. If the given is a proposition, give its truth value (if possible).
7. 1 is a prime number.
√
8. 2 is an irrational number.
1
2 CHAPTER 1. PROPOSITIONAL LOGIC
Given a proposition, its truth table shows all its possible truth values.
p p q p q r
1 1 1 1 1 1
0 1 0 1 1 0
0 1 1 0 1
0 0 1 0 0
0 1 1
0 1 0
0 0 1
0 0 0
Definition 2
Let p be a proposition. The negation of p, denoted by ¬p, is the statement “It is not the
case that p.” The proposition ¬p is read “not p.” The truth table for ¬p is
p ¬p
1 0
0 1
x−1
2. p : The function f (x) = is a polynomial function.
x+1
3. q : 3 is a composite number.
√
4. s : 2 is an irrational number.
1.2. COMPOUND PROPOSITIONS 3
Definition 3
Let p and q be propositions. The conjunction of p and q, denoted by p ∧ q, is the
proposition “p and q”. The conjunction p ∧ q is true when both p and q are true, and is false
otherwise. The propositions p and q are called conjuncts. The truth table of p ∧ q is
p q p∧q
1 1 1
1 0 0
0 1 0
0 0 0
1. p ∧ q :
2. p ∧ (¬q) :
3. (¬p) ∧ q :
4. (¬p) ∧ (¬q) :
5. ¬(p ∧ q) : ¬(p ∧ q) :
4 CHAPTER 1. PROPOSITIONAL LOGIC
Definition 4
Let p and q be propositions. The disjunction of p and q, denoted by p∨q, is the proposition
“p or q”. The disjunction p ∨ q is false when both p and q are false, and is true otherwise.
The propositions p and q are called disjuncts. The truth table of p ∨ q is
p q p∨q
1 1 1
1 0 1
0 1 1
0 0 0
1. p ∨ q :
2. p ∨ (¬q) :
3. (¬p) ∨ q :
4. (¬p) ∨ (¬q) :
5. ¬(p ∨ q) :
Definition 5
Let p and q be propositions. The exclusive or of p and q, denoted by “p Y q” or “p ⊕ q”, is
the proposition that is true when exactly one of p and q is true, and is false otherwise. The
truth table of p Y q is
p q pYq
1 1 0
1 0 1
0 1 1
0 0 0
1.2. COMPOUND PROPOSITIONS 5
Example 5.
Definition 6
Let p and q be propositions. The conditional statement p → q is the proposition “If p,
then q.” or “p implies q”. The conditional statement p → q is false when p is true and q is
false, and true otherwise. In the conditional statement p → q, p is called the hypothesis
(or antecedent or premise) and q is called the conclusion (or consequence). The truth table
of p → q is
p q p→q
1 1 1
1 0 0
0 1 1
0 0 1
1. if p, q 7. q when p
2. p only if q
8. q is necessary for p
3. p is sufficient for q
9. a necessary condition for p is q
4. a sufficient condition for q is p
10. q follows from p
5. q if p
1. p → q :
2. q → p :
3. ¬p → ¬q :
6 CHAPTER 1. PROPOSITIONAL LOGIC
4. ¬q → ¬p :
5. ¬(p → q) :
Remark: If p → q, then
Definition 7
Let p and q be propositions. The biconditional statement p ↔ q is the proposition “p if
and only if q” (or simply “p iff q”). The biconditional statement p ↔ q is true when p and q
have the same truth values, and is false otherwise. Biconditional statements are also called
bi-implications. The truth table of p ↔ q is
p q p↔q
1 1 1
1 0 0
0 1 0
0 0 1
1. p ↔ q :
2. ¬p ↔ q :
3. ¬q ↔ ¬p :
1.2. COMPOUND PROPOSITIONS 7
1. Either every rabbit that lay eggs studies at PUP or today is Sunday.
6. If 2 is an even prime, then either today is Sunday or the moon is made of cheese.
7. Every rabbit that lay eggs studies at PUP if and only if either the moon is made of cheese
or 2 is an even prime.
8. If 2 is not an even prime, then every rabbit that lay eggs studies at PUP implies that today
is Sunday.
9. The moon is made of cheese whenever either 2 is an even prime or today is Sunday.
10. Every rabbit that lay eggs studies at PUP is necessary for 2 is an even prime.
8 CHAPTER 1. PROPOSITIONAL LOGIC
Definition 8
A compound proposition that is always true, no matter what the truth values of the propo-
sitional variables that occur in it, is called a tautology. A compound proposition that is
always false is called a contradiction. A compound proposition that is neither a tautology
nor a contradiction is called a contingency.
1. De Morgan’s Law:
(a) ¬(p ∧ q) ↔ ¬p ∨ ¬q
(b) ¬(p ∨ q) ↔ ¬p ∧ ¬q
2. ¬(p → q) ↔ (p ∧ ¬q)
Example 10. Using truth tables, determine if the following compound propositions is a tautology,
contingency, or contradiction.
3. z : [(p → q) → r] ↔ [p → (q → r)]
1.4 Arguments
Definition 9
An argument is a compound proposition of the form (p1 ∧ p2 ∧ p3 ∧ . . . ∧ pn ) → q. The
propositions p1 , p2 , . . . , pn are the premises of the argument, and q is the conclusion.
Arguments can also be written in column or standard form:
p1
p2
..
.
pn
∴ q
1.4. ARGUMENTS 9
Definition 10
An argument is valid if all its premises are true implies that the conclusion is true. Other-
wise, we say that the argument is invalid or a fallacy.
5. If the truth table results in a tautology, then the argument is valid. Otherwise, we conclude
that the argument is invalid.
1. If Antonio and Berto are friends, then they are Facebook friends.
They are not friends.
∴ They are not Facebook friends.
Syllogistic arguments, also known as syllogism, are arguments that use the quantifiers all are,
some are, none are, and some are not.
Euler Diagrams
1. If that can be done, then the conclusion does not necessarily follow from the premises and
the argument is invalid.
2. If we cannot show that the argument is invalid, only then do we accept the argument as
valid.
Example 12.