Discrete Structures DSCR211: Chapter 1: Formal Logic
Discrete Structures DSCR211: Chapter 1: Formal Logic
DSCR211
Truth value
One of the values “truth” (T) or “falsity” (F) assigned to
a statement
Examples:
1. Manila is the capital of the Philippines.
2. What day it is?
3. Help me, please.
4. He is handsome.
Logical Connectives
Proportional Variable
it is a variable which used to represent a statement.
Logical connectives
are used to combine simple statement which are
referred as compound statement.
Compound statement
it is a statement composed of two or more simple
statements connected by logical connectives. (and, or, if then,
not, if and only if, exclusive – or)
Simple (atomic) statement
a statement which is not compound.
Logical Connectives
Six (6) main logical connectives
1. Conjunction
2. Disjunction
3. Negation
4. Conditional
5. Bi-conditional
6. Exclusive - or
Logical Connectives
Conjunction
Let p and q be statements. The conjunction of
p and q, written p ^ q , is the statement formed
by joining statements p and q using the word
“and”
The statement p ^ q is true if both p and q are true; otherwise
p ^ q is false.
Truth Table for Conjunction:
Logical Connectives
Disjunction
Let p and q be statements. The disjunction of
p and q, written p v q , is the statement formed
by joining statements p and q using the word
“or”
The statement p v q is true if at least one of the
statements p and q is true; otherwise p v q is false
The symbol v is read “or”
^ second highest
v third highest
→ fourth highest
↔ fifth highest
Truth Tables
Constructthe truth table for each of the following
statements:
1. ~p v ~q
2. p (p ~q )
3. (~p ^ q) v (p ^~q)
4. (p q) v (q ^ ~r)
Compound Statement
Three (3) important classes of compound
statement:
1. Tautology is a compound statement that is true for all
possible combinations of the truth values of the
propositional variables also called logical true.
2. Contradiction is a compound statement that is false
for all possible combinations of the truth values of its
propositional variables also called logically false or
absurdity.
3. Contingency is a compound statement that can be
either true or false depending on the truth values of
the propositional variables are neither a tautology nor
a contradiction.
Compound Statement
Example: Write the truth table for each of the following
compound statements and determine whether the
compound statement is tautology, contradiction or
contingency.
1. (~p ^ q) → q
2. (p → q) (p →~q)
3. (~p v q) xor (p → q)
Logical Equivalence
Logically Implies
A statement formula p is said to logically imply a
statement formula q if the statement formula p → q is a
tautology. If p logically implies q, then symbolically we
write p → q.
Logically Equivalent
A statement formula p is said to be logically equivalent
to a statement formula q if the statement formula
p ↔ q is a tautology. If p is logically equivalent to q,
then symbolically we write p q.
Variation of Conditional Statement
Implication
Let p: Today is Sunday and q: I will wash the car.
Conditional : p q :
If today is Sunday, then I will wash the car
The converse of this implication is written q p
If I wash the car, then today is Sunday
The inverse of this implication is written ~p ~p
If today is not Sunday, then I will not wash the car
The contrapositive of this implication is written ~q ~p
If I do not wash the car, then today is not Sunday
END……
Please do exercises :
Exercises 1.1 page 25
Exercises 1.2 A , B and C page 26
Exercises 1.3 page 27
Exercises 1.4 page 28
Exercises 1.5 A and B page 29