Theorems · Theorem · combinatorics
List.Vector.scanl_singleton
∀ {α : Type u_1} {β : Type u_6} (f : β → α → β) (b : β) (v : List.Vector α 1),
List.Vector.scanl f b v = b ::ᵥ f b v.head ::ᵥ List.Vector.nilThe recursive step of scanl splits a vector made up of a single element
x ::ᵥ nil : Vector α 1 into a Vector of the provided starting value b : β
and the mapped f b x : β as the last value.
- Defined in
- Mathlib.Data.Vector.Basic
- Cited by
- 1 results in Mathlib
- Foundations
- Depth 48 from the axioms · uses propext, Quot.sound
Around this declaration
Dashed lines are statement dependencies; solid lines are citations in proofs.
Cites10
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.nilstatement and proof · cited by 68
- List.Vector.headstatement and proof · cited by 39
- List.Vector.head_consproof · cited by 25
- List.Vector.cons_head_tailproof · cited by 7
- List.Vector.scanlstatement and proof · cited by 7
- List.Vector.scanl_consproof · cited by 3
- List.Vector.singleton_tailproof · cited by 2
- List.Vector.scanl_nilproof · cited by 2
Cited by1
Results whose statement or proof uses this declaration.
- List.Vector.scanl_getproof · cited by 0