/- Copyright 2026 The Formal Conjectures Authors. Released under Apache 2.0 license as described in the file LICENSE. This file has been modified. -/ import OAI.AlgebraicTopology.LocalHomology.ChartFundamentalClassInvariance import OAI.AlgebraicTopology.LocalHomology.ChartFundamentalClassGenerator import Mathlib.Analysis.Calculus.FDeriv.Prod /-! # Holomorphic Normal Transition -/ namespace OAI.AlgebraicTopology.LocalHomology.HolomorphicNormalTransition.Singular noncomputable section /-! # The normal derivative of a support-preserving holomorphic transition Preservation of the zero-normal plane forces the tangent-to-normal derivative block to vanish. Differentiating the local inverse identity then constructs inverse normal blocks. Invertibility and orientation preservation of the normal map both follow from the given holomorphic support-preserving coordinate transition. -/ open _root_.Topology Filter _root_.CategoryTheory section GeneralNormal variable {E N : Type} [NormedAddCommGroup E] [NormedSpace ℂ E] [NormedAddCommGroup N] [NormedSpace ℂ N] /-- Let `E,N` be complex normed vector spaces and `A: E × N → E × N` a continuous complex-linear map. Its normal block is the continuous linear map `N → N` given by `v ↦ (A(0,v)).2`, the second component of `A` on the second summand. -/ def normalBlock (A : (E × N) →L[ℂ] (E × N)) : N →L[ℂ] N := (ContinuousLinearMap.snd ℂ E N).comp (A.comp (ContinuousLinearMap.inr ℂ E N)) @[simp] theorem normalBlock_apply (A : (E × N) →L[ℂ] (E × N)) (v : N) : normalBlock A v = (A (0, v)).2 := rfl /-- Differentiating preservation of the zero-normal plane kills the mixed derivative. -/ theorem normal_tangent_derivative_eq_zero {f : (E × N) → (E × N)} {A : (E × N) →L[ℂ] (E × N)} {a : E} (hf : HasFDerivAt f A (a, 0)) (hplane : ∀ᶠ v in 𝓝 a, (f (v, 0)).2 = 0) (v : E) : (A (v, 0)).2 = 0 := by have hc := (ContinuousLinearMap.snd ℂ E N).hasFDerivAt.comp a (hf.comp a (ContinuousLinearMap.inl ℂ E N).hasFDerivAt) have hp : (fun v : E => (f (v, 0)).2) =ᶠ[𝓝 a] fun _ => (0 : N) := hplane have heq := (hc.congr_of_eventuallyEq hp.symm).unique (hasFDerivAt_const (0 : N) a) exact DFunLike.congr_fun heq v /-- The normal blocks inherit a left inverse from a split ambient derivative when the inverse derivative preserves the tangent plane. -/ theorem normalBlock_leftInverse (A B : (E × N) →L[ℂ] (E × N)) (hBA : B.comp A = ContinuousLinearMap.id ℂ (E × N)) (hBT : ∀ v : E, (B (v, 0)).2 = 0) : Function.LeftInverse (normalBlock B) (normalBlock A) := by intro v have h := congrArg Prod.snd (DFunLike.congr_fun hBA (0, v)) have hs : A (0, v) = ((A (0, v)).1, 0) + (0, (A (0, v)).2) := by simp change (B (A (0, v))).2 = v at h rw [hs, map_add, Prod.snd_add, hBT, zero_add] at h exact h variable (e : OpenPartialHomeomorph (E × N) (E × N)) (a : E) (ha : (a, 0) ∈ e.source) (hplane : ∀ p ∈ e.source, (e p).2 = 0 ↔ p.2 = 0) (he : AnalyticAt ℂ e (a, 0)) (hei : AnalyticAt ℂ e.symm (e (a, 0))) omit [NormedSpace ℂ E] [NormedSpace ℂ N] in include ha hplane in theorem normalTransition_center_normal : (e (a, 0)).2 = 0 := (hplane (a, 0) ha).mpr rfl include ha hplane he in theorem normalTransition_tangent_derivative (v : E) : (fderiv ℂ e (a, 0) (v, 0)).2 = 0 := by apply normal_tangent_derivative_eq_zero he.differentiableAt.hasFDerivAt filter_upwards [(continuousAt_id.prodMk continuousAt_const) (e.open_source.mem_nhds ha)] with w hw exact (hplane (w, 0) hw).mpr rfl include ha hplane hei in theorem normalTransition_inverse_tangent_derivative (v : E) : (fderiv ℂ e.symm (e (a, 0)) (v, 0)).2 = 0 := by have hcenter : e (a, 0) = ((e (a, 0)).1, (0 : N)) := Prod.ext rfl (normalTransition_center_normal e a ha hplane) have hder := hei.differentiableAt.hasFDerivAt rw [hcenter] at hder have htarget : ((e (a, 0)).1, (0 : N)) ∈ e.target := hcenter ▸ e.map_source ha have hzero : ∀ᶠ w in 𝓝 (e (a, 0)).1, (e.symm (w, 0)).2 = 0 := by filter_upwards [(continuousAt_id.prodMk continuousAt_const) (e.open_target.mem_nhds htarget)] with w hw change (w, 0) ∈ e.target at hw apply (hplane (e.symm (w, 0)) (e.map_target hw)).mp rw [e.right_inv hw] simpa only [← hcenter] using normal_tangent_derivative_eq_zero hder hzero v include ha he hei in theorem normalTransition_derivative_leftInverse : (fderiv ℂ e.symm (e (a, 0))).comp (fderiv ℂ e (a, 0)) = ContinuousLinearMap.id ℂ (E × N) := by have h := hei.differentiableAt.hasFDerivAt.comp (a, (0 : N)) he.differentiableAt.hasFDerivAt have hi : (e.symm ∘ e) =ᶠ[𝓝 (a, (0 : N))] id := e.eventually_left_inverse ha exact (h.congr_of_eventuallyEq hi.symm).unique (hasFDerivAt_id _) include ha he hei in theorem normalTransition_derivative_rightInverse : (fderiv ℂ e (a, 0)).comp (fderiv ℂ e.symm (e (a, 0))) = ContinuousLinearMap.id ℂ (E × N) := by have hder : HasFDerivAt e (fderiv ℂ e (a, 0)) (e.symm (e (a, 0))) := by rw [e.left_inv ha] exact he.differentiableAt.hasFDerivAt have h := hder.comp (e (a, 0)) hei.differentiableAt.hasFDerivAt have hi : (e ∘ e.symm) =ᶠ[𝓝 (e (a, (0 : N)))] id := e.eventually_right_inverse' ha exact (h.congr_of_eventuallyEq hi.symm).unique (hasFDerivAt_id _) /-- Let `e` be a local homeomorphism of `E × N`, where `E,N` are complex normed vector spaces, preserving the locus `N = 0`. Suppose `e` and its inverse are analytic at `(a,0)` and `e(a,0)`. This continuous complex-linear equivalence on `N` is `v ↦ (De_(a,0)(0,v)).2`; its inverse is the same block of the derivative of `e⁻¹` at `e(a,0)`. -/ def normalTransitionDerivativeEquiv : N ≃L[ℂ] N where toLinearEquiv := { toLinearMap := normalBlock (fderiv ℂ e (a, 0)) invFun := normalBlock (fderiv ℂ e.symm (e (a, 0))) left_inv := normalBlock_leftInverse _ _ (normalTransition_derivative_leftInverse e a ha he hei) (normalTransition_inverse_tangent_derivative e a ha hplane hei) right_inv := normalBlock_leftInverse _ _ (normalTransition_derivative_rightInverse e a ha he hei) (normalTransition_tangent_derivative e a ha hplane he) } continuous_toFun := (normalBlock (fderiv ℂ e (a, 0))).continuous continuous_invFun := (normalBlock (fderiv ℂ e.symm (e (a, 0)))).continuous @[simp] theorem normalTransitionDerivativeEquiv_apply (v : N) : normalTransitionDerivativeEquiv e a ha hplane he hei v = (fderiv ℂ e (a, 0) (0, v)).2 := rfl /-- The map on a transverse normal fiber has the normal derivative. -/ theorem normalTransition_hasFDerivAt : HasFDerivAt (fun v : N => (e (a, v)).2) (normalTransitionDerivativeEquiv e a ha hplane he hei).toContinuousLinearMap 0 := by have h := (ContinuousLinearMap.snd ℂ E N).hasFDerivAt.comp (0 : N) (he.differentiableAt.hasFDerivAt.comp (0 : N) (hasFDerivAt_prodMk_right a 0)) convert h using 1 <;> rfl end GeneralNormal variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℂ E] variable (c : ℕ) (e : OpenPartialHomeomorph (E × (Fin c → ℂ)) (E × (Fin c → ℂ))) (a : E) (ha : (a, 0) ∈ e.source) (hplane : ∀ p ∈ e.source, (e p).2 = 0 ↔ p.2 = 0) (he : AnalyticAt ℂ e (a, 0)) (hei : AnalyticAt ℂ e.symm (e (a, 0))) /-- Let `E` be a complex normed vector space and `e` a local coordinate change on `E × ℂ^c`. Fix `a ∈ E`. This function `ℂ^c → ℂ^c` sends `v` to the normal component `(e(a,v)).2`. Its geometric domain is the set of `v` for which `(a,v)` lies in the source of `e`. -/ def normalTransitionMap (v : Fin c → ℂ) : Fin c → ℂ := (e (a, v)).2 /-- Only normal parameters whose full points are in the transition domain are used. -/ def normalTransitionDomain : Set (Fin c → ℂ) := {v | (a, v) ∈ e.source} omit [NormedSpace ℂ E] in theorem normalTransitionDomain_isOpen : IsOpen (normalTransitionDomain c e a) := e.open_source.preimage (continuous_const.prodMk continuous_id) omit [NormedSpace ℂ E] in include ha hplane in @[simp] theorem normalTransitionMap_zero : normalTransitionMap c e a 0 = 0 := normalTransition_center_normal e a ha hplane omit [NormedSpace ℂ E] in theorem normalTransitionMap_continuousOn : ContinuousOn (normalTransitionMap c e a) (normalTransitionDomain c e a) := (e.continuousOn.comp (continuous_const.prodMk continuous_id).continuousOn (fun _ hv => hv)).snd include ha hplane he hei in /-- The normal map preserves the exactly normalized complex class on a sufficiently small normal neighborhood. -/ theorem exists_open_normalTransition_localClass_invariance : ∃ (W : Set (Fin c → ℂ)) (hW : W ⊆ normalTransitionDomain c e a) (hne : ∀ v, v ∈ W → v ≠ 0 → normalTransitionMap c e a v ≠ 0), IsOpen W ∧ 0 ∈ W ∧ ∀ z : Singular.Cohomology.RelativeHomology ℚ (Singular.RelativePairExcision.neighborhoodPointComplementPair W 0) (2 * c), Singular.CohomologyTo.relativeHomologyMap ℚ (2 * c) (Singular.RelativePairExcision.neighborhoodPointComplementPairMap W 0) z = ComplexClass.Singular.standardComplexLocalClass ℚ c → Singular.CohomologyTo.relativeHomologyMap ℚ (2 * c) (ComplexClassDifferentiableInvariance.Singular.complexNeighborhoodPuncturedPairMapOf c W (normalTransitionMap c e a) ((normalTransitionMap_continuousOn c e a).mono hW) hne) z = ComplexClass.Singular.standardComplexLocalClass ℚ c := by let L := normalTransitionDerivativeEquiv e a ha hplane he hei let A := ChartFundamentalClassInvariance.Singular.complexMatrixOfContinuousLinearMap c L.toContinuousLinearMap have hA : A.det ≠ 0 := ChartFundamentalClassInvariance.Singular.complexMatrixOfContinuousLinearMap_det_ne_zero c L.toContinuousLinearMap L.injective have hAL : (A.mulVecLin.toContinuousLinearMap : (Fin c → ℂ) →L[ℂ] (Fin c → ℂ)) = L.toContinuousLinearMap := ContinuousLinearMap.ext fun v => ChartFundamentalClassInvariance.Singular.complexMatrixOfContinuousLinearMap_mulVec c L.toContinuousLinearMap v apply ComplexClassDifferentiableInvariance.Singular.exists_open_complexDifferentiable_localClass_invariance c A hA (normalTransitionDomain c e a) (normalTransitionDomain_isOpen c e a) ha (normalTransitionMap c e a) (normalTransitionMap_continuousOn c e a) (normalTransitionMap_zero c e a ha hplane) rw [hAL] exact normalTransition_hasFDerivAt e a ha hplane he hei end end OAI.AlgebraicTopology.LocalHomology.HolomorphicNormalTransition.Singular