Swapping Equal Parts
In the sum 3 + (2 + 2), you may swap 2 + 2 for 4 inside the brackets, and the total stays 7. Can a logic proof swap a part inside a line in the same way?
Whole lines and parts
The basic rules work on whole lines. They look at the main connective only. Take ¬(P ∧ Q). Its main connective is ¬, so it is a not-claim. ∧E does not apply, and writing ¬P from it by ∧E is a mistake.
A replacement rule is different. It swaps a part inside a line for an equivalent part. Two parts are equivalent when they always have the same truth value. Swapping one for the other cannot change the value of the whole, just as 2 + 2 and 4 are interchangeable in a sum. (Compare algebraic identities.)
De Morgan and double negation
De Morgan (DeM) has two forms. Break the bar and change the connective. ¬(A ∧ B) and ¬A ∨ ¬B are equivalent. So are ¬(A ∨ B) and ¬A ∧ ¬B. In Level 3 we checked both with a table. Both directions are allowed.
Double negation also has a swap form, DN: ¬¬A and A may replace each other anywhere, in both directions, even inside a longer line. (DNE from the last lesson only removes two nots from a whole line.) Premise: P → ¬¬Q. The part ¬¬Q becomes Q.
| # | Line | Why |
|---|---|---|
| 1 | P → ¬¬Q | premise |
| 2 | P → Q | DN 1 |
A proof with De Morgan
Key: P = It is cold. Q = It is windy. Premises: ¬(P ∧ Q) (it is not both cold and windy) and P. Goal: ¬Q. Ask: what do we want? ¬Q. What gives it? DS, if we first have an or. DeM gives the or from line 1. DS then needs ¬¬P, and DN gives it from P (adding two nots is the other direction of the swap).
| # | Line | Why |
|---|---|---|
| 1 | ¬(P ∧ Q) | premise |
| 2 | P | premise |
| 3 | ¬P ∨ ¬Q | DeM 1 |
| 4 | ¬¬P | DN 2 |
| 5 | ¬Q | DS 3, 4 |
Check line 5. DS needs A ∨ B and ¬A. Line 3 is ¬P ∨ ¬Q, so A is ¬P, and ¬A is ¬¬P, which is line 4. It writes ¬Q.
Is this a new power? No. A replacement is still a safe step, since equal parts never change the whole.
Careful
Never use ∧E on ¬(P ∧ Q). It is a not-claim, not an and. Swap it with DeM first, and then use a rule that fits.
Try it at home
- Make a truth table for ¬(P ∧ Q) and for ¬P ∨ ¬Q. Do all four rows agree?
- Say ¬(P ∨ Q) in English with a key, then say ¬P ∧ ¬Q. Do they mean the same?
- Copy the five-line proof. Underline the line where a swap happens.
Words to know
- replacement rule - a rule that swaps a part inside a line for an equivalent part
- De Morgan (DeM) - ¬(A ∧ B) swaps with ¬A ∨ ¬B, and ¬(A ∨ B) swaps with ¬A ∧ ¬B
- double negation (DN) - ¬¬A and A swap with each other, both ways
- equivalent - always having the same truth value
Big idea
A replacement rule swaps an equivalent part inside a line, because equal parts never change the value of the whole.