Valeon

Start typing to search posts by title.

A man using a tablet is seated at a wooden table with an open book, while a glowing blue police box emits swirling colorful energy and scientific visualizations in a dimly lit room.

Hypersphere Packing in a Cube

SFSayed Hamid Fatimi
6 min read
Listen to this post0:00 / --:--

The TARDIS is a lie told in the right direction. A police box smaller on the outside than the insidespace folded against its own grammar, the container humbled by what it contains. I watched Doctor Who for years, through Tennant, through Smith's frenetic energy, into Capaldi's quieter and more philosophical tenure, and what kept drawing me back wasn't the monsters or the melodrama. It was the physics backdrop, the way temporal mechanics were treated with a seriousness that rewarded sustained attention, the lore-threading that reached back past the 2005 relaunch into decades of accumulated canon. I haven't watched since Capaldi left. But the TARDIS stayednot as a narrative device, not as nostalgia, but as a geometric intuition. A shape. A question about what containment actually means once you stop assuming space behaves the way three dimensions taught you to expect it to.

The Central Hypersphere Paradox has been lodged in my thinking ever since I first encountered it, because it gives you the TARDIS running backwards. Not a container smaller than what it holds, but something built inside a container, by the rules of that container, that grows until it exceeds the container's walls. The inside becoming bigger than the outside, not through narrative magic but through the cold arithmetic of high-dimensional geometry.

The setup is clean. Take a hypercubethe -dimensional generalisation of a cubewith side length , extending one unit from the origin in every direction along every axis. Into each of its corners, pack a hypersphere of radius , each one tangent to the walls and to its neighbours. In the space remaining at the centre, place a single central hypersphere, tangent to all the corner hyperspheres. The question is simply: how large is it?

The answer is a function of dimension alone. The distance from the hypercube's centre to the centre of any corner hypersphere is the Euclidean distance across dimensions, each corner coordinate sitting at , which gives . Subtract the corner hypersphere's radius of and you have the central hypersphere's radius:

A clean formula. No hidden variables. The paradox is already inside it.

At , the central circle has radius . Smaller than the corner circles. The geometry behaves.

At , the central hypersphere has radius exactly the same as the corner hyperspheres. Symmetrical, composed, still sensible.

At , the radius is exactly . The hypercube extends unit from its centre in every direction. The central hypersphere now touches the walls.

At , the radius is . The wall is at .
The central hypersphere, which you constructed inside the hypercube, which you placed there by the same rules that govern everything else in the structure, now protrudes beyond the walls. It exceeds the container. Not because of an error, not because the construction breaks downthe corner hyperspheres at remain perfectly inside, the central hypersphere is still tangent to all of them exactly as specifiedbut because this is what high-dimensional space actually does. The rules were followed precisely and the container stopped containing.

This is the Central Hypersphere Paradox, and it belongs to a broader class of results that mathematicians group under the Curse of Dimensionalitya name that captures their shared character well. These are not pathological edge cases. They are the normal behaviour of high-dimensional space, which simply does not resemble the space we inhabit and have built every intuition inside. The curse is that our intuitions are not wrong, exactly. They are accurate for the dimensions we can see, and catastrophically misleading everywhere else.

The deeper result in this class of problems is the one about volume. The volume of an -dimensional hypersphere of radius is:

For a unit hypersphere, this volume rises with dimension initiallypeaking near and then collapses back toward zero as . The hypercube's volume, , grows without bound. The fraction of the hypercube occupied by a hypersphere inscribed within it, which starts at roughly in two dimensions and in three, falls continuously and approaches zero. In high enough dimensions, the inscribed hypersphere occupies essentially none of the hypercube's volume. The container is almost entirely empty of the largest thing that fits inside it.

The volume retreats into the corners. This is the geometric fact underneath the curse: in high-dimensional space, corners proliferate exponentially of themand they pull away from the centre. Almost all the volume of a high-dimensional hypercube lives at maximum distance from the origin, in the regions where equidistance from the centre, the defining property of a hypersphere, simply cannot reach. The hypersphere and the hypercube are structurally opposed as dimension increases. The container organises its mass precisely where the contained cannot follow.

Which is the TARDIS inverted. The TARDIS takes a small exterior and folds a vast interior inside itthe contained exceeds the container by authorial decree. The Central Hypersphere Paradox takes a container that appears to hold everything, built by legitimate rules, and demonstrates that the thing inside it grows through the walls by mathematical necessity. The inside becomes bigger than the outside without anyone deciding it should. Dimension decides it. Follow the formula far enough and the central hypersphere, politely constructed in the exact centre of a legitimate hypercube, extends quietly through walls that are no longer walls in any sense that three-dimensional vocabulary can name.

I find this worth sitting with for reasons that go beyond the geometry itself. A significant portion of what breaks in complex systemsin models with many interacting variables, in high-dimensional data, in any domain where the number of parameters grows largebreaks for exactly this reason. The intuitions that were reliable at low dimension stop working. The space between things grows vast in ways that don't feel like growth from the inside. The container stops containing. Most of what you thought was full turns out to be corners, and the corners are unreachable. The Curse of Dimensionality is not a theorem about abstract mathematics that has no bearing on anything else. It is a description of what happens to every framework built on low-dimensional intuition when it encounters a world with more axes than it was designed to handle. Which is to say, most of the genuinely hard problems.

The TARDIS, then, was not just a narrative convenience. It was the show accidentally pointing at something truethat the relationship between inside and outside, between container and contained, between what a space looks like and what it actually holds, does not stay fixed as the geometry changes. Dimension is not neutral backdrop. It is an active variable, and it has opinions about what fits where, and its opinions become stranger and more violent the further you follow them from the three axes where human intuition was trained.

Related posts

Abstract geometry and gradients suggesting time’s arrow and the observer within the model

The Human in the Equation

A reflection on how human experience—memory, agency, language, and narrative—shapes the frameworks we build, and what that means for time, causality, and the limits of physics as a “mirror” of reality.

SFSayed Hamid Fatimi
10 min read
Abstract mirrored geometry dissolving into ripples and organic asymmetry.

The Symmetry Compulsion

An essay on why symmetry comforts the mind, how science and mathematics chase invariance, and why asymmetry—through breaking, chirality, primes, and time’s arrow—is the texture that makes life and meaning possible.

SFSayed Hamid Fatimi
10 min read