AI and Math Olympiads


AI and Math Olympiads

Corey
In 2025, more than 600 teenagers from around the world gathered on Australia’s Sunshine Coast for the International Math Olympiad. The contest has six very difficult problems, and problem six was the hardest by far: fewer than one percent of the students earned full marks on it.

Simon
And it was described as the last IMO problem that AI couldn’t solve. That would have sounded surprising just a few years earlier, because contest problems aren’t simply calculations. A complete solution has to be a rigorous proof, and finding one often means understanding the setup in a genuinely creative way.

Corey
There had already been major progress. In 2024, Google DeepMind’s AlphaProof team solved four of the six problems, though humans had to translate the statements into Lean, a language in which mathematical proofs can be represented as programs. In 2025, different organizations tried the contest with a mix of Lean-based methods and end-to-end natural-language systems; they answered every problem except number six.

Simon
And the account we’re working from looks ahead to 2026, when it says publicly available reasoning models could answer all six just by prompting them. But the heart of this episode isn’t a race between machines and students. It’s a deep dive into the problem itself—and into the patience and intuition it takes to find a proof.

Corey
Thang Luong, a research director on the DeepMind team, offered one explanation for why the model struggled: it didn’t know how to be patient. It didn’t take time to understand the problem and get a feel for it before trying to solve it. That distinction matters here, because the construction and the proof are not obvious from the problem statement.

Simon
So let’s put the problem on the table. Imagine a 2025-by-2025 grid of unit squares. You may place non-overlapping rectangular tiles whose sides follow the grid lines, and you must leave exactly one uncovered square in each row and exactly one in each column. What’s the smallest possible number of tiles?

Corey
For a smaller picture, use a 10-by-10 grid. There must be ten uncovered squares, with no two in the same row or column. You can mark them with X’s. Even on that small grid, different choices of X positions and different ways to tile around them lead to different tile counts.

Simon
That’s the first difficulty: finding a pattern that works for a general grid. The second is the Olympiad challenge: a good-looking arrangement is not enough. We need to show that no possible placement of the X’s and no possible collection of rectangular tiles can do better.

Corey
A simple starting construction puts the X’s along a diagonal and covers the remaining squares with horizontal tiles. On a grid of side length n, that uses n−1 tiles on one side and n−1 on the other, for a total of 2(n−1). It’s an easy upper bound, but probably not the minimum.

Simon
To see how a proof strategy can reveal a lower bound, consider a different puzzle. Cut a 3-by-3-by-3 cube into 27 unit cubes using as few planar slices as possible. Six slices work: make two cuts in each of the three coordinate directions.

Corey
Now allow yourself to rearrange and stack the pieces after each cut. Four cuts can make at most 16 pieces, because each slice can at most double the number you have. Five might make enough pieces in principle, but there’s a better reason five can’t work.

Simon
Focus on the small cube at the very center. To free that cube completely, you need to cut along each of its six faces. Each face requires its own slice; one slice can’t free two of those faces at once. So even with clever rearranging, you need at least six cuts.

Corey
The useful idea isn’t a clever way to cut more efficiently. It’s identifying something every valid solution must do, and counting the separate obligations. That suggests looking at the four edges around each uncovered X in the tiling problem: every edge not on the outside boundary has to meet a tile.

Simon
And each tile has four sides, so at first you might think a tile could help with as many as four of those X-edges. The row-and-column condition makes that possible: no two X’s share a row or column, so a tile can touch at most one X along each of its four sides.

Corey
That gives us an efficiency idea. Some tiles touch several X’s; others touch just one or none. If we can arrange for many tiles to touch four X’s, that feels efficient. But there’s a constraint: the X’s need to sit at the corners of those tiles, not in the middle of their edges, or neighboring tiles can run into conflicts.

Simon
A square-tile pattern is a natural thing to try. Squares are symmetric, and they fit together neatly. Arrange them in a slightly tilted pattern so that each interior square tile has an X at each corner, with the X’s still all in different rows and columns.

Corey
If the square tiles have side length k, this pattern fits a larger grid whose side length is k². It has (k−1)² square tiles in the interior. Around the boundary, it needs four groups of k−1 additional tiles.

Simon
So the total is (k−1)²+4(k−1), which simplifies to k²+2k−3. For the 2025 problem, 2025 is 45², so the construction uses 45²+2·45−3, or 2,022 tiles.

Corey
That gives us a candidate answer, not a proof. We’ve shown that 2,022 tiles are enough. Now we have to show that every permitted arrangement uses at least 2,022.

Simon
Let’s try counting all four edges around every X. There are k² X’s, so that’s 4k² edges. But four of those edges lie on the outside boundary and don’t have to touch a tile. That leaves 4k²−4 edges that need to be covered.

Corey
Since one tile can touch at most four of those edges, we get a lower bound of k²−1 tiles. It’s a real bound, but it’s short of our target by about 2k−2. The problem is that this counting method doesn’t account well for the less efficient tiles near the boundary.

Simon
We can try a cleaner count: highlight just the right edge of each X. Every such edge must touch a tile, except the one on the far-right boundary. And because X’s are in different columns, a tile can touch at most one highlighted right edge.

Corey
That again gives at least k²−1 tiles, but now we can see where the method is weak: it misses many tiles on the left side. If we highlighted only top edges instead, we’d miss tiles near the bottom. Choosing one direction favors one side and ignores another.

Simon
So here’s the natural repair: use all four directions, but in different parts of the board. We’ll draw two paths through the X’s, one that goes up and to the right and one that goes down and to the right. Together they divide the board into four regions.

Corey
In the right-hand region, highlight the right edges of X’s; in the upper region, highlight top edges; and likewise use left edges in the left region and bottom edges in the lower region. An X on a boundary between regions can receive two highlighted edges. The paths are chosen to run through X’s, so those boundary X’s contribute extra edges.

Simon
The crucial check is that we still avoid double-counting. Every highlighted edge touches a tile, and no tile can touch two highlighted edges. In a region, the direction of the selected edge rules out the other X’s around a tile from contributing another selected edge there.

Corey
For example, take a tile in the left region. An X above it could have its left or top edge highlighted, but not its bottom edge; an X below it can’t have its top edge highlighted. And an X to the left can’t have its right edge highlighted, because it isn’t in the right region. The same kind of reasoning applies in the other regions.

Simon
Now the positions of the X’s have a useful algebraic description. Number the rows from 1 to k². Since there’s exactly one X in each row and each column, reading off the column of the X in each row gives a permutation of 1 through k².

Corey
As you move along an up-and-right path through X’s, both the row and column numbers increase. In the permutation, that corresponds to an increasing subsequence. A down-and-right path corresponds to a decreasing subsequence.

Simon
Let LIS be the length of the longest increasing subsequence, and LDS the length of the longest decreasing subsequence. Every X contributes a baseline highlighted edge except for the four boundary exceptions. The two paths contribute extra edges, so the count is at least k²+LIS+LDS−4.

Corey
There’s a small but important detail that improves that to k²+LIS+LDS−3 as a lower bound on the number of tiles. If the paths share an X, that X gets an extra highlighted edge, which raises the highlighted-edge count by one.

Simon
And if the paths don’t share an X, they cross through a tile instead. That tile touches none of the highlighted edges, so there is at least one additional tile beyond the number accounted for by those edges. Either way, the total number of tiles is at least k²+LIS+LDS−3.

Corey
To reach our construction’s count, it’s enough to prove LIS+LDS≥2k. That is a fact about permutations: for a permutation of k² numbers, the longest increasing and decreasing subsequences have lengths whose sum is at least twice k.

Simon
A helpful first clue comes from examples. If a permutation lists the numbers in order, its increasing subsequence has length k² and its decreasing one has length 1. If you list the evens in order and then the odds in order, the increasing subsequence is at least about half the list, while a decreasing subsequence has length 2.

Corey
More generally, grouping the numbers into runs suggests a trade-off: make decreasing subsequences short, and increasing ones tend to be long. A sharper statement is that LIS times LDS is at least the number of entries in the permutation.

Simon
Here’s a neat proof. For each entry in the permutation, write down a pair: the length of the longest increasing subsequence ending at that entry, and the length of the longest decreasing subsequence ending there.

Corey
Those pairs are all distinct. Compare two entries from left to right. Their values are different, because this is a permutation. If the later entry is larger, you can extend an increasing subsequence ending at the earlier entry, so the later entry’s first coordinate is larger. If it’s smaller, you can extend a decreasing subsequence, so its second coordinate is larger.

Simon
All the pairs therefore occupy different lattice points in a rectangle. The rectangle’s width is LIS and its height is LDS, so it contains at most LIS times LDS such points. Since there are k² entries, LIS·LDS≥k².

Corey
Now use the arithmetic mean–geometric mean inequality: (LIS+LDS)/2 is at least the square root of LIS·LDS, which is at least k. Therefore LIS+LDS≥2k, exactly what the tile lower bound needs.

Simon
Putting the pieces together, every allowed tiling needs at least k²+2k−3 tiles. Our square-tile construction uses exactly that many, so it is optimal. With k=45, the minimum for the 2025-by-2025 grid is 2,022 tiles.

Corey
The proof is a chain of ideas: a construction suggests the answer; the X-edges give us a way to count; the two paths repair the weakness of counting in just one direction; and the permutation theorem supplies the final inequality.

Simon
And that’s why patience matters. The key paths and the highlighted-edge argument don’t leap out of the statement. You first need to understand what the construction is doing, notice where a simple count fails, and then find a stronger way to count.

Corey
There’s also a difference between knowing a proof and understanding why someone might have found it. A proof can be logically complete and still feel like it came from nowhere. A motivated explanation tries to build the context so the ideas feel connected rather than arbitrary.

Simon
That distinction matters as AI systems produce more proofs. In mathematics, a proof is important, but so is the human understanding built along the way: the patterns, concepts, and ways of thinking that make a result meaningful and may later prove useful elsewhere.

Corey
So perhaps we need to value not only proof, but also explanations that show why a proof is natural. This problem’s solution is a lovely example: a cube-cutting puzzle inspires a counting idea; the geometry suggests a permutation; and a theorem about subsequences finishes the argument.

Simon
And even beyond its place in a contest or a discussion about AI, there’s a human kind of value in solving it. One student described the problem as something that warmed their heart when they solved it—and still did more than a year later. That’s a fitting ending for a problem built from careful reasoning and a satisfying pattern.

Ask anything
We've read this whole study set, so questions about it get the best answers.