import OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.CoverPullback import OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.CoverDerivative import Mathlib.Geometry.Manifold.LocalDiffeomorph import OAI.Analysis.DifferentialForms.Manifold.LocalPullback /-! # Cover Local M -/ namespace OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.CoverLocalM.CM noncomputable section section /-! ThetaCycle: actual smooth local inverses of the constructed principal ball covers. -/ open scoped Classical _root_.Manifold ContDiff open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM theorem complex_contMDiffOn_of_mdifferentiableOn {E F M N : Type*} [NormedAddCommGroup E] [NormedSpace β„‚ E] [FiniteDimensional β„‚ E] [NormedAddCommGroup F] [NormedSpace β„‚ F] [FiniteDimensional β„‚ F] [TopologicalSpace M] [ChartedSpace E M] [IsManifold π“˜(β„‚, E) ∞ M] [TopologicalSpace N] [ChartedSpace F N] [IsManifold π“˜(β„‚, F) ∞ N] (f : M β†’ N) (U : TopologicalSpace.Opens M) (hf : MDifferentiableOn π“˜(β„‚, E) π“˜(β„‚, F) f U) : ContMDiffOn π“˜(β„‚, E) π“˜(β„‚, F) ∞ f U := by have hr : MDifferentiable π“˜(β„‚, E) π“˜(β„‚, F) (fun x : U => f x) := by intro x exact ((hf x x.property).mdifferentiableAt (U.isOpen.mem_nhds x.property)).comp x ((contMDiff_subtype_val (I := π“˜(β„‚, E)) (n := (1 : β„•βˆžΟ‰)) (U := U)).mdifferentiableAt one_ne_zero) have hs := OAI.Geometry.ComplexTorus.RiemannProjectivity.HolomorphicManifold.Constructions.HolomorphicManifoldRegularity.contMDiff_of_mdifferentiable hr intro x hx exact (contMDiffAt_subtype_iff.mp (hs (⟨x, hx⟩ : U))).contMDiffWithinAt variable (K : IntermediateField β„š β„‚) [NumberField K] [NumberField.IsCMField K] (B : HeckeCycles.GeometricSource.CM.BallDatum K) (N : β„•) (X : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (Ο€ : B.Domain β†’ X.analyticSpace) (hΟ€ : B.IsBallCover N X Ο€) include hΟ€ theorem ball_cover_local_diffeomorph : IsLocalDiffeomorph π“˜(β„‚, HeckeCycles.GeometricSource.CM.BallChart) π“˜(β„‚, X.analyticModel) ∞ Ο€ := by intro x obtain ⟨e, hx, he⟩ := hΟ€.2.2.1.isLocalHomeomorph x have hi : MDifferentiableOn π“˜(β„‚, X.analyticModel) π“˜(β„‚, HeckeCycles.GeometricSource.CM.BallChart) e.symm e.target := by intro y hy have h := HeckeCycles.CoverDerivative.CM.mdifferentiableAt_local_inverse e (e.map_target hy) (he β–Έ hΟ€.2.2.2.1 (e.symm y)) (he β–Έ hΟ€.2.2.2.2.1 (e.symm y)) rw [e.right_inv hy] at h exact h.mdifferentiableWithinAt let Ο† : PartialDiffeomorph π“˜(β„‚, HeckeCycles.GeometricSource.CM.BallChart) π“˜(β„‚, X.analyticModel) B.Domain X.analyticSpace ∞ := { toPartialEquiv := e.toPartialEquiv open_source := e.open_source open_target := e.open_target contMDiffOn_toFun := by change ContMDiffOn π“˜(β„‚, HeckeCycles.GeometricSource.CM.BallChart) π“˜(β„‚, X.analyticModel) ∞ e e.source rw [← he] exact (CoverPullback.CM.ball_cover_complex_smooth K B N X Ο€ hΟ€).contMDiffOn contMDiffOn_invFun := complex_contMDiffOn_of_mdifferentiableOn e.symm ⟨e.target, e.open_target⟩ hi } refine βŸ¨Ο†, hx, ?_⟩ intro y _ exact congrFun he y theorem ball_cover_real_local_diffeomorph : IsLocalDiffeomorph π“˜(ℝ, HeckeCycles.GeometricSource.CM.BallChart) π“˜(ℝ, X.analyticModel) ∞ Ο€ := by intro x obtain βŸ¨Ο†, hx, he⟩ := ball_cover_local_diffeomorph K B N X Ο€ hΟ€ x let ψ : PartialDiffeomorph π“˜(ℝ, HeckeCycles.GeometricSource.CM.BallChart) π“˜(ℝ, X.analyticModel) B.Domain X.analyticSpace ∞ := { toPartialEquiv := Ο†.toPartialEquiv open_source := Ο†.open_source open_target := Ο†.open_target contMDiffOn_toFun := fun z hz => (Analysis.DifferentialForms.Manifold.Holomorphic.contMDiffAt_real_of_complex ((Ο†.contMDiffOn_toFun z hz).contMDiffAt (Ο†.open_source.mem_nhds hz))).contMDiffWithinAt contMDiffOn_invFun := fun z hz => (Analysis.DifferentialForms.Manifold.Holomorphic.contMDiffAt_real_of_complex ((Ο†.contMDiffOn_invFun z hz).contMDiffAt (Ο†.open_target.mem_nhds hz))).contMDiffWithinAt } exact ⟨ψ, hx, he⟩ end section /-! ThetaCycle: actual descent of covector fields along a surjective local diffeomorphism. Fiber compatibility concerns transported tangent covectors; the descended form and its smoothness are constructed. -/ open scoped Classical _root_.Manifold ContDiff _root_.Topology open Set Filter variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] {M N : Type*} [TopologicalSpace M] [ChartedSpace E M] [TopologicalSpace N] [ChartedSpace F N] [IsManifold π“˜(ℝ, E) ∞ M] [IsManifold π“˜(ℝ, F) ∞ N] omit [IsManifold π“˜(ℝ, E) ∞ M] [IsManifold π“˜(ℝ, F) ∞ N] in theorem raw_pullback_local_section (f : M β†’ N) (hf : ContMDiff π“˜(ℝ, E) π“˜(ℝ, F) ∞ f) (s : N β†’ M) (U : Set N) (hU : IsOpen U) (hs : ContMDiffOn π“˜(ℝ, F) π“˜(ℝ, E) ∞ s U) (hfs : βˆ€ y ∈ U, f (s y) = y) (n : β„•) (a : Analysis.DifferentialForms.Manifold.Algebra.RawManifoldForm F N n) (y : N) (hy : y ∈ U) : (a.pullback (E := E) f).pullback s y = a y := by have hsAt := ((hs y hy).contMDiffAt (hU.mem_nhds hy)).mdifferentiableAt (by simp) have he : (f ∘ s) =αΆ [𝓝 y] id := eventuallyEq_of_mem (hU.mem_nhds hy) hfs have hd : (mfderiv π“˜(ℝ, E) π“˜(ℝ, F) f (s y)).comp (mfderiv π“˜(ℝ, F) π“˜(ℝ, E) s y) = ContinuousLinearMap.id ℝ F := by rw [← mfderiv_comp y (hf.mdifferentiableAt (by simp)) hsAt, he.mfderiv_eq, mfderiv_id] rfl ext v change a (f (s y)) (fun i => mfderiv π“˜(ℝ, E) π“˜(ℝ, F) f (s y) (mfderiv π“˜(ℝ, F) π“˜(ℝ, E) s y (v i))) = a y v have hv : (fun i => mfderiv π“˜(ℝ, E) π“˜(ℝ, F) f (s y) (mfderiv π“˜(ℝ, F) π“˜(ℝ, E) s y (v i))) = v := by funext i exact congrArg (fun L : F β†’L[ℝ] F => L (v i)) hd rw [hv, hfs y hy] theorem raw_form_smooth_of_cover_pullback (f : M β†’ N) (hs : Function.Surjective f) (hf : IsLocalDiffeomorph π“˜(ℝ, E) π“˜(ℝ, F) ∞ f) (n : β„•) (a : Analysis.DifferentialForms.Manifold.Algebra.RawManifoldForm F N n) (ha : Analysis.DifferentialForms.Manifold.Algebra.IsSmoothManifoldFormOn (a.pullback (E := E) f) univ) : Analysis.DifferentialForms.Manifold.Algebra.IsSmoothManifoldFormOn a univ := by have hlocal : βˆ€ y : N, βˆƒ U : Set N, y ∈ U ∧ IsOpen U ∧ Analysis.DifferentialForms.Manifold.Algebra.IsSmoothManifoldFormOn a U := by intro y obtain ⟨x, rfl⟩ := hs y obtain βŸ¨Ο†, hx, he⟩ := hf x have htarget : f x ∈ Ο†.target := by rw [he hx]; exact Ο†.map_source hx have hsection : βˆ€ y ∈ Ο†.target, f (Ο†.symm y) = y := by intro y hy exact (he (Ο†.map_target hy)).trans (Ο†.right_inv hy) refine βŸ¨Ο†.target, htarget, Ο†.open_target, ?_⟩ have hp := (a.pullback (E := E) f).pullback_smooth_on Ο†.open_target isOpen_univ ha Ο†.symm Ο†.contMDiffOn_invFun (fun _ _ => mem_univ _) exact hp.congr (fun y hy => raw_pullback_local_section f hf.contMDiff Ο†.symm Ο†.target Ο†.open_target Ο†.contMDiffOn_invFun hsection n a y hy) choose U hmem hopen hsmooth using hlocal exact Analysis.DifferentialForms.Manifold.Algebra.IsSmoothManifoldFormOn.of_openCover hsmooth hopen (fun y => ⟨y, hmem y⟩) def coverFiberCovector (f : M β†’ N) (hf : IsLocalDiffeomorph π“˜(ℝ, E) π“˜(ℝ, F) ∞ f) (n : β„•) (a : Analysis.DifferentialForms.Manifold.Algebra.RawManifoldForm E M n) (x : M) : Analysis.DifferentialForms.Manifold.Basic.FormValue F n := (a x).compContinuousLinearMap (hf.mfderivToContinuousLinearEquiv (by simp) x).symm.toContinuousLinearMap def coverRawDescent (f : M β†’ N) (hs : Function.Surjective f) (hf : IsLocalDiffeomorph π“˜(ℝ, E) π“˜(ℝ, F) ∞ f) (n : β„•) (a : Analysis.DifferentialForms.Manifold.Algebra.RawManifoldForm E M n) : Analysis.DifferentialForms.Manifold.Algebra.RawManifoldForm F N n := fun y => coverFiberCovector f hf n a (hs y).choose omit [IsManifold π“˜(ℝ, E) ∞ M] [IsManifold π“˜(ℝ, F) ∞ N] in theorem cover_raw_descent_pullback (f : M β†’ N) (hs : Function.Surjective f) (hf : IsLocalDiffeomorph π“˜(ℝ, E) π“˜(ℝ, F) ∞ f) (n : β„•) (a : Analysis.DifferentialForms.Manifold.Algebra.RawManifoldForm E M n) (hcompat : βˆ€ x y, f x = f y β†’ coverFiberCovector f hf n a x = coverFiberCovector f hf n a y) : (coverRawDescent f hs hf n a).pullback f = a := by funext x have he : coverRawDescent f hs hf n a (f x) = coverFiberCovector f hf n a x := hcompat _ x (hs (f x)).choose_spec ext v change coverRawDescent f hs hf n a (f x) (fun i => mfderiv π“˜(ℝ, E) π“˜(ℝ, F) f x (v i)) = a x v rw [he] change a x (fun i => (hf.mfderivToContinuousLinearEquiv (by simp) x).symm ((hf.mfderivToContinuousLinearEquiv (by simp) x) (v i))) = a x v simp only [ContinuousLinearEquiv.symm_apply_apply] theorem existsUnique_smooth_cover_descent (f : M β†’ N) (hs : Function.Surjective f) (hf : IsLocalDiffeomorph π“˜(ℝ, E) π“˜(ℝ, F) ∞ f) (n : β„•) (a : Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm E M n) (hcompat : βˆ€ x y, f x = f y β†’ coverFiberCovector f hf n a.val x = coverFiberCovector f hf n a.val y) : βˆƒ! b : Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm F N n, Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm.pullback f hf.contMDiff b = a := by have hraw := cover_raw_descent_pullback f hs hf n a.val hcompat let b : Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm F N n := ⟨coverRawDescent f hs hf n a.val, raw_form_smooth_of_cover_pullback f hs hf n _ (hraw.symm β–Έ a.smooth)⟩ have hb : Analysis.DifferentialForms.Manifold.Algebra.SmoothManifoldForm.pullback f hf.contMDiff b = a := Subtype.ext hraw refine ⟨b, hb, ?_⟩ intro c hc apply CoverPullback.CM.smooth_form_pullback_injective f hs (fun x => (hf.mfderivToContinuousLinearEquiv (by simp) x).surjective) hf.contMDiff n exact hc.trans hb.symm end /-! ThetaCycle: actual invariance under a smooth deck map identifies the tangent covectors transported down a local diffeomorphism. -/ open scoped _root_.Manifold ContDiff variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] {M N : Type*} [TopologicalSpace M] [ChartedSpace E M] [TopologicalSpace N] [ChartedSpace F N] theorem cover_fiber_covector_deck_invariant (f : M β†’ N) (hf : IsLocalDiffeomorph π“˜(ℝ, E) π“˜(ℝ, F) ∞ f) (g : M β†’ M) (hg : ContMDiff π“˜(ℝ, E) π“˜(ℝ, E) ∞ g) (hfg : f ∘ g = f) (n : β„•) (a : Analysis.DifferentialForms.Manifold.Algebra.RawManifoldForm E M n) (ha : a.pullback g = a) (x : M) : coverFiberCovector f hf n a x = coverFiberCovector f hf n a (g x) := by let J : M β†’ E ≃L[ℝ] F := fun y => hf.mfderivToContinuousLinearEquiv (by simp) y have hd : (mfderiv π“˜(ℝ, E) π“˜(ℝ, F) f (g x)).comp (mfderiv π“˜(ℝ, E) π“˜(ℝ, E) g x) = mfderiv π“˜(ℝ, E) π“˜(ℝ, F) f x := by rw [← mfderiv_comp x (hf.contMDiff.mdifferentiableAt (by simp)) (hg.mdifferentiableAt (by simp)), hfg] have hv (v : F) : mfderiv π“˜(ℝ, E) π“˜(ℝ, E) g x ((J x).symm v) = (J (g x)).symm v := by apply (J (g x)).injective rw [ContinuousLinearEquiv.apply_symm_apply] change (mfderiv π“˜(ℝ, E) π“˜(ℝ, F) f (g x)).comp (mfderiv π“˜(ℝ, E) π“˜(ℝ, E) g x) ((J x).symm v) = v rw [hd] exact (J x).apply_symm_apply v ext v have he := congrArg (fun b : Analysis.DifferentialForms.Manifold.Basic.FormValue E n => b (fun i => (J x).symm (v i))) (congrFun ha x) change a (g x) (fun i => mfderiv π“˜(ℝ, E) π“˜(ℝ, E) g x ((J x).symm (v i))) = a x (fun i => (J x).symm (v i)) at he simp only [hv] at he exact he.symm end end OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.CoverLocalM.CM