Documentation

Mathlib.Data.List.ReduceOption

Properties of List.reduceOption #

In this file we prove basic lemmas about List.reduceOption.

@[simp]
theorem List.reduceOption_cons_of_some {α : Type u_1} (x : α) (l : List (Option α)) :
@[simp]
theorem List.reduceOption_nil {α : Type u_1} :
@[simp]
theorem List.reduceOption_map {α : Type u_1} {β : Type u_2} {l : List (Option α)} {f : αβ} :
theorem List.reduceOption_mem_iff {α : Type u_1} {l : List (Option α)} {x : α} :
theorem List.reduceOption_get?_iff {α : Type u_1} {l : List (Option α)} {x : α} :
(∃ (i : ), List.get? l i = some (some x)) ∃ (i : ), List.get? (List.reduceOption l) i = some x