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.ConstructedSlowBase |
| 2 | import NavierStokes.ModulatedProfileAssembly |
| 3 | import NavierStokes.FirstOrderBaseEdge |
| 4 | import NavierStokes.ZerothStressIdentity |
| 5 | import NavierStokes.LeadingStressWeights |
| 6 | |
| 7 | /-! |
| 8 | # A slow base whose cutoffs are aligned with the natural entrance |
| 9 | |
| 10 | The retained local hierarchy extends strictly beyond the natural entrance. |
| 11 | Its cutoff transition lies inside the proved initial true-cone collar and |
| 12 | before the finite modulation begins. The same finite base, local hierarchy, |
| 13 | and five-row exterior repair are used throughout. |
| 14 | -/ |
| 15 | |
| 16 | noncomputable section |
| 17 | |
| 18 | open Set Filter Function MeasureTheory |
| 19 | open scoped Topology ContDiff BigOperators |
| 20 | |
| 21 | namespace NavierStokes.EntranceAlignedBase |
| 22 | |
| 23 | open GlobalSlowProfiles AssembledSlowBase |
| 24 | |
| 25 | section Geometry |
| 26 | |
| 27 | variable {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) |
| 28 | (H : NominalConeAssembly.Certificate W) |
| 29 | |
| 30 | noncomputable def trueWidth : ℝ := H.initial.choose |
| 31 | |
| 32 | theorem trueWidth_pos : 0 < trueWidth W H := H.initial.choose_spec.1 |
| 33 | |
| 34 | theorem trueWidth_spec {y eta : ℝ} (hy : 0 < y) (ht : y ≤ trueWidth W H) |
| 35 | (heta : eta ∈ HeatedOutgoing.parameterDomain) : |
| 36 | NominalConeAssembly.IsTrue W.profiles F.data.h |
| 37 | (NominalConeAssembly.chart (NominalConeAssembly.activeLeft W) (y, eta)) := |
| 38 | H.initial.choose_spec.2.2 y eta hy ht heta |
| 39 | |
| 40 | noncomputable def analyticEnd : ℝ := |
| 41 | NominalConeAssembly.activeLeft W * Real.exp W.controls.referenceWidth |
| 42 | |
| 43 | noncomputable def windowCap (lo : ℝ) : ℝ := |
| 44 | min lo (min (NominalConeAssembly.activeLeft W * Real.exp (trueWidth W H)) (analyticEnd W)) |
| 45 | |
| 46 | noncomputable def zeroEnd (lo : ℝ) : ℝ := |
| 47 | NominalConeAssembly.activeLeft W + (windowCap W H lo - NominalConeAssembly.activeLeft W) / 4 |
| 48 | |
| 49 | noncomputable def cutoffInner (lo : ℝ) : ℝ := |
| 50 | NominalConeAssembly.activeLeft W + (windowCap W H lo - NominalConeAssembly.activeLeft W) / 2 |
| 51 | |
| 52 | noncomputable def cutoffStop (lo : ℝ) : ℝ := |
| 53 | NominalConeAssembly.activeLeft W + 3 * (windowCap W H lo - NominalConeAssembly.activeLeft W) / 4 |
| 54 | |
| 55 | theorem entrance_lt_cap {lo : ℝ} (hlo : NominalConeAssembly.activeLeft W < lo) : |
| 56 | NominalConeAssembly.activeLeft W < windowCap W H lo := by |
| 57 | have ha := NominalConeAssembly.activeLeft_pos W |
| 58 | have ht := Real.one_lt_exp_iff.mpr (trueWidth_pos W H) |
| 59 | have hr := Real.one_lt_exp_iff.mpr W.controls.referenceWidth_pos |
| 60 | apply lt_min hlo |
| 61 | apply lt_min |
| 62 | · nlinarith |
| 63 | · dsimp [analyticEnd] |
| 64 | nlinarith |
| 65 | |
| 66 | theorem window_order {lo : ℝ} (hlo : NominalConeAssembly.activeLeft W < lo) : |
| 67 | NominalConeAssembly.activeLeft W < zeroEnd W H lo ∧ |
| 68 | zeroEnd W H lo < cutoffInner W H lo ∧ |
| 69 | cutoffInner W H lo < cutoffStop W H lo ∧ cutoffStop W H lo < windowCap W H lo := by |
| 70 | have hm := entrance_lt_cap W H hlo |
| 71 | dsimp [zeroEnd, cutoffInner, cutoffStop] |
| 72 | constructor <;> [skip; constructor] <;> [skip; skip; constructor] <;> linarith |
| 73 | |
| 74 | theorem cutoffStop_lt_lo {lo : ℝ} (hlo : NominalConeAssembly.activeLeft W < lo) : |
| 75 | cutoffStop W H lo < lo := |
| 76 | (window_order W H hlo).2.2.2.trans_le (min_le_left _ _) |
| 77 | |
| 78 | theorem cutoffStop_lt_trueEnd {lo : ℝ} (hlo : NominalConeAssembly.activeLeft W < lo) : |
| 79 | cutoffStop W H lo < NominalConeAssembly.activeLeft W * Real.exp (trueWidth W H) := |
| 80 | (window_order W H hlo).2.2.2.trans_le ((min_le_right _ _).trans (min_le_left _ _)) |
| 81 | |
| 82 | theorem cutoffStop_lt_analyticEnd {lo : ℝ} (hlo : NominalConeAssembly.activeLeft W < lo) : |
| 83 | cutoffStop W H lo < analyticEnd W := |
| 84 | (window_order W H hlo).2.2.2.trans_le ((min_le_right _ _).trans (min_le_right _ _)) |
| 85 | |
| 86 | theorem cutoffInner_pos {lo : ℝ} (hlo : NominalConeAssembly.activeLeft W < lo) : |
| 87 | 0 < cutoffInner W H lo := |
| 88 | (NominalConeAssembly.activeLeft_pos W).trans ((window_order W H hlo).1.trans (window_order W H hlo).2.1) |
| 89 | |
| 90 | theorem zeroEnd_pos {lo : ℝ} (hlo : NominalConeAssembly.activeLeft W < lo) : |
| 91 | 0 < zeroEnd W H lo := (NominalConeAssembly.activeLeft_pos W).trans (window_order W H hlo).1 |
| 92 | |
| 93 | theorem analyticEnd_lt_radius : analyticEnd W < nominalRadius W ^ 2 := |
| 94 | ActualSlowAxis.collar_lt_square W.axis.referenceInput W.controls.referenceWidth |
| 95 | |
| 96 | theorem analyticEnd_lt_patch : |
| 97 | analyticEnd W < (ReservedPatches.radialLeft F W.controls.radius .positive) ^ 2 / 2 := by |
| 98 | have hleft : W.controls.radius < ReservedPatches.left F W.controls.radius .positive := by |
| 99 | have hc := F.data.core.holdStart_pos.trans (ReservedPatches.clock_inside_wait F .positive).1 |
| 100 | have hs := ReservedPatches.radius_strictMono W.controls.radius W.controls.radius_pos hc |
| 101 | simpa only [OutgoingDilation.radius, Real.exp_zero, mul_one, ReservedPatches.left] using hs |
| 102 | have hb := W.controls.activation_collar_le_Xi.trans_lt |
| 103 | (((W.controls.Xi_lt_heatJoin W.separated).trans W.controls.heatJoin_lt_radius).trans hleft) |
| 104 | rw [ReservedPatches.radialLeft, Real.sq_sqrt |
| 105 | (mul_nonneg (by norm_num) (ReservedPatches.left_pos F W.controls.radius W.controls.radius_pos .positive).le)] |
| 106 | dsimp [analyticEnd, NominalConeAssembly.activeLeft] |
| 107 | linarith |
| 108 | |
| 109 | theorem cutoffStop_lt_radius {lo : ℝ} (hlo : NominalConeAssembly.activeLeft W < lo) : |
| 110 | cutoffStop W H lo < nominalRadius W ^ 2 := |
| 111 | (cutoffStop_lt_analyticEnd W H hlo).trans (analyticEnd_lt_radius W) |
| 112 | |
| 113 | theorem cutoffStop_lt_patch {lo : ℝ} (hlo : NominalConeAssembly.activeLeft W < lo) : |
| 114 | cutoffStop W H lo < (ReservedPatches.radialLeft F W.controls.radius .positive) ^ 2 / 2 := |
| 115 | (cutoffStop_lt_analyticEnd W H hlo).trans (analyticEnd_lt_patch W) |
| 116 | |
| 117 | /-- The whole cutoff transition is inside the actual initial true collar. -/ |
| 118 | theorem cutoff_transition_true {lo : ℝ} (hlo : NominalConeAssembly.activeLeft W < lo) |
| 119 | {p : ℝ × ℝ} (hp : p.1 ∈ Icc (cutoffInner W H lo) (cutoffStop W H lo)) |
| 120 | (heta : p.2 ∈ HeatedOutgoing.parameterDomain) : |
| 121 | NominalConeAssembly.IsTrue W.profiles F.data.h p := by |
| 122 | have ha := NominalConeAssembly.activeLeft_pos W |
| 123 | have hleft := ((window_order W H hlo).1.trans (window_order W H hlo).2.1).trans_le hp.1 |
| 124 | have hy : 0 < Real.log (p.1 / NominalConeAssembly.activeLeft W) := by |
| 125 | apply Real.log_pos |
| 126 | exact (one_lt_div ha).mpr hleft |
| 127 | have ht := NominalConeAssembly.log_chart_lt ha (ha.trans hleft) |
| 128 | (hp.2.trans_lt (cutoffStop_lt_trueEnd W H hlo)) |
| 129 | have hc := trueWidth_spec W H hy ht.le heta |
| 130 | rwa [NominalConeAssembly.chart_log ha (ha.trans hleft)] at hc |
| 131 | |
| 132 | end Geometry |
| 133 | |
| 134 | section Scheme |
| 135 | |
| 136 | variable {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) |
| 137 | (H : NominalConeAssembly.Certificate W) |
| 138 | {D : ProfileHistories.RadialDomain} (Q : ProfileHistories.Profiles D) |
| 139 | {S : Set ℝ} {lo hi : ℝ} (M : FiniteModification W Q S lo hi) |
| 140 | (hlo : NominalConeAssembly.activeLeft W < lo) |
| 141 | |
| 142 | /-- A new actual global recursion, retaining the same local hierarchy |
| 143 | through the entrance and changing only its common seed cutoff. -/ |
| 144 | noncomputable def scheme : Scheme S F.data.h W.axis.normalization := |
| 145 | schemeFromHierarchy (nominalHierarchy W) (ActualSlowAxis.axisRadius_pos _ _) |
| 146 | (nominalComplexDomain_open W) (modifiedDomain W Q M) (fun _ he => (M.subset he).2) |
| 147 | W.axis.normalization_pos.ne' F.data.core.lam_pos (window_order W H hlo).2.2.1 |
| 148 | (cutoffStop_lt_radius W H hlo) (cutoffStop_lt_patch W H hlo) |
| 149 | (ReservedPatches.radialLeft_pos F W.controls.radius W.controls.radius_pos .positive) |
| 150 | (ReservedPatches.radial_left_lt_right F W.controls.radius W.controls.radius_pos .positive) |
| 151 | (nominal_patch_before_outer W).le (modifiedBaseData W Q M) |
| 152 | |
| 153 | theorem localization : Localization (scheme W H Q M hlo) (nominalHierarchy W) (cutoffInner W H lo) := |
| 154 | localizationFromHierarchy (nominalHierarchy W) (ActualSlowAxis.axisRadius_pos _ _) |
| 155 | (nominalComplexDomain_open W) (modifiedDomain W Q M) (fun _ he => (M.subset he).2) |
| 156 | W.axis.normalization_pos.ne' F.data.core.lam_pos (cutoffInner_pos W H hlo) |
| 157 | (window_order W H hlo).2.2.1 (cutoffStop_lt_radius W H hlo) (cutoffStop_lt_patch W H hlo) |
| 158 | (ReservedPatches.radialLeft_pos F W.controls.radius W.controls.radius_pos .positive) |
| 159 | (ReservedPatches.radial_left_lt_right F W.controls.radius W.controls.radius_pos .positive) |
| 160 | (nominal_patch_before_outer W).le (modifiedBaseData W Q M) |
| 161 | |
| 162 | theorem scheme_base : (scheme W H Q M hlo).base = (modifiedScheme W Q M).base := rfl |
| 163 | |
| 164 | theorem scheme_outer : (scheme W H Q M hlo).B = nominalOuterRadius W := rfl |
| 165 | |
| 166 | theorem scheme_base_beta : (scheme W H Q M hlo).base.beta = |
| 167 | betaFromU (scheme W H Q M hlo).domain 0 (scheme W H Q M hlo).base.axial := rfl |
| 168 | |
| 169 | /-- The actual nominal fields agree with the ACT fields throughout the |
| 170 | analytic collar, rather than only on the smaller natural core. -/ |
| 171 | theorem nominal_ACT_fields {X eta : ℝ} (hX : 0 ≤ X) (hc : X ≤ analyticEnd W) |
| 172 | (heta : eta ∈ ReferencePath.parameterInterval) : |
| 173 | W.profiles.f (X, eta) = (nominalACT W).f (X, eta) ∧ |
| 174 | W.profiles.U (X, eta) = (nominalACT W).U (X, eta) := by |
| 175 | have hn := W.seed_agreement (p := (X, eta)) hX (hc.trans W.controls.activation_collar_le_Xi) |
| 176 | have ha := W.controls.seed_activation (p := (X, eta)) heta hc |
| 177 | exact ⟨hn.1.trans ha.1, hn.2.1.trans ha.2⟩ |
| 178 | |
| 179 | include M hlo in |
| 180 | theorem modified_ACT_fields {p : ℝ × ℝ} (hX : 0 ≤ p.1) (hc : p.1 < cutoffInner W H lo) |
| 181 | (heta : p.2 ∈ S) : |
| 182 | Q.f p = (nominalACT W).f p ∧ Q.U p = (nominalACT W).U p := by |
| 183 | have hl : p.1 ≤ lo := (hc.trans ((window_order W H hlo).2.2.1.trans (cutoffStop_lt_lo W H hlo))).le |
| 184 | have he := M.fields p hX heta (Or.inl hl) |
| 185 | have ha := nominal_ACT_fields W hX |
| 186 | (hc.trans ((window_order W H hlo).2.2.1.trans (cutoffStop_lt_analyticEnd W H hlo))).le |
| 187 | (nominalParameters_reference W (M.subset heta)) |
| 188 | exact ⟨he.1.trans ha.1, he.2.trans ha.2⟩ |
| 189 | |
| 190 | include M hlo in |
| 191 | theorem modified_ACT_pressure {p : ℝ × ℝ} (hX : 0 ≤ p.1) (hc : p.1 < cutoffInner W H lo) |
| 192 | (heta : p.2 ∈ S) : Q.pressure p = (nominalACT W).pressure p := by |
| 193 | apply (ActualSlowAxis.histories_congr_below Q (nominalACT W) hX |
| 194 | (congrFun M.pressure0 p.2) _ _).2 |
| 195 | · intro X hXX |
| 196 | exact (modified_ACT_fields W H Q M hlo (p := (X, p.2)) hXX.1 (hXX.2.trans_lt hc) heta).1 |
| 197 | · intro X hXX |
| 198 | exact (modified_ACT_fields W H Q M hlo (p := (X, p.2)) hXX.1 (hXX.2.trans_lt hc) heta).2 |
| 199 | |
| 200 | theorem base_phi_axial_pressure {p : ℝ × ℝ} (hX : 0 ≤ p.1) (hc : p.1 < cutoffInner W H lo) |
| 201 | (heta : p.2 ∈ S) : |
| 202 | xProfile (scheme W H Q M hlo).base.phi p = |
| 203 | SlowRecursion.profile ((nominalHierarchy W).coefficients 0 0) p ∧ |
| 204 | xProfile (scheme W H Q M hlo).base.axial p = |
| 205 | SlowRecursion.profile ((nominalHierarchy W).coefficients 0 1) p ∧ |
| 206 | xProfile (scheme W H Q M hlo).base.pressure p = |
| 207 | SlowRecursion.profile ((nominalHierarchy W).coefficients 0 3) p := by |
| 208 | have hv := ActualSlowAxis.hierarchy_base_values (nominalTube W) W.controls.activationTime_pos |
| 209 | W.controls.referenceWidth_pos W.controls.referenceWidth_small W.controls.kappa |
| 210 | F.axisDatum_contDiff W.axis.normalization hX (nominalParameters_reference W (M.subset heta)) |
| 211 | have hf := modified_ACT_fields W H Q M hlo hX hc heta |
| 212 | have hp := modified_ACT_pressure W H Q M hlo hX hc heta |
| 213 | refine ⟨?_, ?_, ?_⟩ |
| 214 | · change xProfile (baseFields (modifiedDomain W Q M) W.axis.normalization Q M.halfPlane).phi p = _ |
| 215 | rw [baseFields_phi _ _ _ _ hX, hf.1] |
| 216 | exact hv.1.symm |
| 217 | · change xProfile (baseFields (modifiedDomain W Q M) W.axis.normalization Q M.halfPlane).axial p = _ |
| 218 | rw [baseFields_axial _ _ _ _ hX, hf.2] |
| 219 | exact hv.2.1.symm |
| 220 | · change xProfile (baseFields (modifiedDomain W Q M) W.axis.normalization Q M.halfPlane).pressure p = _ |
| 221 | rw [baseFields_pressure _ _ _ _ hX, hp] |
| 222 | exact hv.2.2.2.symm |
| 223 | |
| 224 | theorem base_beta_pos {p : ℝ × ℝ} (hX : 0 < p.1) (hc : p.1 < cutoffInner W H lo) |
| 225 | (heta : p.2 ∈ S) : |
| 226 | xProfile (scheme W H Q M hlo).base.beta p = |
| 227 | SlowRecursion.profile ((nominalHierarchy W).coefficients 0 4) p := by |
| 228 | have hr : p.1 < nominalRadius W ^ 2 := |
| 229 | hc.trans ((window_order W H hlo).2.2.1.trans (cutoffStop_lt_radius W H hlo)) |
| 230 | have hf := NaturalCoefficientBridge.hierarchy_flux_zero (nominalTube W) W.controls.activationTime_pos |
| 231 | W.controls.referenceWidth_pos W.controls.referenceWidth_small W.controls.kappa |
| 232 | F.axisDatum_contDiff W.axis.normalization ⟨hX, hr⟩ (M.subset heta).2 |
| 233 | change p.1 * SlowRecursion.profile ((nominalHierarchy W).coefficients 0 4) p = |
| 234 | SlowDivergence.radialFlux F.data.h 0 (nominalACT W).U p at hf |
| 235 | have hu : EqOn Q.U (nominalACT W).U (Ico 0 (cutoffInner W H lo) ×ˢ S) := by |
| 236 | intro y hy |
| 237 | exact (modified_ACT_fields W H Q M hlo hy.1.1 hy.1.2 hy.2).2 |
| 238 | have he := local_flux_eq (modifiedDomain W Q M) Q (nominalACT W) hu hX hc heta |
| 239 | change xProfile (baseFields (modifiedDomain W Q M) W.axis.normalization Q M.halfPlane).beta p = _ |
| 240 | rw [baseFields_beta_value _ _ _ _ hX heta, he] |
| 241 | exact ((eq_div_iff hX.ne').mpr (by simpa only [mul_comm] using hf)).symm |
| 242 | |
| 243 | theorem base_beta_axis {eta : ℝ} (heta : eta ∈ S) : |
| 244 | (scheme W H Q M hlo).base.beta (0, eta) = |
| 245 | localExtension (localization W H Q M hlo) 0 4 (0, eta) := by |
| 246 | have hs : 0 < Real.sqrt (cutoffInner W H lo) := Real.sqrt_pos.mpr (cutoffInner_pos W H hlo) |
| 247 | have he : EqOn (fun R => (scheme W H Q M hlo).base.beta (R, eta)) |
| 248 | (fun R => localExtension (localization W H Q M hlo) 0 4 (R, eta)) |
| 249 | (Ioo 0 (Real.sqrt (cutoffInner W H lo))) := by |
| 250 | intro R hR |
| 251 | have hc : R ^ 2 / 2 < cutoffInner W H lo := by |
| 252 | have hh := (sq_lt_sq₀ hR.1.le hs.le).2 hR.2 |
| 253 | rw [Real.sq_sqrt (cutoffInner_pos W H hlo).le] at hh |
| 254 | linarith [sq_nonneg R] |
| 255 | dsimp only |
| 256 | rw [← xProfile_radius (scheme W H Q M hlo).base.beta hR.1.le eta, |
| 257 | base_beta_pos W H Q M hlo (div_pos (sq_pos_of_pos hR.1) (by norm_num)) hc heta, |
| 258 | localExtension_radial (localization W H Q M hlo) 0 4 hR.1.le hc.le] |
| 259 | have hc := he.closure (slice_smooth (scheme W H Q M hlo).base.beta.smooth heta).continuous |
| 260 | (slice_smooth (localExtension (localization W H Q M hlo) 0 4).smooth heta).continuous |
| 261 | apply hc |
| 262 | rw [closure_Ioo hs.ne] |
| 263 | exact ⟨le_rfl, hs.le⟩ |
| 264 | |
| 265 | theorem baseAgreement : BaseAgreement (scheme W H Q M hlo) (nominalHierarchy W) (cutoffInner W H lo) := by |
| 266 | constructor |
| 267 | · intro p hx hc he |
| 268 | exact (base_phi_axial_pressure W H Q M hlo hx hc he).1 |
| 269 | · intro p hx hc he |
| 270 | exact (base_phi_axial_pressure W H Q M hlo hx hc he).2.1 |
| 271 | · intro p hx hc he |
| 272 | by_cases h0 : p.1 = 0 |
| 273 | · have hp : p = (0, p.2) := Prod.ext h0 rfl |
| 274 | rw [hp] |
| 275 | simpa only [xProfile, mul_zero, Real.sqrt_zero, zero_pow (by decide : 2 ≠ 0), zero_div] using |
| 276 | (base_beta_axis W H Q M hlo he).trans |
| 277 | (localExtension_radial (localization W H Q M hlo) 0 4 le_rfl |
| 278 | (by simpa using (cutoffInner_pos W H hlo).le)) |
| 279 | · exact base_beta_pos W H Q M hlo (lt_of_le_of_ne hx (Ne.symm h0)) hc he |
| 280 | |
| 281 | theorem small_lt_entrance : nominalInner W < NominalConeAssembly.activeLeft W := by |
| 282 | have hp := NominalConeAssembly.activeLeft_pos W |
| 283 | change NominalConeAssembly.activeLeft W / 4 < NominalConeAssembly.activeLeft W |
| 284 | linarith |
| 285 | |
| 286 | include hlo in |
| 287 | theorem small_lt_cutoffInner : nominalInner W < cutoffInner W H lo := |
| 288 | (small_lt_entrance W).trans ((window_order W H hlo).1.trans (window_order W H hlo).2.1) |
| 289 | |
| 290 | /-- The extension constructor may use a small natural core independently |
| 291 | of the larger radius retained by the actual seed cutoff. -/ |
| 292 | theorem smallLocalization : Localization (scheme W H Q M hlo) (nominalHierarchy W) (nominalInner W) := by |
| 293 | let L := localization W H Q M hlo |
| 294 | refine ⟨L.radius_pos, L.parameter_open, L.parameter_embedding, nominalInner_pos W, |
| 295 | (small_lt_cutoffInner W H hlo).trans L.inner_radius, |
| 296 | (small_lt_cutoffInner W H hlo).trans L.inner_patch, ?_, ?_⟩ |
| 297 | · intro n p hp hi |
| 298 | exact L.axial_seed n p hp (hi.trans (small_lt_cutoffInner W H hlo).le) |
| 299 | · intro n p hp hi |
| 300 | exact L.phi_seed n p hp (hi.trans (small_lt_cutoffInner W H hlo).le) |
| 301 | |
| 302 | theorem smallBaseAgreement : BaseAgreement (scheme W H Q M hlo) (nominalHierarchy W) (nominalInner W) := by |
| 303 | let B := baseAgreement W H Q M hlo |
| 304 | exact ⟨fun p hp hi he => B.phi p hp (hi.trans (small_lt_cutoffInner W H hlo)) he, |
| 305 | fun p hp hi he => B.axial p hp (hi.trans (small_lt_cutoffInner W H hlo)) he, |
| 306 | fun p hp hi he => B.beta p hp (hi.trans (small_lt_cutoffInner W H hlo)) he⟩ |
| 307 | |
| 308 | /-- The order-zero equations hold on the full natural core, up to the |
| 309 | entrance from below. They are obtained from the actual natural solution. -/ |
| 310 | theorem zero_coefficients {p : ℝ × ℝ} (hX : 0 < p.1) |
| 311 | (he : p.1 < NominalConeAssembly.activeLeft W) (heta : p.2 ∈ S) : |
| 312 | SlowExpansionResidual.angularCoefficient F.data.h (asSlowProfiles (scheme W H Q M hlo)) 0 p = 0 ∧ |
| 313 | SlowExpansionResidual.axialCoefficient F.data.h (asSlowProfiles (scheme W H Q M hlo)) 0 p = 0 := by |
| 314 | let s := scheme W H Q M hlo |
| 315 | let f := asSlowProfiles s |
| 316 | let g := SlowResidualMatching.hierarchyProfiles (nominalHierarchy W) |
| 317 | have hc : p.1 < cutoffInner W H lo := |
| 318 | he.trans ((window_order W H hlo).1.trans (window_order W H hlo).2.1) |
| 319 | have hz := NaturalCoefficientBridge.fromNatural_coefficients_zero |
| 320 | (SchedulePressure.admissible F.data) (nominalPressure_eq (F := F)) W.axis.natural.profile |
| 321 | W.axis.scale_pos W.axis.small W.axis.preparation.sigma_pos W.controls.activationTime_pos |
| 322 | W.controls.referenceWidth_pos W.controls.referenceWidth_small W.controls.kappa |
| 323 | (p := p) ⟨⟨hX, he⟩, nominalParameters_reference W (M.subset heta)⟩ (M.subset heta).2 |
| 324 | change SlowExpansionResidual.angularCoefficient F.data.h g 0 p = 0 ∧ |
| 325 | SlowExpansionResidual.axialCoefficient F.data.h g 0 p = 0 at hz |
| 326 | have hphi : ∀ j ≤ 0, f.phi j =ᶠ[𝓝 p] g.phi j := by |
| 327 | intro j hj |
| 328 | have hj0 : j = 0 := Nat.eq_zero_of_le_zero hj |
| 329 | subst j |
| 330 | exact profiles_x_phi_germ (localization W H Q M hlo) (baseAgreement W H Q M hlo) 0 hX hc heta |
| 331 | have hu : ∀ j ≤ 0, f.axial j =ᶠ[𝓝 p] g.axial j := by |
| 332 | intro j hj |
| 333 | have hj0 : j = 0 := Nat.eq_zero_of_le_zero hj |
| 334 | subst j |
| 335 | exact profiles_x_axial_germ (localization W H Q M hlo) (baseAgreement W H Q M hlo) 0 hX hc heta |
| 336 | have hv : ∀ j ≤ 0, f.flux j =ᶠ[𝓝 p] g.flux j := by |
| 337 | intro j hj |
| 338 | have hj0 : j = 0 := Nat.eq_zero_of_le_zero hj |
| 339 | subst j |
| 340 | filter_upwards [profiles_x_beta_germ (localization W H Q M hlo) (baseAgreement W H Q M hlo) 0 hX hc heta] |
| 341 | with q hq |
| 342 | exact congrArg (q.1 * ·) hq |
| 343 | have hp : f.pressure 0 =ᶠ[𝓝 p] g.pressure 0 := by |
| 344 | filter_upwards [(isOpen_Ioo.prod M.isOpen).mem_nhds ⟨⟨hX, hc⟩, heta⟩] with q hq |
| 345 | change xProfile (profiles s 0).pressure q = _ |
| 346 | rw [profiles_zero] |
| 347 | exact (base_phi_axial_pressure W H Q M hlo hq.1.1.le hq.1.2 hq.2).2.2 |
| 348 | exact ⟨(SlowResidualMatching.angularCoefficient_congr_germ F.data.h 0 hv hu hphi).trans hz.1, |
| 349 | (SlowResidualMatching.axialCoefficient_congr_germ F.data.h 0 hv hu hp).trans hz.2⟩ |
| 350 | |
| 351 | theorem smallZeroOrder : ZeroOrderSolved (scheme W H Q M hlo) (nominalInner W) := |
| 352 | ⟨fun _ hx hi he => (zero_coefficients W H Q M hlo hx (hi.trans (small_lt_entrance W)) he).1, |
| 353 | fun _ hx hi he => (zero_coefficients W H Q M hlo hx (hi.trans (small_lt_entrance W)) he).2⟩ |
| 354 | |
| 355 | noncomputable def alignedCoefficients : SlowBorelBase.Coefficients := |
| 356 | coefficients (smallLocalization W H Q M hlo) (smallBaseAgreement W H Q M hlo) |
| 357 | (smallZeroOrder W H Q M hlo) M.contains |
| 358 | |
| 359 | theorem aligned_smooth : SlowBorelBase.SmoothCoefficients (alignedCoefficients W H Q M hlo) := |
| 360 | coefficients_smooth (smallLocalization W H Q M hlo) (smallBaseAgreement W H Q M hlo) |
| 361 | (smallZeroOrder W H Q M hlo) M.contains |
| 362 | |
| 363 | theorem aligned_coefficientMatches : |
| 364 | BasePrefixIdentity.CoefficientMatches F.data.h W.axis.normalization |
| 365 | (alignedCoefficients W H Q M hlo) (asSlowProfiles (scheme W H Q M hlo)) := |
| 366 | ConstructedSlowBase.repaired_coefficientMatches (smallLocalization W H Q M hlo) |
| 367 | (smallBaseAgreement W H Q M hlo) (smallZeroOrder W H Q M hlo) M.contains rfl |
| 368 | |
| 369 | theorem positive_coefficients_zero {n : ℕ} (hn : 0 < n) {p : ℝ × ℝ} |
| 370 | (hX : 0 < p.1) (hc : p.1 < cutoffInner W H lo) (heta : p.2 ∈ S) : |
| 371 | SlowExpansionResidual.angularCoefficient F.data.h (asSlowProfiles (scheme W H Q M hlo)) n p = 0 ∧ |
| 372 | SlowExpansionResidual.axialCoefficient F.data.h (asSlowProfiles (scheme W H Q M hlo)) n p = 0 := |
| 373 | profiles_inner_tangential (localization W H Q M hlo) (baseAgreement W H Q M hlo) hn hX hc heta |
| 374 | |
| 375 | theorem positive_densities_zero {n : ℕ} (hn : 0 < n) {R eta : ℝ} |
| 376 | (hR : R ∈ Icc 0 (Real.sqrt (2 * zeroEnd W H lo))) (heta : eta ∈ S) : |
| 377 | SlowResidualMatching.thetaDensity F.data.h W.axis.normalization |
| 378 | (asSlowProfiles (scheme W H Q M hlo)) n (R, eta) = 0 ∧ |
| 379 | SlowResidualMatching.zDensity F.data.h (asSlowProfiles (scheme W H Q M hlo)) n (R, eta) = 0 := by |
| 380 | by_cases hR0 : R = 0 |
| 381 | · simp [SlowResidualMatching.thetaDensity, SlowResidualMatching.zDensity, hR0] |
| 382 | · have hs : R ^ 2 ≤ 2 * zeroEnd W H lo := by |
| 383 | calc |
| 384 | R ^ 2 ≤ (Real.sqrt (2 * zeroEnd W H lo)) ^ 2 := (sq_le_sq₀ hR.1 (Real.sqrt_nonneg _)).2 hR.2 |
| 385 | _ = 2 * zeroEnd W H lo := Real.sq_sqrt (mul_nonneg (by norm_num) (zeroEnd_pos W H hlo).le) |
| 386 | have hc : R ^ 2 / 2 < cutoffInner W H lo := by linarith [(window_order W H hlo).2.1] |
| 387 | have hz := positive_coefficients_zero W H Q M hlo hn (p := (R ^ 2 / 2, eta)) |
| 388 | (div_pos (sq_pos_of_ne_zero hR0) (by norm_num)) hc heta |
| 389 | simp only [SlowResidualMatching.thetaDensity, SlowResidualMatching.zDensity, |
| 390 | SlowResidualMatching.radiusPoint, hz.1, hz.2, mul_zero, and_self] |
| 391 | |
| 392 | theorem positive_raw_stresses_zero {n : ℕ} (hn : 0 < n) {R eta : ℝ} |
| 393 | (hR : R ≤ Real.sqrt (2 * zeroEnd W H lo)) (heta : eta ∈ S) : |
| 394 | SlowStressSupport.stress 2 (SlowResidualMatching.thetaDensity F.data.h W.axis.normalization |
| 395 | (asSlowProfiles (scheme W H Q M hlo)) n) (R, eta) = 0 ∧ |
| 396 | SlowStressSupport.stress 1 (SlowResidualMatching.zDensity F.data.h |
| 397 | (asSlowProfiles (scheme W H Q M hlo)) n) (R, eta) = 0 := |
| 398 | ⟨SlowStressSupport.stress_inner 2 |
| 399 | (fun _ he _ hr => (positive_densities_zero W H Q M hlo hn hr he).1) hR heta, |
| 400 | SlowStressSupport.stress_inner 1 |
| 401 | (fun _ he _ hr => (positive_densities_zero W H Q M hlo hn hr he).2) hR heta⟩ |
| 402 | |
| 403 | /-- Continuity supplies the natural entrance endpoint itself. -/ |
| 404 | theorem natural_densities_zero {R eta : ℝ} |
| 405 | (hR : R ∈ Icc 0 (Real.sqrt (2 * NominalConeAssembly.activeLeft W))) (heta : eta ∈ S) : |
| 406 | SlowResidualMatching.thetaDensity F.data.h W.axis.normalization |
| 407 | (asSlowProfiles (scheme W H Q M hlo)) 0 (R, eta) = 0 ∧ |
| 408 | SlowResidualMatching.zDensity F.data.h (asSlowProfiles (scheme W H Q M hlo)) 0 (R, eta) = 0 := by |
| 409 | let f := asSlowProfiles (scheme W H Q M hlo) |
| 410 | let b := Real.sqrt (2 * NominalConeAssembly.activeLeft W) |
| 411 | have hb : 0 < b := Real.sqrt_pos.mpr (mul_pos (by norm_num) (NominalConeAssembly.activeLeft_pos W)) |
| 412 | have hzero : ∀ r ∈ Ioo (0 : ℝ) b, |
| 413 | SlowResidualMatching.thetaDensity F.data.h W.axis.normalization f 0 (r, eta) = 0 ∧ |
| 414 | SlowResidualMatching.zDensity F.data.h f 0 (r, eta) = 0 := by |
| 415 | intro r hr |
| 416 | have hs : r ^ 2 < 2 * NominalConeAssembly.activeLeft W := by |
| 417 | have hsq := (sq_lt_sq₀ hr.1.le hb.le).2 hr.2 |
| 418 | dsimp only [b] at hsq |
| 419 | rwa [Real.sq_sqrt (mul_nonneg (by norm_num) (NominalConeAssembly.activeLeft_pos W).le)] at hsq |
| 420 | have he : r ^ 2 / 2 < NominalConeAssembly.activeLeft W := by linarith |
| 421 | have hz := zero_coefficients W H Q M hlo (p := (r ^ 2 / 2, eta)) |
| 422 | (div_pos (sq_pos_of_pos hr.1) (by norm_num)) he heta |
| 423 | dsimp only [f] |
| 424 | simp only [SlowResidualMatching.thetaDensity, SlowResidualMatching.zDensity, |
| 425 | SlowResidualMatching.radiusPoint, hz.1, hz.2, mul_zero, and_self] |
| 426 | have ht : EqOn (fun r => SlowResidualMatching.thetaDensity F.data.h W.axis.normalization f 0 (r, eta)) |
| 427 | (fun _ => (0 : ℝ)) (Ioo 0 b) := fun r hr => (hzero r hr).1 |
| 428 | have hz : EqOn (fun r => SlowResidualMatching.zDensity F.data.h f 0 (r, eta)) |
| 429 | (fun _ => (0 : ℝ)) (Ioo 0 b) := fun r hr => (hzero r hr).2 |
| 430 | have ht' := ht.closure (SlowStressSupport.slice_smooth |
| 431 | (thetaDensity_smooth (smallLocalization W H Q M hlo) (smallBaseAgreement W H Q M hlo) |
| 432 | (smallZeroOrder W H Q M hlo) 0) heta).continuous continuous_const |
| 433 | have hz' := hz.closure (SlowStressSupport.slice_smooth |
| 434 | (zDensity_smooth (smallLocalization W H Q M hlo) (smallBaseAgreement W H Q M hlo) |
| 435 | (smallZeroOrder W H Q M hlo) 0) heta).continuous continuous_const |
| 436 | rw [closure_Ioo hb.ne] at ht' hz' |
| 437 | exact ⟨ht' hR, hz' hR⟩ |
| 438 | |
| 439 | theorem natural_raw_stresses_zero {R eta : ℝ} |
| 440 | (hR : R ≤ Real.sqrt (2 * NominalConeAssembly.activeLeft W)) (heta : eta ∈ S) : |
| 441 | SlowStressSupport.stress 2 (SlowResidualMatching.thetaDensity F.data.h W.axis.normalization |
| 442 | (asSlowProfiles (scheme W H Q M hlo)) 0) (R, eta) = 0 ∧ |
| 443 | SlowStressSupport.stress 1 (SlowResidualMatching.zDensity F.data.h |
| 444 | (asSlowProfiles (scheme W H Q M hlo)) 0) (R, eta) = 0 := |
| 445 | ⟨SlowStressSupport.stress_inner 2 |
| 446 | (fun _ he _ hr => (natural_densities_zero W H Q M hlo hr he).1) hR heta, |
| 447 | SlowStressSupport.stress_inner 1 |
| 448 | (fun _ he _ hr => (natural_densities_zero W H Q M hlo hr he).2) hR heta⟩ |
| 449 | |
| 450 | /-- The positive half-plane extension preserves a zero radial prefix for |
| 451 | all parameters, including those handled by the fixed parameter retraction. -/ |
| 452 | theorem extendCoreZero_zero_prefix {T : Set ℝ} (w : ParametricRadialExtension.ParameterWindow T) |
| 453 | {core bound : ℝ} (hcore : 0 < core) (f : EvenProfile T) |
| 454 | (hz : ∀ eta ∈ T, ∀ R ∈ Icc 0 (Real.sqrt (2 * bound)), f (R, eta) = 0) |
| 455 | {p : ℝ × ℝ} (hp : p.1 ≤ bound) : extendCoreZero w core f p = 0 := by |
| 456 | by_cases hx : 0 ≤ p.1 |
| 457 | · rw [extendCoreZero, extendEven, ParametricRadialExtension.extension, |
| 458 | ParametricRadialExtension.halfPlaneExtension_eq _ hx] |
| 459 | change _ * (w.bump p.2 * f (Real.sqrt (2 * p.1), w.parameterMap p.2)) = 0 |
| 460 | rw [hz _ (w.parameterMap_mem _) _ ⟨Real.sqrt_nonneg _, |
| 461 | Real.sqrt_le_sqrt (mul_le_mul_of_nonneg_left hp (by norm_num))⟩, mul_zero, mul_zero] |
| 462 | · exact extendCoreZero_zero_left w hcore f (by linarith) |
| 463 | |
| 464 | /-- Every positive stress coefficient vanishes strictly past the natural |
| 465 | entrance, with one order-independent endpoint. -/ |
| 466 | theorem aligned_positive_stress_zero {n : ℕ} (hn : 0 < n) {p : ℝ × ℝ} |
| 467 | (hp : p.1 ≤ zeroEnd W H lo) : |
| 468 | (alignedCoefficients W H Q M hlo).stressTheta n p = 0 ∧ |
| 469 | (alignedCoefficients W H Q M hlo).stressAxial n p = 0 := by |
| 470 | constructor |
| 471 | · apply extendCoreZero_zero_prefix _ (nominalInner_pos W) _ _ hp |
| 472 | intro eta he R hR |
| 473 | rw [thetaEven_eq _ _ _ _ hR.1] |
| 474 | exact (positive_raw_stresses_zero W H Q M hlo hn hR.2 he).1 |
| 475 | · apply extendCoreZero_zero_prefix _ (nominalInner_pos W) _ _ hp |
| 476 | intro eta he R hR |
| 477 | rw [zEven_eq _ _ _ _ hR.1] |
| 478 | exact (positive_raw_stresses_zero W H Q M hlo hn hR.2 he).2 |
| 479 | |
| 480 | theorem aligned_natural_stress_zero {p : ℝ × ℝ} |
| 481 | (hp : p.1 ≤ NominalConeAssembly.activeLeft W) : |
| 482 | (alignedCoefficients W H Q M hlo).stressTheta 0 p = 0 ∧ |
| 483 | (alignedCoefficients W H Q M hlo).stressAxial 0 p = 0 := by |
| 484 | constructor |
| 485 | · apply extendCoreZero_zero_prefix _ (nominalInner_pos W) _ _ hp |
| 486 | intro eta he R hR |
| 487 | rw [thetaEven_eq _ _ _ _ hR.1] |
| 488 | exact (natural_raw_stresses_zero W H Q M hlo hR.2 he).1 |
| 489 | · apply extendCoreZero_zero_prefix _ (nominalInner_pos W) _ _ hp |
| 490 | intro eta he R hR |
| 491 | rw [zEven_eq _ _ _ _ hR.1] |
| 492 | exact (natural_raw_stresses_zero W H Q M hlo hR.2 he).2 |
| 493 | |
| 494 | /-- The entire actual coefficient family is stress-free through the |
| 495 | entrance. No support conclusion is an input to this theorem. -/ |
| 496 | theorem aligned_stress_zero_left (n : ℕ) {p : ℝ × ℝ} |
| 497 | (hp : p.1 ≤ NominalConeAssembly.activeLeft W) : |
| 498 | (alignedCoefficients W H Q M hlo).stressTheta n p = 0 ∧ |
| 499 | (alignedCoefficients W H Q M hlo).stressAxial n p = 0 := by |
| 500 | rcases Nat.eq_zero_or_pos n with rfl | hn |
| 501 | · exact aligned_natural_stress_zero W H Q M hlo hp |
| 502 | · exact aligned_positive_stress_zero W H Q M hlo hn (hp.trans (window_order W H hlo).1.le) |
| 503 | |
| 504 | theorem aligned_stressZeroCore : |
| 505 | BaseResidual.StressZeroCore (alignedCoefficients W H Q M hlo) (NominalConeAssembly.activeLeft W) := |
| 506 | fun n _ hX _ _ => aligned_stress_zero_left W H Q M hlo n hX.2.le |
| 507 | |
| 508 | theorem aligned_stress_zero_right {n : ℕ} (hn : 2 ≤ n) {p : ℝ × ℝ} |
| 509 | (hp : nominalOuterX W ≤ p.1) : |
| 510 | (alignedCoefficients W H Q M hlo).stressTheta n p = 0 ∧ |
| 511 | (alignedCoefficients W H Q M hlo).stressAxial n p = 0 := by |
| 512 | have hs := GlobalStressSupport.raw_stresses_exterior (scheme W H Q M hlo) rfl hn |
| 513 | apply coefficients_stress_zero_right (smallLocalization W H Q M hlo) (smallBaseAgreement W H Q M hlo) |
| 514 | (smallZeroOrder W H Q M hlo) M.contains n (nominalOuterRadius_pos W).le hs.1 hs.2 |
| 515 | simpa only [nominalOuterRadius_square] using hp |
| 516 | |
| 517 | theorem aligned_higher_support {n : ℕ} (hn : 2 ≤ n) : |
| 518 | tsupport (fun p => ((alignedCoefficients W H Q M hlo).stressTheta n p, |
| 519 | (alignedCoefficients W H Q M hlo).stressAxial n p)) ⊆ |
| 520 | Icc (zeroEnd W H lo) (nominalOuterX W) ×ˢ |
| 521 | Icc (-(commonWindow (scheme W H Q M hlo) M.contains).outer) |
| 522 | (commonWindow (scheme W H Q M hlo) M.contains).outer := by |
| 523 | apply closure_minimal _ (isClosed_Icc.prod isClosed_Icc) |
| 524 | intro p hp |
| 525 | have hne : ((alignedCoefficients W H Q M hlo).stressTheta n p, |
| 526 | (alignedCoefficients W H Q M hlo).stressAxial n p) ≠ 0 := hp |
| 527 | refine ⟨⟨?_, ?_⟩, ?_⟩ |
| 528 | · by_contra hh |
| 529 | have hz := aligned_positive_stress_zero W H Q M hlo (by omega : 0 < n) (le_of_not_ge hh) |
| 530 | exact hne (Prod.ext hz.1 hz.2) |
| 531 | · by_contra hh |
| 532 | have hz := aligned_stress_zero_right W H Q M hlo hn (le_of_not_ge hh) |
| 533 | exact hne (Prod.ext hz.1 hz.2) |
| 534 | · apply abs_le.mp |
| 535 | by_contra hh |
| 536 | have hz := coefficients_stress_zero_parameter (smallLocalization W H Q M hlo) |
| 537 | (smallBaseAgreement W H Q M hlo) (smallZeroOrder W H Q M hlo) M.contains n (le_of_not_ge hh) |
| 538 | exact hne (Prod.ext hz.1 hz.2) |
| 539 | |
| 540 | theorem aligned_higherInteriorSupport : |
| 541 | BaseResidual.HigherInteriorSupport (alignedCoefficients W H Q M hlo) |
| 542 | (Real.log (NominalConeAssembly.activeLeft W)) (ConstructedSlowBase.activeRight W) := by |
| 543 | intro n hn |
| 544 | have hs := aligned_higher_support W H Q M hlo hn |
| 545 | have hz {p : ℝ × ℝ} (hp : p.1 ∉ Icc (zeroEnd W H lo) (nominalOuterX W)) : |
| 546 | ((alignedCoefficients W H Q M hlo).stressTheta n p, |
| 547 | (alignedCoefficients W H Q M hlo).stressAxial n p) = 0 := by |
| 548 | by_contra hh |
| 549 | exact hp (hs (subset_closure hh)).1 |
| 550 | refine ⟨zeroEnd W H lo, nominalOuterX W, ?_, ?_, ?_⟩ |
| 551 | · intro X hX |
| 552 | rw [Real.exp_log (NominalConeAssembly.activeLeft_pos W)] |
| 553 | exact ⟨(window_order W H hlo).1.trans_le hX.1, |
| 554 | hX.2.trans_lt (ConstructedSlowBase.outer_before_upper W)⟩ |
| 555 | · intro eta _ X hX |
| 556 | exact congrArg Prod.fst (hz hX) |
| 557 | · intro eta _ X hX |
| 558 | exact congrArg Prod.snd (hz hX) |
| 559 | |
| 560 | theorem zero_fields_eq : |
| 561 | (asSlowProfiles (scheme W H Q M hlo)).phi 0 = (asSlowProfiles (modifiedScheme W Q M)).phi 0 ∧ |
| 562 | (asSlowProfiles (scheme W H Q M hlo)).axial 0 = (asSlowProfiles (modifiedScheme W Q M)).axial 0 ∧ |
| 563 | (asSlowProfiles (scheme W H Q M hlo)).flux 0 = (asSlowProfiles (modifiedScheme W Q M)).flux 0 ∧ |
| 564 | (asSlowProfiles (scheme W H Q M hlo)).pressure 0 = (asSlowProfiles (modifiedScheme W Q M)).pressure 0 := by |
| 565 | simp only [asSlowProfiles, SlowResidualMatching.ofBeta, profiles_zero, scheme_base, and_self] |
| 566 | |
| 567 | theorem zero_residuals_eq (p : ℝ × ℝ) : |
| 568 | SlowExpansionResidual.angularCoefficient F.data.h (asSlowProfiles (scheme W H Q M hlo)) 0 p = |
| 569 | SlowExpansionResidual.angularCoefficient F.data.h (asSlowProfiles (modifiedScheme W Q M)) 0 p ∧ |
| 570 | SlowExpansionResidual.axialCoefficient F.data.h (asSlowProfiles (scheme W H Q M hlo)) 0 p = |
| 571 | SlowExpansionResidual.axialCoefficient F.data.h (asSlowProfiles (modifiedScheme W Q M)) 0 p := by |
| 572 | have hf := zero_fields_eq W H Q M hlo |
| 573 | have hv : ∀ j ≤ 0, (asSlowProfiles (scheme W H Q M hlo)).flux j =ᶠ[𝓝 p] |
| 574 | (asSlowProfiles (modifiedScheme W Q M)).flux j := by |
| 575 | intro j hj |
| 576 | have h0 : j = 0 := Nat.eq_zero_of_le_zero hj |
| 577 | subst j |
| 578 | exact Filter.Eventually.of_forall (fun y => congrFun hf.2.2.1 y) |
| 579 | have hu : ∀ j ≤ 0, (asSlowProfiles (scheme W H Q M hlo)).axial j =ᶠ[𝓝 p] |
| 580 | (asSlowProfiles (modifiedScheme W Q M)).axial j := by |
| 581 | intro j hj |
| 582 | have h0 : j = 0 := Nat.eq_zero_of_le_zero hj |
| 583 | subst j |
| 584 | exact Filter.Eventually.of_forall (fun y => congrFun hf.2.1 y) |
| 585 | have hphi : ∀ j ≤ 0, (asSlowProfiles (scheme W H Q M hlo)).phi j =ᶠ[𝓝 p] |
| 586 | (asSlowProfiles (modifiedScheme W Q M)).phi j := by |
| 587 | intro j hj |
| 588 | have h0 : j = 0 := Nat.eq_zero_of_le_zero hj |
| 589 | subst j |
| 590 | exact Filter.Eventually.of_forall (fun y => congrFun hf.1 y) |
| 591 | exact ⟨SlowResidualMatching.angularCoefficient_congr_germ F.data.h 0 hv hu hphi, |
| 592 | SlowResidualMatching.axialCoefficient_congr_germ F.data.h 0 hv hu |
| 593 | (Filter.Eventually.of_forall (fun y => congrFun hf.2.2.2 y))⟩ |
| 594 | |
| 595 | theorem zero_raw_stresses_eq (R eta : ℝ) : |
| 596 | SlowStressSupport.stress 2 (SlowResidualMatching.thetaDensity F.data.h W.axis.normalization |
| 597 | (asSlowProfiles (scheme W H Q M hlo)) 0) (R, eta) = |
| 598 | SlowStressSupport.stress 2 (SlowResidualMatching.thetaDensity F.data.h W.axis.normalization |
| 599 | (asSlowProfiles (modifiedScheme W Q M)) 0) (R, eta) ∧ |
| 600 | SlowStressSupport.stress 1 (SlowResidualMatching.zDensity F.data.h |
| 601 | (asSlowProfiles (scheme W H Q M hlo)) 0) (R, eta) = |
| 602 | SlowStressSupport.stress 1 (SlowResidualMatching.zDensity F.data.h |
| 603 | (asSlowProfiles (modifiedScheme W Q M)) 0) (R, eta) := by |
| 604 | constructor |
| 605 | · apply SlowResidualMatching.primitive_stress_congr_slice |
| 606 | intro r |
| 607 | simp only [SlowResidualMatching.thetaDensity, (zero_residuals_eq W H Q M hlo _).1] |
| 608 | · apply SlowResidualMatching.primitive_stress_congr_slice |
| 609 | intro r |
| 610 | simp only [SlowResidualMatching.zDensity, (zero_residuals_eq W H Q M hlo _).2] |
| 611 | |
| 612 | /-- Moving the positive-order cutoff preserves the leading stress itself, |
| 613 | including its actual integration constant. -/ |
| 614 | theorem aligned_zero_stresses_eq {p : ℝ × ℝ} (hX : 0 ≤ p.1) (heta : |p.2| ≤ 1) : |
| 615 | (alignedCoefficients W H Q M hlo).stressTheta 0 p = (modifiedCoefficients W Q M).stressTheta 0 p ∧ |
| 616 | (alignedCoefficients W H Q M hlo).stressAxial 0 p = (modifiedCoefficients W Q M).stressAxial 0 p := by |
| 617 | have h1 := coefficients_stress_eq (smallLocalization W H Q M hlo) (smallBaseAgreement W H Q M hlo) |
| 618 | (smallZeroOrder W H Q M hlo) M.contains 0 hX heta |
| 619 | have h2 := coefficients_stress_eq (modifiedLocalization W Q M) (modifiedBaseAgreement W Q M) |
| 620 | (modifiedZeroOrder W Q M) M.contains 0 hX heta |
| 621 | have he := zero_raw_stresses_eq W H Q M hlo (Real.sqrt (2 * p.1)) p.2 |
| 622 | exact ⟨h1.1.trans (he.1.trans h2.1.symm), h1.2.trans (he.2.trans h2.2.symm)⟩ |
| 623 | |
| 624 | theorem leading_histories_eq : |
| 625 | EqOn (GlobalStressSupport.angularHistory (scheme W H Q M hlo) 0) |
| 626 | (GlobalStressSupport.angularHistory (modifiedScheme W Q M) 0) (univ ×ˢ S) ∧ |
| 627 | EqOn (GlobalStressSupport.axialHistory (scheme W H Q M hlo) 0) |
| 628 | (GlobalStressSupport.axialHistory (modifiedScheme W Q M) 0) (univ ×ˢ S) := by |
| 629 | constructor |
| 630 | · intro p hp |
| 631 | rw [GlobalStressSupport.angularHistory_eq _ _ hp.2, GlobalStressSupport.angularHistory_eq _ _ hp.2, |
| 632 | profiles_zero, profiles_zero, scheme_base] |
| 633 | · intro p hp |
| 634 | rw [GlobalStressSupport.axialHistory_eq _ _ hp.2, GlobalStressSupport.axialHistory_eq _ _ hp.2, |
| 635 | profiles_zero, profiles_zero, scheme_base] |
| 636 | |
| 637 | /-- The physical leading velocity and pressure are unchanged. -/ |
| 638 | theorem aligned_zero_fields {p : ℝ × ℝ} (hX : 0 ≤ p.1) (heta : |p.2| ≤ 1) : |
| 639 | (alignedCoefficients W H Q M hlo).phi 0 p = W.axis.normalization * Q.f p ∧ |
| 640 | (alignedCoefficients W H Q M hlo).axial 0 p = Q.U p ∧ |
| 641 | (alignedCoefficients W H Q M hlo).pressure 0 p = Q.pressure p := by |
| 642 | have he := coefficients_fields_eq (smallLocalization W H Q M hlo) (smallBaseAgreement W H Q M hlo) |
| 643 | (smallZeroOrder W H Q M hlo) M.contains 0 hX heta |
| 644 | have hf := zero_fields_eq W H Q M hlo |
| 645 | have ho := coefficients_fields_eq (modifiedLocalization W Q M) (modifiedBaseAgreement W Q M) |
| 646 | (modifiedZeroOrder W Q M) M.contains 0 hX heta |
| 647 | have hv := modifiedCoefficients_zero_fields W Q M hX heta |
| 648 | exact ⟨he.1.trans ((congrFun hf.1 p).trans (ho.1.symm.trans hv.1)), |
| 649 | he.2.1.trans ((congrFun hf.2.1 p).trans (ho.2.1.symm.trans hv.2.1)), |
| 650 | he.2.2.trans ((congrFun hf.2.2.2 p).trans (ho.2.2.symm.trans hv.2.2))⟩ |
| 651 | |
| 652 | theorem aligned_leading_axis {eta : ℝ} (heta : eta ∈ Icc (-1 : ℝ) 1) : |
| 653 | (alignedCoefficients W H Q M hlo).axial 0 (0, eta) = 4 * eta + W.axis.j := by |
| 654 | rw [(aligned_zero_fields W H Q M hlo (p := (0, eta)) le_rfl (abs_le.mpr heta)).2.1] |
| 655 | rw [← (modifiedCoefficients_zero_fields W Q M (p := (0, eta)) le_rfl (abs_le.mpr heta)).2.1] |
| 656 | exact ConstructedSlowBase.modified_leading_axis W Q M heta |
| 657 | |
| 658 | theorem aligned_positive_axis {n : ℕ} (hn : 0 < n) {eta : ℝ} (heta : |eta| ≤ 1) : |
| 659 | (alignedCoefficients W H Q M hlo).phi n (0, eta) = 0 ∧ |
| 660 | (alignedCoefficients W H Q M hlo).axial n (0, eta) = 0 ∧ |
| 661 | (alignedCoefficients W H Q M hlo).pressure n (0, eta) = 0 := |
| 662 | ⟨extendedCoefficient_axis (smallLocalization W H Q M hlo) (smallBaseAgreement W H Q M hlo) M.contains hn 0 heta, |
| 663 | extendedCoefficient_axis (smallLocalization W H Q M hlo) (smallBaseAgreement W H Q M hlo) M.contains hn 1 heta, |
| 664 | extendedCoefficient_axis (smallLocalization W H Q M hlo) (smallBaseAgreement W H Q M hlo) M.contains hn 3 heta⟩ |
| 665 | |
| 666 | theorem aligned_moments_zero {n : ℕ} (hn : 0 < n) {eta : ℝ} (heta : eta ∈ S) : |
| 667 | PositiveOrderMoments.moments n |
| 668 | (PositiveOrderMoments.slice (GlobalStressSupport.axialHistory (scheme W H Q M hlo)) eta) |
| 669 | (PositiveOrderMoments.slice (GlobalStressSupport.angularHistory (scheme W H Q M hlo)) eta) |
| 670 | (fun R => GlobalStressSupport.previousOmega (scheme W H Q M hlo) n (R, eta)) = 0 := |
| 671 | GlobalStressSupport.moments_zero (scheme W H Q M hlo) hn heta |
| 672 | |
| 673 | theorem aligned_mass_primitive_zero {n : ℕ} (hn : 0 < n) {p : ℝ × ℝ} |
| 674 | (hp : nominalOuterX W ≤ p.1) (heta : |p.2| ≤ 1) : |
| 675 | ProfileHistories.primitive ((alignedCoefficients W H Q M hlo).axial n) p = 0 := by |
| 676 | apply extended_axial_primitive_zero (scheme W H Q M hlo) M.contains hn _ heta |
| 677 | change nominalOuterRadius W ^ 2 / 2 ≤ p.1 |
| 678 | rwa [nominalOuterRadius_square] |
| 679 | |
| 680 | theorem pressureCoefficient_zero (n : ℕ) {p : ℝ × ℝ} (hX : 0 < p.1) (heta : p.2 ∈ S) : |
| 681 | SlowExpansionResidual.pressureCoefficient F.data.h W.axis.normalization |
| 682 | (asSlowProfiles (scheme W H Q M hlo)) n p = 0 := by |
| 683 | rcases Nat.eq_zero_or_pos n with rfl | hn |
| 684 | · have hf := zero_fields_eq W H Q M hlo |
| 685 | simpa only [SlowExpansionResidual.pressureCoefficient, SlowExpansionResidual.previous, |
| 686 | SlowExpansionResidual.convolution, Finset.Nat.antidiagonal_zero, Finset.sum_singleton, hf.1, hf.2.2.2] using |
| 687 | modified_pressureCoefficient W Q M 0 hX heta |
| 688 | · exact profiles_pressureCoefficient (scheme W H Q M hlo) hn hX heta |
| 689 | |
| 690 | theorem aligned_finiteIdentities : |
| 691 | BaseResidual.FiniteIdentities F.data.h W.axis.normalization |
| 692 | (alignedCoefficients W H Q M hlo) (asSlowProfiles (scheme W H Q M hlo)) := by |
| 693 | apply ConstructedSlowBase.repaired_finiteIdentities (smallLocalization W H Q M hlo) |
| 694 | (smallBaseAgreement W H Q M hlo) (smallZeroOrder W H Q M hlo) M.contains |
| 695 | W.axis.small.h_pos (by linarith [W.axis.small.h_le]) rfl |
| 696 | intro n p hp |
| 697 | exact pressureCoefficient_zero W H Q M hlo n hp.1 (M.contains ⟨hp.2.1.le, hp.2.2.le⟩) |
| 698 | |
| 699 | include hlo in |
| 700 | theorem zeroEnd_lt_outer : zeroEnd W H lo < nominalOuterX W := by |
| 701 | have ha : analyticEnd W < nominalOuterX W := |
| 702 | W.controls.activation_collar_le_Xi.trans_lt |
| 703 | (((W.controls.Xi_lt_heatJoin W.separated).trans W.controls.heatJoin_lt_radius).trans |
| 704 | (nominalOuterX_gt_radius W)) |
| 705 | exact (window_order W H hlo).2.1.trans |
| 706 | ((window_order W H hlo).2.2.1.trans ((cutoffStop_lt_analyticEnd W H hlo).trans ha)) |
| 707 | |
| 708 | include hlo in |
| 709 | theorem zeroEnd_lt_outer_collar : |
| 710 | zeroEnd W H lo < Real.exp (FirstOrderBaseEdge.terminalShift W + 2) := |
| 711 | (zeroEnd_lt_outer W H hlo).trans (ConstructedSlowBase.outer_before_collar W) |
| 712 | |
| 713 | theorem log_entrance_lt_outer_collar : |
| 714 | Real.log (NominalConeAssembly.activeLeft W) < FirstOrderBaseEdge.terminalShift W + 2 := by |
| 715 | apply Real.exp_lt_exp.mp |
| 716 | rw [Real.exp_log (NominalConeAssembly.activeLeft_pos W)] |
| 717 | apply lt_trans _ (ConstructedSlowBase.outer_before_collar W) |
| 718 | exact (nominalInitial_le_Xi W).trans_lt |
| 719 | (((W.controls.Xi_lt_heatJoin W.separated).trans W.controls.heatJoin_lt_radius).trans |
| 720 | (nominalOuterX_gt_radius W)) |
| 721 | |
| 722 | theorem aligned_first_pair_eq |
| 723 | (hrow : ∀ eta ∈ S, Q.I (nominalOuterX W, eta) = W.profiles.I (nominalOuterX W, eta)) : |
| 724 | EqOn (BaseResidual.stressPair (alignedCoefficients W H Q M hlo) 1) |
| 725 | (fun p => (SlowFirstOrderEdge.stressX (FirstOrderBaseEdge.terminalAmplitude W) F.data |
| 726 | (FirstOrderBaseEdge.terminalShift W) p, 0)) |
| 727 | (Ioi (FirstOrderBaseEdge.terminalInner W) ×ˢ Ioo (-1 : ℝ) 1) := by |
| 728 | intro p hp |
| 729 | have he := leading_histories_eq W H Q M hlo |
| 730 | exact (FirstOrderBaseEdge.coefficients_first_pair_eq_modified W Q M |
| 731 | (smallLocalization W H Q M hlo) (smallBaseAgreement W H Q M hlo) (smallZeroOrder W H Q M hlo) |
| 732 | M.contains rfl le_rfl he.1 he.2 (FirstOrderBaseEdge.terminalInner_full W hp.1).1 |
| 733 | (abs_le.mpr ⟨hp.2.1.le, hp.2.2.le⟩)).trans |
| 734 | (FirstOrderBaseEdge.modified_first_pair_eq W Q M hrow hp) |
| 735 | |
| 736 | theorem aligned_first_edgeJets |
| 737 | (hrow : ∀ eta ∈ S, Q.I (nominalOuterX W, eta) = W.profiles.I (nominalOuterX W, eta)) |
| 738 | {c : ℝ} (hc : 0 < c) : |
| 739 | BaseResidual.PolynomialEdgeJets |
| 740 | (BaseResidual.outerWindow (Real.exp (ConstructedSlowBase.activeRight W - 1)) |
| 741 | (ConstructedSlowBase.activeRight W)) |
| 742 | (BaseResidual.activeZeta c (Real.log (NominalConeAssembly.activeLeft W)) (ConstructedSlowBase.activeRight W)) |
| 743 | (BaseResidual.activeDelta (Real.log (NominalConeAssembly.activeLeft W)) (ConstructedSlowBase.activeRight W)) |
| 744 | (BaseResidual.stressPair (alignedCoefficients W H Q M hlo) 1) := by |
| 745 | have he := leading_histories_eq W H Q M hlo |
| 746 | exact FirstOrderBaseEdge.coefficients_first_edgeJets W Q M |
| 747 | (smallLocalization W H Q M hlo) (smallBaseAgreement W H Q M hlo) (smallZeroOrder W H Q M hlo) |
| 748 | M.contains rfl le_rfl he.1 he.2 hrow hc (log_entrance_lt_outer_collar W) |
| 749 | |
| 750 | theorem aligned_first_stress_zero_right |
| 751 | (hrow : ∀ eta ∈ S, Q.I (nominalOuterX W, eta) = W.profiles.I (nominalOuterX W, eta)) |
| 752 | {p : ℝ × ℝ} (hp : Real.exp (ConstructedSlowBase.activeRight W) ≤ p.1) |
| 753 | (heta : p.2 ∈ Icc (-1 : ℝ) 1) : |
| 754 | (alignedCoefficients W H Q M hlo).stressTheta 1 p = 0 ∧ |
| 755 | (alignedCoefficients W H Q M hlo).stressAxial 1 p = 0 := by |
| 756 | have hs := aligned_smooth W H Q M hlo |
| 757 | have hz := FirstOrderBaseEdge.first_pair_zero_right W |
| 758 | ((hs.stressTheta 1).prodMk (hs.stressAxial 1)) (aligned_first_pair_eq W H Q M hlo hrow) hp heta |
| 759 | exact ⟨congrArg Prod.fst hz, congrArg Prod.snd hz⟩ |
| 760 | |
| 761 | theorem aligned_leading_stress_eq {p : ℝ × ℝ} (hX : 0 ≤ p.1) (heta : |p.2| ≤ 1) |
| 762 | (hf : ∀ X, 0 < X → X ≤ p.1 → Q.f (X, p.2) ≠ 0) : |
| 763 | (alignedCoefficients W H Q M hlo).stressTheta 0 p = LeadingStress.theta Q F.data.h p ∧ |
| 764 | (alignedCoefficients W H Q M hlo).stressAxial 0 p = LeadingStress.axial Q F.data.h p := |
| 765 | ZerothStressIdentity.coefficients_stress_zero_eq Q (smallLocalization W H Q M hlo) |
| 766 | (smallBaseAgreement W H Q M hlo) (smallZeroOrder W H Q M hlo) M.contains M.halfPlane rfl hX heta hf |
| 767 | |
| 768 | end Scheme |
| 769 | |
| 770 | section Clocks |
| 771 | |
| 772 | variable {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) |
| 773 | |
| 774 | /-- The unchanged terminal clock agrees exactly with the cone annulus. -/ |
| 775 | theorem exp_right_eq_cone : |
| 776 | Real.exp (ConstructedSlowBase.activeRight W) = NominalConeAssembly.activeRight W := by |
| 777 | have he : ConstructedSlowBase.activeRight W = |
| 778 | Real.log W.controls.radius + OutgoingTail.tailEnd F.data := by |
| 779 | simp only [ConstructedSlowBase.activeRight, ConstructedSlowBase.terminalShift, |
| 780 | TerminalHistoryBridge.shift, OutgoingDilation.switchRadius_eq, |
| 781 | Real.log_mul W.controls.radius_pos.ne' (Real.exp_ne_zero _), Real.log_exp, OutgoingTail.tailEnd] |
| 782 | ring |
| 783 | rw [he, Real.exp_add, Real.exp_log W.controls.radius_pos] |
| 784 | rfl |
| 785 | |
| 786 | theorem exp_left_eq_cone : |
| 787 | Real.exp (Real.log (NominalConeAssembly.activeLeft W)) = NominalConeAssembly.activeLeft W := |
| 788 | Real.exp_log (NominalConeAssembly.activeLeft_pos W) |
| 789 | |
| 790 | end Clocks |
| 791 | |
| 792 | section Modulated |
| 793 | |
| 794 | variable {F : OutgoingProfile.Profile} {W : NominalProfile.Witness F} |
| 795 | (H : NominalConeAssembly.Certificate W) {d : ModulatedProfileAssembly.LoopData W} |
| 796 | (v : ModulatedProfileAssembly.Witness d) |
| 797 | |
| 798 | /-- The actual finite modulation already supplies the required positive |
| 799 | entrance margin; it is not an additional hypothesis on the final witness. -/ |
| 800 | theorem modulation_after_entrance : NominalConeAssembly.activeLeft W < d.modulation.left := d.after_initial |
| 801 | |
| 802 | noncomputable def modulatedScheme : Scheme v.slowParameters F.data.h W.axis.normalization := |
| 803 | scheme W H v.profiles v.finiteModification (modulation_after_entrance (d := d)) |
| 804 | |
| 805 | noncomputable def modulatedCoefficients : SlowBorelBase.Coefficients := |
| 806 | alignedCoefficients W H v.profiles v.finiteModification (modulation_after_entrance (d := d)) |
| 807 | |
| 808 | theorem modulated_base_eq : |
| 809 | (modulatedScheme H v).base = (modifiedScheme W v.profiles v.finiteModification).base := rfl |
| 810 | |
| 811 | theorem modulated_baseFields_eq : |
| 812 | (modulatedScheme H v).base = baseFields (modulatedScheme H v).domain |
| 813 | W.axis.normalization v.profiles v.finiteModification.halfPlane := rfl |
| 814 | |
| 815 | theorem modulated_outer : (modulatedScheme H v).B = nominalOuterRadius W := rfl |
| 816 | |
| 817 | theorem modulated_phi_eq_extended (n : ℕ) : |
| 818 | (modulatedCoefficients H v).phi n = extendedCoefficient (modulatedScheme H v) v.finiteModification.contains n 0 := rfl |
| 819 | |
| 820 | theorem modulated_axial_eq_extended (n : ℕ) : |
| 821 | (modulatedCoefficients H v).axial n = extendedCoefficient (modulatedScheme H v) v.finiteModification.contains n 1 := rfl |
| 822 | |
| 823 | theorem modulated_pressure_eq_extended (n : ℕ) : |
| 824 | (modulatedCoefficients H v).pressure n = extendedCoefficient (modulatedScheme H v) v.finiteModification.contains n 3 := rfl |
| 825 | |
| 826 | theorem modulated_smooth : SlowBorelBase.SmoothCoefficients (modulatedCoefficients H v) := |
| 827 | aligned_smooth W H v.profiles v.finiteModification (modulation_after_entrance (d := d)) |
| 828 | |
| 829 | theorem modulated_stressZeroCore : |
| 830 | BaseResidual.StressZeroCore (modulatedCoefficients H v) (NominalConeAssembly.activeLeft W) := |
| 831 | aligned_stressZeroCore W H v.profiles v.finiteModification (modulation_after_entrance (d := d)) |
| 832 | |
| 833 | theorem modulated_positive_stress_zero {n : ℕ} (hn : 0 < n) {p : ℝ × ℝ} |
| 834 | (hp : p.1 ≤ zeroEnd W H d.modulation.left) : |
| 835 | (modulatedCoefficients H v).stressTheta n p = 0 ∧ (modulatedCoefficients H v).stressAxial n p = 0 := |
| 836 | aligned_positive_stress_zero W H v.profiles v.finiteModification (modulation_after_entrance (d := d)) hn hp |
| 837 | |
| 838 | theorem modulated_higherInteriorSupport : |
| 839 | BaseResidual.HigherInteriorSupport (modulatedCoefficients H v) |
| 840 | (Real.log (NominalConeAssembly.activeLeft W)) (ConstructedSlowBase.activeRight W) := |
| 841 | aligned_higherInteriorSupport W H v.profiles v.finiteModification (modulation_after_entrance (d := d)) |
| 842 | |
| 843 | theorem modulated_zero_fields {p : ℝ × ℝ} (hX : 0 ≤ p.1) (heta : |p.2| ≤ 1) : |
| 844 | (modulatedCoefficients H v).phi 0 p = W.axis.normalization * v.profiles.f p ∧ |
| 845 | (modulatedCoefficients H v).axial 0 p = v.profiles.U p ∧ |
| 846 | (modulatedCoefficients H v).pressure 0 p = v.profiles.pressure p := |
| 847 | aligned_zero_fields W H v.profiles v.finiteModification (modulation_after_entrance (d := d)) hX heta |
| 848 | |
| 849 | theorem modulated_leading_stress_eq {p : ℝ × ℝ} (hX : 0 ≤ p.1) (heta : |p.2| ≤ 1) : |
| 850 | (modulatedCoefficients H v).stressTheta 0 p = LeadingStress.theta v.profiles F.data.h p ∧ |
| 851 | (modulatedCoefficients H v).stressAxial 0 p = LeadingStress.axial v.profiles F.data.h p := |
| 852 | aligned_leading_stress_eq W H v.profiles v.finiteModification (modulation_after_entrance (d := d)) hX heta |
| 853 | (fun X hXp _ => (v.positive_f (p := (X, p.2)) hXp (abs_le.mp heta)).ne') |
| 854 | |
| 855 | theorem modulated_leading_pair_eq {p : ℝ × ℝ} (hX : 0 ≤ p.1) (heta : |p.2| ≤ 1) : |
| 856 | BaseResidual.stressPair (modulatedCoefficients H v) 0 p = |
| 857 | (LeadingStress.theta v.profiles F.data.h p, LeadingStress.axial v.profiles F.data.h p) := by |
| 858 | have he := modulated_leading_stress_eq H v hX heta |
| 859 | exact Prod.ext he.1 he.2 |
| 860 | |
| 861 | theorem modulated_leading_axis {eta : ℝ} (heta : eta ∈ Icc (-1 : ℝ) 1) : |
| 862 | (modulatedCoefficients H v).axial 0 (0, eta) = 4 * eta + W.axis.j := |
| 863 | aligned_leading_axis W H v.profiles v.finiteModification (modulation_after_entrance (d := d)) heta |
| 864 | |
| 865 | theorem modulated_positive_axis {n : ℕ} (hn : 0 < n) {eta : ℝ} (heta : |eta| ≤ 1) : |
| 866 | (modulatedCoefficients H v).phi n (0, eta) = 0 ∧ |
| 867 | (modulatedCoefficients H v).axial n (0, eta) = 0 ∧ |
| 868 | (modulatedCoefficients H v).pressure n (0, eta) = 0 := |
| 869 | aligned_positive_axis W H v.profiles v.finiteModification (modulation_after_entrance (d := d)) hn heta |
| 870 | |
| 871 | theorem modulated_finiteIdentities : |
| 872 | BaseResidual.FiniteIdentities F.data.h W.axis.normalization (modulatedCoefficients H v) |
| 873 | (asSlowProfiles (modulatedScheme H v)) := |
| 874 | aligned_finiteIdentities W H v.profiles v.finiteModification (modulation_after_entrance (d := d)) |
| 875 | |
| 876 | theorem modulated_first_edgeJets {c : ℝ} (hc : 0 < c) : |
| 877 | BaseResidual.PolynomialEdgeJets |
| 878 | (BaseResidual.outerWindow (Real.exp (ConstructedSlowBase.activeRight W - 1)) |
| 879 | (ConstructedSlowBase.activeRight W)) |
| 880 | (BaseResidual.activeZeta c (Real.log (NominalConeAssembly.activeLeft W)) (ConstructedSlowBase.activeRight W)) |
| 881 | (BaseResidual.activeDelta (Real.log (NominalConeAssembly.activeLeft W)) (ConstructedSlowBase.activeRight W)) |
| 882 | (BaseResidual.stressPair (modulatedCoefficients H v) 1) := |
| 883 | aligned_first_edgeJets W H v.profiles v.finiteModification (modulation_after_entrance (d := d)) |
| 884 | (fun _ he => v.slow_outer_angular he) hc |
| 885 | |
| 886 | theorem modulated_positive_stress_zero_right {n : ℕ} (hn : 0 < n) {p : ℝ × ℝ} |
| 887 | (hp : NominalConeAssembly.activeRight W ≤ p.1) (heta : p.2 ∈ Icc (-1 : ℝ) 1) : |
| 888 | (modulatedCoefficients H v).stressTheta n p = 0 ∧ (modulatedCoefficients H v).stressAxial n p = 0 := by |
| 889 | have hp' : Real.exp (ConstructedSlowBase.activeRight W) ≤ p.1 := by |
| 890 | rwa [exp_right_eq_cone W] |
| 891 | by_cases h1 : n = 1 |
| 892 | · subst n |
| 893 | exact aligned_first_stress_zero_right W H v.profiles v.finiteModification (modulation_after_entrance (d := d)) |
| 894 | (fun _ he => v.slow_outer_angular he) hp' heta |
| 895 | · exact aligned_stress_zero_right W H v.profiles v.finiteModification (modulation_after_entrance (d := d)) |
| 896 | (by omega) ((ConstructedSlowBase.outer_before_upper W).le.trans hp') |
| 897 | |
| 898 | theorem modulated_positive_radialSupport {n : ℕ} (hn : 0 < n) : |
| 899 | SlowStressSupport.radialSupport (Icc (-1 : ℝ) 1) (zeroEnd W H d.modulation.left) |
| 900 | (NominalConeAssembly.activeRight W) ((modulatedCoefficients H v).stressTheta n) ∧ |
| 901 | SlowStressSupport.radialSupport (Icc (-1 : ℝ) 1) (zeroEnd W H d.modulation.left) |
| 902 | (NominalConeAssembly.activeRight W) ((modulatedCoefficients H v).stressAxial n) := by |
| 903 | have hz (eta : ℝ) (heta : eta ∈ Icc (-1 : ℝ) 1) (X : ℝ) |
| 904 | (hX : X ∉ Icc (zeroEnd W H d.modulation.left) (NominalConeAssembly.activeRight W)) : |
| 905 | (modulatedCoefficients H v).stressTheta n (X, eta) = 0 ∧ |
| 906 | (modulatedCoefficients H v).stressAxial n (X, eta) = 0 := by |
| 907 | by_cases hl : X ≤ zeroEnd W H d.modulation.left |
| 908 | · exact modulated_positive_stress_zero H v hn hl |
| 909 | · have hr : NominalConeAssembly.activeRight W ≤ X := by |
| 910 | by_contra hh |
| 911 | exact hX ⟨(lt_of_not_ge hl).le, (lt_of_not_ge hh).le⟩ |
| 912 | exact modulated_positive_stress_zero_right H v hn hr heta |
| 913 | exact ⟨fun eta he X hX => (hz eta he X hX).1, fun eta he X hX => (hz eta he X hX).2⟩ |
| 914 | |
| 915 | theorem modulated_stress_zero_right (n : ℕ) {p : ℝ × ℝ} |
| 916 | (hp : NominalConeAssembly.activeRight W ≤ p.1) (heta : p.2 ∈ Icc (-1 : ℝ) 1) : |
| 917 | (modulatedCoefficients H v).stressTheta n p = 0 ∧ (modulatedCoefficients H v).stressAxial n p = 0 := by |
| 918 | rcases Nat.eq_zero_or_pos n with rfl | hn |
| 919 | · have hX : 0 ≤ p.1 := (LeadingStressWeights.activeRight_pos W).le.trans hp |
| 920 | have he := modulated_leading_pair_eq H v hX (abs_le.mpr heta) |
| 921 | have hz := he.trans (LeadingStressWeights.stress_zero_after v hp heta) |
| 922 | exact ⟨congrArg Prod.fst hz, congrArg Prod.snd hz⟩ |
| 923 | · exact modulated_positive_stress_zero_right H v hn hp heta |
| 924 | |
| 925 | /-- Every actual coefficient, including orders zero and one, has support |
| 926 | in the same true-cone annulus on the closed physical parameter band. -/ |
| 927 | theorem modulated_all_stress_support (n : ℕ) : |
| 928 | SlowStressSupport.radialSupport (Icc (-1 : ℝ) 1) (NominalConeAssembly.activeLeft W) |
| 929 | (NominalConeAssembly.activeRight W) ((modulatedCoefficients H v).stressTheta n) ∧ |
| 930 | SlowStressSupport.radialSupport (Icc (-1 : ℝ) 1) (NominalConeAssembly.activeLeft W) |
| 931 | (NominalConeAssembly.activeRight W) ((modulatedCoefficients H v).stressAxial n) := by |
| 932 | have hz (eta : ℝ) (heta : eta ∈ Icc (-1 : ℝ) 1) (X : ℝ) |
| 933 | (hX : X ∉ Icc (NominalConeAssembly.activeLeft W) (NominalConeAssembly.activeRight W)) : |
| 934 | (modulatedCoefficients H v).stressTheta n (X, eta) = 0 ∧ |
| 935 | (modulatedCoefficients H v).stressAxial n (X, eta) = 0 := by |
| 936 | by_cases hl : X ≤ NominalConeAssembly.activeLeft W |
| 937 | · exact aligned_stress_zero_left W H v.profiles v.finiteModification |
| 938 | (modulation_after_entrance (d := d)) n hl |
| 939 | · have hr : NominalConeAssembly.activeRight W ≤ X := by |
| 940 | by_contra hh |
| 941 | exact hX ⟨(lt_of_not_ge hl).le, (lt_of_not_ge hh).le⟩ |
| 942 | exact modulated_stress_zero_right H v n hr heta |
| 943 | exact ⟨fun eta he X hX => (hz eta he X hX).1, fun eta he X hX => (hz eta he X hX).2⟩ |
| 944 | |
| 945 | /-- The entire summed normalized tensor has the same support, for every |
| 946 | cutoff schedule and every value of the expansion parameter. -/ |
| 947 | theorem modulated_normalizedTensor_zero (a : ℕ → ℕ) (q : ℝ) {p : ℝ × ℝ} |
| 948 | (hp : p.1 ∉ Icc (NominalConeAssembly.activeLeft W) (NominalConeAssembly.activeRight W)) |
| 949 | (heta : p.2 ∈ Icc (-1 : ℝ) 1) : |
| 950 | BaseResidual.normalizedTensor a F.data.h (modulatedCoefficients H v) (q, p) = 0 := by |
| 951 | apply BaseResidual.slowSum_zero_of_all |
| 952 | intro n |
| 953 | have hs := modulated_all_stress_support H v n |
| 954 | exact Prod.ext (hs.1 p.2 heta p.1 hp) (hs.2 p.2 heta p.1 hp) |
| 955 | |
| 956 | /-- The transition lies in the true cone of the same final modulated |
| 957 | profile, with its actual restored histories. -/ |
| 958 | theorem modulated_transition_true {p : ℝ × ℝ} |
| 959 | (hp : p.1 ∈ Icc (cutoffInner W H d.modulation.left) (cutoffStop W H d.modulation.left)) |
| 960 | (heta : p.2 ∈ Icc (-1 : ℝ) 1) : |
| 961 | TrueConeLoop.InTrueCone |
| 962 | (ActivationStocks.profileStockOne v.profiles F.data.h p) |
| 963 | (ActivationStocks.profileStockTwo v.profiles F.data.h p) |
| 964 | (ModulatedCone.angularShear v.profiles.E p) |
| 965 | (ModulatedCone.signedAxialShear v.profiles.E v.profiles.U p) := by |
| 966 | have hx : 0 < p.1 := (cutoffInner_pos W H (modulation_after_entrance (d := d))).trans_le hp.1 |
| 967 | have hf := NominalConeAssembly.Witness.f_positive W hx heta |
| 968 | apply v.true_cone_from_nominal hx (d.parameters_contains heta) hf.ne' |
| 969 | intro _ |
| 970 | have hc := (NominalConeAssembly.isTrue_iff_loop W.profiles F.data.h p).mp |
| 971 | (cutoff_transition_true W H (modulation_after_entrance (d := d)) hp heta) |
| 972 | have hs := NominalConeAssembly.modulated_shears_eq W.profiles (W.domain_contains hx.le heta) hx hf.ne' |
| 973 | simpa only [NominalConeAssembly.p1_eq_stock, NominalConeAssembly.p2_eq_stock, hs.1, hs.2] using hc |
| 974 | |
| 975 | theorem modulated_quotients_smooth {c : ℝ} (hc : 0 < c) (n : ℕ) : |
| 976 | ContDiff ℝ ∞ (BaseResidual.higherStressQuotient (modulatedCoefficients H v) |
| 977 | (BaseResidual.activeZeta c (Real.log (NominalConeAssembly.activeLeft W)) |
| 978 | (ConstructedSlowBase.activeRight W)) n) := |
| 979 | BaseResidual.higherStressQuotient_smooth_of_support (modulated_smooth H v) hc |
| 980 | (modulated_higherInteriorSupport H v) n |
| 981 | |
| 982 | /-- The weighted estimate uses the true entrance, together with the |
| 983 | proved interior support and the actual first-order terminal jets. -/ |
| 984 | theorem modulated_weighted_on_actual_scales {a : ℕ → ℕ} {c : ℝ} (hc : 0 < c) |
| 985 | {K : Set SlowBorelBase.Inner} (hK : IsCompact K) |
| 986 | (hWK : BaseResidual.activeWindow (Real.log (NominalConeAssembly.activeLeft W)) |
| 987 | (ConstructedSlowBase.activeRight W) ⊆ K) |
| 988 | (ha : SlowBorelBase.AdmissibleScales F.data.h |
| 989 | (BaseResidual.weightedBundle W.axis.normalization (modulatedCoefficients H v) |
| 990 | (BaseResidual.activeZeta c (Real.log (NominalConeAssembly.activeLeft W)) |
| 991 | (ConstructedSlowBase.activeRight W))) K a) : |
| 992 | ConstructedSlowBase.WeightedStressBound a F.data.h (modulatedCoefficients H v) |
| 993 | c (Real.log (NominalConeAssembly.activeLeft W)) (ConstructedSlowBase.activeRight W) := by |
| 994 | apply ConstructedSlowBase.weighted_on_actual_scales W.axis.small.h_pos (modulated_smooth H v) hc |
| 995 | (inner := zeroEnd W H d.modulation.left) |
| 996 | (cut := Real.exp (ConstructedSlowBase.activeRight W - 1)) |
| 997 | · rw [Real.exp_log (NominalConeAssembly.activeLeft_pos W)] |
| 998 | exact (window_order W H (modulation_after_entrance (d := d))).1 |
| 999 | · have hz := zeroEnd_lt_outer_collar W H (modulation_after_entrance (d := d)) |
| 1000 | have he : ConstructedSlowBase.activeRight W - 1 = FirstOrderBaseEdge.terminalShift W + 2 := by |
| 1001 | change FirstOrderBaseEdge.terminalShift W + 3 - 1 = _ |
| 1002 | ring |
| 1003 | rw [he] |
| 1004 | exact hz.le |
| 1005 | · exact Real.exp_lt_exp.mpr (by linarith) |
| 1006 | · exact modulated_higherInteriorSupport H v |
| 1007 | · intro p hp |
| 1008 | have hz := modulated_positive_stress_zero H v (by decide : 0 < 1) hp.le |
| 1009 | exact Prod.ext hz.1 hz.2 |
| 1010 | · exact modulated_first_edgeJets H v hc |
| 1011 | · exact hK |
| 1012 | · exact hWK |
| 1013 | · exact ha |
| 1014 | |
| 1015 | open SlowBorelBase BaseResidual in |
| 1016 | /-- One common schedule is chosen after rebuilding the aligned coefficient |
| 1017 | family. It controls both the ordinary base and its weighted stress sum. -/ |
| 1018 | noncomputable def scales (c : ℝ) (hc : 0 < c) (upper : ℝ) (B : ℕ) : ℕ → ℕ := |
| 1019 | Classical.choose (exists_admissibleScales |
| 1020 | (weightedBundle_smooth (modulated_smooth H v) (modulated_quotients_smooth H v hc) |
| 1021 | W.axis.normalization) W.axis.small.h_pos (innerBox_isCompact 0 (ConstructedSlowBase.scaleUpper W upper)) B) |
| 1022 | |
| 1023 | open SlowBorelBase BaseResidual in |
| 1024 | theorem scales_spec (c : ℝ) (hc : 0 < c) (upper : ℝ) (B : ℕ) : |
| 1025 | B ≤ scales H v c hc upper B 0 ∧ |
| 1026 | AdmissibleScales F.data.h |
| 1027 | (weightedBundle W.axis.normalization (modulatedCoefficients H v) |
| 1028 | (activeZeta c (Real.log (NominalConeAssembly.activeLeft W)) (ConstructedSlowBase.activeRight W))) |
| 1029 | (innerBox 0 (ConstructedSlowBase.scaleUpper W upper)) (scales H v c hc upper B) := |
| 1030 | Classical.choose_spec (exists_admissibleScales |
| 1031 | (weightedBundle_smooth (modulated_smooth H v) (modulated_quotients_smooth H v hc) |
| 1032 | W.axis.normalization) W.axis.small.h_pos (innerBox_isCompact 0 (ConstructedSlowBase.scaleUpper W upper)) B) |
| 1033 | |
| 1034 | open SlowBorelBase BaseResidual in |
| 1035 | theorem scales_admissible (c : ℝ) (hc : 0 < c) (upper : ℝ) (B : ℕ) : |
| 1036 | AdmissibleScales F.data.h (coefficientBundle W.axis.normalization (modulatedCoefficients H v)) |
| 1037 | (innerBox 0 (ConstructedSlowBase.scaleUpper W upper)) (scales H v c hc upper B) := |
| 1038 | weightedBundle_base_scales (modulated_smooth H v) (modulated_quotients_smooth H v hc) |
| 1039 | (scales_spec H v c hc upper B).2 |
| 1040 | |
| 1041 | theorem scales_strictMono (c : ℝ) (hc : 0 < c) (upper : ℝ) (B : ℕ) : |
| 1042 | StrictMono (scales H v c hc upper B) := (scales_spec H v c hc upper B).2.strictMono |
| 1043 | |
| 1044 | theorem scales_weighted (c : ℝ) (hc : 0 < c) (upper : ℝ) (B : ℕ) : |
| 1045 | ConstructedSlowBase.WeightedStressBound (scales H v c hc upper B) F.data.h (modulatedCoefficients H v) |
| 1046 | c (Real.log (NominalConeAssembly.activeLeft W)) (ConstructedSlowBase.activeRight W) := by |
| 1047 | apply modulated_weighted_on_actual_scales H v hc |
| 1048 | (SlowBorelBase.innerBox_isCompact 0 (ConstructedSlowBase.scaleUpper W upper)) _ (scales_spec H v c hc upper B).2 |
| 1049 | intro p hp |
| 1050 | exact ⟨⟨(Real.exp_pos _).le.trans hp.1.1.le, |
| 1051 | hp.1.2.le.trans (le_max_right _ _)⟩, hp.2⟩ |
| 1052 | |
| 1053 | end Modulated |
| 1054 | |
| 1055 | end NavierStokes.EntranceAlignedBase |