Generator

wiring

A generator in the algebra library, called 8 times across 2 essays. Below: what it draws at its defaults and at each mode an essay asks for, what it checks while drawing, and everywhere it is used.

wiring 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.

At its defaults

The permutation (1 3 4 2) drawn as 4 strings, crossing 3 times. A permutation drawn as strings running from a row of numbered pegs to another, with every place two strings cross marked, and the crossing count checked against the number of pairs that are out of order.

show: "determinant"

A 3×3 determinant as six signed products, totalling −43. The six permutations of three places, each drawn as the three matrix entries it selects, with the sign of the permutation attached and the signed total checked against a cofactor expansion.

show: "moves"

One permutation routed two ways: 3 crossings and 5. The same permutation drawn twice, once with straight strings and once with one string pushed across another and back, so the two diagrams have different crossing counts and the same parity.

show: "swaps"

(1 3 4 2) as 3 swaps and as 5. One permutation taken apart into swaps of neighbouring places in two different ways, drawn as stacks of layers, with the two lengths differing and their parity the same.

show: "table"

Every permutation of 4 places, by sign. All 24 permutations of 4 places listed in cycle notation with the number of pairs each puts out of order, coloured by whether that number is even or odd, and the two halves counted.

show: "puzzle"

A 2×3 sliding puzzle: 360 arrangements of 720 can be reached. Two arrangements of a small sliding puzzle side by side, the solved one and the one with two tiles exchanged, with the count of positions reachable by sliding found by walking every move.

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

Changing this generator changes every figure on this list. That is what makes the list worth publishing rather than keeping in a check script.

The whole library · What the figures prove