I am relatively new to number theory, and wanted to ask how to appropriately write a “subproof” within a proof. I searched the internet for a solution and came across “lemmas” but am not sure if I can create my own lemma within a proof and refer to it later. Any help would be appreciated:
Let’s say I need to prove that a number x satisfies the inequality 8 < x < 12
Is there a way I can prove this by writing a proof that goes something like this:
Subproof 1(proves x < 12): blablabla random proof stuff… that results in: x < 12
Subproof 2(proves x > 8): blablabla random proof stuff… that results in x > 8
Then have a final statement: “due to subproof 1 and subproof 2: 8 < x < 12”