The arithmetic of “at least one”
Imagine an airline map in which an entry is one if there is a direct flight between two cities and zero otherwise. To ask whether there is a two-leg route from one city to another, look down the list of possible stops. A stop works only if both legs exist. The answer is yes as soon as one stop works. For this question it makes no difference whether there are two ways to make the trip or twenty: the difference that matters is between none and at least one.
Now ask the question for every pair of cities at once. Put the first legs in one table and the second legs in another. For each starting city and destination, take a row from the first table and a column from the second. Pair their entries by intermediate city. In ordinary matrix multiplication one multiplies each pair and adds the products. In Boolean matrix multiplication the analogue of multiplication is “and,” and the analogue of addition is “or.” Either both legs exist or they do not; either some intermediate city works or none does. The output is another table of ones and zeros.
This is a way to think about connections without carrying counts that the problem never asked for. A triangle in an undirected graph gives a second example. Pick an edge. If its endpoints have any neighbor in common, that neighbor closes a triangle. Multiply the graph’s adjacency matrix by itself in the Boolean sense, then check whether an edge appears where the product says there is a shared neighbor. The underlying calculation is the same as it was for flights, even though the question now concerns the shape of a network.
Where the cubic cost comes from
The straightforward computation looks at every pair of endpoints and every possible intermediate vertex. For a square table of width n, there are n² output positions and up to n possibilities to check at each position. That gives a cubic worst-case bound. Stopping after the first successful intermediate vertex can help enormously on a particular input. It does not, by itself, give a useful guarantee: a witness could arrive late, or there could be no witness at all.
The longstanding problem was to find ways of saving work across the table, rather than just hoping that each entry would be quick. Boolean products can be related to ordinary algebraic matrix multiplication, since the sum of products of zeros and ones counts witnesses. There is a separate line of work on algorithms developed from the combinatorial structure of the inputs. The new paper is about that line. Its comparison is with earlier deterministic combinatorial algorithms, rather than with the fastest known algebraic bound for multiplying matrices in general.
In 2024, Amir Abboud, Nick Fischer, Zander Kelley, Shachar Lovett and Raghu Meka broke a barrier that had held for decades in that line of work. Their algorithm saved more than a fixed power of a logarithm over cubic time. One way to see the significance is to compare what happens as the tables get very large. Dividing by a power of log n shaves off a slowly growing factor. Dividing by an exponential in a positive power of log n eventually saves much more, however large the fixed logarithmic power one starts with. The 2024 paper asked how far an improvement of that sort could be pushed.
Make the gain pay for the split
The earlier algorithm did not work on the whole table as if every row and column were alike. It broke the input into pairs of smaller matrices whose products had useful properties. Some pieces were sparse, meaning there were relatively few ones to work through. Other pieces were structured so that their product was almost entirely ones. The challenge is not merely recognizing that such pieces are easier to handle. It is finding them and charging the cost of doing so in a way that leaves the whole computation cheaper.
Piaoyang Cui, Yiming Liu and David P. Woodruff report that they can improve the decomposition. The new analysis ties the work spent at a step to the gain in density achieved there. Density here concerns how much of a matrix is filled with ones. The point of the accounting is that a step that costs a lot cannot be allowed to buy only a tiny improvement over and over again. The proof controls the combined expense across the decomposition. This is where the improved guarantee comes from, rather than from a different meaning of the Boolean product or a shortcut valid only for a favored kind of graph.
For both Boolean matrix multiplication and triangle detection, their deterministic algorithm reaches the target left open in 2024: cubic time divided by a factor exponential in the square root of log n. “Deterministic” matters because the bound does not rest on the algorithm drawing favorable random choices. The square root in the exponent is also not a square root of the input size. This is a result about how the cost grows at large n; the paper does not offer a timing claim about a graph on someone’s workstation. A practical comparison would have to account for the cost of making the decomposition, the sizes and kinds of graphs being tested, and the implementations of competing methods.
The result leaves a familiar tension in algorithm design intact. Sparse inputs invite one kind of economy and dense inputs another. A general guarantee has to survive an adversarial mixture of both, without counting on the graph to resemble the networks researchers usually encounter. The decomposition is how the proof negotiates that mixture. A graph that is dense overall can still contain regions in which most pairs have no common neighbor; the average density alone cannot tell the algorithm where it will save work.
A proof others can take apart
The authors describe a division of labor that belongs to the story of the argument. They selected the problem and set the research direction. Gemini agents developed the algorithm and proof, drafted the manuscript and produced a Lean formalization; the authors checked and revised the work. The version released with the paper reports Lean checks of the main theorem and two supporting results. The formal artifact gives readers something more specific to inspect than the account of who contributed what. They can compare the textual theorem with the encoded statement and see exactly where a mathematical dependency enters.
The formal check and the readable proof serve different purposes. An algorithms researcher may want to understand how the new accounting changes the decomposition, then see whether that reasoning can be used in another setting. A reader primarily concerned with verification may go straight to the statement and its dependencies. A useful feature of this release is that either investigation can start without waiting for the other. The proof is public in both registers, and an outside reader is free to disagree with the interpretation of the result without treating the underlying argument as a black box.
The immediate accomplishment is exact: a target posed in 2024 has been reached for two classical problems. The more interesting inheritance is the way the proof arrived there. An algorithm can get faster not because it finds an individual shortcut, but because it gets stricter about what each expensive step must buy. That change in the accounting is the part another researcher can carry away, test against a different decomposition and try to make pay again.