"The best way to learn mathematics is to do mathematics."
The act of writing is an act of optimism. You would not take the trouble to do it if you felt it didn't matter.
A mathematician's work is mostly a solitary pursuit, but it is also deeply collaborative.