← Back to context

Comment by ml_basics

2 days ago

During my time at university studying pure mathematics I had an interesting experience of doing a challenging sheet of combinatorics problems during a vacation. Every day I attempted one question and got stuck on it. Then the next morning I woke up knowing the solution. It was a recurring thing: this happened every day for about 2 weeks until I had solved all the problems.

For me this a big eye opener about the importance of sleep and relaxed thinking to solve challenging problems.

In my 40's I could go to bed with a complex software design or implementation problem I was wrestling with. Consciously word a cogent and succinct question that I needed answered, sleep on it, and then in the morning, I would be still and mentally ask, "well?" Not meditating or anything, just be quiet then and listen.

And, in very deadpan style, after a few seconds (as if to choose one's words carefully), some answer would come to me audibly in my voice in my mind.

"Have you tried X?" No, I hadn't tried X, and holy smokes that was a workable approach! Sometimes, it would tell me to go back to some bit of code or configuration I had moved on from and tell me to go back and focus on that, it was almost always right that there was where I had goofed up. I experimented with posing multiple questions and follow up questions. I even asked it how it was that these answers were derived.

Strange to reread the above and refer to my own thoughts as 'it'. They were bidden ideas that came from me for sure. But, I disassociate from them because I have no memory of the chain of thought that led to the responses.

There's a lot going on upstairs, higher mind stuff. I am older now, and I no longer experience this phenomena. Have I lost it to age, or have I integrated it somehow into my conscious mind?

  • > There's a lot going on upstairs, higher mind stuff. I am older now, and I no longer experience this phenomena. Have I lost it to age, or have I integrated it somehow into my conscious mind?

    It's similar to what Jaynes described in his "bicameral mind." Man of antiquity "heard" disembodied wisdom dispensed to him, seemingly at random, from an incorporeal source: "gods." Today we simply regard such pseudo-auditory phenomena as "thought," which may throw light on Cartesian-style equation of "the soul" with "the mind," and enduring mathematical truths with divinity.

    Following the Bronze Age collapse and the "breakdown of the bicameral mind," human culture is replete with examples of people trying to hear the voices of gods, who were now being crowded out by the conscious, egoic, individualistic mental chatter of the newly developed default mode network - the crying out of the Psalms, elaborate rituals and procedures for invoking divine inspiration in the oracles, various forms of divination, augury, etc.

    Tarot, properly understood, is not a means for divining the future, but a debugger or reverse engineering tool for probing the internal psychological state of the querent, and hopefully coaxing out these moments of unconscious, unbidden inspiration.

    Much of modern esotericism is about trying to steer the brain into states of mind where these vestigial, intuitive, subconscious, nonlinear, pattern matching, Kahneman System 1 facilities of thinking, become once again accessible to conscious prompting and dialogue. Jaynes calls this "the induction," the Romans called it "the genius," Thelemites know it as "the knowledge & conversation," and it may be most broadly described as "union with God."

    • I view our existence as something like a fractal.

      World history is a scrambled mess of lies and amnesia (from repeated collective concussions, heh) Who knows what is truth and what is the Victor writing the history books?

      One's life is untraceable - how did we get here? Literally too much went into that story, majority unseen, and none of us can fully say.

      And so at the personal level, are thoughts borne out of a chain (or DAG??) of memories that cannot ever be fully traced?

      Was my homunculus voice who gave me detailed clues/answers just returning the highest probable solution gleaned from thousands of simulations in the problem space I presented? Of course I should not be privy to such musings, I wouldn't have the patience for it - so it seems to me to be "out of nowhere".

      I do sometimes wonder though with all my weird experiences if I am merely the "doer in the body" whereas I have a higher self who is the real "thinker" running things in the background and who has access to the big picture.

      4 replies →

  • I subscribe to the Multiplicity of Personality theory (our personalities are a combination of multiple ones). eg My wife and I both have a chaos monkey that emits impulses to do the most destructive and disruptive things, which we sometimes talk about in jest.

    My dominant personality is one of control (for order) so I can focus on problem solving. Some sort of raw insight/intelligence comes from a personality that isn't always on, but seems to erupt from periods of calm and relaxation. eg Shower solutions or bedtime revelations are common.

    Many people have told stories of voices that nudge them this way or that at just the right time, which I've experienced as well. Whatever part of me dreams is uses memories and fantasy, striving to experiencing new scenarios through thought experiments. The better I sleep, the more I find very recent events are incorporated...so it's some sort of shared space and speaks to how physical state affects mental states, even in sleep. I also feel like the personalities fight for dominance when the body or mind is overly-stressed (puberty, mortal danger, etc) but normally resolve into a sort of basal state.

    I never wanted to be a psychologist. I often think that maybe I'm just crazy. It would explain a lot.

    • I once had a very weird experience on LSD (of course), in which I perceived my brain and thinking as a bunch of separate entities working in synchrony. Only two of them were capable of speech, and some were very simple and reactive. The "me" part was just them agreeing on stuff. I will never forget the experience.

      2 replies →

    • > My wife and I both have a chaos monkey that emits impulses to do the most destructive and disruptive things, which we sometimes talk about in jest.

      Often called “the imp of the perverse” from the Poe story of the same name.

    •   > I often think that maybe I'm just crazy.
      

      Everyone is crazy, just most people are afraid to admit it to others. A lot of people are even afraid to admit it to themselves. Some people pretend so long they forget they're pretending. But wouldn't that itself be crazy?

      1 reply →

  • When I wake up from good rest it's like I've been somewhere else for years. I use that time to stay off the Internet and look at things fresh. That would explain plenty of coming up with novel solutions to things, without any solving being done while sleeping. The mental ruts of the day greatly limit problem-solving ability.

  • What about before your 40s?

    • Nothing I recall from my 30's, but in my 20's I worked in videogames and that was a brutal industry at that time in terms of work-life balance. (Or, at least it sounds better nowadays.)

      Bad sleep habits at that time ultimately led me to do a lot of daytime napping.

      During those sessions I occasionally experienced sleep paralysis, one out of body waking dream, and disturbing stuff like hearing head-splitting trumpet sounds upon waking up.

      One time, I awoke and heard an attenuated trumpet sound, and through the rush I heard two voices nearby. Just as I finished struggling to get control of my body, I distinctly remember hearing one of them say, "I can see it!"

      I was living alone at the time, and that was so alarming and made me question my life choices. Looking back now I view that episode as a probable spiritual attack on a vulnerable young man.

      9 replies →

I often wake up realizing I wrote a handful of bugs the day before. They’re obvious to me in the morning even before I sit down and open my laptop.

Sleep is a strange and magical thing.

  • Yes! When I awoke this morning my very first thought was ‘you didn’t connect the ground wire for the heater’.

    Amazing how our brains work. Went back and sure enough I’d omitted that final connection.

Yeah, when you are stuck, put away that red bull and step away from the keyboard, kids.

  • This might be why agentic development/vibe coding leads to more burn out. It's been a long time since I've truly been 'stuck' on a problem and needed to sleep on it to figure out the answer. Now I just ask Claude to fix it until it's fixed...

    • Sounds like polyphasic sleeping might re-emerge as the lifestyle solution. Instead of waiting for agents to complete, you should sleep on the response so when you arise you have the optimized prompt ready to go and a reset on your energy to prevent the burnout.

      2 replies →

    • FWIW I've had the opposite experience. Whenever I work late the output is absolute garbage. If I work past midnight it takes me 3 hours to get done what would have taken me 30 mins in the morning, and with way less frustration and stress. Your inputs to the LLM are only as good as how fresh your mind is so I've made it a rule to not work past midnight (unless there's an emergency).

      In the good old days you would reach flow and actually know when you're too tired to continue. Now you can just say "please just fix it" over and over again and get yourself in a slophole much easier.

In French, there's a saying: "la nuit porte conseil". Roughly translates to "the night advises", and it means it might be better to sleep on it.

I recall my father (also a mathematician, incidentally) often repeating this to me.

  • Literally the same in Italian, la notte porta consiglio. It's in the Bible, in nocte consilium from the Book of Proverbs, but it's likely to pre-date even that by centuries.

Interestingly, I observed the same when I was practicing the drums. I would fail multiple times to reproduce a drumming part, sleep on it, and succeed on the first try the day after.

  • Difficult parts on videogames as well. It could be attributed to slow response times due to being tired or accidentally memorizing a bad pattern, resting also could help with those.

  • This would happen to me when I played pool. I would master a skill overnight, somehow, and come back to the table the next day leveled up--far better than I had left off the day before.

  • yep, same with guitar. go to sleep fumbling through a riff even though you "know" it, wake up playing it smooth as hell

People are so different. When I was in college, if I had an unsolved problem, I could not fall asleep.

That's awesome! I had a somewhat similar experience (shared previously [0]):

> I proved a topology theorem in a dream once.

> Before I went to sleep, my inability to prove it had been bugging me all day long, and I suspected it'd be featured on the next morning's (way too early) final exam for my university course. I solved it in my dream, woke up, wrote on my whiteboard what I remembered and sure enough, it was correct. I worked it a few more times to cram it into my memory before running to my exam.

> To my great delight, the ability to prove that theorem was featured heavily in one of the exam's questions, and helped me do quite well on the exam overall.

[0] https://news.ycombinator.com/item?id=40651913

Yup! All good ideas and solutions to hard problems, after becoming stuck, have come to me after a good night's sleep or after removing myself from the "thinking place" and taking a break. Yes I mean the toilet. Many fantastic ideas come to me on the toilet.

My biggest road blocks seem to be knocked down with a nice walk / good nights rest, a la "rubber duck debugging." Essentially, stepping away and being able to put a fresh set of "eyes" on the problem with a different perspective, albeit it's just you resetting your own perspective.

That makes me wonder if studying may be more effective right before bed time, despite tiredness from the day, or if it's more effective early in the day, while we're less fatigued.

Can confirm this level of problem solving.

Had physics problems to solve and can remember to this day when I woke up in the library after I got exhausted from not solving the last one, that my subconscious discovered during sleep that I missed that certain vectors were orthogonal (which was the necessary key insight to solve it).

I can confirm - I woke up to the resolution to my two hardest problems during PhD. Three, if you count "I should look for this kind of inequality" (which did turn out to exist), but I think that's more of an _idea_ than a solution.

The hard part is paying attention to it. With enough attention your mind will fix it.