6.2 Implications: Converse, Inverse, Contrapositive & Normal Forms (CNF/DNF)
💡 Core Intuition: The 3-Second Mental Model
🍳 The Everyday Analogy: Driver's Licenses & Standardized Data Formats
Think of logical dependencies and canonical file serialization:
- The 4 Faces of an Implication:
- Original (Direct): "If you are in Paris (), then you are in France ()." (True).
- Converse: "If you are in France (), then you are in Paris ()." (False! You could be in Nice or Lyon).
- Inverse: "If you are not in Paris (), then you are not in France ()." (False! You could be in Marseille).
- Contrapositive: "If you are not in France (), then you are not in Paris ()." (100% True! If you aren't in France, you cannot possibly be in Paris). Notice the golden law: An implication and its contrapositive always tell the exact same mathematical truth!
- Normal Forms (CNF & DNF): Just as a database normalizes raw messy data into strict relational schemas, or a compiler converts source code into Intermediate Representation (IR), CNF (AND-of-ORs) and DNF (OR-of-ANDs) normalize arbitrary logic trees into standardized flat structures that SAT solvers can process in microsecond machine loops.
💻 Bridging to Computer Science: Proof by Contraposition & Automated Theorem Proving
In computer engineering:
- Proof by Contraposition: In algorithm analysis and complexity theory, proving directly is often difficult. Proving the contrapositive is mathematically identical and often straightforward.
- Automated Theorem Proving (SAT & SMT Solvers): Algorithms like DPLL (Davis-Putnam-Logemann-Loveland) and CDCL (Conflict-Driven Clause Learning) require propositional input strictly in Conjunctive Normal Form (CNF).
- Relational Query Optimizers: SQL engines convert complex nested
WHEREfilters into CNF clauses to prune database index scans.
🔄 The Four Conditional Statements & Equivalence Square
Given a direct conditional implication , we can generate three related propositions:
Let be the antecedent (hypothesis) and be the consequent (conclusion):
- Direct Implication:
- Converse:
- Inverse:
- Contrapositive:
The 4 Conditional Variations: The Two Independent Invariant Pairs
Proving which reflections share identical truth tables under all valuations
Direct & Contrapositive: p → q ≡ ¬q → ¬p
- •Direct Implication: p → q (If p, then q).
- •Contrapositive: ¬q → ¬p (If not q, then not p).
- •Fundamental Invariant: They have IDENTICAL truth tables under all valuations!
Converse & Inverse: q → p ≡ ¬p → ¬q
- •Converse: q → p (If q, then p).
- •Inverse: ¬p → ¬q (If not p, then not q).
- •Transposed Truth: The Converse is identical to the Inverse of the original implication!
Master Truth Table of Conditional Variations
| Direct () | Converse () | Inverse () | Contrapositive () | ||
|---|---|---|---|---|---|
Notice:
- Columns 3 and 6 are identical: .
- Columns 4 and 5 are identical: .
- (An implication is never equivalent to its converse in general!).
🗣️ Master English Translation Dictionary for Implications
Mathematical implications appear in numerous natural language phrasings. In competitive exams (GATE), converting English specifications into symbolic logic is heavily tested.
Deciphering English Phrasing of p → q
Standardized translations mapping natural language constructs to antecedent p and consequent q
Direct Phrasing (p → q)
Standard Order- 'If p, then q'
- 'p implies q'
- 'p is sufficient for q' (p guarantees q)
- 'p leads to q'
Inverted Phrasing (p → q)
Target Listed First- 'q if p'
- 'q whenever p'
- 'q is necessary for p' (Without q, p cannot happen: ¬q → ¬p)
- 'q follows from p'
The 'Only If' Rule (p → q)
Frequent Trap- 'p only if q' translates strictly to p → q!
- Contrast: 'p if q' translates to q → p.
- Rule of Thumb: The clause immediately following 'if' is ALWAYS the antecedent.
The 'Unless' Rule (¬q → p)
Conditional Disjunction- 'p unless q' means 'If not q, then p' (¬q → p).
- By Implication Law: ¬(¬q) ∨ p ≡ q ∨ p.
- Example: 'You will fail unless you study' ≡ ¬(Study) → Fail.
Master 10-Pattern English Translation Table
| English Pattern | Antecedent (Hypothesis) | Consequent (Conclusion) | Symbolic Translation | Common Student Misconception |
|---|---|---|---|---|
| "If , then " | Standard forward conditional | |||
| " implies " | Standard forward conditional | |||
| " if " | Mistakenly writing because comes first | |||
| " only if " | Confusing with "if"; writing (Fatal error!) | |||
| " is sufficient for " | Having is enough to guarantee | |||
| " is necessary for " | If does not hold, cannot hold () | |||
| " whenever " | Every time occurs, must accompany it | |||
| " follows from " | is the origin / premise of | |||
| " unless " | "Unless" means "if not": | |||
| " is necessary and sufficient for " | Both | Both | Biconditional: |
🪞 The Principle of Duality
Let be a compound proposition containing only the connectives and negation . The dual of (denoted ) is obtained by:
- Replacing every occurrence of with .
- Replacing every occurrence of with .
- Replacing every occurrence of with , and with .
- Leaving all propositional variables and negations () completely unchanged!
- Example:
- Original:
- Dual:
If two compound propositions are logically equivalent:
Then their duals are also guaranteed to be logically equivalent:
Caution: The dual is NOT the negation ! For instance:
- If , the dual is .
- The negation is .
📦 Canonical Normal Forms: CNF & DNF
In automated theorem proving, circuit design, and SAT solvers, arbitrary nested logical formulas must be transformed into standard canonical structures.
- Literal: A propositional variable (positive literal) or its negation (negative literal).
- Conjunctive Normal Form (CNF): A formula is in CNF if it is a Conjunction of one or more Disjunctive Clauses: (Product of Sums: Clauses connected by AND; literals inside connected by OR).
- Disjunctive Normal Form (DNF): A formula is in DNF if it is a Disjunction of one or more Conjunctive Clauses: (Sum of Products: Clauses connected by OR; literals inside connected by AND).
- Canonical Minterm (): A conjunction of literals containing every variable exactly once, evaluating to for exactly one row in the truth table.
- Canonical Maxterm (): A disjunction of literals containing every variable exactly once, evaluating to for exactly one row in the truth table.
The 4-Step Normal Form Transformation Pipeline
Universal algebraic rewriting algorithm to convert any formula to CNF or DNF
Eliminate Conditionals
Replace p ↔ q with (p → q) ∧ (q → p). Replace a → b with ¬a ∨ b.
Push Negations Inward (NNF)
Apply De Morgan's laws ¬(a ∧ b) ≡ ¬a ∨ ¬b and ¬(a ∨ b) ≡ ¬a ∧ ¬b. Eliminate double negations ¬¬a ≡ a.
Distribute Operators
For CNF: Distribute ∨ over ∧ (a ∨ (b ∧ c) ≡ (a ∨ b) ∧ (a ∨ c)). For DNF: Distribute ∧ over ∨.
Simplify & Prune
Apply idempotent laws (p ∨ p ≡ p) and remove trivial clauses (p ∨ ¬p ≡ T in CNF).
📝 Step-by-Step Worked Examples
Example 1: Finding the Converse, Inverse & Contrapositive
Problem Statement: Consider the statement: "If a function is differentiable, then it is continuous." Let : "A function is differentiable", and : "A function is continuous."
- Express the original statement symbolically.
- State the Converse, Inverse, and Contrapositive in English and symbolic notation.
- Determine the truth value of each statement.
Step-by-Step Solution:
-
Original Statement:
- Symbolic:
- Truth Value: True (Fundamental theorem of calculus).
-
The Three Variations:
- Converse ():
- English: "If a function is continuous, then it is differentiable."
- Truth Value: False! (Counterexample: at is continuous, but not differentiable).
- Inverse ():
- English: "If a function is not differentiable, then it is not continuous."
- Truth Value: False! (Counterexample: is not differentiable at 0, yet it is continuous).
- Contrapositive ():
- English: "If a function is not continuous, then it is not differentiable."
- Truth Value: True! (Logically equivalent to the original statement: ).
- Converse ():
Key Takeaway: Never confuse the converse with the contrapositive: the contrapositive is guaranteed to share the truth value of the original theorem, while the converse is an independent statement.
Example 2: Converting a Formula to Conjunctive Normal Form (CNF)
Problem Statement: Convert the formula into Conjunctive Normal Form (CNF).
Step-by-Step Solution:
-
Step 1: Eliminate all implications ()
- Replace with :
-
Step 2: Push negations inward using De Morgan's Law
- Apply De Morgan to :
- The expression becomes:
-
Step 3: Distribute over to achieve CNF
- Let . We distribute over :
- Substitute back into both clauses:
-
Step 4: Combine into final CNF
- Notice that absorbs by the Absorption Law:
- Minimal CNF: .
Example 3: Extracting Canonical DNF & CNF from a Truth Table
Problem Statement: Given the function with truth table minterm list (which corresponds to ):
- Write the Canonical DNF (Sum of Minterms).
- Write the Canonical CNF (Product of Maxterms).
Step-by-Step Solution:
- Canonical DNF ():
- The function is True for rows :
- Row 1 ():
- Row 3 ():
- Row 5 ():
- Row 7 ():
- Canonical DNF:
- The function is True for rows :
- Canonical CNF ():
- The function is False for rows :
- Row 0 ():
- Row 2 ():
- Row 4 ():
- Row 6 ():
- Canonical CNF:
- The function is False for rows :
🎯 Exam & Interview Pitfall Check
Question 1: How does "p only if q" differ from "p if q"? Key Focus Points:
- "p only if q" means that is a necessary condition for . If does not happen, cannot happen ().
- "p if q" means that is the hypothesis, which translates to .
- They are converses of each other! When both hold simultaneously, we write " if and only if " ().
Question 2: Can a formula have multiple valid CNF representations? Key Focus Points: Yes! Conjunctive Normal Form is not unique unless canonical maxterms are enforced. For example, and are both valid CNFs representing the same boolean function.
Trap 1: Translating "p unless q" as p ∧ ¬q Why it fails: "Unless" introduces an exception, which acts as a conditional disjunction: "I will go for a walk unless it rains" means "If it does NOT rain, I will go for a walk" (). Translating it as a conjunction () is completely incorrect!
Trap 2: Exponential blowup when converting DNF to CNF Why it fails: Direct algebraic distribution of DNF clauses of size into CNF generates clauses (exponential size explosion). Real-world SAT solvers use the Tseitin Transformation, which introduces auxiliary variables to convert any formula to an equisatisfiable 3-CNF in linear time !