Navier–Stokes: the Lean blow-up proof, cleaned up together
OpenAI's 2026 Lean proofs of blowup for forced Navier–Stokes and Euler, rerun by others, not refereed, no ruling from Clay; cleaned up together: more readable, faster to build

| 1 | import NavierStokes.PhysicalStageBounds |
| 2 | import NavierStokes.LocalPhysicalCopyBounds |
| 3 | import NavierStokes.SharpPhysicalLoss |
| 4 | |
| 5 | /-! ## From `NavierStokes/SharpPhysicalCopyBounds.lean` |
| 6 | |
| 7 | The text of `NavierStokes/SharpPhysicalCopyBounds.lean`, folded into this file, which was its only importer. -/ |
| 8 | |
| 9 | section |
| 10 | |
| 11 | noncomputable section |
| 12 | namespace NavierStokes.SharpPhysicalCopyBounds |
| 13 | open Set Function Filter ProblemStatement PhysicalWaveSum PhysicalCopyBounds LocalPhysicalCopyBounds |
| 14 | open SharpPhysicalPhase SharpPhysicalCarrier |
| 15 | open scoped Topology ContDiff BigOperators |
| 16 | |
| 17 | theorem common_carrier_log_bound {h a b Z r0 P B eBase : ℝ} |
| 18 | (hh : 0 ≤ h) (_hh1 : h ≤ 1 / 2) (ha : 0 < a) |
| 19 | (_hZ : 0 ≤ Z) (hr0 : 0 ≤ r0) (hP : 1 ≤ P) (hB : 1 ≤ B) (heBase : 0 ≤ eBase) |
| 20 | (Δ m : ℕ) (g eAmp A H : ℝ) (hA : 0 ≤ A) (hH : 0 ≤ H) : |
| 21 | ∃ C : ℝ, 0 ≤ C ∧ ∃ N : ℕ, ∀ n : ℕ, 4 ≤ n → ∀ d : ℕ, d ≤ Δ → |
| 22 | ∀ w : SpaceTime, PhysicalGraphBounds.scaledRadial n w ∈ PhysicalGraphBounds.annulus a b → |
| 23 | |w.1| ≤ 1 → ‖PhysicalGraphBounds.liftZT (PhysicalGraphBounds.physicalLift h n w)‖ ≤ Z → |
| 24 | ∀ q : ℝ, 0 < q → q / 2 ≤ ChartScales.Q n → ChartScales.Q n ≤ 2 * q → |
| 25 | ∀ (c : CarrierData) (amp : LiftPoint → ℂ) (j : ℤ), |
| 26 | |c.angular| ≤ P → |c.axial| ≤ P → |c.radial| ≤ P → |
| 27 | |PhysicalGraphBounds.etaCoordinate (PhysicalGraphBounds.nativeGraph h n w - c.center)| ≤ r0 → |
| 28 | ContDiff ℝ ∞ amp → ContDiff ℝ ∞ c.F → ContDiff ℝ ∞ c.G → |(j : ℝ)| ≤ H → |
| 29 | (∀ i ≤ m, ‖iteratedFDeriv ℝ i amp (commonLift h n d w)‖ ≤ |
| 30 | A * ChartScales.Q n ^ g * ChartScales.S n ^ eAmp) → |
| 31 | (∀ i ≤ m, ‖iteratedFDeriv ℝ i c.F |
| 32 | (PhysicalGraphBounds.slotMap (PolarCharts.chart a c.chart) |
| 33 | (ChartScales.timeCoefficient h n) c.center r0 (PhysicalGraphBounds.physicalLift h n w)).1‖ ≤ |
| 34 | B * ChartScales.S n ^ eBase) → |
| 35 | (∀ i ≤ m, ‖iteratedFDeriv ℝ i c.G |
| 36 | (PhysicalGraphBounds.slotMap (PolarCharts.chart a c.chart) |
| 37 | (ChartScales.timeCoefficient h n) c.center r0 (PhysicalGraphBounds.physicalLift h n w)).1‖ ≤ |
| 38 | B * ChartScales.S n ^ eBase) → |
| 39 | ‖iteratedFDeriv ℝ m (commonWave a h n d r0 c amp j) w‖ ≤ |
| 40 | C * q ^ (g - (m:ℝ)*derivativeCost h) * (1+|Real.log q|)^N := by |
| 41 | have hK : 0 ≤ coverBound Δ := zero_le_one.trans (coverBound_ge_one Δ) |
| 42 | obtain ⟨C,hC,hb⟩ := SharpPhysicalCarrier.native_carrier_bound (b := b) hh ha hr0 hP hB heBase |
| 43 | m g eAmp (A*coverBound Δ^m) H (by positivity) hH |
| 44 | obtain ⟨D,hD,N,hweight⟩ := SharpLogWeights.chart_weight_bound |
| 45 | (g-(m:ℝ)*derivativeCost h) (eAmp+(eBase+1)*(m:ℝ)) |
| 46 | refine ⟨C*D,mul_nonneg hC hD.le,N,?_⟩ |
| 47 | intro n hn d hd w hw ht hz q hq hlo hhi c amp j hp hpz hx0 hslot hamp hF hG hj hab hFb hGb |
| 48 | have hQ := ChartScales.Q_pos n |
| 49 | have hS := ChartScales.S_pos (show 1 ≤ n by omega) |
| 50 | have ha : ∀ i ≤ m, ‖iteratedFDeriv ℝ i (amp ∘ downLift d) (PhysicalGraphBounds.physicalLift h n w)‖ ≤ |
| 51 | (A*coverBound Δ^m)*ChartScales.Q n^g*ChartScales.S n^eAmp := by |
| 52 | intro i hi |
| 53 | exact (downLift_jet_bound hamp hd (PhysicalGraphBounds.physicalLift h n w) |
| 54 | (B := A*ChartScales.Q n^g*ChartScales.S n^eAmp) (by positivity) hab i hi).trans_eq (by ring) |
| 55 | have hF' : ∀ i ≤ m, ‖iteratedFDeriv ℝ i c.F (slowMap (PolarCharts.chart a c.chart) h n w)‖ ≤ |
| 56 | B*ChartScales.S n^eBase := by |
| 57 | intro i hi |
| 58 | rw [slowMap_eq_slot _ _ _ c.center r0] |
| 59 | exact hFb i hi |
| 60 | have hG' : ∀ i ≤ m, ‖iteratedFDeriv ℝ i c.G (slowMap (PolarCharts.chart a c.chart) h n w)‖ ≤ |
| 61 | B*ChartScales.S n^eBase := by |
| 62 | intro i hi |
| 63 | rw [slowMap_eq_slot _ _ _ c.center r0] |
| 64 | exact hGb i hi |
| 65 | have he := hb n hn w hw ht c.chart c.center c.angular c.axial c.radial hp hpz hx0 hslot |
| 66 | (amp ∘ downLift d) c.F c.G j (hamp.comp (downLift d).contDiff) hF hG hj ha hF' hG' |
| 67 | apply he.trans |
| 68 | calc |
| 69 | _ = C*(ChartScales.Q n^(g-(m:ℝ)*derivativeCost h)*ChartScales.S n^(eAmp+(eBase+1)*(m:ℝ))) := by ring |
| 70 | _ ≤ C*(D*q^(g-(m:ℝ)*derivativeCost h)*(1+|Real.log q|)^N) := |
| 71 | mul_le_mul_of_nonneg_left (hweight n (by omega) q hq hlo hhi) hC |
| 72 | _ = _ := by ring |
| 73 | |
| 74 | theorem common_carrier_log_bound_local {h a b Z r0 P B eBase : ℝ} |
| 75 | (hh : 0 ≤ h) (hh1 : h ≤ 1 / 2) (ha : 0 < a) |
| 76 | (hZ : 0 ≤ Z) (hr0 : 0 ≤ r0) (hP : 1 ≤ P) (hB : 1 ≤ B) (heBase : 0 ≤ eBase) |
| 77 | (Δ m : ℕ) (g eAmp A H : ℝ) (hA : 0 ≤ A) (hH : 0 ≤ H) : |
| 78 | ∃ C : ℝ, 0 ≤ C ∧ ∃ N : ℕ, ∀ n : ℕ, 4 ≤ n → ∀ d : ℕ, d ≤ Δ → |
| 79 | ∀ w : SpaceTime, PhysicalGraphBounds.scaledRadial n w ∈ PhysicalGraphBounds.annulus a b → |
| 80 | |w.1| ≤ 1 → ‖PhysicalGraphBounds.liftZT (PhysicalGraphBounds.physicalLift h n w)‖ ≤ Z → |
| 81 | ∀ q : ℝ, 0 < q → q / 2 ≤ ChartScales.Q n → ChartScales.Q n ≤ 2 * q → |
| 82 | ∀ (c : CarrierData) (amp : LiftPoint → ℂ) (j : ℤ), |
| 83 | |c.angular| ≤ P → |c.axial| ≤ P → |c.radial| ≤ P → |
| 84 | |PhysicalGraphBounds.etaCoordinate (PhysicalGraphBounds.nativeGraph h n w - c.center)| ≤ r0 → |
| 85 | SmoothNear amp (commonLift h n d w) → SmoothNear c.F (slotSlow c a h n r0 w) → |
| 86 | SmoothNear c.G (slotSlow c a h n r0 w) → |(j : ℝ)| ≤ H → |
| 87 | (∀ i ≤ m, ‖iteratedFDeriv ℝ i amp (commonLift h n d w)‖ ≤ |
| 88 | A * ChartScales.Q n ^ g * ChartScales.S n ^ eAmp) → |
| 89 | (∀ i ≤ m, ‖iteratedFDeriv ℝ i c.F (slotSlow c a h n r0 w)‖ ≤ |
| 90 | B * ChartScales.S n ^ eBase) → |
| 91 | (∀ i ≤ m, ‖iteratedFDeriv ℝ i c.G (slotSlow c a h n r0 w)‖ ≤ |
| 92 | B * ChartScales.S n ^ eBase) → |
| 93 | ‖iteratedFDeriv ℝ m (commonWave a h n d r0 c amp j) w‖ ≤ |
| 94 | C * q ^ (g - (m:ℝ)*derivativeCost h) * (1+|Real.log q|)^N := by |
| 95 | obtain ⟨C, hC, N, hb⟩ := common_carrier_log_bound (b := b) |
| 96 | hh hh1 ha hZ hr0 hP hB heBase Δ m g eAmp A H hA hH |
| 97 | refine ⟨C, hC, N, ?_⟩ |
| 98 | intro n hn d hd w hann ht hz q hq hlo hhi c amp j hp hpz hpx hslot haNear hFNear hGNear hj hab hFb hGb |
| 99 | obtain ⟨amp', ha', hea⟩ := haNear.exists_global_germ |
| 100 | obtain ⟨F, hF', heF⟩ := hFNear.exists_global_germ |
| 101 | obtain ⟨G, hG', heG⟩ := hGNear.exists_global_germ |
| 102 | have haxis := PhysicalGraphBounds.scaledRadial_ne_zero (PhysicalGraphBounds.annulus_axisFree ha hann) |
| 103 | rw [iteratedFDeriv_eq_of_eventuallyEq (commonWave_germ ha h n d r0 c j haxis hea heF heG) m] |
| 104 | apply hb n hn d hd w hann ht hz q hq hlo hhi (replaceProfiles c F G) amp' j |
| 105 | hp hpz hpx hslot ha' hF' hG' hj |
| 106 | · intro i hi |
| 107 | rw [← iteratedFDeriv_eq_of_eventuallyEq hea i] |
| 108 | exact hab i hi |
| 109 | · intro i hi |
| 110 | change ‖iteratedFDeriv ℝ i F (slotSlow c a h n r0 w)‖ ≤ _ |
| 111 | rw [← iteratedFDeriv_eq_of_eventuallyEq heF i] |
| 112 | exact hFb i hi |
| 113 | · intro i hi |
| 114 | change ‖iteratedFDeriv ℝ i G (slotSlow c a h n r0 w)‖ ≤ _ |
| 115 | rw [← iteratedFDeriv_eq_of_eventuallyEq heG i] |
| 116 | exact hGb i hi |
| 117 | |
| 118 | theorem physical_sum_log_bound {K : Type*} {h a b Z r0 P B eBase : ℝ} |
| 119 | (hh : 0 < h) (hh1 : h < 1 / 2) (ha : 0 < a) |
| 120 | (hZ : 0 ≤ Z) (hr0 : 0 ≤ r0) (hP : 1 ≤ P) (hB : 1 ≤ B) (heBase : 0 ≤ eBase) |
| 121 | (H Δ m : ℕ) (g eAmp A : ℝ) (hA : 0 ≤ A) : |
| 122 | ∃ C : ℝ, 0 ≤ C ∧ ∃ N : ℕ, ∀ f : CopyFamily H K, |
| 123 | SupportData f a b h r0 Z Δ → SmoothData f a h r0 → ∀ hc : SupportCells f, |
| 124 | JetData f hc a b h r0 P A B g eAmp eBase m → |
| 125 | ∀ w : SpaceTime, w ∈ preterminal → |w.1| ≤ 1 → |
| 126 | ‖iteratedFDeriv ℝ m (f.sum a h r0) w‖ ≤ |
| 127 | C * physicalQ h w ^ (g - (m:ℝ)*derivativeCost h) * (1+|Real.log (physicalQ h w)|)^N := by |
| 128 | obtain ⟨C, hC, N, hpoint⟩ := common_carrier_log_bound_local (b := b) hh.le hh1.le ha |
| 129 | hZ hr0 hP hB heBase Δ m g eAmp A (H : ℝ) hA (Nat.cast_nonneg H) |
| 130 | refine ⟨((2250 * (2 * H + 1) : ℕ) : ℝ) * C, mul_nonneg (Nat.cast_nonneg _) hC, N, ?_⟩ |
| 131 | intro f hr hs hc hb w hw ht |
| 132 | have hq := physicalQ_pos hh hh1 hw |
| 133 | have hcopy : ∀ (I : WaveIndex H), |
| 134 | physicalParams h w ∈ labelRegion (CoordinateAlgebra.D h) I.1.val → ∀ k, |
| 135 | ‖iteratedFDeriv ℝ m (f.term a h r0 I k) w‖ ≤ |
| 136 | C * physicalQ h w ^ (g - (m:ℝ)*derivativeCost h) * (1+|Real.log (physicalQ h w)|)^N := by |
| 137 | intro I hregion k |
| 138 | by_cases hts : w ∈ tsupport (f.term a h r0 I k) |
| 139 | · have hgeo := hr.tsupport_geometry I k hts |
| 140 | have hcell := hc.term_tsupport_mem ha I k hgeo.1 hts |
| 141 | obtain ⟨mode, hmode⟩ := hr.angular_integer k I.1 |
| 142 | let chart := chooseChart a (PhysicalGraphBounds.scaledRadial I.1.val.1 w) |
| 143 | have hchart : PhysicalGraphBounds.scaledRadial I.1.val.1 w ∈ PolarCharts.chartDomain a chart := |
| 144 | chooseChart_valid ha hgeo.1 |
| 145 | have he := globalWave_eventually_common (r0 := r0) ha I.1.val.1 (f.gap I.1) |
| 146 | (f.carrier k I.1) (f.amplitude k I) I.2.val mode hmode |
| 147 | (fun y hy => (hr.geometry_support k I y hy).1) chart hchart |
| 148 | change ‖iteratedFDeriv ℝ m (globalWave a h I.1.val.1 (f.gap I.1) r0 |
| 149 | (f.carrier k I.1) (f.amplitude k I) I.2.val) w‖ ≤ _ |
| 150 | rw [iteratedFDeriv_eq_of_eventuallyEq he m] |
| 151 | have hband := labelRegion_active_relation hregion |
| 152 | have hp := hs.profiles k I w hw hts chart hchart |
| 153 | have hjets := hb.jets k I w hw hregion hgeo.1 hcell hts |
| 154 | exact hpoint I.1.val.1 I.1.property (f.gap I.1) (hr.gap_le I.1) |
| 155 | w hgeo.1 ht hgeo.2.1 (physicalQ h w) hq hband.1 hband.2 |
| 156 | ((f.carrier k I.1).withChart chart) (f.amplitude k I) I.2.val |
| 157 | (hb.parameters k I.1).1 (hb.parameters k I.1).2.1 (hb.parameters k I.1).2.2 hgeo.2.2 |
| 158 | (hs.amplitude k I w hw hts) hp.1 hp.2 (harmonic_bound I.2) |
| 159 | hjets.1 (hjets.2 chart hchart).1 (hjets.2 chart hchart).2 |
| 160 | · rw [jet_zero_off_tsupport _ _ hts, norm_zero] |
| 161 | positivity |
| 162 | have hsum := masked_finsum_jet_bound hh hh1 (f.periodized a h r0) |
| 163 | (hr.periodized_smoothAt hs hc ha) hr.periodized_support hw m |
| 164 | (B := C * physicalQ h w ^ (g - (m:ℝ)*derivativeCost h) * (1+|Real.log (physicalQ h w)|)^N) (by positivity) |
| 165 | refine (hsum ?_).trans_eq (by ring) |
| 166 | intro I hregion |
| 167 | rcases hr.periodized_germ_cover hc ha I w with ⟨k, _, hg⟩ | hg |
| 168 | · rw [iteratedFDeriv_eq_of_eventuallyEq hg m] |
| 169 | exact hcopy I hregion k |
| 170 | · rw [iteratedFDeriv_eq_of_eventuallyEq hg m] |
| 171 | simp only [iteratedFDeriv_fun_zero, Pi.zero_apply, norm_zero] |
| 172 | positivity |
| 173 | |
| 174 | |
| 175 | |
| 176 | section WeightedInputs |
| 177 | open WeightedClasses |
| 178 | variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] {ι K : Type*} |
| 179 | {h a b r0 Z : ℝ} {H Δ : ℕ} {f : CopyFamily H K} |
| 180 | |
| 181 | theorem physical_sum_log_bound_of_weighted {s : StripData D} {α σ P : ℝ} |
| 182 | {w : ι → ℕ → D → ℝ} {source : ι → ℕ → D → ℂ} |
| 183 | (hsource : LocalSourceBounds s h α w source) {hc : SupportCells f} |
| 184 | (hchart : CommonChart f hc a b h r0 σ source) |
| 185 | (hmap : ∀ k I, MapsTo (hchart.map k I) (hchart.domain k I) s.domain) |
| 186 | (hb : PhysicalCopyBounds.CarrierBounds f hc a b h r0) |
| 187 | (hr : SupportData f a b h r0 Z Δ) (hs : SmoothData f a h r0) |
| 188 | (hh : 0 < h) (hh1 : h < 1 / 2) (ha : 0 < a) (hZ : 0 ≤ Z) (hr0 : 0 ≤ r0) |
| 189 | (hP : 1 ≤ P) (hp : ∀ k L, |(f.carrier k L).angular| ≤ P ∧ |
| 190 | |(f.carrier k L).axial| ≤ P ∧ |(f.carrier k L).radial| ≤ P) (m : ℕ) : |
| 191 | ∃ C : ℝ, 0 ≤ C ∧ ∃ N : ℕ, ∀ z : SpaceTime, |
| 192 | z ∈ preterminal → |z.1| ≤ 1 → |
| 193 | ‖iteratedFDeriv ℝ m (f.sum a h r0) z‖ ≤ |
| 194 | C * physicalQ h z ^ (h * α + σ - (m:ℝ)*derivativeCost h) * (1+|Real.log (physicalQ h z)|)^N := by |
| 195 | obtain ⟨A, hA, B, hB, p, q, hclass⟩ := localStrippedClass_of_weighted hsource hchart hmap hb hs hp m |
| 196 | obtain ⟨C, hC, N, hbound⟩ := physical_sum_log_bound (K := K) |
| 197 | (b := b) hh hh1 ha hZ hr0 hP hB (Nat.cast_nonneg q) H Δ m |
| 198 | (h * α + σ) p A hA |
| 199 | refine ⟨C, hC, N, ?_⟩ |
| 200 | intro z hz ht |
| 201 | exact hbound f hr hs hc hclass z hz ht |
| 202 | |
| 203 | end WeightedInputs |
| 204 | end NavierStokes.SharpPhysicalCopyBounds |
| 205 | end |
| 206 | |
| 207 | end |
| 208 | |
| 209 | noncomputable section |
| 210 | namespace NavierStokes.PhysicalStageBounds.WaveData |
| 211 | open Set Function Filter ProblemStatement |
| 212 | open SharpPhysicalCarrier |
| 213 | open scoped Topology ContDiff BigOperators |
| 214 | |
| 215 | private theorem nat_le_infty (m : ℕ) : (m : WithTop ℕ∞) ≤ ∞ := |
| 216 | WithTop.coe_le_coe.mpr le_top |
| 217 | |
| 218 | variable {h : ℝ} {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] {I K J : Type*} |
| 219 | |
| 220 | /-- Exact linear derivative loss for a genuine wave stage, derived from |
| 221 | its weighted native source, common-chart maps and phase profiles. -/ |
| 222 | theorem scalar_log_bound (W : WaveData h D I K J) |
| 223 | (hh : 0 < h) (hh1 : h < 1/2) (i : J) (m : ℕ) : |
| 224 | ∃ C : ℝ, 0 ≤ C ∧ ∃ N : ℕ, ∀ w ∈ PhysicalWaveSum.preterminal, |
| 225 | PhysicalWaveSum.physicalQ h w ≤ 1 → |
| 226 | ‖iteratedFDeriv ℝ m (W.scalar i) w‖ ≤ |
| 227 | C*PhysicalWaveSum.physicalQ h w^(h*W.alpha+W.shift-(m:ℝ)*derivativeCost h)* |
| 228 | (1+|Real.log (PhysicalWaveSum.physicalQ h w)|)^N := by |
| 229 | obtain ⟨C,hC,N,hb⟩ := SharpPhysicalCopyBounds.physical_sum_log_bound_of_weighted |
| 230 | W.source_bounds (W.chart i) (W.chart_maps i) (W.carrier i) (W.support i) (W.smooth i) |
| 231 | hh hh1 W.lower_pos W.slow_nonneg W.width_nonneg W.frequency_one_le (W.frequencies i) m |
| 232 | exact ⟨C,hC,N,fun w hw hq => hb w hw (abs_time_le_one hh hh1 hw hq)⟩ |
| 233 | |
| 234 | theorem vector_log_bound (W : WaveData h D I K (Fin 3)) |
| 235 | (hh : 0 < h) (hh1 : h < 1/2) (m : ℕ) : |
| 236 | ∃ C : ℝ, 0 ≤ C ∧ ∃ N : ℕ, ∀ w ∈ PhysicalWaveSum.preterminal, |
| 237 | PhysicalWaveSum.physicalQ h w ≤ 1 → |
| 238 | ‖iteratedFDeriv ℝ m W.vector w‖ ≤ |
| 239 | C*PhysicalWaveSum.physicalQ h w^(h*W.alpha+W.shift-(m:ℝ)*derivativeCost h)* |
| 240 | (1+|Real.log (PhysicalWaveSum.physicalQ h w)|)^N := by |
| 241 | classical |
| 242 | have hb := fun i => W.scalar_log_bound hh hh1 i m |
| 243 | choose C hC N hbound using hb |
| 244 | have hsum : 0 ≤ ∑ i, C i := Finset.sum_nonneg (fun i _ => hC i) |
| 245 | refine ⟨3*∑ i, C i, mul_nonneg (by norm_num) hsum, ∑ i, N i, ?_⟩ |
| 246 | intro w hw hq |
| 247 | have hq0 := PhysicalWaveSum.physicalQ_pos hh hh1 hw |
| 248 | have hL : 1 ≤ 1+|Real.log (PhysicalWaveSum.physicalQ h w)| := by linarith [abs_nonneg (Real.log (PhysicalWaveSum.physicalQ h w))] |
| 249 | have hci (i : Fin 3) : C i ≤ ∑ j, C j := |
| 250 | Finset.single_le_sum (fun j _ => hC j) (Finset.mem_univ i) |
| 251 | have hni (i : Fin 3) : N i ≤ ∑ j, N j := Finset.single_le_sum (by intros; omega) (Finset.mem_univ i) |
| 252 | have he := LocalPhysicalCopyBounds.vectorSum_jet_bound W.support W.smooth W.cells W.lower_pos hh hh1 hw m |
| 253 | (B := (∑ i, C i)*PhysicalWaveSum.physicalQ h w^(h*W.alpha+W.shift-(m:ℝ)*derivativeCost h)* |
| 254 | (1+|Real.log (PhysicalWaveSum.physicalQ h w)|)^(∑ i,N i)) |
| 255 | (fun i => (hbound i w hw hq).trans (mul_le_mul |
| 256 | (mul_le_mul_of_nonneg_right (hci i) (Real.rpow_nonneg hq0.le _)) |
| 257 | (pow_le_pow_right₀ hL (hni i)) (by positivity) (by positivity))) |
| 258 | exact he.trans_eq (by ring) |
| 259 | |
| 260 | private theorem common_loss_bound {α σ q C : ℝ} {m k : ℕ} |
| 261 | (hh : 0 ≤ h) (hσ : -(2*CoordinateAlgebra.A h) ≤ σ) (hq : 0 < q) (hq1 : q ≤ 1) |
| 262 | (hC : 0 ≤ C) (hkm : k ≤ m+1) (N : ℕ) : |
| 263 | C*q^(h*α+σ-(k:ℝ)*derivativeCost h)*(1+|Real.log q|)^N ≤ |
| 264 | C*q^(h*α-physicalLoss h m)*(1+|Real.log q|)^N := by |
| 265 | have hcost : 0 ≤ derivativeCost h := by unfold derivativeCost; linarith |
| 266 | have hk : (k:ℝ) ≤ (m:ℝ)+1 := by exact_mod_cast hkm |
| 267 | have he : h*α-physicalLoss h m ≤ h*α+σ-(k:ℝ)*derivativeCost h := by |
| 268 | unfold physicalLoss |
| 269 | nlinarith |
| 270 | exact mul_le_mul_of_nonneg_right |
| 271 | (mul_le_mul_of_nonneg_left (Real.rpow_le_rpow_of_exponent_ge hq hq1 he) hC) (by positivity) |
| 272 | |
| 273 | /-- The full physical wave vector obeys the manuscript's common `ell_m`. -/ |
| 274 | theorem vector_printed_bound (W : WaveData h D I K (Fin 3)) |
| 275 | (hh : 0 < h) (hh1 : h < 1/2) (hshift : -(2*CoordinateAlgebra.A h) ≤ W.shift) (m : ℕ) : |
| 276 | ∃ C : ℝ, 0 ≤ C ∧ ∃ N : ℕ, ∀ w ∈ PhysicalWaveSum.preterminal, |
| 277 | PhysicalWaveSum.physicalQ h w ≤ 1 → |
| 278 | ‖iteratedFDeriv ℝ m W.vector w‖ ≤ |
| 279 | C*PhysicalWaveSum.physicalQ h w^(h*W.alpha-physicalLoss h m)* |
| 280 | (1+|Real.log (PhysicalWaveSum.physicalQ h w)|)^N := by |
| 281 | obtain ⟨C,hC,N,hb⟩ := W.vector_log_bound hh hh1 m |
| 282 | exact ⟨C,hC,N,fun w hw hq => (hb w hw hq).trans |
| 283 | (common_loss_bound hh.le hshift (PhysicalWaveSum.physicalQ_pos hh hh1 hw) hq hC (by omega) N)⟩ |
| 284 | |
| 285 | end NavierStokes.PhysicalStageBounds.WaveData |