I'm currently in high school and I am wondering about how math papers a formated. In standard literature studies essays, we are told to "come up with" a thesis statement, present it in the introduction then and prove it by giving arguments and examples from a given text.
Is this the same for math papers? Do the mathematicians already know what the result will be before the paper is written?
For example, if a math paper encompasses the proving of a certain conjecture, will the result of the entire paper be stated in the intro of the paper similar to that of a paper regarding literature study?
This depends on the style of the author and/or the journal and/or the specific field of study. Of course, mathematical proofs consist of a single logically rigourous argument which demonstrates a particular result, not a series of arguments, examples and pieces of evidence like, perhaps, in literature. A possible format for a mathematical paper might be:
(Please don't scrutinise the mathematical content of the above, it is merely for example.) And the sections following this might be named "proof of theorem 1", "proof of theorem 2", for example.
But this is far from the only structure a paper can take. Another natural (and thus common) approach is to give some brief background and ask an important question in the introduction, and then work through the steps in a systematic manner before ending up at the final result (instead of stating the result in the introduction up front). This is somewhat the way Wiles' famous paper Modular elliptic curves and Fermat's Last Theorem was written.
Really, the specifics of the formatting don't matter so much as long as the content can be conveyed in a clear way. The only purpose to formatting is to serve to aid understanding. As long as understanding is clear (for the readers), the paper is well-written.