Proofs · Chapter 3

If-Then Cousins

“If you spend over $30, your cookie is free” is broken only one way. Write any if-then sentence’s converse, inverse and contrapositive and see which case breaks each.

Home › Calculators › Proofs › If-Then Cousins

Opens on Chapter 3’s example: the bakery’s sign: “Spend over $30 and your cookie is free.”

Check it on whole numbers (optional)
The converse trap: squares and rectangles (optional)
Enter your own case, then press Work it out.

How it works

An if-then promise is broken only when the if part happens and the then part doesn’t. The table lists all four cases, so it is a complete check: a statement and its contrapositive are broken by the same case, and the converse and the inverse by another. The number panel tests “divisible by a, then divisible by b” and its converse on every whole number up to a limit, and says when the statement is proved for every number.

From the book, Chapter 3. From 1 to 1,000,000, “divisible by 6, then even” never breaks and its converse breaks 333,334 times, first at 2. There are 250,000 multiples of 4 and 250,000 even numbers that aren’t. With whole sides 1 to 50 there are 1,275 rectangles: 50 squares and 1,225 that aren’t. The book and every chapter’s tool →

Tests and proofs. When a tool tries cases, it tells you how many: a test of a million cases is still evidence, not a proof, because it says nothing about the cases it didn’t try. When an answer is proved (a count, a check digit, a complete list of every case, an algebra step that holds for every value), the page says so and why. Numbers can be typed as 1,200, −7, 3/4 or 0.05; formulas as 2^n − 1, n(n + 1)/2, n², C(n, 4) (choices of 4 from n), n! or sum(2k − 1) (the terms for k = 1 to n). Everything stays in your browser: no sign-up, nothing stored or sent.