Duet
AND gate: output is on only if input A AND input B are both on
Duet and the Rule of Both
Duet was a small blue firefly who lived on a wire, and she had a reputation for being difficult, because she would not light up for just anybody.
Two little wires came into Duet — call them her left friend and her right friend — and each friend could be on (glowing) or off (dark). The other fireflies on the circuit flickered the instant a single friend showed up. Not Duet. Duet had one rule, and she kept it no matter who pleaded: she glowed only when BOTH of her friends were on at once.
One friend on, the other off? Duet stayed dark. Both off? Dark. It was only in that one particular moment — left friend glowing and right friend glowing, both together — that Duet lit up, warm and certain and bright.
A frantic beetle once came racing down the wire. “Duet! The left light’s on! Shine, shine, we need light!”
“Only the left one?” asked Duet.
“Well — yes, just the left, but surely one is enough—”
“Not for me,” said Duet, gently, staying dark. “One light passing through is only half a promise. I don’t shine on half a promise.”
The beetle huffed off, calling her stubborn. But that night the bridge-latch further down the wire — the one that only opened when it was truly, doubly safe — depended on Duet. If she’d flickered for a single light, the latch would have opened when it shouldn’t, and a very heavy cart would have rolled onto a bridge that wasn’t fully clear.
Instead, Duet waited. Left friend, glowing. Right friend — dark, then, after a moment, glowing too. Both. And in that instant Duet lit up like she’d been saving it all day, and the latch opened exactly when it was safe to.
The beetle came back, a little sheepish. “You stayed dark on purpose.”
“I stayed dark because it wasn’t time,” said Duet. “Being dark isn’t being broken. Half of the circuits in the world are things politely waiting for their second friend.” She glowed a little brighter, both her wires warm. “This — both of us, together — this is worth waiting for. A single light never was.”
After that, whenever the little fireflies wanted to build something that had to be sure — a lock that needed two keys, a door that needed two hands — they went and found Duet, the firefly who understood that some lights are only meant to shine in pairs.
When you wire an AND gate, you are being Duet: the output stays dark until BOTH inputs are on — then, and only then, it glows.
The gateforge ensemble
Duet is part of gateforge's distributed-narrative cast. Each character embodies a different curricular primitive; together they teach the full subject.