Understanding mathematics through autoformalisation

MIR@W · AI for mathematics

Understanding mathematics through autoformalisation

An example from the non-negative inverse eigenvalue problem

Wednesday 25 November 2026

The setting

The non-negative inverse eigenvalue problem

Which lists of n complex numbers are the eigenvalues of an n × n matrix with non-negative entries?

For symmetric matrices the lists are real. That case is solved for n ≤ 4 and open for every n ≥ 5.

Here: symmetric, n = 5, and lists of the form (1, a, a, b, b).

12345½0100110100010100010110010

For example, half the adjacency matrix of the 5-cycle, with a = cos(2π/5) and b = cos(4π/5).

What was known

Everything, except two small regions

Each point (a, b) of the plane is one list, coloured by the answer.

The picture is symmetric: (1, a, a, b, b) and (1, b, b, a, a) are the same list. So the two unknown regions are one question.

unknownunknownrealisablenot realisable−2−1012−2−1012ab

One region left open

“… the only region in which it is not known whether a spectrum of the form [(1, a, a, b, b)] is realizable or not.”

Loewy and Spector, 2021

Its four sides come from these papers:

2000

McDonald and Neumann

a + 2b = −1

2004

Loewy and McDonald

4ab = −1

2017

Johnson, Marijuán and Pisonero

(1 + a + 2b)³ = 1 + a³ + 2b³

2021

Loewy and Spector

7a − 2b = 5

unknownrealisablenot realisable20002004201720210.30.40.5−0.9−0.8−0.7−0.6ab

1 · The prompt

Theorem (T., Claude, Aristotle). If (a, b) lies below the line of 2000 and to the right of the curve of 2004, then (1, a, a, b, b) is not realisable.

Proof (my prompt to Claude). Take a matrix A whose spectrum is on the boundary, and deform it across the boundary. To first order, whether this is possible while preserving non-negativity should be measured by computing commutators and tracking the locations of the zeros.

not realisablerealisablenot realisable2000200420172021A0.30.40.5−0.9−0.8−0.7−0.6ab

2 · Claude

Linear duality gives the obstruction

Deforming A across the boundary means solving linear inequalities. If they have no solution, linear duality gives a matrix Y proving it (Farkas’ lemma).

If a point of the region were realisable, the deformation would stop at a matrix A with an obstruction. The obstruction lives on the zeros of A, and the spectrum allows only a few. For 5 × 5 matrices, there is not enough room.

Exactly one of these two alternatives holds:

Either A can be deformed

D + AX − XA ≥ 0 wherever A = 0,
for some skew X

or

not, if a Y exists satisfying

Y ≥ 0 and Y ≠ 0,
Y = 0 wherever A ≠ 0,
AY = YA, and tr(YD) < 0

A: the matrix on the boundary.
D: the matrix with the same eigenvectors as A and eigenvalues (0, 0, 0, −1, −1), so A + tD has spectrum (1, a, a, b − t, b − t).

3 · Aristotle

Aristotle made the argument solid

Claude worked with Aristotle, which turned the whole argument into Lean, and Lean checked every step.

On Friday, at the Mathematics Colloquium, I will talk about how far we can trust a check like this.

139

Lean files

37,000

lines

1,200+

theorems

9 days

from the first file to the whole plane

4 · Understanding

Confidence first, then understanding

It began with an idea, vague and undeveloped.

Claude shaped it into an argument, detailed enough to be a blueprint.

Aristotle formalised the blueprint and settled the question.

Then probing the Lean proof, by hand and with Claude, turned it into a proof I understand.

Thank you

PDF