Discrete Mathematics Notes
Discrete Mathematics Notes
Propositional Logic
Proposition (or Statement)
A Proposition or a statement is a declarative sentence that is either true or false, but not both.
Imperative, exclamatory, interrogative or open sentences are not statements in logic.
Example:
Consider the sentences below:
i)Karnataka is in India.
ii)2+3=5
iii)The Sun rises in the east.
iv)Do your home work.
v)The square of 5 is 15.
vi) x+3=2
vii)May God Bless you!
Certainly sentences i, ii, iii, and v are propositions, because they are either true or false.
But iv, vi and vii are not propositions, because we cannot assign truth value to these. In vi we have x
which is a variable, hence the truth value depends on the value of x and every time it may change.
Compound Statements:
Many propositions are composites that are, composed of sub propositions and various connectives.
Such composite propositions are called compound propositions.
A proposition is said to be primitive if it cannot be broken down into simpler propositions, that is, if it
is not composite.
Examples of compound statements:
i) “The Sun is shining today and it is colder today”
ii) “Sita is intelligent and she studies every evening”
Logical connectives:
The phrase or word which combine simple propositions are called logical connectives. There
are five types of connectives. Namely and, or, not, if then, if and only if.
Sl No. Connective Symbol Compound Statement
1 AND ^ Conjunction
2 OR V Disjunction
3 NOT ¬ Negation
4 IF THEN Conditional or implication
5 IF AND ONLY IF (IFF) Biconditional
Not is a unitary operator where as the other four are binary operators.
Conjunction(AND):
If two statements are combined by the word “and” it is called conjunction.
p q P^ q
T T T
T F F
F T F
F F F
Disjunction(OR):
Any two statements can be connected by the word ‘or’ to from disjunction.
Symbolically p V q. It is False only when both p and q are False; otherwise True.
p q pVq
T T T
T F T
F T T
F F F
Negation(NOT):
Given any proposition p, another one called negation of p can be formed by modifying it by ‘not’.
Also we can use the phrase ‘It is not the case that or’ ‘It is false that’ before p.
p ¬P
T F
F T
p q Pq
T T T
T F F
F T T
F F T
p q pq
T T T
T F F
F T F
F F T
Example :
p: India became Republic in January 1950
q:26th January is India’s Birthday
Pq: India became Republic in January 1950 if and only if 26th January is India’s Birthday.
qp: 26th January is India’s Birthday if and only if it became Republic in January 1950.
Applications of Propositional Logic
Propositional Equivalences
Logical Equivalence:
Compound Propositions that have the same truth values in all possible cases are called logically
equivalent.
Definition: The compound propositions P and Q are said to be logically equivalent if PQ is a
tautology. The notion P=Q denotes that P and Q are logically equivalent.
Statement
Note: While taking negation of compound statement ‘every’ or ‘all’ is interchanged by ‘some’ and
‘there exists’ is interchanged by ‘atlease one’ and viceversa.
Example: If
Tautology:
A tautology or universally true formula is a well formed formula, whose truth value is T for all
possible assignments of truth values to the propositional variables.
Problem: Show that~(PvQ) and ~ P ^ ~Q are logically equivalent
Consider a sentence : x is greater than 2. Here is greater than 2 is the predicate and x is the subject
or variable.
If values are assigned to all the variables, the resulting sentence is a proposition.
4<9 is a proposition.
Example: The negation of all men are mortal is : There is a man who is not mortal.
Nested Quantifiers
Rules of Inference
Eg:
“If you have a current password, then you can log onto the network”.
“You have a current password” therefore: “You can log onto the network” has the form
Example:
The conclusion is S. The following steps checks the validity of argument.
A proof is a clear explanation, accepted by the mathematical community, of why something is true.
Methods of Proof:
Direct method
Indirect method
Contradiction method
Vacuous Method
Method of induction, etc
Mathematical Induction
Suppose the statement to be proved can be put in the form p(n), for all n>=n0, where n0 is some
fixed integer. We wish to show that p(n) is true for all integers n>=n0
Student activity : Prove that
1+2+3+…+n=n(n+1)/2