Generator

3 circles, and the 8 patterns they realise

A generator in the logic library, called 43 times across 9 essays. Below: what it draws with nothing chosen and at each mode an essay asks for, what it checks while drawing, and everywhere it is used.

venn is one function. Everything below came out of it during this build, at parameters taken from the essays rather than invented for this page — so a figure here is the same figure a reader meets in an essay, and if the generator changes, this page changes with it.

With nothing chosen

3 circles, and the 8 patterns they realise. Closed curves overlapping in the plane, with each region of the arrangement identified by which curves contain it.

One try: letters set in a random order, forced or guessed

One try: letters set in a random order, forced or guessed. Ten rows, one per letter in the order processed, marking 5 guessed and 5 forced letters, each forced one with the clause that forced it.

Every letter's critical clauses, and how often they force it

Every letter's critical clauses, and how often they force it. Sixteen bars, one per letter, giving the share of random orders in which the letter comes last in one of its critical clauses, all at or above one third; critical clause counts 2, 2, 5, 4, 5, 1, 4, 5, 5, 3, 3, 6, 4, 2, 1, 4.

How many letters one try has to guess

How many letters one try has to guess. A histogram of the number of guessed letters over 20000 tries on a 16-letter formula, averaging 7.64, to the left of a dashed line at 10.7.

The chance one random-order try succeeds, against its guarantee

The chance one random-order try succeeds, against its guarantee. n 8: 9.40e-2 against 2.48e-2; n 10: 4.37e-2 against 9.84e-3; n 12: 1.47e-2 against 3.91e-3; n 14: 1.53e-2 against 1.55e-3; n 16: 5.50e-3 against 6.15e-4; n 18: 2.17e-3 against 2.44e-4.

Two ways to beat trying everything, by clause length

Two ways to beat trying everything, by clause length. k 3: order method 1.587, walk 1.333; k 4: order method 1.682, walk 1.500; k 5: order method 1.741, walk 1.600; k 6: order method 1.782, walk 1.667; k 8: order method 1.834, walk 1.750; k 10: order method 1.866, walk 1.800; refined order method 1.308 at k = 3.

What it checks while it draws

Collected by running the family and recording what it asserted, not written here. The count is how many separate times the claim was put to the test while these drawings were made.

Where it is called

Every figure on this list is drawn by the same rule, so a change to the rule changes all of them at once. That is why the list is published.

Logic

A letter the clauses already decide

Set the letters of a formula one at a time, in a random order, and guess each one with a coin — unless some clause has already had its other two letters set to false, in which case the clause decides. A try succeeds when every guess is right, so what matters is how many letters get guessed. On a formula with one solution, every letter has a clause that forces it in at least one order out of three, so at most two thirds of the letters are guessed on average, and about 1.587ⁿ tries suffice. It is slower than the random walk. Refined, it is the fastest method known.

Logic

A walk that beats trying everything

To decide whether clauses of three letters can all be satisfied, the obvious method tries all 2ⁿ assignments. Uwe Schöning's method, from 1999, starts at a random assignment and wanders: pick a clause that is false, flip one of its letters at random, and repeat three times as many times as there are letters. A single try usually fails, but it succeeds with chance at least about (3/4)ⁿ, so about (4/3)ⁿ tries are enough — and the reason is a walk on a line that goes the wrong way two times in three.

Logic

Four circles cannot do it

Three overlapping circles cut the plane into exactly the eight regions three sets need. Four circles cut it into fourteen, and sixteen are required — so the diagram everyone draws stops working at four, and the reason is a count.

Logic

One thing in each region is enough

Give first-order logic its full apparatus of nested quantifiers but only one-place predicates, and every question about truth is still settled by the regions of a diagram. A predicate cannot tell apart two things in the same region, so no model ever needs more than one thing per region — and with three predicates there are only 255 models to try.

Logic

Syllogisms that say most

The syllogism knew four words — all, no, some, some not — and two thousand years of logic decided which of its 256 forms were valid. Add 'most', a word everyone uses in arguments, and the 256 become 864. A diagram with marks for 'empty' and 'occupied' can no longer decide them, because 'most' compares sizes; but writing the number of things in each region turns every form into a linear programme, and the programme decides all of them at once. Thirty-one are valid, including one Augustus De Morgan found in 1847: if most M are S and most M are P, then some S are P. And 'most' cannot be passed along a chain: ninety-nine per cent of S can be M, ninety-nine per cent of M can be P, and no S be P at all.

Logic

The conclusion is what survives the erasing

Lewis Carroll's puzzles give three premises about four classes — babies, logical people, the despised, crocodile-managers — and ask what follows. Draw all four, shade what the premises rule out, then erase the classes the conclusion is not about: a region survives as empty only if everything above it was. What is left is the conclusion, and erasing a class turns out to be exactly one step of resolution.

Logic

Twenty-four out of two hundred and fifty-six

Aristotle's syllogisms are four sentence forms in four arrangements, which makes 256 patterns of argument. Fifteen of them are valid. Nine more become valid if you assume the things being talked about exist, and the gap between those numbers is a two-thousand-year-old disagreement.

Logic

Venn diagrams that turn into themselves

A Venn diagram shows every combination of in and out exactly once. Ask for one that looks the same after a turn of 1/n, each curve rotating onto the next, and a counting argument forbids it unless n is prime. Five congruent ellipses manage it, certified by Euler's formula; four rotated copies cannot, and it took until 2004 to show that every prime can.

Algebra

What is lost at eight

Double the quaternions and division still works, but ab times c and a times bc are no longer the same number. What survives is a weaker law that turns out to be enough for a great deal — and the whole multiplication table fits into a picture of seven lines.

The whole library · What the figures prove