Theorems · Theorem · combinatorics
List.Vector.scanl_cons
∀ {α : Type u_1} {n : ℕ} {β : Type u_6} (f : β → α → β) (b : β) (v : List.Vector α n) (x : α),
List.Vector.scanl f b (x ::ᵥ v) = b ::ᵥ List.Vector.scanl f (f b x) vThe recursive step of scanl splits a vector x ::ᵥ v : Vector α (n + 1)
into the provided starting value b : β and the recursed scanl
f b x : β as the starting value.
This lemma is the cons version of scanl_get.
- Defined in
- Mathlib.Data.Vector.Basic
- Cited by
- 3 results in Mathlib
- Foundations
- Depth 16 from the axioms · uses propext, Quot.sound
Around this declaration
Dashed lines are statement dependencies; solid lines are citations in proofs.
Cites6
Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.
- List.Vectorstatement and proof · cited by 270
- List.Vector.consstatement and proof · cited by 90
- List.Vector.toListproof · cited by 79
- List.Vector.toList_consproof · cited by 9
- List.Vector.scanlstatement and proof · cited by 7
- List.Vector.eqproof · cited by 3
Cited by3
Results whose statement or proof uses this declaration.
- List.Vector.scanl_headproof · cited by 1
- List.Vector.scanl_singletonproof · cited by 1
- List.Vector.scanl_getproof · cited by 0