Wondering if there is the study of mutable objects in math. A comment on Is There a Mathematical Symbol For Mutable & Immutable values? says:
In mathematics, it's extremely uncommon to have a mutable variable outside of a code/pseudocode block.
I am interested in mutable objects related to groups in group theory. An example is:
$$a \circ b = a'$$
If that was part of a larger equation, the first operation on $a$ would give $a'$, and then you can't use $a$ anymore.
$$x(a) = a \circ b \land a \circ c$$
would not be a thing necessarily since the first operation changed $a$.
If there isn't any, wondering why not.
This comes up in programming, where you are changing the memory. A simple add operation stores its result in memory, so the memory is changed. Wondering how that sort of stuff is modeled, and just generically mutable objects.
This is largely the purpose and role served by subscripts in mathematical writing.
In analysis, you frequently want to show that some special value $x$ exists which has some special property. It is frequently easier to construct a sequence $\{x_n\}$ which you can demonstrate must be convergent to some value---which happens to have the special property you wanted---then to directly show that $x$ must exist.
In this usage, a particular value $x_{n+1}$ is frequently constructed out of the previous values $x_0, x_1, \ldots, x_n$ either by some formula or by appealing to some existence theorem. In any case, the term $x_{n+1}$ becomes the focus of consideration at the $n+1$st step, and the previous items in the sequence are largely incidental.
This usage is nice in that it gives you a common symbol---in this case $x$--- to hold on to, to let you know these quantities are somehow related and the indices reflect that some sort of recursive construction is happening.
This usage also extends to sets in that you might create a sequence of sets $\{A_n\}$ which, again, the term $A_{n+1}$ is somehow built out of the previous $A_0, A_1, \ldots, A_n$ in some manner. This construction usually ends up with you worrying about the sets $$\bigcup_{n=1}^\infty A_n,\quad \bigcap_{n=1}^\infty A_n,\quad \liminf A_n,\quad\text{and}\quad\limsup A_n$$ instead of some quantity.