import PoincareLib.Geometry.CurveShortening.Ramp.Analysis.Open.SmoothFixedPoint import PoincareLib.Geometry.CurveShortening.Ramp.LocalFlow.Smooth.CoefficientResponse /-! # One open smooth initial-state response on a common spectral slab The actual closed-trace domain is open. Finite-order coefficient extensions make the same forcing smooth at every point of that domain, so one branch works throughout an open initial-state neighborhood. MT2007 Claim 19.1, p. 437; `2026-09-22-open-smooth-spectral-branch.md`, statement 2. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set Filter MeasureTheory open scoped Topology ContDiff namespace PoincareMT.M63 open SpectralHeatNative QuasilinearDeTurckNative DeTurckMetricProducerNative /-- Actual local coefficient extensions give one smooth response on an open neighborhood of the initial state, with one lifespan, closed-trace domain control and local uniqueness in the physical forcing equation. MT2007 Claim 19.1, p. 437; open smooth spectral branch, statement 2. -/ theorem exists_open_smooth_coefficient_parameter_response {iota E : Type*} [Countable iota] [NormedAddCommGroup E] [NormedSpace ℝ E] [SecondCountableTopology E] [MeasurableSpace (State iota)] [BorelSpace (State iota)] (lambda : iota → NNReal) (w : State iota) {Tcap rcap : ℝ} (hTcap : 0 < Tcap) (hrcap : 0 < rcap) (M : E →L[ℝ] State iota →L[ℝ] State iota) (G : ℝ × State iota → E) (Q : ℝ × State iota → State iota) (hG : ContDiff ℝ 1 G) (hQ : ContDiff ℝ 1 Q) (hzero : G (0, w) = 0) (hLip : ∀ 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‖) {O : Set (ℝ × State iota)} (hO : IsOpen O) (hw : (0, w) ∈ O) (hext : ∀ k : ℕ, ∃ (Gk : ℝ × State iota → E) (Qk : ℝ × State iota → State iota), 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)) : ∃ T : ℝ, ∃ hT : 0 < T, T ≤ Tcap ∧ T ≤ 1 ∧ ∃ (F : ForcingSpace iota T) (u : State iota → ForcingSpace iota T) (U : Set (State iota)) (V : Set (State iota × ForcingSpace iota T)), ‖F‖ < rcap / 2 ∧ IsOpen U ∧ w ∈ U ∧ IsOpen V ∧ (w, F) ∈ V ∧ u w = F ∧ ContDiffOn ℝ ∞ u U ∧ ContDiffOn ℝ ∞ (fun w' => initialResponseTrace lambda w' hT.le (u w')) U ∧ (∀ w' ∈ U, ∀ t : Icc (0 : ℝ) T, ((t : ℝ), initialResponseTrace lambda w' hT.le (u w') t) ∈ O) ∧ (∀ w' ∈ U, ∀ᵐ t ∂timeMeasure T, ∀ ht : t ∈ Icc (0 : ℝ) T, u w' t = M (G (t, initialResponseTrace lambda w' hT.le (u w') ⟨t, ht⟩)) (initialHeatHigh lambda w' t + shiftedHighOperator hT.le lambda (u w') t - shiftedBaseMultiplier lambda (initialResponseTrace lambda w' hT.le (u w') ⟨t, ht⟩)) + Q (t, initialResponseTrace lambda w' hT.le (u w') ⟨t, ht⟩)) ∧ (∀ z ∈ V, (∀ᵐ t ∂timeMeasure T, ∀ ht : t ∈ Icc (0 : ℝ) T, z.2 t = M (G (t, initialResponseTrace lambda z.1 hT.le z.2 ⟨t, ht⟩)) (initialHeatHigh lambda z.1 t + shiftedHighOperator hT.le lambda z.2 t - shiftedBaseMultiplier lambda (initialResponseTrace lambda z.1 hT.le z.2 ⟨t, ht⟩)) + Q (t, initialResponseTrace lambda z.1 hT.le z.2 ⟨t, ht⟩)) ↔ u z.1 = z.2) ∧ ∀ t : Icc (0 : ℝ) T, ‖initialResponseTrace lambda w hT.le F t - heat lambda (t : ℝ).toNNReal w‖ < rcap := by obtain ⟨rdom, hrdom, Tdom, hTdom, hTdomcap, _hTdom1, hdomain⟩ := exists_initialResponseTrace_neighborhood lambda w (ContinuousMap.const Unit) ContinuousMap.continuous_const' hO (fun _ => hw) hTcap let r0 := min rcap rdom have hr0 : 0 < r0 := lt_min hrcap hrdom have hr0cap : r0 ≤ rcap := min_le_left _ _ have hr0dom : r0 ≤ rdom := min_le_right _ _ obtain ⟨KG, KQ, hcoeff⟩ := hLip (‖w‖ + r0) (by positivity) obtain ⟨T1, hT1, hT1dom, N, _hepsEq, _hprincipal, _hlower, heps, hsource⟩ := exists_centeredRealCoefficientSource lambda w hTdom hr0 M (fun t u => G (t, u)) (fun t u => Q (t, u)) hG.continuous hQ.continuous KG KQ (fun t _ u v hu hv => (hcoeff t u v hu hv).1) (fun t _ u v hu hv => (hcoeff t u v hu hv).2) hzero have huncut := hsource.mono (fun _ ht x hx => (ht x).2 hx) obtain ⟨r, hr, hrr0, T, hT, hTT1, hTle1, hkappa, hzeroSource⟩ := N.exists_strict_positive_interval hT1 heps (show 0 < r0 / 2 by positivity) let Nt := N.restrict hTT1 let kappa : ℝ := 2 * Nt.perturbationConstant + 8 * Nt.principalConstant * r + 2 * Nt.principalConstant * ‖(initialHeatHigh_memLp_energy lambda w hT.le).1.toLp (initialHeatHigh lambda w)‖ + 2 * Nt.lowerConstant * Real.sqrt T have hkappa0 : 0 ≤ kappa := by dsimp [kappa]; positivity have hkappa1 : kappa < 1 := hkappa have hz : ‖Nt.zero_memLp.toLp (fun t => Nt.toFun t 0)‖ < (1 - kappa) * r / 2 := hzeroSource have hweak : ‖Nt.zero_memLp.toLp (fun t => Nt.toFun t 0)‖ ≤ (1 - kappa) * r := by have hpos := mul_pos (sub_pos.mpr hkappa1) hr linarith only [hz, hpos] obtain ⟨F, _U, _D, _E, hF, _hU, _hD, _hE, hfix, _hrest⟩ := Nt.exists_initial_spectral_response hT.le hTle1 hr.le hkappa1 hweak have hFhalf := Nt.norm_fixedPoint_lt_half hT.le hTle1 hr hkappa1 hz F hF hfix have hFcap : ‖F‖ < r0 / 2 := by linarith only [hFhalf, hrr0, hr] have hinside (t : Icc (0 : ℝ) T) : ((t : ℝ), initialResponseTrace lambda w hT.le F t) ∈ O := hdomain T hT.le (hTT1.trans hT1dom) F (hFcap.trans_le (by gcongr)) t () have hsourceT := ae_mono (Measure.restrict_mono (Ioc_subset_Ioc le_rfl hTT1) le_rfl) huncut obtain ⟨R, hR, hrep, hagree⟩ := Nt.exists_contDiff_forcingResidual hT.le hTle1 hr.le (show 2 * r ≤ r0 by linarith only [hrr0]) M G Q hG hQ hsourceT have hRfix : R (w, F) = F := (hagree F hF).trans hfix have hFinterior : ‖F‖ < r := by linarith only [hFhalf, hr] have hRLip (A B : ForcingSpace iota T) (hA : ‖A‖ ≤ r) (hB : ‖B‖ ≤ r) : ‖R (w, A) - R (w, B)‖ ≤ kappa * ‖A - B‖ := by rw [hagree A hA, hagree B hB] exact Nt.norm_forcingResidual_sub_le hT.le hTle1 hr.le A B hA hB have hpartial : ‖(fderiv ℝ R (w, F)).comp (ContinuousLinearMap.inr ℝ (State iota) (ForcingSpace iota T))‖ < 1 := by have hprod : (0 : ForcingSpace iota T →L[ℝ] State iota).prod (ContinuousLinearMap.id ℝ (ForcingSpace iota T)) = ContinuousLinearMap.inr ℝ (State iota) (ForcingSpace iota T) := by ext y <;> rfl have hslice : HasFDerivAt (fun y : ForcingSpace iota T => R (w, y)) ((fderiv ℝ R (w, F)).comp (ContinuousLinearMap.inr ℝ (State iota) (ForcingSpace iota T))) F := by simpa only [Function.comp_def, hprod, id_eq] using (hR.contDiffAt.differentiableAt (by norm_num)).hasFDerivAt.comp F ((hasFDerivAt_const w F).prodMk (hasFDerivAt_id F)) apply (hslice.le_of_lip' hkappa0 ?_).trans_lt hkappa1 filter_upwards [Metric.closedBall_mem_nhds_of_mem (show F ∈ Metric.ball (0 : ForcingSpace iota T) r by simpa using hFinterior)] with y hy exact hRLip y F (by simpa using hy) hFinterior.le obtain ⟨V0, _, hV0⟩ := exists_initialHeatPath_operator lambda hT.le let X := State iota × ForcingSpace iota T let W : X →L[ℝ] ResponsePath iota T := V0.comp (ContinuousLinearMap.fst ℝ (State iota) (ForcingSpace iota T)) + (shiftedTraceOperator hT.le lambda).comp (ContinuousLinearMap.snd ℝ (State iota) (ForcingSpace iota T)) have hW (z : X) (t : Icc (0 : ℝ) T) : W z t = initialResponseTrace lambda z.1 hT.le z.2 t := by change V0 z.1 t + shiftedTracePath hT.le lambda z.2 t = _ rw [hV0] rfl let Z : X × Icc (0 : ℝ) T → ℝ × State iota := fun p => ((p.2 : ℝ), W p.1 p.2) have hZ : Continuous Z := (continuous_subtype_val.comp continuous_snd).prodMk (continuous_eval.comp ((W.continuous.comp continuous_fst).prodMk continuous_snd)) let Omega : Set X := {z | ∀ t : Icc (0 : ℝ) T, ((t : ℝ), initialResponseTrace lambda z.1 hT.le z.2 t) ∈ O} have hOmega : IsOpen Omega := by apply Metric.isOpen_iff.mpr intro z hzO obtain ⟨eps, heps, hnear⟩ := exists_uniform_open_parameter_radius (x0 := z) hZ hO (fun t => by simpa only [Z, hW] using hzO t) refine ⟨eps, heps, ?_⟩ intro y hy t simpa only [Z, hW] using hnear y hy t have hRinf : ContDiffOn ℝ ∞ R Omega := by intro z hzO exact (contDiffAt_initialForcing_of_local_extensions lambda hT.le M G Q R hrep z.1 z.2 hO hzO hext).contDiffWithinAt obtain ⟨U, V, u, hU, hwU, hV, hwV, huw, hu, hueq, hunique⟩ := exists_contDiffOn_fixedPoint_of_open_domain R hOmega hinside hRinf hRfix hpartial refine ⟨T, hT, hTT1.trans (hT1dom.trans hTdomcap), hTle1, F, u, U, V, hFcap.trans_le (by gcongr), hU, hwU, hV, hwV, huw, hu, ?_, ?_, ?_, ?_, ?_⟩ · have hpath : (fun w' => initialResponseTrace lambda w' hT.le (u w')) = fun w' => V0 w' + shiftedTraceOperator hT.le lambda (u w') := by funext w' apply ContinuousMap.ext intro t change heat lambda (t : ℝ).toNNReal w' + shiftedTracePath hT.le lambda (u w') t = _ rw [ContinuousMap.add_apply, hV0] rfl rw [hpath] exact V0.contDiff.contDiffOn.add ((shiftedTraceOperator hT.le lambda).contDiff.comp_contDiffOn hu) · intro w' hw' t exact (hueq w' hw').1 t · intro w' hw' have h := hrep w' (u w') rw [(hueq w' hw').2] at h exact h · intro z hzV refine Iff.trans ⟨?_, ?_⟩ (hunique z hzV) · intro heq apply Lp.ext filter_upwards [hrep z.1 z.2, heq, ae_restrict_mem measurableSet_Ioc] with t h1 h2 ht exact (h1 ⟨ht.1.le, ht.2⟩).trans (h2 ⟨ht.1.le, ht.2⟩).symm · intro heq have h := hrep z.1 z.2 rw [heq] at h exact h · intro t have hsqrt : Real.sqrt T ≤ 1 := by simpa only [Real.sqrt_one] using Real.sqrt_le_sqrt hTle1 apply ((initialResponseTrace_spec lambda w hT.le F).2.2.1 t).trans_lt calc (Real.sqrt T + 1) * ‖F‖ ≤ 2 * ‖F‖ := by gcongr; linarith only [hsqrt] _ < rcap := by linarith only [hFcap, hr0cap] end PoincareMT.M63