Professional Documents
Culture Documents
Statements and Quantifiers
Statements and Quantifiers
Statement
Not a Statement
Because it is a question
Which of the following are statement?
3. Man, that hurts!
Not a Statement
Because it is an exclamation
Which of the following are statement?
4. 432 + 8 ÷ 1.3 = 𝟏𝟏𝟓, 𝟎𝟎𝟎
Statement
Statement
Not a Statement
Simple statement
Classify each statement as simple or compound. If it is a
compound, state the name of the connective used.
Compound statement
Conditional
Classify each statement as simple or compound. If it is a
compound, state the name of the connective used.
Compound statement
Disjunction
Classify each statement as simple or compound. If it is a
compound, state the name of the connective used.
Compound statement
Conjunction
Classify each statement as simple or compound. If it is a
compound, state the name of the connective used.
Compound statement
Disjunction
Classify each statement as simple or compound. If it is a
compound, state the name of the connective used.
Compound statement
Disjunction
Classify each statement as simple or compound. If it is a
compound, state the name of the connective used.
Simple statement
The discipline that considers the methods of
reasoning.
Ex;
Ex 1:
i. 4 is an integer
ii. 𝟓 𝒊𝒔 𝒂𝒏 𝒊𝒏𝒕𝒆𝒈𝒆𝒓
iii. Manila is the capital of the Philippines
Ex 1:
i. 4 is an integer true
Goldbach’s Conjecture
Ex 3:
p: Will you go?
p: 2 is positive
q: It is not the case that 2 is positive
Then
Truth table.
p ~p
T F
F T
Exercise 2: Write the negation of each of the following
statements.
(a) 7 is an even integer.
(b) 5+8 > 3
(c)It is hot.
Solution:
(a)7 is not an even integer.
(b)5+8 not > 3. This can also be 5+8 ≤< 3.
(c)It is not hot.
Conjunction
p : 2 is an even integer
q: 7 divides 14
p q p^q
T T T
T F F
F T F
F F F
Disjunction
Given 2 statements p and q, we can
form the statement “p or q” by putting
the word “or” between the statements
such that the statement p or q is true if
at least one of the statements p or q is
true.
Disjunction
Ex;
p : 2 is an integer
q: 3 is greater than 5
a. 5 is an odd integer.
b. There is an integer x such that 𝒙𝟐 = 2
c. 5 + 6 =11.
d. Ø ⊆ {1}.
e. Every integer is a real number.
1.Determine if the given sentence is
declarative or not, if declarative write
true or false, statement or not a
statement.
f. Every set can be represented in computer memory.
g. Today is Sunday.
h. Why should we study computer science.
i. Boston is the capital of the United States.
j. Please do this work
k. There will be a rainy day in September.
QUIZ 2
2. Write the negation of each of the following
statements.
a. 13 is an even integer.
b. 5 + 8 < 18.
c. Allyssa is beautiful.
d. Rondil always follow the school rules and
regulations
e.Villoria will drop discrete math
Also known as Conditional statements.
p q p→q
T T T
T F F
F T T
F F T
In the implication p →q also to be read as
p - hypothesis
q - conclusion
Let p and q be statements;
p: Today is Sunday
q: I will go for a walk
p: Today is Sunday
q: I will go for a walk
p: Today is Sunday
q: I will go for a walk
T T T
T F F
F T F
F F T
~p negation
p^q conjunction
pvq disjunction
p →q implication
𝒑↔𝒒 biimplication
~p
p ~p
T F
F T
p^q
p q p^q
T T T
T F F
F T F
F F F
pvq
P q pvq
T T T
T F T
F T T
F F F
p →q
p q p→q
T T T
T F F
F T T
F F T
𝒑↔𝒒
p q 𝒑↔𝒒
T T T
T F F
F T F
F F T
p: Triangle ABC is isosceles.
q: Triangle is equiangular
r: Triangle ABC is equilateral
p: Pythagorean Theorem is used to solve right
triangle.
q: Triangle with sides 3, 4 and 5 is an example of
right triangle.
r: Square of 4 is equal to the sum of squares of 3
and 5.
Example
Let A be the statement of formula
A: (~(p v q))→(q^p).
2. Write the p, q columns all possible combinations of the truth values T and F.
3. Form the truth value table of v, ^ , write the truth value in the columns of
(p v q) and (q ^ p).
4. With the help of the truth table for ~, fill in the column of ~(p v q)
A: (~(p v q))→(q^p).
A: (~(p v q))→(q^p).
A: (~(p v q))→(q^p).
A: (~(p v q))→(q^p).
A: (~(p v q))→(q^p).
p q ~ p ~ p^q
T T
T F
F T
F F
(a) Truth table for ~p ˄ q
p q ~ p ~ p^q
T T F
T F F
F T T
F F T
(a) Truth table for ~p ˄ q
p q ~ p ~ p^q
T T F F
T F F F
F T T T
F F T F
(b) Truth table of ~ (p V q) → q is the following.
p q pvq ~ ( p ˅ q) ~ (p ˄ q) → q
(b) Truth table of ~ (p V q) → q is the following.
p q pvq ~ ( p ˅ q) ~ (p ˄ q) → q
T
T
F
F
(b) Truth table of ~ (p V q) → q is the following.
p q pvq ~ ( p ˅ q) ~ (p ˄ q) → q
T T
T F
F T
F F
(b) Truth table of ~ (p V q) → q is the following.
p q pvq ~ ( p ˅ q) ~ (p ˄ q) → q
T T T
T F T
F T T
F F F
(b) Truth table of ~ (p V q) → q is the following.
p q pvq ~ ( p ˅ q) ~ (p ˄ q) → q
T T T F
T F T F
F T T F
F F F T
(b) Truth table of ~ (p V q) → q is the following.
p q pvq ~ ( p ˅ q) ~ (p ˄ q) → q
T T T F T
T F T F T
F T T F T
F F F T F
(C) Truth table of ~ ( ~ p ˄ q) V q is the following.
(C) Truth table of ~ ( ~ p ˄ q) V q is the following.
p q ~p ~p ˄ q ~(~ (p ˄ q) ~ ( ~ p ˄ q) V q
(C) Truth table of ~ ( ~ p ˄ q) V q is the following.
p q ~p ~p ˄ q ~(~ (p ˄ q) ~ ( ~ p ˄ q) V q
T
T
F
F
(C) Truth table of ~ ( ~ p ˄ q) V q is the following.
p q ~p ~p ˄ q ~(~ (p ˄ q) ~ ( ~ p ˄ q) V q
T T
T F
F T
F F
(C) Truth table of ~ ( ~ p ˄ q) V q is the following.
p q ~p ~p ˄ q ~(~ (p ˄ q) ~ ( ~ p ˄ q) V q
T T F
T F F
F T T
F F T
(C) Truth table of ~ ( ~ p ˄ q) V q is the following.
p q ~p ~p ˄ q ~(~ (p ˄ q) ~ ( ~ p ˄ q) V q
T T F F
T F F F
F T T T
F F T F
(C) Truth table of ~ ( ~ p ˄ q) V q is the following.
p q ~p ~p ˄ q ~(~ (p ˄ q) ~ ( ~ p ˄ q) V q
T T F F T T
T F F F T T
F T T T F T
F F T F T T
(D) Truth table of (~ p → q) → (~q → ~p)
(D) Truth table of (~ p → q) → (~q → ~p) is the follo
p q ~p ~p ˄ q ~(~ (p ˄ q) ~ ( ~ p ˄ q) V q
T T F F T T
T F F F T T
F T T T F T
F F T F T T
Examples for p,q and r
We have to consider all eight assignments and
hence there will be eight rows per table
because there are 3 values.
Consider the formula A: (~p ^ q) → r
The truth table is
Examples for p,q and r
Consider the formula A: (~p ^ q) → r
Truth Table:
p q r ~p ~p ^ q (~p ^ q) → r
T T T
T T F
Examples for p,q and r
Consider the formula A: (~p ^ q) → r
Truth Table:
p q r ~p ~p ^ q (~p ^ q) → r
T T T
T T F
T F T
T F F
F T T
Examples for p,q and r
Consider the formula A: (~p ^ q) → r
Truth Table:
p q r ~p ~p ^ q (~p ^ q) → r
T T T
T T F
T F T
T F F
F T T
F T F
F F T
F F F
Examples for p,q and r
Consider the formula A: (~p ^ q) → r
Truth Table:
p q r ~p ~p ^ q (~p ^ q) → r
T T T F
T T F F
T F T F
T F F F
F T T T
F T F T
F F T T
F F F T
Examples for p,q and r
Consider the formula A: (~p ^ q) → r
Truth Table:
p q r ~p ~p ^ q (~p ^ q) → r
T T T F F
T T F F F
T F T F F
T F F F F
F T T T T
F T F T T
F F T T F
F F F T F
Examples for p,q and r
Consider the formula A: (~p ^ q) → r
Truth Table:
p q r ~p ~p ^ q (~p ^ q) → r
T T T F F T
T T F F F T
T F T F F T
T F F F F T
F T T T T T
F T F T T F
F F T T F T
F F F T F T
Example
Let A denote the statement formula p ^(p→q)
and B be q.
WeP
show QA logically
p→q
implies B. For
P^(p→q) A→B
this we
construct
T Tthe truth
T tableT A -> B.T
T F F F T
F T T F T
F F T F T
In this example, we show that the implication p → q is
equivalent to ~p v q. For this we construct the truth table of
(p → q)<->(~p v q)
p q ~p (p → q) ~p v q (p→ q )<-
>(~pvq)
T T F T T T
T F F F F T
F T T T T T
F F T T T T