Download data/lean/OAI/Geometry/ComplexBundle/RealModel.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 9.87 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/ComplexBundle/RealModel.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/ComplexBundle/RealModel.lean
-
curl -L -o RealModel.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/ComplexBundle/RealModel.lean
9.87 kB
| import OAI.Geometry.ComplexBundle.DirectSum | |
| import Mathlib.Analysis.Complex.Basic | |
| import Mathlib.Geometry.Manifold.ContMDiff.NormedSpace | |
| import Mathlib.Geometry.Manifold.VectorBundle.Basic | |
| namespace OAI | |
| noncomputable section | |
| /-! Real models of complex bundles and smooth finite line sums. -/ | |
| section | |
| open Bundle Topology | |
| open scoped Manifold ContDiff | |
| namespace Kaplansky | |
| section | |
| variable {B F J : Type*} [TopologicalSpace B] | |
| [NormedAddCommGroup F] [NormedSpace β F] (C : VectorBundleCore β B F J) | |
| /-- Restrict scalars while retaining the original complex transition maps | |
| as functions, and hence the original bundle atlas and topology. -/ | |
| def complexCoreReal : VectorBundleCore β B F J where | |
| baseSet := C.baseSet | |
| isOpen_baseSet := C.isOpen_baseSet | |
| indexAt := C.indexAt | |
| mem_baseSet_at := C.mem_baseSet_at | |
| coordChange i j x := (C.coordChange i j x).restrictScalars β | |
| coordChange_self := C.coordChange_self | |
| continuousOn_coordChange i j := | |
| (ContinuousLinearMap.restrictScalarsL β F F β β).continuous.comp_continuousOn | |
| (C.continuousOn_coordChange i j) | |
| coordChange_comp := C.coordChange_comp | |
| theorem complexCoreReal_toFiberBundleCore : (complexCoreReal C).toFiberBundleCore = C.toFiberBundleCore := rfl | |
| instance complexCoreFiberRealModule (x : B) : Module β (C.Fiber x) := inferInstanceAs (Module β F) | |
| instance complexCoreRealFiberComplexModule (x : B) : Module β ((complexCoreReal C).Fiber x) := | |
| inferInstanceAs (Module β F) | |
| instance complexCoreFiberRealVectorBundle : VectorBundle β F C.Fiber := | |
| inferInstanceAs (VectorBundle β F (complexCoreReal C).Fiber) | |
| instance complexCoreRealFiberComplexVectorBundle : VectorBundle β F (complexCoreReal C).Fiber := | |
| inferInstanceAs (VectorBundle β F C.Fiber) | |
| /-- Real-smooth complex transition functions produce an ordinary real-smooth | |
| complex bundle, with no separate realization or atlas-compatibility assumption. -/ | |
| theorem complexCoreReal_isContMDiff | |
| {X H : Type*} [NormedAddCommGroup X] [NormedSpace β X] [TopologicalSpace H] | |
| (I : ModelWithCorners β X H) [ChartedSpace H B] | |
| (hC : β a b, ContMDiffOn I π(β,F βL[β] F) β (C.coordChange a b) | |
| (C.baseSet a β© C.baseSet b)) : (complexCoreReal C).IsContMDiff I β where | |
| contMDiffOn_coordChange a b := by | |
| intro x hx | |
| exact (ContinuousLinearMap.restrictScalarsL β F F β β).contDiff.contDiffAt.contMDiffAt.comp_contMDiffWithinAt x | |
| (hC a b x hx) | |
| theorem complexCore_contMDiffVectorBundle | |
| {X H : Type*} [NormedAddCommGroup X] [NormedSpace β X] [TopologicalSpace H] | |
| (I : ModelWithCorners β X H) [ChartedSpace H B] | |
| (hC : β a b, ContMDiffOn I π(β,F βL[β] F) β (C.coordChange a b) | |
| (C.baseSet a β© C.baseSet b)) : ContMDiffVectorBundle β F C.Fiber I := by | |
| let : (complexCoreReal C).IsContMDiff I β := complexCoreReal_isContMDiff C I hC | |
| exact inferInstanceAs (ContMDiffVectorBundle β F (complexCoreReal C).Fiber I) | |
| end | |
| variable {S : Type*} [Fintype S] | |
| def lineDiagonal (c : S β β) : EuclideanSpace β S βL[β] EuclideanSpace β S := | |
| (EuclideanSpace.equiv S β).symm.toContinuousLinearMap.comp | |
| ((ContinuousLinearMap.pi (fun s => c s β’ (ContinuousLinearMap.proj s : (S β β) βL[β] β))).comp | |
| (EuclideanSpace.equiv S β).toContinuousLinearMap) | |
| def lineDiagonalLinear : (S β β) ββ[β] (EuclideanSpace β S βL[β] EuclideanSpace β S) where | |
| toFun := lineDiagonal | |
| map_add' c d := by ext v s; change (c s+d s)*v s=c s*v s+d s*v s; ring | |
| map_smul' z c := by ext v s; change (z*c s)*v s=z*(c s*v s); ring | |
| variable {B : Type*} [TopologicalSpace B] {J : S β Type*} | |
| (C : β s, VectorBundleCore β B β (J s)) | |
| omit [Fintype S] in | |
| theorem lineSumTransition_eq_diagonal (a b : β s, J s) (x : B) : | |
| lineSumTransition C a b x = lineDiagonal (fun s => (C s).coordChange (a s) (b s) x 1) := by | |
| ext v s | |
| change (C s).coordChange (a s) (b s) x (v s) = | |
| ((C s).coordChange (a s) (b s) x 1)*(v s) | |
| have h := map_smul ((C s).coordChange (a s) (b s) x) (v s) (1 : β) | |
| simpa only [smul_eq_mul,mul_one,one_mul,mul_comm] using h | |
| theorem finiteLineSumCore_transition_smooth | |
| {X H : Type*} [NormedAddCommGroup X] [NormedSpace β X] [TopologicalSpace H] | |
| (I : ModelWithCorners β X H) [ChartedSpace H B] | |
| (hC : β s a b, ContMDiffOn I π(β,β βL[β] β) β ((C s).coordChange a b) | |
| ((C s).baseSet a β© (C s).baseSet b)) (a b : β s, J s) : | |
| ContMDiffOn I π(β,EuclideanSpace β S βL[β] EuclideanSpace β S) β | |
| ((finiteLineSumCore C).coordChange a b) | |
| ((finiteLineSumCore C).baseSet a β© (finiteLineSumCore C).baseSet b) := by | |
| have hc : ContMDiffOn I π(β,S β β) β | |
| (fun x s => (C s).coordChange (a s) (b s) x 1) | |
| ((finiteLineSumCore C).baseSet a β© (finiteLineSumCore C).baseSet b) := by | |
| apply contMDiffOn_pi_space.mpr | |
| intro s x hx | |
| exact ((ContinuousLinearMap.apply β β (1 : β)).restrictScalars β).contDiff.contDiffAt.contMDiffAt.comp_contMDiffWithinAt x | |
| ((hC s (a s) (b s)).mono (fun y (hy : y β (finiteLineSumCore C).baseSet a β© (finiteLineSumCore C).baseSet b) => β¨hy.1 s,hy.2 sβ©) x hx) | |
| let hd := (lineDiagonalLinear (S := S)).toContinuousLinearMap.restrictScalars β | |
| intro x hx | |
| have h := hd.contDiff.contDiffAt.contMDiffAt.comp_contMDiffWithinAt x (hc x hx) | |
| exact h.congr (fun y _ => by simpa [hd, finiteLineSumCore, lineDiagonalLinear] using lineSumTransition_eq_diagonal C a b y) (by simpa [hd, finiteLineSumCore, lineDiagonalLinear] using lineSumTransition_eq_diagonal C a b x) | |
| end Kaplansky | |
| end | |
| open Bundle Topology | |
| open scoped Manifold ContDiff | |
| namespace Kaplansky | |
| variable {B F G J : Type*} [TopologicalSpace B] | |
| [NormedAddCommGroup F] [NormedSpace β F] | |
| [NormedAddCommGroup G] [NormedSpace β G] | |
| (C : VectorBundleCore β B F J) (e : F βL[β] G) | |
| /-- A fixed linear change of model coordinates; the gluing is conjugated. -/ | |
| def changeModelCore : VectorBundleCore β B G J where | |
| baseSet := C.baseSet | |
| isOpen_baseSet := C.isOpen_baseSet | |
| indexAt := C.indexAt | |
| mem_baseSet_at := C.mem_baseSet_at | |
| coordChange i j x := e.toContinuousLinearMap.comp ((C.coordChange i j x).comp e.symm.toContinuousLinearMap) | |
| coordChange_self i x hx v := by simp [C.coordChange_self i x hx] | |
| continuousOn_coordChange i j := continuousOn_const.clm_comp ((C.continuousOn_coordChange i j).clm_comp continuousOn_const) | |
| coordChange_comp i j k x hx v := by | |
| simpa only [ContinuousLinearMap.comp_apply,ContinuousLinearEquiv.coe_coe,ContinuousLinearEquiv.symm_apply_apply] using | |
| congrArg e (C.coordChange_comp i j k x hx (e.symm v)) | |
| /-- The coordinate change is a homeomorphism of actual total spaces. -/ | |
| def changeModelCoreTotalHomeomorph : TotalSpace F C.Fiber ββ TotalSpace G (changeModelCore C e).Fiber where | |
| toFun z := β¨z.proj,e z.2β© | |
| invFun z := β¨z.proj,e.symm z.2β© | |
| left_inv z := by | |
| obtain β¨x, vβ© := z | |
| exact congrArg (fun w => TotalSpace.mk' F x w) (e.symm_apply_apply v) | |
| right_inv z := by | |
| obtain β¨x, vβ© := z | |
| exact congrArg (fun w => TotalSpace.mk' G x w) (e.apply_symm_apply v) | |
| continuous_toFun := by | |
| apply continuous_iff_continuousAt.mpr | |
| intro z | |
| rw [FiberBundle.continuousAt_totalSpace] | |
| refine β¨(FiberBundle.continuous_proj F C.Fiber).continuousAt,?_β© | |
| have h := ((C.localTriv (C.indexAt z.proj)).continuousAt | |
| ((C.localTriv _).mem_source.mpr (C.mem_baseSet_at z.proj))).snd | |
| change ContinuousAt (fun x : TotalSpace F C.Fiber => | |
| e (C.coordChange (C.indexAt x.proj) (C.indexAt z.proj) x.proj (e.symm (e x.2)))) z | |
| change ContinuousAt (fun x : TotalSpace F C.Fiber => | |
| C.coordChange (C.indexAt x.proj) (C.indexAt z.proj) x.proj x.2) z at h | |
| have he (x : TotalSpace F C.Fiber) : e.symm (e x.2) = x.2 := e.symm_apply_apply x.2 | |
| simpa only [Function.comp_def, he] using e.continuous.continuousAt.comp h | |
| continuous_invFun := by | |
| apply continuous_iff_continuousAt.mpr | |
| intro z | |
| rw [FiberBundle.continuousAt_totalSpace] | |
| refine β¨(FiberBundle.continuous_proj G (changeModelCore C e).Fiber).continuousAt,?_β© | |
| have h := (((changeModelCore C e).localTriv (C.indexAt z.proj)).continuousAt | |
| (((changeModelCore C e).localTriv _).mem_source.mpr (C.mem_baseSet_at z.proj))).snd | |
| change ContinuousAt (fun x : TotalSpace G (changeModelCore C e).Fiber => | |
| C.coordChange (C.indexAt x.proj) (C.indexAt z.proj) x.proj (e.symm x.2)) z | |
| change ContinuousAt (fun x : TotalSpace G (changeModelCore C e).Fiber => | |
| e (C.coordChange (C.indexAt x.proj) (C.indexAt z.proj) x.proj (e.symm x.2))) z at h | |
| simpa only [Function.comp_def,ContinuousLinearEquiv.symm_apply_apply] using e.symm.continuous.continuousAt.comp h | |
| theorem changeModelCore_transition_smooth | |
| {X H : Type*} [NormedAddCommGroup X] [NormedSpace β X] [TopologicalSpace H] | |
| (I : ModelWithCorners β X H) [ChartedSpace H B] | |
| (hC : β a b, ContMDiffOn I π(β,F βL[β] F) β (C.coordChange a b) | |
| (C.baseSet a β© C.baseSet b)) (a b : J) : | |
| ContMDiffOn I π(β,G βL[β] G) β ((changeModelCore C e).coordChange a b) | |
| ((changeModelCore C e).baseSet a β© (changeModelCore C e).baseSet b) := by | |
| let L : (F βL[β] F) βL[β] (G βL[β] G) := | |
| (ContinuousLinearMap.compL β G F G e.toContinuousLinearMap).comp | |
| ((ContinuousLinearMap.compL β G F F).flip e.symm.toContinuousLinearMap) | |
| intro x hx | |
| exact (L.restrictScalars β).contDiff.contDiffAt.contMDiffAt.comp_contMDiffWithinAt x (hC a b x hx) | |
| instance changeModelFiberNorm (x : B) : NormedAddCommGroup ((changeModelCore C e).Fiber x) := | |
| inferInstanceAs (NormedAddCommGroup G) | |
| instance changeModelFiberNormedSpace (x : B) : NormedSpace β ((changeModelCore C e).Fiber x) := | |
| inferInstanceAs (NormedSpace β G) | |
| end Kaplansky | |
| end | |
| end OAI | |