Well, maybe you did work on your problems in your sleep and did get less rest because of it, so the new insights you got the next day(s), the groundwork for it might have happened in your sleepwork.
Well, maybe you did work on your problems in your sleep and did get less rest because of it, so the new insights you got the next day(s), the groundwork for it might have happened in your sleepwork.