6.1 Propositions, Connectives, Truth Tables & Logical Equivalences
💡 Core Intuition: The 3-Second Mental Model
🍳 The Everyday Analogy: Light Switches & Legal Contracts
Think of propositional logic like electrical circuits and binding legal contracts:
- The Proposition (Unambiguous Fact): "The server is running." It is either 100% True () or 100% False (). There is zero middle ground, no "maybe," and no rhetorical questions.
- Compound Connectives:
- Conjunction (AND ): Two switches in series. Current flows only if switch 1 AND switch 2 are closed.
- Disjunction (OR ): Two switches in parallel. Current flows if either switch is closed.
- Implication (IF-THEN ): A conditional contract: "If you pay me $100, I will deliver the laptop." The contract is breached (False) in only one single scenario: you paid the $100, but I failed to deliver the laptop! If you never paid me, the contract was never violated, regardless of whether I gave you a laptop or not (Vacuous Truth).
- Tautology vs Contradiction:
- Tautology: A statement wired so it is impossible to turn off (: "It is raining or it is not raining").
- Contradiction: A short circuit wired so it can never turn on (: "It is raining and it is not raining").
💻 Bridging to Computer Science: Boolean Circuits, Branching & SAT Solvers
In computer systems:
- CPU Control Units & ALU: Processors evaluate propositional logic at gigahertz clock rates using silicon logic gates (NAND, NOR, XOR).
- Control Flow & Branch Prediction: If-statements
if (A && !B || C)are compound propositional formulas evaluated via short-circuit evaluation. - SAT Solvers (Z3, MiniSat): Automated theorem provers and hardware verification engines solve the Boolean Satisfiability Problem (SAT) to verify microchip designs and formal software specifications.
📑Table of Contents
- ⚡ Propositions & The Classical Laws of Thought
- 🔌 Compound Logical Connectives & Master Truth Tables
- 🔢 Truth Tables & Counting Boolean Functions
- ⚖️ Classifying Propositional Formulas
- 🧰 Functionally Complete Sets of Connectives
- 🏛️ System of Fundamental Logical Equivalences
- 📝 Step-by-Step Worked Examples
- 🎯 Exam & Interview Pitfall Check
⚡ Propositions & The Classical Laws of Thought
A proposition (or statement) is a declarative sentence that is either True () or False (), but not both simultaneously.
- Valid Propositions:
- "New Delhi is the capital of India" ().
- "" ().
- "Paris is the capital of USA" ().
- "In any simple undirected graph, " ().
- Sentences that are NOT Propositions:
- "" (Open mathematical predicate; truth value depends on unquantified variables ).
- "How are you?" (Interrogative question; carries no truth value).
- "Read this carefully!" (Imperative command).
- "It is cold today" (Subjective / vague statement without an objective threshold).
- "This statement is false" (The Liar Paradox; self-referential contradiction).
In standard bivalent propositional logic, all propositions obey two fundamental axioms:
- Law of Non-Contradiction (LNC): A proposition cannot be both True and False simultaneously in the same sense:
- Law of Excluded Middle (LEM): Every proposition must be either True or its negation must be True; there is no third intermediate truth value:
🔌 Compound Logical Connectives & Master Truth Tables
The 6 Core Propositional Connectives & Operational Rules
Formal mathematical symbols, operational mechanics, and English semantics
Negation (¬p / ~p)
NOT Operator- Inverts truth value: ¬T = F, ¬F = T.
- Unary operator with the highest binding precedence.
- English: 'It is not the case that p', 'Not p'.
Conjunction (p ∧ q)
AND Operator- True if and only if BOTH p and q are True.
- False if at least one operand is False.
- English: 'p and q', 'p but q', 'p as well as q'.
Disjunction (p ∨ q)
Inclusive OR- True if AT LEAST ONE operand (p, q, or both) is True.
- False ONLY when BOTH operands are False.
- English: 'p or q (or both)'.
Exclusive OR (p ⊕ q)
XOR Operator- True when p and q have DIFFERENT truth values.
- False when both are True or both are False.
- Formal: (p ∨ q) ∧ ¬(p ∧ q).
Conditional (p → q)
Implication- p is Hypothesis (Antecedent); q is Conclusion (Consequent).
- False ONLY when p = T and q = F. True in all other 3 cases!
- Equivalence: p → q ≡ ¬p ∨ q.
Biconditional (p ↔ q)
Equivalence (XNOR)- True if and only if p and q have IDENTICAL truth values.
- Formal: (p → q) ∧ (q → p) ≡ (p ∧ q) ∨ (¬p ∧ ¬q).
- English: 'p if and only if q' (iff).
Master Truth Table of Binary Connectives
Operator Precedence Hierarchy in Logic
Binding order when evaluating unparenthesized propositional expressions
Negation (¬ / ~)
Binds immediately to its adjacent propositional variable.
Conjunction (∧)
Evaluated before disjunctions and conditionals.
Disjunction (∨)
Evaluated after conjunctions.
Conditional Implication (→)
Evaluated after all Boolean operations.
Biconditional (↔)
Lowest binding affinity across the entire expression.
🔢 Truth Tables & Counting Boolean Functions
Let be the number of distinct propositional variables:
- Number of Rows in Truth Table: Each variable has possible truth assignments ( or ). Thus, a truth table over variables has:
- Total Number of Distinct Truth Functions:
A truth function assigns either or to each of the rows. Thus, the total number of distinct Boolean truth functions of variables is:
- For : functions (, , , ).
- For : distinct binary functions!
Master Inventory of All 16 Binary Truth Functions (n = 2)
| Index | Common Mathematical Name | Symbolic Form | Operational Meaning | ||||
|---|---|---|---|---|---|---|---|
| 0 | Contradiction (False) | Null function | |||||
| 1 | Joint Denial (NOR) | Peirce arrow | |||||
| 2 | Converse Non-Implication | but not | |||||
| 3 | Negation of | Inverts | |||||
| 4 | Non-Implication | ||||||
| 5 | Negation of | Inverts | |||||
| 6 | Exclusive OR (XOR) | Different truth values | |||||
| 7 | Alternative Denial (NAND) | Sheffer stroke | |||||
| 8 | Conjunction (AND) | Both True | |||||
| 9 | Biconditional (XNOR) | Identical truth values | |||||
| 10 | Projection | Identity of | |||||
| 11 | Conditional Implication | ||||||
| 12 | Projection | Identity of | |||||
| 13 | Converse Implication | ||||||
| 14 | Disjunction (OR) | At least one True | |||||
| 15 | Tautology (True) | Universal True |
⚖️ Classifying Propositional Formulas
Let be a compound proposition constructed from propositional variables:
- Tautology (Valid): Evaluates to True () in every single row of its truth table ( True entries).
- Canonical example: (Law of Excluded Middle).
- Contradiction (Unsatisfiable / Fallacy): Evaluates to False () in every single row of its truth table ( False entries).
- Canonical example: (Law of Non-Contradiction).
- Contingency: Evaluates to True for at least one truth assignment AND False for at least one truth assignment (neither tautology nor contradiction).
- Canonical example: , .
- Satisfiable: A compound proposition is satisfiable if there exists at least one truth assignment that makes the formula True ().
Propositional Formula Taxonomy: Tautology vs Contradiction vs Contingency
Partitioning all Boolean formulas by truth table output columns
Always True (100% T)
- •Every row evaluates to True.
- •Negation of a tautology is a Contradiction: ¬(Tautology) ≡ Contradiction.
- •Core SAT status: Automatically Satisfiable.
Always False (100% F)
- •Every row evaluates to False.
- •Negation of a contradiction is a Tautology: ¬(Contradiction) ≡ Tautology.
- •Core SAT status: Strictly Unsatisfiable.
Mixed Truth Values (Some T, Some F)
- •Contains at least one T and at least one F.
- •Negation of a contingency is always another Contingency!
- •Core SAT status: Satisfiable (not a tautology).
🧰 Functionally Complete Sets of Connectives
A set of logical connectives is functionally complete if and only if every possible Boolean truth function (all functions for any ) can be expressed using only the connectives in that set.
- Standard Complete Pairs:
- : Since and .
- : Since and .
- : Since and .
- Universal Singletons (Minimal Sets of Size 1):
- NAND (, Sheffer Stroke): Alone forms a complete set!
- NOR (, Peirce Arrow): Alone forms a complete set!
- Incomplete Sets:
- : Incomplete! Cannot express because any formula using only and is monotone (if all inputs are , output is strictly ; cannot invert to ).
- or : Incomplete! Affine / linear functions only; cannot express non-linear conjunction .
Expressing Fundamental Connectives using Universal Gates
| Target Operation | Using ONLY NAND () | Gate Count | Using ONLY NOR () | Gate Count |
|---|---|---|---|---|
| NOT () | 1 | 1 | ||
| AND () | 2 | 3 | ||
| OR () | 3 | 2 | ||
| Conditional () | 2 | 4 | ||
| Biconditional () | 4 | 4 |
🏛️ System of Fundamental Logical Equivalences
Two compound propositions and are logically equivalent (denoted or ) if and only if is a tautology.
| Law Name | Conjunction Form () | Disjunction Form () |
|---|---|---|
| Identity Laws | ||
| Domination Laws | ||
| Idempotent Laws | ||
| Double Negation | — | |
| Commutative Laws | ||
| Associative Laws | ||
| Distributive Laws | ||
| De Morgan's Laws | ||
| Absorption Laws | ||
| Negation Laws |
- Conditional Implication Law:
- Negation of Conditional:
- Contrapositive Law:
- Exportation Law:
- Biconditional Decomposition:
- Negation of Biconditional (XOR):
📝 Step-by-Step Worked Examples
Example 1: Proving a Tautology via Truth Table & Logical Equivalence
Problem Statement: Prove that is a tautology (the classical Modus Ponens tautology):
- Using a complete Truth Table.
- Using algebraic logical equivalences.
Step-by-Step Solution:
- Step 1: Truth Table Verification
Every entry in the final column is . Thus, the statement is a Tautology.
- Step 2: Algebraic Verification
- Apply the Implication Law to :
- Distribute over :
- By the Negation Law, :
- Apply the Implication Law to :
- Apply De Morgan's Law:
- Use Associativity to group :
- The expression reduces strictly to , proving it is a tautology!
Key Takeaway: Algebraic reductions using De Morgan and the Implication Law eliminate the need for -row truth tables when verifying tautologies.
Example 2: Verifying Functional Completeness of Implication and Falsehood
Problem Statement: Determine whether the set of connectives is functionally complete.
Step-by-Step Solution:
- Recall the Criteria: A set is functionally complete if it can express or .
- Can we express Negation ()?
- In truth tables, when , evaluates to:
- Thus:
- Negation is successfully expressed using only and !
- In truth tables, when , evaluates to:
- Can we express Disjunction ()?
- Recall .
- Replacing with :
- Substituting our formula for :
- Disjunction is successfully expressed!
- Conclusion: Since both and are expressible, is strictly functionally complete!
Example 3: Determining Satisfiability of a Compound Formula
Problem Statement: Determine whether the formula is satisfiable.
Step-by-Step Solution:
-
Step 1: Simplify First Pair of Clauses
- Clause 1:
- Clause 2:
- Together, is the exact definition of Exclusive OR ()!
- This requires and to have different truth values:
- Case A:
- Case B:
-
Step 2: Simplify Second Pair of Clauses
- Clause 3:
- Clause 4:
- Together, is the exact definition of Biconditional ()!
- This requires and to have identical truth values:
- Case 1:
- Case 2:
-
Step 3: Combine Requirements
- The overall formula is:
- Since , this is equivalent to:
- The formula is a Contradiction!
- Because no assignment can ever make it True, is Unsatisfiable.
Key Takeaway: Recognizing macro-equivalences (like XOR and Biconditional) allows instant unsatisfiability detection without testing all truth assignments.
🎯 Exam & Interview Pitfall Check
Question 1: If an implication is True, does that mean caused ? Key Focus Points: No! Propositional implication () is a material conditional, NOT causal or temporal. For example, "If , then Paris is in France" is 100% True in formal logic because both antecedent and consequent are True (), even though mathematics does not cause French geography!
Question 2: What is "Vacuous Truth"? Key Focus Points: When the antecedent is False, the implication is automatically True ( and ), regardless of the truth value of . For example, "If pigs can fly, then " is a True statement in propositional logic because pigs cannot fly ().
Trap 1: Confusing Inclusive OR with Exclusive OR Why it fails: In everyday English, "Do you want coffee or tea?" implies Exclusive OR (pick one, not both). In mathematical logic, is strictly Inclusive OR: it is True if both and are True! Always assume inclusive OR unless is explicitly specified.
Trap 2: Forgetting the Negation of an Implication Why it fails: Students frequently write . This is completely wrong! By the Implication Law: . The negation of an implication is an AND statement, not another implication!
Trap 3: Believing that is Functionally Complete Why it fails: Connectives can never invert a truth value from to ! Any circuit built purely with AND and OR gates outputs whenever all inputs are (Monotone boolean property). Negation () or an inverting gate is strictly mandatory for functional completeness.