I am working on a lemma with proof by mathematical induction. To make my proof easier to parse, I want to define a function - it is likely I will not refer to this function anywhere else in the document.
Is it legitimate to define a function in a proof? Or is there a better approach?