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.AssembledSlowBase |
| 2 | import NavierStokes.GlobalStressSupport |
| 3 | import NavierStokes.BasePrefixIdentity |
| 4 | import NavierStokes.PreparedOutgoing |
| 5 | import NavierStokes.BaseExterior |
| 6 | import NavierStokes.TerminalHistoryBridge |
| 7 | import NavierStokes.ModulatedProfileAssembly |
| 8 | import NavierStokes.FirstOrderBaseEdge |
| 9 | |
| 10 | /-! |
| 11 | # The actual constructed slow base |
| 12 | |
| 13 | The finite residual identities, regular axis descriptors, and stress support |
| 14 | used here are derived from the same repaired coefficient sequence. No |
| 15 | residual estimate or infinite-dimensional output certificate is an input. |
| 16 | -/ |
| 17 | |
| 18 | noncomputable section |
| 19 | |
| 20 | open Set Filter Function |
| 21 | open scoped ContDiff Topology BigOperators |
| 22 | |
| 23 | namespace NavierStokes.ConstructedSlowBase |
| 24 | |
| 25 | open GlobalSlowProfiles AssembledSlowBase SlowBorelBase |
| 26 | |
| 27 | private theorem parameter_abs_le {eta : ℝ} (h : eta ∈ Ioo (-1 : ℝ) 1) : |
| 28 | |eta| ≤ 1 := (abs_lt.mpr h).le |
| 29 | |
| 30 | /-- Restricting the compact set preserves the very same cutoff schedule. -/ |
| 31 | theorem admissibleScales_mono {V : Type} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 32 | {a : ℕ → ℕ} {h : ℝ} {f : ℕ → Inner → V} {K K' : Set Inner} |
| 33 | (ha : AdmissibleScales h f K a) (hK : K' ⊆ K) : AdmissibleScales h f K' a where |
| 34 | positive := ha.positive |
| 35 | doubling := ha.doubling |
| 36 | strictMono := ha.strictMono |
| 37 | ordinary := fun j hj m hm q hq hq1 w hw => ha.ordinary j hj m hm q hq hq1 w (hK hw) |
| 38 | blown := fun j hj m hm q hq hq1 w hw => ha.blown j hj m hm q hq hq1 w (hK hw) |
| 39 | |
| 40 | /-- The genuine smooth vector potential of the summed base. -/ |
| 41 | noncomputable def potential (a : ℕ → ℕ) (h C : ℝ) (d : Coefficients) : |
| 42 | ProblemStatement.VelocityField := |
| 43 | AxisymmetricFields.potential (streamFactor a h C d) (swirlPotential a h C d) |
| 44 | |
| 45 | theorem potential_smooth {a : ℕ → ℕ} (ha : StrictMono a) {h : ℝ} |
| 46 | (hh : 0 < h) (hh1 : h < 1 / 2) {d : Coefficients} (hd : SmoothCoefficients d) (C : ℝ) : |
| 47 | ContDiffOn ℝ ∞ (potential a h C d) BaseResidual.past := |
| 48 | AxisymmetricFields.contDiffOn_potential |
| 49 | (physicalProfile_smoothOn ha hh hh1 (bundleComponent_smooth hd C 0) _) |
| 50 | (physicalProfile_smoothOn ha hh hh1 (bundleComponent_smooth hd C 1) _) |
| 51 | |
| 52 | section RepairedFamily |
| 53 | |
| 54 | variable {S : Set ℝ} {h C rho inner : ℝ} {U : Set ℂ} |
| 55 | {base : Fin 5 → SimilarityProfile.InnerProfile} {s : Scheme S h C} |
| 56 | {A : SlowRecursion.LocalHierarchy rho U h C base} |
| 57 | (L : Localization s A inner) (B0 : BaseAgreement s A inner) |
| 58 | (Z0 : ZeroOrderSolved s inner) (hI : Icc (-1 : ℝ) 1 ⊆ S) |
| 59 | |
| 60 | /-- The only base flux premise is the actual mass reconstruction. Every |
| 61 | positive-order flux is reconstructed by the global recursion itself. -/ |
| 62 | theorem repaired_coefficientMatches |
| 63 | (hbase : s.base.beta = betaFromU s.domain 0 s.base.axial) : |
| 64 | BasePrefixIdentity.CoefficientMatches h C (coefficients L B0 Z0 hI) (asSlowProfiles s) := by |
| 65 | refine ⟨⟨?_, ?_, ?_⟩, ?_, ?_, ?_⟩ |
| 66 | · intro n w hw |
| 67 | exact (coefficients_fields_eq L B0 Z0 hI n hw.1.le (parameter_abs_le hw.2)).1 |
| 68 | · intro n w hw |
| 69 | exact (coefficients_fields_eq L B0 Z0 hI n hw.1.le (parameter_abs_le hw.2)).2.1 |
| 70 | · intro n w hw |
| 71 | have hb : w.1 * extendedCoefficient s hI n 2 w = |
| 72 | SlowDivergence.radialFlux h (SlowExpansionResidual.slowOrder h n) |
| 73 | ((coefficients L B0 Z0 hI).axial n) w := by |
| 74 | rcases Nat.eq_zero_or_pos n with rfl | hn |
| 75 | · have he := extended_flux_zero s hI hbase hw.1.le (parameter_abs_le hw.2) |
| 76 | simp only [SlowExpansionResidual.slowOrder, Nat.cast_zero, mul_zero, zero_mul] at he ⊢ |
| 77 | exact he |
| 78 | · exact extended_flux s hI hn hw.1.le (parameter_abs_le hw.2) |
| 79 | rw [← hb] |
| 80 | change w.1 * extendedCoefficient s hI n 2 w = w.1 * xProfile (profiles s n).beta w |
| 81 | rw [extendedCoefficient_eq s hI n 2 hw.1.le (parameter_abs_le hw.2)] |
| 82 | rfl |
| 83 | · intro n w hw |
| 84 | exact (coefficients_fields_eq L B0 Z0 hI n hw.1.le (parameter_abs_le hw.2)).2.2 |
| 85 | · intro n w hw |
| 86 | exact (coefficients_stress_eq L B0 Z0 hI n hw.1.le (parameter_abs_le hw.2)).1 |
| 87 | · intro n w hw |
| 88 | exact (coefficients_stress_eq L B0 Z0 hI n hw.1.le (parameter_abs_le hw.2)).2 |
| 89 | |
| 90 | /-- The finite Cartesian PDE identity is derived from scalar equations and |
| 91 | the actual stream primitives, using the proved finite-prefix bridge. -/ |
| 92 | theorem repaired_finiteIdentities (hh : 0 < h) (hh1 : h < 1 / 2) |
| 93 | (hbase : s.base.beta = betaFromU s.domain 0 s.base.axial) |
| 94 | (hp : ∀ n, ∀ w ∈ BasePrefixIdentity.profileWindow, |
| 95 | SlowExpansionResidual.pressureCoefficient h C (asSlowProfiles s) n w = 0) : |
| 96 | BaseResidual.FiniteIdentities h C (coefficients L B0 Z0 hI) (asSlowProfiles s) := by |
| 97 | apply BasePrefixIdentity.finiteIdentities_of_coefficients hh hh1 |
| 98 | (coefficients_smooth L B0 Z0 hI) (repaired_coefficientMatches L B0 Z0 hI hbase) |
| 99 | · intro n |
| 100 | exact (thetaDensity_smooth L B0 Z0 n).mono |
| 101 | (fun _ hw => ⟨hw.1, hI ⟨hw.2.1.le, hw.2.2.le⟩⟩) |
| 102 | · intro n |
| 103 | exact (zDensity_smooth L B0 Z0 n).mono |
| 104 | (fun _ hw => ⟨hw.1, hI ⟨hw.2.1.le, hw.2.2.le⟩⟩) |
| 105 | · exact hp |
| 106 | |
| 107 | theorem repaired_stressZeroCore : |
| 108 | BaseResidual.StressZeroCore (coefficients L B0 Z0 hI) (inner / 8) := by |
| 109 | intro n X hX eta _ |
| 110 | exact coefficients_stress_zero_left L B0 Z0 hI n hX.2.le |
| 111 | |
| 112 | /-- One open coefficient neighborhood contains the whole physical parameter |
| 113 | band and avoids the coordinate denominator's zeros. -/ |
| 114 | noncomputable def regularDomain (s : Scheme S h C) (hI : Icc (-1 : ℝ) 1 ⊆ S) : Set Inner := |
| 115 | {w | |w.2| < (commonWindow s hI).inner ∧ CoordinateAlgebra.L h w.2 ≠ 0} |
| 116 | |
| 117 | theorem regularDomain_open : IsOpen (regularDomain s hI) := by |
| 118 | have hL : Continuous (fun w : Inner => CoordinateAlgebra.L h w.2) := |
| 119 | continuous_const.sub (continuous_const.mul (continuous_snd.pow 2)) |
| 120 | exact (isOpen_lt continuous_snd.abs continuous_const).inter |
| 121 | (isOpen_ne_fun hL continuous_const) |
| 122 | |
| 123 | theorem innerBox_subset_regularDomain (hh : 0 < h) (hh1 : h < 1 / 2) (lo hi : ℝ) : |
| 124 | innerBox lo hi ⊆ regularDomain s hI := by |
| 125 | intro w hw |
| 126 | have he : |w.2| ≤ 1 := abs_le.mpr hw.2 |
| 127 | exact ⟨he.trans_lt (commonWindow s hI).one_lt_inner, |
| 128 | (CoordinateAlgebra.L_pos hh.le hh1 ((sq_le_one_iff_abs_le_one w.2).mpr he)).ne'⟩ |
| 129 | |
| 130 | theorem regular_fields_eq (n : ℕ) {w : Inner} (hw : w ∈ regularDomain s hI) (hX : 0 ≤ w.1) : |
| 131 | (asSlowProfiles s).phi n w = extendedCoefficient s hI n 0 w ∧ |
| 132 | (asSlowProfiles s).axial n w = extendedCoefficient s hI n 1 w ∧ |
| 133 | (asSlowProfiles s).flux n w = w.1 * extendedCoefficient s hI n 2 w := by |
| 134 | refine ⟨?_, ?_, ?_⟩ |
| 135 | · exact (extendEven_eq (commonWindow s hI) (profiles s n).phi hX hw.1.le).symm |
| 136 | · exact (extendEven_eq (commonWindow s hI) (profiles s n).axial hX hw.1.le).symm |
| 137 | · exact congrArg (w.1 * ·) |
| 138 | (extendEven_eq (commonWindow s hI) (profiles s n).beta hX hw.1.le).symm |
| 139 | |
| 140 | /-- Every fixed physical derivative has every requested power of decay, |
| 141 | including on approaches that meet the symmetry axis. -/ |
| 142 | theorem repaired_jetRate {l : Filter ProblemStatement.SpaceTime} {a : ℕ → ℕ} {hi : ℝ} |
| 143 | (hh : 0 < h) (hh1 : h < 1 / 2) (P : BaseResidual.PhysicalApproach l h 0 hi) |
| 144 | (ha : AdmissibleScales h (coefficientBundle C (coefficients L B0 Z0 hI)) (innerBox 0 hi) a) |
| 145 | (hf : BaseResidual.FiniteIdentities h C (coefficients L B0 Z0 hI) (asSlowProfiles s)) |
| 146 | (m : ℕ) (n : ℝ) (hn : 0 ≤ n) : |
| 147 | DiagonalResidual.JetRate l (fun z => (cartesianChart h z).1) |
| 148 | (BaseResidual.baseResidual a h C (coefficients L B0 Z0 hI)) m n := by |
| 149 | exact BaseResidual.baseResidual_jetRate_axis hh hh1 P |
| 150 | (div_pos L.inner_pos (by norm_num)) (coefficients_smooth L B0 Z0 hI) |
| 151 | (repaired_stressZeroCore L B0 Z0 hI) ha (asSlowProfiles s) hf |
| 152 | (regularDomain_open hI) (innerBox_subset_regularDomain hI hh hh1 0 hi) |
| 153 | (fun j => extendedCoefficient s hI j 0) (fun j => extendedCoefficient s hI j 1) |
| 154 | (fun j => extendedCoefficient s hI j 2) |
| 155 | (fun j => (extendedCoefficient_contDiff s hI j 0).contDiffOn) |
| 156 | (fun j => (extendedCoefficient_contDiff s hI j 1).contDiffOn) |
| 157 | (fun j => (extendedCoefficient_contDiff s hI j 2).contDiffOn) |
| 158 | (fun j _ hw hx => (regular_fields_eq hI j hw hx).2.2) |
| 159 | (fun j _ hw hx => (regular_fields_eq hI j hw hx).2.1) |
| 160 | (fun j _ hw hx => (regular_fields_eq hI j hw hx).1) |
| 161 | (fun _ hw => hw.2) m n hn |
| 162 | |
| 163 | theorem repaired_allJetsFlat {l : Filter ProblemStatement.SpaceTime} {a : ℕ → ℕ} {hi : ℝ} |
| 164 | (hh : 0 < h) (hh1 : h < 1 / 2) (P : BaseResidual.PhysicalApproach l h 0 hi) |
| 165 | (ha : AdmissibleScales h (coefficientBundle C (coefficients L B0 Z0 hI)) (innerBox 0 hi) a) |
| 166 | (hf : BaseResidual.FiniteIdentities h C (coefficients L B0 Z0 hI) (asSlowProfiles s)) : |
| 167 | ResidualStability.AllJetsFlat l (fun z => (cartesianChart h z).1) |
| 168 | (BaseResidual.baseResidual a h C (coefficients L B0 Z0 hI)) := by |
| 169 | exact BaseResidual.baseResidual_allJetsFlat_axis hh hh1 P |
| 170 | (div_pos L.inner_pos (by norm_num)) (coefficients_smooth L B0 Z0 hI) |
| 171 | (repaired_stressZeroCore L B0 Z0 hI) ha (asSlowProfiles s) hf |
| 172 | (regularDomain_open hI) (innerBox_subset_regularDomain hI hh hh1 0 hi) |
| 173 | (fun j => extendedCoefficient s hI j 0) (fun j => extendedCoefficient s hI j 1) |
| 174 | (fun j => extendedCoefficient s hI j 2) |
| 175 | (fun j => (extendedCoefficient_contDiff s hI j 0).contDiffOn) |
| 176 | (fun j => (extendedCoefficient_contDiff s hI j 1).contDiffOn) |
| 177 | (fun j => (extendedCoefficient_contDiff s hI j 2).contDiffOn) |
| 178 | (fun j _ hw hx => (regular_fields_eq hI j hw hx).2.2) |
| 179 | (fun j _ hw hx => (regular_fields_eq hI j hw hx).2.1) |
| 180 | (fun j _ hw hx => (regular_fields_eq hI j hw hx).1) |
| 181 | (fun _ hw => hw.2) |
| 182 | |
| 183 | /-- Exterior confinement is a consequence of the five repaired rows, not |
| 184 | an extra hypothesis on higher-order stress coefficients. -/ |
| 185 | theorem repaired_higherInteriorSupport |
| 186 | (hbase : s.base.beta = betaFromU s.domain 0 s.base.axial) |
| 187 | {left right : ℝ} (hl : Real.exp left < inner / 8) (hr : s.B ^ 2 / 2 < Real.exp right) : |
| 188 | BaseResidual.HigherInteriorSupport (coefficients L B0 Z0 hI) left right := by |
| 189 | intro n hn |
| 190 | have he := GlobalStressSupport.raw_stresses_exterior s hbase hn |
| 191 | have hs := coefficients_stress_support L B0 Z0 hI n s.B_pos.le he.1 he.2 |
| 192 | have hz {w : Inner} (hw : w.1 ∉ Icc (inner / 8) (s.B ^ 2 / 2)) : |
| 193 | ((coefficients L B0 Z0 hI).stressTheta n w, |
| 194 | (coefficients L B0 Z0 hI).stressAxial n w) = 0 := by |
| 195 | by_contra hh |
| 196 | exact hw (hs (subset_closure hh)).1 |
| 197 | refine ⟨inner / 8, s.B ^ 2 / 2, fun _ hw => ⟨hl.trans_le hw.1, hw.2.trans_lt hr⟩, ?_, ?_⟩ |
| 198 | · intro eta _ X hX |
| 199 | exact congrArg Prod.fst (hz hX) |
| 200 | · intro eta _ X hX |
| 201 | exact congrArg Prod.snd (hz hX) |
| 202 | |
| 203 | end RepairedFamily |
| 204 | |
| 205 | section Nominal |
| 206 | |
| 207 | variable {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) |
| 208 | |
| 209 | include W |
| 210 | |
| 211 | theorem height_pos : 0 < F.data.h := W.axis.small.h_pos |
| 212 | |
| 213 | theorem height_lt_half : F.data.h < 1 / 2 := by linarith [W.axis.small.h_le] |
| 214 | |
| 215 | theorem nominal_higherInteriorSupport {left right : ℝ} |
| 216 | (hl : Real.exp left < nominalInner W / 8) (hr : nominalOuterX W < Real.exp right) : |
| 217 | BaseResidual.HigherInteriorSupport (nominalCoefficients W) left right := by |
| 218 | apply repaired_higherInteriorSupport (nominalLocalization W) (nominalBaseAgreement W) |
| 219 | (nominalZeroOrder W) (nominalParameters_contains W) rfl hl |
| 220 | change nominalOuterRadius W ^ 2 / 2 < Real.exp right |
| 221 | rwa [nominalOuterRadius_square] |
| 222 | |
| 223 | /-- The leading coefficient retains the actual natural axis datum. -/ |
| 224 | theorem nominal_leading_axis {eta : ℝ} (heta : eta ∈ Icc (-1 : ℝ) 1) : |
| 225 | (nominalCoefficients W).axial 0 (0, eta) = 4 * eta + W.axis.j := by |
| 226 | have h0 : (0 : ℝ) ≤ 4 / W.axis.scale := (div_pos (by norm_num) W.axis.scale_pos).le |
| 227 | calc |
| 228 | _ = W.U (0, eta) := (nominalCoefficients_zero_fields W (p := (0, eta)) le_rfl (abs_le.mpr heta)).2.1 |
| 229 | _ = W.controls.seedU (0, eta) := |
| 230 | (W.seed_agreement (p := (0, eta)) le_rfl NominalProfile.Xi_pos.le).2.1 |
| 231 | _ = W.axis.natural.profile.family.U (0, eta) := (W.controls.seed_initial h0).2 |
| 232 | _ = _ := W.axis.natural.profile.family.natural.U_axis eta |
| 233 | (NaturalAxisCoefficients.original_interval_interior heta) |
| 234 | |
| 235 | end Nominal |
| 236 | |
| 237 | section Modified |
| 238 | |
| 239 | variable {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) |
| 240 | {D : ProfileHistories.RadialDomain} (Q : ProfileHistories.Profiles D) |
| 241 | {S : Set ℝ} {lo hi : ℝ} (M : FiniteModification W Q S lo hi) |
| 242 | |
| 243 | include M |
| 244 | |
| 245 | theorem modified_finiteIdentities : |
| 246 | BaseResidual.FiniteIdentities F.data.h W.axis.normalization |
| 247 | (modifiedCoefficients W Q M) (asSlowProfiles (modifiedScheme W Q M)) := by |
| 248 | apply repaired_finiteIdentities (modifiedLocalization W Q M) (modifiedBaseAgreement W Q M) |
| 249 | (modifiedZeroOrder W Q M) M.contains (height_pos W) (height_lt_half W) rfl |
| 250 | intro n w hw |
| 251 | exact modified_pressureCoefficient W Q M n hw.1 (M.contains ⟨hw.2.1.le, hw.2.2.le⟩) |
| 252 | |
| 253 | theorem modified_allJetsFlat {l : Filter ProblemStatement.SpaceTime} {a : ℕ → ℕ} {upper : ℝ} |
| 254 | (P : BaseResidual.PhysicalApproach l F.data.h 0 upper) |
| 255 | (ha : AdmissibleScales F.data.h |
| 256 | (coefficientBundle W.axis.normalization (modifiedCoefficients W Q M)) (innerBox 0 upper) a) : |
| 257 | ResidualStability.AllJetsFlat l (fun z => (cartesianChart F.data.h z).1) |
| 258 | (BaseResidual.baseResidual a F.data.h W.axis.normalization (modifiedCoefficients W Q M)) := |
| 259 | repaired_allJetsFlat (modifiedLocalization W Q M) (modifiedBaseAgreement W Q M) |
| 260 | (modifiedZeroOrder W Q M) M.contains (height_pos W) (height_lt_half W) P ha |
| 261 | (modified_finiteIdentities W Q M) |
| 262 | |
| 263 | theorem modified_higherInteriorSupport {left right : ℝ} |
| 264 | (hl : Real.exp left < nominalInner W / 8) (hr : nominalOuterX W < Real.exp right) : |
| 265 | BaseResidual.HigherInteriorSupport (modifiedCoefficients W Q M) left right := by |
| 266 | apply repaired_higherInteriorSupport (modifiedLocalization W Q M) (modifiedBaseAgreement W Q M) |
| 267 | (modifiedZeroOrder W Q M) M.contains rfl hl |
| 268 | change nominalOuterRadius W ^ 2 / 2 < Real.exp right |
| 269 | rwa [nominalOuterRadius_square] |
| 270 | |
| 271 | theorem modified_leading_axis {eta : ℝ} (heta : eta ∈ Icc (-1 : ℝ) 1) : |
| 272 | (modifiedCoefficients W Q M).axial 0 (0, eta) = 4 * eta + W.axis.j := by |
| 273 | calc |
| 274 | _ = Q.U (0, eta) := (modifiedCoefficients_zero_fields W Q M (p := (0, eta)) le_rfl (abs_le.mpr heta)).2.1 |
| 275 | _ = W.U (0, eta) := (M.fields (0, eta) le_rfl (M.contains heta) |
| 276 | (Or.inl ((nominalInner_pos W).le.trans M.inner))).2 |
| 277 | _ = (nominalCoefficients W).axial 0 (0, eta) := |
| 278 | (nominalCoefficients_zero_fields W (p := (0, eta)) le_rfl (abs_le.mpr heta)).2.1.symm |
| 279 | _ = _ := nominal_leading_axis W heta |
| 280 | |
| 281 | theorem modified_leading_origin : (modifiedCoefficients W Q M).axial 0 (0, 0) = W.axis.j := by |
| 282 | simpa using modified_leading_axis W Q M (eta := 0) (by constructor <;> norm_num) |
| 283 | |
| 284 | theorem modified_origin {a : ℕ → ℕ} (ha : StrictMono a) {t : ℝ} (ht : t < 1) : |
| 285 | baseVelocity a F.data.h W.axis.normalization (modifiedCoefficients W Q M) (t, 0) = |
| 286 | ((1 - t) ^ (-CoordinateAlgebra.A F.data.h) * W.axis.j) • |
| 287 | ProblemStatement.coordinateVector 2 := by |
| 288 | rw [BaseResidual.baseVelocity_at_origin ha (height_pos W) (height_lt_half W) |
| 289 | (modifiedCoefficients_smooth W Q M) W.axis.normalization |
| 290 | (fun _ hn => (modifiedCoefficients_axis W Q M hn (by norm_num : |(0 : ℝ)| ≤ 1)).2.1) ht, |
| 291 | modified_leading_origin] |
| 292 | |
| 293 | end Modified |
| 294 | |
| 295 | section CommonWeightedSchedule |
| 296 | |
| 297 | open BaseResidual ActiveAnnulusWeight |
| 298 | |
| 299 | /-- The actual two-slot, all-order weighted estimate, used only as an output |
| 300 | of the coefficient construction and common schedule selection. -/ |
| 301 | def WeightedStressBound (a : ℕ → ℕ) (h : ℝ) (d : Coefficients) (c left right : ℝ) : Prop := |
| 302 | ∀ m : ℕ, ∃ D : ℝ, 0 < D ∧ ∃ N : ℕ, ∀ q : ℝ, 0 < q → q ≤ 1 → |
| 303 | ∀ w ∈ activeWindow left right, |
| 304 | ‖blownJet m (fun v => normalizedTensor a h d v - stressPair d 0 v.2) (q, w)‖ ≤ |
| 305 | D * q ^ h * activeZeta c left right w * (activeDelta left right w)⁻¹ ^ N |
| 306 | |
| 307 | /-- This form uses actual derivative bounds on the closed parameter band. |
| 308 | It requires no ambient germ equality to an auxiliary extension at eta=±1. -/ |
| 309 | theorem weighted_on_actual_scales {a : ℕ → ℕ} {h C : ℝ} (hh : 0 < h) |
| 310 | {d : Coefficients} (hd : SmoothCoefficients d) {c left right inner cut : ℝ} |
| 311 | (hc : 0 < c) (hl : Real.exp left < inner) (hi : inner ≤ cut) (hr : cut < Real.exp right) |
| 312 | (hs : HigherInteriorSupport d left right) |
| 313 | (hz : ∀ w : Inner, w.1 < inner → stressPair d 1 w = 0) |
| 314 | (ho : PolynomialEdgeJets (outerWindow cut right) (activeZeta c left right) |
| 315 | (activeDelta left right) (stressPair d 1)) |
| 316 | {K : Set Inner} (hK : IsCompact K) (hWK : activeWindow left right ⊆ K) |
| 317 | (ha : AdmissibleScales h (weightedBundle C d (activeZeta c left right)) K a) : |
| 318 | WeightedStressBound a h d c left right := by |
| 319 | let O : Set Inner := Ioo (Real.exp left) (Real.exp right) ×ˢ univ |
| 320 | have hO : IsOpen O := isOpen_Ioo.prod isOpen_univ |
| 321 | have hWO : activeWindow left right ⊆ O := fun _ hw => ⟨hw.1, mem_univ _⟩ |
| 322 | exact normalizedTensor_weighted_bound hh hd hK hWK hO hWO |
| 323 | (activeZeta_smooth hc left right) (fun _ hw => radialWeight_pos hw.1) |
| 324 | (fun _ hw => activeDelta_bounds hw) |
| 325 | (edgeJets_of_outer_collar (stressPair_smooth hd 1) hc hl hi hr hz ho) |
| 326 | (activeZeta_edgeJets (Real.exp_lt_exp.mp ((hl.trans_le hi).trans hr)) hc) |
| 327 | (higherStressQuotient_smooth_of_support hd hc hs) ha |
| 328 | |
| 329 | end CommonWeightedSchedule |
| 330 | |
| 331 | section FixedGeometry |
| 332 | |
| 333 | variable {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) |
| 334 | |
| 335 | noncomputable def activeLeft : ℝ := Real.log (nominalInner W / 16) |
| 336 | |
| 337 | noncomputable def terminalShift : ℝ := TerminalHistoryBridge.shift F W.controls.radius |
| 338 | |
| 339 | noncomputable def activeRight : ℝ := terminalShift W + 3 |
| 340 | |
| 341 | noncomputable def activeUpper : ℝ := Real.exp (activeRight W) |
| 342 | |
| 343 | noncomputable def scaleUpper (upper : ℝ) : ℝ := max upper (activeUpper W) |
| 344 | |
| 345 | theorem exp_activeLeft : Real.exp (activeLeft W) = nominalInner W / 16 := |
| 346 | Real.exp_log (div_pos (nominalInner_pos W) (by norm_num)) |
| 347 | |
| 348 | theorem activeLeft_margin : Real.exp (activeLeft W) < nominalInner W / 8 := by |
| 349 | rw [exp_activeLeft] |
| 350 | linarith [nominalInner_pos W] |
| 351 | |
| 352 | theorem switch_before_collar : BaseExterior.nominalHeatSwitch W < Real.exp (terminalShift W + 2) := by |
| 353 | change BaseExterior.nominalHeatSwitch W < |
| 354 | Real.exp (Real.log (BaseExterior.nominalHeatSwitch W) - 1 / 5 + 2) |
| 355 | calc |
| 356 | _ = Real.exp (Real.log (BaseExterior.nominalHeatSwitch W)) := |
| 357 | (Real.exp_log (BaseExterior.nominalHeatSwitch_pos W)).symm |
| 358 | _ < _ := Real.exp_lt_exp.mpr (by linarith) |
| 359 | |
| 360 | theorem outer_before_collar : nominalOuterX W < Real.exp (terminalShift W + 2) := |
| 361 | (nominalOuterX_lt_switch W).trans (switch_before_collar W) |
| 362 | |
| 363 | theorem collar_before_upper : Real.exp (terminalShift W + 2) < activeUpper W := |
| 364 | Real.exp_lt_exp.mpr (by dsimp [activeUpper, activeRight]; linarith) |
| 365 | |
| 366 | theorem outer_before_upper : nominalOuterX W < activeUpper W := |
| 367 | (outer_before_collar W).trans (collar_before_upper W) |
| 368 | |
| 369 | theorem nominal_higher_support : |
| 370 | BaseResidual.HigherInteriorSupport (nominalCoefficients W) (activeLeft W) (activeRight W) := |
| 371 | nominal_higherInteriorSupport W (activeLeft_margin W) (outer_before_upper W) |
| 372 | |
| 373 | theorem nominal_quotients_smooth {c : ℝ} (hc : 0 < c) (j : ℕ) : |
| 374 | ContDiff ℝ ∞ (BaseResidual.higherStressQuotient (nominalCoefficients W) |
| 375 | (BaseResidual.activeZeta c (activeLeft W) (activeRight W)) j) := |
| 376 | BaseResidual.higherStressQuotient_smooth_of_support (nominalCoefficients_smooth W) hc |
| 377 | (nominal_higher_support W) j |
| 378 | |
| 379 | theorem modified_higher_support {D : ProfileHistories.RadialDomain} (Q : ProfileHistories.Profiles D) |
| 380 | {S : Set ℝ} {lo hi : ℝ} (M : FiniteModification W Q S lo hi) : |
| 381 | BaseResidual.HigherInteriorSupport (modifiedCoefficients W Q M) (activeLeft W) (activeRight W) := |
| 382 | modified_higherInteriorSupport W Q M (activeLeft_margin W) (outer_before_upper W) |
| 383 | |
| 384 | theorem modified_quotients_smooth {D : ProfileHistories.RadialDomain} (Q : ProfileHistories.Profiles D) |
| 385 | {S : Set ℝ} {lo hi : ℝ} (M : FiniteModification W Q S lo hi) {c : ℝ} (hc : 0 < c) (j : ℕ) : |
| 386 | ContDiff ℝ ∞ (BaseResidual.higherStressQuotient (modifiedCoefficients W Q M) |
| 387 | (BaseResidual.activeZeta c (activeLeft W) (activeRight W)) j) := |
| 388 | BaseResidual.higherStressQuotient_smooth_of_support (modifiedCoefficients_smooth W Q M) hc |
| 389 | (modified_higher_support W Q M) j |
| 390 | |
| 391 | end FixedGeometry |
| 392 | |
| 393 | section SelectedSchedules |
| 394 | |
| 395 | open BaseResidual |
| 396 | |
| 397 | variable {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) |
| 398 | (c : ℝ) (hc : 0 < c) (upper : ℝ) (B : ℕ) |
| 399 | |
| 400 | /-- This is one actual choice for the enlarged bundle. The ordinary base |
| 401 | schedule and the weighted stress estimate use this very same function. -/ |
| 402 | noncomputable def nominalScales : ℕ → ℕ := |
| 403 | Classical.choose (exists_admissibleScales |
| 404 | (weightedBundle_smooth (nominalCoefficients_smooth W) (nominal_quotients_smooth W hc) |
| 405 | W.axis.normalization) (height_pos W) (innerBox_isCompact 0 (scaleUpper W upper)) B) |
| 406 | |
| 407 | theorem nominalScales_spec : B ≤ nominalScales W c hc upper B 0 ∧ |
| 408 | AdmissibleScales F.data.h |
| 409 | (weightedBundle W.axis.normalization (nominalCoefficients W) |
| 410 | (activeZeta c (activeLeft W) (activeRight W))) |
| 411 | (innerBox 0 (scaleUpper W upper)) (nominalScales W c hc upper B) := |
| 412 | Classical.choose_spec (exists_admissibleScales |
| 413 | (weightedBundle_smooth (nominalCoefficients_smooth W) (nominal_quotients_smooth W hc) |
| 414 | W.axis.normalization) (height_pos W) (innerBox_isCompact 0 (scaleUpper W upper)) B) |
| 415 | |
| 416 | theorem nominalScales_admissible : |
| 417 | AdmissibleScales F.data.h (coefficientBundle W.axis.normalization (nominalCoefficients W)) |
| 418 | (innerBox 0 (scaleUpper W upper)) (nominalScales W c hc upper B) := |
| 419 | weightedBundle_base_scales (nominalCoefficients_smooth W) (nominal_quotients_smooth W hc) |
| 420 | (nominalScales_spec W c hc upper B).2 |
| 421 | |
| 422 | theorem nominalScales_admissible_on {lo hi : ℝ} (hlo : 0 ≤ lo) (hhi : hi ≤ scaleUpper W upper) : |
| 423 | AdmissibleScales F.data.h (coefficientBundle W.axis.normalization (nominalCoefficients W)) |
| 424 | (innerBox lo hi) (nominalScales W c hc upper B) := |
| 425 | admissibleScales_mono (nominalScales_admissible W c hc upper B) |
| 426 | (fun _ hw => ⟨⟨hlo.trans hw.1.1, hw.1.2.trans hhi⟩, hw.2⟩) |
| 427 | |
| 428 | variable {D : ProfileHistories.RadialDomain} (Q : ProfileHistories.Profiles D) |
| 429 | {S : Set ℝ} {lo hi : ℝ} (M : FiniteModification W Q S lo hi) |
| 430 | |
| 431 | /-- The modified family gets one schedule, derived from its actual repaired |
| 432 | coefficients. No stress estimate enters this definition. -/ |
| 433 | noncomputable def modifiedScales : ℕ → ℕ := |
| 434 | Classical.choose (exists_admissibleScales |
| 435 | (weightedBundle_smooth (modifiedCoefficients_smooth W Q M) (modified_quotients_smooth W Q M hc) |
| 436 | W.axis.normalization) (height_pos W) (innerBox_isCompact 0 (scaleUpper W upper)) B) |
| 437 | |
| 438 | theorem modifiedScales_spec : B ≤ modifiedScales W c hc upper B Q M 0 ∧ |
| 439 | AdmissibleScales F.data.h |
| 440 | (weightedBundle W.axis.normalization (modifiedCoefficients W Q M) |
| 441 | (activeZeta c (activeLeft W) (activeRight W))) |
| 442 | (innerBox 0 (scaleUpper W upper)) (modifiedScales W c hc upper B Q M) := |
| 443 | Classical.choose_spec (exists_admissibleScales |
| 444 | (weightedBundle_smooth (modifiedCoefficients_smooth W Q M) (modified_quotients_smooth W Q M hc) |
| 445 | W.axis.normalization) (height_pos W) (innerBox_isCompact 0 (scaleUpper W upper)) B) |
| 446 | |
| 447 | theorem modifiedScales_admissible : |
| 448 | AdmissibleScales F.data.h (coefficientBundle W.axis.normalization (modifiedCoefficients W Q M)) |
| 449 | (innerBox 0 (scaleUpper W upper)) (modifiedScales W c hc upper B Q M) := |
| 450 | weightedBundle_base_scales (modifiedCoefficients_smooth W Q M) (modified_quotients_smooth W Q M hc) |
| 451 | (modifiedScales_spec W c hc upper B Q M).2 |
| 452 | |
| 453 | theorem modifiedScales_strictMono : StrictMono (modifiedScales W c hc upper B Q M) := |
| 454 | (modifiedScales_spec W c hc upper B Q M).2.strictMono |
| 455 | |
| 456 | theorem modifiedScales_allJetsFlat {l : Filter ProblemStatement.SpaceTime} {radius : ℝ} |
| 457 | (P : PhysicalApproach l F.data.h 0 radius) (hr : radius ≤ scaleUpper W upper) : |
| 458 | ResidualStability.AllJetsFlat l (fun z => (cartesianChart F.data.h z).1) |
| 459 | (baseResidual (modifiedScales W c hc upper B Q M) F.data.h W.axis.normalization |
| 460 | (modifiedCoefficients W Q M)) := |
| 461 | modified_allJetsFlat W Q M P (admissibleScales_mono (modifiedScales_admissible W c hc upper B Q M) |
| 462 | (fun _ hw => ⟨⟨hw.1.1, hw.1.2.trans hr⟩, hw.2⟩)) |
| 463 | |
| 464 | theorem modifiedScales_origin {t : ℝ} (ht : t < 1) : |
| 465 | baseVelocity (modifiedScales W c hc upper B Q M) F.data.h W.axis.normalization |
| 466 | (modifiedCoefficients W Q M) (t, 0) = |
| 467 | ((1 - t) ^ (-CoordinateAlgebra.A F.data.h) * W.axis.j) • |
| 468 | ProblemStatement.coordinateVector 2 := |
| 469 | modified_origin W Q M (modifiedScales_strictMono W c hc upper B Q M) ht |
| 470 | |
| 471 | end SelectedSchedules |
| 472 | |
| 473 | section ActualWeightedStress |
| 474 | |
| 475 | variable {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) |
| 476 | (c : ℝ) (hc : 0 < c) (upper : ℝ) (B : ℕ) |
| 477 | |
| 478 | variable {D : ProfileHistories.RadialDomain} (Q : ProfileHistories.Profiles D) |
| 479 | {S : Set ℝ} {lo hi : ℝ} (M : FiniteModification W Q S lo hi) |
| 480 | |
| 481 | end ActualWeightedStress |
| 482 | |
| 483 | namespace Modulated |
| 484 | |
| 485 | variable {F : OutgoingProfile.Profile} {W : NominalProfile.Witness F} |
| 486 | {ld : ModulatedProfileAssembly.LoopData W} (v : ModulatedProfileAssembly.Witness ld) |
| 487 | |
| 488 | /-- The coefficients are rebuilt from this particular solved finite |
| 489 | modulation, using its preserved histories and its original nominal witness. -/ |
| 490 | noncomputable def coefficients : Coefficients := |
| 491 | modifiedCoefficients W v.profiles v.finiteModification |
| 492 | |
| 493 | theorem coefficients_smooth : SmoothCoefficients (coefficients v) := |
| 494 | modifiedCoefficients_smooth W v.profiles v.finiteModification |
| 495 | |
| 496 | noncomputable def scales (c : ℝ) (hc : 0 < c) (upper : ℝ) (B : ℕ) : ℕ → ℕ := |
| 497 | modifiedScales W c hc upper B v.profiles v.finiteModification |
| 498 | |
| 499 | theorem scales_spec (c : ℝ) (hc : 0 < c) (upper : ℝ) (B : ℕ) : |
| 500 | B ≤ scales v c hc upper B 0 ∧ |
| 501 | AdmissibleScales F.data.h |
| 502 | (BaseResidual.weightedBundle W.axis.normalization (coefficients v) |
| 503 | (BaseResidual.activeZeta c (activeLeft W) (activeRight W))) |
| 504 | (innerBox 0 (scaleUpper W upper)) (scales v c hc upper B) := |
| 505 | modifiedScales_spec W c hc upper B v.profiles v.finiteModification |
| 506 | |
| 507 | theorem scales_admissible (c : ℝ) (hc : 0 < c) (upper : ℝ) (B : ℕ) : |
| 508 | AdmissibleScales F.data.h (coefficientBundle W.axis.normalization (coefficients v)) |
| 509 | (innerBox 0 (scaleUpper W upper)) (scales v c hc upper B) := |
| 510 | modifiedScales_admissible W c hc upper B v.profiles v.finiteModification |
| 511 | |
| 512 | theorem scales_strictMono (c : ℝ) (hc : 0 < c) (upper : ℝ) (B : ℕ) : |
| 513 | StrictMono (scales v c hc upper B) := (scales_spec v c hc upper B).2.strictMono |
| 514 | |
| 515 | noncomputable def velocity (c : ℝ) (hc : 0 < c) (upper : ℝ) (B : ℕ) : |
| 516 | ProblemStatement.VelocityField := |
| 517 | baseVelocity (scales v c hc upper B) F.data.h W.axis.normalization (coefficients v) |
| 518 | |
| 519 | noncomputable def pressure (c : ℝ) (hc : 0 < c) (upper : ℝ) (B : ℕ) : |
| 520 | ProblemStatement.PressureField := |
| 521 | basePressure (scales v c hc upper B) F.data.h W.axis.normalization (coefficients v) |
| 522 | |
| 523 | noncomputable def error (c : ℝ) (hc : 0 < c) (upper : ℝ) (B : ℕ) : |
| 524 | ProblemStatement.SpaceTime → ProblemStatement.Space := |
| 525 | BaseResidual.baseResidual (scales v c hc upper B) F.data.h W.axis.normalization (coefficients v) |
| 526 | |
| 527 | noncomputable def vectorPotential (c : ℝ) (hc : 0 < c) (upper : ℝ) (B : ℕ) : |
| 528 | ProblemStatement.VelocityField := |
| 529 | potential (scales v c hc upper B) F.data.h W.axis.normalization (coefficients v) |
| 530 | |
| 531 | theorem origin (c : ℝ) (hc : 0 < c) (upper : ℝ) (B : ℕ) {t : ℝ} (ht : t < 1) : |
| 532 | velocity v c hc upper B (t, 0) = |
| 533 | ((1 - t) ^ (-CoordinateAlgebra.A F.data.h) * W.axis.j) • ProblemStatement.coordinateVector 2 := |
| 534 | modifiedScales_origin W c hc upper B v.profiles v.finiteModification ht |
| 535 | |
| 536 | theorem finiteIdentities : |
| 537 | BaseResidual.FiniteIdentities F.data.h W.axis.normalization (coefficients v) |
| 538 | (asSlowProfiles (modifiedScheme W v.profiles v.finiteModification)) := |
| 539 | modified_finiteIdentities W v.profiles v.finiteModification |
| 540 | |
| 541 | theorem error_allJetsFlat (c : ℝ) (hc : 0 < c) (upper : ℝ) (B : ℕ) |
| 542 | {l : Filter ProblemStatement.SpaceTime} {radius : ℝ} |
| 543 | (P : BaseResidual.PhysicalApproach l F.data.h 0 radius) (hr : radius ≤ scaleUpper W upper) : |
| 544 | ResidualStability.AllJetsFlat l (fun z => (cartesianChart F.data.h z).1) (error v c hc upper B) := |
| 545 | modifiedScales_allJetsFlat W c hc upper B v.profiles v.finiteModification P hr |
| 546 | |
| 547 | end Modulated |
| 548 | |
| 549 | end NavierStokes.ConstructedSlowBase |