import NavierStokes.PhysicalMeanJetBounds import NavierStokes.CutStageEstimates import NavierStokes.MixedDiagonalExtensions import NavierStokes.ValidBandGluing /-! # Gluing on the actual open dyadic validity regions The band floor is fixed. A sufficiently small positive physical scale is inside an open validity region of some band above that floor. The local formulas below are supplied on those open regions, rather than by the values of a fixed reference formula on its excluded dyadic faces. This module transfers local formulas, jets, zero germs, and already proved local endpoint extensions. It does not manufacture their local smoothness or identify them with a reference formula outside its validity region. -/ noncomputable section namespace NavierStokes.ValidDyadicBandCover open Set Filter ProblemStatement PhysicalWaveSum open scoped Topology ContDiff /-- Strictly inside the band: the normalized physical scale is in `(1/2,2)`. -/ noncomputable def band (h : ℝ) (n : ℕ) : Set SpaceTime := {w | w ∈ preterminal ∧ ChartScales.Q n / 2 < physicalQ h w ∧ physicalQ h w < 2 * ChartScales.Q n} theorem mem_band_iff {h : ℝ} {n : ℕ} {w : SpaceTime} : w ∈ band h n ↔ w ∈ preterminal ∧ physicalQ h w / ChartScales.Q n ∈ Ioo (1 / 2 : ℝ) 2 := by have hQ := ChartScales.Q_pos n simp only [band, Set.mem_ofPred_eq, mem_Ioo, lt_div_iff₀ hQ, div_lt_iff₀ hQ] constructor <;> rintro ⟨ht, hl, hr⟩ <;> refine ⟨ht, ?_, hr⟩ <;> linarith theorem band_open {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) (n : ℕ) : IsOpen (band h n) := by apply isOpen_iff_mem_nhds.mpr intro w hw have hc := (physicalQ_smoothAt hh hh1 hw.1).continuousAt exact inter_mem (preterminal_open.mem_nhds hw.1) (inter_mem (hc (isOpen_Ioi.mem_nhds hw.2.1)) (hc (isOpen_Iio.mem_nhds hw.2.2))) /-- The selected band has the stronger comparison `q ≤ Q_n < 2q`. -/ theorem exists_band {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) (N : ℕ) {w : SpaceTime} (ht : w ∈ preterminal) (hq : physicalQ h w ≤ ChartScales.Q N) : ∃ n : ℕ, N ≤ n ∧ w ∈ band h n ∧ physicalQ h w ≤ ChartScales.Q n := by obtain ⟨n, hn, hlo, hhi⟩ := PhysicalMeanJetBounds.exists_comparable_band N (physicalQ_pos hh hh1 ht) hq refine ⟨n, hn, ⟨ht, ?_, ?_⟩, hlo⟩ · linarith · have := ChartScales.Q_pos n linarith abbrev Index (N : ℕ) := {n : ℕ // N ≤ n} noncomputable def charts (h : ℝ) (N : ℕ) (n : Index N) : Set SpaceTime := band h n.val theorem sublevel_covered {h qbig : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) (N : ℕ) (hqbig : qbig ≤ ChartScales.Q N) : CutStageEstimates.physicalSublevel h qbig ⊆ ValidBandGluing.domain (charts h N) := by intro w hw obtain ⟨n, hn, hb, _⟩ := exists_band hh hh1 N hw.1 (hw.2.le.trans hqbig) exact ValidBandGluing.mem_domain_iff.mpr ⟨⟨n, hn⟩, hb⟩ variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] def Compatible (h : ℝ) (N : ℕ) (f : ℕ → SpaceTime → E) : Prop := ValidBandGluing.Compatible (charts h N) (fun n => f n.val) noncomputable def field (h : ℝ) (N : ℕ) (f : ℕ → SpaceTime → E) : SpaceTime → E := ValidBandGluing.representative (charts h N) (fun n => f n.val) omit [NormedSpace ℝ E] in theorem field_eq {h : ℝ} {N n : ℕ} {f : ℕ → SpaceTime → E} (hf : Compatible h N f) (hn : N ≤ n) {w : SpaceTime} (hw : w ∈ band h n) : field h N f w = f n w := ValidBandGluing.representative_eq_of_mem hf (i := ⟨n, hn⟩) hw omit [NormedSpace ℝ E] in theorem field_germ {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) {N n : ℕ} {f : ℕ → SpaceTime → E} (hf : Compatible h N f) (hn : N ≤ n) {w : SpaceTime} (hw : w ∈ band h n) : field h N f =ᶠ[𝓝 w] f n := ValidBandGluing.representative_germ (fun n : Index N => band_open hh hh1 n.val) hf (i := ⟨n, hn⟩) hw theorem field_smooth {h qbig : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) {N : ℕ} {f : ℕ → SpaceTime → E} (hf : Compatible h N f) (hqbig : qbig ≤ ChartScales.Q N) (hs : ∀ n, N ≤ n → ContDiffOn ℝ ∞ (f n) (band h n)) : ContDiffOn ℝ ∞ (field h N f) (CutStageEstimates.physicalSublevel h qbig) := (ValidBandGluing.representative_contDiffOn (fun n : Index N => band_open hh hh1 n.val) hf (fun n : Index N => hs n.val n.property)).mono (sublevel_covered hh hh1 N hqbig) theorem field_jet_eq {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) {N n : ℕ} {f : ℕ → SpaceTime → E} (hf : Compatible h N f) (hn : N ≤ n) {w : SpaceTime} (hw : w ∈ band h n) (m : ℕ) : iteratedFDeriv ℝ m (field h N f) w = iteratedFDeriv ℝ m (f n) w := ValidBandGluing.representative_iteratedFDeriv_eq (fun n : Index N => band_open hh hh1 n.val) hf (i := ⟨n, hn⟩) hw m /-- Pointwise transfer keeps any additional hypotheses on the physical point available to the caller, such as a fixed time bound. -/ theorem field_jet_bound_at {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) {N : ℕ} {f : ℕ → SpaceTime → E} (hf : Compatible h N f) {w : SpaceTime} (ht : w ∈ preterminal) (hq : physicalQ h w ≤ ChartScales.Q N) (m : ℕ) {B : ℝ} (hb : ∀ n, N ≤ n → w ∈ band h n → physicalQ h w ≤ ChartScales.Q n → ‖iteratedFDeriv ℝ m (f n) w‖ ≤ B) : ‖iteratedFDeriv ℝ m (field h N f) w‖ ≤ B := by obtain ⟨n, hn, hband, hcomp⟩ := exists_band hh hh1 N ht hq rw [field_jet_eq hh hh1 hf hn hband m] exact hb n hn hband hcomp /-- Select a comparable chart for the bound, independently of the chart chosen internally by `field`. No chart-count factor is incurred. -/ theorem field_jet_bound {h qbig : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) {N : ℕ} {f : ℕ → SpaceTime → E} (hf : Compatible h N f) (hqbig : qbig ≤ ChartScales.Q N) (m : ℕ) (B : SpaceTime → ℝ) (hb : ∀ n, N ≤ n → ∀ w ∈ band h n, physicalQ h w ≤ ChartScales.Q n → ‖iteratedFDeriv ℝ m (f n) w‖ ≤ B w) : ∀ w ∈ CutStageEstimates.physicalSublevel h qbig, ‖iteratedFDeriv ℝ m (field h N f) w‖ ≤ B w := by intro w hw exact field_jet_bound_at hh hh1 hf hw.1 (hw.2.le.trans hqbig) m (fun n hn hband hcomp => hb n hn w hband hcomp) omit [NormedSpace ℝ E] in /-- A local support proof in any valid chart supplies the actual zero germ of the representative, including at the physical axis. -/ theorem field_zero_germ {h qbig : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) {N : ℕ} {f : ℕ → SpaceTime → E} (hf : Compatible h N f) (hqbig : qbig ≤ ChartScales.Q N) {w : SpaceTime} (hw : w ∈ CutStageEstimates.physicalSublevel h qbig) (hz : ∀ n, N ≤ n → w ∈ band h n → f n =ᶠ[𝓝 w] fun _ => 0) : field h N f =ᶠ[𝓝 w] fun _ => 0 := by obtain ⟨n, hn, hband, _⟩ := exists_band hh hh1 N hw.1 (hw.2.le.trans hqbig) exact (field_germ hh hh1 hf hn hband).trans (hz n hn hband) /-- Endpoint selection concerns only the positive limiting scale. The endpoint itself is not inserted into any preterminal formula. -/ theorem endpoint_band {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) (N : ℕ) {x : Space} (hx : x 2 ≠ 0) (hq : EndpointCoordinates.endpointRoot (2 * h) (x 2) ≤ ChartScales.Q N) : ∃ n : ℕ, N ≤ n ∧ ChartScales.Q n / 2 < EndpointCoordinates.endpointRoot (2 * h) (x 2) ∧ EndpointCoordinates.endpointRoot (2 * h) (x 2) < 2 * ChartScales.Q n ∧ ∀ᶠ w in 𝓝[SpacetimeEndpoint.openPast 1] (1, x), w ∈ band h n := by obtain ⟨n, hn, hlo, hhi⟩ := PhysicalMeanJetBounds.exists_comparable_band N (EndpointCoordinates.endpointRoot_pos (2 * h) hx) hq have hl : ChartScales.Q n / 2 < EndpointCoordinates.endpointRoot (2 * h) (x 2) := by linarith have hr : EndpointCoordinates.endpointRoot (2 * h) (x 2) < 2 * ChartScales.Q n := by have := ChartScales.Q_pos n linarith refine ⟨n, hn, hl, hr, ?_⟩ have ht := MixedDiagonalExtensions.physicalQ_tendsto_endpoint hh hh1 hx filter_upwards [self_mem_nhdsWithin, ht.eventually (isOpen_Ioo.mem_nhds ⟨hl, hr⟩)] with w hw hq exact ⟨hw.1, hq⟩ /-- A proved continuation of the selected current-chart formula transfers to the representative. Local continuation remains a necessary premise. -/ theorem field_endpoint_extension {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) {N : ℕ} {f : ℕ → SpaceTime → E} (hf : Compatible h N f) {x : Space} (hx : x 2 ≠ 0) (hq : EndpointCoordinates.endpointRoot (2 * h) (x 2) ≤ ChartScales.Q N) (he : ∀ n, N ≤ n → ChartScales.Q n / 2 < EndpointCoordinates.endpointRoot (2 * h) (x 2) → EndpointCoordinates.endpointRoot (2 * h) (x 2) < 2 * ChartScales.Q n → Nonempty (JointResidualLimits.OneSidedExtension (f n) x)) : Nonempty (JointResidualLimits.OneSidedExtension (field h N f) x) := by obtain ⟨n, hn, hl, hr, hg⟩ := endpoint_band hh hh1 N hx hq apply MixedDiagonalExtensions.extension_of_eventuallyEq _ (Classical.choice (he n hn hl hr)) filter_upwards [hg] with w hw exact field_eq hf hn hw end NavierStokes.ValidDyadicBandCover