The trick is to combine your waking rational abilities with the infinite possibilities of your dreams. Because, if you can do that, you can do anything. -Waking life (2001)
I'm not convinced about the infinite possibilities of my dreams. Pretty sure large parts of my brain are not functioning as well during REM sleep as they are while I'm awake. For example, I don't think I can read in my dreams, or write computer programs. So possibly the things I can dream about are only a subset of the things I can think about while awake.
And that's leaving aside my heuristic judgement about all non-rigorous uses of the word "infinite".
Here's the new thread for posting quotes, with the usual rules: