mathlib3 documentation

data.list.fin_range

Lists of elements of fin n #

THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.

This file develops some results on fin_range n.

@[simp]
theorem list.map_nth_le {α : Type u} (l : list α) :
list.map (λ (n : fin l.length), l.nth_le n _) (list.fin_range l.length) = l
theorem list.of_fn_eq_pmap {α : Type u_1} {n : } {f : fin n α} :
list.of_fn f = list.pmap (λ (i : ) (hi : i < n), f i, hi⟩) (list.range n) _
theorem list.of_fn_eq_map {α : Type u_1} {n : } {f : fin n α} :
theorem list.nodup_of_fn_of_injective {α : Type u_1} {n : } {f : fin n α} (hf : function.injective f) :
theorem list.nodup_of_fn {α : Type u_1} {n : } {f : fin n α} :
theorem equiv.perm.of_fn_comp_perm {n : } {α : Type u} (σ : equiv.perm (fin n)) (f : fin n α) :

The list obtained from a permutation of a tuple f is permutation equivalent to the list obtained from f.