Using topology for discrete problems | The Borsuk-Ulam theorem and stolen necklaces
Based on 3Blue1Brown's video on YouTube. If you like this content, support the original creators by watching, liking and subscribing to their content.
A fair division with N jewel types can be guaranteed using at most N cuts by translating the problem into topology.
Briefing
The stolen necklace problem asks for a guaranteed way to split a line of jewels between two thieves so that each person gets exactly half of every jewel type—while using as few cut points as possible. The central claim is that with N different jewel types, a fair division can always be achieved using no more than N cuts, no matter how the jewels are arranged. Proving that kind of “always possible” statement is notoriously difficult in discrete optimization, so the breakthrough comes from translating the discrete puzzle into a continuous geometric setting where a powerful topological theorem forces a solution to exist.
The key topological tool is the Borsuk-Ulam theorem. It concerns continuous maps from a sphere to a lower-dimensional space: if a sphere is continuously “squished” into a plane (or, more generally, into fewer dimensions), then some pair of antipodal points—points directly opposite each other on the sphere—must land on the same output. A classic intuition comes from Earth: if temperature and pressure vary continuously over the globe, then there must be two opposite points where both temperature and pressure match exactly. The proof idea in the transcript reframes the problem by building a new function that measures the difference between outputs at antipodal points; continuity then forces that difference to hit the origin, which means the antipodal outputs coincide.
To connect this to stolen necklaces, the transcript “continuousifies” the discrete jewel arrangement. For the two-jewel case (say sapphires and emeralds), the necklace is treated as a unit interval divided into equal subsegments, each segment colored by its jewel type. A fair division using two cuts corresponds to choosing cut locations that determine how much total colored length each thief receives. Crucially, any fair division in the continuous model can be adjusted so the cuts align with the original discrete segment boundaries, so solving the continuous version suffices.
Then comes the geometric encoding: all possible ways to choose the relative lengths of three pieces (for two cuts) are represented by points on a sphere. A point (x, y, z) on the unit sphere satisfies x² + y² + z² = 1, and the squares x², y², z² become the lengths of the three necklace pieces. The sign of each coordinate decides which thief receives that piece: positive sends it to thief 1, negative sends it to thief 2. Under this correspondence, moving to the antipodal point (−x, −y, −z) keeps the cut lengths the same (because squares don’t change) but swaps every piece’s owner—exactly the “antipodal swap” that should preserve fairness.
Finally, the fairness requirement becomes a statement about a continuous map from the sphere to a plane: take the outputs to be the total sapphire length (and emerald length) assigned to thief 1. If an antipodal pair of points on the sphere map to the same output, then swapping all pieces leaves those totals unchanged—meaning both thieves receive equal amounts of each jewel type. The Borsuk-Ulam theorem guarantees such an antipodal collision, so a fair division with two cuts exists for two jewel types. The general N-jewel case follows by using the higher-dimensional versions of Borsuk-Ulam on hyperspheres, where mapping a k-dimensional sphere into k−1 dimensions forces the same kind of antipodal coincidence.
In short: the “always possible with N cuts” guarantee for the stolen necklace problem is forced by topology once the discrete allocations are encoded as antipodal sign choices on a sphere (or hypersphere). The payoff is a rare bridge between discrete fairness constraints and continuous geometry, where existence is not guessed—it’s compelled.
Cornell Notes
The stolen necklace problem asks for a guaranteed fair split of a necklace between two thieves using as few cuts as possible. For N jewel types, the goal is to show a solution exists with at most N cuts, regardless of the initial order. The transcript turns the discrete allocation into a continuous model by treating the necklace as a unit interval colored by jewel type and allowing cuts anywhere. Then it encodes all possible cut-length choices as points on a sphere: a point (x,y,z) on the unit sphere determines piece lengths x², y², z², while the signs of x,y,z decide which thief gets each piece. Antipodal points correspond to swapping all pieces, and the Borsuk-Ulam theorem guarantees an antipodal pair that maps to the same “fairness totals,” forcing an equal split. The general case uses higher-dimensional versions on hyperspheres.
Why is it enough to solve a “continuous” version of the stolen necklace problem instead of the original discrete one?
How does a point (x, y, z) on the unit sphere encode a specific necklace division?
What does “antipodal points” mean here, and why does it correspond to swapping thieves?
How does the Borsuk-Ulam theorem force a fair division?
What changes when moving from 2 jewel types to N jewel types?
Review Questions
- In the encoding from sphere points to necklace divisions, which part determines the cut locations and which part determines which thief gets each piece?
- Why does antipodal mapping correspond to swapping thieves rather than changing the cut lengths?
- How does continuity matter in the Borsuk-Ulam step, and what would break if the mapping were not continuous?
Key Points
- 1
A fair division with N jewel types can be guaranteed using at most N cuts by translating the problem into topology.
- 2
The Borsuk-Ulam theorem ensures that any continuous map from a sphere to a lower-dimensional space identifies some antipodal pair.
- 3
The stolen necklace problem is converted into a continuous colored-interval model where cuts can be placed anywhere.
- 4
A unit-sphere point (x,y,z) encodes three cut lengths via x²,y²,z² and assigns each piece to a thief using the signs of x,y,z.
- 5
Antipodal points correspond to swapping all pieces between the two thieves while keeping cut lengths unchanged.
- 6
Fairness becomes a condition that a continuous map from the sphere to a plane remains unchanged under the antipodal swap.
- 7
Higher-dimensional versions of Borsuk-Ulam extend the argument from two jewel types to N jewel types using hyperspheres.