Generator

Numbers stored per unknown, against the size of the matrix, at 10⁻⁸

One function in the hodlr library, called 76 times across 12 essays. Below: what it draws at its defaults, what it draws at every value an essay asks for, the 64 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 numbers stored per unknown, against the size of the matrix, at 10⁻⁸. The dense matrix stores n numbers per unknown, which is the straight line through the origin and doubles whenever n does. The hierarchical representations store 54, 79, 106, 133 and 50, 70, 94, 120, adding about 26 per doubling — a constant per doubling is a logarithm, and it is the whole claim. At n = 512 that is 26 and 23 per cent of the dense matrix, and the share falls at every size. The exponent between consecutive sizes is 1.55, 1.42, 1.33, falling towards one and never arriving, which is what a logarithm looks like from inside.

storage-size is one function in lib/figures/hodlr.js — the partition — a rule that reads four numbers a pair and no entry of the matrix. 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.

Numbers stored per unknown, against the size of the matrix, at 10⁻⁸The dense matrix stores n numbers per unknown, which is the straight line through the origin and doubles whenever n does. The hierarchical representations store 54, 79, 106, 133 and 50, 70, 94, 120, adding about 26 per doubling — a constant per doubling is a logarithm, and it is the whole claim. At n = 512 that is 26 and 23 per cent of the dense matrix, and the share falls at every size. The exponent between consecutive sizes is 1.55, 1.42, 1.33, falling towards one and never arriving, which is what a logarithm looks like from inside.56789100108216324432log₂ nstored per unknowndenseweak: every off-diagonal blockstrong: only the admissible onesa constant per doublingstrong, n = 5126.8·10⁴weak, n = 5126.1·10⁴dense, n = 5122.6·10⁵per doubling26relative compression error3.8·10⁻¹⁰the dense line doublesand the other two add a constant

The dense matrix stores n numbers per unknown, which is the straight line through the origin and doubles whenever n does. The hierarchical representations store 54, 79, 106, 133 and 50, 70, 94, 120, adding about 26 per doubling — a constant per doubling is a logarithm, and it is the whole claim. At n = 512 that is 26 and 23 per cent of the dense matrix, and the share falls at every size. The exponent between consecutive sizes is 1.55, 1.42, 1.33, falling towards one and never arriving, which is what a logarithm looks like from inside.

show: "scatter-hits"

The arguments are the ones A class is no longer one matrix passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

The cheapest leaf for cos(κr)/r on two draws of 512 uniformly random points, at five frequencies and three tolerances, and whether the width probe names it — read over every block, three blocks a class, and oneEvery block: 30 of 30. Three blocks a class: 30. One block a class: 30. Cheapest leaves by cell: draw 1, κ 40/3, ε 10⁻⁴: 8; draw 1, κ 40/3, ε 10⁻⁸: 16; draw 1, κ 40/3, ε 10⁻¹²: 16; draw 1, κ 40, ε 10⁻⁴: 8; draw 1, κ 40, ε 10⁻⁸: 16; draw 1, κ 40, ε 10⁻¹²: 16; draw 1, κ 120, ε 10⁻⁴: 8; draw 1, κ 120, ε 10⁻⁸: 16; draw 1, κ 120, ε 10⁻¹²: 32; draw 1, κ 360, ε 10⁻⁴: 16; draw 1, κ 360, ε 10⁻⁸: 32; draw 1, κ 360, ε 10⁻¹²: 32; draw 1, κ 1080, ε 10⁻⁴: 16; draw 1, κ 1080, ε 10⁻⁸: 32; draw 1, κ 1080, ε 10⁻¹²: 32; draw 2, κ 40/3, ε 10⁻⁴: 8; draw 2, κ 40/3, ε 10⁻⁸: 16; draw 2, κ 40/3, ε 10⁻¹²: 16; draw 2, κ 40, ε 10⁻⁴: 8; draw 2, κ 40, ε 10⁻⁸: 16; draw 2, κ 40, ε 10⁻¹²: 16; draw 2, κ 120, ε 10⁻⁴: 8; draw 2, κ 120, ε 10⁻⁸: 16; draw 2, κ 120, ε 10⁻¹²: 32; draw 2, κ 360, ε 10⁻⁴: 16; draw 2, κ 360, ε 10⁻⁸: 32; draw 2, κ 360, ε 10⁻¹²: 32; draw 2, κ 1080, ε 10⁻⁴: 16; draw 2, κ 1080, ε 10⁻⁸: 32; draw 2, κ 1080, ε 10⁻¹²: 32. The same leaves are cheapest on the uniform grid.draw 140/3401203601080ε = 10⁻⁴8881616ε = 10⁻⁸1616163232ε = 10⁻¹²1616323232draw 240/3401203601080888161616161632321616323232frequency κ across, tolerance down; each cell prints the cheapest leafshaded: all three probes name itscattering moved no decision

Every block: 30 of 30. Three blocks a class: 30. One block a class: 30. Cheapest leaves by cell: draw 1, κ 40/3, ε 10⁻⁴: 8; draw 1, κ 40/3, ε 10⁻⁸: 16; draw 1, κ 40/3, ε 10⁻¹²: 16; draw 1, κ 40, ε 10⁻⁴: 8; draw 1, κ 40, ε 10⁻⁸: 16; draw 1, κ 40, ε 10⁻¹²: 16; draw 1, κ 120, ε 10⁻⁴: 8; draw 1, κ 120, ε 10⁻⁸: 16; draw 1, κ 120, ε 10⁻¹²: 32; draw 1, κ 360, ε 10⁻⁴: 16; draw 1, κ 360, ε 10⁻⁸: 32; draw 1, κ 360, ε 10⁻¹²: 32; draw 1, κ 1080, ε 10⁻⁴: 16; draw 1, κ 1080, ε 10⁻⁸: 32; draw 1, κ 1080, ε 10⁻¹²: 32; draw 2, κ 40/3, ε 10⁻⁴: 8; draw 2, κ 40/3, ε 10⁻⁸: 16; draw 2, κ 40/3, ε 10⁻¹²: 16; draw 2, κ 40, ε 10⁻⁴: 8; draw 2, κ 40, ε 10⁻⁸: 16; draw 2, κ 40, ε 10⁻¹²: 16; draw 2, κ 120, ε 10⁻⁴: 8; draw 2, κ 120, ε 10⁻⁸: 16; draw 2, κ 120, ε 10⁻¹²: 32; draw 2, κ 360, ε 10⁻⁴: 16; draw 2, κ 360, ε 10⁻⁸: 32; draw 2, κ 360, ε 10⁻¹²: 32; draw 2, κ 1080, ε 10⁻⁴: 16; draw 2, κ 1080, ε 10⁻⁸: 32; draw 2, κ 1080, ε 10⁻¹²: 32. The same leaves are cheapest on the uniform grid.

show: "scatter-storage"

The arguments are the ones A class is no longer one matrix passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

Storage at every leaf size relative to the cheapest, cos(κr)/r at κ = 1,080 and three tolerances: two draws of random points, solid, and the uniform grid, dashedε 10⁻⁴: draw 1 1.100, 1.026, 1.000, 1.107, 1.489; draw 2 1.098, 1.027, 1.000, 1.108, 1.497. ε 10⁻⁸: draw 1 1.174, 1.111, 1.022, 1.000, 1.163; draw 2 1.164, 1.106, 1.022, 1.000, 1.163. ε 10⁻¹²: draw 1 1.227, 1.176, 1.085, 1.000, 1.052; draw 2 1.226, 1.179, 1.088, 1.000, 1.053. The minimum falls at the same leaf as on the grid at every tolerance.11.11.21.31.41.51.6leaf sizestorage over the cheapest leaf's48163264ε = 10⁻⁴ε = 10⁻⁸ε = 10⁻¹²dashed: the uniform gridthe same minimum, scattered or not

ε 10⁻⁴: draw 1 1.100, 1.026, 1.000, 1.107, 1.489; draw 2 1.098, 1.027, 1.000, 1.108, 1.497. ε 10⁻⁸: draw 1 1.174, 1.111, 1.022, 1.000, 1.163; draw 2 1.164, 1.106, 1.022, 1.000, 1.163. ε 10⁻¹²: draw 1 1.227, 1.176, 1.085, 1.000, 1.052; draw 2 1.226, 1.179, 1.088, 1.000, 1.053. The minimum falls at the same leaf as on the grid at every tolerance.

show: "scatter-classes", kappa: 360

The arguments are the ones A class is no longer one matrix passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

Every admissible block's rank at ε = 10⁻⁸, cos(κr)/r with κ = 360 on 512 random points, grouped into classes by width and offset from the diagonal, with each width's mean rank and the threshold the rule compares it with22 classes. Widest spread inside a class: 4-wide 1, 8-wide 3, 16-wide 3, 32-wide 1. Mean rank by width: 4-wide 3.99, 8-wide 6.16, 16-wide 8.24, 32-wide 9.29. The cheapest leaf is 32 and every probe names it.024681012rank of a block at ε = 10⁻⁸4-wide8-wide16-wide32-wideline: the width's mean · dashed: the rank at which it stops halvinga class is no longer one matrix

22 classes. Widest spread inside a class: 4-wide 1, 8-wide 3, 16-wide 3, 32-wide 1. Mean rank by width: 4-wide 3.99, 8-wide 6.16, 16-wide 8.24, 32-wide 9.29. The cheapest leaf is 32 and every probe names it.

show: "scatter-spread"

The arguments are the ones A class is no longer one matrix passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

The widest spread of ranks inside one class of blocks of each width, on every cell of both draws of random points16-wide classes spread by more than one rank on 18 of 30 cells, by up to 4; 8-wide by up to 3; 32-wide by up to 4. On the uniform grid every spread is zero.012345widest spread of ranks in one class4-wide classes8-wide classes16-wide classes32-wide classesdashed: the predictedspread for 16-widethe thirty cells: draw, then frequency, then toleranceon a grid every spread is zerothe prediction's mechanism fails

16-wide classes spread by more than one rank on 18 of 30 cells, by up to 4; 8-wide by up to 3; 32-wide by up to 4. On the uniform grid every spread is zero.

show: "scatter-margin"

The arguments are the ones A class is no longer one matrix passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

For every cell of both draws, the closest any of the rule's comparisons came to its threshold: the distance in ranks between a width's mean rank and the rank at which the rule stops halvingSmallest 0.17 at κ 120, ε 10⁻¹²; median 0.69; largest 2.67.00.511.522.53closest decision, ranks from the thresholddraw 1draw 2the thirty cells: draw, then frequency, then tolerancea decision closer than its spread could flipno decision was close

Smallest 0.17 at κ 120, ε 10⁻¹²; median 0.69; largest 2.67.

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.

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

the partition is the same at ε = 0.01 — checked 6 times

the mean rank rises by one from 2 digits to 4 — checked 5 times

the product reads every stored number once at leaf 4 — checked 5 times

and every size is still the matrix at n = 64 — checked 4 times

leaf 32 overtakes leaf 16 only at a positive overhead — checked 2 times

no positive overhead makes leaf 4 beat leaf 8 — checked 2 times

a cell the probe measures

a frequency the dial offers

a frequency the offsets are measured at

a guess this figure draws

a kernel this file defines

a leaf the halving reaches by halving

a looser separation never stores more

a partition rule this file defines

a per-block overhead between none and ten thousand operations

a power of two, so the bisection is exact at every level

a rank guess that is a number

a roughness view this figure draws

a shift inside the range the matrix stays positive definite and the geometry stays the geometry

a size the dense reference below is affordable at

a storage view this figure draws

a tolerance the dial draws

a tolerance the leaf sweep measures

an accuracy every frequency has singular values across

an accuracy every one of the four kernels has singular values across

an accuracy the blocks have singular values across

an accuracy, not a rank

an admissibility constant inside the range the expansion converges over

and is substantially worse

and just past the first crossover it does not

and never carries a smaller mean rank

and so is the split between low-rank and dense

and the crossovers come in order

and the highest reaches it

and the ranks do not move with the leaf

and the slope is linear in the mean rank

and there is a leaf above the optimum to be overtaken

and two of them hold more than half the range

at about five numbers per unknown per doubling per unit of rank

at no overhead the storage optimum stands

matmul shapes agree

no frequency passes twice the smooth kernel's rank

so the two objectives choose the same leaf

the constant selects among many partitions

the largest leaf is never the best

the storage per unknown grows by a constant per doubling, which is a logarithm

Against the rule

It draws a decomposition and prints its residual. It calls storageAgainstSize, 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.

Neither sparse nor dense

A class is no longer one matrix

On a uniform grid every off-diagonal block of one width and one offset is the same matrix, so a probe that compresses one block of each class reads the whole partition's ranks and names a hierarchical matrix's cheapest leaf. On scattered points that stops being true, and the prediction was that the ranks inside a class would spread by at most one, that three blocks a class would still name the leaf everywhere, and that the probe would fail first at the highest frequency. The ranks spread by up to four. Three blocks a class still name the cheapest leaf on all thirty cells of two draws — so does one — and nothing fails at the highest frequency. The decision survives because no mean the rule compares sits close to its threshold, and scattering moved no cheapest leaf at all.

Neither sparse nor dense

A geometry setting that is a second accuracy

The tolerance raises every rank and moves no block; the leaf moves every block and no rank. The constant that decides how far apart two clusters must be before their block may be compressed moves both — 592 blocks at mean rank 3.25 at one end and 94 at mean rank 8.94 at the other — and the storage falls the whole way while the error against the dense matrix rises by a factor of 3.5, at a tolerance that never changed. It has no best setting, and it is not a third knob on the storage.

Neither sparse nor dense

A prediction that arrives a decade late

A rougher kernel raises every rank, a higher rank raises the side at which compressing a block stops paying, so the leaf that stores least should rise. Across four kernels whose largest rank runs 5, 5, 9 and 10, it is 16 on three of them and a tie between 8 and 16 on the fourth. The prediction is right in sign and out by a decade of tolerance, and the reason is a ceiling: an oscillation multiplies the rank by exactly two — 3 and 6, 4 and 8, 5 and 10, 6 and 12, 7 and 14 — at any frequency, because a cosine of a difference is a rank-two function.

Neither sparse nor dense

A quarter of the leaf

The leaf that stores a hierarchical matrix most cheaply had been read off a table of nine points, with the suggestion that it depends on the mean rank alone. Across six kernels at five tolerances — thirty cells — it does, once the mean rank is read in the right place. Plotted against the mean rank at a fixed leaf of 16, two cells a tenth of a rank apart want leaves of 8 and 16. Plotted against the rank of the blocks a halving would create, one rule — halve the leaf while that rank is below a quarter of the leaf — predicts the best leaf on 28 of the 30, and the two it misses are the two whose rank sits within three per cent of the threshold. The fractional power the last measurement expected to be rough is smoother than 1/r.

Neither sparse nor dense

A second objective that is the first one doubled

Counting the operations a hierarchical product does was supposed to give the leaf size a second optimum, somewhere other than where the storage puts it. The count is 160,128, 139,904, 135,936, 155,136 and 216,064 against stored totals of 80,064, 69,952, 67,968, 77,568 and 108,032 — twice each, at every leaf, exactly. The two objectives cannot disagree, and what separates the leaf that stores least from the leaf that runs fastest is a charge of about 139 operations for reaching a block at all.

Neither sparse nor dense

An offset that bends twice

A hierarchical matrix's cheapest leaf can be named by one build at a leaf of 8, and a rank guessed from the tolerance alone names it on smooth kernels and misses on oscillatory ones. The repair proposed was a term in the frequency: the oscillatory kernels sat two thirds of a rank and one and a half ranks above 1/r at frequencies 40 and 120, and the prediction was a fixed step each time the frequency triples. On five frequencies from 13⅓ to 1,080 the step is a third of a rank, then one, then one and a half, then a third again — a curve that bends twice. The last bend is the smallest blocks filling up: at the tightest tolerance every 8-wide block is at full rank from 360 on. No fixed term reproduces it, and the one build that reads it directly still names the cheapest leaf on thirteen cells of fifteen, never storing two per cent too much, where the uncorrected guess misses seven by up to nine.

Neither sparse nor dense

Each halving reads its own width

A hierarchical matrix's cheapest leaf is found by halving it while the blocks the halving creates have rank below a quarter of the leaf. The proposal was to probe only the near blocks of one compression at a leaf of 8, predicted to do at least as well as the whole compression. It does worse: twelve cells of fifteen against thirteen, every miss naming 16 where 32 is cheapest, because the decision between 32 and 16 turns on whether a block reaches rank 8 and an 8-wide block cannot exceed it. Read each halving off the blocks of its own width instead and the probe names the cheapest leaf on all fifteen oscillatory cells and all thirty cells of six kernels, beating even the rule with every leaf compressed, from eighteen small blocks at under one per cent of the work of the compression it replaces.

Neither sparse nor dense

One build tells the leaf

The rule that picks a hierarchical matrix's cheapest leaf — halve it while the rank at half the leaf is below a quarter of the leaf — reads ranks that exist only after the matrix has been built at every candidate leaf. Fed instead the rank a code can guess from the tolerance alone, one rank per two decades, it names the best leaf on twenty-three cells of thirty, and on the rank-one kernel it cannot see it stores up to seventy-two per cent too much. Doubling the guess for an oscillation, as earlier measurements suggested, makes it worse: eighteen of thirty. Building once, at a single leaf, and holding that build's mean rank fixed names the best leaf on twenty-nine — one more than the rule that builds at all five — and never stores three per cent more than the least.

Neither sparse nor dense

The offset that moved the slope

The accuracy is supposed to lift a storage curve and leave its growth alone. Measured at seven tolerances, the strong partition adds 10.9 numbers per unknown per doubling at two digits and 36.5 at twelve — the growth rate more than triples, so ten decades of accuracy cost 33 per cent more storage at 64 unknowns and 118 per cent at 512.

Neither sparse nor dense

The partition that does not move

The storage curve's growth rate more than triples between two digits and twelve, and the earlier measurement said so without saying what moves it. There are two candidates and the measurement separates them decisively: the partition is identical at every tolerance — 250 blocks, 156 of them low-rank, 94 dense — and the mean rank rises by exactly one per two decades of accuracy. The slope is 5.11 numbers per unknown per doubling per unit of rank, with a worst residual of 0.03 over six tolerances.

Neither sparse nor dense

The test that costs what it saves

The partition that refuses to compress a touching pair keeps every rank at five while the other lets them climb from nine to thirteen. It also stores more numbers at every size measured — 67,968 against 61,440 at n = 512 — and which of those two facts matters is a question about how large the problem is going to get.

Neither sparse nor dense

Two knobs on one number

The tolerance raises every block's rank and leaves the partition alone. The leaf size does the opposite — it changes how many blocks there are and does not move a single rank. Both act on the same storage, and only one of them has a best setting: at eight digits the least storage is at a leaf of 16 and the largest leaf tried costs 59 per cent more. The best leaf rises with the accuracy, from 4 at two digits to 16 at twelve, and the influence runs only that way.

The whole library · All essays · What must fail