In set theory, we can write the following notation: $\;S'=S\cup\{\text{value}\}$
Now let $\;S=(a_1,\ldots,a_n)\;$ be an ordered list of $n$ pairwise distinct elements
How to define $S'$ equals to $S$ after assigning a $\text{value}$ to the $i^\text{th}$ ordered member of $S\;$?
It will be helpful if you add a complete example to your answer.
Yes, we can. However one would most often not write “value” but rather introduce a new variable or constant, e.g. $v$. Note that if $v$ was an element of $S$ that $S‘$ would be equal to $S$.
This is called a $n$-tuple.
You defined $S$ already with $a_i$ as the $i$-th component. This is now bound to $S$. You can not reassign it.
You seem to want another $$ S’ = (a_1’, \dotsc, a_n’) $$ where $a_j’ = a_j$ for all $j \ne i$ and $a_i’= v$. Again if $v$ was equal to $a_i$ then $S‘$ would be equal to $S$.