Professional Documents
Culture Documents
Discrete Structures Lesson 2
Discrete Structures Lesson 2
Discrete Structures Lesson 2
by Ja y Mark T . Umba c
Prepared
WHAT IS LOGIC ?
• It is the study of the principles and methods that distinguishes between a valid
and an invalid argument.
• It defines a formal language for representing knowledge and for making logical
inferences
• Syntax of statements
• The meaning of statements
• The rules of logical inference (manipulation)
EXAMPLE OF LOGIC QUESTIONS
FIVE
without
FOUR is
IRON
THE BASIS FOR MATHEMATICAL LOGIC IS…
PROPOSITIONAL LOGIC
PROPOSITIONAL LOGIC
• The small letters are commonly used to denote the propositional variables, that
is, variables that represent propositions, such as, p, q, r, s, ….
True False
False True
CONJUNCTION (AND)
Definition
Let p and q be propositions. The conjunction of p and q, denoted by p ˄q, is the
proposition “p and q”.
The conjunction p˄q is true when p and q are both true and is false otherwise.
EXAMPLE
• Find the conjunction of the propositions p and q, where
P : Today is Friday.
Q : It is raining today.
The conjunction is.
P˄Q : Today is Friday and it is raining today.
TRUTH TABLE FOR CONJUNCTION
P Q P∧Q
Definition
Let p and q be propositions. The disjunction of p and q, denoted by p ˅q, is the
proposition “p or q”.
The disjunction p˅q is false when both p and q are false and is true otherwise.
EXAMPLES
• Find the disjunction of the propositions p and q, where
P : Today is Friday.
Q : It is raining today.
The disjunction is,
P˅Q : Today is Friday or it is raining today.
TRUTH TABLE FOR DISJUNCTION
P Q P∨Q
Definition
An implication P→Q is the proposition “if P, then Q”. It is false if P is true and Q is
false. The rest cases are true.
EXAMPLES
• Find the implication of the propositions p and q, where
P : Today is Friday.
Q : It is raining today.
The implication is,
P → Q : If today is Friday then it is raining today.
TRUTH TABLE FOR IMPLICATION
P Q P→Q
Definition
P⇔Q is bi-conditional logical connective which is true when p and q are same, i.e.
both are false or both are true.
EXAMPLES
• Find the biconditional implication of the propositions p and q, where
P : Today is Friday.
Q : It is raining today.
The implication is,
P ⇔ Q : Today is Friday if and only if it is raining today.
TRUTH TABLE FOR BICONDITIONAL
A B A⇔B
¬ highest
∧ second highest
∨ third highest
→ fourth highest
↔ fifth highest