Truth Tables
Truth tables show all possible truth value combinations for logical propositions.
Basic Propositions
P | Q | ¬P (NOT P) | ¬Q (NOT Q) |
---|---|---|---|
T | T | F | F |
T | F | F | T |
F | T | T | F |
F | F | T | T |
Logical Operations
P | Q | P ∧ Q (AND) | P ∨ Q (OR) | P ⊕ Q (XOR) | P → Q (IMPLIES) | P ↔ Q (IFF) |
---|---|---|---|---|---|---|
T | T | T | T | F | T | T |
T | F | F | T | T | F | F |
F | T | F | T | T | T | F |
F | F | F | F | F | T | T |
Logical Operations
Learn about the fundamental logical operations used in predicate logic.
Negation (¬)
Definition: The negation of a proposition P is true when P is false, and false when P is true.
Example: If P = "It is raining", then ¬P = "It is not raining"
Conjunction (∧)
Definition: A conjunction is true only when both propositions are true.
Example: "It is sunny AND warm" is true only when both conditions are met.
Disjunction (∨)
Definition: A disjunction is true when at least one proposition is true.
Example: "I will study OR watch a movie" is true if I do either activity.
Exclusive OR (⊕)
Definition: Exclusive OR is true when exactly one proposition is true, but not both.
Example: "I will have coffee XOR tea" means I'll have one or the other, but not both.
Interactive Truth Table Generator
Create your own truth tables by selecting propositions and operations.
Build Your Expression
Practice Problems
Test your understanding with these interactive problems.
Problem 1: Basic Truth Table
Complete the truth table for the expression: ¬P ∨ Q
P | Q | ¬P | ¬P ∨ Q |
---|---|---|---|
T | T | ||
T | F | ||
F | T | ||
F | F |
Problem 2: Exclusive OR
Determine when the expression P ⊕ Q (P XOR Q) is true:
Problem 3: Complex Expression
Evaluate the expression (P ∧ Q) ∨ (¬P ∧ R) when P = F, Q = T, R = T:
Problem 4: De Morgan's Law
Complete the truth table to verify De Morgan's Law: ¬(P ∧ Q) ≡ (¬P ∨ ¬Q)
P | Q | P ∧ Q | ¬(P ∧ Q) | ¬P | ¬Q | ¬P ∨ ¬Q |
---|---|---|---|---|---|---|
T | T | T | F | F | ||
T | F | F | F | T | ||
F | T | F | T | F | ||
F | F | F | T | T |
Problem 5: Implication Analysis
Which of the following statements about implication (P → Q) is correct?
Problem 6: Three-Variable Expression
For the expression (P ∨ Q) ∧ (Q ∨ R), determine the truth value when P = F, Q = F, R = T:
Problem 7: Logical Equivalence
Which expression is logically equivalent to ¬(P → Q)?
Problem 8: Complex Truth Table Challenge
Complete the truth table for: ((P ∧ Q) → R) ↔ (P → (Q → R))
This demonstrates the exportation law in logic!
P | Q | R | P ∧ Q | (P ∧ Q) → R | Q → R | P → (Q → R) | Final Result |
---|---|---|---|---|---|---|---|
T | T | T | T | T | T | T | |
T | T | F | T | F | F | F | |
T | F | T | F | T | T | T | |
T | F | F | F | T | T | T | |
F | T | T | F | T | T | T | |
F | T | F | F | T | F | T | |
F | F | T | F | T | T | T | |
F | F | F | F | T | T | T |
Problem 9: Distributive Law Challenge
Complete the truth table for: P ∧ (Q ∨ R) ≡ (P ∧ Q) ∨ (P ∧ R)
This demonstrates the distributive law for conjunction over disjunction!
P | Q | R | Q ∨ R | P ∧ (Q ∨ R) | P ∧ Q | P ∧ R | (P ∧ Q) ∨ (P ∧ R) | Equivalence |
---|---|---|---|---|---|---|---|---|
T | T | T | T | T | T | T | T | |
T | T | F | T | T | T | F | T | |
T | F | T | T | T | F | T | T | |
T | F | F | F | F | F | F | F | |
F | T | T | T | F | F | F | F | |
F | T | F | T | F | F | F | F | |
F | F | T | T | F | F | F | F | |
F | F | F | F | F | F | F | F |
Problem 10: Contrapositive Law
Complete the truth table for: (P → Q) ≡ (¬Q → ¬P)
This demonstrates that an implication is equivalent to its contrapositive!
P | Q | P → Q | ¬Q | ¬P | ¬Q → ¬P | Equivalence |
---|---|---|---|---|---|---|
T | T | T | F | F | T | |
T | F | F | T | F | F | |
F | T | T | F | T | T | |
F | F | T | T | T | T |
Problem 11: Absorption Law Master Challenge
Complete the truth table for: P ∨ (P ∧ Q) ≡ P and P ∧ (P ∨ Q) ≡ P
This demonstrates the absorption laws - a cornerstone of Boolean algebra!
P | Q | P ∧ Q | P ∨ (P ∧ Q) | P ∨ Q | P ∧ (P ∨ Q) | First Law (P ∨ (P ∧ Q) ≡ P) | Second Law (P ∧ (P ∨ Q) ≡ P) |
---|---|---|---|---|---|---|---|
T | T | T | T | T | T | ||
T | F | F | T | T | T | ||
F | T | F | F | T | F | ||
F | F | F | F | F | F |