Image of a Finset α under a partially defined function #
In this file we define Part.toFinset and Finset.pimage. We also prove some trivial lemmas about
these definitions.
Tags #
finite set, image, partial function
@[simp]
theorem
Part.mem_toFinset
{α : Type u_1}
{o : Part α}
[Decidable o.Dom]
{x : α}
:
x ∈ o.toFinset ↔ x ∈ o
@[simp]
@[simp]
@[simp]
@[simp]
theorem
Finset.pimage_eq_image_filter
{α : Type u_1}
{β : Type u_2}
[DecidableEq β]
{f : α →. β}
[(x : α) → Decidable (f x).Dom]
{s : Finset α}
:
Rewrite s.pimage f in terms of Finset.filter, Finset.attach, and Finset.image.
@[simp]