Download data/lean/OAI/Geometry/BundleTests/Normalized.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 10.5 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/BundleTests/Normalized.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/BundleTests/Normalized.lean
-
curl -L -o Normalized.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/BundleTests/Normalized.lean
10.5 kB
| import OAI.Geometry.BundleTests.Assembly | |
| import OAI.Geometry.ComplexBundle.Maps | |
| import OAI.Geometry.ComplexBundle.Tuples | |
| namespace OAI | |
| noncomputable section | |
| /-! Normalized test maps, slot regrouping, and unitary coordinate changes. -/ | |
| section | |
| open Bundle Topology | |
| open scoped BigOperators ComplexOrder | |
| namespace Kaplansky | |
| open ComplexGrassmann | |
| abbrev TestNextCoordinates (m R j : β) (hj : j<R) := | |
| FiniteCoordinateBundle (stageProjectiveDimensions m R (j+1) hj) | |
| (testNextLabel m R j) (testRank m R (j+1)) (testNextSlot_card hj) | |
| /-- The actual 24-map expansion transported into the same concrete | |
| Hermitian coordinate bundles used by ordinary bundle normalization. -/ | |
| theorem exists_test_coordinate_expanding_maps {m R j : β} (hm : 0<m) (hj : j<R) : | |
| β T : β y, Fin 24 β TestSourceCoordinates m R j hj y ββ[β] TestNextCoordinates m R j hj y, | |
| (β i, Continuous (fun z : TotalSpace (Fin (testRank m R j) β β) (TestSourceCoordinates m R j hj) => | |
| TotalSpace.mk' (Fin (testRank m R (j+1)) β β) z.proj (T z.proj i z.2))) β§ | |
| β y, IntrinsicExpanding (T y) := by | |
| obtain β¨T,hT,hExpβ© := exists_test_twentyFour_expanding_maps hm hj | |
| let e := finiteCoordinateEquiv (testRank m R j) (testBundleSlot_card (Nat.le_of_lt hj) (m := m)) | |
| let f := finiteCoordinateEquiv (testRank m R (j+1)) (testNextSlot_card hj (m := m)) | |
| let a := fun y => (show SmoothTestBundle m R (j+1) j hj (Nat.le_succ j) y ββ[β] | |
| TestSourceCoordinates m R j hj y from e.toLinearEquiv) | |
| let b := fun y => (show (smoothNextCore m R j hj).Fiber y ββ[β] | |
| TestNextCoordinates m R j hj y from f.toLinearEquiv) | |
| refine β¨fun y i => (b y).toLinearMap.comp ((T y i).comp (a y).symm.toLinearMap),?_,?_β© | |
| Β· intro i | |
| let H := finiteCoordinateTotalHomeomorph (stageProjectiveDimensions m R (j+1) hj) | |
| (fun s : TestBundleSlot m R j => testSummandLineIndex (Nat.le_succ j) s.1) | |
| (testRank m R j) (testBundleSlot_card (Nat.le_of_lt hj)) | |
| let G := finiteCoordinateTotalHomeomorph (stageProjectiveDimensions m R (j+1) hj) | |
| (testNextLabel m R j) (testRank m R (j+1)) (testNextSlot_card hj) | |
| exact G.continuous.comp ((hT i).comp H.symm.continuous) | |
| Β· intro y | |
| exact intrinsicExpanding_equiv (T y) (a y) (b y) (hExp y) | |
| theorem exists_test_normalized_maps {m R j : β} (hm : 0<m) (hj : j<R) : | |
| β X : β y, Fin 24 β TestSourceCoordinates m R j hj y ββ[β] TestNextCoordinates m R j hj y, | |
| (β i, Continuous (fun z : TotalSpace (Fin (testRank m R j) β β) (TestSourceCoordinates m R j hj) => | |
| TotalSpace.mk' (Fin (testRank m R (j+1)) β β) z.proj (X z.proj i z.2))) β§ | |
| (β i, Continuous (fun z : TotalSpace (Fin (testRank m R (j+1)) β β) (TestNextCoordinates m R j hj) => | |
| TotalSpace.mk' (Fin (testRank m R j) β β) z.proj | |
| (bundleAdjoint (d := testRank m R j) (r := testRank m R (j+1)) X z.proj i z.2))) β§ | |
| β y, (β i, (bundleAdjoint (d := testRank m R j) (r := testRank m R (j+1)) X y i).comp (X y i)) = LinearMap.id β§ | |
| β v : TestNextCoordinates m R j hj y, 0 β€ inner β v | |
| (((2/3 : β) β’ (LinearMap.id : TestNextCoordinates m R j hj y ββ[β] TestNextCoordinates m R j hj y) - | |
| β i, (X y i).comp (bundleAdjoint (d := testRank m R j) (r := testRank m R (j+1)) X y i)) v) := by | |
| obtain β¨T,hT,hExpβ© := exists_test_coordinate_expanding_maps hm hj | |
| exact exists_continuous_normalized_bundle_maps | |
| (finiteCoordinate_continuousHermitianMetric _ _ _ _) | |
| (finiteCoordinate_continuousHermitianMetric _ _ _ _) T hT hExp | |
| end Kaplansky | |
| end | |
| section | |
| open Bundle | |
| namespace Kaplansky | |
| open ComplexGrassmann | |
| def testNextSlotEquiv (m R j : β) : TestNextSlot m R j β TestBundleSlot m R (j+1) where | |
| toFun := Sum.elim (fun s => β¨s.1.castSucc,s.2β©) (fun k => β¨Fin.last (j+1),kβ©) | |
| invFun s := Fin.lastCases (fun k => Sum.inr k) (fun i k => Sum.inl β¨i,kβ©) s.1 s.2 | |
| left_inv s := by cases s <;> simp | |
| right_inv s := by | |
| obtain β¨i,kβ© := s | |
| induction i using Fin.lastCases <;> simp | |
| theorem testNextLabel_eq (m R j : β) (s : TestNextSlot m R j) : | |
| testNextLabel m R j s = testSummandLineIndex (Nat.le_refl (j+1)) (testNextSlotEquiv m R j s).1 := by | |
| cases s with | |
| | inl s => | |
| obtain β¨i,kβ© := s | |
| simp only [testNextLabel,Sum.elim_inl,testNextSlotEquiv,Equiv.coe_fn_mk] | |
| simp [testSummandLineIndex] | |
| | inr k => | |
| simp only [testNextLabel,Sum.elim_inr,testNextSlotEquiv,Equiv.coe_fn_mk] | |
| simp [testSummandLineIndex] | |
| rfl | |
| /-- The regrouped target and E_{j+1} are isomorphic as actual topological | |
| bundles, not merely vector spaces of the same rank. -/ | |
| def testNextStageTotalHomeomorph (m R j : β) (hj : j<R) : | |
| TotalSpace (EuclideanSpace β (TestNextSlot m R j)) (smoothNextCore m R j hj).Fiber ββ | |
| TotalSpace (EuclideanSpace β (TestBundleSlot m R (j+1))) | |
| (SmoothTestBundle m R (j+1) (j+1) hj (Nat.le_refl (j+1))) := by | |
| let K := stageProjectiveDimensions m R (j+1) hj | |
| let e := testNextSlotEquiv m R j | |
| let P : (TestNextSlot m R j β Option (Fin (j+1))) β Type := fun label => | |
| TotalSpace (EuclideanSpace β (TestNextSlot m R j)) (SmoothLineSumBundle K label) ββ | |
| TotalSpace (EuclideanSpace β (TestBundleSlot m R (j+1))) | |
| (SmoothTestBundle m R (j+1) (j+1) hj (Nat.le_refl (j+1))) | |
| have he : testNextLabel m R j = fun u => testSummandLineIndex (Nat.le_refl (j+1)) (e u).1 := | |
| funext (testNextLabel_eq m R j) | |
| have h : P (fun u => testSummandLineIndex (Nat.le_refl (j+1)) (e u).1) := | |
| lineSumReindexTotalHomeomorph | |
| (fun s : TestBundleSlot m R (j+1) => productLineCore K (testSummandLineIndex (Nat.le_refl (j+1)) s.1)) e | |
| exact Eq.mp (congrArg P he.symm) h | |
| end Kaplansky | |
| end | |
| section | |
| open Bundle Topology | |
| namespace Kaplansky | |
| open ComplexGrassmann | |
| /-- The finite-coordinate change preserves the actual Hermitian metric and | |
| the actual total-space topology simultaneously. -/ | |
| def finiteCoordinateUnitary {S ΞΉ : Type*} [Fintype S] [Fintype ΞΉ] | |
| (K : ΞΉ β β) (label : S β Option ΞΉ) (d : β) (hd : Fintype.card S=d) : | |
| UnitaryBundleEquiv (EuclideanSpace β S) (Fin d β β) | |
| (SmoothLineSumBundle K label) (FiniteCoordinateBundle K label d hd) where | |
| fiber x := | |
| { toLinearEquiv := (finiteCoordinateEquiv d hd).toLinearEquiv | |
| norm_map' := fun v => by | |
| change β(finiteCoordinateEquiv d hd).symm (finiteCoordinateEquiv d hd v)β = βvβ | |
| exact congrArg norm ((finiteCoordinateEquiv d hd).symm_apply_apply | |
| (show EuclideanSpace β S from v)) } | |
| continuous_forward := (finiteCoordinateTotalHomeomorph K label d hd).continuous | |
| continuous_reverse := (finiteCoordinateTotalHomeomorph K label d hd).symm.continuous | |
| /-- Reindexing an orthogonal line sum is unitary on fibers and continuous | |
| in both directions on the actual total space. -/ | |
| def lineSumReindexUnitary {B S T : Type*} [TopologicalSpace B] [Fintype S] [Fintype T] | |
| {J : S β Type*} (C : β s, VectorBundleCore β B β (J s)) (e : T β S) : | |
| UnitaryBundleEquiv (EuclideanSpace β T) (EuclideanSpace β S) | |
| (finiteLineSumCore (fun t => C (e t))).Fiber (finiteLineSumCore C).Fiber where | |
| fiber x := | |
| { toLinearEquiv := lineSumReindex C e x | |
| norm_map' := (LinearMap.norm_map_iff_inner_map_map _).mpr (lineSumReindex_inner C e x) } | |
| continuous_forward := (lineSumReindexTotalHomeomorph C e).continuous | |
| continuous_reverse := (lineSumReindexTotalHomeomorph C e).symm.continuous | |
| instance smoothNext_norm (m R j : β) (hj : j<R) | |
| (x : ProjectiveProduct (stageProjectiveDimensions m R (j+1) hj)) : | |
| NormedAddCommGroup ((smoothNextCore m R j hj).Fiber x) := smoothLineSum_norm _ _ x | |
| instance smoothNext_inner (m R j : β) (hj : j<R) | |
| (x : ProjectiveProduct (stageProjectiveDimensions m R (j+1) hj)) : | |
| InnerProductSpace β ((smoothNextCore m R j hj).Fiber x) := smoothLineSum_inner _ _ x | |
| /-- The replacement-plus-fresh target is the standard next stage as an | |
| ordinary Hermitian bundle, so normalization survives this regrouping. -/ | |
| def testNextStageUnitary (m R j : β) (hj : j<R) : | |
| UnitaryBundleEquiv (EuclideanSpace β (TestNextSlot m R j)) | |
| (EuclideanSpace β (TestBundleSlot m R (j+1))) | |
| (smoothNextCore m R j hj).Fiber | |
| (SmoothTestBundle m R (j+1) (j+1) hj (Nat.le_refl (j+1))) := by | |
| let K := stageProjectiveDimensions m R (j+1) hj | |
| let e := testNextSlotEquiv m R j | |
| let P : (TestNextSlot m R j β Option (Fin (j+1))) β Type := fun label => | |
| UnitaryBundleEquiv (EuclideanSpace β (TestNextSlot m R j)) | |
| (EuclideanSpace β (TestBundleSlot m R (j+1))) | |
| (SmoothLineSumBundle K label) | |
| (SmoothTestBundle m R (j+1) (j+1) hj (Nat.le_refl (j+1))) | |
| have he : testNextLabel m R j = fun u => testSummandLineIndex (Nat.le_refl (j+1)) (e u).1 := | |
| funext (testNextLabel_eq m R j) | |
| have h : P (fun u => testSummandLineIndex (Nat.le_refl (j+1)) (e u).1) := | |
| lineSumReindexUnitary | |
| (fun s : TestBundleSlot m R (j+1) => productLineCore K (testSummandLineIndex (Nat.le_refl (j+1)) s.1)) e | |
| exact Eq.mp (congrArg P he.symm) h | |
| end Kaplansky | |
| end | |
| open Bundle Topology | |
| namespace Kaplansky | |
| open ComplexGrassmann | |
| local instance (priority := 2100) coordinateSourceNorm (m R j : β) (hj : j<R) | |
| (y : SmoothPrefixBase m R j hj) : NormedAddCommGroup (TestSourceCoordinates m R j hj y) := | |
| finiteCoordinateHilbertNorm _ _ _ _ y | |
| local instance (priority := 2100) coordinateSourceInner (m R j : β) (hj : j<R) | |
| (y : SmoothPrefixBase m R j hj) : InnerProductSpace β (TestSourceCoordinates m R j hj y) := | |
| finiteCoordinateHilbertInner _ _ _ _ y | |
| local instance (priority := 2100) coordinateNextNorm (m R j : β) (hj : j<R) | |
| (y : SmoothPrefixBase m R j hj) : NormedAddCommGroup (TestNextCoordinates m R j hj y) := | |
| finiteCoordinateHilbertNorm _ _ _ _ y | |
| local instance (priority := 2100) coordinateNextInner (m R j : β) (hj : j<R) | |
| (y : SmoothPrefixBase m R j hj) : InnerProductSpace β (TestNextCoordinates m R j hj y) := | |
| finiteCoordinateHilbertInner _ _ _ _ y | |
| def TestCoordinateStepType (m R j : β) (hj : j<R) : Type := | |
| @ContinuousNormalizedStep (SmoothPrefixBase m R j hj) | |
| (Fin (testRank m R j) β β) (Fin (testRank m R (j+1)) β β) | |
| (TestSourceCoordinates m R j hj) (TestNextCoordinates m R j hj) | |
| (coordinateSourceNorm m R j hj) (coordinateSourceInner m R j hj) | |
| (coordinateNextNorm m R j hj) (coordinateNextInner m R j hj) | |
| inferInstance inferInstance | |
| end Kaplansky | |
| end | |
| end OAI | |