Академический Документы
Профессиональный Документы
Культура Документы
DISCRETE MATHEMATICS
AZLINAJUMADIMARCHJUNE2018
STATEMENTS
A statement, or a proposition, is a declarative sentence that is either true or
false, but not both.
The truth value of a proposition is true (T) if it is a true proposition and false
(F), if it is a false proposition.
Examples:
‣ p: 2 is an even number (true)
‣ q: 2 + 5 = 8 (false)
‣ r: A is a vowel (true)
negation (not) ~
and ˄
or ˅
conditional →
biconditional (if and ↔
only if, equivalence)
CONDITIONAL STATEMENTS
Conditional statements: p → q
If p then q
If p, q
q if p
q from p
q whenever p p→q
p only if q
p is sufficient condition for q
q is necessary condition for p
CONDITIONAL STATEMENTS
If p → q is an implication,
the converse is q → p,
the contrapositive is ~q → ~p,
the inverse is ~p → ~q.
Example:
Let p: the network is down q: Ahmad cannot access the Internet
a) Write the converse and hence the contra positive of the following statement:
“If I am a millionaire, then I will donate some of my properties to the needy people”
Converse: I will donate some of my properties to the needy people only if I am a millionaire
Contrapositive: If I am not donating my properties to the needy people, then I am not a millionaire
10
TRUTH TABLES
Example 5:
Construct a truth table for the following statements: (𝑝∧q) → ~r
p q r 𝑝∧q ~r (𝑝∧q) → ~r
T T T T F F
T T F T T T
T F T F F T
T F F F T T
F T T F F T
F T F F T T
F F T F F T
F F F F T T
TRUTH TABLES
A statement that is true for all possible values of its propositional variables is called a
tautology.
A statement that is always false is called a contradiction or an absurdity.
A statement that can be either true or false, depending on the truth values of its
propositional variables is called a contingency.
TRUTH TABLES
Example 6: (Method I)
Construct the truth table to determine whether the two statements are logically equivalence:
p →(q ∧ r) ↔ (p →q) ∧ (p→r)
p q r q∧r p →(q ∧ r) p →q p→r (p →q) ∧ (p → r)
T T T T T T T T
T T F F F T F F
T F T F F F T F
T F F F F F F F
F T T T T T T T
F T F F T T T T
F F T F T T T T
F F F F T T T T
equivalence
TRUTH TABLES
Example 6: (Method II)
Construct the truth table to determine whether the two statements are logically equivalence:
p →(q ∧ r) ↔ (p →q) ∧ (p → r)
T T T T T T T T T
T T F F F T F F T
T F T F F F T F T
T F F F F F F F T
F T T T T T T T T
F T F F T T T T T
F F T F T T T T T
F TF F F T T T T T
Assuming that p and r are false and that q and s are true, find the truth value for the following proposition:
1) (𝑠→(𝑝∧~𝑟))∧((𝑝→(𝑟∨𝑞))∧𝑠)
(F)
2)
(T)
(T)
TRUTH TABLES
Example
8:
a) Construct a truth table to determine whether the following statement is a tautology,
a contingency or a contradiction.
i.
ii.
b) Determine whether or not the following fair of statement is equivalent using the
truth table:
and
LAW OF LOGIC (LOGICAL
EQUIVALENCE)
Inverse laws
LAW OF LOGIC
Example
9:
Simplify the following:
De
De Morgan’s
Morgan’s Law
Law
Double
Double Negation
Negation Law
Law
Distributive
Distributive
Inverse Law
Inverse Law
Identity
Identity
LAW OF LOGIC
Example
10:
a) Simplify the following.
i.
ii.
Using the rules of logic, show that the statement is logically equivalent to .
LAW OF LOGIC
Example
11:
Prove the following using rules of logic.
a)
b)
e)
SWITCHING NETWORK
The logical expression can be used to represent a switching network.
serial circuit – the connector is used
parallel circuit – the connector is used
If two switches p and q connect terminal A to terminal B serially, then it is
represented by .
b) ~
a)
T T T F T
Def.
Def. of
of implication
implication T F F T T
De
De Morgan
Morgan F T T F F
Double
Double Negation
Negation Law
Law F F T F F
Absorption equivalence
Absorption
SWITCHING NETWORK
Example 13:
Give the logical expression that represent the following circuit.
p q r
a) b) p (q ) s
c)
(p q)
SWITCHING NETWORK
Example 14:
Give the logical expression that represent the following circuit. Hence, use laws of
logic to simplify the circuit and draw the simplified circuit.
Example 15:
Draw a circuit that represent the following logical expression. Hence, use laws of logic
to simplify the circuit and draw the simplified circuit.
ARGUMENTS
An argument is a set of two or more sentences or beliefs.
One of the sentences or beliefs is the conclusion, the rest are premises.
The structure of an argument:
ARGUMENTS
A statement A is said to imply B tautologically if and only if A → B is a tautology.
Example 16:
Determine whether are logically implies to .
T T F F T F T
T F F T F F T
F
F T
T T
T F
F T
T F
F T
T
F
F F
F T
T T
T T
T T
T T
T
Tautology
Therefore, are logically implies to .
ARGUMENTS
Example 17:
Given the following arguments:
If you study hard, you will get an A. You won’t get an A. Therefore, You won’t study hard.
Determine whether the argument is valid or not by using the truth table.
1. I’ll buy a car or I’ll take a vacation. I won’t buy a car. Therefore, I’ll take a valid
vacation.
2. If Eddie goes to town, then Mabel stays at home. If Mabel does not invalid
stay at home, then Rita will cook. Rita will not cook. Therefore, Eddie
does not go to town.
RULES OF INFERENCES
RULES OF INFERENCES
Example
19:
Given the following arguments:
I can either drive or take the bus. If I drive then I will be on time. I am late.
c)
P1 Premise 1
P2 Premise 2
P3 Premise 3
(1) P3 & P2, Modus Tollen
(2) P1 & (1), Resolution