The areas / V03. Sets, finite structures and big operators
Mathlib.Data.Set.Image
304 declarations and 11 deprecated aliases. Mathlib docs · Source
Images and preimages of sets
Main definitions
-
preimage f t : Set α: the preimage f⁻¹(t) (writtenf ⁻¹' tin Lean) of a subset of β. -
range f : Set β: the image ofunivunderf. Also works for{p : Prop} (f : p → α)(unlikeimage)
Notation
-
f ⁻¹' tforSet.preimage f t -
f '' sforSet.image f s
Tags
set, sets, image, preimage, pre-image, range
Inverse image
Image of a set under a function
Lemmas about the powerset and image.
Lemmas about range of a function.
Image and preimage on subtypes
Images and preimages on Option
Injectivity and surjectivity lemmas for image and preimage
Disjoint lemmas for image and preimage
theorem Subtype.map.congr_simp E1 #
∀ {α : Sort u_1} {β : Sort u_2} {p : α → Prop} {q : β → Prop} (f f_1 : α → β) (e_f : f = f_1)
(h : ∀ (a : α), p a → q (f a)) (a a_1 : Subtype p), a = a_1 → Subtype.map f h a = Subtype.map f_1 ⋯ a_1
theorem Set.inclusion.congr_simp E1 #
∀ {α : Type u_1} {s t : Set α} (h : s ⊆ t) (a a_1 : ↑s), a = a_1 → Set.inclusion h a = Set.inclusion h a_1
theorem Set.preimage_empty E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β}, f ⁻¹' ∅ = ∅
theorem Set.preimage_congr E1 #
∀ {α : Type u_1} {β : Type u_2} {f g : α → β} {s : Set β}, (∀ (x : α), f x = g x) → f ⁻¹' s = g ⁻¹' s
theorem Set.preimage_mono E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s t : Set β}, s ⊆ t → f ⁻¹' s ⊆ f ⁻¹' t
theorem Set.preimage_univ E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β}, f ⁻¹' Set.univ = Set.univ
theorem Set.subset_preimage_univ E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set α}, s ⊆ f ⁻¹' Set.univ
theorem Set.preimage_inter E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s t : Set β}, f ⁻¹' (s ∩ t) = f ⁻¹' s ∩ f ⁻¹' t
theorem Set.preimage_union E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s t : Set β}, f ⁻¹' (s ∪ t) = f ⁻¹' s ∪ f ⁻¹' t
theorem Set.preimage_compl E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set β}, f ⁻¹' sᶜ = (f ⁻¹' s)ᶜ
theorem Set.preimage_sdiff E0 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (s t : Set β), f ⁻¹' (s \ t) = f ⁻¹' s \ f ⁻¹' t
theorem Set.preimage_symmDiff E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} (s t : Set β), f ⁻¹' symmDiff s t = symmDiff (f ⁻¹' s) (f ⁻¹' t)
theorem Set.preimage_ite E0 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (s t₁ t₂ : Set β), f ⁻¹' s.ite t₁ t₂ = (f ⁻¹' s).ite (f ⁻¹' t₁) (f ⁻¹' t₂)
theorem Set.preimage_ofPred_eq E0 #
∀ {α : Type u_1} {β : Type u_2} {p : α → Prop} {f : β → α}, f ⁻¹' {a | p a} = {a | p (f a)}
theorem Set.preimage_singleton E1 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (y : β), f ⁻¹' {y} = {x | f x = y}
theorem Set.preimage_id_eq E0 #
∀ {α : Type u_1}, Set.preimage id = id
theorem Set.preimage_id E1 #
∀ {α : Type u_1} {s : Set α}, id ⁻¹' s = s
theorem Set.preimage_id' E0 #
∀ {α : Type u_1} {s : Set α}, (fun x ↦ x) ⁻¹' s = s
theorem Set.preimage_const_of_mem E0 #
∀ {α : Type u_1} {β : Type u_2} {b : β} {s : Set β}, b ∈ s → (fun x ↦ b) ⁻¹' s = Set.univ
theorem Set.preimage_const_of_notMem E0 #
∀ {α : Type u_1} {β : Type u_2} {b : β} {s : Set β}, b ∉ s → (fun x ↦ b) ⁻¹' s = ∅
theorem Set.preimage_const E1 #
∀ {α : Type u_1} {β : Type u_2} (b : β) (s : Set β) [inst : Decidable (b ∈ s)],
(fun x ↦ b) ⁻¹' s = if b ∈ s then Set.univ else ∅
theorem Set.exists_eq_const_of_preimage_singleton E1 #
∀ {α : Type u_1} {β : Type u_2} [Nonempty β] {f : α → β},
(∀ (b : β), f ⁻¹' {b} = ∅ ∨ f ⁻¹' {b} = Set.univ) → ∃ b, f = Function.const α b
If preimage of each singleton under f : α → β is either empty or the whole type,
then f is a constant.
theorem Set.preimage_comp E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {f : α → β} {g : β → γ} {s : Set γ}, g ∘ f ⁻¹' s = f ⁻¹' g ⁻¹' s
theorem Set.preimage_comp_eq E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {f : α → β} {g : β → γ},
Set.preimage (g ∘ f) = Set.preimage f ∘ Set.preimage g
theorem Set.preimage_iterate_eq E0 #
∀ {α : Type u_1} {f : α → α} {n : ℕ}, Set.preimage f^[n] = (Set.preimage f)^[n]
theorem Set.preimage_preimage E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {g : β → γ} {f : α → β} {s : Set γ},
f ⁻¹' g ⁻¹' s = (fun x ↦ g (f x)) ⁻¹' s
theorem Set.nonempty_of_nonempty_preimage E1 #
∀ {α : Type u_1} {β : Type u_2} {s : Set β} {f : α → β}, (f ⁻¹' s).Nonempty → s.Nonempty
theorem Set.nonempty_preimage_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {s : Set β} {f : α → β}, (f ⁻¹' s).Nonempty ↔ (s ∩ Set.range f).Nonempty
theorem Set.preimage_singleton_true E0 #
∀ {α : Type u_1} (p : α → Prop), p ⁻¹' {True} = {a | p a}
theorem Set.preimage_singleton_false E0 #
∀ {α : Type u_1} (p : α → Prop), p ⁻¹' {False} = {a | ¬p a}
theorem Set.preimage_subtypeVal_eq_compl E1 #
∀ {α : Type u_1} {s u v : Set α}, s ⊆ u ∪ v → s ∩ (u ∩ v) = ∅ → Subtype.val ⁻¹' u = (Subtype.val ⁻¹' v)ᶜ
theorem Set.preimage_subset E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set β} {t : Set α}, s ⊆ f '' t → Set.InjOn f (f ⁻¹' s) → f ⁻¹' s ⊆ t
theorem Set.image_eta E1 #
∀ {α : Type u_1} {β : Type u_2} {s : Set α} (f : α → β), f '' s = (fun x ↦ f x) '' s
theorem Function.Injective.mem_set_image E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Function.Injective f → ∀ {s : Set α} {a : α}, f a ∈ f '' s ↔ a ∈ s
theorem Set.preimage_subset_of_surjOn E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set α} {t : Set β},
Function.Injective f → Set.SurjOn f s t → f ⁻¹' t ⊆ s
theorem Set.forall_mem_image E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set α} {p : β → Prop}, (∀ y ∈ f '' s, p y) ↔ ∀ ⦃x : α⦄, x ∈ s → p (f x)
theorem Set.exists_mem_image E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set α} {p : β → Prop}, (∃ y ∈ f '' s, p y) ↔ ∃ x ∈ s, p (f x)
theorem Set.image_congr E1 #
∀ {α : Type u_1} {β : Type u_2} {f g : α → β} {s : Set α}, (∀ a ∈ s, f a = g a) → f '' s = g '' s
theorem Set.image_congr' E1 #
∀ {α : Type u_1} {β : Type u_2} {f g : α → β} {s t : Set α}, s = t → (∀ (x : α), f x = g x) → f '' s = g '' t
A common special case of image_congr
theorem Set.image_mono E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s t : Set α}, s ⊆ t → f '' s ⊆ f '' t
theorem Set.monotone_image E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Monotone (Set.image f)
Set.image is monotone. See Set.image_mono for the statement in terms of ⊆.
theorem Set.image_comp E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (f : β → γ) (g : α → β) (a : Set α), f ∘ g '' a = f '' g '' a
theorem Set.image_comp_eq E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {f : α → β} {g : β → γ}, Set.image (g ∘ f) = Set.image g ∘ Set.image f
theorem Set.image_comp_image E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {f : α → β} {g : β → γ}, Set.image g ∘ Set.image f = Set.image (g ∘ f)
theorem Set.image_image E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (g : β → γ) (f : α → β) (s : Set α), g '' f '' s = (fun x ↦ g (f x)) '' s
A variant of image_comp, useful for rewriting
theorem Set.image_comm E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {s : Set α} {β' : Type u_5} {f : β → γ} {g : α → β} {f' : α → β'}
{g' : β' → γ}, (∀ (a : α), f (g a) = g' (f' a)) → f '' g '' s = g' '' f' '' s
theorem Function.Semiconj.set_image E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {ga : α → α} {gb : β → β},
Function.Semiconj f ga gb → Function.Semiconj (Set.image f) (Set.image ga) (Set.image gb)
theorem Function.Commute.set_image E1 #
∀ {α : Type u_1} {f g : α → α}, Function.Commute f g → Function.Commute (Set.image f) (Set.image g)
theorem Set.image_union E1 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (s t : Set α), f '' (s ∪ t) = f '' s ∪ f '' t
theorem Set.image_empty E0 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β), f '' ∅ = ∅
theorem Set.image_inter_subset E1 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (s t : Set α), f '' (s ∩ t) ⊆ f '' s ∩ f '' t
theorem Set.image_sdiff_subset E1 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (s t : Set α), f '' (s \ t) ⊆ f '' s ∩ f '' tᶜ
theorem Set.image_inter_on E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s t : Set α},
(∀ x ∈ t, ∀ y ∈ s, f x = f y → x = y) → f '' (s ∩ t) = f '' s ∩ f '' t
theorem Set.image_inter E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s t : Set α}, Function.Injective f → f '' (s ∩ t) = f '' s ∩ f '' t
theorem Set.image_univ_of_surjective E1 #
∀ {β : Type u_2} {ι : Type u_5} {f : ι → β}, Function.Surjective f → f '' Set.univ = Set.univ
theorem Set.image_singleton E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {a : α}, f '' {a} = {f a}
theorem Set.Nonempty.image_const E0 #
∀ {α : Type u_1} {β : Type u_2} {s : Set α}, s.Nonempty → ∀ (a : β), (fun x ↦ a) '' s = {a}
theorem Set.image_eq_empty E0 #
∀ {α : Type u_5} {β : Type u_6} {f : α → β} {s : Set α}, f '' s = ∅ ↔ s = ∅
theorem Set.empty_eq_image E0 #
∀ {α : Type u_5} {β : Type u_6} {f : α → β} {s : Set α}, ∅ = f '' s ↔ s = ∅
theorem Set.preimage_compl_eq_image_compl E1 #
∀ {α : Type u_1} [inst : BooleanAlgebra α] (s : Set α), compl ⁻¹' s = compl '' s
theorem Set.mem_compl_image E0 #
∀ {α : Type u_1} [inst : BooleanAlgebra α] (t : α) (s : Set α), t ∈ compl '' s ↔ tᶜ ∈ s
theorem Set.image_id_eq E0 #
∀ {α : Type u_1}, Set.image id = id
theorem Set.image_id' E0 #
∀ {α : Type u_1} (s : Set α), (fun x ↦ x) '' s = s
A variant of image_id
theorem Set.image_id E1 #
∀ {α : Type u_1} (s : Set α), id '' s = s
theorem Set.image_iterate_eq E0 #
∀ {α : Type u_1} {f : α → α} {n : ℕ}, Set.image f^[n] = (Set.image f)^[n]
theorem Set.compl_compl_image E1 #
∀ {α : Type u_1} [inst : BooleanAlgebra α] (s : Set α), compl '' compl '' s = s
theorem Set.image_insert_eq E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {a : α} {s : Set α}, f '' insert a s = insert (f a) (f '' s)
theorem Set.image_pair E1 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (a b : α), f '' {a, b} = {f a, f b}
theorem Function.LeftInverse.mem_preimage_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {g : β → α},
Function.LeftInverse g f → ∀ {s : Set α} {x : α}, f x ∈ g ⁻¹' s ↔ x ∈ s
theorem Set.image_subset_preimage_of_inverse E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {g : β → α}, Function.LeftInverse g f → ∀ (s : Set α), f '' s ⊆ g ⁻¹' s
theorem Set.preimage_subset_image_of_inverse E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {g : β → α}, Function.LeftInverse g f → ∀ (s : Set β), f ⁻¹' s ⊆ g '' s
theorem Set.range_inter_ssubset_iff_preimage_ssubset E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s s' : Set β}, Set.range f ∩ s ⊂ Set.range f ∩ s' ↔ f ⁻¹' s ⊂ f ⁻¹' s'
theorem Set.image_eq_preimage_of_inverse E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {g : β → α},
Function.LeftInverse g f → Function.RightInverse g f → Set.image f = Set.preimage g
theorem Function.Involutive.image_eq_preimage_symm E1 #
∀ {α : Type u_1} {f : α → α}, Function.Involutive f → Set.image f = Set.preimage f
theorem Set.mem_image_iff_of_inverse E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {g : β → α} {b : β} {s : Set α},
Function.LeftInverse g f → Function.RightInverse g f → (b ∈ f '' s ↔ g b ∈ s)
theorem Set.image_compl_subset E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set α}, Function.Injective f → f '' sᶜ ⊆ (f '' s)ᶜ
theorem Set.subset_image_compl E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set α}, Function.Surjective f → (f '' s)ᶜ ⊆ f '' sᶜ
theorem Set.image_compl_eq E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set α}, Function.Bijective f → f '' sᶜ = (f '' s)ᶜ
theorem Set.subset_image_sdiff E1 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (s t : Set α), f '' s \ f '' t ⊆ f '' (s \ t)
theorem Set.subset_image_symmDiff E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s t : Set α}, symmDiff (f '' s) (f '' t) ⊆ f '' symmDiff s t
theorem Set.image_sdiff E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Function.Injective f → ∀ (s t : Set α), f '' (s \ t) = f '' s \ f '' t
theorem Set.image_symmDiff E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β},
Function.Injective f → ∀ (s t : Set α), f '' symmDiff s t = symmDiff (f '' s) (f '' t)
theorem Set.Nonempty.image E3 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) {s : Set α}, s.Nonempty → (f '' s).Nonempty
theorem Set.Nonempty.of_image E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set α}, (f '' s).Nonempty → s.Nonempty
theorem Set.image_nonempty E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set α}, (f '' s).Nonempty ↔ s.Nonempty
theorem Set.Nonempty.preimage E1 #
∀ {α : Type u_1} {β : Type u_2} {s : Set β}, s.Nonempty → ∀ {f : α → β}, Function.Surjective f → (f ⁻¹' s).Nonempty
instance Set.instNonemptyElemImage E0 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (s : Set α) [Nonempty ↑s], Nonempty ↑(f '' s)
theorem Set.image_subset_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β}, f '' s ⊆ t ↔ s ⊆ f ⁻¹' t
image and preimage are a Galois connection
theorem Set.image_preimage_subset E2 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (s : Set β), f '' f ⁻¹' s ⊆ s
theorem Set.subset_preimage_image E1 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (s : Set α), s ⊆ f ⁻¹' f '' s
theorem Set.preimage_image_univ E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β}, f ⁻¹' f '' Set.univ = Set.univ
theorem Set.preimage_image_eq E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} (s : Set α), Function.Injective f → f ⁻¹' f '' s = s
theorem Set.image_preimage_eq E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} (s : Set β), Function.Surjective f → f '' f ⁻¹' s = s
theorem Set.Nonempty.subset_preimage_const E0 #
∀ {α : Type u_1} {β : Type u_2} {s : Set α}, s.Nonempty → ∀ (t : Set β) (a : β), s ⊆ (fun x ↦ a) ⁻¹' t ↔ a ∈ t
theorem Set.preimage_injective E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Function.Injective (Set.preimage f) ↔ Function.Surjective f
theorem Set.preimage_surjective E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Function.Surjective (Set.preimage f) ↔ Function.Injective f
theorem Set.preimage_eq_preimage E0 #
∀ {α : Type u_1} {β : Type u_2} {s t : Set α} {f : β → α}, Function.Surjective f → (f ⁻¹' s = f ⁻¹' t ↔ s = t)
theorem Set.image_inter_preimage E1 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (s : Set α) (t : Set β), f '' (s ∩ f ⁻¹' t) = f '' s ∩ t
theorem Set.image_preimage_inter E1 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (s : Set α) (t : Set β), f '' (f ⁻¹' t ∩ s) = t ∩ f '' s
theorem Set.image_inter_nonempty_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set α} {t : Set β}, (f '' s ∩ t).Nonempty ↔ (s ∩ f ⁻¹' t).Nonempty
theorem Set.disjoint_image_left E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set α} {t : Set β}, Disjoint (f '' s) t ↔ Disjoint s (f ⁻¹' t)
theorem Set.disjoint_image_right E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set α} {t : Set β}, Disjoint t (f '' s) ↔ Disjoint (f ⁻¹' t) s
theorem Set.image_sdiff_preimage E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set α} {t : Set β}, f '' (s \ f ⁻¹' t) = f '' s \ t
theorem Set.compl_image E1 #
∀ {α : Type u_1}, Set.image compl = Set.preimage compl
theorem Set.compl_image_ofPred E1 #
∀ {α : Type u_1} {p : Set α → Prop}, compl '' {s | p s} = {s | p sᶜ}
theorem Set.inter_preimage_subset E1 #
∀ {α : Type u_1} {β : Type u_2} (s : Set α) (t : Set β) (f : α → β), s ∩ f ⁻¹' t ⊆ f ⁻¹' (f '' s ∩ t)
theorem Set.union_preimage_subset E1 #
∀ {α : Type u_1} {β : Type u_2} (s : Set α) (t : Set β) (f : α → β), s ∪ f ⁻¹' t ⊆ f ⁻¹' (f '' s ∪ t)
theorem Set.subset_image_union E1 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (s : Set α) (t : Set β), f '' (s ∪ f ⁻¹' t) ⊆ f '' s ∪ t
theorem Set.preimage_subset_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {A : Set α} {B : Set β} {f : α → β}, f ⁻¹' B ⊆ A ↔ ∀ (a : α), f a ∈ B → a ∈ A
theorem Set.image_eq_image E1 #
∀ {α : Type u_1} {β : Type u_2} {s t : Set α} {f : α → β}, Function.Injective f → (f '' s = f '' t ↔ s = t)
theorem Set.subset_image_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set α} {t : Set β}, t ⊆ f '' s ↔ ∃ u ⊆ s, f '' u = t
theorem Set.exists_subset_image_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set α} {p : Set β → Prop}, (∃ t ⊆ f '' s, p t) ↔ ∃ t ⊆ s, p (f '' t)
theorem Set.forall_subset_image_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set α} {p : Set β → Prop}, (∀ t ⊆ f '' s, p t) ↔ ∀ t ⊆ s, p (f '' t)
theorem Set.image_subset_image_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {s t : Set α} {f : α → β}, Function.Injective f → (f '' s ⊆ f '' t ↔ s ⊆ t)
theorem Set.prod_quotient_preimage_eq_image E1 #
∀ {α : Type u_1} {β : Type u_2} [s : Setoid α] (g : Quotient s → β) {h : α → β},
h = g ∘ Quotient.mk'' →
∀ (r : Set (β × β)), {x | (g x.1, g x.2) ∈ r} = (fun a ↦ (⟦a.1⟧, ⟦a.2⟧)) '' (fun a ↦ (h a.1, h a.2)) ⁻¹' r
theorem Set.exists_image_iff E0 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (x : Set α) (P : β → Prop), (∃ a, P ↑a) ↔ ∃ a, P (f ↑a)
theorem Set.imageFactorization_eq E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set α}, Subtype.val ∘ Set.imageFactorization f s = f ∘ Subtype.val
theorem Set.imageFactorization_surjective E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set α}, Function.Surjective (Set.imageFactorization f s)
theorem Set.image_perm E1 #
∀ {α : Type u_1} {s : Set α} {σ : Equiv.Perm α}, {a | σ a ≠ a} ⊆ s → ⇑σ '' s = s
If the only elements outside s are those left fixed by σ, then mapping by σ has no effect.
theorem Set.powerset_insert E1 #
∀ {α : Type u_1} (s : Set α) (a : α), 𝒫 insert a s = 𝒫 s ∪ insert a '' 𝒫 s
The powerset of {a} ∪ s is 𝒫 s together with {a} ∪ t for each t ∈ 𝒫 s.
theorem Set.disjoint_powerset_insert E1 #
∀ {α : Type u_1} {s : Set α} {a : α}, a ∉ s → Disjoint (𝒫 s) (insert a '' 𝒫 s)
theorem Set.powerset_insert_injOn E1 #
∀ {α : Type u_1} {s : Set α} {a : α}, a ∉ s → Set.InjOn (insert a) (𝒫 s)
theorem Set.forall_mem_range E1 #
∀ {α : Type u_1} {ι : Sort u_4} {f : ι → α} {p : α → Prop}, (∀ a ∈ Set.range f, p a) ↔ ∀ (i : ι), p (f i)
theorem Set.forall_subtype_range_iff E0 #
∀ {α : Type u_1} {ι : Sort u_4} {f : ι → α} {p : ↑(Set.range f) → Prop},
(∀ (a : ↑(Set.range f)), p a) ↔ ∀ (i : ι), p ⟨f i, ⋯⟩
theorem Set.exists_range_iff E0 #
∀ {α : Type u_1} {ι : Sort u_4} {f : ι → α} {p : α → Prop}, (∃ a ∈ Set.range f, p a) ↔ ∃ i, p (f i)
theorem Set.exists_subtype_range_iff E0 #
∀ {α : Type u_1} {ι : Sort u_4} {f : ι → α} {p : ↑(Set.range f) → Prop}, (∃ a, p a) ↔ ∃ i, p ⟨f i, ⋯⟩
theorem Set.range_eq_univ E1 #
∀ {α : Type u_1} {ι : Sort u_4} {f : ι → α}, Set.range f = Set.univ ↔ Function.Surjective f
theorem Function.Surjective.range_eq E0 #
∀ {α : Type u_1} {ι : Sort u_4} {f : ι → α}, Function.Surjective f → Set.range f = Set.univ
Alias of the reverse direction of Set.range_eq_univ.
theorem Set.subset_range_of_surjective E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Function.Surjective f → ∀ (s : Set β), s ⊆ Set.range f
theorem Set.image_univ E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β}, f '' Set.univ = Set.range f
theorem Set.image_compl_eq_range_sdiff_image E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Function.Injective f → ∀ (s : Set α), f '' sᶜ = Set.range f \ f '' s
theorem Set.range_sdiff_image E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Function.Injective f → ∀ (s : Set α), Set.range f \ f '' s = f '' sᶜ
Alias of Set.image_compl_eq_range_sdiff_image.
theorem Set.preimage_eq_univ_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set β}, f ⁻¹' s = Set.univ ↔ Set.range f ⊆ s
theorem Set.image_subset_range E1 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (s : Set α), f '' s ⊆ Set.range f
theorem Set.mem_range_of_mem_image E0 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (s : Set α) {x : β}, x ∈ f '' s → x ∈ Set.range f
theorem Nat.mem_range_succ E0 #
∀ (i : ℕ), i ∈ Set.range Nat.succ ↔ 0 < i
theorem Set.Nonempty.preimage' E1 #
∀ {α : Type u_1} {β : Type u_2} {s : Set β}, s.Nonempty → ∀ {f : α → β}, s ⊆ Set.range f → (f ⁻¹' s).Nonempty
theorem Set.range_comp E1 #
∀ {α : Type u_1} {β : Type u_2} {ι : Sort u_4} (g : α → β) (f : ι → α), Set.range (g ∘ f) = g '' Set.range f
theorem Set.range_comp' E1 #
∀ {α : Type u_1} {β : Type u_2} {ι : Sort u_4} (g : α → β) (f : ι → α), (Set.range fun x ↦ g (f x)) = g '' Set.range f
Variant of range_comp using a lambda instead of function composition.
theorem Set.range_subset_iff E0 #
∀ {α : Type u_1} {ι : Sort u_4} {f : ι → α} {s : Set α}, Set.range f ⊆ s ↔ ∀ (y : ι), f y ∈ s
theorem Set.range_subset_range_iff_exists_comp E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {f : α → γ} {g : β → γ}, Set.range f ⊆ Set.range g ↔ ∃ h, f = g ∘ h
theorem Set.range_eq_iff E0 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (s : Set β), Set.range f = s ↔ (∀ (a : α), f a ∈ s) ∧ ∀ b ∈ s, ∃ a, f a = b
theorem Set.range_comp_subset_range E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (f : α → β) (g : β → γ), Set.range (g ∘ f) ⊆ Set.range g
theorem Set.range_nonempty_iff_nonempty E1 #
∀ {α : Type u_1} {ι : Sort u_4} {f : ι → α}, (Set.range f).Nonempty ↔ Nonempty ι
theorem Set.range_nonempty E1 #
∀ {α : Type u_1} {ι : Sort u_4} [h : Nonempty ι] (f : ι → α), (Set.range f).Nonempty
theorem Set.range_eq_empty_iff E0 #
∀ {α : Type u_1} {ι : Sort u_4} {f : ι → α}, Set.range f = ∅ ↔ IsEmpty ι
theorem Set.range_eq_empty E1 #
∀ {α : Type u_1} {ι : Sort u_4} [IsEmpty ι] (f : ι → α), Set.range f = ∅
theorem Set.range_eq_singleton_iff E0 #
∀ {α : Type u_1} {ι : Sort u_4} {f : ι → α} [Nonempty ι] {y : α}, Set.range f = {y} ↔ ∀ (x : ι), f x = y
theorem Set.range_eq_singleton E1 #
∀ {α : Type u_1} {ι : Sort u_4} {f : ι → α} [Nonempty ι] {y : α}, (∀ (x : ι), f x = y) → Set.range f = {y}
instance Set.instNonemptyRange E0 #
∀ {α : Type u_1} {ι : Sort u_4} [Nonempty ι] (f : ι → α), Nonempty ↑(Set.range f)
theorem Set.image_union_image_compl_eq_range E0 #
∀ {α : Type u_1} {β : Type u_2} {s : Set α} (f : α → β), f '' s ∪ f '' sᶜ = Set.range f
theorem Set.insert_image_compl_eq_range E1 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (x : α), insert (f x) (f '' {x}ᶜ) = Set.range f
theorem Set.image_preimage_eq_range_inter E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {t : Set β}, f '' f ⁻¹' t = Set.range f ∩ t
theorem Set.image_preimage_eq_inter_range E2 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {t : Set β}, f '' f ⁻¹' t = t ∩ Set.range f
theorem Set.image_preimage_eq_of_subset E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set β}, s ⊆ Set.range f → f '' f ⁻¹' s = s
theorem Set.image_preimage_eq_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set β}, f '' f ⁻¹' s = s ↔ s ⊆ Set.range f
theorem Set.subset_range_iff_exists_image_eq E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set β}, s ⊆ Set.range f ↔ ∃ t, f '' t = s
theorem Set.range_image E1 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β), Set.range (Set.image f) = 𝒫 Set.range f
theorem Set.exists_subset_range_and_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {p : Set β → Prop}, (∃ s ⊆ Set.range f, p s) ↔ ∃ s, p (f '' s)
theorem Set.forall_subset_range_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {p : Set β → Prop}, (∀ s ⊆ Set.range f, p s) ↔ ∀ (s : Set α), p (f '' s)
theorem Set.preimage_subset_preimage_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {s t : Set α} {f : β → α}, s ⊆ Set.range f → (f ⁻¹' s ⊆ f ⁻¹' t ↔ s ⊆ t)
theorem Set.preimage_eq_preimage' E1 #
∀ {α : Type u_1} {β : Type u_2} {s t : Set α} {f : β → α},
s ⊆ Set.range f → t ⊆ Set.range f → (f ⁻¹' s = f ⁻¹' t ↔ s = t)
theorem Set.preimage_inter_range E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set β}, f ⁻¹' (s ∩ Set.range f) = f ⁻¹' s
theorem Set.preimage_range_inter E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set β}, f ⁻¹' (Set.range f ∩ s) = f ⁻¹' s
theorem Set.preimage_image_preimage E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set β}, f ⁻¹' f '' f ⁻¹' s = f ⁻¹' s
theorem Set.range_id E0 #
∀ {α : Type u_1}, Set.range id = Set.univ
theorem Set.range_id' E0 #
∀ {α : Type u_1}, (Set.range fun x ↦ x) = Set.univ
theorem Prod.range_fst E0 #
∀ {α : Type u_1} {β : Type u_2} [Nonempty β], Set.range Prod.fst = Set.univ
theorem Prod.range_snd E0 #
∀ {α : Type u_1} {β : Type u_2} [Nonempty α], Set.range Prod.snd = Set.univ
theorem Set.range_eval E0 #
∀ {ι : Sort u_4} {α : ι → Type u_5} [∀ (i : ι), Nonempty (α i)] (i : ι), Set.range (Function.eval i) = Set.univ
theorem Set.range_inl E1 #
∀ {α : Type u_1} {β : Type u_2}, Set.range Sum.inl = {x | x.isLeft = true}
theorem Set.range_inr E1 #
∀ {α : Type u_1} {β : Type u_2}, Set.range Sum.inr = {x | x.isRight = true}
theorem Set.isCompl_range_inl_range_inr E1 #
∀ {α : Type u_1} {β : Type u_2}, IsCompl (Set.range Sum.inl) (Set.range Sum.inr)
theorem Set.range_inl_union_range_inr E0 #
∀ {α : Type u_1} {β : Type u_2}, Set.range Sum.inl ∪ Set.range Sum.inr = Set.univ
theorem Set.range_inl_inter_range_inr E0 #
∀ {α : Type u_1} {β : Type u_2}, Set.range Sum.inl ∩ Set.range Sum.inr = ∅
theorem Set.range_inr_union_range_inl E0 #
∀ {α : Type u_1} {β : Type u_2}, Set.range Sum.inr ∪ Set.range Sum.inl = Set.univ
theorem Set.range_inr_inter_range_inl E0 #
∀ {α : Type u_1} {β : Type u_2}, Set.range Sum.inr ∩ Set.range Sum.inl = ∅
theorem Set.preimage_inl_image_inr E0 #
∀ {α : Type u_1} {β : Type u_2} (s : Set β), Sum.inl ⁻¹' Sum.inr '' s = ∅
theorem Set.preimage_inr_image_inl E0 #
∀ {α : Type u_1} {β : Type u_2} (s : Set α), Sum.inr ⁻¹' Sum.inl '' s = ∅
theorem Set.preimage_inl_range_inr E0 #
∀ {α : Type u_1} {β : Type u_2}, Sum.inl ⁻¹' Set.range Sum.inr = ∅
theorem Set.preimage_inr_range_inl E0 #
∀ {α : Type u_1} {β : Type u_2}, Sum.inr ⁻¹' Set.range Sum.inl = ∅
theorem Set.compl_range_inl E0 #
∀ {α : Type u_1} {β : Type u_2}, (Set.range Sum.inl)ᶜ = Set.range Sum.inr
theorem Set.compl_range_inr E0 #
∀ {α : Type u_1} {β : Type u_2}, (Set.range Sum.inr)ᶜ = Set.range Sum.inl
theorem Set.preimage_sumElim E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (s : Set γ) (f : α → γ) (g : β → γ),
Sum.elim f g ⁻¹' s = Sum.inl '' f ⁻¹' s ∪ Sum.inr '' g ⁻¹' s
theorem Set.image_preimage_inl_union_image_preimage_inr E1 #
∀ {α : Type u_1} {β : Type u_2} (s : Set (α ⊕ β)), Sum.inl '' Sum.inl ⁻¹' s ∪ Sum.inr '' Sum.inr ⁻¹' s = s
theorem Set.image_sumElim E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (s : Set (α ⊕ β)) (f : α → γ) (g : β → γ),
Sum.elim f g '' s = f '' Sum.inl ⁻¹' s ∪ g '' Sum.inr ⁻¹' s
theorem Set.range_quot_mk E0 #
∀ {α : Type u_1} (r : α → α → Prop), Set.range (Quot.mk r) = Set.univ
theorem Set.range_quot_lift E0 #
∀ {α : Type u_1} {ι : Sort u_4} {f : ι → α} {r : ι → ι → Prop} (hf : ∀ (x y : ι), r x y → f x = f y),
Set.range (Quot.lift f hf) = Set.range f
theorem Set.range_quotient_mk E0 #
∀ {α : Type u_1} {s : Setoid α}, Set.range (Quotient.mk s) = Set.univ
theorem Set.range_quotient_lift E0 #
∀ {α : Type u_1} {ι : Sort u_4} {f : ι → α} [s : Setoid ι] (hf : ∀ (a b : ι), a ≈ b → f a = f b),
Set.range (Quotient.lift f hf) = Set.range f
theorem Set.range_quotient_mk' E0 #
∀ {α : Type u_1} {s : Setoid α}, Set.range Quotient.mk' = Set.univ
theorem Set.Quotient.range_mk'' E1 #
∀ {α : Type u_1} {sa : Setoid α}, Set.range Quotient.mk'' = Set.univ
theorem Set.range_quotient_lift_on' E0 #
∀ {α : Type u_1} {ι : Sort u_4} {f : ι → α} {s : Setoid ι} (hf : ∀ (a b : ι), s a b → f a = f b),
(Set.range fun x ↦ x.liftOn' f hf) = Set.range f
instance Set.canLift E0 #
∀ {α : Type u_1} {β : Type u_2} (c : β → α) (p : α → Prop) [CanLift α β c p],
CanLift (Set α) (Set β) (fun x ↦ c '' x) fun s ↦ ∀ x ∈ s, p x
theorem Set.range_const_subset E1 #
∀ {α : Type u_1} {ι : Sort u_4} {c : α}, (Set.range fun x ↦ c) ⊆ {c}
theorem Set.range_const E0 #
∀ {α : Type u_1} {ι : Sort u_4} [Nonempty ι] {c : α}, (Set.range fun x ↦ c) = {c}
theorem Set.range_subtype_map E1 #
∀ {α : Type u_1} {β : Type u_2} {p : α → Prop} {q : β → Prop} (f : α → β) (h : ∀ (x : α), p x → q (f x)),
Set.range (Subtype.map f h) = Subtype.val ⁻¹' f '' {x | p x}
theorem Set.image_swap_eq_preimage_swap E1 #
∀ {α : Type u_1} {β : Type u_2}, Set.image Prod.swap = Set.preimage Prod.swap
theorem Set.preimage_singleton_nonempty E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {y : β}, (f ⁻¹' {y}).Nonempty ↔ y ∈ Set.range f
theorem Set.preimage_singleton_eq_empty E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {y : β}, f ⁻¹' {y} = ∅ ↔ y ∉ Set.range f
theorem Set.range_subset_singleton E1 #
∀ {α : Type u_1} {ι : Sort u_4} {f : ι → α} {x : α}, Set.range f ⊆ {x} ↔ f = Function.const ι x
theorem Set.image_compl_preimage E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set β}, f '' (f ⁻¹' s)ᶜ = Set.range f \ s
theorem Set.rangeFactorization_eq E0 #
∀ {β : Type u_2} {ι : Sort u_4} {f : ι → β}, Subtype.val ∘ Set.rangeFactorization f = f
theorem Set.rangeFactorization_coe E0 #
∀ {β : Type u_2} {ι : Sort u_4} (f : ι → β) (a : ι), ↑(Set.rangeFactorization f a) = f a
theorem Set.coe_comp_rangeFactorization E0 #
∀ {β : Type u_2} {ι : Sort u_4} (f : ι → β), Subtype.val ∘ Set.rangeFactorization f = f
theorem Set.image_eq_range E1 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (s : Set α), f '' s = Set.range fun x ↦ f ↑x
theorem Sum.range_eq E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (f : α ⊕ β → γ),
Set.range f = Set.range (f ∘ Sum.inl) ∪ Set.range (f ∘ Sum.inr)
theorem Set.Sum.elim_range E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (f : α → γ) (g : β → γ),
Set.range (Sum.elim f g) = Set.range f ∪ Set.range g
theorem Set.range_ite_subset' E1 #
∀ {α : Type u_1} {β : Type u_2} {p : Prop} [inst : Decidable p] {f g : α → β},
Set.range (if p then f else g) ⊆ Set.range f ∪ Set.range g
theorem Set.range_ite_subset E1 #
∀ {α : Type u_1} {β : Type u_2} {p : α → Prop} [inst : DecidablePred p] {f g : α → β},
(Set.range fun x ↦ if p x then f x else g x) ⊆ Set.range f ∪ Set.range g
theorem Set.preimage_range E0 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β), f ⁻¹' Set.range f = Set.univ
theorem Set.range_unique E1 #
∀ {α : Type u_1} {ι : Sort u_4} {f : ι → α} [inst : Unique ι], Set.range f = {f default}
The range of a function from a Unique type contains just the
function applied to its single value.
theorem Set.range_singleton E0 #
∀ {α : Type u_1} {β : Type u_2} {x : α} (f : ↑{x} → β), Set.range f = {f ⟨x, ⋯⟩}
theorem Set.range_insert E0 #
∀ {α : Type u_1} {β : Type u_2} {x : α} {s : Set α} (f : ↑(insert x s) → β),
Set.range f = insert (f ⟨x, ⋯⟩) (Set.range fun y ↦ f ⟨↑y, ⋯⟩)
theorem Set.range_sdiff_image_subset E1 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (s : Set α), Set.range f \ f '' s ⊆ f '' sᶜ
theorem Set.range_inclusion E0 #
∀ {α : Type u_1} {s t : Set α} (h : s ⊆ t), Set.range (Set.inclusion h) = {x | ↑x ∈ s}
theorem Set.leftInverse_rangeSplitting E1 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β), Function.LeftInverse (Set.rangeFactorization f) (Set.rangeSplitting f)
theorem Set.rangeSplitting_injective E1 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β), Function.Injective (Set.rangeSplitting f)
theorem Set.rightInverse_rangeSplitting E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β},
Function.Injective f → Function.RightInverse (Set.rangeFactorization f) (Set.rangeSplitting f)
theorem Set.leftInverse_rangeFactorization_iff_injective E0 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β),
Function.LeftInverse (Set.rangeSplitting f) (Set.rangeFactorization f) ↔ Function.Injective f
theorem Set.preimage_rangeSplitting E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β},
Function.Injective f → Set.preimage (Set.rangeSplitting f) = Set.image (Set.rangeFactorization f)
theorem Set.rangeSplitting_strictMono E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : Preorder β] {f : α → β},
Monotone f → StrictMono (Set.rangeSplitting f)
theorem Set.isCompl_range_some_none E1 #
∀ (α : Type u_5), IsCompl (Set.range some) {none}
theorem Set.compl_range_some E0 #
∀ (α : Type u_5), (Set.range some)ᶜ = {none}
theorem Set.range_some_inter_none E0 #
∀ (α : Type u_5), Set.range some ∩ {none} = ∅
theorem Set.range_some_union_none E1 #
∀ (α : Type u_5), Set.range some ∪ {none} = Set.univ
theorem Set.insert_none_range_some E0 #
∀ (α : Type u_5), insert none (Set.range some) = Set.univ
theorem Set.image_of_range_union_range_eq_univ E1 #
∀ {α : Type u_5} {β : Type u_6} {γ : Type u_7} {γ' : Type u_8} {δ : Type u_9} {δ' : Type u_10} {h : β → α} {f : γ → β}
{f₁ : γ' → α} {f₂ : γ → γ'} {g : δ → β} {g₁ : δ' → α} {g₂ : δ → δ'},
h ∘ f = f₁ ∘ f₂ →
h ∘ g = g₁ ∘ g₂ →
Set.range f ∪ Set.range g = Set.univ → ∀ (s : Set β), h '' s = f₁ '' f₂ '' f ⁻¹' s ∪ g₁ '' g₂ '' g ⁻¹' s
theorem Set.Subsingleton.image E3 #
∀ {α : Type u_1} {β : Type u_2} {s : Set α}, s.Subsingleton → ∀ (f : α → β), (f '' s).Subsingleton
The image of a subsingleton is a subsingleton.
theorem Set.Subsingleton.preimage E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set β}, s.Subsingleton → Function.Injective f → (f ⁻¹' s).Subsingleton
The preimage of a subsingleton under an injective map is a subsingleton.
theorem Set.subsingleton_of_image E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β},
Function.Injective f → ∀ (s : Set α), (f '' s).Subsingleton → s.Subsingleton
If the image of a set under an injective map is a subsingleton, the set is a subsingleton.
theorem Set.subsingleton_of_preimage E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β},
Function.Surjective f → ∀ (s : Set β), (f ⁻¹' s).Subsingleton → s.Subsingleton
If the preimage of a set under a surjective map is a subsingleton, the set is a subsingleton.
theorem Set.subsingleton_range E1 #
∀ {β : Type u_2} {α : Sort u_5} [Subsingleton α] (f : α → β), (Set.range f).Subsingleton
theorem Set.Nontrivial.preimage E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set β}, s.Nontrivial → Function.Surjective f → (f ⁻¹' s).Nontrivial
The preimage of a nontrivial set under a surjective map is nontrivial.
theorem Set.Nontrivial.image E3 #
∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β}, s.Nontrivial → Function.Injective f → (f '' s).Nontrivial
The image of a nontrivial set under an injective map is nontrivial.
theorem Set.Nontrivial.image_of_injOn E1 #
∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β}, s.Nontrivial → Set.InjOn f s → (f '' s).Nontrivial
theorem Set.nontrivial_of_image E1 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (s : Set α), (f '' s).Nontrivial → s.Nontrivial
If the image of a set is nontrivial, the set is nontrivial.
theorem Set.image_nontrivial E0 #
∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β}, Function.Injective f → ((f '' s).Nontrivial ↔ s.Nontrivial)
theorem Set.InjOn.image_nontrivial_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β}, Set.InjOn f s → ((f '' s).Nontrivial ↔ s.Nontrivial)
theorem Set.nontrivial_of_preimage E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Function.Injective f → ∀ (s : Set β), (f ⁻¹' s).Nontrivial → s.Nontrivial
If the preimage of a set under an injective map is nontrivial, the set is nontrivial.
theorem Function.Surjective.preimage_injective E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Function.Surjective f → Function.Injective (Set.preimage f)
theorem Function.Injective.preimage_image E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Function.Injective f → ∀ (s : Set α), f ⁻¹' f '' s = s
theorem Function.Injective.preimage_surjective E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Function.Injective f → Function.Surjective (Set.preimage f)
theorem Function.Injective.subsingleton_image_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β},
Function.Injective f → ∀ {s : Set α}, (f '' s).Subsingleton ↔ s.Subsingleton
theorem Function.Surjective.image_preimage E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Function.Surjective f → ∀ (s : Set β), f '' f ⁻¹' s = s
theorem Function.Surjective.image_surjective E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Function.Surjective f → Function.Surjective (Set.image f)
theorem Function.Surjective.nonempty_preimage E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Function.Surjective f → ∀ {s : Set β}, (f ⁻¹' s).Nonempty ↔ s.Nonempty
theorem Function.Injective.image_injective E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Function.Injective f → Function.Injective (Set.image f)
theorem Function.Injective.image_strictMono E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Function.Injective f → StrictMono (Set.image f)
theorem Function.Surjective.preimage_subset_preimage_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s t : Set β}, Function.Surjective f → (f ⁻¹' s ⊆ f ⁻¹' t ↔ s ⊆ t)
theorem Function.Surjective.range_comp E1 #
∀ {α : Type u_1} {ι : Sort u_3} {ι' : Sort u_4} {f : ι → ι'},
Function.Surjective f → ∀ (g : ι' → α), Set.range (g ∘ f) = Set.range g
theorem Function.Injective.mem_range_iff_existsUnique E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Function.Injective f → ∀ {b : β}, b ∈ Set.range f ↔ ∃! a, f a = b
theorem Function.Injective.existsUnique_of_mem_range E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Function.Injective f → ∀ {b : β}, b ∈ Set.range f → ∃! a, f a = b
Alias of the forward direction of Function.Injective.mem_range_iff_existsUnique.
theorem Function.Injective.compl_image_eq E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Function.Injective f → ∀ (s : Set α), (f '' s)ᶜ = f '' sᶜ ∪ (Set.range f)ᶜ
theorem Function.LeftInverse.image_image E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {g : β → α}, Function.LeftInverse g f → ∀ (s : Set α), g '' f '' s = s
theorem Function.LeftInverse.preimage_preimage E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {g : β → α}, Function.LeftInverse g f → ∀ (s : Set α), f ⁻¹' g ⁻¹' s = s
theorem Function.Involutive.preimage E1 #
∀ {α : Type u_1} {f : α → α}, Function.Involutive f → Function.Involutive (Set.preimage f)
theorem Function.LeftInverse.image_eq E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {g : β → α},
Function.LeftInverse g f → ∀ (s : Set α), f '' s = Set.range f ∩ g ⁻¹' s
theorem EquivLike.range_comp E0 #
∀ {ι : Sort u_1} {ι' : Sort u_2} {E : Type u_3} [inst : EquivLike E ι ι'] {α : Type u_4} (f : ι' → α) (e : E),
Set.range (f ∘ ⇑e) = Set.range f
theorem Subtype.coe_image E0 #
∀ {α : Type u_1} {p : α → Prop} {s : Set (Subtype p)}, Subtype.val '' s = {x | ∃ (h : p x), ⟨x, h⟩ ∈ s}
theorem Subtype.coe_image_of_subset E0 #
∀ {α : Type u_1} {s t : Set α}, t ⊆ s → Subtype.val '' {x | ↑x ∈ t} = t
theorem Subtype.range_coe E0 #
∀ {α : Type u_1} {s : Set α}, Set.range Subtype.val = s
theorem Subtype.range_val E0 #
∀ {α : Type u_1} {s : Set α}, Set.range Subtype.val = s
A variant of range_coe. Try to use range_coe if possible.
This version is useful when defining a new type that is defined as the subtype of something.
In that case, the coercion doesn't fire anymore.
theorem Subtype.range_coe_subtype E0 #
∀ {α : Type u_1} {p : α → Prop}, Set.range Subtype.val = {x | p x}
We make this the simp lemma instead of range_coe. The reason is that if we write
for s : Set α the function (↑) : s → α, then the inferred implicit arguments of (↑) are
↑α (fun x ↦ x ∈ s).
theorem Subtype.coe_preimage_self E0 #
∀ {α : Type u_1} (s : Set α), Subtype.val ⁻¹' s = Set.univ
theorem Subtype.range_val_subtype E1 #
∀ {α : Type u_1} {p : α → Prop}, Set.range Subtype.val = {x | p x}
theorem Subtype.coe_image_subset E0 #
∀ {α : Type u_1} (s : Set α) (t : Set ↑s), Subtype.val '' t ⊆ s
theorem Subtype.coe_image_univ E0 #
∀ {α : Type u_1} (s : Set α), Subtype.val '' Set.univ = s
theorem Subtype.image_preimage_coe E0 #
∀ {α : Type u_1} (s t : Set α), Subtype.val '' Subtype.val ⁻¹' t = s ∩ t
theorem Subtype.image_preimage_val E0 #
∀ {α : Type u_1} (s t : Set α), Subtype.val '' Subtype.val ⁻¹' t = s ∩ t
theorem Subtype.preimage_coe_eq_preimage_coe_iff E0 #
∀ {α : Type u_1} {s t u : Set α}, Subtype.val ⁻¹' t = Subtype.val ⁻¹' u ↔ s ∩ t = s ∩ u
theorem Subtype.preimage_coe_self_inter E1 #
∀ {α : Type u_1} (s t : Set α), Subtype.val ⁻¹' (s ∩ t) = Subtype.val ⁻¹' t
theorem Subtype.preimage_coe_inter_self E1 #
∀ {α : Type u_1} (s t : Set α), Subtype.val ⁻¹' (t ∩ s) = Subtype.val ⁻¹' t
theorem Subtype.preimage_val_eq_preimage_val_iff E0 #
∀ {α : Type u_1} (s t u : Set α), Subtype.val ⁻¹' t = Subtype.val ⁻¹' u ↔ s ∩ t = s ∩ u
theorem Subtype.preimage_val_subset_preimage_val_iff E0 #
∀ {α : Type u_1} (s t u : Set α), Subtype.val ⁻¹' t ⊆ Subtype.val ⁻¹' u ↔ s ∩ t ⊆ s ∩ u
theorem Subtype.exists_set_subtype E1 #
∀ {α : Type u_1} {t : Set α} (p : Set α → Prop), (∃ s, p (Subtype.val '' s)) ↔ ∃ s ⊆ t, p s
theorem Subtype.forall_set_subtype E1 #
∀ {α : Type u_1} {t : Set α} (p : Set α → Prop), (∀ (s : Set ↑t), p (Subtype.val '' s)) ↔ ∀ s ⊆ t, p s
theorem Subtype.preimage_coe_nonempty E1 #
∀ {α : Type u_1} {s t : Set α}, (Subtype.val ⁻¹' t).Nonempty ↔ (s ∩ t).Nonempty
theorem Subtype.preimage_coe_eq_empty E1 #
∀ {α : Type u_1} {s t : Set α}, Subtype.val ⁻¹' t = ∅ ↔ s ∩ t = ∅
theorem Subtype.preimage_coe_compl E1 #
∀ {α : Type u_1} (s : Set α), Subtype.val ⁻¹' sᶜ = ∅
theorem Subtype.preimage_coe_compl' E0 #
∀ {α : Type u_1} (s : Set α), (fun x ↦ ↑x) ⁻¹' s = ∅
theorem Option.injective_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {f : Option α → β},
Function.Injective f ↔ Function.Injective (f ∘ some) ∧ f none ∉ Set.range (f ∘ some)
theorem Option.range_eq E0 #
∀ {α : Type u_1} {β : Type u_2} (f : Option α → β), Set.range f = insert (f none) (Set.range (f ∘ some))
theorem Option.range_elim E1 #
∀ {α : Type u_1} {β : Type u_2} (b : β) (f : α → β), (Set.range fun o ↦ o.elim b f) = insert b (Set.range f)
The range of Option.elim b f is {b} ∪ range f.
theorem Option.image_elim_range_some_eq_range E1 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (b : β), (fun o ↦ o.elim b f) '' Set.range some = Set.range f
The image of range some under Option.elim b f equals range f.
theorem Set.image_surjective E0 #
∀ {α : Type u} {β : Type v} {f : α → β}, Function.Surjective (Set.image f) ↔ Function.Surjective f
theorem Set.image_injective E0 #
∀ {α : Type u} {β : Type v} {f : α → β}, Function.Injective (Set.image f) ↔ Function.Injective f
theorem Set.preimage_eq_iff_eq_image E1 #
∀ {α : Type u} {β : Type v} {f : α → β}, Function.Bijective f → ∀ {s : Set β} {t : Set α}, f ⁻¹' s = t ↔ s = f '' t
theorem Disjoint.preimage E1 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) {s t : Set β}, Disjoint s t → Disjoint (f ⁻¹' s) (f ⁻¹' t)
theorem Codisjoint.preimage E1 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) {s t : Set β}, Codisjoint s t → Codisjoint (f ⁻¹' s) (f ⁻¹' t)
theorem IsCompl.preimage E1 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) {s t : Set β}, IsCompl s t → IsCompl (f ⁻¹' s) (f ⁻¹' t)
theorem Set.disjoint_image_image E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {f : β → α} {g : γ → α} {s : Set β} {t : Set γ},
(∀ b ∈ s, ∀ c ∈ t, f b ≠ g c) → Disjoint (f '' s) (g '' t)
theorem Set.disjoint_image_of_injective E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β},
Function.Injective f → ∀ {s t : Set α}, Disjoint s t → Disjoint (f '' s) (f '' t)
theorem Disjoint.of_image E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s t : Set α}, Disjoint (f '' s) (f '' t) → Disjoint s t
theorem Set.disjoint_image_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s t : Set α},
Function.Injective f → (Disjoint (f '' s) (f '' t) ↔ Disjoint s t)
theorem Disjoint.of_preimage E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β},
Function.Surjective f → ∀ {s t : Set β}, Disjoint (f ⁻¹' s) (f ⁻¹' t) → Disjoint s t
theorem Set.disjoint_preimage_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β},
Function.Surjective f → ∀ {s t : Set β}, Disjoint (f ⁻¹' s) (f ⁻¹' t) ↔ Disjoint s t
theorem Set.preimage_eq_empty E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set β}, Disjoint s (Set.range f) → f ⁻¹' s = ∅
theorem Set.preimage_eq_empty_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set β}, f ⁻¹' s = ∅ ↔ Disjoint s (Set.range f)
theorem Set.disjoint_image_inl_image_inr E0 #
∀ {α : Type u_1} {β : Type u_2} {u : Set α} {v : Set β}, Disjoint (Sum.inl '' u) (Sum.inr '' v)
theorem Set.disjoint_range_inl_image_inr E0 #
∀ {α : Type u_1} {β : Type u_2} {v : Set β}, Disjoint (Set.range Sum.inl) (Sum.inr '' v)
theorem Set.disjoint_image_inl_range_inr E0 #
∀ {α : Type u_1} {β : Type u_2} {u : Set α}, Disjoint (Sum.inl '' u) (Set.range Sum.inr)
theorem sigma_mk_preimage_image' E1 #
∀ {α : Type u_1} {β : α → Type u_2} {i j : α} {s : Set (β i)}, i ≠ j → Sigma.mk j ⁻¹' Sigma.mk i '' s = ∅
theorem sigma_mk_preimage_image_eq_self E1 #
∀ {α : Type u_1} {β : α → Type u_2} {i : α} {s : Set (β i)}, Sigma.mk i ⁻¹' Sigma.mk i '' s = s
Deprecated aliases
| Name | New name | Since |
|---|---|---|
Set.compl_image_set_of | Set.compl_image_ofPred | 2026-07-13 |
Set.image_compl_eq_range_diff_image | Set.image_compl_eq_range_sdiff_image | 2026-06-03 |
Set.image_diff | Set.image_sdiff | 2026-06-03 |
Set.image_diff_preimage | Set.image_sdiff_preimage | 2026-06-03 |
Set.image_diff_subset | Set.image_sdiff_subset | 2026-06-03 |
Set.preimage_diff | Set.preimage_sdiff | 2026-06-03 |
Set.preimage_setOf_eq | Set.preimage_ofPred_eq | 2026-07-09 |
Set.preimage_subtype_coe_eq_compl | Set.preimage_subtypeVal_eq_compl | 2026-11-10 |
Set.range_diff_image | Set.range_sdiff_image | 2026-06-03 |
Set.range_diff_image_subset | Set.range_sdiff_image_subset | 2026-06-03 |
Set.subset_image_diff | Set.subset_image_sdiff | 2026-06-03 |