Sperner’s Lemma - Statement

combinatorics
triangles
coloring
questions
visualization
interactive
observablejs
Author

Apurva Nakade

Published

May 14, 2025

 

Sperner’s lemma is one of the first “non-trivial” theorems I remember hearing about at a high school summer camp.
It goes like this: consider a triangulation of a triangle. (Above, we show a regular triangulation of an equilateral triangle, but the theorem applies to any triangulation of a triangle.) We color the vertices of the triangle with three colors—say, red, green, and blue—with the following conditions:

  1. The vertices of the triangle are colored with the three colors: red, green, and blue.
  2. The vertices that lie on the edges of the triangle are colored with one of the colors of the endpoints of that edge—this is crucial.
  3. The vertices that lie in the interior of the triangle may be colored with any of the three colors.

Conditions 1 and 2 are often referred to as the Sperner condition.

Theorem 1 Any triangulation of a triangle satisfying Sperner’s condition has at least one “rainbow” triangle whose vertices are colored with all three colors: red, green, and blue.

In fact, you always have an odd number of such triangles.

Questions

What patterns can you see? Why are there so many RGB triangles? What is the expected number of such triangles? What about the other colored triangles?

Here’s a curious thing I discovered while drawing these colorful plots. How do you loop over all the sub-triangles in the triangulation?

Back to top