Gelfand duality and algebraic geometry
Shapes and number systems are the same thing!
September 12, 2026
What is a shape?
This question is a little silly; you already know what a shape is. However, to reason about a shape mathematically, one needs a very precise description of it. These descriptions usually go by labelling the set of points of a shape. For example, if I wanted to describe a circle to you, I could say "all the points exactly 1 unit away from this center point."
However, the legendary Russian mathematician Gelfand realized that there is another way to describe a shape: you could specify the functions on the shape. This way of conceptualizing shapes led to modern algebraic geometry, and is helpful in understanding quantum mechanics.
So, what did Gelfand observe?
Operators
If you have a shape \(X,\) you can consider functions \[f : X \to \mathbb{R}.\] That is, you look at functions \(f\) whose input is a point on your shape, and whose output is a real number.
Gelfand realized that, actually, just by understanding all of the functions \(X \to \mathbb{R},\) you can reconstruct the shape.
This sounds a little strange at first, because we're used to working with shapes like a circle or a square, where you just 'see' the shape directly. However, this method of studying shapes is quite natural when your shapes arise more abstractly.
As an example, in our previous articles on physics, we've discussed the importance of phase spaces. The phase space of a physical system is just some shape representing all the possible states of that system. For example, below you'll see a 1-dimensional particle moving in physical space on the left, and its position in phase space (which tracks the position \(x\) and momentum \(p\)) on the right.
The phase space is an abstraction. A scientist observing the world would only see the figure on the left, of the ball moving on the line; the picture on the right is a shape created by the scientist to help understand the ball.
In particular, the scientist is not directly observing phase space. However, they can observe two functions on phase space. For example, the phase space above has two coordinates: position and momentum. The scientist observing the ball can directly see the ball's velocity. Assuming the ball has a mass of, say, 5 kilograms, this menas the scientist is directly observing the function \[f(p, x) = \frac{p}{5\text{ kg}}.\]
Because momentum \(p\) is mass times velocity, dividing by the mass recovers velocity -- which is what our scientist can see. Gelfand's perspective -- that shapes are determined by their functions -- is therefore very natural to a scientist. A scientist understands all the possible functions on phase space: these are just the different measurements the scientist can make of the physical system.
Understanding functions
The collection of all functions \(X \to \mathbb{R}\) on some shape \(X\) forms a mathematical structure known as a ring.
A ring is a collection of objects together with a way to add objects together, plus a way to multiply objects, such that the addition and multiplication behave similarly to the usual operations of addition and multiplication. Given two functions \(f : X \to \mathbb{R}\) and \(g : X \to \mathbb{R},\) we can add them using the rule \[(f+g)(x) = f(x) + g(x),\] and multiply them with \[(f \cdot g)(x) = f(x) \cdot g(x).\] Thus, functions on a shape \(X\) form a ring.
Gelfand duality asserts that a shape \(X\) can be recovered from its ring of functions -- this means I tell you what all the functions are, together with how to add and multiply them. For mathematicians, Gelfand duality is usually stated as follows: a locally compact Hausdorff space can be reconstructed from its ring of continuous functions; in fact, the functor sending a locally compact Hausdorff space to its ring of continuous functions is fully faithful.
Algebraic geometry
As we plan to explore in future posts, part of the power of Gelfand duality is actually not how it helps you understand shapes -- but instead how it helps you understand rings. Using Gelfand duality, one can rephrase many ideas occuring in ring theory geometrically. Humans, it turns out, are very geometric thinkers, and so having these geometric intuitions for ring theory makes us much better at understanding it.
We hope to explore this analogy further in upcoming articles, but as a starting point, let's discuss the Chinese remainder theorem. This is usually thought of as a theorem of number theory, but Gelfand duality gives us some geometric insight as to what is going on.
Mod 6 arithmetic
As an example, let's consider the ring \(\mathbb{Z}/6\) -- read aloud as "Z modulo 6" -- which encodes the number system of "mod 6 arithmetic."
That is, \(\mathbb{Z}/6\) is a number system with six numbers -- they are 0, 1, 2, 3, 4, and 5 -- and where the addition and multiplication is done by adding or multiplying normally, and then dividing the answer by 6 and taking the remainder. For example, \[5 + 5 = 4\] in this ring, because normally \(5+5=10,\) but 10 divided by 6 is 1 with remainder 4.
Similarly, in the number system \(\mathbb{Z}/6,\) we have \[3 + 4 = 1\] and \[2 \cdot 3 = 0.\]
Some idempotents
In a ring, solutions to the equation \(x^2 = x\) are called idempotents.
Humans usually work in number systems like \(\mathbb{Z}\) (the integers), \(\mathbb{R}\) (the real numbers), or maybe \(\mathbb{C}\) (the complex numbers). In those number systems, the equation \(x^2 = x\) only has two solutions: 0 and 1. However, in \(\mathbb{Z}/6,\) this quadratic equation actually has four solutions! As always, 0 and 1 solve it; but in \(\mathbb{Z}/6,\) \(x=4\) and \(x=3\) are also solutions, because \[3^2 = 3\] and \[4^2 = 4\] modulo 6.
These extra idempotents are a strange property of the ring \(\mathbb{Z}/6.\) To understand what they mean, let's go back to geometry.
Connected components
In mathematics, some shapes have multiple components. For example, the graph of \[x^2 = y^2 + z^2 + 1\] naturally divides up into two pieces.
Under Gelfand duality, how do we 'see' that a shape has two pieces?
Well, let's say we have a shape \(X\) which is really two distinct pieces \(Y_1\) and \(Y_2\); we write this as \[X = Y_1 \sqcup Y_2,\] where the symbol \(\sqcup\) is read aloud as "disjoint union."
Using functions, how might we separate \(Y_1\) and \(Y_2\)? Fortunately, there's an easy answer: we can define on \(X\) a continuous function \[f_1 : X \to \mathbb{R}\] given by \[ f_1(x) = \begin{cases} 1 & x \in Y_1, \\ 0 & x \in Y_2.\end{cases} \]
This function \(f_1\) obeys the property that \[f_1(x)^2 = f_1(x)\] for all \(x,\) but \(f_1\) is not the constant function 0 or 1! Thus \(f_1\) is an example of an interesting idempotent in the ring of continuous functions on \(X.\)
This is the geometric intuition for idempotents in a ring: idempotents are functions which only take the values 0 and 1; they thus help you divide the shape into pieces (the piece where the idempotent is 0, and the piece where the idempotent is 1).
The ring of continuous functions \(X \to \mathbb{R}\) has in total four idempotents: the constant function 0, the constant function 1, the function \(f_1\) above, and the similarly defined \[f_2(x) = \begin{cases} 0 & x \in Y_1, 1 & x \in Y_2.\end{cases}\]
You should think that these four idempotents arise because there are two pieces to \(X,\) and because idempotents take the value 0 or 1 on each piece; so you have \(2 \cdot 2\) total idempotents. Similarly, if \(X\) was divided into three pieces, there would be \(2 \cdot 2 \cdot 2 = 8\) idempotents.
Observe that, when we take a continuous function \(f : X \to \mathbb{R},\) if we multiply it by \(f_1,\) then we get a function \[(f \cdot f_1)(x) = \begin{cases} f(x) & x \in Y_1, \\ 0 & x \in Y_2.\end{cases}\] Thus multiplication by \(f_1\) "zeroes out" \(f\) on \(Y_2.\) So, the multiples of \(f_1\) live only on \(Y_1,\) and thus we can view the continuous functions on \(Y_1\) as being the multiples of \(f_1.\)
Back to \(\mathbb{Z}/6\)
Recall that \(\mathbb{Z}/6\) had four idempotents: 0, 1, 3, and 4. This suggests that, in some sense, \(\mathbb{Z}/6\) should split into two pieces, just like our shape \(X\) above split into two pieces.
In our geometric example, we recovered the continuous functions on \(Y_1\) from the continuous functions on \(X\) by multiplying by our interesting idempotent \(f_1.\) Here, we have an interesting idempotent 3, so let's look at the multiples of 3; in \(\mathbb{Z}/6,\) there are only two: 0 and 3. And 0 and 3 form an interesting number system: in mod 6 arithmetic, \[3 + 3 = 0,\] \[0 + 3 = 3,\] \[0 \cdot 3 = 0,\] \[3 \cdot 3 = 3.\]
A number system with two numbers obeying the above four identities is isomorphic to modulo 2 arithmetic; this is because mod 2 arithmetic is a number system with two numbers, 0 and 1, obeying \[1 + 1 = 0,\] \[0 + 1 = 1,\] \[0 \cdot 1 = 0,\] \[1 \cdot 1 = 1.\]
If we just re-label the number called '1' in modulo 2 arithmetic as '3', then we recover the number system of 0 and 3 above.
Similarly, the multiples of 4 in \(\mathbb{Z}/6\) are \(0, 4,\) and \(2,\) and they form a number system isomorphic to modulo 3 arithmetic.
This suggests that \(\mathbb{Z}/6\) breaks down into two pieces: mod 2 arithmetic, and mod 3 arithmetic. And indeed, it does -- this is exactly the content of the Chinese remainder theorem! Mathematically, we'd say \[\mathbb{Z}/2 \times \mathbb{Z}/3 \cong \mathbb{Z}/6\] (with the funny equals sign being read as "is isomorphic to"), and practically, this means that \[a \equiv b \pmod{6}\] if and only if \[a \equiv b \pmod{2}\] and \[a \equiv b \pmod{3}.\] That is, instead of doing mod 6 arithmetic, you can do mod 2 and mod 3 arithmetic separately, and then put the results back together in the end!
If we look at the 'extra' idempotents 3 and 4 in \(\mathbb{Z}/6,\) they have something in common with the idempotents \(f_1\) and \(f_2\) from our geometric example. Those geometric idempotents were 0 on one piece of our shape and 1 on the other; and similarly, 3 is 0 modulo 3 and 1 modulo 2; and 4 is 1 modulo 3 and 0 modulo 2. The idempotents in \(\mathbb{Z}/6\) and in our geometric example behave in the exact same ways!
In fact, if you are trying to prove the Chinese remainder theorem in general -- which asserts that, when \(a, b\) are coprime integers we have \[\mathbb{Z}/a \times \mathbb{Z}/b \cong \mathbb{Z}/ab,\] then this suggests should you look for some integers \(N\) and \(M\) with \[N \equiv 1 \pmod{a}, N \equiv 0\pmod{b},\] and \[M \equiv 0 \pmod{a}, M \equiv 1\pmod{b}.\]
And indeed, this is exactly how to prove the Chinese remainder theorem in general! So geometry gives you a big clue about how to prove a theorem in number theory!