A practice problem led me to produce the following statement (the below result is specific to the practice problem):
For any non-empty interval $I$ (open or closed) in $\mathbb R$: $\forall a,b \in I \left[f(a)=f(b) \right]$
It seemed intuitive that I could conclude the function $f$ was constant over the interval $I$. In attempt to be more formal, I constructed the following claim:
$$\forall a,b \in I \left[f(a)=f(b) \right] \rightarrow \exists C \in \mathbb R \text{ s.t. } \forall x \in I \left [f(x)=C \right]$$
For the purpose of my question, I am going to expand the universal statements into their "full" form and use some color coding:
$$\color{blue}{\forall a,b \big( a \in I \land b \in I} \rightarrow f(a)=f(b) \big) \rightarrow \color{red}{\exists C} \in \mathbb R \text{ s.t. } \color{orange}{\forall x \big ( x \in I} \rightarrow f(x)=C \big)$$
Here is how I would prove this statement:
$I$ is a non-empty set and therefore $\exists y \in I$
$\color{red}{\text{Let }y} \text{ be an arbitrary element of } I$.
$\color{orange}{\text{Let }x } \text{ be an arbitrary element of } I$.
By our $\color{blue}{\text{assumption}}$, we then conclude that $f(x)=f(y)$.
Let $f(y)$ be represented by the symbol $C$...i.e. $C=f(y)$.
Therefore, $f(x)=C$.
$x$ was arbitrary so we can generalize to all $x$ in $I \quad \square$
I have a series of questions about Step 2, Step 3, and Step 5. I very purposely used the same verb "let" for the three different statements...because I have encountered all such usages of this word. I apologize in advanced if the proper math jargon that is germane to this question is lacking.
Firstly, although Step 2 and Step 3 are both introducing symbols with the same feature of belonging to the non-empty interval $I$, these two steps seem fundamentally different to me. The ability to bring the object $x$ into the argument seems to emerge naturally for proofs involving implications: I am assuming that $x$ is in $I$ - I refer to this as an "Antecedent Assumption" and am unsure if it has a technical name. My impression is that Step 3 does not depend on Step 1.
Conversely, I feel as though Step 2 can only be invoked as a consequence of Step 1. In particular, I believe this is an instance of existential instantiation As the color coding suggests, Step 2 is asserted in order to eventually produce the desired $C$.
Finally, Step 5 seems to be purely a labeling step. I don't believe this step corresponds to either an antecedent assumption or an existential instantiation. In fact, I have no idea what to refer to this step as in technical terms.
If someone could please provide their expertise on the distinction between these three different usages of the word "Let" (and comment on whether or not my initial attempt at describing them is correct), I would greatly appreciate it.