Reverse on Fin n #
This file contains lemmas about Fin.rev : Fin n → Fin n which maps i to n - 1 - i.
Definitions #
Fin.revPerm : Equiv.Perm (Fin n):Fin.revas anEquiv.Perm, the antitone involution given byi ↦ n-(i+1)
Fin.rev as an Equiv.Perm, the antitone involution Fin n → Fin n given by
i ↦ n-(i+1).
Instances For
@[simp]
theorem
Fin.rev_pred
{n : ℕ}
{i : Fin (n + 1)}
(h : i ≠ 0)
(h' : i.rev ≠ last n := ⋯)
:
(i.pred h).rev = i.rev.castPred h'
theorem
Fin.rev_castPred
{n : ℕ}
{i : Fin (n + 1)}
(h : i ≠ last n)
(h' : i.rev ≠ 0 := ⋯)
:
(i.castPred h).rev = i.rev.pred h'
rev commutes with succAbove.
rev commutes with predAbove.