NLA-lib Explorer

NLAlib.Ops.vec_drop_take

Library · theorem

An entry of a slice of a list is an entry of the list.

NLAlib.Ops.vec_drop_take {K : Type} [Inhabited K] {xs : List K} {a n i : ℕ} (h : i < n) :
  Ops.vec (List.take n (List.drop a xs)) i = Ops.vec xs (a + i)

Full source on GitHub

Import NLAlib.Ops.Logic.Layout.