Compare commits

...

1 Commits

Author SHA1 Message Date
Scott Morrison
9d021c1d00 chore: a missing List lemma in Init 2024-02-15 19:17:53 +11:00

View File

@@ -418,8 +418,8 @@ theorem mem_filter : x ∈ filter p as ↔ x ∈ as ∧ p x := by
· exact or_congr_left (and_iff_left_of_imp fun | rfl => h).symm
· exact (or_iff_right fun rfl, h' => h h').symm
-- theorem filter_eq_nil {l} : filter p l = [] ↔ ∀ a, a ∈ l → ¬p a := by
-- simp only [eq_nil_iff_forall_not_mem, mem_filter, not_and]
theorem filter_eq_nil {l} : filter p l = [] a, a l ¬p a := by
simp only [eq_nil_iff_forall_not_mem, mem_filter, not_and]
/-! ### findSome? -/