Lesson 2.3 · Chapter 2: The knot test

What a knot hides

Explore all eight states and measure the information hidden from every pair.

From John Cullen’s knotlab guide

Explore the idea

How much can the whole hide?

Click a state to allow or exclude it. The knot test is recomputed after every change. Try to exclude more than half the states while keeping every pair free.

Allowed states

7 / 8

Information in the restriction

0.193 bits

Knot test

Passes

The information is log₂(8 / allowed states), measured against eight equally possible bit strings. It is hidden from every pair only when the relation passes the knot test.

The intuition. A is invisible in its parts, so the whole holds information that no part holds. That information can be measured, and it is small: a knot hides at most one bit.

How it is measured. The measure counts possibilities. A knot's pairs are all , so together they rule nothing out and leave all 8 states possible. The whole allows fewer. If it allows M of the 8 states, it holds log₂(8/M) bits that no pair holds: the allows 7 states and holds log₂(8/7) ≈ 0.193 bits, and parity allows 4 and holds log₂(8/4) = 1 bit.

  • Two and a have exactly 34 knots, in five shapes. Checked against all 256 on three variables:

    Excluded statesRelationsBits the whole holds and no pair does
    1 (a single three-literal : the atom)80.193
    2, opposite corners40.415
    2, at Hamming distance two120.415
    380.678
    4 (parity, even or odd)21.000

    A relation on three variables has every pair free exactly when no two of its excluded states differ in one coordinate. So a knot's excluded states form a nonempty independent set of the 3-cube. There are 34 such sets, in five classes under the cube's 48 symmetries.

  • A knot hides at most one bit, and only parity hides a full bit. Proved (here). one variable of a knot on m variables leaves all 2^(m−1) assignments of the others, and each needs at least one allowed state. So a knot allows at least half of its states. If it allows exactly half, forgetting the last variable is a bijection, so the relation is the graph of a function f: the last variable is fixed by the others. Two allowed states that differ in one coordinate would make that two-to-one, so f changes whenever one input bit changes. That makes f parity or its complement.

  • The atom is the smallest bond. It excludes the fewest states. It is also what an AND gate adds to its two-place parts: a two-input gate's relation is pairwise exactly when the gate ignores an input, so each of the ten gates that use both inputs needs a three-place clause, which is an atom up to which value of each variable counts as present. Checked (knotlab worlds).

Reading. A is the material and an atom is what holds material together. Digital hardware can build anything because its gates supply atoms.

PYTHONPATH=tools python3 -m knotlab patterns

The complete text is carried over from INTUITIONS.md in knotlab. Its labels distinguish proofs, finite checks, classical results, and interpretation. How to read the labels.

The interactive examples illustrate finite cases. Their behaviour does not replace the general arguments and sources in the text.