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