07 Cis1103 Formal Logic P1
07 Cis1103 Formal Logic P1
DISCRETE STRUCTURES 1
FORMAL LOGIC
PART 1
LOGIC
Given:
1. Man is Mortal.
2. 12 + 9 = 3 – 2
3. Humans are just bananas with legs.
4. |{ }| = 0.
5. Cebu City is the capital of the Philippines.
Task:
Determine if each of the given statements is a proposition or not.
PROPOSITION: EXAMPLE 2
Given:
1. A is less than 2.
2. What time is it?
3. x + 1 = 2.
4. Send us your Application Letter before 9AM.
5. Read this carefully.
6. I request you to please allow me to be absent later.
Task:
Determine if each of the given statements is a proposition or not.
PROPOSITIONAL LOGIC
Asked:
a) Identify the number of proposition(s) in Statement 1.
b) Determine the proposition(s) in Statement 2.
c) Identify the logical connective used in Statement 2.
SIMPLE AND COMPOUND STATEMENTS
Compound Statement:
A statement represented by some combination of statement
variables and connectives.
Note:
Statement variables are also called propositional variables.
PROPOSITIONAL VARIABLES
Truth Table
A ¬A
True False
False True
LOGICAL CONNECTIVES: AND (∧)
The AND operation of two propositions A and B (written as A ∧ B)
is True if BOTH propositional variable A or B is True.
Truth Table
A B A∧B
True True True
True False False
False True False
False False False
LOGICAL CONNECTIVES: OR (∨)
The OR operation of two propositions A and B (written as A ∨ B) is
True if at least any of the propositional variable A or B is True.
Truth Table
A B A∨B
Truth Table
A B A⇔B
Truth Table
p ¬p
T F
F T
NEGATION: EXAMPLE
Given:
Let p be a proposition which states that
John and Jane lived together for many
years.
Task:
Find the negation of p or ¬p.
LOGICAL OPERATORS: CONJUNCTION [AND (∧)]
A conjunction is a compound statement formed by joining two
statements with the connector AND.
Truth Table
p q p∧q
T T T
T F F
F T F
F F F
CONJUNCTION: EXAMPLE
Given:
p is the proposition 12 is divisible by 3
q is the proposition 3 is a prime number
Task:
a) Find the conjunction of the two propositions.
b) Determine the truth value of the conjunction.
LOGICAL OPERATORS: DISJUNCTION [OR (∨)]
A disjunction is a compound statement formed by joining two statements
with the connector OR.
The disjunction “p or q" is symbolized by p ν q.
Truth Table
p q pνq
T T T
T F T
F T T
F F F
DISJUNCTION: EXAMPLE
Given:
Let p be a proposition 20 – 4 = 10
Let q be a proposition 8 is an even number
Task:
a) Determine the disjunction of the given propositions.
b) Find the truth value of the disjunction.
LOGICAL OPERATORS: EXCLUSIVE OR [XOR (⊕)]
Truth Table
p q p⊕q
T T F
T F T
F T T
F F F
EXCLUSIVE OR: EXAMPLE
Given:
Consider the following statement:
When you buy a car from XYZ company, you get $2500 cash
back or accessories worth $2500.
Task:
a) Find the propositions of the given statement and denote them
with p and q respectively.
b) Determine if the statement is Inclusive disjunction or
Exclusive disjunction.
LOGICAL OPERATORS: IMPLICATION (→)
Let p and q be propositions.
The conditional statement p → q, is the proposition “if p, then q.”
Truth Table
p q p→q
T T T
T F F
F T T
F F T
Remember:
If p is False, then it does not matter what will be the truth value of q, p → q is always True.
IMPLICATION/CONDITIONAL STATEMENT: EXAMPLE
Given:
Consider the following statement:
“If you try hard for your exam, then you will succeed.”
Tasks:
a) Determine if the given statement is a conditional statement or implication.
Support your answer.
b) Determine the p and q propositions of the given statement.
c) Determine the four possible cases that can be formulated from the given
statement and give the corresponding truth values for each case.