Mat 101
Mat 101
Mat 101
February 2, 2023
ii
Contents
1 Logic 1
1.1 Propositions and Connectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1.1 Logical operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1.2 Conditionals and Biconditionals . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.1.3 Other logical operator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2 Tautologies and contradictions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2.1 Logical equivalences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3 Predicate Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.3.1 Quantifiers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.3.2 Universal Conditiona statements . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.3.3 Multiple quantifiers and negating sentences . . . . . . . . . . . . . . . . . . . . . 7
iii
iv
Chapter 1
Logic
Example 1.2
1. 3 + 4 = 6, F (proposition)
2. She lives in Marawi. (not a proposition because it could be true or false depending upon the person
to whom ”she” refers)
3. x + 3 = 7 (not a proposition)
Variables are used to represent propositions. The most common variables used are p, q, and r (called
propositional variables).
Definition 1.3 The negation of a proposition p, denoted by ¬p, is the proposition “not p”. The propo-
sition ¬p is true exacly when p is false.
Definition 1.5 Let p and q be propositions. Then the conjuction of p and q, denoted by p ∧ q, is the
proposition “p and q”. p ∧ q is true exactly when both p and q are true.
The disjunction of p and q, denoted by p ∨ q, is the proposition ”p or q”. p ∨ q is true exactly when
at least one of p or q is true.
TRUTH TABLE:
p q p∧q p q p∨q
T T T T T T
F T F F T T
T F F T F T
F F F F F F
p ¬p
T F
F T
1
1.1.2 Conditionals and Biconditionals
Definition 1.7 Let p and q be propositions. Then the conditional, p ⇒ q is the proposition ”If p,
then q”. Proposition p is called the antecedent (or premise, hypothesis) and q is the consequent (or
conclusion). The conditional sentence p ⇒ q is true if and only if p is false or q is true.
TRUTH TABLE:
p q p⇒q
T T T
F T T
T F F
F F T
Example 1.8
Example 1.10
TRUTH TABLE:
p q ¬p ¬q p⇒q q⇒p ¬p ⇒ ¬q ¬q ⇒ ¬p
T T F F T T T T
F T T F T F F T
T F F T F T T F
F F T T T T T T
From the above table, it shows that p =⇒ q is equivalent to its contrapositive ¬q =⇒ ¬p.
Definition 1.11 Let p and q be propositions. The biconditional p ⇐⇒ q is a proposition that p and q
have the same truth values. In other words, either p and q are both true or p and q are both false. In
words, the biconditional is stated as “p if and only if q”.
TRUTH TABLE:
p q p ⇐⇒ q
T T T
F T F
T F F
F F T
Example 1.12
2
2. 3 + 2 = 5 if and only if Lanao Lake is in Iligan.(F)
p : 3 + 2 = 5 (T); q : Lanao Lake is in Iligan. (F)
Below are some phrases in English that are ordinarily transalted by using the connectives =⇒ or ⇐⇒.
Definition 1.13 A logical connective is an operation used to combine propositions into more compli-
cated propositions.
Definition 1.14 A compound proposition is a proposition that has been built by applying at least one
logical connective to one or more propositions.
Example 1.18
r : ¬(p ∧ q) and s : ¬p ∨ ¬q
3
TRUTH TABLE:
p q p∧q ¬(p ∧ q) ¬p ¬q ¬p ∨ ¬q
T T T F F F F
T F F T F T T
F T F T T F T
F F F T T T T
Since it is not possible for the two propositions to have different truth values, they must be equivalent.
1. p ∧ T ≡ p; p ∨ F ≡ p (Identity Laws)
2. p ∨ T ≡ T ; p ∧ F ≡ F (Domination Laws)
3. p ∨ p ≡ p; p ∧ p ≡ p (Idempotent Laws)
7. p ⇒ q ≡ ¬q ⇒ ¬p (Contrapositive)
8. p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r) (Distributive Law)
9. p ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r) (Distributivite Law)
16. p ∨ ¬p ≡ T (Tautology)
17. p ∧ ¬p ≡ F (Contradiction)
18. (p ⇒ q) ∧ (q ⇒ p) ≡ p ⇐⇒ q (Equivalence)
Example 1.22 Use the logical equivalences to show that ¬(p ∨ ¬(p ∧ q)) is a contradiction.
Solution
4
1.3 Predicate Logic
Recall from the first section that the sentence “x + 3 = 7” is not a proposition, but if we assign a value
for x then it becomes a proposition. A sentence like this with a variable is called an open sentence or
a predicate. It can only be true or false after x is assigned a particular value.
When we have an open sentence with a variable x, it is generally written as P (x). So, P (4) is true
while P (2) is false.
Similarly, when we have more variables, like the open sentence “x+y = 5” we might write as Q(x, y).
So here, Q(2, 3) is true and Q(4, 1) is true, but Q(3, 1) is false.
When we have an open sentence, the collection of objects that can be substituted in for the variable
is called the universe, or universe of discourse, denoted as U .
The elements of the universe that can be substituted in to make the sentence true is called the truth
set.
Definition 1.23 An open sentence or predicate is a declarative sentence containing one or more vari-
ables such that when all of the variables are assigned values in their respective domains, the resulting
sentence has a truth value.
Example 1.24 Let x and y be variables, both with the same domain Q. We may define the open
sentence
P (x, y) : x − 1 = y
With this definition we see that P (5, 4) is true (since 5 − 1 = 4),P (3, 1) is false (since 3 − 1 6= 1).
Example 1.25 Let U be the set of triangles and let x be a variable with domain U . Suppose P (x)
is the sentence “one of the angles of x is a right angle". Then P (x) is a true statement if x is a right
triangle.
1.3.1 Quantifiers
A quantifier turns an open sentence into a proposition without assigning specific values for the variable.
Definition 1.26 Let x be a variable with domain S and let P (x) be an open sentence. The expression
∀x ∈ S, P (x)
is then a proposition. This proposition is true, if the open sentence P (x) is true for all values of x ∈ S.
We read the proposition ∀x ∈ S, P (x) as “for all x in S, P (x),” “for every x in S, P (x),” “for each x
in S, P (x).”
We call the symbol “ ∀ 00 the universal quantifier.
Definition 1.27 Let x be a variable with domain S and let P (x) be an open sentence. The expression
∃x ∈ S, P (x)
is then a proposition. The proposition is true, if there exists an element x ∈ S such that P (x) is true.
We read the proposition ∃x ∈ S, P (x) as “there exists some x in S, such that P (x),” “there is at least
one x in S such that P (x).”
We call the symbol “ ∃ 00 the existential quantifier.
Definition 1.28 Let x be a variable with domain S and let P (x) be an open sentence. The expression
∃!x ∈ S, P (x)
is then a proposition. The proposition is true, if there exists a unique element x ∈ S such that P (x) is
true.
We read the proposition ∃!x ∈ S, P (x) as “there exists unique x x in S, such that P (x),” “there is
exactly one x in S such that P (x).”
We call the symbol “ ∃! 00 the unique existential quantifier.
Example 1.29 Let x be a variable with S = {0, 1, 2} and the open sentence
P (x) : x2 = x,
and
Q(x) : x − 1 > 0,
then the proposition ∀x ∈ {0, 1, 2}, P (x) is a false proposition while ∃x ∈ {0, 1, 2}, P (x) is a true
proposition; and ∃!x ∈ {0, 1, 2}, Q(x) is a true proposition.
5
Example 1.30 Let x and y be an integers and let R(x, y) : xy > 0 be an open sentence. Then
Example 1.31 Translate the following English sentences into symbolic logic containing one quantifier.
Indicate the truth value of each proposition.
∀x ∈ S, Q(x)
∀x ∈ S, Q(x)
can be written as
∀x, if x is in S, then Q(x).
Example 1.33 Rewrite the following statements formally and indicate the truth value.
Let P (x) and Q(x) be two quantified statements with nonempty universe of discourse U . Two
statements P (x) and Q(x) are equivalent in U if and only if P (x) and Q(x) have the same truth value
for all x ∈ U. That is, P (x) and Q(x) are equivalent in U if and only if ∀x ∈ U, P (x) ⇐⇒ Q(x). The two
quantified statements P(x) and Q(x) are equivalent if and only if they are equivalent in every universe
of discourse U .
6
1.3.3 Multiple quantifiers and negating sentences
Example 1.34 Let P (x, y) be the open sentence xy = 1 with the domain of x being the set of positive
integers and y the set of real numbers. We examine the following statements
1. ∀x, ∀y, P (x, y)
This statement means: For each positive integer x and for each real number y, xy = 1. (False)
Proposition 1.36 Let P (x) be an open sentence, where x has domain S. Then
i. ¬(∀x ∈ S, P (x)) ≡ ∃x ∈ S, ¬P (x)
¬(∀x ∈ R, ∃y ∈ R, y 4 = x) ≡ ∃x ∈ R, ¬(∃y ∈ R, y 4 = x)
≡ ∃x ∈ R, ∀y ∈ R, ¬(y 4 = x)
≡ ∃x ∈ R, ∀y ∈ R, y 4 6= x.
In words, there is a real number x for which y 4 = x for all real numbers y.
¬(∀x, P (x) ⇒ Q(x)) ≡ ∃x such that ¬(P (x) ⇒ Q(x)) ≡ ∃x such that P (x) ∧ ¬Q(x)
7
Example 1.38 If a person is blond, then they have blue eyes.
Universal of discourse/Domain: All people
Statement: ∀ people p, if p is blond, then p has blue eyes.(F)
Negation: ∃ person p such that p is blond and p does not have blue eyes.(T)
In words, Some people are blond and do not have blue eyes.
Inverse: ∀x ∈ R, if x ≤ 3, then x2 ≤ 9.