Lemmas about list
s and set.range
#
THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.
In this file we prove lemmas about range of some operations on lists.
theorem
set.range_list_nth
{α : Type u_1}
(l : list α) :
set.range l.nth = has_insert.insert option.none (option.some '' {x : α | x ∈ l})
@[simp]
@[simp]
theorem
set.range_list_inth
{α : Type u_1}
[inhabited α]
(l : list α) :
set.range l.inth = has_insert.insert inhabited.default {x : α | x ∈ l}