You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exact List.map_equiv f (Set.elts (Set.make xs)) xs elts_make_eqv
785
+
786
+
-- TODO: perhaps we could avoid needing to have this a public theorem, if we had enough other lemmas about `Set.map` that avoided callers having to reason about `make` or `elts`
787
+
public theoremmap_def [LT β] [DecidableLT β] (f : α → β) (s : Set α) :
788
+
s.map f = Set.make (s.elts.map f)
789
+
:= by simp [Set.map]
790
+
740
791
/-! ### filter and differences -/
741
792
742
793
public theoremfilter_wf [LT α] [DecidableLT α] [StrictLT α] (p : α → Bool) (s : Set α) :
@@ -802,7 +853,12 @@ public theorem any_eq_false {f : α → Bool} {s : Set α} :
802
853
:= by
803
854
simp only [Set.any, List.any_eq_false, Set.mem_elts_iff_mem_set]
804
855
805
-
/-! ### all₁ and any₁ -/
856
+
/-! ### map₁, all₁, and any₁ -/
857
+
858
+
@[simp]
859
+
public theoremmap₁_eq_map [LT α] [DecidableLT α] [LT β] [DecidableLT β] (f : α → β) (s : Set α) :
860
+
(s.map₁ λ ⟨elt, _⟩ => f elt) = s.map f
861
+
:= by simp [map₁, map]
806
862
807
863
@[simp]
808
864
public theoremall₁_eq_all {s : Set α} {f : α → Bool} :
0 commit comments