import Mathlib import OAI.Geometry.PrescribedPotential.FrozenEllipticJets import OAI.Geometry.PrescribedPotential.NonlinearHessianCommutator import OAI.Geometry.PrescribedPotential.NonlinearRemainderStrong import OAI.Geometry.PrescribedPotential.RealSobolev import OAI.Geometry.PrescribedPotential.RegularityCoordinates namespace OAI /-! Commutator Support. -/ section noncomputable section open Set Filter Topology Matrix LineDeriv open scoped ContDiff SchwartzMap Classical Matrix.Norms.Elementwise namespace GlobalElliptic open Anticanonical SourceSmooth EllipticKernel SobolevChart variable {d : โ„•} {X : Type*} [TopologicalSpace X] [T2Space X] [CompactSpace X] {A : ComplexAtlas d X} {ฮน : Type*} [Fintype ฮน] lemma hessianLocalizedError_zero {ฮบ : ๐“ข(EC d, โ„‚)} (v : EC d) (f : ๐“ข(EC d, โ„‚)) {y : EC d} (hy : y โˆ‰ tsupport (ฮบ : EC d โ†’ โ„‚)) (i j : Fin d) : hessianLocalizedError ฮบ v i j f y = 0 := by have hz := notMem_tsupport_iff_eventuallyEq.mp hy have he : (SchwartzMap.smulLeftCLM โ„‚ ฮบ (โˆ‚_{v} f) : EC d โ†’ โ„‚) =แถ [๐“ y] (0 : ๐“ข(EC d, โ„‚)) := by filter_upwards [hz] with z hzz rw [SchwartzMap.smulLeftCLM_apply_apply ฮบ.hasTemperateGrowth] change ฮบ z * _ = 0 simp only [hzz,Pi.zero_apply,zero_mul] have hh := congrArg (fun u : ๐“ข(EC d, โ„‚) => u y) (hessianLocalizedError_identity ฮบ f v i j) rw [hessianEntrySchwartz_congr he,map_zero,_root_.zero_apply] at hh simp only [_root_.add_apply] at hh rw [SchwartzMap.smulLeftCLM_apply_apply ฮบ.hasTemperateGrowth] at hh change 0 = ฮบ y * _ + hessianLocalizedError ฮบ v i j f y at hh simp only [hz.eq_of_nhds,Pi.zero_apply,zero_mul,zero_add] at hh exact hh.symm omit [T2Space X] [CompactSpace X] in lemma source_hessian_zero_of_local {ฯ† : SmoothRealFunction A} {x : X} (he : ฯ†.value =แถ [๐“ x] (fun _ => 0)) (q : Fin A.count) (hx : x โˆˆ (A.chart q).source) : ฯ†.hessian q (A.chart q x) = 0 := by have ht := (A.chart q).mapsTo hx have hc : Tendsto (A.chart q).symm (๐“ (A.chart q x)) (๐“ x) := by simpa only [(A.chart q).left_inv hx] using ((A.chart q).symm.continuousAt ht).tendsto have hh : ฯ†.localExpression q =แถ [๐“ (A.chart q x)] (fun _ => 0) := he.comp_tendsto hc have h2 := (hh.fderiv (๐•œ := โ„)).fderiv_eq (๐•œ := โ„) change PotentialKaehler.hermitianPartMatrix (fderiv โ„ (fderiv โ„ (ฯ†.localExpression q)) (A.chart q x)) = 0 rw [h2] ext i j simp [PotentialKaehler.hermitianPartMatrix_apply,PotentialKaehler.hermitianPart] rfl namespace GluingData variable {g : KaehlerMetric A} (D : GluingData g ฮน) def derivativeSupport (p : ฮน) : Set X := (A.euclideanChart (D.patch p).index).symm '' tsupport (D.cutoff p : EC d โ†’ โ„‚) lemma localizedDerivative_tsupport (p : ฮน) (v : EC d) (f : Smooth A) : tsupport (D.localizedDerivative p v f : X โ†’ โ„‚) โІ D.derivativeSupport p := by rw [D.localizedDerivative_regularity] exact (globalize_tsupport _ _ _).trans (image_mono (D.cutoff p).realPart_support) omit [T2Space X] [CompactSpace X] in lemma derivativeSupport_source {p : ฮน} {x : X} (hx : x โˆˆ D.derivativeSupport p) : x โˆˆ (A.euclideanChart (D.patch p).index).source โˆง A.euclideanChart (D.patch p).index x โˆˆ tsupport (D.cutoff p : EC d โ†’ โ„‚) := by obtain โŸจy,hy,rflโŸฉ := hx have ht := (D.cutoff p).support_sub hy exact โŸจ(A.euclideanChart (D.patch p).index).symm.mapsTo ht, by rwa [(A.euclideanChart (D.patch p).index).right_inv ht]โŸฉ omit [T2Space X] [CompactSpace X] in lemma outsideDerivativeSupport_coord {p : ฮน} {x : X} (hx : x โˆ‰ D.derivativeSupport p) (hs : x โˆˆ (A.euclideanChart (D.patch p).index).source) : A.euclideanChart (D.patch p).index x โˆ‰ tsupport (D.cutoff p : EC d โ†’ โ„‚) := by intro hh exact hx โŸจ_,hh,(A.euclideanChart (D.patch p).index).left_inv hsโŸฉ lemma localizedDerivative_zero {p : ฮน} {x : X} (hx : x โˆ‰ D.derivativeSupport p) (v : EC d) (f : Smooth A) : D.localizedDerivative p v f x = 0 := image_eq_zero_of_notMem_tsupport (fun hh => hx (D.localizedDerivative_tsupport p v f hh)) lemma regularityError_zero {p : ฮน} {x : X} (hx : x โˆ‰ D.derivativeSupport p) (v : EC d) (f : Smooth A) (i j : Fin d) : D.regularityError p v i j f x = 0 := by change globalize (D.patch p).index (D.regularityCutoff p) _ x = 0 rw [globalize_apply] split_ifs with hs ยท have hh := D.outsideDerivativeSupport_coord hx hs have hz := hessianLocalizedError_zero v (localize A (D.patch p).index (cutoffGlobal (D.patch p).index (D.regularityOuter p)) (cutoffGlobal_support _ _) f) (fun hh' => hh ((D.cutoff p).realPart_support hh')) i j exact mul_eq_zero_of_right _ hz ยท rfl lemma nonlinearRemainder_zero {p : ฮน} {x : X} (hx : x โˆ‰ D.derivativeSupport p) (k : โ„•) (hk : Module.finrank โ„ (EC d) < k) (v : EC d) (f : Smooth A) : D.localizers.strong (k : โ„) (D.nonlinearRemainder k hk p v (D.localizers.embed ((k : โ„)+2) f)) x = 0 := by rw [D.nonlinearRemainder_strong_embed] have hm : (fun (i j : Fin d) => D.regularityError p v i j f x - D.localizedDerivative p v (D.regularityMetric p i j) x) = 0 := by ext i j rw [D.regularityError_zero hx,D.localizedDerivative_zero hx,sub_self] rfl let M : Matrix (Fin d) (Fin d) โ„‚ := fun i j => D.regularityMetric p i j x + D.regularityHessian p i j f x change D.regularityInverseDet p x * NonlinearHessian.detDifferential M _ - D.localizedDerivative p v (D.regularityInverseDet p) x * M.det = 0 rw [hm] change D.regularityInverseDet p x * NonlinearHessian.detDifferential M (0 : Matrix (Fin d) (Fin d) โ„‚) - D.localizedDerivative p v (D.regularityInverseDet p) x * M.det = 0 rw [(NonlinearHessian.detDifferential M).map_zero,D.localizedDerivative_zero hx, mul_zero,zero_mul,sub_self] lemma localizedDerivative_source_hessian_zero {p : ฮน} {x : X} (hx : x โˆ‰ D.derivativeSupport p) (v : EC d) (ฯ† : SmoothRealFunction A) (q : Fin A.count) (hq : x โˆˆ (A.chart q).source) : ((D.realLocalizedDerivative p v (RealSmooth.ofReal ฯ†)).source).hessian q (A.chart q x) = 0 := by apply source_hessian_zero_of_local _ q hq have hn : x โˆ‰ tsupport (D.localizedDerivative p v (Smooth.ofReal ฯ†) : X โ†’ โ„‚) := fun hh => hx (D.localizedDerivative_tsupport p v (Smooth.ofReal ฯ†) hh) have he := notMem_tsupport_iff_eventuallyEq.mp hn filter_upwards [he] with y hy change (D.localizedDerivative p v (Smooth.ofReal ฯ†) y).re = 0 rw [hy] rfl end GluingData end GlobalElliptic end end end OAI