Lecture 3 - Propositional Logic Laws
Tautology and Contradiction
A tautology is a compound proposition that is always true.
A contradiction is a compound proposition that is always false.
Truth table basics:
If a proposition evaluates to true for all possible truth assignments, it is a tautology.
If a proposition evaluates to false for all possible truth assignments, it is a contradiction.
Example truth table (from transcript):
Columns: p, ¬p, p ∨ ¬p, p ∧ ¬p
Rows:
p = T, ¬p = F → p ∨ ¬p = T, p ∧ ¬p = F
p = F, ¬p = T → p ∨ ¬p = T, p ∧ ¬p = F
Conclusion: is not the focus here; rather, is always true, and is always false.
Summary relationships:
(Law of excluded middle in this context)
Truth-table-based example: (p → q) ∨ p
We can determine tautology/contingency by evaluating the expression under all combinations of p and q.
Expression:
Using the truth table:
p = T, q = T: p → q = T; (p → q) ∨ p = T
p = T, q = F: p → q = F; (p → q) ∨ p = T
p = F, q = T: p → q = T; (p → q) ∨ p = T
p = F, q = F: p → q = T; (p → q) ∨ p = T
Since the value is always true, the expression is a tautology.
Logical Equivalences
Two compound propositions p and q are logically equivalent if they always have the same truth value.
Denoted as: or sometimes .
Significance:
Enables replacing a subformula with an equivalent one to simplify expressions or prove properties (tautology/contradiction/equivalence).
Example from transcript:
Prove that \boldsymbol{\diameter} p \lor q (interpreted as a certain expression in transcript) is equivalent to by comparing truth tables across all assignments.
Truth table shows: for all assignments, the two expressions have identical truth values, so they are logically equivalent.
Example: Prove the equivalence Øp Ú q ≡ p → q
Given truth table (p, q, ¬p, ¬p ∨ q, p → q):
p q | ¬p | ¬p ∨ q | p → q
T T | F | T | T
T F | F | F | F
F T | T | T | T
F F | T | T | T
Observation: The column for ¬p ∨ q matches p → q in every row.
Conclusion: Øp Ú q is logically equivalent to p → q (as per transcript's notation and truth table).
Note: In the transcript, "Øp Ú q" is presented in a way that aligns with ¬p ∨ q; the key takeaway is that the two expressions share identical truth values across all possible p, q.
Laws of Propositional Logic
Purpose: Provide a toolkit to simplify propositions, prove logical equivalence, tautology, or contradiction.
Common laws (Expression 1 ↔ Expression 2):
Idempotent laws:
Associative laws:
Commutative laws:
Distributive laws:
Identity laws:
Domination laws:
Double negation law:
Complement laws (the principle of excluded middle and contradiction):
De Morgan’s laws:
Absorption laws:
Conditional identities:
Biconditional: (optional from transcript discussion)
How to use the laws
Purpose: Use the laws to simplify a compound proposition, and to prove logical equivalence, tautology, or contradiction.
Rules of thumb:
Remove a biconditional (↔) by applying the conditional identity: and/or transform implications.
Remove implications (→) by using the identity: .
Apply De Morgan’s laws to move a negation inside: and .
Apply other laws (idempotent, associative, commutative, distributive, etc.) as needed to reach the desired form (e.g., a tautology, contradiction, or a simpler equivalent expression).
Example: Prove p ∨ (p → q) is a tautology
Target: Prove is a tautology.
Steps:
Use conditional identity:
Then
By associativity:
By complement law:
By domination law:
Conclusion: is a tautology.
Example: Prove ¬p → (q → r) ≡ q → (p ∨ r)
Target: Show
Steps (as in transcript):
Start with left:
Apply conditional identity:
Replace inner implication:
Reassess with associativity/commutativity to form or equivalently
Recognize that
Therefore:
Note: This derivation aligns with the transcript’s final equivalence and uses standard transformation steps.
Connections to foundational principles
These topics underpin boolean algebra, digital logic design, and automated theorem proving.
Logical equivalence, tautology, and contradiction form the basis for simplifying expressions and for proving properties about logical systems.
The laws provide a finite and systematic toolkit to transform and reason about propositional formulas.
Practical implications and context
In computer science, these concepts underpin circuit design, compiler optimizations, and verification; proving a circuit is a tautology corresponds to showing it always outputs true.
In mathematics, logical equivalences enable proving theorems via rewrite rules.
In philosophy, these ideas relate to formal epistemology and the study of valid arguments.
Quick reference of key formulas (LaTeX)
Tautology/Contradiction:
Implication:
De Morgan:
Identity/Domination:
Absorption:
Equivalences:
(logical equivalence)
Example results: