Both Ways Round
A shape is a square if and only if it has four equal sides and four right angles. Each half of that sentence is an if-then. How do we prove a claim that goes both ways?
Two rules for iff
The sign ↔ means "if and only if": it goes both ways. We have two rules. iff-out (↔E) uses it: from A ↔ B and A, write B. From A ↔ B and B, write A. It works either way round.
iff-in (↔I) builds it. It needs two boxes. One box assumes A and reaches B. The other assumes B and reaches A. Then write A ↔ B.
Q iff P from P iff Q
Let us prove: from P ↔ Q, write Q ↔ P. We want an iff. What gives it? ↔I. What does it need? A box from Q to P, and a box from P to Q.
| # | Line | Why |
|---|---|---|
| 1 | P ↔ Q | premise |
| 2 | │ Q | assume |
| 3 | │ P | ↔E 1, 2 |
| 4 | │ P | assume |
| 5 | │ Q | ↔E 1, 4 |
| 6 | Q ↔ P | ↔I 2-3, 4-5 |
Line 3: from P ↔ Q and Q, iff-out gives P. Line 5: from P ↔ Q and P, it gives Q. Line 6 cites both boxes. The first box goes from Q to P and the second from P to Q. Together they say: Q ↔ P.
A definition used both ways
Key: S = The shape is a square. E = It has four equal sides and four right angles. Given S ↔ E and that the shape is a square, iff-out gives E. Given S ↔ E and that the shape has E, iff-out gives S.
That is what a definition does in maths. It can be read from left to right, and from right to left. To prove a definition, you must show both directions: that is two boxes.
You can see the same idea in algebraic identities: an identity can be used from either side.
Careful
One box is not enough for ↔I. The second box must go the other way, from B to A.
Try it at home
- Write an "if and only if" you know. Split it into two if-thens, one each way.
- Copy the Q ↔ P proof. Swap P and Q everywhere. Is it still correct?
- Find a definition in a school book. Read it left to right, then right to left.
Words to know
- iff-out (↔E) - from A ↔ B and one side, write the other side
- iff-in (↔I) - from a box A...B and a box B...A, write A ↔ B
- both ways - an iff says each side gives the other
Big idea
An iff is used either way round by iff-out, and proved with two boxes, one in each direction, by iff-in.