Okay, after some extensive research this evening, it appears my information the retaliation for sinking a carrier is out of date. It was an older Cold War strategy. There are currently two parallel lines of thinking when it comes to the destruction of a US aircraft carrier:
1: Destroying a US carrier is damn near impossible for anyone to accomplish shy of a few nation states, China and Russia being the primary two. And even for them, it would be difficult to accomplish by conventional means. Consequently, the US Navy is not too worried about losing one to a surprise attack, which is the type of scenario we're discussing. If we are involved in a hot shooting war with China or Russia and we lose a carrier, that's a different scenario (again, assuming it's lost by conventional means).
2: That being said, if a surprise attack were to actually take out a carrier, context would determine the response, which would most likely be swift and severe (ie disproportionate), but would also probably remain conventional since if the carrier was sunk by conventional means, a nuclear response would now be perceived as "first use." (I disagree with this assessment, but this is what my research is indicating.)
Both of the above statements are invalidated if a carrier is destroyed by a nuclear weapon. We all know where that would go.
As to whether or not nuclear weapons are currently carried aboard aircraft carriers, again, my information is apparently out of date. Allegedly, all US Navy surface ships were "denuclearized" in 1993 and the only remaining US naval vessels to carry nuclear weapons are submarines. Now, this is based on recently declassified documents, meaning this may or may not still be true in 2023. Ask any sailor and you're going to get the trusty old "I can neither confirm nor deny" response.
This is the problem with me being a product of the Cold War. I sometimes refer to things I learned in the 80s and 90s, not taking into account that's been 30 or 40 years ago at this point. It just doesn't seem like it was that long ago to me, but it was.
So, I apologize for proffering outdated information, and I hope this clears up the matter. In my own defense, I would have been right if this discussion had taken place 40 years ago!
Mea culpa.