← Latest papers
🤖 AI

History of the Muddy Children Puzzle

This paper traces the two-century origin of the Muddy Children Puzzle through logical and literary publications, explores its numerous variations, and introduces a novel self-referential hats puzzle.

Original authors: Hans van Ditmarsch

Published 2026-06-15
📖 7 min read🧠 Deep dive

Original authors: Hans van Ditmarsch

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Big Idea: A Puzzle About "Knowing What Others Know"

Imagine a group of friends playing a game where they can see everyone else's face, but they have a magical mirror that won't show them their own reflection. The puzzle asks: How do they figure out what's on their own face just by watching everyone else?

This paper is a historical detective story. The author, Hans van Ditmarsch, is trying to answer a simple question: Who invented this puzzle first?

He finds that the answer isn't a single person, but a long, winding trail of stories, games, and math books stretching back over 200 years.


Part 1: The Puzzle Itself (The "Muddy Kids")

Here is the classic version of the game:

  • The Setup: A father has kk children. Some have mud on their faces (mm children), and some are clean.
  • The Rules: The kids can see everyone else's face, but not their own. They are all perfect logicians (they never make a mistake in thinking).
  • The Trigger: The father says, "At least one of you has mud on your face."
  • The Action: Every minute, the father asks, "Does anyone know if they are muddy? If so, step forward."
  • The Result: If there is 1 muddy child, they step forward immediately. If there are 2, they wait one minute, then both step forward. If there are mm muddy children, they all step forward exactly at the mm-th minute.

The Analogy: Think of it like a game of "hot potato" where the potato is a piece of information. The father drops the potato (the fact that someone is muddy). The kids pass the information around by not stepping forward. The silence of the group tells them, "Oh, if no one stepped forward yet, then there must be more muddy kids than I thought!" Eventually, the logic clicks, and they all realize, "Hey, I'm the muddy one!"


Part 2: The Historical Detective Work

The author goes on a hunt to find the "grandfather" of this puzzle. Here is what he found:

1. The Ancient Roots (The "Pinch Without Laughing" Game)

The author traces the idea back to a 16th-century French book about a giant named Gargantua. In a 1823 edition of this book, there is a footnote describing a game called Pince-sans-Rire ("Pinch without laughing").

  • The Game: Two people pinch each other's noses. If you laugh, you lose.
  • The Twist: Two players secretly have charcoal on their fingers. They pinch each other's noses, smearing black charcoal on their faces.
  • The Connection: If you see your friend laughing at your blackened nose, you realize, "Wait, if they are laughing, they must see something funny on my face!"
  • The Verdict: This is the "great-great-grandfather" of the Muddy Children puzzle. It has the same logic (seeing dirt on others to realize it's on yourself), but it's a party game, not a math problem.

2. The Missing Century (1830s–1930s)

The author looked for the puzzle in books from the 1800s but found a gap. The idea seemed to disappear. He couldn't find it in Lewis Carroll's riddles or standard puzzle books of that time. It seems the idea was just "hanging out" in oral history or party games, waiting to be written down as math.

3. The Re-Discovery (1920s–1940s)

The puzzle re-emerged in the 20th century in a few different places:

  • Japan (1929): The famous physicist Paul Dirac visited Japan and told the story. It became known as "Dirac's Riddle." A mystery writer even wrote a detective novel based on it in 1941.
  • Europe (1942): A mathematician named Maurice Kraitchik published it in a puzzle book. He told it as a story about three philosophers with dirty faces.
  • UK (1953): Another mathematician, Littlewood, published a version about three ladies laughing at each other's dirty faces. He called it "genuine mathematics."

4. The Modern Era (1950s–Present)

From the 1950s on, the puzzle became a staple of math and computer science.

  • The "Unfaithful Wives" Version: In the 1950s, the puzzle was changed to be about cheating husbands and wives. Instead of mud, the "dirty" thing was infidelity. This version became very famous in computer science.
  • The "Hat" Version: Later, people swapped mud for colored hats. This is easier to visualize because you can't see your own hat, just like you can't see your own mud.
  • The Computer Science Boom: In the 1980s, computer scientists (like Joe Halpern) realized this puzzle was perfect for teaching Artificial Intelligence. It helps computers understand how agents (robots or programs) share information and update their knowledge.

Part 3: The New Puzzle (The "Self-Referential Hats")

The paper ends with a brand-new puzzle invented by Gerhard Woeginger, called "Mützen" (Hats).

The Setup:

  • Santa Claus invites 126 smart gnomes.
  • Each gets a hat of a random color. There are many colors (yellow, green, blue, etc.).
  • The Catch: Santa says, "I have chosen the colors carefully so that every single one of you can figure out your own hat color."
  • The Process: A bell rings every 5 minutes. If a gnome knows their color, they leave.

The Mystery:
The gnomes leave in groups over 13 rings. The question is: How many rings total does it take for everyone to leave?

The Solution Logic:
The author explains that Santa's promise ("You can all figure it out") is a very powerful piece of information. It's like a self-fulfilling prophecy.

  • If a gnome saw a color that only one person was wearing, they would know, "If I had that color, no one could figure it out (because I'd be the only one)."
  • But since Santa promised everyone can figure it out, no one can be the "unique" one.
  • Therefore, every color must appear at least twice.
  • The gnomes use this logic to count how many people are wearing each color and leave in the correct order.

The author uses this new puzzle to show how modern logic (using "fixpoints" and complex math) can solve these riddles, proving that the old "Muddy Children" idea is still evolving today.


Summary: Why Does This Matter?

This paper isn't just about mud or hats. It's about how we learn from each other.

  • The Metaphor: Imagine a room full of people. If I tell you "Someone in this room is wearing a red shirt," you don't know who. But if you look around and see no one standing up, and then I say it again, and still no one stands up, you start to realize something.
  • The Lesson: The paper shows that sometimes, the most important information isn't what is said, but what is not said (the silence, the waiting).
  • The Legacy: From a French game about pinching noses to a computer science tool for AI, this puzzle has traveled through centuries, changing its clothes (mud, dirt, hats, cheating spouses) but keeping the same brain-teasing heart.

The author concludes by inviting readers to help him find even older versions of the puzzle, especially from the 1920s and 1930s, suggesting the history of this riddle is still being written.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →