import OAI.Geometry.ComplexBundle.Coordinates import Mathlib.Analysis.InnerProductSpace.Adjoint namespace OAI noncomputable section /-! Continuous bundle maps, adjoints, and normalized Hermitian scaling. -/ section open Bundle Topology namespace Kaplansky variable {๐•œ Y V X : Type*} [NontriviallyNormedField ๐•œ] [TopologicalSpace Y] [TopologicalSpace X] variable [NormedAddCommGroup V] [NormedSpace ๐•œ V] variable {E : Y โ†’ Type*} [โˆ€ y, AddCommGroup (E y)] [โˆ€ y, Module ๐•œ (E y)] variable [โˆ€ y, TopologicalSpace (E y)] [TopologicalSpace (TotalSpace V E)] variable [FiberBundle V E] [VectorBundle ๐•œ V E] include ๐•œ in theorem continuousOn_bundle_sum_over {ฮน : Type*} (b : X โ†’ Y) {s : Set X} (hb : ContinuousOn b s) (u : Finset ฮน) (v : ฮน โ†’ โˆ€ x, E (b x)) (hv : โˆ€ i โˆˆ u, ContinuousOn (fun x => TotalSpace.mk' V (b x) (v i x)) s) : ContinuousOn (fun x => TotalSpace.mk' V (b x) (โˆ‘ i โˆˆ u, v i x)) s := by intro x hx rw [FiberBundle.continuousWithinAt_totalSpace] refine โŸจhb x hx, ?_โŸฉ have hc : ContinuousWithinAt (fun z => โˆ‘ i โˆˆ u, ((trivializationAt V E (b x)) โŸจb z,v i zโŸฉ).2) s x := tendsto_finsetSum u (fun i hi => ((FiberBundle.continuousWithinAt_totalSpace V _).mp (hv i hi x hx)).2) apply hc.congr_of_eventuallyEq ยท have hn := (trivializationAt V E (b x)).open_baseSet.mem_nhds (mem_baseSet_trivializationAt V E (b x)) filter_upwards [(hb x hx) hn] with z hz exact map_sum (((trivializationAt V E (b x)).linear ๐•œ hz).mk' _) (fun i => v i z) u ยท exact map_sum (((trivializationAt V E (b x)).linear ๐•œ (mem_baseSet_trivializationAt V E (b x))).mk' _) (fun i => v i x) u theorem continuousOn_bundle_smul_over (b : X โ†’ Y) {s : Set X} (hb : ContinuousOn b s) (f : X โ†’ ๐•œ) (v : โˆ€ x, E (b x)) (hf : ContinuousOn f s) (hv : ContinuousOn (fun x => TotalSpace.mk' V (b x) (v x)) s) : ContinuousOn (fun x => TotalSpace.mk' V (b x) (f x โ€ข v x)) s := by intro x hx rw [FiberBundle.continuousWithinAt_totalSpace] refine โŸจhb x hx, ?_โŸฉ have hc := (hf x hx).smul (((FiberBundle.continuousWithinAt_totalSpace V _).mp (hv x hx)).2) apply hc.congr_of_eventuallyEq ยท have hn := (trivializationAt V E (b x)).open_baseSet.mem_nhds (mem_baseSet_trivializationAt V E (b x)) filter_upwards [(hb x hx) hn] with z hz exact ((trivializationAt V E (b x)).linear ๐•œ hz).map_smul (f z) (v z) ยท exact ((trivializationAt V E (b x)).linear ๐•œ (mem_baseSet_trivializationAt V E (b x))).map_smul (f x) (v x) end Kaplansky end section open scoped BigOperators ComplexOrder MatrixOrder Matrix.Norms.L2Operator InnerProductSpace open Matrix namespace Kaplansky variable {n d r : โ„•} {E F : Type*} variable [NormedAddCommGroup E] [InnerProductSpace โ„‚ E] [FiniteDimensional โ„‚ E] variable [NormedAddCommGroup F] [InnerProductSpace โ„‚ F] [FiniteDimensional โ„‚ F] omit [FiniteDimensional โ„‚ E] in theorem inner_toMatrix (b : OrthonormalBasis (Fin d) โ„‚ E) (A : E โ†’โ‚—[โ„‚] E) (v : E) : inner โ„‚ v (A v) = star (b.toBasis.repr v) โฌแตฅ (LinearMap.toMatrix b.toBasis b.toBasis A) *แตฅ b.toBasis.repr v := by rw [LinearMap.toMatrix_mulVec_repr] calc inner โ„‚ v (A v) = โˆ‘ i, star (b.repr v i) * b.repr (A v) i := by simpa only [PiLp.inner_apply, RCLike.inner_apply, starRingEnd_apply, mul_comm] using (b.repr.inner_map_map v (A v)).symm _ = _ := by simp only [dotProduct, Pi.star_apply, OrthonormalBasis.coe_toBasis_repr_apply] /-- Transfer the normalized matrix relations to actual adjoints on the original finite-dimensional Hermitian fibers. -/ theorem intrinsic_relations_of_matrix (b : OrthonormalBasis (Fin d) โ„‚ E) (c : OrthonormalBasis (Fin r) โ„‚ F) (X : Fin n โ†’ E โ†’โ‚—[โ„‚] F) (hcol : (โˆ‘ i, (LinearMap.toMatrix b.toBasis c.toBasis (X i))แดด * LinearMap.toMatrix b.toBasis c.toBasis (X i)) = 1) (hrow : ((2/3 : โ„‚) โ€ข (1 : Matrix (Fin r) (Fin r) โ„‚) - โˆ‘ i, LinearMap.toMatrix b.toBasis c.toBasis (X i) * (LinearMap.toMatrix b.toBasis c.toBasis (X i))แดด).PosSemidef) : (โˆ‘ i, (LinearMap.adjoint (X i)).comp (X i)) = LinearMap.id โˆง โˆ€ v : F, 0 โ‰ค inner โ„‚ v (((2/3 : โ„‚) โ€ข (LinearMap.id : F โ†’โ‚—[โ„‚] F) - โˆ‘ i, (X i).comp (LinearMap.adjoint (X i))) v) := by constructor ยท apply (LinearMap.toMatrix b.toBasis b.toBasis).injective simpa only [map_sum, LinearMap.toMatrix_comp b.toBasis c.toBasis b.toBasis, LinearMap.toMatrix_adjoint, LinearMap.toMatrix_id] using hcol ยท intro v rw [inner_toMatrix c] have he : LinearMap.toMatrix c.toBasis c.toBasis ((2/3 : โ„‚) โ€ข (LinearMap.id : F โ†’โ‚—[โ„‚] F) - โˆ‘ i, (X i).comp (LinearMap.adjoint (X i))) = (2/3 : โ„‚) โ€ข (1 : Matrix (Fin r) (Fin r) โ„‚) - โˆ‘ i, LinearMap.toMatrix b.toBasis c.toBasis (X i) * (LinearMap.toMatrix b.toBasis c.toBasis (X i))แดด := by simp only [map_sub, map_smul, map_sum, LinearMap.toMatrix_id, LinearMap.toMatrix_comp c.toBasis b.toBasis c.toBasis, LinearMap.toMatrix_adjoint] rw [he] exact hrow.dotProduct_mulVec_nonneg _ end Kaplansky end section open scoped BigOperators ComplexOrder MatrixOrder Matrix.Norms.L2Operator open Matrix Bundle Topology namespace Kaplansky variable {n d r : โ„•} {Y : Type*} [TopologicalSpace Y] variable {E F : Y โ†’ Type*} variable [โˆ€ y, NormedAddCommGroup (E y)] [โˆ€ y, InnerProductSpace โ„‚ (E y)] variable [โˆ€ y, NormedAddCommGroup (F y)] [โˆ€ y, InnerProductSpace โ„‚ (F y)] variable [TopologicalSpace (TotalSpace (Fin d โ†’ โ„‚) E)] variable [TopologicalSpace (TotalSpace (Fin r โ†’ โ„‚) F)] variable [FiberBundle (Fin d โ†’ โ„‚) E] [VectorBundle โ„‚ (Fin d โ†’ โ„‚) E] variable [FiberBundle (Fin r โ†’ โ„‚) F] [VectorBundle โ„‚ (Fin r โ†’ โ„‚) F] theorem bundleMap_apply_eq (T : โˆ€ y, Fin n โ†’ E y โ†’โ‚—[โ„‚] F y) (a y : Y) (hy : y โˆˆ hermitianChartSet (d := d) (r := r) (E := E) (F := F) a) (i : Fin n) (v : E y) : T y i v = โˆ‘ k, (โˆ‘ j, bundleMapCoordinates (d := d) (r := r) T a y i k j * inner โ„‚ (bundleOrthonormalFrame (trivializationAt (Fin d โ†’ โ„‚) E a) y j) v) โ€ข bundleOrthonormalFrame (trivializationAt (Fin r โ†’ โ„‚) F a) y k := by simp only [bundleMapCoordinates_eq T a y hy i] let b := bundleOrthonormalBasis (trivializationAt (Fin d โ†’ โ„‚) E a) y hy.1 let c := bundleOrthonormalBasis (trivializationAt (Fin r โ†’ โ„‚) F a) y hy.2 have he := congrArg (fun L : E y โ†’โ‚—[โ„‚] F y => L v) (Matrix.toLin_toMatrix b.toBasis c.toBasis (T y i)) rw [Matrix.toLin_apply] at he symm simpa only [Matrix.mulVec, dotProduct, OrthonormalBasis.coe_toBasis_repr_apply, OrthonormalBasis.repr_apply_apply, OrthonormalBasis.coe_toBasis, b, c, bundleOrthonormalBasis_apply] using he /-- Continuous coordinate matrices act continuously on local sections of the original bundles. -/ theorem continuousOn_bundleMap_apply_section (hE : ContinuousHermitianMetric (d := d) (E := E)) (hF : ContinuousHermitianMetric (d := r) (E := F)) (T : โˆ€ y, Fin n โ†’ E y โ†’โ‚—[โ„‚] F y) (a : Y) {s : Set Y} (hsub : s โІ hermitianChartSet (d := d) (r := r) (E := E) (F := F) a) (hT : ContinuousOn (bundleMapCoordinates (d := d) (r := r) T a) s) (v : โˆ€ y, E y) (hv : ContinuousOn (fun y => TotalSpace.mk' (Fin d โ†’ โ„‚) y (v y)) s) (i : Fin n) : ContinuousOn (fun y => TotalSpace.mk' (Fin r โ†’ โ„‚) y (T y i (v y))) s := by have hc : ContinuousOn (fun y => TotalSpace.mk' (Fin r โ†’ โ„‚) y (โˆ‘ k, (โˆ‘ j, bundleMapCoordinates (d := d) (r := r) T a y i k j * inner โ„‚ (bundleOrthonormalFrame (trivializationAt (Fin d โ†’ โ„‚) E a) y j) (v y)) โ€ข bundleOrthonormalFrame (trivializationAt (Fin r โ†’ โ„‚) F a) y k)) s := by apply continuousOn_bundle_sum (๐•œ := โ„‚) intro k _ apply continuousOn_bundle_smul ยท apply continuousOn_finsetSum intro j _ have hm := (continuous_apply j).comp_continuousOn ((continuous_apply k).comp_continuousOn ((continuous_apply i).comp_continuousOn hT)) exact hm.mul (hE s _ v ((continuousOn_bundleOrthonormalFrame hE _ j).mono (fun _ hy => (hsub hy).1)) hv) ยท exact (continuousOn_bundleOrthonormalFrame hF _ k).mono (fun _ hy => (hsub hy).2) apply hc.congr intro y hy exact congrArg (TotalSpace.mk' (Fin r โ†’ โ„‚) y) (bundleMap_apply_eq T a y (hsub hy) i (v y)) theorem bundleChartFrame_sum (a : Y) (y : Y) (hy : y โˆˆ (trivializationAt (Fin d โ†’ โ„‚) E a).baseSet) (v : E y) : (โˆ‘ j, ((trivializationAt (Fin d โ†’ โ„‚) E a) โŸจy,vโŸฉ).2 j โ€ข bundleChartFrame (trivializationAt (Fin d โ†’ โ„‚) E a) y j) = v := by let b := bundleChartBasis (trivializationAt (Fin d โ†’ โ„‚) E a) y hy have he := b.sum_repr v simpa [b, bundleChartBasis, bundleChartFrame, hy] using he /-- Continuity on the actual total spaces follows from the constructed coordinate matrices. No simultaneous trivialization is assumed. -/ theorem continuous_bundleMap_of_coordinates (hE : ContinuousHermitianMetric (d := d) (E := E)) (hF : ContinuousHermitianMetric (d := r) (E := F)) (T : โˆ€ y, Fin n โ†’ E y โ†’โ‚—[โ„‚] F y) (hT : โˆ€ a, ContinuousOn (bundleMapCoordinates (d := d) (r := r) T a) (hermitianChartSet (d := d) (r := r) (E := E) (F := F) a)) (i : Fin n) : Continuous (fun z : TotalSpace (Fin d โ†’ โ„‚) E => TotalSpace.mk' (Fin r โ†’ โ„‚) z.proj (T z.proj i z.2)) := by apply continuous_iff_continuousAt.mpr intro zโ‚€ let a := zโ‚€.proj let e := trivializationAt (Fin d โ†’ โ„‚) E a let O := hermitianChartSet (d := d) (r := r) (E := E) (F := F) a let S : Set (TotalSpace (Fin d โ†’ โ„‚) E) := ฯ€ (Fin d โ†’ โ„‚) E โปยน' O have hp : Continuous (ฯ€ (Fin d โ†’ โ„‚) E) := FiberBundle.continuous_proj (Fin d โ†’ โ„‚) E have hO : IsOpen O := e.open_baseSet.inter (trivializationAt (Fin r โ†’ โ„‚) F a).open_baseSet have hzโ‚€ : zโ‚€ โˆˆ S := mem_hermitianChartSet (d := d) (r := r) a have hec : ContinuousOn e S := e.continuousOn.mono (fun z hz => e.mem_source.mpr hz.1) have hsec (j : Fin d) : ContinuousOn (fun y => TotalSpace.mk' (Fin r โ†’ โ„‚) y (T y i (bundleChartFrame e y j))) O := continuousOn_bundleMap_apply_section hE hF T a (Set.Subset.refl _) (hT a) (fun y => bundleChartFrame e y j) ((continuousOn_bundleChartFrame e j).mono Set.inter_subset_left) i have hc : ContinuousOn (fun z : TotalSpace (Fin d โ†’ โ„‚) E => TotalSpace.mk' (Fin r โ†’ โ„‚) z.proj (โˆ‘ j, (e z).2 j โ€ข T z.proj i (bundleChartFrame e z.proj j))) S := by apply continuousOn_bundle_sum_over (๐•œ := โ„‚) _ hp.continuousOn intro j _ apply continuousOn_bundle_smul_over _ hp.continuousOn ยท exact (continuous_apply j).comp_continuousOn hec.snd ยท exact (hsec j).comp hp.continuousOn (fun _ hz => hz) have hc' : ContinuousOn (fun z : TotalSpace (Fin d โ†’ โ„‚) E => TotalSpace.mk' (Fin r โ†’ โ„‚) z.proj (T z.proj i z.2)) S := by apply hc.congr intro z hz apply congrArg (TotalSpace.mk' (Fin r โ†’ โ„‚) z.proj) simp only [โ† map_smul, โ† map_sum] exact congrArg (T z.proj i) (bundleChartFrame_sum a z.proj hz.1 z.2).symm exact (hc' zโ‚€ hzโ‚€).continuousAt ((hO.preimage hp).mem_nhds hzโ‚€) theorem continuous_realizeHomSection (hE : ContinuousHermitianMetric (d := d) (E := E)) (hF : ContinuousHermitianMetric (d := r) (E := F)) (s : โˆ€ y, (hermitianHomCore (n := n) hE hF).Fiber y) (hs : Continuous (fun y => TotalSpace.mk' (Fin n โ†’ Matrix (Fin r) (Fin d) โ„‚) y (s y))) (i : Fin n) : Continuous (fun z : TotalSpace (Fin d โ†’ โ„‚) E => TotalSpace.mk' (Fin r โ†’ โ„‚) z.proj (realizeHomSection hE hF s z.proj i z.2)) := continuous_bundleMap_of_coordinates hE hF _ (continuousOn_realizeHomSection_coordinates hE hF s hs) i include d in /-- Finite-dimensionality is derived from the ordinary bundle chart. -/ theorem bundleFiberFiniteDimensional (y : Y) : FiniteDimensional โ„‚ (E y) := Module.Finite.of_basis (bundleChartBasis (trivializationAt (Fin d โ†’ โ„‚) E y) y (mem_baseSet_trivializationAt (Fin d โ†’ โ„‚) E y)) /-- The actual fiberwise adjoint, with finite-dimensionality supplied by the original bundle rather than a new hypothesis. -/ def bundleAdjoint (T : โˆ€ y, Fin n โ†’ E y โ†’โ‚—[โ„‚] F y) (y : Y) (i : Fin n) : F y โ†’โ‚—[โ„‚] E y := by letI := bundleFiberFiniteDimensional (d := d) (E := E) y letI := bundleFiberFiniteDimensional (d := r) (E := F) y exact LinearMap.adjoint (T y i) theorem bundleAdjoint_inner (T : โˆ€ y, Fin n โ†’ E y โ†’โ‚—[โ„‚] F y) (y : Y) (i : Fin n) (v : E y) (w : F y) : inner โ„‚ (bundleAdjoint (d := d) (r := r) T y i w) v = inner โ„‚ w (T y i v) := by let := bundleFiberFiniteDimensional (d := d) (E := E) y let := bundleFiberFiniteDimensional (d := r) (E := F) y exact LinearMap.adjoint_inner_left (T y i) v w theorem bundleAdjoint_coordinates (T : โˆ€ y, Fin n โ†’ E y โ†’โ‚—[โ„‚] F y) (a y : Y) (hy : y โˆˆ hermitianChartSet (d := d) (r := r) (E := E) (F := F) a) (i : Fin n) : bundleMapCoordinates (d := r) (r := d) (bundleAdjoint (d := d) (r := r) T) a y i = (bundleMapCoordinates (d := d) (r := r) T a y i)แดด := by let := bundleFiberFiniteDimensional (d := d) (E := E) y let := bundleFiberFiniteDimensional (d := r) (E := F) y rw [bundleMapCoordinates_eq _ a y โŸจhy.2,hy.1โŸฉ i, bundleMapCoordinates_eq _ a y hy i] exact LinearMap.toMatrix_adjoint (bundleOrthonormalBasis (trivializationAt (Fin d โ†’ โ„‚) E a) y hy.1) (bundleOrthonormalBasis (trivializationAt (Fin r โ†’ โ„‚) F a) y hy.2) (T y i) theorem continuous_bundleAdjoint (hE : ContinuousHermitianMetric (d := d) (E := E)) (hF : ContinuousHermitianMetric (d := r) (E := F)) (T : โˆ€ y, Fin n โ†’ E y โ†’โ‚—[โ„‚] F y) (hT : โˆ€ i, Continuous (fun z : TotalSpace (Fin d โ†’ โ„‚) E => TotalSpace.mk' (Fin r โ†’ โ„‚) z.proj (T z.proj i z.2))) (i : Fin n) : Continuous (fun z : TotalSpace (Fin r โ†’ โ„‚) F => TotalSpace.mk' (Fin d โ†’ โ„‚) z.proj (bundleAdjoint (d := d) (r := r) T z.proj i z.2)) := by apply continuous_bundleMap_of_coordinates hF hE _ _ i intro a apply continuousOn_pi.mpr intro k have hc := (continuousOn_bundleMapCoordinates hE hF T hT a).mono (show hermitianChartSet (d := r) (r := d) (E := F) (F := E) a โІ hermitianChartSet (d := d) (r := r) (E := E) (F := F) a from fun _ h => โŸจh.2,h.1โŸฉ) have hh : ContinuousOn (fun y => (bundleMapCoordinates (d := d) (r := r) T a y k)แดด) (hermitianChartSet (d := r) (r := d) (E := F) (F := E) a) := by rw [continuousOn_iff_continuous_domRestrict] exact (((continuous_apply k).comp (continuousOn_iff_continuous_domRestrict.mp hc))).matrix_conjTranspose exact hh.congr (fun y hy => bundleAdjoint_coordinates T a y โŸจhy.2,hy.1โŸฉ k) end Kaplansky end open scoped BigOperators ComplexOrder MatrixOrder Matrix.Norms.L2Operator open Matrix Bundle Topology namespace Kaplansky variable {n d r : โ„•} {Y : Type*} [TopologicalSpace Y] [LocallyCompactSpace Y] variable {E F : Y โ†’ Type*} variable [โˆ€ y, NormedAddCommGroup (E y)] [โˆ€ y, InnerProductSpace โ„‚ (E y)] variable [โˆ€ y, NormedAddCommGroup (F y)] [โˆ€ y, InnerProductSpace โ„‚ (F y)] variable [TopologicalSpace (TotalSpace (Fin d โ†’ โ„‚) E)] variable [TopologicalSpace (TotalSpace (Fin r โ†’ โ„‚) F)] variable [FiberBundle (Fin d โ†’ โ„‚) E] [VectorBundle โ„‚ (Fin d โ†’ โ„‚) E] variable [FiberBundle (Fin r โ†’ โ„‚) F] [VectorBundle โ„‚ (Fin r โ†’ โ„‚) F] theorem exists_continuous_normalized_bundle_maps (hE : ContinuousHermitianMetric (d := d) (E := E)) (hF : ContinuousHermitianMetric (d := r) (E := F)) (T : โˆ€ y, Fin n โ†’ E y โ†’โ‚—[โ„‚] F y) (hT : โˆ€ i, Continuous (fun z : TotalSpace (Fin d โ†’ โ„‚) E => TotalSpace.mk' (Fin r โ†’ โ„‚) z.proj (T z.proj i z.2))) (hexp : โˆ€ y, IntrinsicExpanding (T y)) : โˆƒ X : โˆ€ y, Fin n โ†’ E y โ†’โ‚—[โ„‚] F y, (โˆ€ i, Continuous (fun z : TotalSpace (Fin d โ†’ โ„‚) E => TotalSpace.mk' (Fin r โ†’ โ„‚) z.proj (X z.proj i z.2))) โˆง (โˆ€ i, Continuous (fun z : TotalSpace (Fin r โ†’ โ„‚) F => TotalSpace.mk' (Fin d โ†’ โ„‚) z.proj (bundleAdjoint (d := d) (r := r) X z.proj i z.2))) โˆง โˆ€ y, (โˆ‘ i, (bundleAdjoint (d := d) (r := r) X y i).comp (X y i)) = LinearMap.id โˆง โˆ€ v : F y, 0 โ‰ค inner โ„‚ v (((2/3 : โ„‚) โ€ข (LinearMap.id : F y โ†’โ‚—[โ„‚] F y) - โˆ‘ i, (X y i).comp (bundleAdjoint (d := d) (r := r) X y i)) v) := by obtain โŸจs,hs,hrโŸฉ := exists_hermitian_scaled_section hE hF T hT hexp let X := realizeHomSection hE hF s have hX := continuous_realizeHomSection hE hF s hs refine โŸจX,hX,continuous_bundleAdjoint hE hF X hX,?_โŸฉ intro y let := bundleFiberFiniteDimensional (d := d) (E := E) y let := bundleFiberFiniteDimensional (d := r) (E := F) y have hy := mem_hermitianChartSet (d := d) (r := r) (E := E) (F := F) y let b := bundleOrthonormalBasis (trivializationAt (Fin d โ†’ โ„‚) E y) y hy.1 let c := bundleOrthonormalBasis (trivializationAt (Fin r โ†’ โ„‚) F y) y hy.2 have he : ((hermitianHomCore hE hF).localTriv y โŸจy,s yโŸฉ).2 = fun i => LinearMap.toMatrix b.toBasis c.toBasis (X y i) := by rw [โ† realizeHomSection_coordinates hE hF s y y hy] exact funext (bundleMapCoordinates_eq X y y hy) have hm := hr y y hy dsimp only at hm rw [he] at hm exact intrinsic_relations_of_matrix b c (X y) hm.1 hm.2 end Kaplansky end end OAI