import OAI.AlgebraicGeometry.Comparison.Betti.Holomorphic.StandardFunctionSheaf import OAI.AlgebraicGeometry.Comparison.Betti.Holomorphic.ChartMaps /-! # Chart Stalk Germs -/ namespace OAI.AlgebraicGeometry.Comparison.Betti.Holomorphic.ChartStalkGerms.AnalyticLocal noncomputable section section /-! Holomorphic functions on manifold opens determine actual function germs in a chart, compatibly with restriction. -/ open _root_.CategoryTheory _root_.TopologicalSpace Opposite Filter open scoped _root_.Manifold ContDiff _root_.Topology open OAI.AlgebraicGeometry.Comparison.Betti.Holomorphic.ChartMaps variable {E M : Type} [NormedAddCommGroup E] [NormedSpace โ„‚ E] [TopologicalSpace M] [ChartedSpace E M] [IsManifold ๐“˜(โ„‚, E) โˆž M] def chartInverseToOpen (e : OpenPartialHomeomorph M E) (U : Opens M) : Analysis.DifferentialForms.Manifold.ChartEquiv.chartImageOpen e U โ†’ U := fun y => โŸจe.symm y, y.property.2โŸฉ theorem chartInverseToOpen_holomorphic (e : OpenPartialHomeomorph M E) (he : e โˆˆ atlas E M) (U : Opens M) : ContMDiff ๐“˜(โ„‚, E) ๐“˜(โ„‚, E) โˆž (chartInverseToOpen e U) := by rw [โ† ContMDiff.subtypeVal_comp_iff] exact ChartMaps.chartInverse_holomorphic e he (Analysis.DifferentialForms.Manifold.ChartEquiv.chartImageOpen e U) (Analysis.DifferentialForms.Manifold.ChartEquiv.chartImageOpen_le_target e U) def chartFunctionSection (e : OpenPartialHomeomorph M E) (he : e โˆˆ atlas E M) (U : Opens M) : C^โˆžโŸฎ๐“˜(โ„‚, E), U; ๐“˜(โ„‚), โ„‚โŸฏ โ†’+* FunctionPure.holomorphicFunctions (Analysis.DifferentialForms.Manifold.ChartEquiv.chartImageOpen e U) where toFun f := (StandardFunctionSheaf.AnalyticLocal.holomorphicFunctionContMDiffEquiv E (Analysis.DifferentialForms.Manifold.ChartEquiv.chartImageOpen e U)).symm โŸจf โˆ˜ chartInverseToOpen e U, f.property.comp (chartInverseToOpen_holomorphic e he U)โŸฉ map_zero' := rfl map_one' := rfl map_add' _ _ := rfl map_mul' _ _ := rfl theorem chartFunctionSection_apply (e : OpenPartialHomeomorph M E) (he : e โˆˆ atlas E M) (U : Opens M) (f : C^โˆžโŸฎ๐“˜(โ„‚, E), U; ๐“˜(โ„‚), โ„‚โŸฏ) (y : Analysis.DifferentialForms.Manifold.ChartEquiv.chartImageOpen e U) : (chartFunctionSection e he U f).val y = f โŸจe.symm y, y.property.2โŸฉ := rfl def chartSectionGerm (e : OpenPartialHomeomorph M E) (he : e โˆˆ atlas E M) (x : M) (hx : x โˆˆ e.source) (U : Opens M) (hxU : x โˆˆ U) : C^โˆžโŸฎ๐“˜(โ„‚, E), U; ๐“˜(โ„‚), โ„‚โŸฏ โ†’+* ComplexGroups.HolomorphicAlgebraicity.HolomorphicGerms.Constructions.Germs.HolomorphicGerm (e x) := (SectionGerms.AnalyticLocal.holomorphicSectionGerm (Analysis.DifferentialForms.Manifold.ChartEquiv.chartImageOpen e U) (e x) (Analysis.DifferentialForms.Manifold.ChartEquiv.mem_chartImageOpen e U hx hxU)).comp (chartFunctionSection e he U) theorem chartSectionGerm_restrict (e : OpenPartialHomeomorph M E) (he : e โˆˆ atlas E M) (x : M) (hx : x โˆˆ e.source) {U V : Opens M} (h : V โ‰ค U) (hxV : x โˆˆ V) (f : C^โˆžโŸฎ๐“˜(โ„‚, E), U; ๐“˜(โ„‚), โ„‚โŸฏ) : chartSectionGerm e he x hx V hxV ((smoothPresheafCommRing ๐“˜(โ„‚, E) ๐“˜(โ„‚) M โ„‚).map (homOfLE h).op f) = chartSectionGerm e he x hx U (h hxV) f := by apply Subtype.ext apply Germ.coe_eq.mpr filter_upwards [(Analysis.DifferentialForms.Manifold.ChartEquiv.chartImageOpen e V).isOpen.mem_nhds (Analysis.DifferentialForms.Manifold.ChartEquiv.mem_chartImageOpen e V hx hxV)] with y hy rw [CoefficientMem.openCoefficientExtension_apply (Analysis.DifferentialForms.Manifold.ChartEquiv.chartImageOpen e V) _ โŸจy, hyโŸฉ, CoefficientMem.openCoefficientExtension_apply (Analysis.DifferentialForms.Manifold.ChartEquiv.chartImageOpen e U) _ โŸจy, โŸจhy.1, h hy.2โŸฉโŸฉ] rfl end section /-! The actual manifold function stalk maps to the holomorphic germ ring of each chart containing the point. -/ open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite open scoped _root_.Manifold ContDiff open OAI.AlgebraicGeometry.Comparison.Betti.Holomorphic.ChartMaps variable {E M : Type} [NormedAddCommGroup E] [NormedSpace โ„‚ E] [TopologicalSpace M] [ChartedSpace E M] [IsManifold ๐“˜(โ„‚, E) โˆž M] def chartGermCocone (e : OpenPartialHomeomorph M E) (he : e โˆˆ atlas E M) (x : M) (hx : x โˆˆ e.source) : Cocone ((OpenNhds.inclusion (X := TopCat.of M) x).op โ‹™ smoothPresheafCommRing ๐“˜(โ„‚, E) ๐“˜(โ„‚) M โ„‚) where pt := CommRingCat.of (ComplexGroups.HolomorphicAlgebraicity.HolomorphicGerms.Constructions.Germs.HolomorphicGerm (e x)) ฮน := { app := fun U => CommRingCat.ofHom (chartSectionGerm e he x hx U.unop.val U.unop.property) naturality := by intro U V f apply CommRingCat.hom_ext apply RingHom.ext intro a exact chartSectionGerm_restrict e he x hx (leOfHom f.unop) V.unop.property a } def chartStalkToGerm (e : OpenPartialHomeomorph M E) (he : e โˆˆ atlas E M) (x : M) (hx : x โˆˆ e.source) : (smoothPresheafCommRing ๐“˜(โ„‚, E) ๐“˜(โ„‚) M โ„‚).stalk x โ†’+* ComplexGroups.HolomorphicAlgebraicity.HolomorphicGerms.Constructions.Germs.HolomorphicGerm (e x) := (colimit.desc _ (chartGermCocone e he x hx)).hom theorem chartStalkToGerm_germ (e : OpenPartialHomeomorph M E) (he : e โˆˆ atlas E M) (x : M) (hx : x โˆˆ e.source) (U : Opens M) (hxU : x โˆˆ U) (f : C^โˆžโŸฎ๐“˜(โ„‚, E), U; ๐“˜(โ„‚), โ„‚โŸฏ) : chartStalkToGerm e he x hx ((smoothPresheafCommRing ๐“˜(โ„‚, E) ๐“˜(โ„‚) M โ„‚).germ U x hxU f) = chartSectionGerm e he x hx U hxU f := by exact DFunLike.congr_fun (congrArg CommRingCat.Hom.hom (colimit.ฮน_desc (chartGermCocone e he x hx) (op โŸจU, hxUโŸฉ))) f end section /-! Equality of chart function germs implies equality in the actual manifold structure stalk. -/ open _root_.CategoryTheory _root_.TopologicalSpace Opposite Set Filter open scoped _root_.Manifold ContDiff _root_.Topology open OAI.AlgebraicGeometry.Comparison.Betti.Holomorphic.ChartMaps variable {E M : Type} [NormedAddCommGroup E] [NormedSpace โ„‚ E] [TopologicalSpace M] [ChartedSpace E M] [IsManifold ๐“˜(โ„‚, E) โˆž M] theorem chartStalkToGerm_injective (e : OpenPartialHomeomorph M E) (he : e โˆˆ atlas E M) (x : M) (hx : x โˆˆ e.source) : Function.Injective (chartStalkToGerm e he x hx) := by intro a b hab obtain โŸจU, hxU, f, rflโŸฉ := (smoothPresheafCommRing ๐“˜(โ„‚, E) ๐“˜(โ„‚) M โ„‚).exists_germ_eq a obtain โŸจV, hxV, g, rflโŸฉ := (smoothPresheafCommRing ๐“˜(โ„‚, E) ๐“˜(โ„‚) M โ„‚).exists_germ_eq b change C^โˆžโŸฎ๐“˜(โ„‚, E), U; ๐“˜(โ„‚), โ„‚โŸฏ at f change C^โˆžโŸฎ๐“˜(โ„‚, E), V; ๐“˜(โ„‚), โ„‚โŸฏ at g have hab' : chartSectionGerm e he x hx U hxU f = chartSectionGerm e he x hx V hxV g := (chartStalkToGerm_germ e he x hx U hxU f).symm.trans (hab.trans (chartStalkToGerm_germ e he x hx V hxV g)) have hfg := congrArg Subtype.val hab' change (CoefficientMem.openCoefficientExtension (Analysis.DifferentialForms.Manifold.ChartEquiv.chartImageOpen e U) (chartFunctionSection e he U f).val : Germ (๐“ (e x)) โ„‚) = (CoefficientMem.openCoefficientExtension (Analysis.DifferentialForms.Manifold.ChartEquiv.chartImageOpen e V) (chartFunctionSection e he V g).val : Germ (๐“ (e x)) โ„‚) at hfg obtain โŸจW, hWeq, hW, hxWโŸฉ := mem_nhds_iff.mp (Germ.coe_eq.mp hfg) let T : Opens M := (U โŠ“ V) โŠ“ Analysis.DifferentialForms.Manifold.ChartEquiv.chartPreimageOpen e โŸจW, hWโŸฉ have hxT : x โˆˆ T := โŸจโŸจhxU, hxVโŸฉ, hx, hxWโŸฉ have hTU : T โ‰ค U := fun _ h => h.1.1 have hTV : T โ‰ค V := fun _ h => h.1.2 apply (smoothPresheafCommRing ๐“˜(โ„‚, E) ๐“˜(โ„‚) M โ„‚).germ_ext T hxT (homOfLE hTU) (homOfLE hTV) apply ContMDiffMap.ext intro y have hy := hWeq y.property.2.2 change CoefficientMem.openCoefficientExtension (Analysis.DifferentialForms.Manifold.ChartEquiv.chartImageOpen e U) (chartFunctionSection e he U f).val (e y) = CoefficientMem.openCoefficientExtension (Analysis.DifferentialForms.Manifold.ChartEquiv.chartImageOpen e V) (chartFunctionSection e he V g).val (e y) at hy rw [CoefficientMem.openCoefficientExtension_apply (Analysis.DifferentialForms.Manifold.ChartEquiv.chartImageOpen e U) _ โŸจe y, Analysis.DifferentialForms.Manifold.ChartEquiv.mem_chartImageOpen e U y.property.2.1 y.property.1.1โŸฉ, CoefficientMem.openCoefficientExtension_apply (Analysis.DifferentialForms.Manifold.ChartEquiv.chartImageOpen e V) _ โŸจe y, Analysis.DifferentialForms.Manifold.ChartEquiv.mem_chartImageOpen e V y.property.2.1 y.property.1.2โŸฉ] at hy change f โŸจe.symm (e y), _โŸฉ = g โŸจe.symm (e y), _โŸฉ at hy change f โŸจy, hTU y.propertyโŸฉ = g โŸจy, hTV y.propertyโŸฉ simpa only [e.left_inv y.property.2.1] using hy end /-! Every holomorphic germ in a manifold chart comes from an actual local manifold section. This identifies the native function stalk. -/ open _root_.CategoryTheory _root_.TopologicalSpace Opposite Filter open scoped _root_.Manifold ContDiff _root_.Topology open OAI.AlgebraicGeometry.Comparison.Betti.Holomorphic.ChartMaps variable {E M : Type} [NormedAddCommGroup E] [NormedSpace โ„‚ E] [FiniteDimensional โ„‚ E] [TopologicalSpace M] [ChartedSpace E M] [IsManifold ๐“˜(โ„‚, E) โˆž M] theorem chartSectionGerm_surjective (e : OpenPartialHomeomorph M E) (he : e โˆˆ atlas E M) (x : M) (hx : x โˆˆ e.source) (a : ComplexGroups.HolomorphicAlgebraicity.HolomorphicGerms.Constructions.Germs.HolomorphicGerm (e x)) : โˆƒ (U : Opens M) (hxU : x โˆˆ U) (f : C^โˆžโŸฎ๐“˜(โ„‚, E), U; ๐“˜(โ„‚), โ„‚โŸฏ), chartSectionGerm e he x hx U hxU f = a := by obtain โŸจW, hxW, g, hgโŸฉ := SectionGerms.AnalyticLocal.exists_holomorphicSectionGerm (e x) a let U := Analysis.DifferentialForms.Manifold.ChartEquiv.chartPreimageOpen e W have hxU : x โˆˆ U := โŸจhx, hxWโŸฉ let f : C^โˆžโŸฎ๐“˜(โ„‚, E), U; ๐“˜(โ„‚), โ„‚โŸฏ := โŸจ(StandardFunctionSheaf.AnalyticLocal.holomorphicFunctionContMDiffEquiv E W g) โˆ˜ ChartMaps.chartForward e W, (StandardFunctionSheaf.AnalyticLocal.holomorphicFunctionContMDiffEquiv E W g).property.comp (ChartMaps.chartForward_holomorphic e he W)โŸฉ refine โŸจU, hxU, f, ?_โŸฉ apply Eq.trans _ hg apply Subtype.ext apply Germ.coe_eq.mpr filter_upwards [W.isOpen.mem_nhds hxW, e.open_target.mem_nhds (e.map_source hx)] with y hyW hyt change y โˆˆ W at hyW have hyU : e.symm y โˆˆ U := โŸจe.map_target hyt, by change e (e.symm y) โˆˆ W rw [e.right_inv hyt] exact hyWโŸฉ rw [CoefficientMem.openCoefficientExtension_apply (Analysis.DifferentialForms.Manifold.ChartEquiv.chartImageOpen e U) _ โŸจy, โŸจhyt, hyUโŸฉโŸฉ, CoefficientMem.openCoefficientExtension_apply W _ โŸจy, hyWโŸฉ] change g.val โŸจe (e.symm y), _โŸฉ = g.val โŸจy, hyWโŸฉ apply congrArg g.val exact Subtype.ext (e.right_inv hyt) theorem chartStalkToGerm_surjective (e : OpenPartialHomeomorph M E) (he : e โˆˆ atlas E M) (x : M) (hx : x โˆˆ e.source) : Function.Surjective (chartStalkToGerm e he x hx) := by intro a obtain โŸจU, hxU, f, hfโŸฉ := chartSectionGerm_surjective e he x hx a exact โŸจ(smoothPresheafCommRing ๐“˜(โ„‚, E) ๐“˜(โ„‚) M โ„‚).germ U x hxU f, (chartStalkToGerm_germ e he x hx U hxU f).trans hfโŸฉ def chartFunctionStalkEquiv (e : OpenPartialHomeomorph M E) (he : e โˆˆ atlas E M) (x : M) (hx : x โˆˆ e.source) : (smoothPresheafCommRing ๐“˜(โ„‚, E) ๐“˜(โ„‚) M โ„‚).stalk x โ‰ƒ+* ComplexGroups.HolomorphicAlgebraicity.HolomorphicGerms.Constructions.Germs.HolomorphicGerm (e x) := RingEquiv.ofBijective (chartStalkToGerm e he x hx) โŸจchartStalkToGerm_injective e he x hx, chartStalkToGerm_surjective e he x hxโŸฉ end end OAI.AlgebraicGeometry.Comparison.Betti.Holomorphic.ChartStalkGerms.AnalyticLocal