Generator

Four candidate singularity tests on three matrices, at n = 40

One function in the determinant library, called 19 times across 3 essays. Below: what it draws at its defaults, what it draws at every value an essay asks for, the 17 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 four candidate singularity tests on three matrices, at n = 40. A table of four quantities on three matrices. 0.1·I at n = 40 has a condition number of exactly 1 and a determinant of 10⁻⁴⁰; a matrix with κ = 10¹⁰ normalised to |det| = 1 has a determinant of one. The determinant and its nth root give the wrong verdict on both, the smallest singular value gives the wrong verdict on the normalised matrix because it carries the units, and only σₘᵢₙ/σₘₐₓ is right on all three. A test is read as saying *singular* when its number is below 10⁻⁶; green cells agree with the true verdict and red ones do not.

singularity-tests is one function in lib/figures/determinant.js — the determinant — the scalar that answers none of the questions it is asked. 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.

Four candidate singularity tests on three matrices, at n = 40A table of four quantities on three matrices. 0.1·I at n = 40 has a condition number of exactly 1 and a determinant of 10⁻⁴⁰; a matrix with κ = 10¹⁰ normalised to |det| = 1 has a determinant of one. The determinant and its nth root give the wrong verdict on both, the smallest singular value gives the wrong verdict on the normalised matrix because it carries the units, and only σₘᵢₙ/σₘₐₓ is right on all three. A test is read as saying *singular* when its number is below 10⁻⁶; green cells agree with the true verdict and red ones do not.does this matrix look nearly singular?green: the test agrees with the truth · red: it does not · the bar under each number is its magnitude, over sixty-two decades|det A||det A|^(1/n)σₘᵢₙ1/κ = σₘᵢₙ/σₘₐₓ0.1·I at n = 40perfectly conditioned10⁻⁴⁰0.10.11κ = 10¹⁰, |det| = 1nearly singular1110·10⁻⁶10·10⁻¹¹Hilbert at n = 8nearly singular2.7·10⁻³³8.5·10⁻⁵1.1·10⁻¹⁰6.6·10⁻¹¹the two counterexamplesκ of the scaled identity1its determinant10⁻⁴⁰κ of the normalised matrix10¹⁰its determinant1det(cA) = cⁿ det(A)so a determinant carries the units n times over

A table of four quantities on three matrices. 0.1·I at n = 40 has a condition number of exactly 1 and a determinant of 10⁻⁴⁰; a matrix with κ = 10¹⁰ normalised to |det| = 1 has a determinant of one. The determinant and its nth root give the wrong verdict on both, the smallest singular value gives the wrong verdict on the normalised matrix because it carries the units, and only σₘᵢₙ/σₘₐₓ is right on all three. A test is read as saying *singular* when its number is below 10⁻⁶; green cells agree with the true verdict and red ones do not.

show: "ts-sign", small: 2

The arguments are the ones A second small value costs the sign nothing passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

At order 4 with two small singular values, over forty draws at each relative distance from singular: the share whose determinant from LU has the wrong sign, and the share a first-order bound certifies6 bits: wrong 0%, certified 100%; 9 bits: wrong 0%, certified 100%; 12 bits: wrong 0%, certified 100%; 15 bits: wrong 0%, certified 100%; 18 bits: wrong 0%, certified 100%; 21 bits: wrong 0%, certified 100%; 24 bits: wrong 0%, certified 100%; 27 bits: wrong 0%, certified 100%; 30 bits: wrong 0%, certified 100%; 33 bits: wrong 0%, certified 100%; 36 bits: wrong 0%, certified 100%; 39 bits: wrong 0%, certified 93%; 42 bits: wrong 0%, certified 30%; 45 bits: wrong 0%, certified 0%; 48 bits: wrong 3%, certified 0%; 51 bits: wrong 48%, certified 0%. The first wrong sign is at 48 bits, and the bound certifies nine in ten to 39.0612182430364248540255075100bits of distance from singular, each small valueper cent of forty drawscertified by the boundsign wrongorder 4 · two small · LU with partial pivotingthe same edge for any count

6 bits: wrong 0%, certified 100%; 9 bits: wrong 0%, certified 100%; 12 bits: wrong 0%, certified 100%; 15 bits: wrong 0%, certified 100%; 18 bits: wrong 0%, certified 100%; 21 bits: wrong 0%, certified 100%; 24 bits: wrong 0%, certified 100%; 27 bits: wrong 0%, certified 100%; 30 bits: wrong 0%, certified 100%; 33 bits: wrong 0%, certified 100%; 36 bits: wrong 0%, certified 100%; 39 bits: wrong 0%, certified 93%; 42 bits: wrong 0%, certified 30%; 45 bits: wrong 0%, certified 0%; 48 bits: wrong 3%, certified 0%; 51 bits: wrong 48%, certified 0%. The first wrong sign is at 48 bits, and the bound certifies nine in ten to 39.

show: "ts-size"

The arguments are the ones A second small value costs the sign nothing passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

At order 4, the median bits by which the determinant falls below the product of its row lengths, and the median condition number in bits, against the distance from singular, with one, two and three small singular valuesone small: below by 17 at 12, 30 at 24, 42 at 36, 53 at 48; condition 18 at 12, 31 at 24, 43 at 36, 55 at 48; two small: below by 32 at 12, 56 at 24, 80 at 36, 104 at 48; condition 19 at 12, 31 at 24, 43 at 36, 55 at 48; three small: below by 44 at 12, 79 at 24, 116 at 36, 153 at 48; condition 19 at 12, 31 at 24, 43 at 36, 55 at 48, in bits.061218243036424854020406080100120140160bits of distance from singular, each small valuebitssize: one smallsize: two smallsize: three smallcondition, every countforty draws at each distancethe size counts them, the condition does not

one small: below by 17 at 12, 30 at 24, 42 at 36, 53 at 48; condition 18 at 12, 31 at 24, 43 at 36, 55 at 48; two small: below by 32 at 12, 56 at 24, 80 at 36, 104 at 48; condition 19 at 12, 31 at 24, 43 at 36, 55 at 48; three small: below by 44 at 12, 79 at 24, 116 at 36, 153 at 48; condition 19 at 12, 31 at 24, 43 at 36, 55 at 48, in bits.

show: "ts-err"

The arguments are the ones A second small value costs the sign nothing passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

At order 4, the median relative error of the determinant's value from LU against the distance from singular, with one, two and three small singular valuesone small: 1e-12 at 12, 7e-9 at 24, 3e-5 at 36, 1e-1 at 48; two small: 3e-12 at 12, 9e-9 at 24, 6e-5 at 36, 1e-1 at 48; three small: 1e-12 at 12, 8e-9 at 24, 2e-5 at 36, 1e-1 at 48 bits.06121824303642485410⁻¹⁶10⁻¹⁴10⁻¹²10⁻¹⁰10⁻⁸10⁻⁶10⁻⁴10⁻²1bits of distance from singular, each small valuerelative error of the valueone smalltwo smallthree smallforty draws at each distanceone curve, three counts

one small: 1e-12 at 12, 7e-9 at 24, 3e-5 at 36, 1e-1 at 48; two small: 3e-12 at 12, 9e-9 at 24, 6e-5 at 36, 1e-1 at 48; three small: 1e-12 at 12, 8e-9 at 24, 2e-5 at 36, 1e-1 at 48 bits.

show: "ts-axis"

The arguments are the ones A second small value costs the sign nothing passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

At order 4, the median relative error of the determinant's value from LU against how many bits the determinant falls below the product of its row lengths, with one, two and three small singular valuesone small: 1e-12 at 17 bits below, 7e-9 at 30 bits below, 3e-5 at 42 bits below, 1e-1 at 53 bits below; two small: 3e-12 at 32 bits below, 9e-9 at 56 bits below, 6e-5 at 80 bits below, 1e-1 at 104 bits below; three small: 1e-12 at 44 bits below, 8e-9 at 79 bits below, 2e-5 at 116 bits below, 1e-1 at 153 bits below.02040608010012014016010⁻¹⁶10⁻¹⁴10⁻¹²10⁻¹⁰10⁻⁸10⁻⁶10⁻⁴10⁻²1bits the determinant falls below its row lengths' productrelative error of the valueone smalltwo smallthree smallthe same draws, the size on the axisthe size is the wrong scale

one small: 1e-12 at 17 bits below, 7e-9 at 30 bits below, 3e-5 at 42 bits below, 1e-1 at 53 bits below; two small: 3e-12 at 32 bits below, 9e-9 at 56 bits below, 6e-5 at 80 bits below, 1e-1 at 104 bits below; three small: 1e-12 at 44 bits below, 8e-9 at 79 bits below, 2e-5 at 116 bits below, 1e-1 at 153 bits below.

show: "ts-limits"

The arguments are the ones A second small value costs the sign nothing passes. A value nobody placed would be a picture no essay asked for and no claim was ever checked against.

For each order and each count of small singular values, the last distance from singular at which a first-order bound certifies nine signs in ten, and the first at which a sign is wrong, in bitsorder 4: one small certified to 39 and first wrong at 48, two small certified to 39 and first wrong at 48, three small certified to 39 and first wrong at 45; order 6: one small certified to 36 and first wrong at 45, two small certified to 36 and first wrong at 45, three small certified to 36 and first wrong at 48; order 8: one small certified to 36 and first wrong at 48, two small certified to 36 and first wrong at 45, three small certified to 36 and first wrong at 45.3036424854order 4one small: certified to39one small: first wrong sign48two small: certified to39two small: first wrong sign48three small: certified to39three small: first wrong sign45order 6one small: certified to36one small: first wrong sign45two small: certified to36two small: first wrong sign45three small: certified to36three small: first wrong sign48order 8one small: certified to36one small: first wrong sign48two small: certified to36two small: first wrong sign45three small: certified to36three small: first wrong sign45bits of distance from singular, each small valueforty draws at each distancethe window does not close

order 4: one small certified to 39 and first wrong at 48, two small certified to 39 and first wrong at 48, three small certified to 39 and first wrong at 45; order 6: one small certified to 36 and first wrong at 45, two small certified to 36 and first wrong at 45, three small certified to 36 and first wrong at 48; order 8: one small certified to 36 and first wrong at 48, two small certified to 36 and first wrong at 45, three small certified to 36 and first wrong at 45.

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.

17 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 count the dial offers

a multiple of the identity is perfectly conditioned at every size

a scale the dial offers

a scale this file draws

a scaling below one, so the determinant underflows rather than overflows

a size the SVD of the small cases can afford

an order and a count this file measures

and Hilbert is the case where both numbers agree that something is wrong

and is ill-conditioned by ten orders of magnitude

and its determinant is exactly cⁿ

at least one row

curves with points on them

every Bareiss division is exact

LU is for square matrices

matmul shapes agree

the constructed matrix has κ = 10000000000

the normalised matrix has a determinant of one

Against the rule

The rule does not apply to it. It factorises nothing, so there is no residual it could be withholding. That is worth stating rather than leaving blank: a site that reported the rule as satisfied by every generator would be counting mostly generators the rule never reached.

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.

Two errors, and whose fault they are

A second small value costs the sign nothing

A determinant's sign computed by LU was found to fail only where the value's relative error reaches one, 45 to 51 bits from singular on a matrix one rank short. Give the matrix a second small singular value and the determinant shrinks by twice as many bits, and the prediction was that the sign would therefore fail at about half the distance, near 24 bits, because a condition number sees only one small value. It fails at 48 bits at order 4 with one small value and at 48 with two, and at 45 with three. The determinant loses one, two and three bits for every bit of distance; the value's error and the condition number lose one, whatever the count. The condition number was seeing exactly what the sign depends on, and the determinant's size was the wrong scale to read it on.

Two errors, and whose fault they are

The number that decides nothing

The determinant is the first scalar anybody attaches to a matrix and the last one worth consulting. A tenth of the identity has a determinant of 10⁻⁶⁰ and a condition number of exactly one. The Hilbert matrix's determinant stops being right at n = 13 and stops being a number at n = 29, and nothing in between reports either.

Two errors, and whose fault they are

The sign is the last digit to go

The number that decides nothing allowed the determinant one use: its sign, which it called a clean integer with no error term, and a fact wherever the input is exact. The input to the classic orientation test is exact, and on a grid of adjacent doubles the sign comes back wrong on 1,712 of 2,304 points, mostly as zero. But a sign does have an error term. A bound costing three multiplications certifies every random triple down to thirty-six bits from the line and is never wrong on anything measured, and on a matrix of order four the sign is right on every draw at forty-five bits from singular, where the value has lost all but two digits. The value goes a digit at a time, and the sign is the last digit.

The whole library · All essays · What must fail