Really smart characters require a really smart author

I’ve read several books recently where the author claims that the protagonist is highly intelligent, but this claim isn’t substantiated through their actions or revealed thoughts. The character misses obvious alternative solutions to their problem, and quite often the book wraps up in a contrived fashion.

Here’s a hypothesis:

The most intelligent character in the book can only be as intelligent as the author.