import OAI.Geometry.KahlerSplitting.ProductRetracts namespace OAI section noncomputable section open Set Filter Topology open scoped Manifold ContDiff namespace UniversalCoverSplitting variable {E F : Type} [NormedAddCommGroup E] [NormedSpace β„‚ E] [FiniteDimensional β„‚ E] [NormedAddCommGroup F] [NormedSpace β„‚ F] [FiniteDimensional β„‚ F] {M N : Type*} [TopologicalSpace M] [ChartedSpace E M] [IsManifold π“˜(β„‚,E) ∞ M] [TopologicalSpace N] [ChartedSpace F N] [IsManifold π“˜(β„‚,F) ∞ N] lemma holomorphic_local_chart_of_bijective {f : M β†’ N} (hf : MDifferentiable π“˜(β„‚,E) π“˜(β„‚,F) f) {p : M} (hbij : Function.Bijective (mfderiv π“˜(β„‚,E) π“˜(β„‚,F) f p)) : βˆƒ e : OpenPartialHomeomorph M N, p ∈ e.source ∧ EqOn e f e.source ∧ e.MDifferentiable π“˜(β„‚,E) π“˜(β„‚,F) := by let c := chartAt E p let d := chartAt F (f p) have hc : c.MDifferentiable π“˜(β„‚,E) π“˜(β„‚,E) := mdifferentiable_chart p have hd : d.MDifferentiable π“˜(β„‚,F) π“˜(β„‚,F) := mdifferentiable_chart (f p) have hpc : p ∈ c.source := mem_chart_source E p have hpd : f p ∈ d.source := mem_chart_source F (f p) let U : Set E := c.target ∩ (f ∘ c.symm) ⁻¹' d.source have hUc : IsOpen U := (hf.continuous.comp_continuousOn c.symm.continuousOn).isOpen_inter_preimage c.open_target d.open_source have hpU : c p ∈ U := ⟨c.map_source hpc,by change f (c.symm (c p)) ∈ d.source; rw [c.left_inv hpc]; exact hpd⟩ let H : E β†’ F := d ∘ f ∘ c.symm have hH : DifferentiableOn β„‚ H U := mdifferentiableOn_iff_differentiableOn.mp (hd.1.comp ((hf.mdifferentiableOn (s := univ)).comp (hc.2.mono inter_subset_left) (fun _ _ ↦ mem_univ _)) (fun _ hz ↦ hz.2)) have hD : Function.Bijective (fderiv β„‚ H (c p)) := by have hci := hc.mdifferentiableAt_symm (c.map_source hpc) have hfp := hf p have hdp := hd.mdifferentiableAt hpd have hcomp := mfderiv_comp (I := π“˜(β„‚,E)) (I' := π“˜(β„‚,E)) (I'' := π“˜(β„‚,F)) (c p) (by simpa only [c.left_inv hpc] using hfp) hci have hfp' : MDifferentiableAt π“˜(β„‚,E) π“˜(β„‚,F) f (c.symm (c p)) := by simpa only [c.left_inv hpc] using hfp have hfc : MDifferentiableAt π“˜(β„‚,E) π“˜(β„‚,F) (f ∘ c.symm) (c p) := hfp'.comp (c p) hci have hdp' : MDifferentiableAt π“˜(β„‚,F) π“˜(β„‚,F) d ((f ∘ c.symm) (c p)) := by simpa only [Function.comp_apply,c.left_inv hpc] using hdp have hcomp2 := mfderiv_comp (I := π“˜(β„‚,E)) (I' := π“˜(β„‚,F)) (I'' := π“˜(β„‚,F)) (c p) hdp' hfc rw [mfderiv_eq_fderiv] at hcomp2 change fderiv β„‚ H (c p)=_ at hcomp2 rw [hcomp2,hcomp] have hbij' : Function.Bijective (mfderiv π“˜(β„‚,E) π“˜(β„‚,F) f (c.symm (c p))) := by rw [c.left_inv hpc] exact hbij have hpd' : f (c.symm (c p)) ∈ d.source := by rwa [c.left_inv hpc] exact (hd.mfderiv_bijective hpd').comp (hbij'.comp (hc.symm.mfderiv_bijective (c.map_source hpc))) let L : E ≃L[β„‚] F := (LinearEquiv.ofBijective (fderiv β„‚ H (c p)).toLinearMap hD).toContinuousLinearEquiv have hL : HasFDerivAt H (L : E β†’L[β„‚] F) (c p) := (hH.differentiableAt (hUc.mem_nhds hpU)).hasFDerivAt let : CompleteSpace E := FiniteDimensional.complete β„‚ E obtain ⟨b,hb,hpb,hbU,hbd,hbdi⟩ := exists_holomorphic_ift_chart hUc (finite_holomorphic_contDiffOn_one hUc hH) hpU L hL have hbM : b.MDifferentiable π“˜(β„‚,E) π“˜(β„‚,F) := ⟨mdifferentiableOn_iff_differentiableOn.mpr (hbd.differentiableOn (by norm_num)), mdifferentiableOn_iff_differentiableOn.mpr (hbdi.differentiableOn (by norm_num))⟩ let e := (c.trans b).trans d.symm have heq (x : M) (hx : x ∈ e.source) : e x=f x := by change d.symm (b (c x))=f x rw [hb] change d.symm (d (f (c.symm (c x))))=f x rw [c.left_inv hx.1.1] have hh : f x ∈ d.source := by have h := (hbU hx.1.2).2 change f (c.symm (c x)) ∈ d.source at h rwa [c.left_inv hx.1.1] at h exact d.left_inv hh have hpe : p ∈ e.source := by refine ⟨⟨hpc,hpb⟩,?_⟩ change b (c p) ∈ d.target rw [hb] change d (f (c.symm (c p))) ∈ d.target rw [c.left_inv hpc] exact d.map_source hpd exact ⟨e,hpe,heq,(hc.trans hbM).trans hd.symm⟩ end UniversalCoverSplitting end end section noncomputable section open Set Filter Topology open scoped Manifold ContDiff namespace UniversalCoverSplitting namespace ProductRetracts variable {n r s : β„•} {X Z : ComplexManifold n} {S : HolomorphicSplitting X r s} {Ο€ : OrdinaryUniversalCover X Z} {o : Z.Carrier} {h₁ : Integrable S.projection} {hβ‚‚ : Integrable (complementaryProjection S)} [CompactSpace X.Carrier] (g : KahlerMetric X) (P : ProductRetracts Ο€ o h₁ hβ‚‚) lemma pair_derivative_bijective (z : Z.Carrier) : Function.Bijective (mfderiv (model n) ((model r).prod (model s)) (P.pair g) z) := by obtain ⟨e,hz,_⟩ := exists_coverProductChart Ο€ S h₁ hβ‚‚ z have heDiff : e.chart.MDifferentiable (model n) π“˜(β„‚,Model r Γ— Model s) := ⟨e.holomorphic,e.inverse_holomorphic⟩ have hd := mfderiv_prodMk (P.q₁_holomorphic g z) (P.qβ‚‚_holomorphic g z) change mfderiv (model n) ((model r).prod (model s)) (P.pair g) z = _ at hd have hinj : Function.Injective (mfderiv (model n) ((model r).prod (model s)) (P.pair g) z) := by apply (injective_iff_map_eq_zero _).mpr intro v hv rw [hd] at hv have hv₁ := congrArg Prod.fst hv have hvβ‚‚ := congrArg Prod.snd hv have he₁ := (e.factor_kernel (P.q₁_holomorphic g) (P.q₁_factor g e) hz (P.q₁_submersion g z) v).mp hv₁ have heβ‚‚ := (e.swap.factor_kernel (P.qβ‚‚_holomorphic g) (P.qβ‚‚_factor g e) hz (P.qβ‚‚_submersion g z) v).mp hvβ‚‚ rw [e.swap_derivative hz v] at heβ‚‚ have he : mfderiv (model n) π“˜(β„‚,Model r Γ— Model s) e.chart z v=0 := Prod.ext he₁ heβ‚‚ exact heDiff.mfderiv_injective hz (he.trans (map_zero _).symm) refine ⟨hinj,?_⟩ have hb := heDiff.mfderiv_bijective hz have hfin : Module.finrank β„‚ (Model n)=Module.finrank β„‚ (Model r Γ— Model s) := LinearEquiv.finrank_eq (LinearEquiv.ofBijective (show Model n β†’β‚—[β„‚] (Model r Γ— Model s) from (mfderiv (model n) π“˜(β„‚,Model r Γ— Model s) e.chart z).toLinearMap) hb) exact (LinearMap.injective_iff_surjective_of_finrank_eq_finrank hfin (f := (show Model n β†’β‚—[β„‚] (Model r Γ— Model s) from (mfderiv (model n) ((model r).prod (model s)) (P.pair g) z).toLinearMap))).mp hinj lemma pair_local_chart (z : Z.Carrier) : βˆƒ e : OpenPartialHomeomorph Z.Carrier (P.Y₁.Carrier Γ— P.Yβ‚‚.Carrier), z ∈ e.source ∧ EqOn e (P.pair g) e.source ∧ e.MDifferentiable (model n) ((model r).prod (model s)) := by let : ChartedSpace (Model r Γ— Model s) (P.Y₁.Carrier Γ— P.Yβ‚‚.Carrier) := prodChartedSpace (Model r) P.Y₁.Carrier (Model s) P.Yβ‚‚.Carrier have hmodel : (model r).prod (model s)=π“˜(β„‚,Model r Γ— Model s) := modelWithCornersSelf_prod.symm let : IsManifold π“˜(β„‚,Model r Γ— Model s) ∞ (P.Y₁.Carrier Γ— P.Yβ‚‚.Carrier) := by rw [←hmodel] exact IsManifold.prod (I := model r) (I' := model s) P.Y₁.Carrier P.Yβ‚‚.Carrier have hf : MDifferentiable (model n) π“˜(β„‚,Model r Γ— Model s) (P.pair g) := by rw [←hmodel]; exact P.pair_holomorphic g have hb : Function.Bijective (mfderiv (model n) π“˜(β„‚,Model r Γ— Model s) (P.pair g) z) := by rw [←hmodel]; exact P.pair_derivative_bijective g z obtain ⟨e,he,heq,hd⟩ := holomorphic_local_chart_of_bijective hf hb exact ⟨e,he,heq,by rw [hmodel]; exact hd⟩ lemma pair_isLocalHomeomorph : IsLocalHomeomorph (P.pair g) := by apply isLocalHomeomorph_iff_isOpenEmbedding_restrict.mpr intro z obtain ⟨e,he,heq,_⟩ := P.pair_local_chart g z refine ⟨e.source,e.open_source.mem_nhds he,?_⟩ have h : e.source.domRestrict (P.pair g)=e.source.domRestrict e := funext (fun x ↦ (heq x.property).symm) rw [h] exact e.isOpenEmbedding_restrict end ProductRetracts end UniversalCoverSplitting end end end OAI