TITLE: How are long proofs "planned"?
QUESTION [23 upvotes]: I just graduated with my bachelors in mathematics last year, so I have little experience in writing huge, very involved proofs. The longest proof I've ever written was about 10 pages, but it wasn't even 10 pages "long" in the way I'm talking about, it just had many cases. 
When I have a general idea of a proof, I sometimes prove the theorem in one attempt. Rarely, I completely have a rock-solid proof in my mind before writing anything. Other times, I simply deduce "what I can" and hope that it leads me to my result, or that it at least sheds light on additional facts I need to investigate in order to prove the theorem.
In the last case, sometimes all of my deduction was quite useless in showing the result, and so I start over and take the proof in a different direction, or research theorems that may help me.
Then, I hear about these incredibly long proofs done by world-class mathematicians, and sometimes, I even hear of extremely long proofs (thousands of pages) that were contributed to by many mathematicians working together.
My question is: how are these long proofs "planned?" Is a general outline formulated after much discussion? Surely it is not feasible to get 200 pages in and realize your proof is not leading to the result. How do you embark on a 1000-page journey for proving some theorem? I suspect there are meetings, preliminary work, plans, and things like that.
Is there a general technique for planning these long proofs that I should familiarize myself with as I continue to move forward?
Thank you

REPLY [4 votes]: I think that many mathematicians (including me) create long proofs similarly to you, so this is a general way. Therefore I cannot add much to my answer to the linked question. Sometimes long proof are guided by a priori intuition, as Poincaré wrote, sometimes they are a posteriori glued together, for instance, as a classification of finite simple groups.  Sometimes in long proof we just follow standard algorithm, for instance, while we solve PDE. One more approach I used a couple of years ago, while solving a next open problem I had no clear intuition, but I wrote a complex speculations in order to see the ideas more clearly, and, finally, I got it. 
But sometimes the work done will be idle, and I don’t know a perfect way to avoid that. One of insurances can be a priori estimation: when you prove the lemmas which you write, will you be able to prove the theorem? As George Polya recommended to start a proof form the end, although this is a “symmetric” situation.
{"set_name": "stack_exchange", "score": 23, "question_id": 1088811}