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.RadialModulation |
| 2 | import NavierStokes.TrueConeLoop |
| 3 | import NavierStokes.ParametricRephase |
| 4 | import Mathlib.Analysis.Calculus.BumpFunction.FiniteDimension |
| 5 | |
| 6 | /-! |
| 7 | # Joint periodic primitives and realization of the constructed true-cone loops |
| 8 | |
| 9 | The primitives in this file are actual normalized interval integrals. Their |
| 10 | joint smoothness is derived through compact-interval parameter integration. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | namespace NavierStokes.ParametricModulation |
| 16 | |
| 17 | open Set Filter MeasureTheory Function |
| 18 | open scoped Topology ContDiff |
| 19 | |
| 20 | |
| 21 | variable {P : Type*} [NormedAddCommGroup P] [NormedSpace ℝ P] [FiniteDimensional ℝ P] |
| 22 | |
| 23 | def primitiveFamily (q : P × ℝ → ℝ) (z : P × ℝ) : ℝ := |
| 24 | RadialModulation.periodicPrimitive (fun θ => q (z.1, θ)) z.2 |
| 25 | |
| 26 | def normalizedPrimitiveFamily (q : P × ℝ → ℝ) (z : P × ℝ) : ℝ := |
| 27 | RadialModulation.zeroMeanPrimitive (fun θ => q (z.1, θ)) z.2 |
| 28 | |
| 29 | omit [NormedAddCommGroup P] [NormedSpace ℝ P] [FiniteDimensional ℝ P] in |
| 30 | /-- The variable-endpoint integral is an integral over the fixed unit interval. -/ |
| 31 | theorem primitiveFamily_unit_interval (q : P × ℝ → ℝ) (z : P × ℝ) : |
| 32 | primitiveFamily q z = z.2 * intervalIntegral (fun s => q (z.1, z.2 * s)) 0 1 volume := by |
| 33 | have h := intervalIntegral.smul_integral_comp_mul_left |
| 34 | (fun θ => q (z.1, θ)) z.2 (a := 0) (b := 1) |
| 35 | simpa only [primitiveFamily, RadialModulation.periodicPrimitive, smul_eq_mul, |
| 36 | mul_zero, mul_one] using h.symm |
| 37 | |
| 38 | /-- Joint smoothness of the actual primitive; all domination comes from the |
| 39 | compact integration interval, through `SmoothParameterIntegral`. -/ |
| 40 | theorem primitiveFamily_contDiffOn |
| 41 | (q : P × ℝ → ℝ) (U : Set P) (hU : IsOpen U) |
| 42 | (hq : ContDiffOn ℝ ∞ q (U ×ˢ (univ : Set ℝ))) : |
| 43 | ContDiffOn ℝ ∞ (primitiveFamily q) (U ×ˢ (univ : Set ℝ)) := by |
| 44 | let F : (P × ℝ) × ℝ → ℝ := fun z => q (z.1.1, z.1.2 * z.2) |
| 45 | have hF : ContDiffOn ℝ ∞ F ((U ×ˢ (univ : Set ℝ)) ×ˢ (univ : Set ℝ)) := |
| 46 | hq.comp (contDiff_fst.fst.prodMk (contDiff_fst.snd.mul contDiff_snd)).contDiffOn |
| 47 | (fun z hz => ⟨hz.1.1, mem_univ _⟩) |
| 48 | have hi := ParametricRephase.intervalIntegral_contDiffOn_of_joint F |
| 49 | (U ×ˢ (univ : Set ℝ)) (hU.prod isOpen_univ) hF 0 1 (by norm_num) |
| 50 | have heq : primitiveFamily q = |
| 51 | (fun z => z.2 * intervalIntegral (fun s => F (z, s)) 0 1 volume) := |
| 52 | funext (primitiveFamily_unit_interval q) |
| 53 | rw [heq] |
| 54 | exact contDiff_snd.contDiffOn.mul hi |
| 55 | |
| 56 | /-- Subtracting the actual parameter-dependent mean preserves joint smoothness. -/ |
| 57 | theorem normalizedPrimitiveFamily_contDiffOn |
| 58 | (q : P × ℝ → ℝ) (U : Set P) (hU : IsOpen U) |
| 59 | (hq : ContDiffOn ℝ ∞ q (U ×ˢ (univ : Set ℝ))) : |
| 60 | ContDiffOn ℝ ∞ (normalizedPrimitiveFamily q) (U ×ˢ (univ : Set ℝ)) := by |
| 61 | have hp := primitiveFamily_contDiffOn q U hU hq |
| 62 | have hm := ParametricRephase.intervalIntegral_contDiffOn_of_joint |
| 63 | (primitiveFamily q) U hU hp 0 1 (by norm_num) |
| 64 | exact hp.sub (hm.comp contDiff_fst.contDiffOn (fun _ hz => hz.1)) |
| 65 | |
| 66 | omit [FiniteDimensional ℝ P] in |
| 67 | theorem source_slice_contDiff |
| 68 | (q : P × ℝ → ℝ) (U : Set P) |
| 69 | (hq : ContDiffOn ℝ ∞ q (U ×ˢ (univ : Set ℝ))) (p : P) (hp : p ∈ U) : |
| 70 | ContDiff ℝ ∞ (fun θ => q (p, θ)) := by |
| 71 | apply hq.comp_contDiff (contDiff_const.prodMk contDiff_id) |
| 72 | intro θ |
| 73 | exact ⟨hp, mem_univ θ⟩ |
| 74 | |
| 75 | omit [NormedAddCommGroup P] [NormedSpace ℝ P] [FiniteDimensional ℝ P] in |
| 76 | theorem normalizedPrimitiveFamily_periodic |
| 77 | (q : P × ℝ → ℝ) (p : P) (hq : Continuous (fun θ => q (p, θ))) |
| 78 | (hper : Function.Periodic (fun θ => q (p, θ)) 1) |
| 79 | (hmean : intervalIntegral (fun θ => q (p, θ)) 0 1 volume = 0) : |
| 80 | Function.Periodic (fun θ => normalizedPrimitiveFamily q (p, θ)) 1 := by |
| 81 | intro θ |
| 82 | unfold normalizedPrimitiveFamily RadialModulation.zeroMeanPrimitive |
| 83 | dsimp only |
| 84 | rw [RadialModulation.periodicPrimitive_periodic _ hq hper hmean θ] |
| 85 | |
| 86 | omit [NormedAddCommGroup P] [NormedSpace ℝ P] [FiniteDimensional ℝ P] in |
| 87 | /-- Exact vanishing, including the mean normalization, when the loop is nominal. -/ |
| 88 | theorem normalizedPrimitiveFamily_zero |
| 89 | (q : P × ℝ → ℝ) (p : P) (hq : ∀ θ, q (p, θ) = 0) (θ : ℝ) : |
| 90 | normalizedPrimitiveFamily q (p, θ) = 0 := by |
| 91 | unfold normalizedPrimitiveFamily RadialModulation.zeroMeanPrimitive |
| 92 | RadialModulation.periodicPrimitive |
| 93 | simp only [hq, intervalIntegral.integral_zero, sub_zero] |
| 94 | |
| 95 | /-- A cutoff which equals one around K and vanishes locally outside U. -/ |
| 96 | structure CompactCutoff (K U : Set P) where |
| 97 | value : P → ℝ |
| 98 | smooth : ContDiff ℝ ∞ value |
| 99 | neighborhood : Set P |
| 100 | open_neighborhood : IsOpen neighborhood |
| 101 | contains : K ⊆ neighborhood |
| 102 | subset_domain : neighborhood ⊆ U |
| 103 | one_on : ∀ p ∈ neighborhood, value p = 1 |
| 104 | zero_near : ∀ p, p ∉ U → value =ᶠ[𝓝 p] (fun _ => 0) |
| 105 | |
| 106 | /-- A smooth plateau cutoff is constructed from a smooth function supported |
| 107 | exactly on U and its positive minimum over K. -/ |
| 108 | theorem exists_compactCutoff (K U : Set P) (hK : IsCompact K) (hU : IsOpen U) (hKU : K ⊆ U) : |
| 109 | Nonempty (CompactCutoff K U) := by |
| 110 | obtain ⟨f, hsupp, hf, hrange⟩ := hU.exists_contDiff_support_eq |
| 111 | have hnonneg : ∀ p, 0 ≤ f p := fun p => (hrange (mem_range_self p)).1 |
| 112 | have hpos : ∀ p ∈ K, 0 < f p := by |
| 113 | intro p hp |
| 114 | have hn : f p ≠ 0 := by simpa only [← hsupp, mem_support] using hKU hp |
| 115 | exact lt_of_le_of_ne (hnonneg p) (Ne.symm hn) |
| 116 | obtain ⟨δ, hδ, hδf⟩ := UniformCone.positive_uniform_margin hK hf.continuous.continuousOn hpos |
| 117 | let O : Set P := {p | δ / 2 < f p} |
| 118 | let χ : P → ℝ := fun p => Real.smoothTransition ((f p - δ / 4) / (δ / 4)) |
| 119 | have hd4 : 0 < δ / 4 := by positivity |
| 120 | have hχ : ContDiff ℝ ∞ χ := |
| 121 | Real.smoothTransition.contDiff.comp ((hf.sub contDiff_const).div_const _) |
| 122 | have hO : IsOpen O := isOpen_lt continuous_const hf.continuous |
| 123 | have hKO : K ⊆ O := by |
| 124 | intro p hp |
| 125 | exact lt_of_lt_of_le (by linarith) (hδf p hp) |
| 126 | have hOU : O ⊆ U := by |
| 127 | intro p hp |
| 128 | rw [← hsupp, mem_support] |
| 129 | have hfp : 0 < f p := lt_trans (by positivity : 0 < δ / 2) hp |
| 130 | exact ne_of_gt hfp |
| 131 | have hχone : ∀ p ∈ O, χ p = 1 := by |
| 132 | intro p hp |
| 133 | apply Real.smoothTransition.one_of_one_le |
| 134 | apply (le_div_iff₀ hd4).mpr |
| 135 | dsimp [O] at hp |
| 136 | linarith |
| 137 | have hχzero : ∀ p, p ∉ U → χ =ᶠ[𝓝 p] (fun _ => 0) := by |
| 138 | intro p hp |
| 139 | have hfp : f p = 0 := by |
| 140 | have hn : p ∉ support f := by simpa only [hsupp] using hp |
| 141 | simpa only [mem_support, not_not] using hn |
| 142 | have hnear : ∀ᶠ y in 𝓝 p, f y < δ / 4 := |
| 143 | hf.continuous.continuousAt.eventually (gt_mem_nhds (by simpa only [hfp] using hd4)) |
| 144 | filter_upwards [hnear] with y hy |
| 145 | apply Real.smoothTransition.zero_of_nonpos |
| 146 | exact div_nonpos_of_nonpos_of_nonneg (by linarith) hd4.le |
| 147 | exact ⟨⟨χ, hχ, O, hO, hKO, hOU, hχone, hχzero⟩⟩ |
| 148 | |
| 149 | omit [FiniteDimensional ℝ P] in |
| 150 | /-- Multiplication by the constructed cutoff extends a locally smooth periodic |
| 151 | profile to a globally smooth function, unchanged around K. -/ |
| 152 | theorem CompactCutoff.mul_contDiff |
| 153 | {K U : Set P} (χ : CompactCutoff K U) (hU : IsOpen U) |
| 154 | (f : P × ℝ → ℝ) (hf : ContDiffOn ℝ ∞ f (U ×ˢ (univ : Set ℝ))) : |
| 155 | ContDiff ℝ ∞ (fun z : P × ℝ => χ.value z.1 * f z) := by |
| 156 | apply contDiff_iff_contDiffAt.mpr |
| 157 | intro z |
| 158 | by_cases hz : z.1 ∈ U |
| 159 | · exact (χ.smooth.contDiffAt.comp z contDiffAt_fst).mul |
| 160 | (hf.contDiffAt ((hU.prod isOpen_univ).mem_nhds ⟨hz, mem_univ _⟩)) |
| 161 | · have hzero : (fun w : P × ℝ => χ.value w.1 * f w) =ᶠ[𝓝 z] (fun _ => 0) := by |
| 162 | filter_upwards [(χ.zero_near z.1 hz).comp_tendsto continuous_fst.continuousAt] with w hw |
| 163 | change χ.value w.1 = 0 at hw |
| 164 | rw [hw, zero_mul] |
| 165 | exact contDiffAt_const.congr_of_eventuallyEq hzero |
| 166 | |
| 167 | def centeredSource (f : P × ℝ → ℝ) (m c : P → ℝ) (z : P × ℝ) : ℝ := |
| 168 | c z.1 * (f z - m z.1) |
| 169 | |
| 170 | def extendedPrimitive {K U : Set P} (χ : CompactCutoff K U) |
| 171 | (f : P × ℝ → ℝ) (m c : P → ℝ) (z : P × ℝ) : ℝ := |
| 172 | χ.value z.1 * normalizedPrimitiveFamily (centeredSource f m c) z |
| 173 | |
| 174 | omit [FiniteDimensional ℝ P] in |
| 175 | theorem centeredSource_contDiffOn |
| 176 | (f : P × ℝ → ℝ) (m c : P → ℝ) (U : Set P) |
| 177 | (hf : ContDiffOn ℝ ∞ f (U ×ˢ (univ : Set ℝ))) |
| 178 | (hm : ContDiff ℝ ∞ m) (hc : ContDiff ℝ ∞ c) : |
| 179 | ContDiffOn ℝ ∞ (centeredSource f m c) (U ×ˢ (univ : Set ℝ)) := |
| 180 | (hc.comp contDiff_fst).contDiffOn.mul (hf.sub (hm.comp contDiff_fst).contDiffOn) |
| 181 | |
| 182 | omit [NormedAddCommGroup P] [NormedSpace ℝ P] [FiniteDimensional ℝ P] in |
| 183 | theorem centeredSource_periodic |
| 184 | (f : P × ℝ → ℝ) (m c : P → ℝ) (p : P) |
| 185 | (hf : Function.Periodic (fun θ => f (p, θ)) 1) : |
| 186 | Function.Periodic (fun θ => centeredSource f m c (p, θ)) 1 := by |
| 187 | intro θ |
| 188 | change c p * (f (p, θ + 1) - m p) = c p * (f (p, θ) - m p) |
| 189 | have h : f (p, θ + 1) = f (p, θ) := hf θ |
| 190 | rw [h] |
| 191 | |
| 192 | omit [NormedAddCommGroup P] [NormedSpace ℝ P] [FiniteDimensional ℝ P] in |
| 193 | theorem centeredSource_mean_zero |
| 194 | (f : P × ℝ → ℝ) (m c : P → ℝ) (p : P) |
| 195 | (hf : Continuous (fun θ => f (p, θ))) |
| 196 | (hm : intervalIntegral (fun θ => f (p, θ)) 0 1 volume = m p) : |
| 197 | intervalIntegral (fun θ => centeredSource f m c (p, θ)) 0 1 volume = 0 := by |
| 198 | change intervalIntegral (fun θ => c p * (f (p, θ) - m p)) 0 1 volume = 0 |
| 199 | rw [intervalIntegral.integral_const_mul, |
| 200 | intervalIntegral.integral_sub (hf.intervalIntegrable 0 1) |
| 201 | (continuous_const.intervalIntegrable 0 1)] |
| 202 | simp [hm] |
| 203 | |
| 204 | theorem extendedPrimitive_contDiff |
| 205 | {K U : Set P} (χ : CompactCutoff K U) (hU : IsOpen U) |
| 206 | (f : P × ℝ → ℝ) (m c : P → ℝ) |
| 207 | (hf : ContDiffOn ℝ ∞ f (U ×ˢ (univ : Set ℝ))) |
| 208 | (hm : ContDiff ℝ ∞ m) (hc : ContDiff ℝ ∞ c) : |
| 209 | ContDiff ℝ ∞ (extendedPrimitive χ f m c) := |
| 210 | χ.mul_contDiff hU _ (normalizedPrimitiveFamily_contDiffOn _ U hU |
| 211 | (centeredSource_contDiffOn f m c U hf hm hc)) |
| 212 | |
| 213 | omit [FiniteDimensional ℝ P] in |
| 214 | theorem extendedPrimitive_periodic |
| 215 | {K U : Set P} (χ : CompactCutoff K U) |
| 216 | (f : P × ℝ → ℝ) (m c : P → ℝ) |
| 217 | (hf : ∀ p ∈ U, Continuous (fun θ => f (p, θ))) |
| 218 | (hper : ∀ p ∈ U, Function.Periodic (fun θ => f (p, θ)) 1) |
| 219 | (hm : ∀ p ∈ U, intervalIntegral (fun θ => f (p, θ)) 0 1 volume = m p) |
| 220 | (p : P) : Function.Periodic (fun θ => extendedPrimitive χ f m c (p, θ)) 1 := by |
| 221 | by_cases hp : p ∈ U |
| 222 | · have hq : Continuous (fun θ => centeredSource f m c (p, θ)) := by |
| 223 | change Continuous (fun θ => c p * (f (p, θ) - m p)) |
| 224 | exact continuous_const.mul ((hf p hp).sub continuous_const) |
| 225 | have hP := normalizedPrimitiveFamily_periodic _ p hq |
| 226 | (centeredSource_periodic f m c p (hper p hp)) |
| 227 | (centeredSource_mean_zero f m c p (hf p hp) (hm p hp)) |
| 228 | intro θ |
| 229 | change χ.value p * normalizedPrimitiveFamily (centeredSource f m c) (p, θ + 1) = |
| 230 | χ.value p * normalizedPrimitiveFamily (centeredSource f m c) (p, θ) |
| 231 | have h : normalizedPrimitiveFamily (centeredSource f m c) (p, θ + 1) = |
| 232 | normalizedPrimitiveFamily (centeredSource f m c) (p, θ) := hP θ |
| 233 | rw [h] |
| 234 | · have hz : χ.value p = 0 := (χ.zero_near p hp).eq_of_nhds |
| 235 | intro θ |
| 236 | simp [extendedPrimitive, hz] |
| 237 | |
| 238 | omit [FiniteDimensional ℝ P] in |
| 239 | theorem extendedPrimitive_hasDerivAt |
| 240 | {K U : Set P} (χ : CompactCutoff K U) |
| 241 | (f : P × ℝ → ℝ) (m c : P → ℝ) |
| 242 | (hf : ∀ p ∈ U, Continuous (fun θ => f (p, θ))) |
| 243 | (p : P) (hp : p ∈ K) (θ : ℝ) : |
| 244 | HasDerivAt (fun s => extendedPrimitive χ f m c (p, s)) |
| 245 | (c p * (f (p, θ) - m p)) θ := by |
| 246 | have hq : Continuous (fun θ => centeredSource f m c (p, θ)) := by |
| 247 | change Continuous (fun θ => c p * (f (p, θ) - m p)) |
| 248 | exact continuous_const.mul ((hf p (χ.subset_domain (χ.contains hp))).sub continuous_const) |
| 249 | have hd := (RadialModulation.zeroMeanPrimitive_hasDerivAt |
| 250 | (fun θ => centeredSource f m c (p, θ)) hq θ).const_mul (χ.value p) |
| 251 | simpa only [extendedPrimitive, normalizedPrimitiveFamily, centeredSource, |
| 252 | χ.one_on p (χ.contains hp), one_mul] using hd |
| 253 | |
| 254 | omit [FiniteDimensional ℝ P] in |
| 255 | theorem extendedPrimitive_zero |
| 256 | {K U : Set P} (χ : CompactCutoff K U) |
| 257 | (f : P × ℝ → ℝ) (m c : P → ℝ) (p : P) |
| 258 | (hf : ∀ θ, f (p, θ) = m p) (θ : ℝ) : |
| 259 | extendedPrimitive χ f m c (p, θ) = 0 := by |
| 260 | have hq : ∀ θ, centeredSource f m c (p, θ) = 0 := by |
| 261 | intro s |
| 262 | simp only [centeredSource, hf s, sub_self, mul_zero] |
| 263 | unfold extendedPrimitive |
| 264 | rw [normalizedPrimitiveFamily_zero _ p hq θ, mul_zero] |
| 265 | |
| 266 | /-- The only choice data are the already constructed true-cone loop parameters |
| 267 | and an actual smooth compact-set cutoff. Primitives below are defined by integrals. -/ |
| 268 | structure TrueConeRealization (a m p₁ p₂ : P → ℝ) (K B : Set P) where |
| 269 | choices : TrueConeLoop.FamilyChoices a m p₁ p₂ K B |
| 270 | cutoff : CompactCutoff K {p | 0 < a p} |
| 271 | |
| 272 | theorem exists_trueConeRealization |
| 273 | (a m p₁ p₂ : P → ℝ) (K B : Set P) |
| 274 | (hK : IsCompact K) (hB : IsCompact B) |
| 275 | (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) |
| 276 | (hp₁ : ContDiff ℝ ∞ p₁) (hp₂ : ContDiff ℝ ∞ p₂) |
| 277 | (haK : ∀ p ∈ K, 0 < a p) (hPK : ∀ p ∈ K, 2 < p₁ p + p₂ p * m p) |
| 278 | (htrueB : ∀ p ∈ B, 2 < TrueConeLoop.nominalSpeed (a p) (m p)) : |
| 279 | Nonempty (TrueConeRealization a m p₁ p₂ K B) := by |
| 280 | obtain ⟨c⟩ := TrueConeLoop.exists_family_choices a m p₁ p₂ hK hB |
| 281 | ha.continuous hm.continuous hp₁.continuous hp₂.continuous haK hPK htrueB |
| 282 | obtain ⟨χ⟩ := exists_compactCutoff K {p | 0 < a p} hK |
| 283 | (isOpen_lt continuous_const ha.continuous) haK |
| 284 | exact ⟨⟨c, χ⟩⟩ |
| 285 | |
| 286 | namespace TrueConeRealization |
| 287 | |
| 288 | variable {a m p₁ p₂ : P → ℝ} {K B : Set P} |
| 289 | |
| 290 | def angularLoop (r : TrueConeRealization a m p₁ p₂ K B) : P × ℝ → ℝ := |
| 291 | TrueConeLoop.familyA a m p₂ r.choices.d r.choices.delta |
| 292 | (ne_of_gt r.choices.d_pos) r.choices.delta_pos |
| 293 | |
| 294 | /-- This is the signed loop coordinate `-b_L`, in the convention of TrueConeLoop. -/ |
| 295 | def signedAxialLoop (r : TrueConeRealization a m p₁ p₂ K B) : P × ℝ → ℝ := |
| 296 | TrueConeLoop.familyC a m p₂ r.choices.d r.choices.delta |
| 297 | (ne_of_gt r.choices.d_pos) r.choices.delta_pos |
| 298 | |
| 299 | def angularPrimitive (r : TrueConeRealization a m p₁ p₂ K B) : P × ℝ → ℝ := |
| 300 | extendedPrimitive r.cutoff r.angularLoop a (fun _ => -1 / 2) |
| 301 | |
| 302 | def axialPrimitive (r : TrueConeRealization a m p₁ p₂ K B) (E : P → ℝ) : P × ℝ → ℝ := |
| 303 | extendedPrimitive r.cutoff r.signedAxialLoop (fun p => a p * m p) (fun p => -E p / 2) |
| 304 | |
| 305 | theorem loop_smooth (r : TrueConeRealization a m p₁ p₂ K B) |
| 306 | (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) (hp₂ : ContDiff ℝ ∞ p₂) : |
| 307 | ContDiffOn ℝ ∞ r.angularLoop ({p | 0 < a p} ×ˢ (univ : Set ℝ)) ∧ |
| 308 | ContDiffOn ℝ ∞ r.signedAxialLoop ({p | 0 < a p} ×ˢ (univ : Set ℝ)) := |
| 309 | TrueConeLoop.family_joint_contDiffOn a m p₂ r.choices.d r.choices.delta ha hm hp₂ |
| 310 | (ne_of_gt r.choices.d_pos) r.choices.delta_pos |
| 311 | |
| 312 | omit [FiniteDimensional ℝ P] in |
| 313 | theorem loop_periods_means (r : TrueConeRealization a m p₁ p₂ K B) |
| 314 | (p : P) (hp : 0 < a p) : |
| 315 | Function.Periodic (fun θ => r.angularLoop (p, θ)) 1 ∧ |
| 316 | Function.Periodic (fun θ => r.signedAxialLoop (p, θ)) 1 ∧ |
| 317 | intervalIntegral (fun θ => r.angularLoop (p, θ)) 0 1 volume = a p ∧ |
| 318 | intervalIntegral (fun θ => r.signedAxialLoop (p, θ)) 0 1 volume = a p * m p := by |
| 319 | have hA := TrueConeLoop.familyA_eq_constructed a m p₂ r.choices.d r.choices.delta |
| 320 | (ne_of_gt r.choices.d_pos) r.choices.delta_pos p hp |
| 321 | have hC := TrueConeLoop.familyC_eq_constructed a m p₂ r.choices.d r.choices.delta |
| 322 | (ne_of_gt r.choices.d_pos) r.choices.delta_pos p hp |
| 323 | have hper := TrueConeLoop.constructed_periodic (a p) (m p) r.choices.d (p₂ p) |
| 324 | r.choices.delta hp (ne_of_gt r.choices.d_pos) r.choices.delta_pos |
| 325 | have hmean := TrueConeLoop.constructed_means (a p) (m p) r.choices.d (p₂ p) |
| 326 | r.choices.delta hp (ne_of_gt r.choices.d_pos) r.choices.delta_pos |
| 327 | change Function.Periodic _ 1 ∧ Function.Periodic _ 1 ∧ _ = _ ∧ _ = _ |
| 328 | simpa only [angularLoop, signedAxialLoop, hA, hC] using |
| 329 | And.intro hper.1 (And.intro hper.2 hmean) |
| 330 | |
| 331 | theorem primitives_smooth (r : TrueConeRealization a m p₁ p₂ K B) |
| 332 | (E : P → ℝ) (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) |
| 333 | (hp₂ : ContDiff ℝ ∞ p₂) (hE : ContDiff ℝ ∞ E) : |
| 334 | ContDiff ℝ ∞ r.angularPrimitive ∧ ContDiff ℝ ∞ (r.axialPrimitive E) := by |
| 335 | have hs := r.loop_smooth ha hm hp₂ |
| 336 | have hU : IsOpen {p | 0 < a p} := isOpen_lt continuous_const ha.continuous |
| 337 | exact ⟨extendedPrimitive_contDiff r.cutoff hU _ _ _ hs.1 ha contDiff_const, |
| 338 | extendedPrimitive_contDiff r.cutoff hU _ _ _ hs.2 (ha.mul hm) (hE.neg.div_const 2)⟩ |
| 339 | |
| 340 | theorem primitives_periodic (r : TrueConeRealization a m p₁ p₂ K B) |
| 341 | (E : P → ℝ) (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) |
| 342 | (hp₂ : ContDiff ℝ ∞ p₂) (p : P) : |
| 343 | Function.Periodic (fun θ => r.angularPrimitive (p, θ)) 1 ∧ |
| 344 | Function.Periodic (fun θ => r.axialPrimitive E (p, θ)) 1 := by |
| 345 | have hs := r.loop_smooth ha hm hp₂ |
| 346 | have hca := fun p hp => (source_slice_contDiff _ _ hs.1 p hp).continuous |
| 347 | have hcb := fun p hp => (source_slice_contDiff _ _ hs.2 p hp).continuous |
| 348 | exact ⟨extendedPrimitive_periodic r.cutoff _ _ _ hca |
| 349 | (fun p hp => (r.loop_periods_means p hp).1) |
| 350 | (fun p hp => (r.loop_periods_means p hp).2.2.1) p, |
| 351 | extendedPrimitive_periodic r.cutoff _ _ _ hcb |
| 352 | (fun p hp => (r.loop_periods_means p hp).2.1) |
| 353 | (fun p hp => (r.loop_periods_means p hp).2.2.2) p⟩ |
| 354 | |
| 355 | theorem primitive_derivatives (r : TrueConeRealization a m p₁ p₂ K B) |
| 356 | (E : P → ℝ) (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) |
| 357 | (hp₂ : ContDiff ℝ ∞ p₂) (p : P) (hp : p ∈ K) (θ : ℝ) : |
| 358 | HasDerivAt (fun s => r.angularPrimitive (p, s)) |
| 359 | (-(r.angularLoop (p, θ) - a p) / 2) θ ∧ |
| 360 | HasDerivAt (fun s => r.axialPrimitive E (p, s)) |
| 361 | (E p * (-r.signedAxialLoop (p, θ) + a p * m p) / 2) θ := by |
| 362 | have hs := r.loop_smooth ha hm hp₂ |
| 363 | have hca := fun p hp => (source_slice_contDiff _ _ hs.1 p hp).continuous |
| 364 | have hcb := fun p hp => (source_slice_contDiff _ _ hs.2 p hp).continuous |
| 365 | constructor |
| 366 | · apply (extendedPrimitive_hasDerivAt r.cutoff _ a (fun _ => -1 / 2) hca p hp θ).congr_deriv |
| 367 | ring |
| 368 | · apply (extendedPrimitive_hasDerivAt r.cutoff _ (fun p => a p * m p) |
| 369 | (fun p => -E p / 2) hcb p hp θ).congr_deriv |
| 370 | ring |
| 371 | |
| 372 | omit [FiniteDimensional ℝ P] in |
| 373 | theorem boundary_vanishing (r : TrueConeRealization a m p₁ p₂ K B) |
| 374 | (E : P → ℝ) (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) (hBK : B ⊆ K) : |
| 375 | ∃ N : Set P, IsOpen N ∧ B ⊆ N ∧ ∀ p ∈ N, ∀ θ, |
| 376 | r.angularPrimitive (p, θ) = 0 ∧ r.axialPrimitive E (p, θ) = 0 := by |
| 377 | obtain ⟨N, hN, hBN, hNU, hn⟩ := TrueConeLoop.family_nominal_neighborhood a m p₁ p₂ |
| 378 | r.choices ha.continuous hm.continuous hBK |
| 379 | refine ⟨N, hN, hBN, ?_⟩ |
| 380 | intro p hp θ |
| 381 | exact ⟨extendedPrimitive_zero r.cutoff _ _ _ p (fun s => (hn p hp s).1) θ, |
| 382 | extendedPrimitive_zero r.cutoff _ _ _ p (fun s => (hn p hp s).2) θ⟩ |
| 383 | |
| 384 | omit [FiniteDimensional ℝ P] in |
| 385 | theorem loop_trueCone (r : TrueConeRealization a m p₁ p₂ K B) |
| 386 | (hrelaxed : ∀ p ∈ K, TrueConeLoop.nominalSpeed (a p) (m p) < |
| 387 | ConeAlgebra.coneBound (p₁ p + p₂ p * m p) (p₂ p - p₁ p * m p)) : |
| 388 | ∀ p ∈ K, ∀ θ, TrueConeLoop.InTrueCone (p₁ p) (p₂ p) |
| 389 | (r.angularLoop (p, θ)) (r.signedAxialLoop (p, θ)) := by |
| 390 | intro p hp θ |
| 391 | exact (TrueConeLoop.family_pointwise_properties a m p₁ p₂ r.choices hrelaxed p hp).2.2.2.2 θ |
| 392 | |
| 393 | end TrueConeRealization |
| 394 | |
| 395 | section RadialProfiles |
| 396 | |
| 397 | abbrev RadialParameter := ℝ × ℝ |
| 398 | |
| 399 | /-- Reassociation between slow-parameter/angle coordinates and the radial |
| 400 | modulation module's `(X,η,θ)` coordinates. -/ |
| 401 | def asRadialPrimitive (Q : RadialParameter × ℝ → ℝ) : RadialModulation.PrimitiveProfile := |
| 402 | fun z => Q ((z.1, z.2.1), z.2.2) |
| 403 | |
| 404 | theorem asRadialPrimitive_contDiff |
| 405 | (Q : RadialParameter × ℝ → ℝ) (hQ : ContDiff ℝ ∞ Q) : |
| 406 | ContDiff ℝ ∞ (asRadialPrimitive Q) := |
| 407 | hQ.comp ((contDiff_fst.prodMk contDiff_snd.fst).prodMk contDiff_snd.snd) |
| 408 | |
| 409 | variable {a m p₁ p₂ : RadialParameter → ℝ} {K B : Set RadialParameter} |
| 410 | |
| 411 | def realizedE (r : TrueConeRealization a m p₁ p₂ K B) (E : RadialParameter → ℝ) |
| 412 | (n X η : ℝ) : ℝ := |
| 413 | RadialModulation.modulatedE n (fun X η => E (X, η)) |
| 414 | (asRadialPrimitive r.angularPrimitive) X η |
| 415 | |
| 416 | def realizedU (r : TrueConeRealization a m p₁ p₂ K B) (E U : RadialParameter → ℝ) |
| 417 | (n X η : ℝ) : ℝ := |
| 418 | RadialModulation.modulatedU n (fun X η => U (X, η)) |
| 419 | (asRadialPrimitive (r.axialPrimitive E)) X η |
| 420 | |
| 421 | /-- Smoothness of the realized profiles follows from the constructed integral |
| 422 | primitives, without any primitive-smoothness assumption. -/ |
| 423 | theorem realized_profiles_contDiffAt |
| 424 | (r : TrueConeRealization a m p₁ p₂ K B) (E U : RadialParameter → ℝ) |
| 425 | (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) (hp₂ : ContDiff ℝ ∞ p₂) |
| 426 | (hE : ContDiff ℝ ∞ E) (hU : ContDiff ℝ ∞ U) (n X η : ℝ) (hX : X ≠ 0) : |
| 427 | ContDiffAt ℝ ∞ (Function.uncurry (realizedE r E n)) (X, η) ∧ |
| 428 | ContDiffAt ℝ ∞ (Function.uncurry (realizedU r E U n)) (X, η) := by |
| 429 | have hprim := r.primitives_smooth E ha hm hp₂ hE |
| 430 | exact ⟨RadialModulation.modulatedE_contDiffAt _ _ n X η hE |
| 431 | (asRadialPrimitive_contDiff _ hprim.1) hX, |
| 432 | RadialModulation.modulatedU_contDiffAt _ _ n X η hU |
| 433 | (asRadialPrimitive_contDiff _ hprim.2) hX⟩ |
| 434 | |
| 435 | /-- Every fixed actual η jet is `O(1/n)`, now for the primitives constructed |
| 436 | from the actual TrueConeLoop family, uniformly on arbitrary compact sets. -/ |
| 437 | theorem realized_profiles_uniform_eta_jets |
| 438 | (r : TrueConeRealization a m p₁ p₂ K B) (E U : RadialParameter → ℝ) |
| 439 | (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) (hp₂ : ContDiff ℝ ∞ p₂) |
| 440 | (hE : ContDiff ℝ ∞ E) (hU : ContDiff ℝ ∞ U) |
| 441 | (KX Kη : Set ℝ) (hKX : IsCompact KX) (hKη : IsCompact Kη) (k : ℕ) : |
| 442 | ∃ CE CU : ℝ, 0 ≤ CE ∧ 0 ≤ CU ∧ ∀ n : ℝ, 1 ≤ n → ∀ X ∈ KX, ∀ η ∈ Kη, |
| 443 | |iteratedDeriv k (realizedE r E n X) η - iteratedDeriv k (fun e => E (X, e)) η| ≤ CE / n ∧ |
| 444 | |iteratedDeriv k (realizedU r E U n X) η - iteratedDeriv k (fun e => U (X, e)) η| ≤ CU / n := by |
| 445 | have hprim := r.primitives_smooth E ha hm hp₂ hE |
| 446 | have hperiodA : ∀ X η, Function.Periodic |
| 447 | (fun θ => asRadialPrimitive r.angularPrimitive (X, η, θ)) 1 := |
| 448 | fun X η => (r.primitives_periodic E ha hm hp₂ (X, η)).1 |
| 449 | have hperiodB : ∀ X η, Function.Periodic |
| 450 | (fun θ => asRadialPrimitive (r.axialPrimitive E) (X, η, θ)) 1 := |
| 451 | fun X η => (r.primitives_periodic E ha hm hp₂ (X, η)).2 |
| 452 | obtain ⟨CE, hCE, hbE⟩ := RadialModulation.uniform_modulatedE_eta_jets |
| 453 | (fun X η => E (X, η)) (asRadialPrimitive r.angularPrimitive) |
| 454 | hE (asRadialPrimitive_contDiff _ hprim.1) hperiodA KX Kη hKX hKη k |
| 455 | obtain ⟨CU, hCU, hbU⟩ := RadialModulation.uniform_modulatedU_eta_jets |
| 456 | (fun X η => U (X, η)) (asRadialPrimitive (r.axialPrimitive E)) |
| 457 | hU (asRadialPrimitive_contDiff _ hprim.2) hperiodB KX Kη hKX hKη k |
| 458 | exact ⟨CE, CU, hCE, hCU, fun n hn X hX η hη => ⟨hbE n hn X hX η hη, hbU n hn X hX η hη⟩⟩ |
| 459 | |
| 460 | /-- The constructed profiles agree exactly with the nominal profiles on one |
| 461 | open neighborhood of the prescribed boundary set, for every frequency. -/ |
| 462 | theorem realized_profiles_boundary_match |
| 463 | (r : TrueConeRealization a m p₁ p₂ K B) (E U : RadialParameter → ℝ) |
| 464 | (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) (hBK : B ⊆ K) : |
| 465 | ∃ N : Set RadialParameter, IsOpen N ∧ B ⊆ N ∧ ∀ n X η : ℝ, (X, η) ∈ N → |
| 466 | realizedE r E n X η = E (X, η) ∧ realizedU r E U n X η = U (X, η) := by |
| 467 | obtain ⟨N, hN, hBN, hz⟩ := r.boundary_vanishing E ha hm hBK |
| 468 | refine ⟨N, hN, hBN, ?_⟩ |
| 469 | intro n X η hp |
| 470 | have h := hz (X, η) hp (n * Real.log X) |
| 471 | simp only [realizedE, realizedU, RadialModulation.modulatedE, RadialModulation.modulatedU, |
| 472 | asRadialPrimitive, RadialModulation.phasePoint, h.1, h.2, zero_div, |
| 473 | Real.exp_zero, mul_one, add_zero, and_self] |
| 474 | |
| 475 | theorem theta_derivative_asRadialPrimitive |
| 476 | (Q : RadialParameter × ℝ → ℝ) (hQ : ContDiff ℝ ∞ Q) (X η θ : ℝ) : |
| 477 | HasDerivAt (fun s => Q ((X, η), s)) |
| 478 | (RadialModulation.partialTheta (asRadialPrimitive Q) (X, η, θ)) θ := by |
| 479 | have hg := (hasDerivAt_const θ X).prodMk ((hasDerivAt_const θ η).prodMk (hasDerivAt_id θ)) |
| 480 | exact (((asRadialPrimitive_contDiff Q hQ).differentiable (by simp) (X, η, θ)).hasFDerivAt).comp_hasDerivAt θ hg |
| 481 | |
| 482 | /-- The prescribed loop derivatives are established for the constructed |
| 483 | primitives, including the sign change from `C = -b_L`. -/ |
| 484 | theorem realized_primitive_theta |
| 485 | (r : TrueConeRealization a m p₁ p₂ K B) (E : RadialParameter → ℝ) |
| 486 | (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) (hp₂ : ContDiff ℝ ∞ p₂) |
| 487 | (hE : ContDiff ℝ ∞ E) (X η θ : ℝ) (hp : (X, η) ∈ K) : |
| 488 | RadialModulation.partialTheta (asRadialPrimitive r.angularPrimitive) (X, η, θ) = |
| 489 | -(r.angularLoop ((X, η), θ) - a (X, η)) / 2 ∧ |
| 490 | RadialModulation.partialTheta (asRadialPrimitive (r.axialPrimitive E)) (X, η, θ) = |
| 491 | E (X, η) * (-r.signedAxialLoop ((X, η), θ) + a (X, η) * m (X, η)) / 2 := by |
| 492 | have hprim := r.primitives_smooth E ha hm hp₂ hE |
| 493 | have hd := r.primitive_derivatives E ha hm hp₂ (X, η) hp θ |
| 494 | exact ⟨(theta_derivative_asRadialPrimitive _ hprim.1 X η θ).unique hd.1, |
| 495 | (theta_derivative_asRadialPrimitive _ hprim.2 X η θ).unique hd.2⟩ |
| 496 | |
| 497 | /-- Exact shear identities after composition of the constructed true-cone |
| 498 | loop, its actual integral primitives, and radial modulation. -/ |
| 499 | theorem realized_shears_exact |
| 500 | (r : TrueConeRealization a m p₁ p₂ K B) (E U : RadialParameter → ℝ) |
| 501 | (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) (hp₂ : ContDiff ℝ ∞ p₂) |
| 502 | (hE : ContDiff ℝ ∞ E) (hU : ContDiff ℝ ∞ U) |
| 503 | (n X η : ℝ) (hn : n ≠ 0) (hX : X ≠ 0) (hE0 : E (X, η) ≠ 0) (hp : (X, η) ∈ K) |
| 504 | (haNom : a (X, η) = 1 - 2 * X * deriv (fun x => E (x, η)) X / E (X, η)) |
| 505 | (hbNom : -a (X, η) * m (X, η) = 2 * X * deriv (fun x => U (x, η)) X / E (X, η)) : |
| 506 | (1 - 2 * X * deriv (fun x => realizedE r E n x η) X / realizedE r E n X η = |
| 507 | r.angularLoop ((X, η), n * Real.log X) - |
| 508 | 2 * X * RadialModulation.partialX (asRadialPrimitive r.angularPrimitive) |
| 509 | (X, η, n * Real.log X) / n) ∧ |
| 510 | (2 * X * deriv (fun x => realizedU r E U n x η) X / realizedE r E n X η = |
| 511 | (-r.signedAxialLoop ((X, η), n * Real.log X) + |
| 512 | 2 * X * RadialModulation.partialX (asRadialPrimitive (r.axialPrimitive E)) |
| 513 | (X, η, n * Real.log X) / (n * E (X, η))) / |
| 514 | Real.exp (r.angularPrimitive ((X, η), n * Real.log X) / n)) := by |
| 515 | have hprim := r.primitives_smooth E ha hm hp₂ hE |
| 516 | have hθ := realized_primitive_theta r E ha hm hp₂ hE X η (n * Real.log X) hp |
| 517 | have hEr : DifferentiableAt ℝ (fun x => E (x, η)) X := |
| 518 | (hE.differentiable (by simp) (X, η)).comp X |
| 519 | (differentiableAt_id.prodMk (differentiableAt_const η)) |
| 520 | have hUr : DifferentiableAt ℝ (fun x => U (x, η)) X := |
| 521 | (hU.differentiable (by simp) (X, η)).comp X |
| 522 | (differentiableAt_id.prodMk (differentiableAt_const η)) |
| 523 | constructor |
| 524 | · apply RadialModulation.angular_shear_exact _ _ n X η _ hn hX hE0 hEr |
| 525 | ((asRadialPrimitive_contDiff _ hprim.1).differentiable (by simp) _) |
| 526 | simpa only [RadialModulation.phasePoint, haNom] using hθ.1 |
| 527 | · apply RadialModulation.axial_shear_exact _ _ _ _ n X η _ hn hX hE0 hUr |
| 528 | ((asRadialPrimitive_contDiff _ hprim.2).differentiable (by simp) _) |
| 529 | change RadialModulation.partialTheta (asRadialPrimitive (r.axialPrimitive E)) |
| 530 | (X, η, n * Real.log X) = _ |
| 531 | rw [hθ.2, ← hbNom] |
| 532 | ring |
| 533 | |
| 534 | end RadialProfiles |
| 535 | |
| 536 | end NavierStokes.ParametricModulation |