Algebra

A determinant built from two-by-two pieces

In 1866 Charles Dodgson, better known as Lewis Carroll, showed how to compute a determinant using nothing but 2 × 2 determinants and division. The divisions always come out whole, which nothing in the recipe explains. Change one minus sign to a plus and the method computes something else: a sum over a family of matrices of 0s, 1s and −1s that are not permutations. Counting that family took mathematicians from 1983 to 1996.

Worth reading first: The only function that behaves like a volume · The same sum without its minus signs.

The determinant of a 2 × 2 array is ad−bcad - bc, the factor by which the array’s map stretches area, and everybody can compute it. The determinant of a larger array is usually computed by elimination: subtract multiples of rows until the array is triangular, then multiply the diagonal. In 1866 Charles Dodgson — an Oxford mathematics lecturer, and the author of Alice’s Adventures in Wonderland the year before — published a third way, which uses only the 2 × 2 rule and division, applied over and over to smaller and smaller arrays.

The opening figure runs it on a 4 × 4 array of whole numbers. Replace each 2 × 2 block of neighbouring entries by its determinant, giving a 3 × 3 array. Do the same to that, but divide each new number by the entry of the original array that sat at the centre of its block. Do it once more, dividing by the centres of the 3 × 3 array. One number is left, 188, and it is the determinant. Dodgson called the method condensation.

A determinant from two-by-two pieces. layers 3 1 2 4/1 4 1 2/2 1 5 1/1 3 2 6 | 11 -7 0/-7 19 -9/5 -13 28 | 40 63/-4 83 | 188; det 188
Fig. 1 Condensing a 4 × 4 array: the 2 × 2 determinants of neighbouring entries, then each new one divided by the centre entry two steps back, down to the determinant, 188.

Three things about it are surprising, and they are the subject of this essay. The divisions always come out whole, although nothing in the recipe makes them divide. The method can break down when an entry it must divide by is nought, though the determinant exists perfectly well. And if one minus sign in the 2 × 2 rule is changed to a plus, the method computes something new, which turns out to be a sum over a family of matrices nobody had counted — the alternating sign matrices, whose number was guessed in 1983 and proved in 1996.

A determinant from two-by-two pieces

The first step of the opening figure is pure 2 × 2 determinants: the top-left block 3114\begin{smallmatrix} 3 & 1 \\ 1 & 4 \end{smallmatrix} gives 3⋅4−1⋅1=113 \cdot 4 - 1 \cdot 1 = 11, the next 1⋅1−2⋅4=−71 \cdot 1 - 2 \cdot 4 = -7, and so on across the array. The second step takes the 2 × 2 determinants of that 3 × 3 array and divides each by the original entry its block was centred on: the top-left one is (11⋅19−(−7)(−7))/4=40(11 \cdot 19 - (-7)(-7))/4 = 40. The third does the same once more and leaves 188.

Each number in each layer has a meaning. The entries of the first condensed array are the connected 2 × 2 minors of the original — determinants of blocks of neighbouring rows and columns. The entries of the second are its connected 3 × 3 minors, and the single entry of the last is the 4 × 4 minor, the whole determinant. Condensation computes every connected minor of every size, each from four of the next size down and one of the size below that.

Counted as arithmetic, the method is as cheap as elimination: about n3n^3 multiplications for an n×nn \times n array, against the n!n! terms of the expansion that defines the determinant as the function that behaves like a volume. What it offers over elimination is uniformity. Every step does the same thing to every entry, with no choice of pivot and no row swaps, which is why Dodgson liked it for hand computation and why it has since been studied as a parallel algorithm.

The identity condensation rests on

The identity condensation rests on. Desnanot-Jacobi checked on 2000 random integer matrices, sizes 3-7
Fig. 2 The Desnanot–Jacobi identity for a 5 × 5 array: the determinant of the whole times that of its centre equals the product of the two diagonal corner minors minus the product of the two off-diagonal ones. Checked exactly on 2,000 random whole-number arrays of sizes 3 to 7.

The method works because of an identity found by Pierre Desnanot in 1819 for small sizes and proved in general by Carl Jacobi. Take an n×nn \times n array MM. Delete its first row and column to get the bottom-right minor, its last row and column for the top-left, and so on, and delete both the first and last rows and columns to get the centre. Then

det⁡M⋅det⁡Mcentre=det⁡MTLdet⁡MBR−det⁡MTRdet⁡MBL.\det M \cdot \det M_{\text{centre}} = \det M_{\text{TL}} \det M_{\text{BR}} - \det M_{\text{TR}} \det M_{\text{BL}}.

It is the 2 × 2 rule again, with the four corner minors in place of the four entries, corrected by the centre. The figure draws the six arrays involved and checks the identity exactly, in whole-number arithmetic, on 2,000 random arrays of sizes 3 to 7. Solving it for det⁡M\det M is exactly one step of condensation: the new number is the 2 × 2 determinant of four minors one size down, divided by a minor two sizes down.

The identity also explains why the divisions are exact. Each number in each layer is itself a determinant of whole numbers, hence a whole number; the identity says that the quotient equals one, so the division must come out even. The recipe does not know this — it divides one integer by another and gets lucky every time — but the minors do. In the same way that a determinant of a graph’s Laplacian counts trees, the numbers here are always counting something whole, even when the formula producing them has a fraction in it.

A nought in the centre

A nought in the centre. det 50; blocked at step 2 by A[1][1] = 0; rotated rows give -50
Fig. 3 Condensation breaks when a number it must divide by is nought: the centre of this array holds a 0, so the second step would divide by it. Moving the top row to the bottom puts different numbers in the centre, the condensation runs to −50, and the determinant is 50.

The weakness is visible in the formula. Every step divides by interior entries of the layer two back, and if any of them is nought the step is undefined. The figure’s array has determinant 50, but one of its centre entries is 0, so the second step cannot be carried out. Nothing is wrong with the array; the method has simply asked a question — what is this minor divided by nought? — that has no answer.

Dodgson’s remedy was to rearrange the array. Moving the top row to the bottom is three swaps of adjacent rows, which multiplies the determinant by −1-1, and it moves different entries into the interior. In the figure the rearranged array condenses without trouble to −50-50, so the original determinant is 50. Any reordering of rows and columns can be tried in the same way, and some always works — unless the array is singular in a way that forces zeros into every interior position, as an array with a row of zeros does, though then the determinant is nought anyway. Zeros in awkward places are not rare in practice: a table of random signs is singular far more often than intuition suggests, and an array of small whole numbers has many vanishing minors.

A cleaner remedy, discovered much later, is to perturb. Replace every entry xijx_{ij} by an indeterminate, condense symbolically, and set the indeterminates back to their values at the end. Each condensed entry is a determinant, a polynomial in the entries, so the intermediate divisions never fail as formal operations; only evaluating at a bad point does. That is the starting point for the rest of the story.

A pyramid of numbers

The layers of a condensation stack naturally into a pyramid. Put the n×nn \times n array on the floor, the (n−1)×(n−1)(n-1) \times (n-1) layer above it with each entry over the centre of the four it came from, and so on up to the single number at the apex. The array of 1s that the recipe imagines below the floor — the divisors for the very first step — makes a further layer underneath. Every entry of the pyramid is then computed from five others: four neighbours on the layer below, at the corners of a square, and one on the layer below that, directly beneath its centre. Those five points, with the new entry on top, are the six vertices of an octahedron, and the rule

ftop⋅fbottom=fNfS−fEfWf_{\text{top}} \cdot f_{\text{bottom}} = f_{\text{N}} f_{\text{S}} - f_{\text{E}} f_{\text{W}}

is known, in the form that dropped the reference to matrices, as the octahedron recurrence.

Seen this way condensation is a local rule on a three-dimensional lattice, and the determinant is what the rule produces at the apex when the floor is an array and the basement is all 1s. Other initial data give other functions, and the recurrence turns up in places that have nothing to do with determinants: in the theory of integrable systems, where it is a discrete form of the Hirota equation, and in the counting of tilings, where each entry counts the domino tilings of a region whose shape is the cone below it. The Laurent phenomenon below is a statement about this pyramid — that whatever numbers are placed on the floor and basement, every entry above is a polynomial in them and their reciprocals.

The pyramid also explains why condensation is a natural parallel algorithm. Every entry of a layer can be computed at once from the two layers below, and the depth of the computation is nn, not n3n^3; a grid of n2n^2 processors, each holding one entry and talking only to its neighbours, computes the determinant in nn rounds. Dodgson had hand computation in mind — a clerk could condense an array without ever choosing a pivot — and the property that made it easy for a clerk is the one that makes it easy for a grid.

Dodgson’s interest in procedures of this kind was not confined to determinants. A decade later he wrote pamphlets on elections, proposing to choose the candidate who needs the fewest swaps of adjacent preferences to beat every rival head to head — another rule built from small local exchanges, and one that has since proved, unlike condensation, computationally hard.

Seven alternating sign matrices of size three

Seven alternating sign matrices of size three. 001/010/100 001/100/010 010/001/100 010/100/001 010/1-11/010 100/001/010 100/010/001
Fig. 4 The seven 3 × 3 arrays of 0s, 1s and −1s in which every row and column sums to 1 and the nonzero entries alternate in sign along each: six permutation matrices, and one with a −1 at the centre.

Run condensation symbolically on a 3 × 3 array with entries xijx_{ij}. The first layer is four 2 × 2 minors. The second step multiplies two of them, subtracts the product of the other two, and divides by x22x_{22}. Expanding before dividing, the numerator has eight terms. Six of them contain x22x_{22} and, divided by it, become the six terms of the determinant. The other two are both x12x21x23x32x_{12}x_{21}x_{23}x_{32}, one with a plus sign and one with a minus, and they cancel — but only because the 2 × 2 rule has a minus sign in it. With any other sign they would survive as a term x12x21x23x32/x22x_{12}x_{21}x_{23}x_{32}/x_{22}, with an entry in the denominator.

Record a term’s exponents in a 3 × 3 array and that term is the matrix with a −1-1 in the centre and 1s on either side of it, drawn last in the figure. The six permutation matrices, whose entries are the exponents of the determinant’s six terms, have one 1 in each row and column. The seventh has two 1s in its middle row and column, separated by a −1-1, so every row and column still sums to 1. Arrays of 0s, 1s and −1s in which every row and column sums to 1 and the nonzero entries alternate in sign along each are called alternating sign matrices. For size 3 there are exactly seven.

Each one carries an inversion number — for a permutation matrix the number of pairs out of order, the statistic whose parity is the sign of a shuffle — extended by David Robbins and Howard Rumsey to count, with signs, pairs of nonzero entries one above and to the right of the other. The figure lists them. The seventh matrix has two inversions and one −1-1, and those two numbers turn out to control everything.

Alternating sign matrices against permutations

Alternating sign matrices against permutations. 1: 1 / 1 / 1; 2: 2 / 2 / 2; 3: 7 / 6 / 8; 4: 42 / 24 / 64; 5: 429 / 120 / 1024; 6: 7436 / 720 / 32768
Fig. 5 Alternating sign matrices counted by enumeration for sizes 1 to 6 — 1, 2, 7, 42, 429, 7,436 — beside the n!n! permutations among them, and beside the sum that weights each matrix by 2 for every −1, which is exactly 2n(n−1)/22^{n(n-1)/2}.

How many alternating sign matrices are there? The figure enumerates them for sizes up to 6, row by row, keeping track of each column’s running total: 1, 2, 7, 42, 429, 7,436. The permutation matrices among them, n!n!, are a vanishing fraction — 720 of 7,436 at size 6.

William Mills, David Robbins and Howard Rumsey computed these numbers around 1982 and noticed that they factor into small primes, which counts of combinatorial objects rarely do. They conjectured the formula

An=∏k=0n−1(3k+1)!(n+k)!,A_n = \prod_{k=0}^{n-1} \frac{(3k+1)!}{(n+k)!},

and the figure checks it at every size it enumerates. A proof took more than a decade. Doron Zeilberger published one in 1996, a long paper checked by dozens of volunteer referees, and Greg Kuperberg gave a much shorter one the same year by recognising alternating sign matrices as the states of a model of square ice, with two arrows in and two out at every vertex, whose partition function physicists had already computed.

The figure’s third curve is easier and was proved at once. Weight each matrix by 2 for each of its −1-1 entries and add: the total is 2n(n−1)/22^{n(n-1)/2} exactly — 8, 64, 1,024, 32,768. That number counts the domino tilings of the Aztec diamond, and the connection is one of the routes by which the tilings were first counted. Condensation produces the weights directly, as the next figure shows.

The λ-determinant

The λ-determinant and the term that vanishes at minus one. X=[[2,1,3],[1,3,2],[3,2,4]]: det -3; lambda=1 value 77.666667; matches ASM sum at 73 values
Fig. 6 Condensation run on one 3 × 3 array with the minus sign of every 2 × 2 determinant replaced by +λ+\lambda, against the sum over the seven alternating sign matrices; the two agree at every sampled λ\lambda. At λ=−1\lambda = -1 the result is the determinant, −3-3; at λ=0\lambda = 0, the diagonal product, 24.

Robbins and Rumsey asked in 1986 what condensation computes if the 2 × 2 rule ad−bcad - bc is replaced by ad+λbcad + \lambda bc, with λ\lambda any number, keeping the divisions. The answer is a function of the array they called the λ-determinant, and they proved that it is a sum over alternating sign matrices:

det⁡λM=∑Bλinv⁡(B)−N(B)(1+λ)N(B)∏i,jxijBij,\det\nolimits_\lambda M = \sum_{B} \lambda^{\operatorname{inv}(B) - N(B)}(1 + \lambda)^{N(B)} \prod_{i,j} x_{ij}^{B_{ij}},

where N(B)N(B) counts the −1-1 entries of BB. A −1-1 in BB puts an entry of the array in the denominator, which is why condensation must divide.

The figure computes both sides for one 3 × 3 array at 121 values of λ\lambda and they agree to the last digit. At λ=−1\lambda = -1 the factor (1+λ)N(B)(1 + \lambda)^{N(B)} kills every matrix with a −1-1, the permutation matrices survive with sign (−1)inv⁡(-1)^{\operatorname{inv}}, and the λ-determinant is the ordinary determinant, −3-3. At λ=0\lambda = 0 only the identity matrix survives and the value is the diagonal product, 24. At λ=1\lambda = 1 every matrix with NN negative entries is weighted by 2N2^N: set all the entries of the array to 1 and the sum becomes the 2-enumeration of the last figure. The permanent, which drops the determinant’s signs, is not a value of this function — at λ=1\lambda = 1 the extra matrices are weighted in, rather than cancelled out.

Robbins and Rumsey found something else on the way, and it has outgrown the context it came from. Run condensation on indeterminates, with any λ\lambda, and every entry of every layer is a Laurent polynomial: a polynomial in the entries and their reciprocals, never a quotient of polynomials, although every step divides. The divisions always cancel into monomials. Sergey Fomin and Andrei Zelevinsky made this “Laurent phenomenon” the central property of cluster algebras in 2002, and Dodgson’s recurrence — under the name of the octahedron recurrence — is one of its first examples.

What the arrays leave out

The figures compute everything exactly on small arrays: condensation on 4 × 4, the identity on arrays up to 7 × 7, alternating sign matrices up to size 6. None of that is a proof. The Desnanot–Jacobi identity has a short proof by block matrices; Robbins and Rumsey’s expansion has a proof by induction on the condensation; the product formula for AnA_n has only long proofs, and the enumeration in the figure merely agrees with it six times. Agreement at six sizes is how the formula was found, not how it is known.

The pictures also say nothing about why the product formula should hold. Kuperberg’s proof works through a determinant of Izergin and Korepin, which counts square-ice states with a boundary of a special kind, and specialises it to the alternating sign matrices; the counting is exact but the reason the answer factors so well is not something any figure can show. Several other families of objects — plane partitions with certain symmetries, and the totally symmetric self-complementary ones in particular — are counted by the same numbers 1,2,7,42,4291, 2, 7, 42, 429, and the reason for that coincidence is the open part.

Still open: the bijections

The numbers AnA_n count alternating sign matrices of size nn and also descending plane partitions with parts at most nn, and also totally symmetric self-complementary plane partitions in a box of side 2n2n. These three families were proved equinumerous by computing all three counts. No bijection — no explicit rule turning one kind of object into another — is known between alternating sign matrices and either kind of plane partition, despite decades of attempts and several partial results for refined statistics. It is one of the best-known open problems in enumerative combinatorics, and it is the kind of problem a picture might eventually solve, since a bijection is exactly a way of drawing one object as another.

On the algebraic side, the Laurent phenomenon raises its own questions: which recurrences have it, and why the coefficients of the Laurent polynomials it produces are so often positive integers counting something, as Dodgson’s are counting alternating sign matrices. For cluster algebras the positivity was proved for a large class in 2015 and in general in 2018, after more than a decade as a conjecture. What a given cluster variable’s terms count, in general, is still worked out case by case.

The quotient that knew more than the recipe

Condensation looks like a computational trick: a determinant from 2 × 2 determinants, with divisions that happen to come out whole. The divisions come out whole because every number in every layer is a minor, and the Desnanot–Jacobi identity makes the quotient exact. The method fails at a nought for the same reason, since it divides by minors that happen to vanish.

Change the minus sign and the trick becomes a theorem. The terms that condensation briefly creates and cancels — monomials with an entry in the denominator — are indexed by matrices of 0s, 1s and −1s that alternate in sign, and with a weight λ\lambda they no longer cancel. Counting those matrices took thirteen years and connected Dodgson’s recipe to square ice, domino tilings and cluster algebras. Lewis Carroll’s 2 × 2 determinants turned out to be hiding a family of objects larger than the permutations — 7,436 against 720 at size 6 — which the ordinary determinant, at λ=−1\lambda = -1, cancels down to the familiar sum.

Shares its objects with

Essays that name at least two of the same things, and that neither author linked.

Named objects

A dashed tag is an object no other essay names yet.

Alternating sign matrixDeterminantExhaustive searchLaurent seriesPermanentPermutation