Proposition
A proposition is a declarative statement which is either true or false. For example, considering the statement: New Delhi is the capital of India, is a proposition. On the other hand, considering: x+2=10, is not a proposition because the value of x is unknown, therefore, cannot be stated whether, it is true or false.
Propositional Operators
Negation
Representation: ∼,¬
If p is the proposition, then the negation of p is denoted by ∼p, and it simply reverses the truth value of p.
E.g.:
p:It is cold today
∼p:It is not cold today
Truth table:
Conjugation
Representation: ∧
For any two proposition, p and q, the conjunction is denoted by p∧q, and it gives the true value when both p and q are true.
E.g.:
p:It is cold today
q:It is Friday
p∧q:It is cold today and it is Friday
Truth table:
p | q | p∧q |
---|
T | T | T |
T | F | F |
F | T | F |
F | F | F |
Disjunction
Representation: ∨
For any two proposition p, and q, the disjunction is denoted by p∨q, and gives the true value if either of them or both are true.
E.g.:
p:It is cold today
q:It is Friday
p∨q:Either it is cold today or it is Friday
Truth table:
p | q | p∨q |
---|
T | T | T |
T | F | T |
F | T | T |
F | F | F |
Implication
Representation: →
For any two proposition p and q, the statement if p then q is called an implication and it is denoted by p→q. It gives false when p is true and q is false, otherwise it is true.
E.g.:
p:It is cold today
q:It is Friday
p→q:If it is cold today then it is Friday
Truth table
p | q | p→q |
---|
T | T | T |
T | F | F |
F | T | T |
F | F | T |
Bi
Representation: ↔
For any two proposition p and q, the statement p, iff., q is called biconditional, and is denoted by p↔q. It gives true value when both p and q have the same value.
E.g.:
q:It is cold today
q:It is Friday
p↔q:It is cold today iff. it is Friday
Truth table
p | q | p↔q |
---|
T | T | T |
T | F | F |
F | T | F |
F | F | T |
Example 1: Express the following statement in propositional logic:
It is Saturday and I am not going to college
Solution:
p:It is Saturday
q:I am going to college
Well formed formula (WFF): p∧∼q
Example 2: Express the following statement in propositional logic:
Either it is hot today or I am at home
Solution:
p:It is hot today
q:I am at home
Well formed formula (WFF): p∨q
Example 3: Express the following statement in propositional logic:
3+4=6 and C.S. class will not be held
Solution:
p:3+4=6
q:C.S. class will be held
Well formed formula (WFF): ∼p∧∼q
Example 4: Draw the truth table for (∼p∧q)∧∼r.
p | q | r | ∼p∧q | (∼p∧q)∧∼r) |
---|
T | T | T | F | F |
T | T | F | F | F |
T | F | T | F | F |
T | F | F | F | F |
F | T | T | T | F |
F | T | F | T | T |
F | F | T | F | F |
F | F | F | F | F |
Example 5: Check the equivalence for the following:
p→(q→r)≅(p∧q)→r
Solution:
p | q | r | q→r | p→(q→r) | p∧q | (p∧q)→r |
---|
T | T | T | T | T | T | T |
T | T | F | F | F | T | F |
T | F | T | T | T | F | T |
T | F | F | T | T | F | T |
F | T | T | T | T | F | T |
F | T | F | F | T | F | T |
F | F | T | T | T | F | T |
F | F | F | T | T | F | T |
From the truth table, it can be concluded that:
p→(q→r)≅(p∧q)→r
Implication and bicondition can be further be simplifed as:
p→q=∼p∨q
p↔q=(p→q)∧(q→p)=(∼p∨q)∧(∼q∨p)
Laws for propositional logic
Following are the laws for propositional logic:
- Idempotent law:
- p∧p=p
- p∨p=p
- Commutative law:
- p∨q=q∨p
- p∧q=q∧p
- Associative law:
- (p∨q)∨r=p∨(q∨r)
- (p∧q)∧r=p∧(q∧r)
- Distributive law:
- p∧(q∨r)=(p∧q)∨(p∧r)
- p∨(q∧r)=(p∨q)∧(p∨r)
- Identity law:
- p∨T=T
- p∧T=p
- p∨F=p
- p∧F=F
- De-morgan's law:
- ∼(p∨q)=∼p∧∼q
- ∼(p∧q)=∼p∨∼q
- Involution law:
- ∼(∼p)=p
- Compliment law:
- p∨∼p=T
- p∧∼p=F
- Contrapositive law:
- p→q=∼q→∼p
Conditions for compound statements
Tautology
We define a term, tautology for a compound statement such that its truth value is always true for all possible combinations. For example:
(p∧q)→(p∨q)
Truth table:
p | q | p∧q | p∨q | (p∧q)→(p∨q) |
---|
T | T | T | T | T |
T | F | F | T | T |
F | T | F | T | T |
F | F | F | F | T |
Since, all values for the compound statemnet is true, it is tautogenic.
Contradiction
We define a term, contradiction for a compound statement such that its truth value is always false for all possible combinations. For example:
∼(∼(p∧q)↔(∼p∨∼q))=∼((∼(p∧q)→(∼p∨∼q))∧((∼p∨∼q)→(∼(p∧q)))
We know, as per De-morgan's theorem: ∼p∨∼q=∼(p∧q)
∴∼((∼(p∧q)→(∼p∨∼q))∧((∼p∨∼q)→∼(p∧q)))=∼((∼(p∧q)→∼(p∧q))∧(∼(p∧q)→∼(p∧q)))
We know: p→p=T. Similarly, ∼(p∧q)→∼(p∧q)=T
∴∼((∼(p∧q)→∼(p∧q))∧(∼(p∧q)→∼(p∧q)))=∼(T∧T)=∼T=F
Since the final result is F, therefore the compound statement is contradictive.
Contigency
A compound statement that is neither a tortology nor a contradiction is called contigency. For example: p∨q
Example 6: ∼p→∼q≅∼q∨p. Prove the equivalence.
LHP=∼p→∼q=∼(∼p)∨∼q
As: p→q=∼p∨q, and since ∼(∼p)=p
∴∼(∼p)∨∼q=p∨∼q=∼q∨p=RHP
Therefore, ∼p→∼q≅∼q∨p.
Example 7: Show that (p∧q)→(p∨q) is tautogenic.
(p∧q)→(p∨q)=∼(p∧q)∨p∨q=∼p∨∼q∨p∨q=(∼p∨p)∨(∼q∨q)=T∨T=T=RHP
Therefore, the given proposition is tautogenic
Example 8: Show that p→(p∧(q→p)) is tautogenic.
p→(p∧(q→p))=p→(p∧(∼q∨p))=∼p∨(p∧(∼q∨p))=(∼p∨p)∧(∼p∨∼q∨p)=T∧(T∨∼q)=T∧T=T
Therefore, the given proposition is tautogenic.
Problem 1: Prove the equivalence of p→(q→r)≅(p∧q)→r.