← Latest papers
💻 computer science

NP-Completeness and Physical Zero-Knowledge Proof of Hotaru Beam

This paper establishes that the logic puzzle Hotaru Beam is NP-complete and proposes a physical zero-knowledge proof protocol that allows a player to demonstrate knowledge of a solution without revealing the solution itself.

Original authors: Taisei Otsuji, Peter Fulla, Takuro Fukunaga

Published 2026-03-03
📖 6 min read🧠 Deep dive

Original authors: Taisei Otsuji, Peter Fulla, Takuro Fukunaga

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 Picture: A Light Puzzle and a Magic Trick

Imagine a puzzle called Hotaru Beam (Firefly Beam). You have a grid with glowing fireflies placed on it. Your job is to draw lines (beams of light) connecting all the fireflies together. But there are strict rules:

  1. The lines can't cross or branch out.
  2. Some fireflies have numbers on them, telling you exactly how many times the beam must "bend" (turn a corner) before it hits another firefly.
  3. The Goal: All fireflies must end up connected in one big, single group.

The paper does two main things:

  1. It proves the puzzle is hard. (Mathematically, it's "NP-complete," meaning as the puzzle gets bigger, it becomes exponentially harder to solve, and no computer can solve every version quickly).
  2. It invents a magic trick. This trick allows someone (the "Prover") to prove to a skeptic (the "Verifier") that they have solved the puzzle, without showing them the solution.

Part 1: Why is this puzzle so hard? (The NP-Completeness)

Think of the puzzle like a massive maze where every turn you make affects every other turn. The authors proved that solving Hotaru Beam is just as hard as solving the most famous logic problems in computer science (like the "3-SAT" problem).

The Analogy:
Imagine you are trying to organize a massive dinner party where every guest has specific seating rules based on who they like and dislike. If you can find a seating chart that satisfies everyone, you've solved the puzzle. The authors showed that Hotaru Beam is essentially a visual version of this seating chart problem. If you could solve Hotaru Beam instantly, you could instantly solve any complex logic problem in existence. Since we know those logic problems are incredibly difficult, Hotaru Beam is too.


Part 2: The Magic Trick (Physical Zero-Knowledge Proof)

Now, imagine you solved the puzzle, but you want to prove it to your friend, Vera, without letting her peek at your paper. If you just show her the answer, she learns your secret. If you don't show her, she won't believe you.

The authors created a Physical Zero-Knowledge Proof (ZKP). This is a game played with playing cards (or similar items) where you can prove you know the solution without revealing a single detail of it.

The Setup: The Board and the Ledger

To play this game, you need two things:

  1. The Board: A grid of cards representing the puzzle. Empty spots are marked with a heart (♡), and fireflies are marked with numbers.
  2. The Connections Ledger: A list of cards tracking which fireflies are connected. Initially, no one is connected.

The Core Mechanism: The "Beam Embedding"

This is the coolest part. You have to draw a beam on the board, but you can't just show Vera the line. Instead, you use a special card-shuffling routine.

The Analogy: The Invisible Paintbrush
Imagine you have a magic paintbrush that turns empty spots (hearts) into blocked spots (spades ♣) to show where your beam went.

  • The Problem: If you just paint the line, Vera sees the whole path.
  • The Solution: You use a "Mask." You take a long strip of cards that looks like a random mix of hearts and spades. You secretly align this strip under your board.
  • The Shuffle: You shuffle the cards in a way that moves the "paint" (the spades) to the exact spots where your beam goes, but Vera only sees that the cards changed from hearts to spades. She doesn't see where you moved them or how long the line is.

It's like having a magic eraser that only erases the specific path you drew, but to an observer, it just looks like the paper changed color in a mysterious way.

The "Bend" Challenge

The hardest part of Hotaru Beam is the bending constraint. Some fireflies say, "My beam must turn exactly 2 times."

  • The Challenge: How do you prove you turned exactly 2 times without showing the turns?
  • The Trick: The authors invented a protocol where you can count your turns using the cards. You create a "counter" with the cards. Every time you make a turn, you swap a specific card. At the end, you prove to Vera that you have exactly the right number of "turn cards" in your hand, without showing her the shape of the beam.

The "Connectivity" Check

Finally, you have to prove that all fireflies are connected.

  • The Ledger: Throughout the game, you update a "Connections Ledger." Every time you connect Firefly A to Firefly B, you mark them as "friends" in the ledger.
  • The Final Proof: At the end, you shuffle the ledger cards. You prove to Vera that every single firefly is now marked as "connected" to every other firefly. She sees that the ledger is full of "True" (T) cards, meaning everyone is in the same group, but she never saw the actual lines drawn on the board.

Why Does This Matter?

  1. It's a New Kind of Security: Usually, Zero-Knowledge Proofs are done on computers with complex math. This paper shows you can do it with physical cards that anyone can understand. It's like a magic trick you can perform at a dinner party to prove you know a secret without telling it.
  2. It Solves a Hard Problem: It proves that even for very difficult puzzles (like Hotaru Beam), you can verify a solution without cheating.
  3. New Tools: The authors created new "card tricks" (protocols) for handling lines and bends. These tricks could be used to create similar proof games for other types of puzzles, like mazes or network designs.

Summary in One Sentence

The authors proved that the "Firefly Beam" puzzle is mathematically very hard, but they also invented a clever card game that lets you prove you solved it to a skeptic without ever showing them the actual solution, using magic shuffles and invisible paintbrushes.

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 →