ArticleslgStudy

mathematics

Ham sandwich theorem

Ham sandwich theorem is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Ham sandwich theorem rather than just read about it. In short: In mathematical measure theory, for every positive integer n the ham sandwich theorem states that given n measurable "objects" in n-dimensional Euclidean space, it is possible to divide each one of them in half (with respect to their measure, e.g. volume) with a single (n − 1)-dimensional affine hyperplane. This is possible even if the objects overlap.

Ham sandwich theorem — main illustration
Ham sandwich theorem — illustration

Key takeaways

  • Ham sandwich theorem belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Ham sandwich theorem to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Ham sandwich theorem from memory before moving on to harder problems.

Reference excerpt

In mathematical measure theory, for every positive integer n the ham sandwich theorem states that given n measurable "objects" in n-dimensional Euclidean space, it is possible to divide each one of them in half (with respect to their measure, e.g. volume) with a single (n − 1)-dimensional affine hyperplane. This is possible even if the objects overlap. It was proposed by Hugo Steinhaus and proved by Stefan Banach (explicitly in dimension 3, without stating the theorem in the n-dimensional case), and also years later called the Stone–Tukey theorem after Arthur H. Stone and John Tukey.

Naming

The ham sandwich theorem takes its name from the case when n = 3 and the three objects to be bisected are the ingredients of a ham sandwich. Sources differ on whether these three ingredients are two slices of bread and a piece of ham (Peters 1981), bread and cheese and ham (Cairns 1963), or bread and butter and ham (Dubins & Spanier 1961). In two dimensions, the theorem is known as the pancake theorem to refer to the flat nature of the two objects to be bisected by a line (Cairns 1963).

History According to Beyer & Zardecki (2004), the earliest known paper about the ham sandwich theorem, specifically the n = 3 case of bisecting three solids with a plane, is a 1938 note in a Polish mathematics journal (Editors 1938). Beyer and Zardecki's paper includes a translation of this note, which attributes the posing of the problem to Hugo Steinhaus, and credits Stefan Banach as the first to solve the problem, by a reduction to the Borsuk–Ulam theorem. The note poses the problem in two ways: first, formally, as "Is it always possible to bisect three solids, arbitrarily located, with the aid of an appropriate plane?" and second, informally, as "Can we place a piece of ham under a meat cutter so that meat, bone, and fat are cut in halves?" The note then offers a proof of the theorem. A more modern reference is Stone & Tukey (1942), which is the basis of the name "Stone–Tukey theorem". This paper proves the n-dimensional version of the theorem in a more general setting involving measures. The paper attributes the n = 3 case to Stanislaw Ulam, based on information from a referee; but Beyer & Zardecki (2004) claim that this is incorrect, given the note mentioned above, although "Ulam did make a fundamental contribution in proposing" the Borsuk–Ulam theorem.

Two-dimensional variant: proof using a rotating-knife

The two-dimensional variant of the theorem (also known as the pancake theorem) can be proved by an argument which appears in the fair cake-cutting literature (see e.g. Robertson–Webb rotating-knife procedure). For each angle α∈[0,180∘], a straight line ("knife") of angle α can bisect pancake #1. To see this, translate along its normal a straight line of angle α from −∞ to ∞; the fraction of pancake #1 covered by the line changes continuously from 0 to 1, so by the intermediate value theorem it must be equal to 1/2 somewhere along the way. It is possible that an entire range of translations of our line yield a fraction of 1/2; in this case, it is a canonical choice to pick the middle one of all such translations. When the knife is at angle 0, it also cuts pancake #2, but the pieces are probably unequal (if we are lucky and the pieces are equal, we are done). Define the 'positive' side of the knife as the side in which the fraction of pancake #2 is larger. We now turn the knife, and translate it as described above. When the angle is α, define p(α) as the fraction of pancake #2 at the positive side of the knife. Initially p(0)>1/2. The function p is continuous, since small changes in the angle lead to small changes in the position of the knife. When the knife is at angle 180, the knife is upside-down, so p(180)<1/2. By the intermediate value theorem, there must be an angle in which p(α)=1/2. Cutting at that angle bisects both pancakes simultaneously.

n-dimensional variant: proof using the Borsuk–Ulam theorem The ham sandwich theorem can be proved as follows using the Borsuk–Ulam theorem. This proof follows the one described by Steinhaus and others (1938), attributed there to Stefan Banach, for the n = 3 case. In the field of Equivariant topology, this proof would fall under the configuration-space/tests-map paradigm. Let A1, A2, ..., An denote the n compact (or more generally bounded and Lebesgue-measurable) subsets of ℝn that we wish to simultaneously bisect. Let S={v=(v1,…,vn)∈ℝn:v12+…+vn2=1} be the unit (n − 1)-sphere in ℝn. For each point v on S, we can define a continuum (Ev,c)c∈ℝ of affine hyperplanes with normal vector v: Ev,c={x∈ℝn:x1v1+…+xnvn=c} for c∈ℝ. For each c∈ℝ, we call the space Ev,c+={x∈ℝn:x1v1+…+xnvn>c} the "positive side" of Ev,c, which is the side pointed to by the vector v. By the intermediate value theorem, every family of such hyperplanes contains at least one hyperplane that bisects the bounded set An: at one extreme translation, no volume of An is on the positive side, and at the other extreme translation, all of An's volume is on the positive side, so in between there must be a closed interval Iv of possible values of c∈ℝ, for which Ev,c bisects the volume of An. If An has volume zero, we pick c=0 for all v∈S. Otherwise, the interval Iv is compact and we can canonically pick c=12(inf⁡Iv+sup⁡Iv) as its midpoint for each v∈S. Thus we obtain a continuous function α:S→ℝ such that for each point v on the sphere S the hyperplane Ev,α(v) bisects An. Note further that we have I−v=−Iv and thus α(−v)=−α(v) for all v∈S. Now we define a function f:S→ℝn−1 as follows:

f(v)=(vol(A1∩Ev,α(v)+),…,vol(An−1∩Ev,α(v)+)). This function f is continuous (which can be proven with the dominated convergence theorem). By the Borsuk–Ulam theorem, there are antipodal points v and −v on the sphere S such that f(v)=f(−v). Antipodal points correspond to hyperplanes Ev,α(v) and E−v,α(−v)=E−v,−α(v) that are equal except that they have opposite positive sides. Thus, f(v)=f(−v) means that the volume of Ai is the same on the positive and negative side of Ev,α(v), for i=1,…,n. Thus, Ev,α(v) is the desired ham sandwich cut that simultaneously bisects the volumes of A1, ..., An.

… excerpt ends here. Continue reading the full article.

Illustrations

Ham sandwich theorem: A two-dimensional ham sandwich theorem example with noncontiguous regions: lines at 5° increments bisect the similarly coloured region (pink ham and green vegetable) into two equal areas, the black line denoting the common bisector of both regions
A two-dimensional ham sandwich theorem example with noncontiguous regions: lines at 5° increments bisect the similarly coloured region (pink ham and green vegetable) into two equal areas, the black line denoting the common bisector of both regions
Ham sandwich theorem: A ham-sandwich cut of eight red points and seven blue points in the plane
A ham-sandwich cut of eight red points and seven blue points in the plane

Worked examples

Example 1 — a first encounter with Ham sandwich theorem

Start with the simplest possible case. Write down what Ham sandwich theorem claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Ham sandwich theorem before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Ham sandwich theorem ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Ham sandwich theorem

In research
Ham sandwich theorem appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Ham sandwich theorem in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Ham sandwich theorem is common in secondary-school and first-year university syllabi. It links to neighbouring topics Theorems in measure theory, Theorems in topology, so understanding it makes those chapters shorter.
In everyday life
Look for Ham sandwich theorem outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Ham sandwich theorem” →

How to study Ham sandwich theorem in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Ham sandwich theorem means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Ham sandwich theorem out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Ham sandwich theorem in simple terms?

In mathematical measure theory, for every positive integer n the ham sandwich theorem states that given n measurable "objects" in n-dimensional Euclidean space, it is possible to divide each one of them in half (with respect to their measure, e.g. volume) with a single (n − 1)-dimensional affine hy…

Why does Ham sandwich theorem matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Ham sandwich theorem?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Ham sandwich theorem.

Tags

  • Theorems in measure theory
  • Theorems in topology

Keep exploring