I know that $$ \sum_{i=1}^n a_i = a_1 + a_2 + \dots + a_n $$ and I get how to, in general, manipulate expressions with these finite sums. This has typically been introduced to me as simply just being the sum of $a_1$ up to $a_n$. My question is
How can one rigorously define this sum?
(While not being a strict follow-up question to
this is the post that is the source of my question?)
EDIT: If there is no definition that is more rigorous, then I will accept the answer saying that. I ask because I know that things that seem fairly clear have more precise definitions. For example, I know that a function has a set theoretic definition. So I wonder if this finite sum above might have something similar.
This can be done inductively—what follows is a completely over-the-top way of doing it.
Given any additive group $(G, +, 0)$ (even a monoid would do), such as the real numbers $\mathbb{R}$ under addition, first define the set $G^n$ of $n$-tuples of elements of $G$ inductively by $$G^0 = \{ () \} \quad \text{and} \quad G^{n+1} = \{ (\vec a, a_{n+1}) \mid \vec a \in G^n,\ a_{n+1} \in G \}$$ Thus the elements of $G^n$ are lists $(a_1,a_2,\dots,a_n)$ of length $n$ of elements of $G$.$^{\dagger}$
Now we can use this inductive characterisation of $G^n$ for all $n \in \mathbb{N}$ to define, for each $n \in \mathbb{N}$, a function $$S_n : G^n \to G$$ by declaring $$S_0(()) = 0 \quad \text{and} \quad S_{n+1}((\vec a, a_{n+1})) = S_n(\vec a) + a_{n+1}$$ for each $n \in \mathbb{N}$ and each $(\vec a, a_{n+1}) \in G^{n+1}$.
Finally, define $$\sum_{i=1}^n a_i = S_n(\vec a)$$ for each $n \in \mathbb{N}$ and $\vec a \in G^n$.
${}^{\dagger}$More precisely, the lists are parenthesised to the left, so that $(a_1,a_2,a_3,a_4)$ is really $(((a_1,a_2),a_3),a_4)$, for instance.