01 // ORIGIN

The drawing

Draw a square and its two diagonals. They cut it into four triangles. In each triangle, mark the one point that is the same distance from all three of its sides. That point sits at a height of exactly √2 − 1 above the base of a square of side 2, and the same argument works for a cube and for a hypercube in any number of dimensions. This page builds the drawing line by line and then explains why every step must come out the way it does.

1Building it, step by step

The figure below draws the whole construction. Use the arrows, the slider or Play. Each step is drawn in motion, and you can run it backwards. When you reach the point, turn on the probe and drag your own point around the triangle: you will see why the construction picks the place it does.

STEP 0 / 6
FIG 1 // CONSTRUCTION
CTRL // CONSTRUCTION
STEP
0
Probe: drag a point inside the bottom triangle.
READOUT
Red lines run from a dot to the two square corners of its triangle. The amber line runs to the centre of the square. Together they are the three bisectors of that triangle.

2Why a point equidistant from three sides exists

The distance from a point to a line is the length of the shortest segment between them. That segment is perpendicular to the line. Take two lines that meet at a corner, and ask for all the points that are the same distance from both. Drop the two perpendiculars from such a point. You get two right triangles that share a hypotenuse (the segment from the corner to the point) and have one equal leg each. Two right triangles with a shared hypotenuse and one equal leg are congruent, so the angles at the corner are equal. The point therefore lies on the angle bisector, the line that splits the corner in two equal angles. Every point on the bisector works, and no other point does.

A triangle has three corners and so three bisectors. Take two of them. They cross at one point, because two lines that are not parallel cross once. That point is equally far from sides 1 and 2 (it is on the bisector of their corner) and equally far from sides 2 and 3 (it is on the other bisector). So it is equally far from all three sides, which means it also sits on the third bisector. The three bisectors meet at one point. This is the incentre. It is classical geometry.KNOWN

The circle centred at the incentre that touches all three sides is the incircle. Its radius is the common distance. It is also the biggest circle that fits inside the triangle: move the centre anywhere else and one of the three distances gets smaller, so the circle must shrink before it stops crossing a side. The probe in Figure 1 shows exactly this. It draws the largest circle that fits around your point, and its radius is the smallest of the three distances.

3The three lines are the triangle’s skeleton

Imagine the triangle is a dry field and you set fire to all three sides at once. The fire burns inward at the same speed everywhere. The front is a smaller copy of the triangle, and it shrinks. Where fronts coming from different sides meet, they stop. Those meeting points trace the medial axis, also called the skeleton of the shape: the set of points that have more than one nearest point on the boundary. For a triangle, the fire meets along the three angle bisectors, and the last spot to burn is the incentre, the centre of the largest circle. Step 5 of Figure 1 plays this out.

So the three lines you draw from the dot to the three corners of its triangle are not an arbitrary decoration. They are the medial axis of that triangle. This is a standard fact about triangles, and it was also checked in code for this project.KNOWN The perception page asks whether people already see this skeleton when they look at a triangle.

4Where the dot sits: tan 22.5° = √2 − 1

Put the square on the coordinates (0,0) to (2,2). Take the bottom triangle, with corners A = (0,0), B = (2,0) and C = (1,1), the centre of the square. It has a right angle at C and two angles of 45° at A and B. It is symmetric about the vertical line x = 1, so the incentre is on that line. It is also on the bisector of the corner at A. That corner is 45°, so the bisector leaves A at 22.5° above the base.

Follow that bisector to x = 1. It has risen by a height of one unit times the tangent of 22.5°. The half-angle formula for the tangent is tan(θ/2) = (1 − cos θ) / sin θ. With θ = 45°, both cos and sin are √2/2:

tan 22.5° = (1 − √2/2) / (√2/2) = √2 − 1 = 0.41421…

Two independent checks agree. First, the inradius of any triangle is its area divided by its semiperimeter (half the sum of the sides). Here the area is 1 and the sides are 2, √2, √2, so the semiperimeter is 1 + √2 and the inradius is 1/(1 + √2) = √2 − 1. Second, the dot is at (1, R) with R = √2 − 1, and its distance to the diagonal y = x is (1 − R)/√2 = (2 − √2)/√2 = √2 − 1, equal to R again.PROVEN (algebra)

The number 1/(√2 − 1) = 1 + √2 = 2.4142… is called the silver ratio. It governs the regular octagon, which is the next thing the drawing builds.

5What the dots make

Repeat the drawing in a grid. At a point where four squares meet, eight dots surround it, two from each square. Measure from that corner: a dot at (1, R) is √(1 + R²) = 1.0824 away, and the other seven are the same distance by symmetry. Neighbouring dots are 2R = 0.8284 apart. Two dots in the same square are (1, R) and (R, 1), a distance √2(1 − R) = √2(2 − √2) = 2√2 − 2 = 2R. Two dots on either side of a shared wall are (1, R) and (1, −R), a distance 2R again. Eight points on a circle with all neighbouring chords equal form a regular octagon.

The four dots inside each square form a smaller square with the same side 2R. Squares and regular octagons, all edges equal, with one square and two octagons at every corner: this is the truncated square tiling, called 4.8.8 in the catalogue of regular-faced tilings.VERIFIED NUMERICALLY (every interior dot has exactly three neighbours at distance 2R, checked in research/culture/gen.py)

6Lifting it to three dimensions

Take a cube of side 2 centred at the origin. Cut it from the centre into six square pyramids, one on each face. The square drawing was the cross-section of this, and the pyramid’s role is the triangle’s. Place a ball inside the pyramid on the +z face, with its centre on the z axis at height c above the cube’s centre. Two distances matter.

The ball touches all five faces when these are equal: 1 − c = c/√2. Solving gives c = √2/(√2 + 1) = 2 − √2 = 0.5858, and the radius is 1 − c = √2 − 1. It is the same number as in the plane.PROVEN (algebra)

CUBE // 6 PYRAMIDS // DRAG TO TURN
FIG 2 // THE LIFT
CTRL // LIFT
LAYERS
DIMENSION n (the picture shows n = 3)
3
READOUT
Each dot is the same distance, √2 − 1, from the five faces of its pyramid. Neighbouring balls touch on the wall between their pyramids.

The six dots sit on the three axes at the corners of an octahedron, the cube’s dual. Two neighbouring dots, such as (k, 0, 0) and (0, k, 0) with k = 2 − √2, are k√2 = 2√2 − 2 = 2R apart. So the balls of radius R touch. The ball also reaches the face of the cube: its centre is R below the face centre, so it meets the neighbouring cube’s ball exactly at the face centre when cubes are stacked.

7Lifting it to any dimension

Look again at the two distances. The first, 1 − c, is the distance to the top face. The second, c/√2, is the distance to a slanted face, which lies in a hyperplane such as xi = xn. A point on the n-th axis at height c sees that hyperplane at distance c/√2 in any dimension, because only two coordinates are involved. Neither distance depends on n. So in every dimension the ball has radius √2 − 1, its centre is 2 − √2 from the centre of the cube, and neighbouring balls touch. The hole left in the middle among the 2n balls has radius k − R = 3 − 2√2 = R², which is R times the ball radius.PROVEN (algebra)

What changes with n is only the count. An n-dimensional cube has 2n faces and so 2n pyramids and 2n dots. Each ball touches 2n − 2 others inside its own cube (all other dots except its antipode) and one more through the face, so 2n − 1 in all: 3 in the plane, 5 in space, 7 in four dimensions.PROVEN (counting) That the stacked cubes then give the vertices of the uniform truncated n-cubic honeycomb was checked directly in the coordinates for n = 2 and 3; for all n it follows from the mirror argument on the next page.VERIFIED NUMERICALLY (n = 2, 3)

Everything on this page is known mathematics. The route is the point: one rule about a dot equidistant from walls fixes the height √2 − 1 in every dimension. The next page explains why the rule works, and which known construction it is.