The areas / V03. Sets, finite structures and big operators
Mathlib.Data.Finset.PImage
18 declarations. Mathlib docs · Source
theorem Finset.pimage.congr_simp E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : DecidableEq β] (f f_1 : α →. β),
f = f_1 →
∀ {inst_1 : (x : α) → Decidable (f x).Dom} [inst_2 : (x : α) → Decidable (f_1 x).Dom] (s s_1 : Finset α),
s = s_1 → Finset.pimage f s = Finset.pimage f_1 s_1
theorem Part.toFinset.congr_simp E1 #
∀ {α : Type u_1} (o o_1 : Part α),
o = o_1 → ∀ {inst : Decidable o.Dom} [inst_1 : Decidable o_1.Dom], o.toFinset = o_1.toFinset
def Part.toFinset E1 #
{α : Type u_1} → (o : Part α) → [Decidable o.Dom] → Finset α
Convert an o : Part α with decidable Part.Dom o to Finset α.
theorem Part.mem_toFinset E0 #
∀ {α : Type u_1} {o : Part α} [inst : Decidable o.Dom] {x : α}, x ∈ o.toFinset ↔ x ∈ o
theorem Part.toFinset_none E0 #
∀ {α : Type u_1} [inst : Decidable Part.none.Dom], Part.none.toFinset = ∅
theorem Part.toFinset_some E0 #
∀ {α : Type u_1} {a : α} [inst : Decidable (Part.some a).Dom], (Part.some a).toFinset = {a}
theorem Part.coe_toFinset E0 #
∀ {α : Type u_1} (o : Part α) [inst : Decidable o.Dom], ↑o.toFinset = {x | x ∈ o}
def Finset.pimage E1 #
{α : Type u_1} → {β : Type u_2} → [DecidableEq β] → (f : α →. β) → [(x : α) → Decidable (f x).Dom] → Finset α → Finset β
Image of s : Finset α under a partially defined function f : α →. β.
theorem Finset.mem_pimage E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : DecidableEq β] {f : α →. β} [inst_1 : (x : α) → Decidable (f x).Dom]
{s : Finset α} {b : β}, b ∈ Finset.pimage f s ↔ ∃ a ∈ s, b ∈ f a
theorem Finset.coe_pimage E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : DecidableEq β] {f : α →. β} [inst_1 : (x : α) → Decidable (f x).Dom]
{s : Finset α}, ↑(Finset.pimage f s) = f.image ↑s
theorem Finset.pimage_some E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : DecidableEq β] (s : Finset α) (f : α → β)
[inst_1 : (x : α) → Decidable (Part.some (f x)).Dom], Finset.pimage (fun x ↦ Part.some (f x)) s = Finset.image f s
theorem Finset.pimage_congr E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : DecidableEq β] {f g : α →. β} [inst_1 : (x : α) → Decidable (f x).Dom]
[inst_2 : (x : α) → Decidable (g x).Dom] {s t : Finset α},
s = t → (∀ x ∈ t, f x = g x) → Finset.pimage f s = Finset.pimage g t
theorem Finset.pimage_eq_image_filter E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : DecidableEq β] {f : α →. β} [inst_1 : (x : α) → Decidable (f x).Dom]
{s : Finset α}, Finset.pimage f s = Finset.image (fun x ↦ (f ↑x).get ⋯) {x ∈ s | (f x).Dom}.attach
Rewrite s.pimage f in terms of Finset.filter, Finset.attach, and Finset.image.
theorem Finset.pimage_union E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : DecidableEq β] {f : α →. β} [inst_1 : (x : α) → Decidable (f x).Dom]
{s t : Finset α} [inst_2 : DecidableEq α], Finset.pimage f (s ∪ t) = Finset.pimage f s ∪ Finset.pimage f t
theorem Finset.pimage_empty E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : DecidableEq β] {f : α →. β} [inst_1 : (x : α) → Decidable (f x).Dom],
Finset.pimage f ∅ = ∅
theorem Finset.pimage_subset E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : DecidableEq β] {f : α →. β} [inst_1 : (x : α) → Decidable (f x).Dom]
{s : Finset α} {t : Finset β}, Finset.pimage f s ⊆ t ↔ ∀ x ∈ s, ∀ y ∈ f x, y ∈ t
theorem Finset.pimage_mono E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : DecidableEq β] {f : α →. β} [inst_1 : (x : α) → Decidable (f x).Dom]
{s t : Finset α}, s ⊆ t → Finset.pimage f s ⊆ Finset.pimage f t
theorem Finset.pimage_inter E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : DecidableEq β] {f : α →. β} [inst_1 : (x : α) → Decidable (f x).Dom]
{s t : Finset α} [inst_2 : DecidableEq α], Finset.pimage f (s ∩ t) ⊆ Finset.pimage f s ∩ Finset.pimage f t