@[simp]
theorem
List.finRange_succ_eq_map
(n : ℕ)
:
List.finRange (Nat.succ n) = 0 :: List.map Fin.succ (List.finRange n)
theorem
List.ofFn_eq_pmap
{α : Type u_1}
{n : ℕ}
{f : Fin n → α}
:
List.ofFn f = List.pmap (fun i hi => f { val := i, isLt := hi }) (List.range n) (_ : ∀ (x : ℕ), x ∈ List.range n → x < n)
theorem
List.ofFn_eq_map
{α : Type u_1}
{n : ℕ}
{f : Fin n → α}
:
List.ofFn f = List.map f (List.finRange n)
theorem
List.nodup_ofFn_ofInjective
{α : Type u_1}
{n : ℕ}
{f : Fin n → α}
(hf : Function.Injective f)
:
List.Nodup (List.ofFn f)
theorem
Equiv.Perm.map_finRange_perm
{n : ℕ}
(σ : Equiv.Perm (Fin n))
:
List.map (↑σ) (List.finRange n) ~ List.finRange n