Discrete tomographyField notes ↓

The Lantern Census

After dark, a clerk counts every lit window along every row, column and diagonal. Two houses turn in the same return. Look at their windows.

Four directions. The lights trade places.
Recorded houseTouch a window to change the record.
Possible houseTouch a window to ask if it can change.

Use the arrow keys to move between windows. Press Enter or Space to choose one.

House 2 of 2

8 windows can change. The other 8 must stay dark.

What went into the ledger

Our imaginary town employs a night clerk. The form has a box for the number of lit windows on each floor. On a cold night the clerk might like to add that someone was reading in the kitchen. There is nowhere on the form to put the kitchen.

Give the clerk another column for vertical counts, then two more for diagonals. A mathematical name for each of these views is a discrete X-ray. A discrete X-ray tells you how many points lie on each line parallel to a chosen direction. Here each lit window contributes one point, even if another light lies farther along the same line. The house holds still between readings. Gardner and Gritzmann, 1997.

Try it on the back of an envelope

Draw four floors with four windows apiece. Give each floor one light. Give each vertical stack one light too. If the top light moves one window to the left, can you move the other three so that every diagonal still gives its old count?

Unfold two drawings that work

Number the windows from left to right and read the floors from the roof down. In the first house light windows 3, 1, 4, 2. In the second light 2, 4, 1, 3. No light stays put. Each floor and each stack still contributes one.

Run a pencil along the diagonal that joins the second window on the top floor to the first window on the floor below. The second house lights the first end of your pencil. The first house lights the other. The clerk writes 1 both times. Slide the pencil parallel to itself from corner to corner. You will write 0, 1, 1, 0, 1, 1, 0 in either house. Turn the pencil to the other diagonal and the same seven numbers come back.

A stencil for the second house

Mark the four windows that went dark and the four that lit up. These eight marks are the moving part. At any of the other eight windows, light a lamp in both houses. Every line through that lamp gains one on each ledger. You can furnish those eight rooms however you please and keep the pair indistinguishable.

Eight independent switches give 256 settings. Each setting makes one pair. Are there other ways to fool all four views on this grid? There is room on the back of the envelope for that answer too.

Why this one stencil accounts for every pair

Subtract the second house from the first, window by window. Write +1 where the light belongs to the first house, −1 where it belongs to the second, and 0 wherever they agree. Give the top left square coordinates (0, 0), count columns c to the right and rows r downward. Store each signed entry as a coefficient on xcyr. Adding all the terms gives one polynomial F.

Set x to 1. Terms on the same floor collect at the same power of y. If row counts agree, their coefficients cancel and F(1, y) vanishes. That gives a factor x − 1. Setting y to 1 collects the vertical stacks and gives y − 1.

Put x = y = t. A window now contributes a power with exponent c + r, constant along each rising diagonal. Equal counts give the factor x − y. Finally set x = t and y = 1/t. Now the exponent is c − r, constant along each falling diagonal. Vanishing on that substitution gives the factor xy − 1.

These are distinct irreducible factors over the rationals, so their product divides F. The product already has degree three in each variable. A four-window side only has coordinates 0 through 3. There is room to multiply by a constant, and nothing more. Expanding (x − 1)(y − 1)(x − y)(xy − 1) gives +1 at windows 3, 1, 4, 2 and −1 at windows 2, 4, 1, 3, reading down the floors. A binary house difference can only scale this by 1 or −1, or by zero if the houses coincide. Turning the stencil over just exchanges the names of the two houses.

The whole street, counted

Imagine filing every possible house. Sixteen windows with two positions each give 65,536 drawings. Open a fresh folder each time a new list of line counts appears. Put every drawing with those counts into the same folder. Some folders hold one drawing and settle every window. Here is what extra directions do to the filing cabinet.

One complete filing of the 4 × 4 houses for each set of views
Views recordedFoldersHolding oneMost in a folder
Rows625161,296
Add columns16,1456,90290
Add falling diagonals59,25654,2725
Add rising diagonals65,28065,0242

In the last cabinet, 256 folders hold two drawings apiece. Those 512 houses are the whole population that can trade places across all four views. The remaining 65,024 houses each have a file to themselves.

Give each floor one more window and try to move between drawings with the same four-column stencil. Open the longer ledger.

The independent check draws all 65,536 houses, files their readings, and compares the pairs with the stencil. Download and run the check · research/the-lantern-census/verify.mjs.

The Long Exchange

Give the clerk a fifth column. Slide the four-column stencil along the house, making one turn at each stop. Keep an eye on the bottom floor.

Dark Lit−1 and 2 are impossible
First house. All four reports agree.

0 of 4 single turns are legal here. The first stencil covers columns 1 through 4.

Inspect the clerk’s figures

Each entry sums the window values on one line, including any signed values in the current strip. Read rows from the top, columns from the left, falling diagonals from the top right and rising diagonals from the top left.

Line sums of the two endpoint houses and the displayed strip
LinesFirst houseThis stripSecond house
Rows1 2 2 11 2 2 11 2 2 1
Columns1 2 0 2 11 2 0 2 11 2 0 2 1
Falling diagonals0 1 1 1 1 1 1 00 1 1 1 1 1 1 00 1 1 1 1 1 1 0
Rising diagonals0 1 1 1 1 1 1 00 1 1 1 1 1 1 00 1 1 1 1 1 1 0

The first jam is only five windows wide

Here is the five-window entry in the clerk’s shorthand. Read from the roof down, with a slash for a new floor. The first house lights windows 2 / 4, 5 / 1, 2 / 4. The second lights 4 / 1, 2 / 4, 5 / 2. You can check all four views with a pencil. Then try making the change a little at a time.

There are two places to lay the four-column stencil. To use the left one in the first turn shown above, you must take a light away from window 3 on the bottom floor. That window is dark. The second turn pays the light back. A clerk doing arithmetic can carry the debt for one turn. Someone standing at the switch has no such choice.

On a four-wide sheet the stencil can take you from either drawing in a shared ledger to the other. The table asks how often a wider sheet jams. A split ledger holds two or more houses with the same four views, some of which you cannot reach from others by a series of legal four-column turns. Each turn must begin and end with every window either lit or dark.

All binary houses at each width, with four floors throughout
Windows per floorHouses filedLedgers holding several housesSplit ledgers
465,5362560
51,048,5768,192128
616,777,216195,8084,160

Eight lights at any distance

Take the width up to six. The first house now has a three-window wing at each end. On the left, light the middle window of the top floor and all three windows of the third floor. On the right, light all three windows of the second floor and the middle window of the bottom floor. The second house exchanges the wings. Both houses have eight lights. Insert as many dark columns between the wings as you like.

However far apart you put the wings, the ledger allows exactly those two houses. Choosing the top light at one end fixes the bottom light at the other. There is no third house where the clerk could stop halfway. Any single legal change between the two must reach from the first column to the last.

Why a third house cannot fit the ledger

Recall the polynomial P of the four-column stencil. Keep four floors and make the paper as wide as you please. Any difference between houses with identical views is still a multiple of P. The stencil already uses the full height, so the multiplier can depend only on the horizontal coordinate variable x. In other words, every such difference is a sum of horizontally shifted stencils with coefficients.

In each stencil the bottom row is the negative of the top row. This remains true for any sum of shifted stencils. Look at the top and bottom windows of each column together. Their combined count is therefore fixed in any house with this ledger. In our strip that count is one in each of the two marked columns and zero everywhere else. The top floor must hold one light. It can go in either marked column.

Once that choice is made, even the middle floors are settled. Two putative houses with the same top row would have top-row difference zero. That difference is the stencil’s nonzero top row x(x − 1) times the horizontal multiplier. A zero product forces the multiplier to vanish. The two houses would be identical. The instrument supplies a house for each top-light choice, completing the count at every width.

Suppose the clerk inherits a longer street full of these wings, and permission to knock on a few doors before signing the return. Which visit would you make first? Take the night round.

The clerk makes a night round

On a longer street the houses share a secret. Take a wing three windows wide. In one plan the middle window on the top floor burns above a full row of lights on the third floor. Turn the plan upside down. The columns and both diagonal readings stay the same. Those readings admit exactly these two plans.

010
000
111
000
Upper lamp
000
111
000
010
Lower lamp
Read from the roof down. A 1 is a lit window.

Set six such wings along the street. Between each pair leave three completely dark columns. Their zero column totals force them to stay dark, and no diagonal in a building four floors high can reach across that gap. The row ledger gives the clerk one more fact. Exactly three wings have their upper lamp lit. The whole street can therefore be any of the twenty ways to choose three wings out of six.

How many visits does the clerk need?

With three upper lamps and three lower lamps, the clerk can finish in as few as three visits and always finishes by the fifth.

Find all three of either kind and every remaining wing is settled. Until then, exchanging two unvisited wings of opposite kinds leaves everything the clerk has seen intact. After four visits it can still be two of each. The fifth decides the last two wings at once.

The same filing rule works with any number of these separated wings. With m wings left and k upper lamps still to place, the count is the number of ways of choosing k places out of m.

The claims record 36 claims re-read against their sources, 1 December 2026

Written 2026-12-01. Claims re-read against their sources on 2026-12-01: 36 checked, 4 confirmed, 0 wrong, 0 unverifiable, 32 first-hand observations checked against their record. By Codex assayer, independent review using oversight/claims-pass.md.

The independent census used Python binary tuples, grouped lit coordinates by four integer line labels, and counted the resulting equivalence classes. The preset check enumerated all masks again and intersected their occupied and vacant sites. A separate integer polynomial expansion tested the sign convention. The downloadable Node verifier uses its own walk from each board edge.

Claims

What was done

The assay office: what a record is, and every layer re-read so far.