/-
Copyright (c) 2022 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
module
public import Mathlib.Algebra.Star.Basic
public import Mathlib.Algebra.Star.Pi
public import Mathlib.Topology.Algebra.Constructions
set_option doc.verso true
set_option doc.verso.suggestions false
/-!
# Continuity of `star`
This file defines the `ContinuousStar` typeclass, along with instances on `Pi`, `Prod`,
`MulOpposite`, and `Units`.
-/
@[expose] public section
open Filter
open scoped Topology
/-- Basic hypothesis to talk about a topological space with a continuous `star` operator. -/
class ContinuousStar (R : Type*) [TopologicalSpace R] [Star R] : Prop where
/-- The `star` operator is continuous. -/
continuous_star : Continuous (star : R → R)
export ContinuousStar (continuous_star)
section Continuity
variable {α R : Type*} [TopologicalSpace R]
section Star
variable [Star R] [ContinuousStar R]
theorem continuousOn_star {s : Set R} : ContinuousOn star s :=
continuous_star.continuousOn
theorem continuousWithinAt_star {s : Set R} {x : R} : ContinuousWithinAt star s x :=
continuous_star.continuousWithinAt
theorem continuousAt_star {x : R} : ContinuousAt star x :=
continuous_star.continuousAt
theorem tendsto_star (a : R) : Tendsto star ( a) ( (star a)) :=
continuousAt_star
theorem Filter.Tendsto.star {f : α → R} {l : Filter α} {y : R} (h : Tendsto f l ( y)) :
Tendsto (fun x => star (f x)) l ( (star y)) :=
(continuous_star.tendsto y).comp h
variable [TopologicalSpace α] {f : α → R} {s : Set α} {x : α}
@[to_fun (attr := fun_prop)]
theorem Continuous.star (hf : Continuous f) : Continuous (star f) :=
continuous_star.comp hf
@[to_fun (attr := fun_prop)]
theorem ContinuousAt.star (hf : ContinuousAt f x) : ContinuousAt (star f) x :=
continuousAt_star.comp hf
@[to_fun (attr := fun_prop)]
theorem ContinuousOn.star (hf : ContinuousOn f s) : ContinuousOn (star f) s :=
continuous_star.comp_continuousOn hf
@[to_fun (attr := fun_prop)]
theorem ContinuousWithinAt.star (hf : ContinuousWithinAt f s x) :
ContinuousWithinAt (star f) s x :=
Filter.Tendsto.star hf
/-- The star operation bundled as a continuous map. -/
@[simps]
def starContinuousMap : C(R, R) :=
⟨star, continuous_star⟩
end Star
section InvolutiveStar
variable [InvolutiveStar R] [ContinuousStar R]
variable [TopologicalSpace α] {f : α → R} {s : Set α} {x : α}
@[to_fun (attr := simp) continuous_fun_star_iff]
theorem continuous_star_iff : Continuous (star f) ↔ Continuous f :=
⟨fun h ↦ star_star f ▸ h.star, fun h ↦ h.star⟩
@[to_fun (attr := simp) continuousAt_fun_star_iff]
theorem continuousAt_star_iff : ContinuousAt (star f) x ↔ ContinuousAt f x :=
⟨fun h ↦ star_star f ▸ h.star, fun h ↦ h.star⟩
@[to_fun (attr := simp) continuousOn_fun_star_iff]
theorem continuousOn_star_iff : ContinuousOn (star f) s ↔ ContinuousOn f s :=
⟨fun h ↦ star_star f ▸ h.star, fun h ↦ h.star⟩
@[to_fun (attr := simp) continuousWithinAt_fun_star_iff]
theorem continuousWithinAt_star_iff :
ContinuousWithinAt (star f) s x ↔ ContinuousWithinAt f s x :=
⟨fun h ↦ star_star f ▸ h.star, fun h ↦ h.star⟩
end InvolutiveStar
end Continuity
section Instances
variable {R S ι : Type*}
instance [Star R] [Star S] [TopologicalSpace R] [TopologicalSpace S] [ContinuousStar R]
[ContinuousStar S] : ContinuousStar (R × S) :=
⟨(continuous_star.comp continuous_fst).prodMk (continuous_star.comp continuous_snd)⟩
instance {C : ι → Type*} [∀ i, TopologicalSpace (C i)] [∀ i, Star (C i)]
[∀ i, ContinuousStar (C i)] : ContinuousStar (∀ i, C i) where
continuous_star := continuous_pi fun i => Continuous.star (continuous_apply i)
instance [Star R] [TopologicalSpace R] [ContinuousStar R] : ContinuousStar Rᵐᵒᵖ :=
⟨MulOpposite.continuous_op.comp MulOpposite.continuous_unop.star⟩
instance [Monoid R] [StarMul R] [TopologicalSpace R] [ContinuousStar R] :
ContinuousStar Rˣ :=
⟨continuous_induced_rng.2 Units.continuous_embedProduct.star⟩
end Instances
¤ Dauer der Verarbeitung: 0.2 Sekunden
¤
*© Formatika GbR, Deutschland