Bank Vault Breach Protocol
The VAULT alarm triggers if the SENSOR detects motion and either the KEY is missing or the DOOR is forced. The SECURE status remains active only when the SENSOR is quiet and the DOOR is closed.
Replay this puzzle All puzzles
The truth table
Inputs on the left, outputs on the right. A circuit solves the puzzle when it reproduces every row.
| SENSOR | KEY | DOOR | ALARM | SECURE |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 1 |
| 0 | 0 | 1 | 0 | 0 |
| 0 | 1 | 0 | 0 | 1 |
| 0 | 1 | 1 | 0 | 0 |
| 1 | 0 | 0 | 1 | 0 |
| 1 | 0 | 1 | 1 | 0 |
| 1 | 1 | 0 | 1 | 0 |
| 1 | 1 | 1 | 0 | 0 |
What the table tells you
- ALARM is 1 in 3 of the 8 rows. Every input matters: for each one there is a row where flipping it changes ALARM. The rows that turn it on: SENSOR=1, KEY=0, DOOR=0; SENSOR=1, KEY=0, DOOR=1; SENSOR=1, KEY=1, DOOR=0.
- SECURE is 1 in 2 of the 8 rows. It does not depend on KEY at all: flipping it never changes the output, so any gate reading it is wasted. The rows that turn it on: SENSOR=0, KEY=0, DOOR=0; SENSOR=0, KEY=1, DOOR=0.
The smallest known circuit: 7 gates
As a formula, one line per output:
ALARM = (SENSOR AND (NOT KEY OR NOT DOOR))SECURE = (NOT SENSOR AND NOT DOOR)
As a netlist, in the order you would wire it. Each g is one gate; the last lines say which signal drives each output.
g1 = DOOR NAND DOORg2 = KEY NAND DOORg3 = SENSOR NAND SENSORg4 = SENSOR NAND g2g5 = g1 NAND g3g6 = g4 NAND g4g7 = g5 NAND g5ALARM = g6SECURE = g7
The search ran out of budget before it could rule out every smaller circuit, so 7 is the best anyone found, not a proof. If you build it in fewer, the leaderboard records it. Gates that do not feed an output are never counted.
Leaderboard for the day
Nobody posted a result on the day. The circuit above is the reference.
← #40 The Workshop Drill Press · #42 The Lighthouse Fog Warning →