import { slider } from "@jashkenas/inputs"
viewof N = slider({
min: 2,
max: 25,
step: 1,
value: 15,
width: 500,
title: "Number of subdivisions"
})
Sperner’s Lemma - Combinatorial Proof
combinatorics
triangles
coloring
visualization
interactive
observablejs
questions
This picture is a combinatorial proof of Sperner’s Lemma.
Imagine each small triangle as a room with three walls. Next we do a trick that I do not know how to motivate: treat each RG
edge as a door. Here’s what we observe:
- RGB triangles have exactly one door.
- RRG and RGG triangles have two doors.
- All other triangles have no doors.
In other words, we can identify RGB triangles as the rooms with an odd number of doors. Sperner’s Lemma, then, can be restated in a more visual way: If Sperner’s condition holds, there is at least one room with an odd number of doors. We’ll prove a related version of this statement.
Following the Doors
Picture all the possible paths that can be formed by stepping through these RG
doors — the black lines in the diagram represent all of these paths.
- The yellow triangles have paths that enter through one door and exit through another — like hallways.
- The RGB triangles have only one door, so they are endpoints — there’s no way to pass through.
Using simple logic, we can deduce the following:
- No two paths intersect.
- Some paths form closed loops.
- Paths that do not form loops must have two endpoints, so the total number of endpoints is even.
- The only possible endpoints are:
- An
RG
door on the outer boundary of the big triangle - An RGB triangle.
- An
Putting this all together gives us a key result:
Theorem 1 The sum of the number of RG
boundary edges, and the number of RGB triangles must be even.
From this, we immediately get:
Theorem 2 The number of RGB triangles is odd if and only if the number of RG
edges on the boundary is odd.
So to conclude the proof, all that remains is to show:
Conjecture 1 The number of RG
boundary edges is odd.
Sperner’s condition implies that the only RG
boundary edges must appear on the bottom edge, which reduces the problem to the following.
Conjecture 2 The number of RG
boundary edges on the bottom edge is odd.
This is indeed a true statement and can be proven by various simple but subtle tricks. Give it a shot! Be careful though, it is easy to convince yourself that you have a proof when you don’t.
Questions
The app at the top of this page demonstrates the proof by dividing a triangle uniformly into smaller triangles. However, Sperner’s Lemma is much more general: it applies to any triangulation of a triangle, as long as the vertices are colored according to Sperner’s condition. The proof itself never relies on the triangulation being uniform — so it holds for any triangulation. That said, the app is harder to generalize for arbitrary triangulations.
- How does one generate random triangulations?
One natural approach is to use Delaunay triangulations, but how random are these triangulations? Once you have such a triangulation, the next step is:
- How do you efficiently loop through all the triangles?
While this isn’t a research question, implementing a general Sperner’s Lemma checker on arbitrary triangulations would be a neat exercise, combining computational geometry with combinatorics.