Reversal on Fin #
On Fin 2 the reversal Fin.rev exchanges the two elements, so every index is either a given
index or its reverse: Fin.fin_two_eq_or_eq_rev. This is how the two branches of an edge of a
graph, indexed by Fin 2, are told apart.
On Fin (n + 1) the reversal is j ↦ n - j, so a condition on the indices j and n - j can be
restated over the natural numbers m ≤ n with m = n - j: Fin.forall_imp_sub_iff_forall_le.
Fin.neg_one_pow_rev_add_rev_add_one shows that reversing both indices preserves the sign
(-1) ^ (i + j + 1). This is the parity identity used by signed graph automorphisms.
theorem
Fin.neg_one_pow_rev_add_rev_add_one
{M : Type u_1}
[Monoid M]
[HasDistribNeg M]
{n : ℕ}
(i j : Fin n)
:
Reversing both indices of a pair in Fin n preserves the parity of their sum, so the sign
(-1) ^ (i + j + 1) attached to a root ε_i - ε_j is unchanged by the reversal.