import PoincareLib.Geometry.CurveShortening.Ramp.LocalFlow.Ambient.H1Coefficients import PoincareLib.Geometry.CurveShortening.Ramp.LocalFlow.Ambient.FiniteOrderH1 import Mathlib.Topology.CompactOpen /-! # One physical neighborhood for all finite coefficient orders A compact enlargement of the initial jet image gives one open state neighborhood. Actual C1 ambient coefficients have finite-order local extensions there. MT2007 Claim 19.1, p. 437; `2026-09-21-ambient-local-coefficient-data.md`. -/ set_option autoImplicit false open Set PoincareMT.SpectralHeatNative open scoped Manifold ContDiff universe u v namespace PoincareMT.M63 variable {n : β„•} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] {ΞΉ : Type v} [Fintype ΞΉ] {a b L : ℝ} [Fact (0 < L)] local notation "W" => EuclideanSpace ℝ ΞΉ local notation "S" => State ((β„€ Γ— Fin 2) Γ— ΞΉ) /-- Actual normalized initial jets supply C1 coefficients and all finite-order local extensions on one open state neighborhood. MT2007 Claim 19.1, p. 437; ambient local coefficient data derivation. The identities retain the full complex decoders. -/ theorem exists_ambient_local_coefficient_data (F : RicciFlow n M (Icc a b)) {e : M β†’ W} (he : ContMDiff (𝓑 n) π“˜(ℝ, W) ∞ e) {U : Set W} (hU : IsOpen U) {ρ : W β†’ M} (hρ : ContMDiffOn π“˜(ℝ, W) (𝓑 n) ∞ ρ U) {K : Set (W Γ— W)} (hK : IsCompact K) (hsub : K βŠ† {z : W Γ— W | z.1 ∈ U ∧ mfderiv π“˜(ℝ, W) (𝓑 n) ρ z.1 z.2 β‰  0}) (w : S) {tau : ℝ} (htau : 0 < tau) (htaub : tau < b - a) : let jet := fun (u : S) (x : AddCircle L) => (WithLp.toLp 2 (vectorPeriodicJet (L := L) 1 0 (by omega) u x), WithLp.toLp 2 (vectorPeriodicJet (L := L) 1 1 (by omega) u x)) (βˆ€ x, jet w x ∈ K) β†’ (βˆ€ x, ambientCurvePrincipal F ρ a (jet w x).1 (jet w x).2 = 1) β†’ βˆƒ O : Set (ℝ Γ— S), IsOpen O ∧ (0, w) ∈ O ∧ (βˆ€ z ∈ O, z.1 < tau ∧ βˆ€ x, (jet z.2 x).1 ∈ U ∧ mfderiv π“˜(ℝ, W) (𝓑 n) ρ (jet z.2 x).1 (jet z.2 x).2 β‰  0) ∧ βˆƒ (G : ℝ Γ— S β†’ lp (fun _ : β„€ => β„‚) 2) (Q : ℝ Γ— S β†’ S), ContDiff ℝ 1 G ∧ ContDiff ℝ 1 Q ∧ G (0, w) = 0 ∧ (βˆ€ R : ℝ, 0 ≀ R β†’ βˆƒ KG KQ : NNReal, βˆ€ t u v, β€–uβ€– ≀ R β†’ β€–vβ€– ≀ R β†’ β€–G (t, u) - G (t, v)β€– ≀ KG * β€–u - vβ€– ∧ β€–Q (t, u) - Q (t, v)β€– ≀ KQ * β€–u - vβ€–) ∧ (βˆ€ t u, 0 ≀ t β†’ (t, u) ∈ O β†’ βˆ€ x, periodicSobolevJet (L := L) 0 0 (by omega) (G (t, u)) x = ((1 - ambientCurvePrincipal F ρ (a + t) (jet u x).1 (jet u x).2 : ℝ) : β„‚) ∧ βˆ€ i, periodicSobolevJet (L := L) 0 0 (by omega) (complexLpRealEquiv.symm (lpFinitePiEquiv ℝ (Q (t, u)) i)) x = (ambientCurveLower F e ρ (a + t) (jet u x).1 (jet u x).2 i : β„‚)) ∧ βˆ€ k : β„•, βˆƒ (Gk : ℝ Γ— S β†’ lp (fun _ : β„€ => β„‚) 2) (Qk : ℝ Γ— S β†’ S), ContDiff ℝ k Gk ∧ ContDiff ℝ k Qk ∧ βˆ€ t u, 0 ≀ t β†’ (t, u) ∈ O β†’ G (t, u) = Gk (t, u) ∧ Q (t, u) = Qk (t, u) := by classical dsimp only intro hjet hunit let jet := fun (u : S) (x : AddCircle L) => (WithLp.toLp 2 (vectorPeriodicJet (L := L) 1 0 (by omega) u x), WithLp.toLp 2 (vectorPeriodicJet (L := L) 1 1 (by omega) u x)) obtain ⟨K', hK', hKK', hK'U⟩ := exists_compact_between hK (isOpen_ambientCurveJetDomain F hU hρ) hsub let E : (ΞΉ β†’ ℝ) ≃L[ℝ] W := (PiLp.continuousLinearEquiv 2 ℝ (fun _ : ΞΉ => ℝ)).symm let D0 : S β†’L[ℝ] C(AddCircle L, W) := (E.toContinuousLinearMap.compLeftContinuous ℝ (AddCircle L)).comp (vectorPeriodicJet (L := L) 1 0 (by omega)) let D1 : S β†’L[ℝ] C(AddCircle L, W) := (E.toContinuousLinearMap.compLeftContinuous ℝ (AddCircle L)).comp (vectorPeriodicJet (L := L) 1 1 (by omega)) let D : S β†’ C(AddCircle L, W Γ— W) := fun u => (D0 u).prodMk (D1 u) have hD : Continuous D := by apply ContinuousMap.continuous_of_continuous_uncurry exact (continuous_eval.comp ((D0.continuous.comp continuous_fst).prodMk continuous_snd)).prodMk (continuous_eval.comp ((D1.continuous.comp continuous_fst).prodMk continuous_snd)) let H : ℝ Γ— S β†’ C(AddCircle L, ℝ Γ— (W Γ— W)) := fun z => (ContinuousMap.const (AddCircle L) z.1).prodMk (D z.2) have hH : Continuous H := ContinuousMap.continuous_prodMk_const.comp (continuous_fst.prodMk (hD.comp continuous_snd)) let O : Set (ℝ Γ— S) := {z | βˆ€ x, (z.1, jet z.2 x) ∈ Iio tau Γ—Λ’ interior K'} have hO : IsOpen O := by have heq : O = H ⁻¹' {f : C(AddCircle L, ℝ Γ— (W Γ— W)) | MapsTo f univ (Iio tau Γ—Λ’ interior K')} := by ext z exact ⟨fun hz x _ => hz x, fun hz x => hz (mem_univ x)⟩ rw [heq] exact (ContinuousMap.isOpen_setOfPred_mapsTo isCompact_univ (isOpen_Iio.prod isOpen_interior)).preimage hH have hw : (0, w) ∈ O := fun x => ⟨htau, hKK' (hjet x)⟩ have hcylinder (t : ℝ) (u : S) (ht : 0 ≀ t) (hu : (t, u) ∈ O) (x : AddCircle L) : (t, jet u x) ∈ Icc 0 tau Γ—Λ’ K' := ⟨⟨ht, (hu x).1.le⟩, interior_subset (hu x).2⟩ obtain ⟨O1, _hO1, hK1, _hO1U, G, Q, hG, hQ, hdecode, hLip⟩ := exists_ambientCurveH1_coefficients (L := L) F he hU hρ hK' hK'U htau.le htaub have hdecodeO (t : ℝ) (u : S) (ht : 0 ≀ t) (hu : (t, u) ∈ O) (x : AddCircle L) := hdecode t u x (hK1 (hcylinder t u ht hu x)) ht have hGzero : G (0, w) = 0 := by apply periodicH1Decoder_injective (L := L) apply ContinuousMap.ext intro x rw [map_zero, ContinuousMap.zero_apply] simpa only [add_zero, hunit x, sub_self, Complex.ofReal_zero] using (hdecodeO 0 w le_rfl hw x).1 refine ⟨O, hO, hw, ?_, G, Q, hG, hQ, hGzero, hLip, hdecodeO, ?_⟩ Β· intro z hz exact ⟨(hz 0).1, fun x => hK'U (interior_subset (hz x).2)⟩ Β· intro k obtain ⟨Ok, _hOk, hKk, _hOkU, Gk, Qk, hGk, hQk, hdecodek⟩ := exists_ambientCurveH1_finite_coefficients (L := L) F he hU hρ hK' hK'U k htau.le htaub refine ⟨Gk, Qk, hGk, hQk, ?_⟩ intro t u ht hu constructor Β· apply periodicH1Decoder_injective (L := L) apply ContinuousMap.ext intro x exact (hdecodeO t u ht hu x).1.trans (hdecodek t u x (hKk (hcylinder t u ht hu x)) ht).1.symm Β· apply (lpFinitePiEquiv (Ξ± := β„€ Γ— Fin 2) (ΞΉ := ΞΉ) (E := ℝ) ℝ).injective funext i apply complexLpRealEquiv.symm.injective apply periodicH1Decoder_injective (L := L) apply ContinuousMap.ext intro x exact ((hdecodeO t u ht hu x).2 i).trans ((hdecodek t u x (hKk (hcylinder t u ht hu x)) ht).2 i).symm end PoincareMT.M63