Documentation

Std.Data.Iterators.Lemmas.Producers.Vector

theorem Vector.iter_eq_toIter_iterM {β : Type w} {n : Nat} {xs : Vector β n} :
xs.iter = (xs.iterM Id).toIter
theorem Vector.iter_eq_iterFromIdx {β : Type w} {n : Nat} {xs : Vector β n} :
theorem Vector.iterFromIdx_eq_toIter_iterFromIdxM {β : Type w} {n : Nat} {xs : Vector β n} {pos : Nat} :
theorem Std.Iterators.Vector.isPlausibleStep_iterFromIdx_of_lt {β : Type w} {n : Nat} {xs : Vector β n} {pos : Nat} (h : pos < n) :
@[simp]
theorem Vector.iterFromIdx_toArray {β : Type w} {n : Nat} {xs : Vector β n} {pos : Nat} :
@[simp]
theorem Vector.iter_toArray {β : Type w} {n : Nat} {xs : Vector β n} :
theorem Vector.step_iterFromIdx {β : Type w} {n : Nat} {xs : Vector β n} {pos : Nat} :
(xs.iterFromIdx pos).step = if h : pos < n then Std.PlausibleIterStep.yield (xs.iterFromIdx (pos + 1)) xs[pos] else Std.PlausibleIterStep.done
theorem Vector.step_iter {β : Type w} {n : Nat} {xs : Vector β n} :
@[simp]
theorem Vector.toList_iterFromIdx {β : Type w} {n : Nat} {xs : Vector β n} {pos : Nat} :
@[simp]
theorem Vector.toList_iter {β : Type w} {n : Nat} {xs : Vector β n} :
@[simp]
theorem Vector.toArray_iterFromIdx {β : Type w} {n : Nat} {xs : Vector β n} {pos : Nat} :
(xs.iterFromIdx pos).toArray = xs.toArray.extract pos n
@[simp]
theorem Vector.toArray_iter {β : Type w} {n : Nat} {xs : Vector β n} :
@[simp]
theorem Vector.toListRev_iterFromIdx {β : Type w} {n : Nat} {xs : Vector β n} {pos : Nat} :
@[simp]
theorem Vector.toListRev_toIter {β : Type w} {n : Nat} {xs : Vector β n} :
@[simp]
theorem Vector.length_iterFromIdx {β : Type w} {n : Nat} {xs : Vector β n} {pos : Nat} :
(xs.iterFromIdx pos).length = n - pos
@[simp]
theorem Vector.length_iter {β : Type w} {n : Nat} {xs : Vector β n} :
theorem Vector.iterFromIdx_equiv_iter_drop_toList {n : Nat} {α : Type w} {xs : Vector α n} {pos : Nat} :
theorem Vector.iter_equiv_iter_toList {n : Nat} {α : Type w} {xs : Vector α n} :