Skip to content

Commit 3e58cbe

Browse files
committed
feat(Topology/Sets): injectivity of Compacts.map (#31381)
1 parent a35fe14 commit 3e58cbe

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Mathlib/Topology/Sets/Compacts.lean

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,21 @@ theorem map_comp (f : β → γ) (g : α → β) (hf : Continuous f) (hg : Conti
148148
K.map (f ∘ g) (hf.comp hg) = (K.map g hg).map f hf :=
149149
Compacts.ext <| Set.image_comp _ _ _
150150

151+
theorem map_injective {f : α → β} (hf : Continuous f) (hf' : Function.Injective f) :
152+
Function.Injective (Compacts.map f hf) :=
153+
.of_comp (f := SetLike.coe) <| hf'.image_injective.comp SetLike.coe_injective
154+
151155
@[simp]
152156
theorem map_singleton {f : α → β} (hf : Continuous f) (x : α) : Compacts.map f hf {x} = {f x} :=
153157
Compacts.ext Set.image_singleton
154158

159+
@[simp]
160+
theorem map_injective_iff {f : α → β} (hf : Continuous f) :
161+
Function.Injective (Compacts.map f hf) ↔ Function.Injective f := by
162+
refine ⟨fun h => .of_comp (f := ({·} : β → Compacts β)) ?_, map_injective hf⟩
163+
simp_rw [Function.comp_def, ← map_singleton hf]
164+
exact h.comp singleton_injective
165+
155166
/-- A homeomorphism induces an equivalence on compact sets, by taking the image. -/
156167
@[simps]
157168
protected def equiv (f : α ≃ₜ β) : Compacts α ≃ Compacts β where

0 commit comments

Comments
 (0)