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.AnalyticCoefficientBounds |
| 2 | import NavierStokes.AnalyticPrimitive |
| 3 | import NavierStokes.NaturalAxisRange |
| 4 | import NavierStokes.NaturalAxisBridge |
| 5 | import Mathlib.Topology.MetricSpace.Thickening |
| 6 | import Mathlib.Analysis.Normed.Module.Convex |
| 7 | import Mathlib.Tactic.FunProp |
| 8 | |
| 9 | /-! |
| 10 | # The actual fixed coefficients of the natural-axis problem |
| 11 | |
| 12 | The pressure comes from its proved holomorphic integral extension. A common |
| 13 | complex neighborhood is chosen by compactness and nonvanishing of the two |
| 14 | actual denominators. Every fixed field is then embedded in the same complete |
| 15 | space of compatible coefficient functions. |
| 16 | -/ |
| 17 | |
| 18 | noncomputable section |
| 19 | |
| 20 | namespace NavierStokes.NaturalAxisCoefficients |
| 21 | |
| 22 | open Set Metric Filter Complex |
| 23 | open scoped Topology ContDiff BigOperators |
| 24 | open AxisCoefficientSpace AnalyticCoefficientBounds |
| 25 | |
| 26 | /-- A fixed, slightly enlarged real parameter interval. -/ |
| 27 | def window : Window := ⟨-11 / 10, 11 / 10, by norm_num⟩ |
| 28 | |
| 29 | theorem original_interval_interior : |
| 30 | Icc (-1 : ℝ) 1 ⊆ Ioo window.left window.right := by |
| 31 | intro x hx |
| 32 | dsimp [window] |
| 33 | constructor <;> linarith [hx.1, hx.2] |
| 34 | |
| 35 | def complexD (z : ℂ) : ℂ := 1 - z ^ 2 |
| 36 | def complexL (h : ℝ) (z : ℂ) : ℂ := 1 - 2 * (h : ℂ) * z ^ 2 |
| 37 | def complexU (j : ℝ) (z : ℂ) : ℂ := 4 * z + (j : ℂ) |
| 38 | def complexH (h j : ℝ) (z : ℂ) : ℂ := |
| 39 | (NaturalAxisData.D h : ℂ) * z + complexD z * complexU j z |
| 40 | def complexW (h j : ℝ) (z : ℂ) : ℂ := |
| 41 | 1 - 4 * complexD z - 2 * (NaturalAxisData.D h : ℂ) * z * complexU j z |
| 42 | def denominator (h j σ : ℝ) (z : ℂ) : ℂ := complexH h j z ^ 2 + (σ : ℂ) ^ 2 |
| 43 | def complexZ (h j : ℝ) (P : ℂ → ℂ) (z : ℂ) : ℂ := |
| 44 | -(NaturalAxisData.A h : ℂ) * (1 - 2 * z * complexU j z) * complexU j z - |
| 45 | complexH h j z * 4 - complexD z * deriv P z + |
| 46 | 4 * (NaturalAxisData.A h : ℂ) * z * P z |
| 47 | def complexChi (h j σ : ℝ) (z : ℂ) : ℂ := |
| 48 | complexH h j z ^ 2 / denominator h j σ z |
| 49 | def complexGradient (h j σ : ℝ) (z : ℂ) : ℂ := |
| 50 | -complexL h z * complexH h j z / denominator h j σ z |
| 51 | def realGradient (h j σ x : ℝ) : ℝ := |
| 52 | -NaturalAxisData.L h x * NaturalAxisData.H h j x / |
| 53 | (NaturalAxisData.H h j x ^ 2 + σ ^ 2) |
| 54 | |
| 55 | @[simp] theorem complexL_ofReal (h x : ℝ) : |
| 56 | complexL h (x : ℂ) = (NaturalAxisData.L h x : ℂ) := by |
| 57 | simp [complexL, NaturalAxisData.L] |
| 58 | |
| 59 | @[simp] theorem complexH_ofReal (h j x : ℝ) : |
| 60 | complexH h j (x : ℂ) = (NaturalAxisData.H h j x : ℂ) := by |
| 61 | simp [complexH, complexD, complexU, NaturalAxisData.H, NaturalAxisData.d, |
| 62 | NaturalAxisData.U] |
| 63 | |
| 64 | @[simp] theorem denominator_ofReal (h j σ x : ℝ) : |
| 65 | denominator h j σ (x : ℂ) = (NaturalAxisData.H h j x ^ 2 + σ ^ 2 : ℝ) := by |
| 66 | simp [denominator] |
| 67 | |
| 68 | @[simp] theorem complexGradient_ofReal (h j σ x : ℝ) : |
| 69 | complexGradient h j σ (x : ℂ) = (realGradient h j σ x : ℂ) := by |
| 70 | simp [complexGradient, realGradient, denominator] |
| 71 | |
| 72 | theorem L_pos_on_window {h j : ℝ} (hp : NaturalAxisRange.Parameters h j) |
| 73 | {x : ℝ} (hx : x ∈ window.interval) : 0 < NaturalAxisData.L h x := by |
| 74 | have hx' : -(11 / 10 : ℝ) ≤ x ∧ x ≤ 11 / 10 := by |
| 75 | simpa [window, Window.interval, neg_div] using hx |
| 76 | have hs : x ^ 2 ≤ 2 := by |
| 77 | nlinarith [mul_nonneg (sub_nonneg.mpr hx'.2) (show 0 ≤ x + 11 / 10 by linarith [hx'.1])] |
| 78 | have hh := mul_le_mul_of_nonneg_left hs hp.h_pos.le |
| 79 | dsimp [NaturalAxisData.L] |
| 80 | nlinarith [hp.h_le] |
| 81 | |
| 82 | theorem denominator_ne_zero_on_real (h j : ℝ) {σ : ℝ} (hσ : 0 < σ) (x : ℝ) : |
| 83 | denominator h j σ (x : ℂ) ≠ 0 := by |
| 84 | rw [denominator_ofReal] |
| 85 | exact_mod_cast ne_of_gt (add_pos_of_nonneg_of_pos |
| 86 | (sq_nonneg (NaturalAxisData.H h j x)) (sq_pos_of_pos hσ)) |
| 87 | |
| 88 | /-- The open region where all fixed rational expressions and pressure are analytic. -/ |
| 89 | def regularSet (h j σ : ℝ) : Set ℂ := |
| 90 | PressureDatum.strip ∩ {z | complexL h z ≠ 0} ∩ {z | denominator h j σ z ≠ 0} |
| 91 | |
| 92 | theorem regularSet_open (h j σ : ℝ) : IsOpen (regularSet h j σ) := by |
| 93 | have hL : Continuous (complexL h) := by unfold complexL; fun_prop |
| 94 | have hden : Continuous (denominator h j σ) := by |
| 95 | unfold denominator complexH complexD complexU |
| 96 | fun_prop |
| 97 | exact (PressureDatum.strip_open.inter (isOpen_ne_fun hL continuous_const)).inter |
| 98 | (isOpen_ne_fun hden continuous_const) |
| 99 | |
| 100 | theorem real_mem_regularSet {h j σ : ℝ} (hp : NaturalAxisRange.Parameters h j) |
| 101 | (hσ : 0 < σ) {x : ℝ} (hx : x ∈ window.interval) : |
| 102 | (x : ℂ) ∈ regularSet h j σ := by |
| 103 | refine ⟨⟨PressureDatum.real_mem_strip x, ?_⟩, denominator_ne_zero_on_real h j hσ x⟩ |
| 104 | change complexL h (x : ℂ) ≠ 0 |
| 105 | rw [complexL_ofReal] |
| 106 | exact_mod_cast (L_pos_on_window hp hx).ne' |
| 107 | |
| 108 | theorem complexGradient_analytic (h j σ : ℝ) : |
| 109 | AnalyticOnNhd ℂ (complexGradient h j σ) (regularSet h j σ) := by |
| 110 | intro z hz |
| 111 | have hden : denominator h j σ z ≠ 0 := hz.2 |
| 112 | change AnalyticAt ℂ (fun w => complexGradient h j σ w) z |
| 113 | dsimp [complexGradient, denominator, complexH, complexD, complexU, complexL] |
| 114 | fun_prop (disch := assumption) |
| 115 | |
| 116 | inductive Field |
| 117 | | one | eta | d | inverseL | uStar | uStarEta | wStar | hStar | zStar | chi | gradient |
| 118 | deriving DecidableEq |
| 119 | |
| 120 | instance : Fintype Field := |
| 121 | ⟨{.one, .eta, .d, .inverseL, .uStar, .uStarEta, .wStar, .hStar, .zStar, .chi, .gradient}, |
| 122 | by intro x; cases x <;> simp⟩ |
| 123 | |
| 124 | def complexField (h j σ : ℝ) (P : ℂ → ℂ) : Field → ℂ → ℂ |
| 125 | | .one => fun _ => 1 |
| 126 | | .eta => fun z => z |
| 127 | | .d => complexD |
| 128 | | .inverseL => fun z => (complexL h z)⁻¹ |
| 129 | | .uStar => complexU j |
| 130 | | .uStarEta => fun _ => 4 |
| 131 | | .wStar => complexW h j |
| 132 | | .hStar => complexH h j |
| 133 | | .zStar => complexZ h j P |
| 134 | | .chi => complexChi h j σ |
| 135 | | .gradient => complexGradient h j σ |
| 136 | |
| 137 | def realField (h j σ : ℝ) (P : ℝ → ℝ) : Field → ℝ → ℝ |
| 138 | | .one => fun _ => 1 |
| 139 | | .eta => fun x => x |
| 140 | | .d => NaturalAxisData.d |
| 141 | | .inverseL => fun x => (NaturalAxisData.L h x)⁻¹ |
| 142 | | .uStar => NaturalAxisData.U j |
| 143 | | .uStarEta => fun _ => 4 |
| 144 | | .wStar => NaturalAxisData.W h j |
| 145 | | .hStar => NaturalAxisData.H h j |
| 146 | | .zStar => NaturalAxisData.Z h j P |
| 147 | | .chi => NaturalAxisData.chi h j σ |
| 148 | | .gradient => realGradient h j σ |
| 149 | |
| 150 | theorem deriv_complexPressure_ofReal {g a : ℝ → ℝ} {cap : ℝ} |
| 151 | (hp : PressureDatum.Admissible g a cap) (x : ℝ) : |
| 152 | deriv (PressureDatum.complexPressure g a) (x : ℂ) = |
| 153 | ((deriv (PressureDatum.pressure g a) x : ℝ) : ℂ) := by |
| 154 | have hc := ((PressureDatum.complexPressure_analytic hp (x : ℂ) |
| 155 | (PressureDatum.real_mem_strip x)).differentiableAt.hasDerivAt).comp_ofReal |
| 156 | have hr := (PressureDatum.hasDerivAt_pressure hp x).differentiableAt.hasDerivAt.ofReal_comp |
| 157 | have hc' : HasDerivAt (fun t : ℝ => (PressureDatum.pressure g a t : ℂ)) |
| 158 | (deriv (PressureDatum.complexPressure g a) (x : ℂ)) x := by |
| 159 | simpa only [PressureDatum.complexPressure_ofReal] using hc |
| 160 | exact hc'.unique hr |
| 161 | |
| 162 | theorem complexField_ofReal {g a : ℝ → ℝ} {cap : ℝ} |
| 163 | (hp : PressureDatum.Admissible g a cap) (h j σ : ℝ) (k : Field) (x : ℝ) : |
| 164 | complexField h j σ (PressureDatum.complexPressure g a) k (x : ℂ) = |
| 165 | (realField h j σ (PressureDatum.pressure g a) k x : ℂ) := by |
| 166 | cases k <;> |
| 167 | simp [complexField, realField, complexD, complexL, complexU, complexH, complexW, |
| 168 | complexZ, complexChi, complexGradient, denominator, realGradient, |
| 169 | NaturalAxisData.d, NaturalAxisData.L, NaturalAxisData.U, NaturalAxisData.H, |
| 170 | NaturalAxisData.W, NaturalAxisData.Z, NaturalAxisData.chi, |
| 171 | deriv_complexPressure_ofReal hp] |
| 172 | |
| 173 | theorem complexField_analytic {g a : ℝ → ℝ} {cap : ℝ} |
| 174 | (hp : PressureDatum.Admissible g a cap) (h j σ : ℝ) (k : Field) : |
| 175 | AnalyticOnNhd ℂ (complexField h j σ (PressureDatum.complexPressure g a) k) |
| 176 | (regularSet h j σ) := by |
| 177 | intro z hz |
| 178 | have hL : complexL h z ≠ 0 := hz.1.2 |
| 179 | have hden : denominator h j σ z ≠ 0 := hz.2 |
| 180 | have hP := PressureDatum.complexPressure_analytic hp z hz.1.1 |
| 181 | have hP' := hP.deriv |
| 182 | change AnalyticAt ℂ |
| 183 | (fun w => complexField h j σ (PressureDatum.complexPressure g a) k w) z |
| 184 | cases k <;> |
| 185 | dsimp [complexField, complexD, complexL, complexU, complexH, complexW, |
| 186 | complexZ, complexChi, complexGradient, denominator] <;> |
| 187 | fun_prop (disch := assumption) |
| 188 | |
| 189 | /-- One compact complex neighborhood for the whole finite family. -/ |
| 190 | theorem exists_common_neighborhood {h j σ : ℝ} |
| 191 | (hp : NaturalAxisRange.Parameters h j) (hσ : 0 < σ) : |
| 192 | ∃ ρ : ℝ, 0 < ρ ∧ ∃ K : Set ℂ, IsCompact K ∧ |
| 193 | (∀ x ∈ window.interval, closedBall (x : ℂ) ρ ⊆ K) ∧ K ⊆ regularSet h j σ := by |
| 194 | let R : Set ℂ := Complex.ofReal '' window.interval |
| 195 | have hR : IsCompact R := isCompact_Icc.image Complex.continuous_ofReal |
| 196 | have hsub : R ⊆ regularSet h j σ := by |
| 197 | rintro z ⟨x, hx, rfl⟩ |
| 198 | exact real_mem_regularSet hp hσ hx |
| 199 | obtain ⟨ρ, hρ, hρU⟩ := hR.exists_cthickening_subset_open (regularSet_open h j σ) hsub |
| 200 | refine ⟨ρ, hρ, cthickening ρ R, hR.cthickening, ?_, hρU⟩ |
| 201 | intro x hx |
| 202 | exact closedBall_subset_cthickening (mem_image_of_mem Complex.ofReal hx) ρ |
| 203 | |
| 204 | /-- A convex open outer neighborhood and compact inner neighborhood. |
| 205 | The inner radius can be used for both the fixed fields and an analytic primitive. -/ |
| 206 | theorem exists_convex_common_neighborhood {h j σ : ℝ} |
| 207 | (hp : NaturalAxisRange.Parameters h j) (hσ : 0 < σ) : |
| 208 | ∃ ρ : ℝ, 0 < ρ ∧ ∃ U K : Set ℂ, |
| 209 | IsOpen U ∧ Convex ℝ U ∧ (0 : ℂ) ∈ U ∧ IsCompact K ∧ |
| 210 | (∀ x ∈ window.interval, closedBall (x : ℂ) ρ ⊆ K) ∧ |
| 211 | K ⊆ U ∧ U ⊆ regularSet h j σ := by |
| 212 | let R : Set ℂ := Complex.ofReal '' window.interval |
| 213 | have hR : IsCompact R := isCompact_Icc.image Complex.continuous_ofReal |
| 214 | have hRconv : Convex ℝ R := |
| 215 | (convex_Icc window.left window.right).linear_image Complex.ofRealCLM.toLinearMap |
| 216 | have hRzero : (0 : ℂ) ∈ R := by |
| 217 | refine ⟨0, ?_, by simp⟩ |
| 218 | norm_num [window, Window.interval] |
| 219 | have hsub : R ⊆ regularSet h j σ := by |
| 220 | rintro z ⟨x, hx, rfl⟩ |
| 221 | exact real_mem_regularSet hp hσ hx |
| 222 | obtain ⟨δ, hδ, hδU⟩ := hR.exists_cthickening_subset_open (regularSet_open h j σ) hsub |
| 223 | refine ⟨δ / 2, half_pos hδ, thickening δ R, cthickening (δ / 2) R, |
| 224 | isOpen_thickening, hRconv.thickening δ, self_subset_thickening hδ R hRzero, |
| 225 | hR.cthickening, ?_, cthickening_subset_thickening' hδ (half_lt_self hδ) R, |
| 226 | (thickening_subset_cthickening δ R).trans hδU⟩ |
| 227 | intro x hx |
| 228 | exact closedBall_subset_cthickening (mem_image_of_mem Complex.ofReal hx) (δ / 2) |
| 229 | |
| 230 | /-- Compactness and finiteness give one common value bound for all inputs. -/ |
| 231 | theorem finite_family_bound {ι : Type*} [Fintype ι] |
| 232 | {K : Set ℂ} (hK : IsCompact K) (f : ι → ℂ → ℂ) |
| 233 | (hf : ∀ i, ContinuousOn (f i) K) : |
| 234 | ∃ B : ℝ, 0 < B ∧ ∀ i z, z ∈ K → ‖f i z‖ ≤ B := by |
| 235 | classical |
| 236 | choose b hb using fun i => hK.exists_bound_of_continuousOn (hf i) |
| 237 | let B : ℝ := 1 + ∑ i, |b i| |
| 238 | have hsum : 0 ≤ ∑ i, |b i| := Finset.sum_nonneg (fun _ _ => abs_nonneg _) |
| 239 | refine ⟨B, by dsimp [B]; linarith, ?_⟩ |
| 240 | intro i z hz |
| 241 | have hi : |b i| ≤ ∑ i, |b i| := |
| 242 | Finset.single_le_sum (fun k _ => abs_nonneg (b k)) (Finset.mem_univ i) |
| 243 | exact (hb i z hz).trans ((le_abs_self _).trans (by dsimp [B]; linarith)) |
| 244 | |
| 245 | theorem unitHolomorphic_of_bound {I : Window} {ρ B : ℝ} {f : ℂ → ℂ} |
| 246 | (hB : 0 < B) (hf : AnalyticOnNhd ℂ f (closedTube I ρ)) |
| 247 | (hb : ∀ z ∈ closedTube I ρ, ‖f z‖ ≤ B) : |
| 248 | UnitHolomorphic I ρ (fun z => f z / (B : ℂ)) := by |
| 249 | have hBne : (B : ℂ) ≠ 0 := by exact_mod_cast hB.ne' |
| 250 | constructor |
| 251 | · intro z hz |
| 252 | exact (hf z hz).div analyticAt_const hBne |
| 253 | · intro z hz |
| 254 | rw [norm_div, Complex.norm_real, Real.norm_eq_abs, abs_of_pos hB] |
| 255 | exact (div_le_one hB).mpr (hb z hz) |
| 256 | |
| 257 | theorem coefficient_smul (I : Window) (ε c : ℝ) (a : AxisSpace I ε) (n : ℕ) (x : ℝ) : |
| 258 | coefficient I (AxisWeightEstimates.weight ε) (c • a) n x = |
| 259 | c * coefficient I (AxisWeightEstimates.weight ε) a n x := by |
| 260 | exact jet_smul I (AxisWeightEstimates.weight ε) c a.1 n 0 x |
| 261 | |
| 262 | /-- An arbitrary finite complex bound is reduced to the unit-bound Cauchy constructor. -/ |
| 263 | def boundedAxisElement {I : Window} {ε ρ B : ℝ} {f : ℂ → ℂ} |
| 264 | (hε : 0 < ε) (hερ : ε < ρ) (hB : 0 < B) |
| 265 | (hf : AnalyticOnNhd ℂ f (closedTube I ρ)) |
| 266 | (hb : ∀ z ∈ closedTube I ρ, ‖f z‖ ≤ B) : AxisSpace I ε := |
| 267 | B • (unitHolomorphic_of_bound hB hf hb).toAxisSpace hε hερ |
| 268 | |
| 269 | theorem boundedAxisElement_norm {I : Window} {ε ρ B : ℝ} {f : ℂ → ℂ} |
| 270 | (hε : 0 < ε) (hερ : ε < ρ) (hB : 0 < B) |
| 271 | (hf : AnalyticOnNhd ℂ f (closedTube I ρ)) |
| 272 | (hb : ∀ z ∈ closedTube I ρ, ‖f z‖ ≤ B) : |
| 273 | ‖boundedAxisElement hε hερ hB hf hb‖ ≤ B * radiusLoss (ε / ρ) := by |
| 274 | unfold boundedAxisElement |
| 275 | calc |
| 276 | _ ≤ ‖B‖ * ‖(unitHolomorphic_of_bound hB hf hb).toAxisSpace hε hερ‖ := |
| 277 | NormedSpace.norm_smul_le B _ |
| 278 | _ ≤ B * radiusLoss (ε / ρ) := by |
| 279 | rw [Real.norm_eq_abs, abs_of_pos hB] |
| 280 | exact mul_le_mul_of_nonneg_left |
| 281 | ((unitHolomorphic_of_bound hB hf hb).norm_toAxisSpace_le hε hερ) hB.le |
| 282 | |
| 283 | theorem boundedAxisElement_coefficient {I : Window} {ε ρ B : ℝ} {f : ℂ → ℂ} |
| 284 | (hε : 0 < ε) (hερ : ε < ρ) (hB : 0 < B) |
| 285 | (hf : AnalyticOnNhd ℂ f (closedTube I ρ)) |
| 286 | (hb : ∀ z ∈ closedTube I ρ, ‖f z‖ ≤ B) |
| 287 | (n : ℕ) {x : ℝ} (hx : x ∈ I.interval) : |
| 288 | coefficient I (AxisWeightEstimates.weight ε) (boundedAxisElement hε hερ hB hf hb) n x = |
| 289 | if n = 0 then (f (x : ℂ)).re else 0 := by |
| 290 | rw [boundedAxisElement, coefficient_smul, |
| 291 | (unitHolomorphic_of_bound hB hf hb).coefficient_toAxisSpace hε hερ n hx] |
| 292 | by_cases hn : n = 0 |
| 293 | · rw [ite_eq_left hn, ite_eq_left hn, Complex.div_ofReal_re] |
| 294 | exact mul_div_cancel₀ _ hB.ne' |
| 295 | · rw [ite_eq_right hn, ite_eq_right hn, mul_zero] |
| 296 | |
| 297 | /-- A finite family of actual degree-zero fields, all using the same |
| 298 | positive parameter radius and the same finite norm bound. -/ |
| 299 | structure CoefficientFamily (h j σ : ℝ) (P : ℝ → ℝ) where |
| 300 | epsilon : ℝ |
| 301 | epsilon_pos : 0 < epsilon |
| 302 | elements : Field → AxisSpace window epsilon |
| 303 | bound : ℝ |
| 304 | bound_nonneg : 0 ≤ bound |
| 305 | norm_le : ∀ k, ‖elements k‖ ≤ bound |
| 306 | coefficient_eq : ∀ k n x, x ∈ window.interval → |
| 307 | coefficient window (AxisWeightEstimates.weight epsilon) (elements k) n x = |
| 308 | if n = 0 then realField h j σ P k x else 0 |
| 309 | |
| 310 | theorem exists_coefficientFamily_on_neighborhood {h j σ ρ : ℝ} |
| 311 | {g a : ℝ → ℝ} {cap : ℝ} (hp : PressureDatum.Admissible g a cap) |
| 312 | (hρ : 0 < ρ) {K : Set ℂ} (hK : IsCompact K) |
| 313 | (hcover : ∀ x ∈ window.interval, closedBall (x : ℂ) ρ ⊆ K) |
| 314 | (hKU : K ⊆ regularSet h j σ) : |
| 315 | ∃ v : CoefficientFamily h j σ (PressureDatum.pressure g a), v.epsilon = ρ / 2 := by |
| 316 | have hsub : closedTube window ρ ⊆ K := by |
| 317 | rintro z ⟨x, hx, hz⟩ |
| 318 | exact hcover x hx hz |
| 319 | let f := complexField h j σ (PressureDatum.complexPressure g a) |
| 320 | have hf : ∀ k, AnalyticOnNhd ℂ (f k) (closedTube window ρ) := |
| 321 | fun k => (complexField_analytic hp h j σ k).mono (hsub.trans hKU) |
| 322 | obtain ⟨B, hB, hb⟩ := finite_family_bound hK f |
| 323 | (fun k => ((complexField_analytic hp h j σ k).mono hKU).continuousOn) |
| 324 | have hb' : ∀ k z, z ∈ closedTube window ρ → ‖f k z‖ ≤ B := |
| 325 | fun k z hz => hb k z (hsub hz) |
| 326 | have hε : 0 < ρ / 2 := half_pos hρ |
| 327 | have hερ : ρ / 2 < ρ := half_lt_self hρ |
| 328 | let v : Field → AxisSpace window (ρ / 2) := |
| 329 | fun k => boundedAxisElement hε hερ hB (hf k) (hb' k) |
| 330 | refine ⟨{ |
| 331 | epsilon := ρ / 2 |
| 332 | epsilon_pos := hε |
| 333 | elements := v |
| 334 | bound := B * radiusLoss ((ρ / 2) / ρ) |
| 335 | bound_nonneg := mul_nonneg hB.le |
| 336 | (radiusLoss_nonneg (div_nonneg hε.le hρ.le)) |
| 337 | norm_le := fun k => boundedAxisElement_norm hε hερ hB (hf k) (hb' k) |
| 338 | coefficient_eq := ?_ |
| 339 | }, rfl⟩ |
| 340 | intro k n x hx |
| 341 | rw [boundedAxisElement_coefficient hε hερ hB (hf k) (hb' k) n hx] |
| 342 | simp only [f, complexField_ofReal hp, Complex.ofReal_re] |
| 343 | |
| 344 | theorem exists_coefficientFamily {h j σ : ℝ} |
| 345 | (hsmall : NaturalAxisRange.Parameters h j) (hσ : 0 < σ) |
| 346 | {g a : ℝ → ℝ} {cap : ℝ} (hp : PressureDatum.Admissible g a cap) : |
| 347 | Nonempty (CoefficientFamily h j σ (PressureDatum.pressure g a)) := by |
| 348 | obtain ⟨ρ, hρ, K, hK, hcover, hKU⟩ := exists_common_neighborhood hsmall hσ |
| 349 | obtain ⟨v, _⟩ := exists_coefficientFamily_on_neighborhood hp hρ hK hcover hKU |
| 350 | exact ⟨v⟩ |
| 351 | |
| 352 | /-- The coefficient family and the open convex domain for its primitive |
| 353 | can be chosen together, with an explicit strict gap between the two radii. -/ |
| 354 | theorem exists_coefficientFamily_with_convex_domain {h j σ : ℝ} |
| 355 | (hsmall : NaturalAxisRange.Parameters h j) (hσ : 0 < σ) |
| 356 | {g a : ℝ → ℝ} {cap : ℝ} (hp : PressureDatum.Admissible g a cap) : |
| 357 | ∃ v : CoefficientFamily h j σ (PressureDatum.pressure g a), |
| 358 | ∃ ρ : ℝ, v.epsilon < ρ ∧ ∃ U K : Set ℂ, |
| 359 | IsOpen U ∧ Convex ℝ U ∧ (0 : ℂ) ∈ U ∧ IsCompact K ∧ |
| 360 | (∀ x ∈ window.interval, closedBall (x : ℂ) ρ ⊆ K) ∧ |
| 361 | K ⊆ U ∧ U ⊆ regularSet h j σ := by |
| 362 | obtain ⟨ρ, hρ, U, K, hUopen, hUconv, hUzero, hK, hcover, hKU, hUreg⟩ := |
| 363 | exists_convex_common_neighborhood hsmall hσ |
| 364 | obtain ⟨v, hv⟩ := exists_coefficientFamily_on_neighborhood hp hρ hK hcover (hKU.trans hUreg) |
| 365 | exact ⟨v, ρ, hv ▸ half_lt_self hρ, U, K, hUopen, hUconv, hUzero, hK, |
| 366 | hcover, hKU, hUreg⟩ |
| 367 | |
| 368 | def CoefficientFamily.axisData {h j σ : ℝ} {P : ℝ → ℝ} |
| 369 | (v : CoefficientFamily h j σ P) : AxisContraction.AxisData (AxisSpace window v.epsilon) where |
| 370 | A := NaturalAxisData.A h |
| 371 | D := NaturalAxisData.D h |
| 372 | h := h |
| 373 | one := v.elements .one |
| 374 | eta := v.elements .eta |
| 375 | d := v.elements .d |
| 376 | inverseL := v.elements .inverseL |
| 377 | uStar := v.elements .uStar |
| 378 | uStarEta := v.elements .uStarEta |
| 379 | wStar := v.elements .wStar |
| 380 | hStar := v.elements .hStar |
| 381 | normalizedGradient := v.elements .gradient |
| 382 | zStar := v.elements .zStar |
| 383 | |
| 384 | theorem CoefficientFamily.radiallyConstant {h j σ : ℝ} {P : ℝ → ℝ} |
| 385 | (v : CoefficientFamily h j σ P) (k : Field) : |
| 386 | NaturalAxisBridge.RadiallyConstant window v.epsilon (v.elements k) := by |
| 387 | intro n hn x hx |
| 388 | rw [v.coefficient_eq k n x hx, ite_eq_right hn] |
| 389 | |
| 390 | theorem CoefficientFamily.value {h j σ : ℝ} {P : ℝ → ℝ} |
| 391 | (v : CoefficientFamily h j σ P) (k : Field) {x : ℝ} (hx : x ∈ window.interval) : |
| 392 | NaturalAxisBridge.inputValue window v.epsilon (v.elements k) x = |
| 393 | realField h j σ P k x := by |
| 394 | exact (v.coefficient_eq k 0 x hx).trans (ite_eq_left rfl) |
| 395 | |
| 396 | theorem CoefficientFamily.compatible {h j σ : ℝ} {P : ℝ → ℝ} |
| 397 | (v : CoefficientFamily h j σ P) : |
| 398 | NaturalAxisBridge.CompatibleData window v.epsilon (v.elements .chi) v.axisData := by |
| 399 | refine { |
| 400 | chi_radial := v.radiallyConstant .chi |
| 401 | one_radial := v.radiallyConstant .one |
| 402 | eta_radial := v.radiallyConstant .eta |
| 403 | d_radial := v.radiallyConstant .d |
| 404 | inverseL_radial := v.radiallyConstant .inverseL |
| 405 | uStar_radial := v.radiallyConstant .uStar |
| 406 | uStarEta_radial := v.radiallyConstant .uStarEta |
| 407 | wStar_radial := v.radiallyConstant .wStar |
| 408 | hStar_radial := v.radiallyConstant .hStar |
| 409 | gradient_radial := v.radiallyConstant .gradient |
| 410 | zStar_radial := v.radiallyConstant .zStar |
| 411 | one_value := fun x hx => v.value .one hx |
| 412 | eta_value := fun x hx => v.value .eta hx |
| 413 | uStarEta_value := ?_ |
| 414 | } |
| 415 | intro x hx |
| 416 | have hx' : x ∈ window.interval := ⟨hx.1.le, hx.2.le⟩ |
| 417 | change NaturalAxisBridge.inputValue window v.epsilon (v.elements .uStarEta) x = |
| 418 | deriv (NaturalAxisBridge.inputValue window v.epsilon (v.elements .uStar)) x |
| 419 | rw [v.value .uStarEta hx'] |
| 420 | have heq : NaturalAxisBridge.inputValue window v.epsilon (v.elements .uStar) =ᶠ[𝓝 x] |
| 421 | NaturalAxisData.U j := by |
| 422 | filter_upwards [Icc_mem_nhds hx.1 hx.2] with y hy |
| 423 | exact v.value .uStar hy |
| 424 | rw [heq.deriv_eq] |
| 425 | symm |
| 426 | change deriv (fun y : ℝ => 4 * y + j) x = 4 |
| 427 | simp |
| 428 | |
| 429 | theorem ideal_prefix_fixed_coefficients {h j : ℝ} |
| 430 | (hsmall : NaturalAxisRange.Parameters h j) |
| 431 | {g a : ℝ → ℝ} {cap B : ℝ} |
| 432 | (hp : PressureDatum.Admissible g a cap) (hB : 2 ≤ B) |
| 433 | (hg : ∀ y ≤ 0, g y = B ^ 2 * Real.exp ((1 / 5 : ℝ) * y)) |
| 434 | (ha : ∀ y ≤ 0, a y = 1) : |
| 435 | ∃ δ σ : ℝ, 0 < δ ∧ 0 < σ ∧ |
| 436 | (∀ x ∈ Icc (-1 : ℝ) 1, |
| 437 | |NaturalAxisData.Z h j (PressureDatum.pressure g a) x| ≤ δ → |
| 438 | 99 / 100 < NaturalAxisData.chi h j σ x) ∧ |
| 439 | Nonempty (CoefficientFamily h j σ (PressureDatum.pressure g a)) := by |
| 440 | obtain ⟨δ, σ, hδ, hσ, hcut, _⟩ := |
| 441 | NaturalAxisRange.ideal_prefix_cutoff_parameters hsmall hp hB hg ha |
| 442 | exact ⟨δ, σ, hδ, hσ, hcut, exists_coefficientFamily hsmall hσ hp⟩ |
| 443 | |
| 444 | /-- The actual normalized logarithmic phase, as a complex segment integral. -/ |
| 445 | def axisPhase (h j σ : ℝ) : ℂ → ℂ := |
| 446 | AnalyticPrimitive.primitive (complexGradient h j σ) |
| 447 | |
| 448 | def realPhase (h j σ x : ℝ) : ℝ := |
| 449 | x * ∫ t in (0 : ℝ)..1, realGradient h j σ (t * x) |
| 450 | |
| 451 | @[simp] theorem axisPhase_zero (h j σ : ℝ) : axisPhase h j σ 0 = 0 := by |
| 452 | simp [axisPhase] |
| 453 | |
| 454 | @[simp] theorem axisPhase_ofReal (h j σ x : ℝ) : |
| 455 | axisPhase h j σ (x : ℂ) = (realPhase h j σ x : ℂ) := |
| 456 | AnalyticPrimitive.primitive_ofReal (complexGradient h j σ) (realGradient h j σ) |
| 457 | (complexGradient_ofReal h j σ) x |
| 458 | |
| 459 | /-- The fixed coefficient family and its actual analytic phase on one |
| 460 | common compact neighborhood. No primitive or coefficient record is assumed |
| 461 | by the existence theorem below. -/ |
| 462 | structure AnalyticInputs (h j σ : ℝ) (P : ℝ → ℝ) where |
| 463 | coefficients : CoefficientFamily h j σ P |
| 464 | radius : ℝ |
| 465 | radius_gap : coefficients.epsilon < radius |
| 466 | compactSet : Set ℂ |
| 467 | isCompact : IsCompact compactSet |
| 468 | covers : ∀ x ∈ window.interval, closedBall (x : ℂ) radius ⊆ compactSet |
| 469 | phase_analytic : AnalyticOnNhd ℂ (axisPhase h j σ) compactSet |
| 470 | phase_derivative : ∀ z ∈ compactSet, |
| 471 | HasDerivAt (axisPhase h j σ) (complexGradient h j σ z) z |
| 472 | |
| 473 | theorem exists_analyticInputs {h j σ : ℝ} |
| 474 | (hsmall : NaturalAxisRange.Parameters h j) (hσ : 0 < σ) |
| 475 | {g a : ℝ → ℝ} {cap : ℝ} (hp : PressureDatum.Admissible g a cap) : |
| 476 | Nonempty (AnalyticInputs h j σ (PressureDatum.pressure g a)) := by |
| 477 | obtain ⟨v, ρ, hgap, U, K, hUopen, hUconv, hUzero, hK, hcover, hKU, hUreg⟩ := |
| 478 | exists_coefficientFamily_with_convex_domain hsmall hσ hp |
| 479 | have hg : DifferentiableOn ℂ (complexGradient h j σ) U := |
| 480 | ((complexGradient_analytic h j σ).mono hUreg).differentiableOn |
| 481 | refine ⟨{ |
| 482 | coefficients := v |
| 483 | radius := ρ |
| 484 | radius_gap := hgap |
| 485 | compactSet := K |
| 486 | isCompact := hK |
| 487 | covers := hcover |
| 488 | phase_analytic := (AnalyticPrimitive.analyticOnNhd_primitive hUopen hUconv hUzero hg).mono hKU |
| 489 | phase_derivative := fun z hz => |
| 490 | AnalyticPrimitive.hasDerivAt_primitive hUopen hUconv hUzero hg (hKU hz) |
| 491 | }⟩ |
| 492 | |
| 493 | theorem AnalyticInputs.radius_pos {h j σ : ℝ} {P : ℝ → ℝ} |
| 494 | (d : AnalyticInputs h j σ P) : 0 < d.radius := |
| 495 | d.coefficients.epsilon_pos.trans d.radius_gap |
| 496 | |
| 497 | theorem AnalyticInputs.real_mem_compact {h j σ : ℝ} {P : ℝ → ℝ} |
| 498 | (d : AnalyticInputs h j σ P) {x : ℝ} (hx : x ∈ window.interval) : |
| 499 | (x : ℂ) ∈ d.compactSet := |
| 500 | d.covers x hx (mem_closedBall_self d.radius_pos.le) |
| 501 | |
| 502 | theorem AnalyticInputs.realPhase_hasDerivAt {h j σ : ℝ} {P : ℝ → ℝ} |
| 503 | (d : AnalyticInputs h j σ P) {x : ℝ} (hx : x ∈ window.interval) : |
| 504 | HasDerivAt (realPhase h j σ) (realGradient h j σ x) x := by |
| 505 | simpa only [axisPhase_ofReal, complexGradient_ofReal, Complex.ofReal_re] using |
| 506 | (d.phase_derivative (x : ℂ) (d.real_mem_compact hx)).real_of_complex |
| 507 | |
| 508 | def realAmplitude (h j σ Λ C x : ℝ) : ℝ := Real.exp (Λ * realPhase h j σ x) / C |
| 509 | |
| 510 | theorem AnalyticInputs.realAmplitude_hasDerivAt {h j σ : ℝ} {P : ℝ → ℝ} |
| 511 | (d : AnalyticInputs h j σ P) (Λ C : ℝ) {x : ℝ} (hx : x ∈ window.interval) : |
| 512 | HasDerivAt (realAmplitude h j σ Λ C) |
| 513 | ((Λ * realGradient h j σ x) * realAmplitude h j σ Λ C x) x := by |
| 514 | have hd := (((d.realPhase_hasDerivAt hx).const_mul Λ).exp).div_const C |
| 515 | convert! hd using 1 |
| 516 | unfold realAmplitude |
| 517 | ring |
| 518 | |
| 519 | theorem realAmplitude_pos (h j σ Λ : ℝ) {C : ℝ} (hC : 0 < C) (x : ℝ) : |
| 520 | 0 < realAmplitude h j σ Λ C x := |
| 521 | div_pos (Real.exp_pos _) hC |
| 522 | |
| 523 | /-- The true logarithmic derivative is the prescribed `ξ₀=Λκ`. -/ |
| 524 | theorem AnalyticInputs.realAmplitude_logDerivative {h j σ : ℝ} {P : ℝ → ℝ} |
| 525 | (d : AnalyticInputs h j σ P) (Λ : ℝ) {C : ℝ} (hC : 0 < C) |
| 526 | {x : ℝ} (hx : x ∈ window.interval) : |
| 527 | deriv (realAmplitude h j σ Λ C) x / realAmplitude h j σ Λ C x = |
| 528 | Λ * realGradient h j σ x := by |
| 529 | rw [(d.realAmplitude_hasDerivAt Λ C hx).deriv] |
| 530 | exact mul_div_cancel_right₀ _ (realAmplitude_pos h j σ Λ hC x).ne' |
| 531 | |
| 532 | def AnalyticInputs.normalizationThreshold {h j σ : ℝ} {P : ℝ → ℝ} |
| 533 | (d : AnalyticInputs h j σ P) (Λ : ℝ) : ℝ := |
| 534 | Real.exp (Λ * realPartSup (axisPhase h j σ) d.compactSet) |
| 535 | |
| 536 | def AnalyticInputs.amplitudeBound {h j σ : ℝ} {P : ℝ → ℝ} |
| 537 | (d : AnalyticInputs h j σ P) : ℝ := |
| 538 | radiusLoss (d.coefficients.epsilon / d.radius) |
| 539 | |
| 540 | theorem AnalyticInputs.amplitudeBound_nonneg {h j σ : ℝ} {P : ℝ → ℝ} |
| 541 | (d : AnalyticInputs h j σ P) : 0 ≤ d.amplitudeBound := |
| 542 | radiusLoss_nonneg (div_nonneg d.coefficients.epsilon_pos.le d.radius_pos.le) |
| 543 | |
| 544 | /-- The actual `φ*/C` belongs to exactly the same coefficient space as |
| 545 | all fixed data, uniformly for every allowed large parameter and normalization. -/ |
| 546 | theorem AnalyticInputs.uniformAmplitude {h j σ : ℝ} {P : ℝ → ℝ} |
| 547 | (d : AnalyticInputs h j σ P) : |
| 548 | ∀ Λ : ℝ, 0 ≤ Λ → ∀ C : ℝ, d.normalizationThreshold Λ ≤ C → |
| 549 | ∃ a : AxisSpace window d.coefficients.epsilon, |
| 550 | ‖a‖ ≤ d.amplitudeBound ∧ |
| 551 | NaturalAxisBridge.RadiallyConstant window d.coefficients.epsilon a ∧ |
| 552 | ∀ x ∈ window.interval, |
| 553 | NaturalAxisBridge.inputValue window d.coefficients.epsilon a x = |
| 554 | realAmplitude h j σ Λ C x := by |
| 555 | intro Λ hΛ C hC |
| 556 | obtain ⟨a, ha, hvalue, hzero⟩ := |
| 557 | uniform_normalizedExp_axisData_of_compact d.coefficients.epsilon_pos d.radius_gap |
| 558 | d.isCompact d.phase_analytic d.covers |
| 559 | (fun x _ => by simp only [axisPhase_ofReal, Complex.ofReal_im]) Λ hΛ C hC |
| 560 | refine ⟨a, ha, hzero, ?_⟩ |
| 561 | intro x hx |
| 562 | simpa only [NaturalAxisBridge.inputValue, realAmplitude, axisPhase_ofReal, |
| 563 | Complex.ofReal_re] using hvalue x hx |
| 564 | |
| 565 | /-- End-to-end fixed analytic input construction from the actual pressure |
| 566 | integral and ideal prefix, including the normalized amplitude source. -/ |
| 567 | theorem ideal_prefix_analytic_inputs {h j : ℝ} |
| 568 | (hsmall : NaturalAxisRange.Parameters h j) |
| 569 | {g a : ℝ → ℝ} {cap B : ℝ} |
| 570 | (hp : PressureDatum.Admissible g a cap) (hB : 2 ≤ B) |
| 571 | (hg : ∀ y ≤ 0, g y = B ^ 2 * Real.exp ((1 / 5 : ℝ) * y)) |
| 572 | (ha : ∀ y ≤ 0, a y = 1) : |
| 573 | ∃ δ σ : ℝ, 0 < δ ∧ 0 < σ ∧ |
| 574 | (∀ x ∈ Icc (-1 : ℝ) 1, |
| 575 | |NaturalAxisData.Z h j (PressureDatum.pressure g a) x| ≤ δ → |
| 576 | 99 / 100 < NaturalAxisData.chi h j σ x) ∧ |
| 577 | Nonempty (AnalyticInputs h j σ (PressureDatum.pressure g a)) := by |
| 578 | obtain ⟨δ, σ, hδ, hσ, hcut, _⟩ := |
| 579 | NaturalAxisRange.ideal_prefix_cutoff_parameters hsmall hp hB hg ha |
| 580 | exact ⟨δ, σ, hδ, hσ, hcut, exists_analyticInputs hsmall hσ hp⟩ |
| 581 | |
| 582 | end NavierStokes.NaturalAxisCoefficients |