The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V03. Sets, finite structures and big operators

Mathlib.Data.Set.Function

298 declarations and 4 deprecated aliases. Mathlib docs · Source

Functions over sets

This file contains basic results on the following predicates of functions and sets:

  • Set.EqOn f₁ f₂ s : functions f₁ and f₂ are equal at every point of s;
  • Set.MapsTo f s t : f sends every point of s to a point of t;
  • Set.InjOn f s : restriction of f to s is injective;
  • Set.SurjOn f s t : every point in s has a preimage in s;
  • Set.BijOn f s t : f is a bijection between s and t;
  • Set.LeftInvOn f' f s : for every x ∈ s we have f' (f x) = x;
  • Set.RightInvOn f' f t : for every y ∈ t we have f (f' y) = y;
  • Set.InvOn f' f s t : f' is a two-side inverse of f on s and t, i.e. we have Set.LeftInvOn f' f s and Set.RightInvOn f' f t.

Equality on a set

Injectivity on a set

Surjectivity on a set

Bijectivity

left inverse

Right inverse

Two-side inverses

invFunOn is a left/right inverse

Equivalences, permutations

theorem Function.invFun.congr_simp E1 #

∀ {α : Sort u} {β : Sort u_3} [inst : Nonempty α] (f f_1 : α → β),
  f = f_1 → ∀ (a a_1 : β), a = a_1 → Function.invFun f a = Function.invFun f_1 a_1

theorem Equiv.Perm.extendDomain.congr_simp E1 #

∀ {α' : Type u_8} {β' : Type u_9} (e e_1 : Equiv.Perm α'),
  e = e_1 →
    ∀ {p : β' → Prop} {inst : DecidablePred p} [inst_1 : DecidablePred p] (f f_1 : α' ≃ Subtype p),
      f = f_1 → e.extendDomain f = e_1.extendDomain f_1

theorem Set.eqOn_empty E0 #

∀ {α : Type u_1} {β : Type u_2} (f₁ f₂ : α → β), Set.EqOn f₁ f₂ ∅

theorem Set.eqOn_singleton E0 #

∀ {α : Type u_1} {β : Type u_2} {f₁ f₂ : α → β} {a : α}, Set.EqOn f₁ f₂ {a} ↔ f₁ a = f₂ a

theorem Set.eqOn_univ E0 #

∀ {α : Type u_1} {β : Type u_2} (f₁ f₂ : α → β), Set.EqOn f₁ f₂ Set.univ ↔ f₁ = f₂

theorem Set.EqOn.symm E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f₁ f₂ : α → β}, Set.EqOn f₁ f₂ s → Set.EqOn f₂ f₁ s

theorem Set.eqOn_comm E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f₁ f₂ : α → β}, Set.EqOn f₁ f₂ s ↔ Set.EqOn f₂ f₁ s

theorem Set.eqOn_refl E1 #

∀ {α : Type u_1} {β : Type u_2} (f : α → β) (s : Set α), Set.EqOn f f s

theorem Set.EqOn.trans E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f₁ f₂ f₃ : α → β}, Set.EqOn f₁ f₂ s → Set.EqOn f₂ f₃ s → Set.EqOn f₁ f₃ s

theorem Set.EqOn.image_eq E0 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f₁ f₂ : α → β}, Set.EqOn f₁ f₂ s → f₁ '' s = f₂ '' s

theorem Set.EqOn.image_eq_self E1 #

∀ {α : Type u_1} {s : Set α} {f : α → α}, Set.EqOn f id s → f '' s = s

Variant of EqOn.image_eq, for one function being the identity.

theorem Set.EqOn.inter_preimage_eq E0 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f₁ f₂ : α → β},
  Set.EqOn f₁ f₂ s → ∀ (t : Set β), s ∩ f₁ ⁻¹' t = s ∩ f₂ ⁻¹' t

theorem Set.EqOn.mono E1 #

∀ {α : Type u_1} {β : Type u_2} {s₁ s₂ : Set α} {f₁ f₂ : α → β}, s₁ ⊆ s₂ → Set.EqOn f₁ f₂ s₂ → Set.EqOn f₁ f₂ s₁

theorem Set.eqOn_union E0 #

∀ {α : Type u_1} {β : Type u_2} {s₁ s₂ : Set α} {f₁ f₂ : α → β},
  Set.EqOn f₁ f₂ (s₁ ∪ s₂) ↔ Set.EqOn f₁ f₂ s₁ ∧ Set.EqOn f₁ f₂ s₂

theorem Set.EqOn.union E1 #

∀ {α : Type u_1} {β : Type u_2} {s₁ s₂ : Set α} {f₁ f₂ : α → β},
  Set.EqOn f₁ f₂ s₁ → Set.EqOn f₁ f₂ s₂ → Set.EqOn f₁ f₂ (s₁ ∪ s₂)

theorem Set.EqOn.comp_left E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {s : Set α} {f₁ f₂ : α → β} {g : β → γ},
  Set.EqOn f₁ f₂ s → Set.EqOn (g ∘ f₁) (g ∘ f₂) s

theorem Set.EqOn.comp_left₂ E1 #

∀ {α : Type u_6} {β : Type u_7} {δ : Type u_8} {γ : Type u_9} {op : α → β → δ} {a₁ a₂ : γ → α} {b₁ b₂ : γ → β}
  {s : Set γ}, Set.EqOn a₁ a₂ s → Set.EqOn b₁ b₂ s → Set.EqOn (fun x ↦ op (a₁ x) (b₁ x)) (fun x ↦ op (a₂ x) (b₂ x)) s

theorem Set.eqOn_range E0 #

∀ {α : Type u_1} {β : Type u_2} {ι : Sort u_6} {f : ι → α} {g₁ g₂ : α → β},
  Set.EqOn g₁ g₂ (Set.range f) ↔ g₁ ∘ f = g₂ ∘ f

theorem Set.EqOn.comp_eq E0 #

∀ {α : Type u_1} {β : Type u_2} {ι : Sort u_6} {f : ι → α} {g₁ g₂ : α → β},
  Set.EqOn g₁ g₂ (Set.range f) → g₁ ∘ f = g₂ ∘ f

Alias of the forward direction of Set.eqOn_range.

theorem Set.mapsTo_iff_image_subset E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β}, Set.MapsTo f s t ↔ f '' s ⊆ t

theorem Set.MapsTo.subset_preimage E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β}, Set.MapsTo f s t → s ⊆ f ⁻¹' t

theorem Set.mapsTo_iff_subset_preimage E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β}, Set.MapsTo f s t ↔ s ⊆ f ⁻¹' t

theorem Set.mapsTo_prodMap_diagonal E1 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Set.MapsTo (Prod.map f f) (Set.diagonal α) (Set.diagonal β)

theorem Set.mapsTo_singleton E0 #

∀ {α : Type u_1} {β : Type u_2} {t : Set β} {f : α → β} {x : α}, Set.MapsTo f {x} t ↔ f x ∈ t

theorem Set.mapsTo_empty E1 #

∀ {α : Type u_1} {β : Type u_2} (f : α → β) (t : Set β), Set.MapsTo f ∅ t

theorem Set.mapsTo_empty_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β}, Set.MapsTo f s ∅ ↔ s = ∅

theorem Set.MapsTo.nonempty E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β}, Set.MapsTo f s t → s.Nonempty → t.Nonempty

If f maps s to t and s is non-empty, t is non-empty.

theorem Set.MapsTo.image_subset E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β}, Set.MapsTo f s t → f '' s ⊆ t

theorem Set.MapsTo.congr E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f₁ f₂ : α → β},
  Set.MapsTo f₁ s t → Set.EqOn f₁ f₂ s → Set.MapsTo f₂ s t

theorem Set.EqOn.comp_right E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {s : Set α} {t : Set β} {f : α → β} {g₁ g₂ : β → γ},
  Set.EqOn g₁ g₂ t → Set.MapsTo f s t → Set.EqOn (g₁ ∘ f) (g₂ ∘ f) s

theorem Set.EqOn.mapsTo_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f₁ f₂ : α → β},
  Set.EqOn f₁ f₂ s → (Set.MapsTo f₁ s t ↔ Set.MapsTo f₂ s t)

theorem Set.MapsTo.comp E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {s : Set α} {t : Set β} {p : Set γ} {f : α → β} {g : β → γ},
  Set.MapsTo g t p → Set.MapsTo f s t → Set.MapsTo (g ∘ f) s p

theorem Set.mapsTo_id E1 #

∀ {α : Type u_1} (s : Set α), Set.MapsTo id s s

theorem Set.MapsTo.iterate E1 #

∀ {α : Type u_1} {f : α → α} {s : Set α}, Set.MapsTo f s s → ∀ (n : ℕ), Set.MapsTo f^[n] s s

theorem Set.MapsTo.iterate_restrict E1 #

∀ {α : Type u_1} {f : α → α} {s : Set α} (h : Set.MapsTo f s s) (n : ℕ),
  (Set.MapsTo.restrict f s s h)^[n] = Set.MapsTo.restrict f^[n] s s ⋯

theorem Set.mapsTo_of_subsingleton' E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} [Subsingleton β] (f : α → β),
  (s.Nonempty → t.Nonempty) → Set.MapsTo f s t

theorem Set.mapsTo_of_subsingleton E1 #

∀ {α : Type u_1} [Subsingleton α] (f : α → α) (s : Set α), Set.MapsTo f s s

theorem Set.MapsTo.mono E1 #

∀ {α : Type u_1} {β : Type u_2} {s₁ s₂ : Set α} {t₁ t₂ : Set β} {f : α → β},
  Set.MapsTo f s₁ t₁ → s₂ ⊆ s₁ → t₁ ⊆ t₂ → Set.MapsTo f s₂ t₂

theorem Set.MapsTo.mono_left E1 #

∀ {α : Type u_1} {β : Type u_2} {s₁ s₂ : Set α} {t : Set β} {f : α → β}, Set.MapsTo f s₁ t → s₂ ⊆ s₁ → Set.MapsTo f s₂ t

theorem Set.MapsTo.mono_right E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t₁ t₂ : Set β} {f : α → β}, Set.MapsTo f s t₁ → t₁ ⊆ t₂ → Set.MapsTo f s t₂

theorem Set.MapsTo.union_union E1 #

∀ {α : Type u_1} {β : Type u_2} {s₁ s₂ : Set α} {t₁ t₂ : Set β} {f : α → β},
  Set.MapsTo f s₁ t₁ → Set.MapsTo f s₂ t₂ → Set.MapsTo f (s₁ ∪ s₂) (t₁ ∪ t₂)

theorem Set.MapsTo.union E1 #

∀ {α : Type u_1} {β : Type u_2} {s₁ s₂ : Set α} {t : Set β} {f : α → β},
  Set.MapsTo f s₁ t → Set.MapsTo f s₂ t → Set.MapsTo f (s₁ ∪ s₂) t

theorem Set.mapsTo_union E0 #

∀ {α : Type u_1} {β : Type u_2} {s₁ s₂ : Set α} {t : Set β} {f : α → β},
  Set.MapsTo f (s₁ ∪ s₂) t ↔ Set.MapsTo f s₁ t ∧ Set.MapsTo f s₂ t

theorem Set.MapsTo.inter E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t₁ t₂ : Set β} {f : α → β},
  Set.MapsTo f s t₁ → Set.MapsTo f s t₂ → Set.MapsTo f s (t₁ ∩ t₂)

theorem Set.MapsTo.insert E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β},
  Set.MapsTo f s t → ∀ (x : α), Set.MapsTo f (insert x s) (insert (f x) t)

theorem Set.MapsTo.inter_inter E1 #

∀ {α : Type u_1} {β : Type u_2} {s₁ s₂ : Set α} {t₁ t₂ : Set β} {f : α → β},
  Set.MapsTo f s₁ t₁ → Set.MapsTo f s₂ t₂ → Set.MapsTo f (s₁ ∩ s₂) (t₁ ∩ t₂)

theorem Set.mapsTo_inter E0 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t₁ t₂ : Set β} {f : α → β},
  Set.MapsTo f s (t₁ ∩ t₂) ↔ Set.MapsTo f s t₁ ∧ Set.MapsTo f s t₂

theorem Set.mapsTo_univ E0 #

∀ {α : Type u_1} {β : Type u_2} (f : α → β) (s : Set α), Set.MapsTo f s Set.univ

theorem Set.mapsTo_range E1 #

∀ {α : Type u_1} {β : Type u_2} (f : α → β) (s : Set α), Set.MapsTo f s (Set.range f)

theorem Set.mapsTo_image_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {f : α → β} {g : γ → α} {s : Set γ} {t : Set β},
  Set.MapsTo f (g '' s) t ↔ Set.MapsTo (f ∘ g) s t

theorem Set.MapsTo.comp_left E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {s : Set α} {t : Set β} {f : α → β} (g : β → γ),
  Set.MapsTo f s t → Set.MapsTo (g ∘ f) s (g '' t)

theorem Set.MapsTo.comp_right E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {g : β → γ} {s : Set β} {t : Set γ},
  Set.MapsTo g s t → ∀ (f : α → β), Set.MapsTo (g ∘ f) (f ⁻¹' s) t

theorem Set.mapsTo_univ_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {t : Set β} {f : α → β}, Set.MapsTo f Set.univ t ↔ ∀ (x : α), f x ∈ t

theorem Set.mapsTo_univ_iff_range_subset E1 #

∀ {α : Type u_1} {β : Type u_2} {t : Set β} {f : α → β}, Set.MapsTo f Set.univ t ↔ Set.range f ⊆ t

theorem Set.mapsTo_range_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {ι : Sort u_5} {t : Set β} {f : α → β} {g : ι → α},
  Set.MapsTo f (Set.range g) t ↔ ∀ (i : ι), f (g i) ∈ t

theorem Set.MapsTo.mem_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β},
  Set.MapsTo f s t → Set.MapsTo f sᶜ tᶜ → ∀ {x : α}, f x ∈ t ↔ x ∈ s

theorem Set.Subsingleton.injOn E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α}, s.Subsingleton → ∀ (f : α → β), Set.InjOn f s

theorem Set.injOn_empty E0 #

∀ {α : Type u_1} {β : Type u_2} (f : α → β), Set.InjOn f ∅

theorem Set.injOn_singleton E0 #

∀ {α : Type u_1} {β : Type u_2} (f : α → β) (a : α), Set.InjOn f {a}

theorem Set.injOn_pair E0 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β} {a b : α}, Set.InjOn f {a, b} ↔ f a = f b → a = b

theorem Set.injOn_of_eq_iff_eq E0 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β} (s : Set α), (∀ (x y : α), f x = f y ↔ x = y) → Set.InjOn f s

theorem Set.InjOn.ne_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β} {x y : α}, Set.InjOn f s → x ∈ s → y ∈ s → (f x ≠ f y ↔ x ≠ y)

theorem Set.InjOn.ne E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β} {x y : α}, Set.InjOn f s → x ∈ s → y ∈ s → x ≠ y → f x ≠ f y

Alias of the reverse direction of Set.InjOn.ne_iff.

theorem Set.InjOn.congr E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f₁ f₂ : α → β}, Set.InjOn f₁ s → Set.EqOn f₁ f₂ s → Set.InjOn f₂ s

theorem Set.EqOn.injOn_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f₁ f₂ : α → β}, Set.EqOn f₁ f₂ s → (Set.InjOn f₁ s ↔ Set.InjOn f₂ s)

theorem Set.InjOn.mono E1 #

∀ {α : Type u_1} {β : Type u_2} {s₁ s₂ : Set α} {f : α → β}, s₁ ⊆ s₂ → Set.InjOn f s₂ → Set.InjOn f s₁

theorem Set.injOn_union E1 #

∀ {α : Type u_1} {β : Type u_2} {s₁ s₂ : Set α} {f : α → β},
  Disjoint s₁ s₂ → (Set.InjOn f (s₁ ∪ s₂) ↔ Set.InjOn f s₁ ∧ Set.InjOn f s₂ ∧ ∀ x ∈ s₁, ∀ y ∈ s₂, f x ≠ f y)

theorem Set.injOn_insert E1 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set α} {a : α},
  a ∉ s → (Set.InjOn f (insert a s) ↔ Set.InjOn f s ∧ f a ∉ f '' s)

theorem Set.injOn_univ E0 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Set.InjOn f Set.univ ↔ Function.Injective f

theorem Set.injOn_of_injective E1 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Function.Injective f → ∀ {s : Set α}, Set.InjOn f s

theorem Function.Injective.injOn E2 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Function.Injective f → ∀ {s : Set α}, Set.InjOn f s

Alias of Set.injOn_of_injective.

theorem Set.injOn_subtypeVal E1 #

∀ {α : Type u_1} {p : α → Prop} {s : Set { x // p x }}, Set.InjOn Subtype.val s

theorem Set.injOn_id E1 #

∀ {α : Type u_1} (s : Set α), Set.InjOn id s

theorem Set.InjOn.comp E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {s : Set α} {t : Set β} {f : α → β} {g : β → γ},
  Set.InjOn g t → Set.InjOn f s → Set.MapsTo f s t → Set.InjOn (g ∘ f) s

theorem Set.InjOn.of_comp E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {s : Set α} {f : α → β} {g : β → γ}, Set.InjOn (g ∘ f) s → Set.InjOn f s

theorem Set.InjOn.image_of_comp E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {s : Set α} {f : α → β} {g : β → γ},
  Set.InjOn (g ∘ f) s → Set.InjOn g (f '' s)

theorem Set.InjOn.comp_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {s : Set α} {f : α → β} {g : β → γ},
  Set.InjOn f s → (Set.InjOn (g ∘ f) s ↔ Set.InjOn g (f '' s))

theorem Set.InjOn.iterate E1 #

∀ {α : Type u_1} {f : α → α} {s : Set α}, Set.InjOn f s → Set.MapsTo f s s → ∀ (n : ℕ), Set.InjOn f^[n] s

theorem Set.injOn_of_subsingleton E1 #

∀ {α : Type u_1} {β : Type u_2} [Subsingleton α] (f : α → β) (s : Set α), Set.InjOn f s

theorem Function.Injective.injOn_range E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {f : α → β} {g : β → γ},
  Function.Injective (g ∘ f) → Set.InjOn g (Set.range f)

theorem Set.InjOn.injective_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {f : α → β} {g : β → γ} (s : Set β),
  Set.InjOn g s → Set.range f ⊆ s → (Function.Injective (g ∘ f) ↔ Function.Injective f)

theorem Set.exists_injOn_iff_injective E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} [Nonempty β], (∃ f, Set.InjOn f s) ↔ ∃ f, Function.Injective f

theorem Set.injOn_preimage E1 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β} {B : Set (Set β)}, B ⊆ 𝒫 Set.range f → Set.InjOn (Set.preimage f) B

theorem Set.InjOn.mem_of_mem_image E0 #

∀ {α : Type u_1} {β : Type u_2} {s s₁ : Set α} {f : α → β} {x : α},
  Set.InjOn f s → s₁ ⊆ s → x ∈ s → f x ∈ f '' s₁ → x ∈ s₁

theorem Set.InjOn.mem_image_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {s s₁ : Set α} {f : α → β} {x : α},
  Set.InjOn f s → s₁ ⊆ s → x ∈ s → (f x ∈ f '' s₁ ↔ x ∈ s₁)

theorem Set.InjOn.preimage_image_inter E1 #

∀ {α : Type u_1} {β : Type u_2} {s s₁ : Set α} {f : α → β}, Set.InjOn f s → s₁ ⊆ s → f ⁻¹' f '' s₁ ∩ s = s₁

theorem Set.EqOn.cancel_left E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {s : Set α} {t : Set β} {f₁ f₂ : α → β} {g : β → γ},
  Set.EqOn (g ∘ f₁) (g ∘ f₂) s → Set.InjOn g t → Set.MapsTo f₁ s t → Set.MapsTo f₂ s t → Set.EqOn f₁ f₂ s

theorem Set.InjOn.cancel_left E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {s : Set α} {t : Set β} {f₁ f₂ : α → β} {g : β → γ},
  Set.InjOn g t → Set.MapsTo f₁ s t → Set.MapsTo f₂ s t → (Set.EqOn (g ∘ f₁) (g ∘ f₂) s ↔ Set.EqOn f₁ f₂ s)

theorem Set.InjOn.image_inter E1 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s t u : Set α},
  Set.InjOn f u → s ⊆ u → t ⊆ u → f '' (s ∩ t) = f '' s ∩ f '' t

theorem Set.InjOn.image E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β}, Set.InjOn f s → Set.InjOn (Set.image f) (𝒫 s)

theorem Set.InjOn.image_eq_image_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {s s₁ s₂ : Set α} {f : α → β},
  Set.InjOn f s → s₁ ⊆ s → s₂ ⊆ s → (f '' s₁ = f '' s₂ ↔ s₁ = s₂)

theorem Set.InjOn.image_subset_image_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {s s₁ s₂ : Set α} {f : α → β},
  Set.InjOn f s → s₁ ⊆ s → s₂ ⊆ s → (f '' s₁ ⊆ f '' s₂ ↔ s₁ ⊆ s₂)

theorem Set.InjOn.image_ssubset_image_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {s s₁ s₂ : Set α} {f : α → β},
  Set.InjOn f s → s₁ ⊆ s → s₂ ⊆ s → (f '' s₁ ⊂ f '' s₂ ↔ s₁ ⊂ s₂)

theorem Disjoint.image E1 #

∀ {α : Type u_1} {β : Type u_2} {s t u : Set α} {f : α → β},
  Disjoint s t → Set.InjOn f u → s ⊆ u → t ⊆ u → Disjoint (f '' s) (f '' t)

theorem Set.InjOn.image_sdiff E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β} {t : Set α},
  Set.InjOn f s → f '' (s \ t) = f '' s \ f '' (s ∩ t)

theorem Set.InjOn.image_sdiff_subset E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β} {t : Set α},
  Set.InjOn f s → t ⊆ s → f '' (s \ t) = f '' s \ f '' t

theorem Set.image_sdiff_of_injOn E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β} {t : Set α},
  Set.InjOn f s → t ⊆ s → f '' (s \ t) = f '' s \ f '' t

Alias of Set.InjOn.image_sdiff_subset.

theorem Set.InjOn.imageFactorization_injective E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β}, Set.InjOn f s → Function.Injective (Set.imageFactorization f s)

theorem Set.imageFactorization_injective_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β}, Function.Injective (Set.imageFactorization f s) ↔ Set.InjOn f s

theorem Set.graphOn_univ_inj E1 #

∀ {α : Type u_1} {β : Type u_2} {f g : α → β}, Set.graphOn f Set.univ = Set.graphOn g Set.univ ↔ f = g

theorem Set.graphOn_univ_injective E1 #

∀ {α : Type u_1} {β : Type u_2}, Function.Injective fun f ↦ Set.graphOn f Set.univ

theorem Set.exists_eq_graphOn_image_fst E1 #

∀ {α : Type u_1} {β : Type u_2} [Nonempty β] {s : Set (α × β)},
  (∃ f, s = Set.graphOn f (Prod.fst '' s)) ↔ Set.InjOn Prod.fst s

theorem Set.exists_eq_graphOn E1 #

∀ {α : Type u_1} {β : Type u_2} [Nonempty β] {s : Set (α × β)}, (∃ f t, s = Set.graphOn f t) ↔ Set.InjOn Prod.fst s

theorem Set.SurjOn.subset_range E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β}, Set.SurjOn f s t → t ⊆ Set.range f

theorem Set.surjOn_iff_exists_map_subtype E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β},
  Set.SurjOn f s t ↔ ∃ t' g, t ⊆ t' ∧ Function.Surjective g ∧ ∀ (x : ↑s), f ↑x = ↑(g x)

theorem Set.surjOn_empty E1 #

∀ {α : Type u_1} {β : Type u_2} (f : α → β) (s : Set α), Set.SurjOn f s ∅

theorem Set.surjOn_empty_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {t : Set β} {f : α → β}, Set.SurjOn f ∅ t ↔ t = ∅

theorem Set.surjOn_singleton E0 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β} {b : β}, Set.SurjOn f s {b} ↔ b ∈ f '' s

theorem Set.surjOn_univ_of_subsingleton_nonempty E0 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β} [Subsingleton β] [Nonempty β],
  Set.SurjOn f s Set.univ ↔ s.Nonempty

theorem Set.surjOn_image E1 #

∀ {α : Type u_1} {β : Type u_2} (f : α → β) (s : Set α), Set.SurjOn f s (f '' s)

theorem Set.SurjOn.comap_nonempty E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β}, Set.SurjOn f s t → t.Nonempty → s.Nonempty

theorem Set.SurjOn.nonempty_or_eq_empty E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β}, Set.SurjOn f s t → s.Nonempty ∨ t = ∅

theorem Set.SurjOn.congr E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f₁ f₂ : α → β},
  Set.SurjOn f₁ s t → Set.EqOn f₁ f₂ s → Set.SurjOn f₂ s t

theorem Set.EqOn.surjOn_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f₁ f₂ : α → β},
  Set.EqOn f₁ f₂ s → (Set.SurjOn f₁ s t ↔ Set.SurjOn f₂ s t)

theorem Set.SurjOn.mono E1 #

∀ {α : Type u_1} {β : Type u_2} {s₁ s₂ : Set α} {t₁ t₂ : Set β} {f : α → β},
  s₁ ⊆ s₂ → t₁ ⊆ t₂ → Set.SurjOn f s₁ t₂ → Set.SurjOn f s₂ t₁

theorem Set.SurjOn.union E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t₁ t₂ : Set β} {f : α → β},
  Set.SurjOn f s t₁ → Set.SurjOn f s t₂ → Set.SurjOn f s (t₁ ∪ t₂)

theorem Set.SurjOn.union_union E1 #

∀ {α : Type u_1} {β : Type u_2} {s₁ s₂ : Set α} {t₁ t₂ : Set β} {f : α → β},
  Set.SurjOn f s₁ t₁ → Set.SurjOn f s₂ t₂ → Set.SurjOn f (s₁ ∪ s₂) (t₁ ∪ t₂)

theorem Set.SurjOn.inter_inter E1 #

∀ {α : Type u_1} {β : Type u_2} {s₁ s₂ : Set α} {t₁ t₂ : Set β} {f : α → β},
  Set.SurjOn f s₁ t₁ → Set.SurjOn f s₂ t₂ → Set.InjOn f (s₁ ∪ s₂) → Set.SurjOn f (s₁ ∩ s₂) (t₁ ∩ t₂)

theorem Set.SurjOn.inter E1 #

∀ {α : Type u_1} {β : Type u_2} {s₁ s₂ : Set α} {t : Set β} {f : α → β},
  Set.SurjOn f s₁ t → Set.SurjOn f s₂ t → Set.InjOn f (s₁ ∪ s₂) → Set.SurjOn f (s₁ ∩ s₂) t

theorem Set.surjOn_id E1 #

∀ {α : Type u_1} (s : Set α), Set.SurjOn id s s

theorem Set.SurjOn.comp E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {s : Set α} {t : Set β} {p : Set γ} {f : α → β} {g : β → γ},
  Set.SurjOn g t p → Set.SurjOn f s t → Set.SurjOn (g ∘ f) s p

theorem Set.SurjOn.of_comp E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {s : Set α} {t : Set β} {p : Set γ} {f : α → β} {g : β → γ},
  Set.SurjOn (g ∘ f) s p → Set.MapsTo f s t → Set.SurjOn g t p

theorem Set.surjOn_comp_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {s : Set α} {p : Set γ} {f : α → β} {g : β → γ},
  Set.SurjOn (g ∘ f) s p ↔ Set.SurjOn g (f '' s) p

theorem Set.SurjOn.iterate E1 #

∀ {α : Type u_1} {f : α → α} {s : Set α}, Set.SurjOn f s s → ∀ (n : ℕ), Set.SurjOn f^[n] s s

theorem Set.SurjOn.comp_left E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {s : Set α} {t : Set β} {f : α → β},
  Set.SurjOn f s t → ∀ (g : β → γ), Set.SurjOn (g ∘ f) s (g '' t)

theorem Set.SurjOn.comp_right E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {f : α → β} {g : β → γ} {s : Set β} {t : Set γ},
  Function.Surjective f → Set.SurjOn g s t → Set.SurjOn (g ∘ f) (f ⁻¹' s) t

theorem Set.surjOn_of_subsingleton' E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} [Subsingleton β] (f : α → β),
  (t.Nonempty → s.Nonempty) → Set.SurjOn f s t

theorem Set.surjOn_of_subsingleton E1 #

∀ {α : Type u_1} [Subsingleton α] (f : α → α) (s : Set α), Set.SurjOn f s s

theorem Set.surjOn_univ E0 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Set.SurjOn f Set.univ Set.univ ↔ Function.Surjective f

theorem Function.Surjective.surjOn E1 #

∀ {α : Type u_1} {β : Type u_2} {t : Set β} {f : α → β}, Function.Surjective f → Set.SurjOn f Set.univ t

theorem Set.SurjOn.surjective E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β}, Set.SurjOn f s Set.univ → Function.Surjective f

theorem Set.SurjOn.image_eq_of_mapsTo E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β}, Set.SurjOn f s t → Set.MapsTo f s t → f '' s = t

theorem Set.image_eq_iff_surjOn_mapsTo E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β}, f '' s = t ↔ Set.SurjOn f s t ∧ Set.MapsTo f s t

theorem Set.SurjOn.image_preimage E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t t₁ : Set β} {f : α → β}, Set.SurjOn f s t → t₁ ⊆ t → f '' f ⁻¹' t₁ = t₁

theorem Set.SurjOn.mapsTo_compl E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β},
  Set.SurjOn f s t → Function.Injective f → Set.MapsTo f sᶜ tᶜ

theorem Set.MapsTo.surjOn_compl E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β},
  Set.MapsTo f s t → Function.Surjective f → Set.SurjOn f sᶜ tᶜ

theorem Set.EqOn.cancel_right E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {s : Set α} {t : Set β} {f : α → β} {g₁ g₂ : β → γ},
  Set.EqOn (g₁ ∘ f) (g₂ ∘ f) s → Set.SurjOn f s t → Set.EqOn g₁ g₂ t

theorem Set.SurjOn.cancel_right E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {s : Set α} {t : Set β} {f : α → β} {g₁ g₂ : β → γ},
  Set.SurjOn f s t → Set.MapsTo f s t → (Set.EqOn (g₁ ∘ f) (g₂ ∘ f) s ↔ Set.EqOn g₁ g₂ t)

theorem Set.eqOn_comp_right_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {s : Set α} {f : α → β} {g₁ g₂ : β → γ},
  Set.EqOn (g₁ ∘ f) (g₂ ∘ f) s ↔ Set.EqOn g₁ g₂ (f '' s)

theorem Set.SurjOn.forall E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β} {p : β → Prop},
  Set.SurjOn f s t → Set.MapsTo f s t → ((∀ y ∈ t, p y) ↔ ∀ x ∈ s, p (f x))

theorem Subtype.coind_surjective E1 #

∀ {α : Type u_6} {β : Type u_7} {f : α → β} {p : Set β} (h : ∀ (a : α), f a ∈ p),
  Set.SurjOn f Set.univ p → Function.Surjective (Subtype.coind f h)

theorem Subtype.coind_bijective E1 #

∀ {α : Type u_6} {β : Type u_7} {f : α → β} {p : Set β} (h : ∀ (a : α), f a ∈ p),
  Function.Injective f → Set.SurjOn f Set.univ p → Function.Bijective (Subtype.coind f h)

theorem Set.BijOn.mapsTo E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β}, Set.BijOn f s t → Set.MapsTo f s t

theorem Set.BijOn.injOn E2 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β}, Set.BijOn f s t → Set.InjOn f s

theorem Set.BijOn.surjOn E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β}, Set.BijOn f s t → Set.SurjOn f s t

theorem Set.BijOn.mk E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β},
  Set.MapsTo f s t → Set.InjOn f s → Set.SurjOn f s t → Set.BijOn f s t

theorem Set.bijOn_empty E1 #

∀ {α : Type u_1} {β : Type u_2} (f : α → β), Set.BijOn f ∅ ∅

theorem Set.bijOn_empty_iff_left E0 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β}, Set.BijOn f s ∅ ↔ s = ∅

theorem Set.bijOn_empty_iff_right E0 #

∀ {α : Type u_1} {β : Type u_2} {t : Set β} {f : α → β}, Set.BijOn f ∅ t ↔ t = ∅

theorem Set.bijOn_singleton E0 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β} {a : α} {b : β}, Set.BijOn f {a} {b} ↔ f a = b

theorem Set.BijOn.inter_mapsTo E1 #

∀ {α : Type u_1} {β : Type u_2} {s₁ s₂ : Set α} {t₁ t₂ : Set β} {f : α → β},
  Set.BijOn f s₁ t₁ → Set.MapsTo f s₂ t₂ → s₁ ∩ f ⁻¹' t₂ ⊆ s₂ → Set.BijOn f (s₁ ∩ s₂) (t₁ ∩ t₂)

theorem Set.MapsTo.inter_bijOn E1 #

∀ {α : Type u_1} {β : Type u_2} {s₁ s₂ : Set α} {t₁ t₂ : Set β} {f : α → β},
  Set.MapsTo f s₁ t₁ → Set.BijOn f s₂ t₂ → s₂ ∩ f ⁻¹' t₁ ⊆ s₁ → Set.BijOn f (s₁ ∩ s₂) (t₁ ∩ t₂)

theorem Set.BijOn.inter E1 #

∀ {α : Type u_1} {β : Type u_2} {s₁ s₂ : Set α} {t₁ t₂ : Set β} {f : α → β},
  Set.BijOn f s₁ t₁ → Set.BijOn f s₂ t₂ → Set.InjOn f (s₁ ∪ s₂) → Set.BijOn f (s₁ ∩ s₂) (t₁ ∩ t₂)

theorem Set.BijOn.union E1 #

∀ {α : Type u_1} {β : Type u_2} {s₁ s₂ : Set α} {t₁ t₂ : Set β} {f : α → β},
  Set.BijOn f s₁ t₁ → Set.BijOn f s₂ t₂ → Set.InjOn f (s₁ ∪ s₂) → Set.BijOn f (s₁ ∪ s₂) (t₁ ∪ t₂)

theorem Set.BijOn.subset_range E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β}, Set.BijOn f s t → t ⊆ Set.range f

theorem Set.InjOn.bijOn_image E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β}, Set.InjOn f s → Set.BijOn f s (f '' s)

theorem Set.SurjOn.preimage E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β}, Set.SurjOn f s t → Set.SurjOn f (f ⁻¹' t) t

theorem Set.BijOn.congr E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f₁ f₂ : α → β},
  Set.BijOn f₁ s t → Set.EqOn f₁ f₂ s → Set.BijOn f₂ s t

theorem Set.EqOn.bijOn_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f₁ f₂ : α → β},
  Set.EqOn f₁ f₂ s → (Set.BijOn f₁ s t ↔ Set.BijOn f₂ s t)

theorem Set.BijOn.image_eq E0 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β}, Set.BijOn f s t → f '' s = t

theorem Set.BijOn.forall E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β} {p : β → Prop},
  Set.BijOn f s t → ((∀ b ∈ t, p b) ↔ ∀ a ∈ s, p (f a))

theorem Set.BijOn.exists E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β} {p : β → Prop},
  Set.BijOn f s t → ((∃ b ∈ t, p b) ↔ ∃ a ∈ s, p (f a))

theorem Equiv.image_eq_iff_bijOn E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} (e : α ≃ β), ⇑e '' s = t ↔ Set.BijOn (⇑e) s t

theorem Set.bijOn_id E1 #

∀ {α : Type u_1} (s : Set α), Set.BijOn id s s

theorem Set.BijOn.comp E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {s : Set α} {t : Set β} {p : Set γ} {f : α → β} {g : β → γ},
  Set.BijOn g t p → Set.BijOn f s t → Set.BijOn (g ∘ f) s p

theorem Set.bijOn_comp_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {s : Set α} {p : Set γ} {f : α → β} {g : β → γ},
  Set.InjOn f s → (Set.BijOn (g ∘ f) s p ↔ Set.BijOn g (f '' s) p)

If f : α → β and g : β → γ and if f is injective on s, then g ∘ f is a bijection on s iff g is a bijection on f '' s.

theorem Set.bijOn_image_image E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} {s : Set α} {t : Set β} {f : α → β} {p₁ : α → γ}
  {p₂ : β → δ} {g : γ → δ},
  (∀ (a : α), p₂ (f a) = g (p₁ a)) → Set.BijOn f s t → Set.InjOn g (p₁ '' s) → Set.BijOn g (p₁ '' s) (p₂ '' t)

If we have a commutative square

α --f--> β
|        |
p₁       p₂
|        |
\/       \/
γ --g--> δ

and f induces a bijection from s : Set α to t : Set β, then g induces a bijection from the image of s to the image of t, as long as g is injective on the image of s.

theorem Set.BijOn.iterate E1 #

∀ {α : Type u_1} {f : α → α} {s : Set α}, Set.BijOn f s s → ∀ (n : ℕ), Set.BijOn f^[n] s s

theorem Set.bijOn_of_subsingleton' E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} [Subsingleton α] [Subsingleton β] (f : α → β),
  (s.Nonempty ↔ t.Nonempty) → Set.BijOn f s t

theorem Set.bijOn_of_subsingleton E1 #

∀ {α : Type u_1} [Subsingleton α] (f : α → α) (s : Set α), Set.BijOn f s s

theorem Set.BijOn.bijective E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β} (h : Set.BijOn f s t),
  Function.Bijective (Set.MapsTo.restrict f s t ⋯)

theorem Set.bijOn_univ E0 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Set.BijOn f Set.univ Set.univ ↔ Function.Bijective f

theorem Function.Bijective.bijOn_univ E1 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Function.Bijective f → Set.BijOn f Set.univ Set.univ

Alias of the reverse direction of Set.bijOn_univ.

theorem Function.Injective.bijOn_image E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β}, Function.Injective f → Set.BijOn f s (f '' s)

theorem Function.Surjective.surjOn_preimage E1 #

∀ {α : Type u_1} {β : Type u_2} {t : Set β} {f : α → β}, Function.Surjective f → Set.SurjOn f (f ⁻¹' t) t

theorem Function.Bijective.bijOn_preimage E1 #

∀ {α : Type u_1} {β : Type u_2} {t : Set β} {f : α → β}, Function.Bijective f → Set.BijOn f (f ⁻¹' t) t

theorem Set.BijOn.compl E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β},
  Set.BijOn f s t → Function.Bijective f → Set.BijOn f sᶜ tᶜ

theorem Set.BijOn.subset_right E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β} {r : Set β},
  Set.BijOn f s t → r ⊆ t → Set.BijOn f (s ∩ f ⁻¹' r) r

theorem Set.BijOn.subset_left E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β} {r : Set α},
  Set.BijOn f s t → r ⊆ s → Set.BijOn f r (f '' r)

theorem Set.BijOn.insert_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β} {a : α},
  a ∉ s → f a ∉ t → (Set.BijOn f (insert a s) (insert (f a) t) ↔ Set.BijOn f s t)

theorem Set.BijOn.insert E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β} {a : α},
  Set.BijOn f s t → f a ∉ t → Set.BijOn f (insert a s) (insert (f a) t)

theorem Set.BijOn.sdiff_singleton E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β} {a : α},
  Set.BijOn f s t → a ∈ s → Set.BijOn f (s \ {a}) (t \ {f a})

theorem Set.LeftInvOn.eqOn E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β} {f' : β → α}, Set.LeftInvOn f' f s → Set.EqOn (f' ∘ f) id s

theorem Set.LeftInvOn.eq E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β} {f' : β → α},
  Set.LeftInvOn f' f s → ∀ {x : α}, x ∈ s → f' (f x) = x

theorem Set.LeftInvOn.congr_left E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β} {f₁' f₂' : β → α},
  Set.LeftInvOn f₁' f s → ∀ {t : Set β}, Set.MapsTo f s t → Set.EqOn f₁' f₂' t → Set.LeftInvOn f₂' f s

theorem Set.LeftInvOn.congr_right E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f₁ f₂ : α → β} {f₁' : β → α},
  Set.LeftInvOn f₁' f₁ s → Set.EqOn f₁ f₂ s → Set.LeftInvOn f₁' f₂ s

theorem Set.LeftInvOn.injOn E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β} {f₁' : β → α}, Set.LeftInvOn f₁' f s → Set.InjOn f s

theorem Set.LeftInvOn.surjOn E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β} {f' : β → α},
  Set.LeftInvOn f' f s → Set.MapsTo f s t → Set.SurjOn f' t s

theorem Set.LeftInvOn.mapsTo E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β} {f' : β → α},
  Set.LeftInvOn f' f s → Set.SurjOn f s t → Set.MapsTo f' t s

theorem Set.leftInvOn_id E1 #

∀ {α : Type u_1} (s : Set α), Set.LeftInvOn id id s

theorem Set.LeftInvOn.comp E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {s : Set α} {t : Set β} {f : α → β} {g : β → γ} {f' : β → α}
  {g' : γ → β}, Set.LeftInvOn f' f s → Set.LeftInvOn g' g t → Set.MapsTo f s t → Set.LeftInvOn (f' ∘ g') (g ∘ f) s

theorem Set.LeftInvOn.mono E1 #

∀ {α : Type u_1} {β : Type u_2} {s s₁ : Set α} {f : α → β} {f' : β → α},
  Set.LeftInvOn f' f s → s₁ ⊆ s → Set.LeftInvOn f' f s₁

theorem Set.LeftInvOn.image_inter' E1 #

∀ {α : Type u_1} {β : Type u_2} {s s₁ : Set α} {f : α → β} {f' : β → α},
  Set.LeftInvOn f' f s → f '' (s₁ ∩ s) = f' ⁻¹' s₁ ∩ f '' s

theorem Set.LeftInvOn.image_inter E1 #

∀ {α : Type u_1} {β : Type u_2} {s s₁ : Set α} {f : α → β} {f' : β → α},
  Set.LeftInvOn f' f s → f '' (s₁ ∩ s) = f' ⁻¹' (s₁ ∩ s) ∩ f '' s

theorem Set.LeftInvOn.image_image E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β} {f' : β → α}, Set.LeftInvOn f' f s → f' '' f '' s = s

theorem Set.LeftInvOn.image_image' E1 #

∀ {α : Type u_1} {β : Type u_2} {s s₁ : Set α} {f : α → β} {f' : β → α},
  Set.LeftInvOn f' f s → s₁ ⊆ s → f' '' f '' s₁ = s₁

theorem Set.RightInvOn.eqOn E1 #

∀ {α : Type u_1} {β : Type u_2} {t : Set β} {f : α → β} {f' : β → α}, Set.RightInvOn f' f t → Set.EqOn (f ∘ f') id t

theorem Set.RightInvOn.eq E1 #

∀ {α : Type u_1} {β : Type u_2} {t : Set β} {f : α → β} {f' : β → α},
  Set.RightInvOn f' f t → ∀ {y : β}, y ∈ t → f (f' y) = y

theorem Set.LeftInvOn.rightInvOn_image E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β} {f' : β → α},
  Set.LeftInvOn f' f s → Set.RightInvOn f' f (f '' s)

theorem Set.RightInvOn.congr_left E1 #

∀ {α : Type u_1} {β : Type u_2} {t : Set β} {f : α → β} {f₁' f₂' : β → α},
  Set.RightInvOn f₁' f t → Set.EqOn f₁' f₂' t → Set.RightInvOn f₂' f t

theorem Set.RightInvOn.congr_right E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f₁ f₂ : α → β} {f' : β → α},
  Set.RightInvOn f' f₁ t → Set.MapsTo f' t s → Set.EqOn f₁ f₂ s → Set.RightInvOn f' f₂ t

theorem Set.RightInvOn.surjOn E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β} {f' : β → α},
  Set.RightInvOn f' f t → Set.MapsTo f' t s → Set.SurjOn f s t

theorem Set.RightInvOn.mapsTo E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β} {f' : β → α},
  Set.RightInvOn f' f t → Set.SurjOn f' t s → Set.MapsTo f s t

theorem Set.rightInvOn_id E1 #

∀ {α : Type u_1} (s : Set α), Set.RightInvOn id id s

theorem Set.RightInvOn.comp E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {t : Set β} {p : Set γ} {f : α → β} {g : β → γ} {f' : β → α}
  {g' : γ → β}, Set.RightInvOn f' f t → Set.RightInvOn g' g p → Set.MapsTo g' p t → Set.RightInvOn (f' ∘ g') (g ∘ f) p

theorem Set.RightInvOn.mono E1 #

∀ {α : Type u_1} {β : Type u_2} {t t₁ : Set β} {f : α → β} {f' : β → α},
  Set.RightInvOn f' f t → t₁ ⊆ t → Set.RightInvOn f' f t₁

theorem Set.InjOn.rightInvOn_of_leftInvOn E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β} {f' : β → α},
  Set.InjOn f s → Set.LeftInvOn f f' t → Set.MapsTo f s t → Set.MapsTo f' t s → Set.RightInvOn f f' s

theorem Set.eqOn_of_leftInvOn_of_rightInvOn E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β} {f₁' f₂' : β → α},
  Set.LeftInvOn f₁' f s → Set.RightInvOn f₂' f t → Set.MapsTo f₂' t s → Set.EqOn f₁' f₂' t

theorem Set.SurjOn.leftInvOn_of_rightInvOn E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β} {f' : β → α},
  Set.SurjOn f s t → Set.RightInvOn f f' s → Set.LeftInvOn f f' t

theorem Set.image_eq_preimage_of_leftInvOn_injOn E1 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β} {g : β → α} {s : Set α},
  Set.LeftInvOn g f s → Set.InjOn g (g ⁻¹' s) → f '' s = g ⁻¹' s

theorem Set.invOn_id E1 #

∀ {α : Type u_1} (s : Set α), Set.InvOn id id s s

theorem Set.InvOn.comp E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {s : Set α} {t : Set β} {p : Set γ} {f : α → β} {g : β → γ} {f' : β → α}
  {g' : γ → β},
  Set.InvOn f' f s t → Set.InvOn g' g t p → Set.MapsTo f s t → Set.MapsTo g' p t → Set.InvOn (f' ∘ g') (g ∘ f) s p

theorem Set.InvOn.symm E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β} {f' : β → α},
  Set.InvOn f' f s t → Set.InvOn f f' t s

theorem Set.InvOn.mono E1 #

∀ {α : Type u_1} {β : Type u_2} {s s₁ : Set α} {t t₁ : Set β} {f : α → β} {f' : β → α},
  Set.InvOn f' f s t → s₁ ⊆ s → t₁ ⊆ t → Set.InvOn f' f s₁ t₁

theorem Set.InvOn.bijOn E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β} {f' : β → α},
  Set.InvOn f' f s t → Set.MapsTo f s t → Set.MapsTo f' t s → Set.BijOn f s t

If functions f' and f are inverse on s and t, f maps s into t, and f' maps t into s, then f is a bijection between s and t. The mapsTo arguments can be deduced from surjOn statements using LeftInvOn.mapsTo and RightInvOn.mapsTo.

def Function.invFunOn E1 #

{α : Type u_1} → {β : Type u_2} → [Nonempty α] → (α → β) → Set α → β → α

Construct the inverse for a function f on domain s. This function is a right inverse of f on f '' s. For a computable version, see Function.Embedding.invOfMemRange.

theorem Function.invFunOn_pos E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β} {b : β} [inst : Nonempty α],
  (∃ a ∈ s, f a = b) → Function.invFunOn f s b ∈ s ∧ f (Function.invFunOn f s b) = b

theorem Function.invFunOn_mem E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β} {b : β} [inst : Nonempty α],
  (∃ a ∈ s, f a = b) → Function.invFunOn f s b ∈ s

theorem Function.invFunOn_eq E0 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β} {b : β} [inst : Nonempty α],
  (∃ a ∈ s, f a = b) → f (Function.invFunOn f s b) = b

theorem Function.invFunOn_neg E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β} {b : β} [inst : Nonempty α],
  (¬∃ a ∈ s, f a = b) → Function.invFunOn f s b = Classical.choice inst

theorem Function.invFunOn_apply_mem E0 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β} {a : α} [inst : Nonempty α],
  a ∈ s → Function.invFunOn f s (f a) ∈ s

theorem Function.invFunOn_apply_eq E0 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β} {a : α} [inst : Nonempty α],
  a ∈ s → f (Function.invFunOn f s (f a)) = f a

theorem Set.InjOn.leftInvOn_invFunOn E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β} [inst : Nonempty α],
  Set.InjOn f s → Set.LeftInvOn (Function.invFunOn f s) f s

theorem Set.InjOn.invFunOn_image E1 #

∀ {α : Type u_1} {β : Type u_2} {s₁ s₂ : Set α} {f : α → β} [inst : Nonempty α],
  Set.InjOn f s₂ → s₁ ⊆ s₂ → Function.invFunOn f s₂ '' f '' s₁ = s₁

theorem Function.leftInvOn_invFunOn_of_subset_image_image E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β} [inst : Nonempty α],
  s ⊆ Function.invFunOn f s '' f '' s → Set.LeftInvOn (Function.invFunOn f s) f s

theorem Set.injOn_iff_invFunOn_image_image_eq_self E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β} [inst : Nonempty α],
  Set.InjOn f s ↔ Function.invFunOn f s '' f '' s = s

theorem Function.invFunOn_injOn_image E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Nonempty α] (f : α → β) (s : Set α), Set.InjOn (Function.invFunOn f s) (f '' s)

theorem Function.invFunOn_image_image_subset E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Nonempty α] (f : α → β) (s : Set α), Function.invFunOn f s '' f '' s ⊆ s

theorem Set.SurjOn.rightInvOn_invFunOn E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β} [inst : Nonempty α],
  Set.SurjOn f s t → Set.RightInvOn (Function.invFunOn f s) f t

theorem Set.BijOn.invOn_invFunOn E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β} [inst : Nonempty α],
  Set.BijOn f s t → Set.InvOn (Function.invFunOn f s) f s t

theorem Set.SurjOn.invOn_invFunOn E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β} [inst : Nonempty α],
  Set.SurjOn f s t → Set.InvOn (Function.invFunOn f s) f (Function.invFunOn f s '' t) t

theorem Set.SurjOn.mapsTo_invFunOn E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β} [inst : Nonempty α],
  Set.SurjOn f s t → Set.MapsTo (Function.invFunOn f s) t s

theorem Set.SurjOn.image_invFunOn_image_of_subset E2 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β} [inst : Nonempty α] {r : Set β},
  Set.SurjOn f s t → r ⊆ t → f '' Function.invFunOn f s '' r = r

This lemma is a special case of rightInvOn_invFunOn.image_image'; it may make more sense to use the other lemma directly in an application.

theorem Set.SurjOn.image_invFunOn_image E2 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β} [inst : Nonempty α],
  Set.SurjOn f s t → f '' Function.invFunOn f s '' t = t

This lemma is a special case of rightInvOn_invFunOn.image_image; it may make more sense to use the other lemma directly in an application.

theorem Set.SurjOn.bijOn_subset E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β} [inst : Nonempty α],
  Set.SurjOn f s t → Set.BijOn f (Function.invFunOn f s '' t) t

theorem Set.surjOn_iff_exists_bijOn_subset E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β}, Set.SurjOn f s t ↔ ∃ s' ⊆ s, Set.BijOn f s' t

theorem Set.SurjOn.exists_bijOn_subset E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β}, Set.SurjOn f s t → ∃ s' ⊆ s, Set.BijOn f s' t

Alias of the forward direction of Set.surjOn_iff_exists_bijOn_subset.

theorem Set.exists_subset_bijOn E1 #

∀ {α : Type u_1} {β : Type u_2} (s : Set α) (f : α → β), ∃ s' ⊆ s, Set.BijOn f s' (f '' s)

theorem Set.exists_image_eq_and_injOn E1 #

∀ {α : Type u_1} {β : Type u_2} (s : Set α) (f : α → β), ∃ u, f '' u = f '' s ∧ Set.InjOn f u

theorem Set.exists_image_eq_injOn_of_subset_range E1 #

∀ {α : Type u_1} {β : Type u_2} {t : Set β} {f : α → β}, t ⊆ Set.range f → ∃ s, f '' s = t ∧ Set.InjOn f s

theorem Set.BijOn.exists_extend_of_subset E1 #

∀ {α : Type u_1} {β : Type u_2} {s s₁ : Set α} {t : Set β} {f : α → β} {t' : Set β},
  Set.BijOn f s t → s ⊆ s₁ → t ⊆ t' → Set.SurjOn f s₁ t' → ∃ s', s ⊆ s' ∧ s' ⊆ s₁ ∧ Set.BijOn f s' t'

If f maps s bijectively to t and a set t' is contained in the image of some s₁ ⊇ s, then s₁ has a subset containing s that f maps bijectively to t'.

theorem Set.BijOn.exists_extend E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β} {t' : Set β},
  Set.BijOn f s t → t ⊆ t' → t' ⊆ Set.range f → ∃ s', s ⊆ s' ∧ Set.BijOn f s' t'

If f maps s bijectively to t, and t' is a superset of t contained in the range of f, then f maps some superset of s bijectively to t'.

theorem Set.InjOn.exists_subset_injOn_subset_range_eq E0 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β} {r : Set α},
  Set.InjOn f r → r ⊆ s → ∃ u, r ⊆ u ∧ u ⊆ s ∧ f '' u = f '' s ∧ Set.InjOn f u

theorem Set.preimage_invFun_of_mem E1 #

∀ {α : Type u_1} {β : Type u_2} [n : Nonempty α] {f : α → β},
  Function.Injective f → ∀ {s : Set α}, Classical.choice n ∈ s → Function.invFun f ⁻¹' s = f '' s ∪ (Set.range f)ᶜ

theorem Set.preimage_invFun_of_notMem E1 #

∀ {α : Type u_1} {β : Type u_2} [n : Nonempty α] {f : α → β},
  Function.Injective f → ∀ {s : Set α}, Classical.choice n ∉ s → Function.invFun f ⁻¹' s = f '' s

theorem Set.BijOn.symm E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β} {g : β → α},
  Set.InvOn f g t s → Set.BijOn f s t → Set.BijOn g t s

theorem Set.bijOn_comm E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β} {g : β → α},
  Set.InvOn f g t s → (Set.BijOn f s t ↔ Set.BijOn g t s)

theorem Set.SurjOn.exists_subset_injOn_image_eq E0 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} {f : α → β},
  Set.SurjOn f s t → ∃ u ⊆ s, Set.InjOn f u ∧ f '' u = t

If t ⊆ f '' s, there exists a preimage of t under f contained in s such that f restricted to u is injective.

theorem Function.Injective.comp_injOn E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {f : α → β} {g : β → γ} {s : Set α},
  Function.Injective g → Set.InjOn f s → Set.InjOn (g ∘ f) s

theorem Function.LeftInverse.leftInvOn E1 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β} {g : β → α}, Function.LeftInverse f g → ∀ (s : Set β), Set.LeftInvOn f g s

theorem Function.RightInverse.rightInvOn E1 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β} {g : β → α}, Function.RightInverse f g → ∀ (s : Set α), Set.RightInvOn f g s

theorem Function.LeftInverse.rightInvOn_range E1 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β} {g : β → α}, Function.LeftInverse f g → Set.RightInvOn f g (Set.range g)

theorem Function.Semiconj.mapsTo_image E1 #

∀ {α : Type u_1} {β : Type u_2} {fa : α → α} {fb : β → β} {f : α → β} {s t : Set α},
  Function.Semiconj f fa fb → Set.MapsTo fa s t → Set.MapsTo fb (f '' s) (f '' t)

theorem Function.Semiconj.mapsTo_image_right E1 #

∀ {α : Type u_1} {β : Type u_2} {fa : α → α} {fb : β → β} {f : α → β} {s : Set α} {t : Set β},
  Function.Semiconj f fa fb → Set.MapsTo f s t → Set.MapsTo f (fa '' s) (fb '' t)

theorem Function.Semiconj.mapsTo_range E1 #

∀ {α : Type u_1} {β : Type u_2} {fa : α → α} {fb : β → β} {f : α → β},
  Function.Semiconj f fa fb → Set.MapsTo fb (Set.range f) (Set.range f)

theorem Function.Semiconj.surjOn_image E1 #

∀ {α : Type u_1} {β : Type u_2} {fa : α → α} {fb : β → β} {f : α → β} {s t : Set α},
  Function.Semiconj f fa fb → Set.SurjOn fa s t → Set.SurjOn fb (f '' s) (f '' t)

theorem Function.Semiconj.surjOn_range E1 #

∀ {α : Type u_1} {β : Type u_2} {fa : α → α} {fb : β → β} {f : α → β},
  Function.Semiconj f fa fb → Function.Surjective fa → Set.SurjOn fb (Set.range f) (Set.range f)

theorem Function.Semiconj.injOn_image E1 #

∀ {α : Type u_1} {β : Type u_2} {fa : α → α} {fb : β → β} {f : α → β} {s : Set α},
  Function.Semiconj f fa fb → Set.InjOn fa s → Set.InjOn f (fa '' s) → Set.InjOn fb (f '' s)

theorem Function.Semiconj.injOn_range E1 #

∀ {α : Type u_1} {β : Type u_2} {fa : α → α} {fb : β → β} {f : α → β},
  Function.Semiconj f fa fb → Function.Injective fa → Set.InjOn f (Set.range fa) → Set.InjOn fb (Set.range f)

theorem Function.Semiconj.bijOn_image E1 #

∀ {α : Type u_1} {β : Type u_2} {fa : α → α} {fb : β → β} {f : α → β} {s t : Set α},
  Function.Semiconj f fa fb → Set.BijOn fa s t → Set.InjOn f t → Set.BijOn fb (f '' s) (f '' t)

theorem Function.Semiconj.bijOn_range E1 #

∀ {α : Type u_1} {β : Type u_2} {fa : α → α} {fb : β → β} {f : α → β},
  Function.Semiconj f fa fb → Function.Bijective fa → Function.Injective f → Set.BijOn fb (Set.range f) (Set.range f)

theorem Function.Semiconj.mapsTo_preimage E1 #

∀ {α : Type u_1} {β : Type u_2} {fa : α → α} {fb : β → β} {f : α → β},
  Function.Semiconj f fa fb → ∀ {s t : Set β}, Set.MapsTo fb s t → Set.MapsTo fa (f ⁻¹' s) (f ⁻¹' t)

theorem Function.Semiconj.injOn_preimage E1 #

∀ {α : Type u_1} {β : Type u_2} {fa : α → α} {fb : β → β} {f : α → β},
  Function.Semiconj f fa fb → ∀ {s : Set β}, Set.InjOn fb s → Set.InjOn f (f ⁻¹' s) → Set.InjOn fa (f ⁻¹' s)

theorem Function.update_comp_eq_of_notMem_range' E1 #

∀ {α : Sort u_6} {β : Type u_7} {γ : β → Sort u_8} [inst : DecidableEq β] (g : (b : β) → γ b) {f : α → β} {i : β}
  (a : γ i), i ∉ Set.range f → (fun j ↦ Function.update g i a (f j)) = fun j ↦ g (f j)

theorem Function.update_comp_eq_of_notMem_range E1 #

∀ {α : Sort u_6} {β : Type u_7} {γ : Sort u_8} [inst : DecidableEq β] (g : β → γ) {f : α → β} {i : β} (a : γ),
  i ∉ Set.range f → Function.update g i a ∘ f = g ∘ f

Non-dependent version of Function.update_comp_eq_of_notMem_range'

theorem Function.insert_injOn E1 #

∀ {α : Type u_1} (s : Set α), Set.InjOn (fun a ↦ insert a s) sᶜ

theorem Function.apply_eq_of_range_eq_singleton E1 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β} {b : β}, Set.range f = {b} → ∀ (a : α), f a = b

theorem Set.MapsTo.extendDomain E1 #

∀ {α : Type u_1} {β : Type u_2} {p : β → Prop} [inst : DecidablePred p] {f : α ≃ Subtype p} {g : Equiv.Perm α}
  {s t : Set α}, Set.MapsTo (⇑g) s t → Set.MapsTo (⇑(g.extendDomain f)) (Subtype.val ∘ ⇑f '' s) (Subtype.val ∘ ⇑f '' t)

theorem Set.SurjOn.extendDomain E1 #

∀ {α : Type u_1} {β : Type u_2} {p : β → Prop} [inst : DecidablePred p] {f : α ≃ Subtype p} {g : Equiv.Perm α}
  {s t : Set α}, Set.SurjOn (⇑g) s t → Set.SurjOn (⇑(g.extendDomain f)) (Subtype.val ∘ ⇑f '' s) (Subtype.val ∘ ⇑f '' t)

theorem Set.BijOn.extendDomain E1 #

∀ {α : Type u_1} {β : Type u_2} {p : β → Prop} [inst : DecidablePred p] {f : α ≃ Subtype p} {g : Equiv.Perm α}
  {s t : Set α}, Set.BijOn (⇑g) s t → Set.BijOn (⇑(g.extendDomain f)) (Subtype.val ∘ ⇑f '' s) (Subtype.val ∘ ⇑f '' t)

theorem Set.LeftInvOn.extendDomain E1 #

∀ {α : Type u_1} {β : Type u_2} {p : β → Prop} [inst : DecidablePred p] {f : α ≃ Subtype p} {g₁ g₂ : Equiv.Perm α}
  {s : Set α},
  Set.LeftInvOn (⇑g₁) (⇑g₂) s → Set.LeftInvOn (⇑(g₁.extendDomain f)) (⇑(g₂.extendDomain f)) (Subtype.val ∘ ⇑f '' s)

theorem Set.RightInvOn.extendDomain E1 #

∀ {α : Type u_1} {β : Type u_2} {p : β → Prop} [inst : DecidablePred p] {f : α ≃ Subtype p} {g₁ g₂ : Equiv.Perm α}
  {t : Set α},
  Set.RightInvOn (⇑g₁) (⇑g₂) t → Set.RightInvOn (⇑(g₁.extendDomain f)) (⇑(g₂.extendDomain f)) (Subtype.val ∘ ⇑f '' t)

theorem Set.InvOn.extendDomain E1 #

∀ {α : Type u_1} {β : Type u_2} {p : β → Prop} [inst : DecidablePred p] {f : α ≃ Subtype p} {g₁ g₂ : Equiv.Perm α}
  {s t : Set α},
  Set.InvOn (⇑g₁) (⇑g₂) s t →
    Set.InvOn (⇑(g₁.extendDomain f)) (⇑(g₂.extendDomain f)) (Subtype.val ∘ ⇑f '' s) (Subtype.val ∘ ⇑f '' t)

theorem Set.InjOn.left_prodMk E1 #

∀ {α : Type u_6} {β₁ : Type u_7} {β₂ : Type u_8} {s : Set α} {f₁ : α → β₁} {f₂ : α → β₂},
  Set.InjOn f₁ s → Set.InjOn (fun x ↦ (f₁ x, f₂ x)) s

theorem Set.InjOn.right_prodMk E1 #

∀ {α : Type u_6} {β₁ : Type u_7} {β₂ : Type u_8} {s : Set α} {f₁ : α → β₁} {f₂ : α → β₂},
  Set.InjOn f₂ s → Set.InjOn (fun x ↦ (f₁ x, f₂ x)) s

theorem Set.prod_surjOn_fst E1 #

∀ {β₁ : Type u_7} {β₂ : Type u_8} {t₁ : Set β₁} {t₂ : Set β₂}, t₂.Nonempty → Set.SurjOn Prod.fst (t₁ ×ˢ t₂) t₁

theorem Set.prod_surjOn_snd E1 #

∀ {β₁ : Type u_7} {β₂ : Type u_8} {t₁ : Set β₁} {t₂ : Set β₂}, t₁.Nonempty → Set.SurjOn Prod.snd (t₁ ×ˢ t₂) t₂

theorem Set.prod_surjOn_fst_iff E0 #

∀ {β₁ : Type u_7} {β₂ : Type u_8} {t₁ : Set β₁} {t₂ : Set β₂}, Set.SurjOn Prod.fst (t₁ ×ˢ t₂) t₁ ↔ t₁ = ∅ ∨ t₂.Nonempty

theorem Set.prod_surjOn_snd_iff E0 #

∀ {β₁ : Type u_7} {β₂ : Type u_8} {t₁ : Set β₁} {t₂ : Set β₂}, Set.SurjOn Prod.snd (t₁ ×ˢ t₂) t₂ ↔ t₁.Nonempty ∨ t₂ = ∅

theorem Set.MapsTo.prodMk E1 #

∀ {α : Type u_6} {β₁ : Type u_7} {β₂ : Type u_8} {s : Set α} {t₁ : Set β₁} {t₂ : Set β₂} {f₁ : α → β₁} {f₂ : α → β₂},
  Set.MapsTo f₁ s t₁ → Set.MapsTo f₂ s t₂ → Set.MapsTo (fun x ↦ (f₁ x, f₂ x)) s (t₁ ×ˢ t₂)

theorem Set.LeftInvOn.left_prodMk E1 #

∀ {α : Type u_6} {β₁ : Type u_7} {β₂ : Type u_8} {s : Set α} {f₁ : α → β₁} {f₂ : α → β₂} {g₁ : β₁ → α},
  Set.LeftInvOn g₁ f₁ s → Set.LeftInvOn (fun x ↦ g₁ x.1) (fun x ↦ (f₁ x, f₂ x)) s

theorem Set.LeftInvOn.right_prodMk E1 #

∀ {α : Type u_6} {β₁ : Type u_7} {β₂ : Type u_8} {s : Set α} {f₁ : α → β₁} {f₂ : α → β₂} {g₂ : β₂ → α},
  Set.LeftInvOn g₂ f₂ s → Set.LeftInvOn (fun x ↦ g₂ x.2) (fun x ↦ (f₁ x, f₂ x)) s

theorem Set.InjOn.prodMap E1 #

∀ {α₁ : Type u_6} {α₂ : Type u_7} {β₁ : Type u_8} {β₂ : Type u_9} {s₁ : Set α₁} {s₂ : Set α₂} {f₁ : α₁ → β₁}
  {f₂ : α₂ → β₂}, Set.InjOn f₁ s₁ → Set.InjOn f₂ s₂ → Set.InjOn (fun x ↦ (f₁ x.1, f₂ x.2)) (s₁ ×ˢ s₂)

theorem Set.SurjOn.prodMap E1 #

∀ {α₁ : Type u_6} {α₂ : Type u_7} {β₁ : Type u_8} {β₂ : Type u_9} {s₁ : Set α₁} {s₂ : Set α₂} {t₁ : Set β₁}
  {t₂ : Set β₂} {f₁ : α₁ → β₁} {f₂ : α₂ → β₂},
  Set.SurjOn f₁ s₁ t₁ → Set.SurjOn f₂ s₂ t₂ → Set.SurjOn (fun x ↦ (f₁ x.1, f₂ x.2)) (s₁ ×ˢ s₂) (t₁ ×ˢ t₂)

theorem Set.MapsTo.prodMap E1 #

∀ {α₁ : Type u_6} {α₂ : Type u_7} {β₁ : Type u_8} {β₂ : Type u_9} {s₁ : Set α₁} {s₂ : Set α₂} {t₁ : Set β₁}
  {t₂ : Set β₂} {f₁ : α₁ → β₁} {f₂ : α₂ → β₂},
  Set.MapsTo f₁ s₁ t₁ → Set.MapsTo f₂ s₂ t₂ → Set.MapsTo (fun x ↦ (f₁ x.1, f₂ x.2)) (s₁ ×ˢ s₂) (t₁ ×ˢ t₂)

theorem Set.BijOn.prodMap E1 #

∀ {α₁ : Type u_6} {α₂ : Type u_7} {β₁ : Type u_8} {β₂ : Type u_9} {s₁ : Set α₁} {s₂ : Set α₂} {t₁ : Set β₁}
  {t₂ : Set β₂} {f₁ : α₁ → β₁} {f₂ : α₂ → β₂},
  Set.BijOn f₁ s₁ t₁ → Set.BijOn f₂ s₂ t₂ → Set.BijOn (fun x ↦ (f₁ x.1, f₂ x.2)) (s₁ ×ˢ s₂) (t₁ ×ˢ t₂)

theorem Set.LeftInvOn.prodMap E1 #

∀ {α₁ : Type u_6} {α₂ : Type u_7} {β₁ : Type u_8} {β₂ : Type u_9} {s₁ : Set α₁} {s₂ : Set α₂} {f₁ : α₁ → β₁}
  {f₂ : α₂ → β₂} {g₁ : β₁ → α₁} {g₂ : β₂ → α₂},
  Set.LeftInvOn g₁ f₁ s₁ →
    Set.LeftInvOn g₂ f₂ s₂ → Set.LeftInvOn (fun x ↦ (g₁ x.1, g₂ x.2)) (fun x ↦ (f₁ x.1, f₂ x.2)) (s₁ ×ˢ s₂)

theorem Set.RightInvOn.prodMap E1 #

∀ {α₁ : Type u_6} {α₂ : Type u_7} {β₁ : Type u_8} {β₂ : Type u_9} {t₁ : Set β₁} {t₂ : Set β₂} {f₁ : α₁ → β₁}
  {f₂ : α₂ → β₂} {g₁ : β₁ → α₁} {g₂ : β₂ → α₂},
  Set.RightInvOn g₁ f₁ t₁ →
    Set.RightInvOn g₂ f₂ t₂ → Set.RightInvOn (fun x ↦ (g₁ x.1, g₂ x.2)) (fun x ↦ (f₁ x.1, f₂ x.2)) (t₁ ×ˢ t₂)

theorem Set.InvOn.prodMap E1 #

∀ {α₁ : Type u_6} {α₂ : Type u_7} {β₁ : Type u_8} {β₂ : Type u_9} {s₁ : Set α₁} {s₂ : Set α₂} {t₁ : Set β₁}
  {t₂ : Set β₂} {f₁ : α₁ → β₁} {f₂ : α₂ → β₂} {g₁ : β₁ → α₁} {g₂ : β₂ → α₂},
  Set.InvOn g₁ f₁ s₁ t₁ →
    Set.InvOn g₂ f₂ s₂ t₂ → Set.InvOn (fun x ↦ (g₁ x.1, g₂ x.2)) (fun x ↦ (f₁ x.1, f₂ x.2)) (s₁ ×ˢ s₂) (t₁ ×ˢ t₂)

theorem Equiv.bijOn' E1 #

∀ {α : Type u_1} {β : Type u_2} (e : α ≃ β) {s : Set α} {t : Set β},
  Set.MapsTo (⇑e) s t → Set.MapsTo (⇑e.symm) t s → Set.BijOn (⇑e) s t

theorem Equiv.bijOn E1 #

∀ {α : Type u_1} {β : Type u_2} (e : α ≃ β) {s : Set α} {t : Set β}, (∀ (a : α), e a ∈ t ↔ a ∈ s) → Set.BijOn (⇑e) s t

theorem Equiv.invOn E1 #

∀ {α : Type u_1} {β : Type u_2} (e : α ≃ β) {s : Set α} {t : Set β}, Set.InvOn (⇑e) (⇑e.symm) t s

theorem Equiv.bijOn_image E1 #

∀ {α : Type u_1} {β : Type u_2} (e : α ≃ β) {s : Set α}, Set.BijOn (⇑e) s (⇑e '' s)

theorem Equiv.bijOn_symm_image E1 #

∀ {α : Type u_1} {β : Type u_2} (e : α ≃ β) {s : Set α}, Set.BijOn (⇑e.symm) (⇑e '' s) s

theorem Equiv.bijOn_symm E0 #

∀ {α : Type u_1} {β : Type u_2} {e : α ≃ β} {s : Set α} {t : Set β}, Set.BijOn (⇑e.symm) t s ↔ Set.BijOn (⇑e) s t

theorem Set.BijOn.equiv_symm E1 #

∀ {α : Type u_1} {β : Type u_2} {e : α ≃ β} {s : Set α} {t : Set β}, Set.BijOn (⇑e) s t → Set.BijOn (⇑e.symm) t s

Alias of the reverse direction of Equiv.bijOn_symm.

theorem Set.BijOn.of_equiv_symm E1 #

∀ {α : Type u_1} {β : Type u_2} {e : α ≃ β} {s : Set α} {t : Set β}, Set.BijOn (⇑e.symm) t s → Set.BijOn (⇑e) s t

Alias of the forward direction of Equiv.bijOn_symm.

theorem Equiv.bijOn_swap E1 #

∀ {α : Type u_1} {s : Set α} [inst : DecidableEq α] {a b : α}, a ∈ s → b ∈ s → Set.BijOn (⇑(Equiv.swap a b)) s s

Deprecated aliases

NameNew nameSince
Set.InjOn.image_diffSet.InjOn.image_sdiff2026-06-03
Set.InjOn.image_diff_subsetSet.InjOn.image_sdiff_subset2026-06-03
Set.image_diff_of_injOnSet.image_sdiff_of_injOn2026-06-03
Set.injOn_subtype_valSet.injOn_subtypeVal2026-11-10