Boolean Logic Gate Jive
This AI generated song is dedicated to all computer science students everywhere and to the geniuses of the AI industry. It is also for the not so poor [ 😎 ] technical sales staff in AI companies who have to persuade potential customers that probabilistic non-recurring answers are really what they want and need. Indeed lets not even admit they are non-recurring and call them indeterminate.
The voice in the music below is also AI generated and so is not an accurate representation of any human singer either in timbre or phrasing.

Lyrics
Gather ’round, all you hepcats, alligators, and gate-mouths**.
We’re gonna shed some light on the situation.
We’re talkin’ ’bout the circuits, the wires, and the absolute truth†.
Dig this…”

(Verse 1: The AND Operator)
Now, cast your peepers on the AND Gate, he’s a fussy kind of cat,
He won’t accept just this, and he won’t accept just that.
You bring him rhythm? Well, that’s only half the start,
He needs the melody too, before he gives you his heart.
If Input A is “Solid” and Input B is “True,”
Then the output starts to glowing, and the signal shines on through.
But if either one is “Nowhere,” if a zero hits the floor,
The AND Gate slams the shutter and he locks the heavy door.
It’s strictly double-high, my friend, or nothing at the gig,
That’s the conjunction function—can you dig?

(Verse 2: The Inclusive OR Operator)
Now the OR Gate is a brother with a much wider embrace,
He’s happy if just one of you is swinging in the place.
You got a signal on the left? He says, “Crazy, come on in!”
You got a signal on the right? He says, “Let the show begin!”
Even if you both show up, all shiny, bright, and hip,
The OR Gate keeps on grinning, he won’t give you no lip.
The only time he frowns, the only time he’s low,
Is when you both arrive with zeros and you got nowhere to go.
One or the other, or both, will make the circuit sing,
That’s the Inclusive OR, giving freedom to the swing.

(Bridge 1: The Exclusive OR – XOR)
But then there’s XOR, the Exclusive kind of guy,
He loves a little conflict, and I’ll tell you reasons why.
He wants to see a difference, a contrast in the scene,
Like a trumpet playing dirty while the sax is playing clean.
If you bring him two zeros, he’ll say, “Man, that is a bore.”
But if you bring him two ones, he’ll say, “I’ve heard that noise before!”
He only wants a one and zero, mixing up the stew,
If the inputs are identical, the output isn’t True.
He creates the arithmetic sum, he’s the adder in the pack,
But if you come the same, he’s gonna send you back.


(Verse 3: The Universal* NAND)
Now we enter into shadows with the Universal* NAND,
The versatile musician playing lead in every band.
He’s just an AND that caught a case of the “Not” blues,
He takes that happy double-one and tells it, “You lose.”
If A and B are high, he drives the output low,
But for any other combo, he lets the current flow.
He’s functionally complete, he can build the whole machine,
Just string a bunch of NANDs up, if you know just what I mean.
He flips the script on AND, he’s the inverter of the pair,
Outputting one for everything, unless the pair is there.
(Bridge 2: The Truth Table Breakdown)
Now, if you want to map the changes, if you want to see the sign,
You gotta check the Truth Table, reading line by heavy line.
It’s a grid of possibilities, a matrix of the fate,
Showing every combination that can hit the logic gate.
Imagine columns for the inputs, call ’em A and call ’em B,
Listing every zero-one across the binary sea.
Count it off now: Zero-Zero on the bottom,
Zero-One comes next in line,
One-Zero keeps it moving, One-One ends the design.
The table tells the output when the switching has been done,
It maps the False (the Zero) and the True (the Number One).
It’s the roadmap of the circuit, the bible of the bit,
Defining every state so the logic doesn’t quit.

(Verse 4: The NOR Operator)
Finally, the NOR Gate, the most exclusive cat in town,
He takes the easy-going OR and turns it upside down.
He doesn’t want a “this,” and he doesn’t want a “that,”
If he sees a single “One,” he grabs his coat and hat.
He only gives the thumbs up, he only gives the glow,
When Input A is zero and Input B is low.
It’s “Not OR,” baby, it’s the silence that he seeks,
He only speaks the truth when the input never speaks.
If anyone is high, the NOR Gate shuts it down,
He’s the strictest inverted gate inside of this town.
So that’s the Boolean boogie, the electronic jive,
Keeping all the computers and the processors alive.
From the AND to the OR, to the Universal gates,
Determining the logic and the digital fates.
† ” absolute truth” is consistent with the concept that ‘Truths’ in Boolean logic are tautologies. See the comments on logical truth in another section of this site
* The NAND gate (or “NOT AND” operation) is described as universal because it is functionally complete and so can be used to construct electronic binary processors.
** hepcats, alligators, and gate-mouths are historical slang terms from the history of blues and jazz
Boolean Logic Truth Tables
It is a rather surprising and impressive outcome of Google Gemini output that the lyrics and metaphors of this song are consistent with logic of Boolean Algebra operators and the functioning of computer logic gates. (Although, 4 lines in bridge section 2 are rather inelegant). For visual and pedagogical convenience the logical inputs and outputs are conventionally expressed in Truth Tables and explain the basis for implementation in computerised logic switching gates. The images above are ‘Truth Tables’ that were re-constructed by Google Nano Banana.
The images show the binary input values and the output function of some of the gate types used in computing. The metaphor ‘solid’ is used to represent the binary 1 value at points in the song. The metaphor ‘high’ ( voltage) is synonymous with 1 and ‘low’ (voltage) with zero in modern dynamically voltage scaled processors.
AI ‘Errors’ in the Performance Image
The performance image initially contained logical errors that were corrected by either text prompts in Nano Banana or in Adobe Firefly in Photoshop or conventional image editing. The speech bubble for the AND gate was moved to the ‘cool cat’ in the middle using a text prompt. The NOT gate was mistakenly shown with 2 inputs rather than one and was so was edited by another text prompt. The ‘input trumpets’ on the XOR gate were manually flipped and reconnected with some cloning since Nano Banana failed to do that after repeated text prompting.