Theorems about membership of elements in vectors #
THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.
This file contains theorems for membership in a v.to_list
for a vector v
.
Having the length available in the type allows some of the lemmas to be
simpler and more general than the original version for lists.
In particular we can avoid some assumptions about types being inhabited
,
and make more general statements about head
and tail
.
theorem
vector.not_mem_map_zero
{α : Type u_1}
{β : Type u_2}
(b : β)
(v : vector α 0)
(f : α → β) :
b ∉ (vector.map f v).to_list