Knaph

Supposing for a While8 of 243 min read

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.

A square and its definition joined by a double arrow: a square if and only if four equal sides and four right angles, with iff-out reading it in either direction.

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.

#LineWhy
1P ↔ Qpremise
2│ Qassume
3│ P↔E 1, 2
4│ Passume
5│ Q↔E 1, 4
6Q ↔ P↔I 2-3, 4-5

A six-line proof: premise P iff Q, a box assuming Q that reaches P, a box assuming P that reaches Q, and line 6, Q iff P, by iff-in on lines 2 to 3 and 4 to 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

  1. Write an "if and only if" you know. Split it into two if-thens, one each way.
  2. Copy the Q ↔ P proof. Swap P and Q everywhere. Is it still correct?
  3. 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.

Test your understanding

Sign in to test your understanding of this lesson and track your progress.