Propositional Logic
Proposition
Section titled “Proposition”- A declarative statement
- Has a definite truth value: True (T) or False (F)
- Cannot be both true and false simultaneously
Examples:
- “2 + 3 = 5” → Proposition (True)
- “Paris is in France” → Proposition (True)
- “5 > 10” → Proposition (False)
- “Close the door” → Not a proposition (command)
- “What time is it?” → Not a proposition (question)
- “x + 2 = 5” → Not a proposition (depends on x)
Non-propositions:
- Questions
- Commands
- Exclamations
- Statements with variables (until assigned values)
Atomic and Compound Propositions
Section titled “Atomic and Compound Propositions”Atomic Proposition:
- Single, indivisible statement
- Cannot be broken down further
- Denoted by: p, q, r, s, etc.
- Examples:
- p: “It is raining”
- q: “The sun is shining”
Compound Proposition:
- Formed by combining atomic propositions using logical connectives
- Examples:
- : “It is raining AND the sun is shining”
- : “It is raining OR the sun is shining”
- : “It is NOT raining”
Logical Connectives
Section titled “Logical Connectives”1. NOT (Negation)
| p | |
|---|---|
| T | F |
| F | T |
- Reverses truth value
- Also written as: ~p, ¬p, !p
2. AND (Conjunction)
| p | q | |
|---|---|---|
| T | T | T |
| T | F | F |
| F | T | F |
| F | F | F |
- True only when BOTH are true
- Also written as: p ∧ q, p · q, p & q
3. OR (Disjunction)
| p | q | |
|---|---|---|
| T | T | T |
| T | F | T |
| F | T | T |
| F | F | F |
- True when AT LEAST ONE is true
- Inclusive OR (both can be true)
- Also written as: p ∨ q, p + q, p | q
4. XOR (Exclusive OR)
| p | q | |
|---|---|---|
| T | T | F |
| T | F | T |
| F | T | T |
| F | F | F |
- True when EXACTLY ONE is true
5. Implication (Conditional)
| p | q | |
|---|---|---|
| T | T | T |
| T | F | F |
| F | T | T |
| F | F | T |
- False only when p is true and q is false
- Read as: “if p then q”, “p implies q”, “p only if q”
- p = hypothesis/antecedent, q = conclusion/consequent
- Key equivalence:
- Vacuous truth: When p is false, implication is automatically true
6. Biconditional (Double Implication) -
| p | q | |
|---|---|---|
| T | T | T |
| T | F | F |
| F | T | F |
| F | F | T |
- True when both have SAME truth value
- Read as: “p if and only if q”, “p iff q”
Operator Precedence (Highest to Lowest) ⭐
Section titled “Operator Precedence (Highest to Lowest) ⭐”- (NOT)
- (AND)
- (OR)
- (Implication)
- (Biconditional)
Example: means
Truth Table Construction
Section titled “Truth Table Construction”Steps:
- Identify number of variables (n)
- Number of rows =
- List all possible combinations
- Evaluate expression step by step
Example:
| p | q | r | |||
|---|---|---|---|---|---|
| T | T | T | T | T | T |
| T | T | F | T | F | F |
| T | F | T | F | T | F |
| T | F | F | F | T | F |
| F | T | T | T | T | T |
| F | T | F | T | F | F |
| F | F | T | T | T | T |
| F | F | F | T | T | T |
Tautology, Contradiction, Contingency
Section titled “Tautology, Contradiction, Contingency”1. Tautology:
- Always true (all rows = T)
- Examples:
- (Law of Excluded Middle)
2. Contradiction:
- Always false (all rows = F)
- Examples:
3. Contingency:
- Sometimes true, sometimes false
- Neither tautology nor contradiction
- Examples:
GATE Important:
- Tautology = Valid formula
- Contradiction = Unsatisfiable formula
Logical Equivalence
Section titled “Logical Equivalence”Definition: Two propositions are logically equivalent if they have identical truth tables
Notation: or
Test: Show is a tautology
Important Equivalences:
1. De Morgan’s Laws (Most Important for GATE):
Extended form:
2. Double Negation:
3. Implication Equivalences:
4. Biconditional Equivalences:
5. Idempotent Laws:
6. Commutative Laws:
7. Associative Laws:
8. Distributive Laws:
9. Absorption Laws:
10. Identity Laws:
11. Domination Laws:
12. Negation Laws:
13. Complement Laws:
Implication Variations
Section titled “Implication Variations”Given: (“if p then q”)
1. Converse: (“if q then p”)
- NOT logically equivalent to original
2. Inverse: (“if not p then not q”)
- NOT logically equivalent to original
- Logically equivalent to converse
3. Contrapositive: (“if not q then not p”)
- Logically equivalent to original (Very important for GATE)
Key Facts:
- (always)
- Converse Inverse (but both original)
- Original Contrapositive
Truth Table:
| p | q | Converse | Inverse | Contrapositive | |
|---|---|---|---|---|---|
| T | T | T | T | T | T |
| T | F | F | T | T | F |
| F | T | T | F | F | T |
| F | F | T | T | T | T |
Validity and Satisfiability
Section titled “Validity and Satisfiability”Satisfiable:
- At least one truth assignment makes it true
- Has at least one row with T
- Example: (satisfiable when both true)
Unsatisfiable:
- No truth assignment makes it true
- All rows are F
- Contradiction
- Example:
Valid:
- Every truth assignment makes it true
- All rows are T
- Tautology
- Example:
Relationships:
- Valid ⇒ Satisfiable (but not vice versa)
- Unsatisfiable ⇒ Not Valid
- is valid ⟺ is unsatisfiable
GATE Note:
- Valid = Tautology
- Unsatisfiable = Contradiction
- Satisfiable ≠ Valid (can be contingency)
Arguments and Validity
Section titled “Arguments and Validity”Argument Structure:
- Premises:
- Conclusion: q
- Form:
Valid Argument:
- Conclusion logically follows from premises
- If all premises are true, conclusion MUST be true
- is a tautology
Testing Validity: Method 1: Truth table - check if conclusion is true whenever all premises are true Method 2: Prove is tautology Method 3: Assume premises true and conclusion false - if contradiction, argument is valid
Example (Valid):
- Premise 1:
- Premise 2:
- Conclusion:
- Test: is tautology ✓
Example (Invalid):
- Premise 1:
- Premise 2:
- Conclusion:
- Test: is NOT tautology ✗ (Fallacy: Affirming the consequent)
Rules of Inference (Very Important for GATE)
Section titled “Rules of Inference (Very Important for GATE)”1. Modus Ponens (MP):
2. Modus Tollens (MT):
3. Hypothetical Syllogism (HS):
4. Disjunctive Syllogism (DS):
5. Addition (Add):
6. Simplification (Simp):
7. Conjunction (Conj):
8. Resolution:
9. Constructive Dilemma:
10. Destructive Dilemma:
Common Fallacies (Invalid Arguments)
Section titled “Common Fallacies (Invalid Arguments)”1. Affirming the Consequent:
2. Denying the Antecedent:
Conjecture (Logic Context)
Section titled “Conjecture (Logic Context)”- A proposition assumed or proposed to be true
- Requires proof or counterexample
- Common in mathematical reasoning
- Until proven, remains a conjecture
- Once proven, becomes a theorem
Example:
- Goldbach’s Conjecture: Every even integer > 2 is sum of two primes (unproven)
Normal Forms
Section titled “Normal Forms”Literal: Variable or its negation (p, ¬p)
Conjunctive Normal Form (CNF):
- AND of ORs
- Product of Sums (POS)
Disjunctive Normal Form (DNF):
- OR of ANDs
- Sum of Products (SOP)
Every formula can be converted to CNF or DNF
GATE Focus Points
Section titled “GATE Focus Points”- Implication truth table - Know when is false
- De Morgan’s laws - Distribute negation
- Valid vs Satisfiable vs Tautology - Understand differences
- Argument validity - Test using truth tables or rules
- Conversion:
- Contrapositive equivalence:
- Difference between implication and converse - Not equivalent
- Rules of inference - Modus Ponens, Modus Tollens, etc.
- Logical equivalences - All laws listed above
- CNF/DNF conversion
GATE Common Traps
Section titled “GATE Common Traps”-
Converse ≠ Implication
-
Inverse ≠ Implication
-
Only Contrapositive = Implication
-
Implication is false only in one case
- True antecedent, False consequent
-
Valid ≠ Satisfiable
- Valid means always true (tautology)
- Satisfiable means at least once true
-
De Morgan’s - watch the flip
- AND becomes OR, OR becomes AND
- Don’t forget to negate each part
-
Affirming consequent is invalid
-
Denying antecedent is invalid
Quick Formula Reference
Section titled “Quick Formula Reference”
Final Insights
Section titled “Final Insights”- Master implication - Most GATE questions involve
- Know De Morgan’s laws cold - Used everywhere
- Contrapositive is your friend - Equivalent to original
- Truth tables never lie - When in doubt, construct one
- Valid arguments preserve truth - Tautology test
- Logical equivalence is transitive - Chain them
- Precedence matters - NOT > AND > OR > IMPLIES > IFF
- Practice conversion - Between different forms
- Rules of inference - Memorize common patterns
- Fallacies are tricky - Know what’s invalid