Skip to content

Commit a3e45dc

Browse files
ContinuousMap.restrict lemmas
1 parent 247c0d3 commit a3e45dc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Mathlib/Topology/ContinuousMap/Basic.lean

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,9 @@ variable (s : Set α)
286286
def restrict (f : C(α, β)) : C(s, β) where
287287
toFun := f ∘ ((↑) : s → α)
288288

289+
lemma restrict_eq {f : C(α, β)} : f.restrict s = f.comp .subtypeVal := by
290+
ext x; simp [restrict]
291+
289292
@[simp]
290293
theorem coe_restrict (f : C(α, β)) : ⇑(f.restrict s) = s.restrict f :=
291294
rfl
@@ -310,6 +313,11 @@ def restrictPreimage (f : C(α, β)) (s : Set β) : C(f ⁻¹' s, s) :=
310313
⟨s.restrictPreimage f, continuous_iff_continuousAt.mpr fun _ ↦
311314
(map_continuousAt f _).restrictPreimage⟩
312315

316+
lemma val_comp_restrictPreimage {α β} [TopologicalSpace α] [TopologicalSpace β]
317+
{s : Set β} {f : C(α, β)} :
318+
ContinuousMap.subtypeVal.comp (f.restrictPreimage s) = f.comp .subtypeVal := by
319+
ext x; simp [ContinuousMap.restrictPreimage]
320+
313321
/-- Given a function `f : α → β` s.t. `MapsTo f s t`, if `f` is continuous on `s` then `f` can
314322
be lifted into a continuous map from `s` to `t`. -/
315323
@[simps -fullyApplied]

0 commit comments

Comments
 (0)