How do we formally prove (e.g. in type theory) that $$\sum _ix_i=\sum_ix_{f(i)}$$ For any bijection $f:I\to I$ for any finite set $I$?
I might be overcomplicating things, but I’m having trouble seeing how to best define $\sum$ formally, and do the proof. My initial thought was to apply mathematical induction, given that we can define $\sum_i^nx_i=\sum_i^{n-1}x_i+x_n$, but I can’t see how it works for arbitrary bijections.
For an automated proof checker (or similar very formal system) you would probably prove a theorem/lemma that the sum of the elements in a finite set was well defined, by induction on the cardinality, invoking associative and commutative laws (which might be axioms or themselves theorems).
Related: Would it be possible / necessary to prove that a math law can be applied to a given formula. Is intuitive recognition of structure similarity enough?