Documentation

Batteries.Data.List.FinRange

@[deprecated List.length_finRange]
theorem List.length_list (n : Nat) :
(List.finRange n).length = n

Alias of List.length_finRange.

@[deprecated List.getElem_finRange]
theorem List.getElem_list {n : Nat} (i : Nat) (h : i < (List.finRange n).length) :
(List.finRange n)[i] = Fin.cast i, h

Alias of List.getElem_finRange.

@[deprecated List.finRange_zero]

Alias of List.finRange_zero.

@[deprecated List.finRange_succ]
theorem List.list_succ (n : Nat) :
List.finRange (n + 1) = 0 :: List.map Fin.succ (List.finRange n)

Alias of List.finRange_succ.

@[deprecated List.finRange_succ_last]
theorem List.list_succ_last (n : Nat) :
List.finRange (n + 1) = List.map Fin.castSucc (List.finRange n) ++ [Fin.last n]

Alias of List.finRange_succ_last.

@[deprecated List.finRange_reverse]
theorem List.list_reverse (n : Nat) :
(List.finRange n).reverse = List.map Fin.rev (List.finRange n)

Alias of List.finRange_reverse.