/-
Copyright (c) 2026 Monica Omar. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Monica Omar
-/
module
public import Mathlib.Analysis.RCLike.Basic
public import Mathlib.Topology.ContinuousMap.Compact
public import Mathlib.Topology.ContinuousMap.Ordered
import Mathlib.Topology.ContinuousMap.Units
/-! # Mapping `C(X, ℝ)` to `C(X, )` and back
This file contains the definitions for `ContinuousMap.realToRCLike` and
`ContinuousMap.rclikeToReal`, which map `C(X, ℝ)` to `C(X, )` and back for any `RCLike `. -/
@[expose] public section
namespace ContinuousMap
variable {X : Type*} ( : Type*) [TopologicalSpace X] [RCLike ]
/-- Lifting `C(X, ℝ)` to `C(X, )` using `RCLike.ofReal`. -/
@[simps] def realToRCLike (f : C(X, ℝ)) : C(X, ) where toFun x := RCLike.ofReal (f x)
@[simp, grind .] lemma isSelfAdjoint_realToRCLike {f : C(X, ℝ)} :
IsSelfAdjoint (f.realToRCLike ) := by ext; simp
@[simp] lemma spectrum_realToRCLike (f : C(X, ℝ)) :
spectrum ℝ (f.realToRCLike ) = spectrum ℝ f := by
ext; simp [spectrum.mem_iff, isUnit_iff_forall_isUnit, RCLike.ext_iff (K := ), Algebra.smul_def]
open ComplexOrder
set_option backward.isDefEq.respectTransparency.types false in
variable (X) in
/-- `ContinuousMap.realToRCLike` as an order embedding. -/
@[simps] def realToRCLikeOrderEmbedding : C(X, ℝ) ↪o C(X, ) where
toFun := realToRCLike
inj' f g hfg := by ext x; simpa using congr($hfg x)
map_rel_iff' := by simp [le_def]
variable (X) in
lemma realToRCLike_monotone : Monotone (realToRCLike (X := X) ) :=
realToRCLikeOrderEmbedding X |>.monotone
variable (X) in
lemma realToRCLike_strictMono : StrictMono (realToRCLike (X := X) ) :=
realToRCLikeOrderEmbedding X |>.strictMono
variable (X) in
@[simp] lemma realToRCLike_injective : (realToRCLike (X := X) ).Injective :=
realToRCLikeOrderEmbedding X |>.injective
@[simp] lemma realToRCLike_inj {f g : C(X, ℝ)} :
realToRCLike f = realToRCLike g ↔ f = g :=
realToRCLikeOrderEmbedding X |>.eq_iff_eq
@[simp] lemma realToRCLike_le_realToRCLike_iff {f g : C(X, ℝ)} :
realToRCLike f ≤ realToRCLike g ↔ f ≤ g :=
realToRCLikeOrderEmbedding X |>.le_iff_le
@[simp] lemma realToRCLike_lt_realToRCLike_iff {f g : C(X, ℝ)} :
realToRCLike f < realToRCLike g ↔ f < g :=
realToRCLikeOrderEmbedding X |>.lt_iff_lt
variable (X) in
@[simp] theorem isometry_realToRCLike [CompactSpace X] : Isometry (realToRCLike (X := X)) :=
.of_dist_eq fun f g ↦ by simp [dist_eq_norm, norm_eq_iSup_norm, ← map_sub]
variable (X) in
@[simp, fun_prop] lemma continuous_realToRCLike : Continuous (realToRCLike (X := X)) :=
continuous_postcomp { toFun x := RCLike.ofReal x }
variable (X) in
/-- `ContinuousMap.realToRCLike` as a ⋆-algebra map. -/
noncomputable def realToRCLikeStarAlgHom : C(X, ℝ) →⋆ₐ[ℝ] C(X, ) :=
compStarAlgHom X (RCLike.ofRealStarAlgHom ) RCLike.continuous_ofReal
@[simp] lemma realToRCLikeStarAlgHom_apply (f : C(X, ℝ)) :
realToRCLikeStarAlgHom X f = f.realToRCLike := rfl
lemma realToRCLike_star (f : C(X, ℝ)) : (star f).realToRCLike = star (f.realToRCLike ) :=
map_star (realToRCLikeStarAlgHom X ) f
@[simp] lemma realToRCLike_mul (f g : C(X, ℝ)) :
(f * g).realToRCLike = f.realToRCLike * g.realToRCLike :=
map_mul (realToRCLikeStarAlgHom X ) f g
variable {} in
/-- Mapping `C(X, )` to `C(X, ℝ)` using `RCLike.re`. -/
@[simps] def rclikeToReal (f : C(X, )) : C(X, ℝ) where toFun x := RCLike.re (f x)
variable (X) in
lemma rclikeToReal_monotone : Monotone (rclikeToReal (X := X) ( := )) := by
intro a b; simp_all [le_def, RCLike.le_iff_re_im (K := )]
variable (X) in
@[simp, fun_prop] lemma continuous_rclikeToReal : Continuous (rclikeToReal (X := X) ( := )) :=
continuous_postcomp { toFun x := RCLike.re x }
@[simp] theorem rclikeToReal_realToRCLike (f : C(X, ℝ)) :
(f.realToRCLike ).rclikeToReal = f := by ext; simp
variable {} in
@[aesop safe apply, grind =]
theorem IsSelfAdjoint.realToRCLike_rclikeToReal {f : C(X, )} (hf : IsSelfAdjoint f) :
f.rclikeToReal.realToRCLike = f := by
ext
simp only [realToRCLike_apply, rclikeToReal_apply, ← RCLike.conj_eq_iff_re]
conv_rhs => rw [← hf.star_eq]
simp
variable (X) in
open ContinuousMap in
theorem range_realToRCLike_eq_isSelfAdjoint :
.range (realToRCLike ) = {f : C(X, ) | IsSelfAdjoint f} :=
le_antisymm (fun _ ⟨_, h⟩ ↦ by simp [← h]) fun f hf ↦
⟨f.rclikeToReal, hf.realToRCLike_rclikeToReal⟩
end ContinuousMap
¤ Dauer der Verarbeitung: 0.4 Sekunden
¤
*© Formatika GbR, Deutschland