import OAI.AlgebraicGeometry.CycleClass.Geometric.ClosedBallRadial import OAI.AlgebraicGeometry.CycleClass.Geometric.ComplexLocalTopHomology import OAI.AlgebraicGeometry.CycleClass.Geometric.ComplexLocalVanishing import OAI.AlgebraicGeometry.CycleClass.Geometric.LocalHomology import OAI.AlgebraicGeometry.CycleClass.Geometric.RelativeHomotopy /-! # Closed Ball -/ namespace OAI.AlgebraicGeometry.CycleClass.Geometric.ClosedBall.Cycles noncomputable section /-! # Relative fundamental classes of closed coordinate balls The relative groups are the homology of the actual singular-chain quotient for `(E, E \ closedBall 0 r)`. The inclusion into the punctured pair is a quasi-isomorphism because the outside-ball inclusion is a genuine homotopy equivalence. Its inverse transports the existing coordinate-normalized local class. An explicit translation homotopy proves the normalization at every point of the closed ball. No invariance under nonlinear coordinate changes is assumed here. -/ open _root_.CategoryTheory _root_.CategoryTheory.Limits set_option backward.defeqAttrib.useBackward true set_option backward.isDefEq.respectTransparency false variable (E : Type) [NormedAddCommGroup E] /-- The identity map sends the outside of a closed ball into the complement of each point of that ball. -/ theorem closedBallOutside_mapsTo_point (r : โ„) (x : E) (hx : x โˆˆ Metric.closedBall (0 : E) r) : Set.MapsTo (๐Ÿ™ (TopCat.of E)) (ClosedBallRadial.Cycles.OutsideClosedBall E r) ({x}แถœ : Set E) := by intro y hy change y โ‰  x rintro rfl exact hy hx /-- The genuine relative-chain restriction from a closed ball to one of its points. -/ def closedBallPointChainMap (r : โ„) (x : E) (hx : x โˆˆ Metric.closedBall (0 : E) r) : LocalHomology.Cycles.relativeSingularChains (TopCat.of E) (ClosedBallRadial.Cycles.OutsideClosedBall E r) โŸถ LocalHomology.Cycles.relativeSingularChains (TopCat.of E) ({x}แถœ : Set E) := LocalHomology.Cycles.relativeSingularChainsMap (๐Ÿ™ (TopCat.of E)) (closedBallOutside_mapsTo_point E r x hx) /-- The induced restriction from closed-ball relative homology to point-local homology. -/ abbrev closedBallPointHomologyMap (r : โ„) (x : E) (hx : x โˆˆ Metric.closedBall (0 : E) r) (n : โ„•) : LocalHomology.Cycles.relativeSingularHomology (TopCat.of E) (ClosedBallRadial.Cycles.OutsideClosedBall E r) n โŸถ LocalHomology.Cycles.localSingularHomology (TopCat.of E) x n := HomologicalComplex.homologyMap (closedBallPointChainMap E r x hx) n variable [NormedSpace โ„ E] /-- The restriction to the center is a quasi-isomorphism in every degree. This follows from the two actual short exact relative-chain sequences. -/ theorem closedBallOriginChainMap_quasiIso (r : โ„) (hr : 0 โ‰ค r) : QuasiIso (closedBallPointChainMap E r 0 (Metric.mem_closedBall_self hr)) := by let ฯ† := RelativeHomologyExact.Cycles.relativeChainSequenceMap (๐Ÿ™ (TopCat.of E)) (closedBallOutside_mapsTo_point E r 0 (Metric.mem_closedBall_self hr)) apply HomologicalComplex.HomologySequence.quasiIso_ฯ„โ‚ƒ ฯ† (LocalHomology.Cycles.relativeChainSequence_shortExact (TopCat.of E) (ClosedBallRadial.Cycles.OutsideClosedBall E r)) (LocalHomology.Cycles.relativeChainSequence_shortExact (TopCat.of E) ({0}แถœ : Set E)) ยท exact (ContractibleModel.Cycles.singularChainsHomotopyEquiv (ModuleCat.of โ„ค โ„ค) (X := TopCat.of (ClosedBallRadial.Cycles.OutsideClosedBall E r)) (Y := TopCat.of (NormalSphere.Cycles.PuncturedNormal E)) (ClosedBallRadial.Cycles.outsideClosedBallHomotopyEquiv E r hr)).quasiIso_hom ยท change QuasiIso (LocalHomology.Cycles.integralSingularChainFunctor.map (๐Ÿ™ (TopCat.of E))) rw [CategoryTheory.Functor.map_id] infer_instance /-- Closed-ball relative homology agrees with local homology at the center, through the map induced by inclusion of the two actual subspaces. -/ def closedBallOriginHomologyIso (r : โ„) (hr : 0 โ‰ค r) (n : โ„•) : LocalHomology.Cycles.relativeSingularHomology (TopCat.of E) (ClosedBallRadial.Cycles.OutsideClosedBall E r) n โ‰… LocalHomology.Cycles.localSingularHomology (TopCat.of E) 0 n := by have := closedBallOriginChainMap_quasiIso E r hr exact isoOfQuasiIsoAt (closedBallPointChainMap E r 0 (Metric.mem_closedBall_self hr)) n @[simp] theorem closedBallOriginHomologyIso_hom (r : โ„) (hr : 0 โ‰ค r) (n : โ„•) : (closedBallOriginHomologyIso E r hr n).hom = closedBallPointHomologyMap E r 0 (Metric.mem_closedBall_self hr) n := rfl /-- Translation to the origin identifies the actual point-local homology groups. -/ def localTranslationHomologyIso (x : E) (n : โ„•) : LocalHomology.Cycles.localSingularHomology (TopCat.of E) x n โ‰… LocalHomology.Cycles.localSingularHomology (TopCat.of E) 0 n := LocalHomology.Cycles.relativeSingularHomologyIso (Homeomorph.subRight x) (by intro y change y โ‰  x โ†” y - x โ‰  (0 : E) exact โŸจfun h hzero => h (sub_eq_zero.mp hzero), fun h heq => h (sub_eq_zero.mpr heq)โŸฉ) n /-- The straight translation homotopy from the identity to subtraction of `x`. -/ def coordinateTranslationHomotopy (x : E) : TopCat.Homotopy (๐Ÿ™ (TopCat.of E)) (TopCat.isoOfHomeo (X := TopCat.of E) (Y := TopCat.of E) (Homeomorph.subRight x)).hom where toFun z := z.2 - (z.1 : โ„) โ€ข x continuous_toFun := by fun_prop map_zero_left y := by simp map_one_left y := by simp /-- Translating by a fraction of a point in the ball cannot move an outside point to the origin. This includes points on the boundary of the closed ball. -/ theorem coordinateTranslationHomotopy_mapsTo (r : โ„) (x : E) (hx : x โˆˆ Metric.closedBall (0 : E) r) (t : unitInterval) : Set.MapsTo (fun y => coordinateTranslationHomotopy E x (t, y)) (ClosedBallRadial.Cycles.OutsideClosedBall E r) ({0}แถœ : Set E) := by intro y hy change y - (t : โ„) โ€ข x โ‰  (0 : E) intro hz have he : y = (t : โ„) โ€ข x := sub_eq_zero.mp hz have hbound : โ€–(t : โ„) โ€ข xโ€– โ‰ค r := by rw [norm_smul, Real.norm_of_nonneg t.property.1] exact (mul_le_mul_of_nonneg_right t.property.2 (norm_nonneg x)).trans (by simpa only [one_mul] using mem_closedBall_zero_iff.mp hx) have hout := ClosedBallRadial.Cycles.outsideClosedBall_norm E r โŸจy, hyโŸฉ change r < โ€–yโ€– at hout rw [he] at hout exact (not_lt_of_ge hbound) hout /-- Restriction to any point of the ball, followed by translation to the origin, equals restriction to the center. -/ @[reassoc] theorem closedBallPointHomologyMap_translation (r : โ„) (hr : 0 โ‰ค r) (x : E) (hx : x โˆˆ Metric.closedBall (0 : E) r) (n : โ„•) : closedBallPointHomologyMap E r x hx n โ‰ซ (localTranslationHomologyIso E x n).hom = closedBallPointHomologyMap E r 0 (Metric.mem_closedBall_self hr) n := by let htrans : Set.MapsTo (TopCat.isoOfHomeo (X := TopCat.of E) (Y := TopCat.of E) (Homeomorph.subRight x)).hom ({x}แถœ : Set E) ({0}แถœ : Set E) := by intro y hy change (y : E) - x โ‰  (0 : E) exact sub_ne_zero.mpr hy change LocalHomology.Cycles.relativeSingularHomologyMap (๐Ÿ™ (TopCat.of E)) (closedBallOutside_mapsTo_point E r x hx) n โ‰ซ LocalHomology.Cycles.relativeSingularHomologyMap (TopCat.isoOfHomeo (X := TopCat.of E) (Y := TopCat.of E) (Homeomorph.subRight x)).hom htrans n = _ rw [LocalHomology.Cycles.relativeSingularHomologyMap_comp] exact (RelativeHomotopy.Cycles.relativeSingularHomologyMap_eq_of_homotopy (closedBallOutside_mapsTo_point E r 0 (Metric.mem_closedBall_self hr)) (fun _ hy => htrans (closedBallOutside_mapsTo_point E r x hx hy)) (coordinateTranslationHomotopy E x) (coordinateTranslationHomotopy_mapsTo E r x hx) n).symm /-- Relative top homology of a complex coordinate closed ball is `โ„ค`, using the already specified point-local coordinate normalization. -/ def complexClosedBallTopHomologyIso (p : โ„•) (r : โ„) (hr : 0 โ‰ค r) : LocalHomology.Cycles.relativeSingularHomology (TopCat.of (Fin p โ†’ โ„‚)) (ClosedBallRadial.Cycles.OutsideClosedBall (Fin p โ†’ โ„‚) r) (2 * p) โ‰… ModuleCat.of โ„ค โ„ค := closedBallOriginHomologyIso (Fin p โ†’ โ„‚) r hr (2 * p) โ‰ชโ‰ซ ComplexLocalTopHomology.Cycles.complexNormalTopLocalHomologyIso p /-- The actual closed-ball relative class normalized to one in the chosen complex coordinate local-homology isomorphism. -/ def complexClosedBallClass (p : โ„•) (r : โ„) (hr : 0 โ‰ค r) : LocalHomology.Cycles.relativeSingularHomology (TopCat.of (Fin p โ†’ โ„‚)) (ClosedBallRadial.Cycles.OutsideClosedBall (Fin p โ†’ โ„‚) r) (2 * p) := (complexClosedBallTopHomologyIso p r hr).inv 1 /-- Restricting the closed-ball class to its center gives precisely the existing normalized local generator. -/ theorem complexClosedBallClass_origin (p : โ„•) (r : โ„) (hr : 0 โ‰ค r) : closedBallPointHomologyMap (Fin p โ†’ โ„‚) r 0 (Metric.mem_closedBall_self hr) (2 * p) (complexClosedBallClass p r hr) = (ComplexLocalTopHomology.Cycles.complexNormalTopLocalHomologyIso p).inv 1 := by exact ConcreteCategory.congr_hom (closedBallOriginHomologyIso (Fin p โ†’ โ„‚) r hr (2 * p)).inv_hom_id ((ComplexLocalTopHomology.Cycles.complexNormalTopLocalHomologyIso p).inv 1) /-- Point-local coordinate normalization obtained by the actual translation to the origin. -/ def complexCoordinatePointHomologyIso (p : โ„•) (x : Fin p โ†’ โ„‚) : LocalHomology.Cycles.localSingularHomology (TopCat.of (Fin p โ†’ โ„‚)) x (2 * p) โ‰… ModuleCat.of โ„ค โ„ค := localTranslationHomologyIso (Fin p โ†’ โ„‚) x (2 * p) โ‰ชโ‰ซ ComplexLocalTopHomology.Cycles.complexNormalTopLocalHomologyIso p /-- The normalized coordinate local class at an arbitrary point. -/ def complexCoordinatePointClass (p : โ„•) (x : Fin p โ†’ โ„‚) : LocalHomology.Cycles.localSingularHomology (TopCat.of (Fin p โ†’ โ„‚)) x (2 * p) := (complexCoordinatePointHomologyIso p x).inv 1 /-- The translated coordinate local class maps back to the specified origin class. -/ theorem complexCoordinatePointClass_to_origin (p : โ„•) (x : Fin p โ†’ โ„‚) : (localTranslationHomologyIso (Fin p โ†’ โ„‚) x (2 * p)).hom (complexCoordinatePointClass p x) = (ComplexLocalTopHomology.Cycles.complexNormalTopLocalHomologyIso p).inv 1 := ConcreteCategory.congr_hom (localTranslationHomologyIso (Fin p โ†’ โ„‚) x (2 * p)).inv_hom_id ((ComplexLocalTopHomology.Cycles.complexNormalTopLocalHomologyIso p).inv 1) /-- The closed-ball class restricts to the normalized coordinate local class at every point of the closed ball, in particular at every interior point. -/ theorem complexClosedBallClass_atPoint (p : โ„•) (r : โ„) (hr : 0 โ‰ค r) (x : Fin p โ†’ โ„‚) (hx : x โˆˆ Metric.closedBall 0 r) : closedBallPointHomologyMap (Fin p โ†’ โ„‚) r x hx (2 * p) (complexClosedBallClass p r hr) = complexCoordinatePointClass p x := by apply (ConcreteCategory.bijective_of_isIso (localTranslationHomologyIso (Fin p โ†’ โ„‚) x (2 * p)).hom).1 calc _ = closedBallPointHomologyMap (Fin p โ†’ โ„‚) r 0 (Metric.mem_closedBall_self hr) (2 * p) (complexClosedBallClass p r hr) := ConcreteCategory.congr_hom (closedBallPointHomologyMap_translation (Fin p โ†’ โ„‚) r hr x hx (2 * p)) _ _ = (ComplexLocalTopHomology.Cycles.complexNormalTopLocalHomologyIso p).inv 1 := complexClosedBallClass_origin p r hr _ = _ := (complexCoordinatePointClass_to_origin p x).symm /-- All other relative degrees vanish for a complex closed coordinate ball. -/ theorem complexClosedBallHomology_isZero (p n : โ„•) (r : โ„) (hr : 0 โ‰ค r) (hn : n โ‰  2 * p) : IsZero (LocalHomology.Cycles.relativeSingularHomology (TopCat.of (Fin p โ†’ โ„‚)) (ClosedBallRadial.Cycles.OutsideClosedBall (Fin p โ†’ โ„‚) r) n) := (ComplexLocalVanishing.Cycles.complexNormalLocalHomology_isZero p n hn).of_iso (closedBallOriginHomologyIso (Fin p โ†’ โ„‚) r hr n) /-- The coordinate ball supporting the relative class is actually compact. -/ theorem complexClosedBall_isCompact (p : โ„•) (r : โ„) : IsCompact (Metric.closedBall (0 : Fin p โ†’ โ„‚) r) := isCompact_closedBall 0 r end end OAI.AlgebraicGeometry.CycleClass.Geometric.ClosedBall.Cycles