Theorems · Theorem · combinatorics
List.Vector.scanl_get
∀ {α : Type u_1} {n : ℕ} {β : Type u_6} (f : β → α → β) (b : β) (v : List.Vector α n) (i : Fin n),
(List.Vector.scanl f b v).get i.succ = f ((List.Vector.scanl f b v).get i.castSucc) (v.get i)For an index i : Fin n, the nth element of scanl of a
vector v : Vector α n at i.succ, is equal to the application
function f : β → α → β of the castSucc i element of
scanl f b v and get v i.
This lemma is the get version of scanl_cons.
- Defined in
- Mathlib.Data.Vector.Basic
- Cited by
- 0 results in Mathlib
- Foundations
- Depth 49 from the axioms · uses propext, Quot.sound
Around this declaration
Dashed lines are statement dependencies; solid lines are citations in proofs.
Cites19
Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.
- zero_addproof · cited by 2,366
- List.Vectorstatement and proof · cited by 270
- List.Vector.consproof · cited by 90
- List.Vector.toListproof · cited by 79
- List.Vector.nilproof · cited by 68
- List.Vector.getstatement and proof · cited by 41
- List.Vector.headproof · cited by 39
- List.Vector.tailproof · cited by 37
- List.Vector.head_consproof · cited by 25
- List.Vector.get_zeroproof · cited by 10
- List.Vector.toList_consproof · cited by 9
- List.Vector.scanlstatement and proof · cited by 7
Cited by0
Results whose statement or proof uses this declaration.
Nothing cites this yet.