Skip to content

Commit 16f84c6

Browse files
Define empty continuous map in Basic.lean
Add definition for the unique continuous map from an empty type.
1 parent 3ff3b89 commit 16f84c6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Mathlib/Topology/ContinuousMap/Basic.lean

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,12 @@ def _root_.Homeomorph.continuousMapCongr {X₁ X₂ Y₁ Y₂ : Type*}
170170
lemma mk_apply {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y] (f : X → Y)
171171
(hf : Continuous f) (x : X) : { toFun := f, continuous_toFun := hf : C(X, Y) } x = f x:= by rfl
172172

173+
/-- The unique map from an empty type, as a bundled continuous map. -/
174+
@[simps]
175+
def empty»} X
176+
[TopologicalSpace «»] [h₀ : IsEmpty «»] [TopologicalSpace X] : C(«», X) where
177+
toFun := h₀.elim
178+
173179
section Prod
174180

175181
variable {α₁ α₂ β₁ β₂ : Type*} [TopologicalSpace α₁] [TopologicalSpace α₂] [TopologicalSpace β₁]

0 commit comments

Comments
 (0)