Generator

Train ranks at each of the 5 cuts of a 6-index tensor on 6 points a side, four families

One function in the ttrain library, called 20 times across 5 essays. Below: what it draws at its defaults, what it draws at every value an essay asks for, the 13 claims it put to the test while drawing them, and where it stands against the rule this site is named for.

At its defaults it draws train ranks at each of the 5 cuts of a 6-index tensor on 6 points a side, four families. Cut the index list after position k, put the first k indices on the rows and the rest on the columns, and take the rank of the matrix that results. There are 5 such cuts and each rank is an ordinary matrix rank. The sine of a sum of d variables has rank exactly two at every one of them, for every d, because the addition formula separates it into two terms at every cut — a rank written down rather than measured, and the computed values are 2, 2, 2, 2, 2. The reciprocal family climbs to 10, the product family is one everywhere, and independent normal entries reach 216, which is the largest rank the cut allows. Storage runs sinsum 120, reciprocal 1,800, product 36, noise 95,976 against 46,656 entries.

train-ranks is one function in lib/figures/ttrain.js — the train — one rank per cut of the index list, and the iterate that must be cut back. Everything below came out of it during this build, at arguments taken from the essays rather than invented for this page. A figure here is the figure a reader meets in an essay, and if the generator changes, this page changes with it.

At its defaults

Drawn even though every essay passes arguments — which on this site is every essay, at 100% of placements since the standard pass. A default nothing exercises is a trap for the next essay to call this with none, and this is the page where a default that has drifted from the figures around it becomes visible.

Train ranks at each of the 5 cuts of a 6-index tensor on 6 points a side, four familiesCut the index list after position k, put the first k indices on the rows and the rest on the columns, and take the rank of the matrix that results. There are 5 such cuts and each rank is an ordinary matrix rank. The sine of a sum of d variables has rank exactly two at every one of them, for every d, because the addition formula separates it into two terms at every cut — a rank written down rather than measured, and the computed values are 2, 2, 2, 2, 2. The reciprocal family climbs to 10, the product family is one everywhere, and independent normal entries reach 216, which is the largest rank the cut allows. Storage runs sinsum 120, reciprocal 1,800, product 36, noise 95,976 against 46,656 entries.012345603672108144180216cut after index krank of the reshapesinsum · 2 2 2 2 2reciprocal · 6 9 10 9 6product · 1 1 1 1 1noise · 6 36 216 36 65 cuts, 5 rankssinsum stored120reciprocal stored1800product stored36noise stored9.6·10⁴entries4.7·10⁴one rank per cutand one of them is a theorem

Cut the index list after position k, put the first k indices on the rows and the rest on the columns, and take the rank of the matrix that results. There are 5 such cuts and each rank is an ordinary matrix rank. The sine of a sum of d variables has rank exactly two at every one of them, for every d, because the addition formula separates it into two terms at every cut — a rank written down rather than measured, and the computed values are 2, 2, 2, 2, 2. The reciprocal family climbs to 10, the product family is one everywhere, and independent normal entries reach 216, which is the largest rank the cut allows. Storage runs sinsum 120, reciprocal 1,800, product 36, noise 95,976 against 46,656 entries.

show: "tx-spread", tensor: "mixed1"

The arguments are the ones A chain grown from its ends gets lost passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

Every order of eight indices of one tensor in train format, two pairs and a chain, shuffle 1: the share of the 20,160 orders that store at most a given number of entries, with the least, the greedy chain's and the median markedtwo pairs and a chain, shuffle 1: least 108 entries, reached by 96 orders; within twice the least, 288; median 1,908; most 8,322. The greedy chain stores 396 and the linked paths 108.10²10³10⁴0255075100entries storedper cent of orders at or belowshare of orderslines at the least, the greedy chain and the medianthe best orders are a sliver

two pairs and a chain, shuffle 1: least 108 entries, reached by 96 orders; within twice the least, 288; median 1,908; most 8,322. The greedy chain stores 396 and the linked paths 108.

show: "tx-spread", tensor: "pairs"

The arguments are the ones A chain grown from its ends gets lost passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

Every order of eight indices of one tensor in train format, four separated pairs: the share of the 20,160 orders that store at most a given number of entries, with the least, the greedy chain's and the median markedfour separated pairs: least 72 entries, reached by 192 orders; within twice the least, 192; median 1,584; most 8,322. The greedy chain stores 72 and the linked paths 72.10²10³10⁴0255075100entries storedper cent of orders at or belowshare of orderslines at the least, the greedy chain and the medianthe best orders are a sliver

four separated pairs: least 72 entries, reached by 192 orders; within twice the least, 192; median 1,584; most 8,322. The greedy chain stores 72 and the linked paths 72.

show: "tx-least"

The arguments are the ones A chain grown from its ends gets lost passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

The least, median and largest storage over all 20,160 orders of three tensors in train format, with how many orders reach the leastfour separated pairs: least 72 by 192 orders, median 1584, most 8322; a shuffled chain: least 180 by 4 orders, median 3252, most 8322; two pairs and a chain, shuffle 1: least 108 by 96 orders, median 1908, most 8322.1001,00010,000four separated pairsthe least over every order72the median order1,584the worst order8,322a shuffled chainthe least over every order180the median order3,252the worst order8,322two pairs and a chain, shuffle 1the least over every order108the median order1,908the worst order8,322entries storedthe array itself is 6,561 entriesseventy-two and 180 are minima

four separated pairs: least 72 by 192 orders, median 1584, most 8322; a shuffled chain: least 180 by 4 orders, median 3252, most 8322; two pairs and a chain, shuffle 1: least 108 by 96 orders, median 1908, most 8322.

show: "tx-rules"

The arguments are the ones A chain grown from its ends gets lost passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

Storage of the order each of two rules builds from the same slice table, the greedy chain and the linked paths, against the exhaustive least and the shortest path over the subsets of indices, on eight tensorsfour separated pairs: least 72, greedy 72, paths 72, subset path 72; a shuffled chain: least 180, greedy 180, paths 180, subset path 180; two pairs and a chain, shuffle 1: least 108, greedy 396, paths 108, subset path 108; two pairs and a chain, shuffle 2: least 108, greedy 108, paths 108, subset path 108; two pairs and a chain, shuffle 3: least 108, greedy 108, paths 108, subset path 108; two pairs and a chain, shuffle 4: least 108, greedy 396, paths 108, subset path 108; two pairs and a chain, shuffle 5: least 108, greedy 396, paths 108, subset path 108; two pairs and a chain, shuffle 6: least 108, greedy 108, paths 108, subset path 108.50100200500four separated pairsleast72greedy chain72linked paths72shortest path over the subsets72a shuffled chainleast180greedy chain180linked paths180shortest path over the subsets180two pairs and a chain, shuffle 1least108greedy chain396linked paths108shortest path over the subsets108two pairs and a chain, shuffle 2least108greedy chain108linked paths108shortest path over the subsets108two pairs and a chain, shuffle 3least108greedy chain108linked paths108shortest path over the subsets108two pairs and a chain, shuffle 4least108greedy chain396linked paths108shortest path over the subsets108two pairs and a chain, shuffle 5least108greedy chain396linked paths108shortest path over the subsets108two pairs and a chain, shuffle 6least108greedy chain108linked paths108shortest path over the subsets108entries storedthe six mixed tensors are one tensor relabelledthe chain's luck is the labels'

four separated pairs: least 72, greedy 72, paths 72, subset path 72; a shuffled chain: least 180, greedy 180, paths 180, subset path 180; two pairs and a chain, shuffle 1: least 108, greedy 396, paths 108, subset path 108; two pairs and a chain, shuffle 2: least 108, greedy 108, paths 108, subset path 108; two pairs and a chain, shuffle 3: least 108, greedy 108, paths 108, subset path 108; two pairs and a chain, shuffle 4: least 108, greedy 396, paths 108, subset path 108; two pairs and a chain, shuffle 5: least 108, greedy 396, paths 108, subset path 108; two pairs and a chain, shuffle 6: least 108, greedy 108, paths 108, subset path 108.

show: "tx-cuts"

The arguments are the ones A chain grown from its ends gets lost passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

The rank across each of the seven cuts of one mixed tensor of two pairs and a chain of four, in the order the greedy chain builds and in the order the linked paths buildGreedy chain, order 0, 4, 1, 2, 6, 3, 5, 7: ranks 3, 3, 9, 3, 9, 3, 3, storing 396. Linked paths, order 0, 4, 5, 7, 1, 2, 6, 3: ranks 3, 3, 3, 1, 3, 1, 3, storing 108.12345670246810cut, between the first k indices and the restrank across the cutgreedy chainlinked pathsrank three is one coupling crossingnine is two

Greedy chain, order 0, 4, 1, 2, 6, 3, 5, 7: ranks 3, 3, 9, 3, 9, 3, 3, storing 396. Linked paths, order 0, 4, 5, 7, 1, 2, 6, 3: ranks 3, 3, 3, 1, 3, 1, 3, storing 108.

What it checked while drawing

Every figure above checked its own claims on the way to being drawn, and a claim that failed would have stopped the picture rather than shipped a wrong one. Those checks used to leave no trace at all: a passing one returned true and the only evidence the figure had checked anything was that nothing crashed. The list below is what they actually said, collected by running this generator with an observer installed — not a description of what it is believed to check.

13 distinct claims across 6 sets of arguments, grouped below by shape — because most of them are one sentence with a different number in it, and how many separate times that sentence was put to the test is the informative part.

a family the dial offers

a family this file builds

a number of indices the tensor can be formed at

a tensor the dial offers

a tensor this file builds

and stores 4n(d − 1) numbers

at least one row

curves with points on them

sin of a sum has rank two at every cut

the noise train reproduces its tensor

the product train reproduces its tensor

the reciprocal train reproduces its tensor

the sinsum train reproduces its tensor

Against the rule

It draws a decomposition and prints its residual. It calls ttSvd, and every figure above carries the badge — which residualcheck verifies by looking for it in the emitted SVG rather than by finding the call that builds one. A badge that is constructed and then left out of the body is the failure that check exists for.

Across the library: the rule bites on 217 of 397 generators — 199 print a residual and 18 are exempt with a published reason; 180 factorise nothing. Read from lib/residual-rule.js, which is the same body the gate enforces from, and the gate's last check fails the build if this page and it disagree about any generator.

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.

When the index is a tuple

A chain grown from its ends gets lost

A tensor of eight indices in train format stores 72 numbers in one order and 8,322 in another, and a greedy chain built from cheap pairwise slices had found the good order on every tensor tried. Searching all 20,160 orders confirms that 72 and 180 are the true least on the two earlier tensors. But on a tensor of two pairs and a chain of four, placed on the indices six different ways, the least is 108 every time and the greedy chain finds it on three placements and stores 396 on the other three. The six are one tensor with its indices renamed, so the chain's success depended on the names. A rule that links the strongest couplings into paths, from the same table, finds 108 on all six.

Iterating, instead of factorising

An iterate that must be made smaller

Applying a Kronecker-sum operator to a low-rank iterate multiplies its ranks by d and adding two of them adds their ranks, so a solver in a compressed format cannot keep what it produces. Every step is followed by a truncation — and whether that truncation is a floor on the residual depends on the right-hand side rather than on the truncation.

When the index is a tuple

The digit that costs more than the tensor

Ask a three-index reciprocal tensor on six points a side for seven digits and its train is 288 numbers against 216 entries. The break-even rank is n − 1 at all four grids measured, and a train that reaches it fits with exactly n numbers to spare.

When the index is a tuple

The format that does not notice the dimension

A Tucker core is r^d numbers, so the format that repaired the definition still cannot go past five indices. Cutting between the indices rather than across them gives d − 1 ranks instead of d, storage linear in the number of indices, and a family whose ranks are two everywhere by an addition formula.

When the index is a tuple

The order of the indices is not free

A tensor train stores numbers linear in its number of indices, so it was named a format that does not notice the dimension. It notices the order. An eight-index tensor of four separated pairs takes 8,322 numbers in the order it was written, more than the 6,561 entries of the array itself, and 72 with the pairs side by side, the same tensor to the same tolerance. The median of two hundred random orders is 1,584. Every digit asked for is charged at each crossing: at a tolerance of 10⁻¹² the gap is 13,950 against 72, and it takes a coupling a thousand times weaker to bring the two within twenty times of each other. The order can be found cheaply: one slice through a base point, 252 entries, shows the pairing and gives the best order on all three tensors tried.

The whole library · All essays · What must fail