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.GlobalStressSupport |
| 2 | import NavierStokes.SlowFirstOrderEdge |
| 3 | import NavierStokes.TerminalHistoryBridge |
| 4 | import NavierStokes.BaseResidual |
| 5 | import NavierStokes.ModulatedProfileAssembly |
| 6 | |
| 7 | /-! |
| 8 | # The first stress coefficient on the terminal collar |
| 9 | |
| 10 | The first coefficient is the canonical primitive of the actual repaired |
| 11 | residual. The order-zero moment retained below is essential: exterior |
| 12 | agreement of velocities alone does not fix the constant of integration. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | open Set Filter Function MeasureTheory |
| 18 | open scoped Topology ContDiff BigOperators |
| 19 | |
| 20 | namespace NavierStokes.FirstOrderBaseEdge |
| 21 | |
| 22 | open GlobalSlowProfiles GlobalStressSupport AssembledSlowBase |
| 23 | |
| 24 | |
| 25 | theorem exterior_mono {S : Set ℝ} {f : SlowStressSupport.Field} {a b : ℝ} |
| 26 | (hf : SlowStressSupport.exterior a S f) (hab : a ≤ b) : SlowStressSupport.exterior b S f := |
| 27 | fun eta heta R hR => hf eta heta R (hab.trans hR) |
| 28 | |
| 29 | theorem moment_eq_of_exterior {S : Set ℝ} {f : SlowStressSupport.Field} {a b eta : ℝ} |
| 30 | (ha : 0 ≤ a) (hab : a ≤ b) (hf : SlowStressSupport.exterior a S f) (heta : eta ∈ S) |
| 31 | (m : ℕ) : SlowStressSupport.moment b m f eta = SlowStressSupport.moment a m f eta := by |
| 32 | rw [SlowStressSupport.moment_eq_positive (ha.trans hab) (exterior_mono hf hab) heta, |
| 33 | SlowStressSupport.moment_eq_positive ha hf heta] |
| 34 | |
| 35 | /-- The four conservative moments at every radius beyond the actual repair |
| 36 | patch follow from the five constructed rows. -/ |
| 37 | theorem conservative_moments_at {S : Set ℝ} {h C R : ℝ} (s : Scheme S h C) |
| 38 | {n : ℕ} (hn : 0 < n) (hR : s.B ≤ R) {eta : ℝ} (heta : eta ∈ S) : |
| 39 | SlowStressSupport.moment R 1 (axialHistory s n) eta = 0 ∧ |
| 40 | SlowStressSupport.moment R 2 (angularHistory s n) eta = 0 ∧ |
| 41 | SlowStressSupport.moment R 2 (SlowStressSupport.conv n (axialHistory s) (angularHistory s)) eta = 0 ∧ |
| 42 | SlowStressSupport.moment R 1 |
| 43 | (fun w => SlowStressSupport.conv n (axialHistory s) (axialHistory s) w + pressureField s n w) eta = 0 := by |
| 44 | have hf : SlowStressSupport.exterior s.B S |
| 45 | (fun w => SlowStressSupport.conv n (axialHistory s) (axialHistory s) w + pressureField s n w) := by |
| 46 | intro z hz r hr |
| 47 | dsimp only |
| 48 | rw [SlowStressSupport.exterior_conv_left (fun j _ => axialHistory_exterior s j) z hz r hr, |
| 49 | pressureField_exterior s hn z hz r hr, zero_add] |
| 50 | rw [moment_eq_of_exterior s.B_pos.le hR (axialHistory_exterior s n) heta, |
| 51 | moment_eq_of_exterior s.B_pos.le hR (angularHistory_exterior s hn) heta, |
| 52 | moment_eq_of_exterior s.B_pos.le hR |
| 53 | (SlowStressSupport.exterior_conv_left (fun j _ => axialHistory_exterior s j)) heta, |
| 54 | moment_eq_of_exterior s.B_pos.le hR hf heta] |
| 55 | exact conservative_moments_zero s hn heta |
| 56 | |
| 57 | /-- The exact first angular primitive, with its order-zero viscosity moment |
| 58 | still displayed. This is derived from the repaired rows, not prescribed as |
| 59 | a stress boundary condition. -/ |
| 60 | theorem first_angular_balance {S : Set ℝ} {h C R : ℝ} (s : Scheme S h C) |
| 61 | (hbase : s.base.beta = betaFromU s.domain 0 s.base.axial) |
| 62 | (hR : s.B ≤ R) {eta : ℝ} (heta : eta ∈ S) : |
| 63 | SlowStressSupport.stress 2 (SlowResidualMatching.thetaDensity h C (asSlowProfiles s) 1) (R, eta) = |
| 64 | SlowStressSupport.moment R 2 (SlowStressSupport.axialOp2 h (SlowStressSupport.orderExponent h 0) (angularHistory s 0)) eta / R ^ 2 := by |
| 65 | have hRp : 0 < R := s.B_pos.trans_le hR |
| 66 | have hb := SlowStressSupport.angular_integral_balance s.domain.isOpen |
| 67 | (fun j _ => fluxHistory_smooth s j) (fun j _ => axialHistory_smooth s j) |
| 68 | (fun j _ => angularHistory_smooth s j) h R s.domain.denominator |
| 69 | (exterior_mono (angularHistory_exterior s (by decide : 0 < 1)) hR) |
| 70 | (fun j _ => exterior_mono (fluxHistory_exterior s j) hR) |
| 71 | (fun _ he => (conservative_moments_at s (by decide : 0 < 1) hR he).2.1) |
| 72 | (fun _ he => (conservative_moments_at s (by decide : 0 < 1) hR he).2.2.1) |
| 73 | (exterior_mono (SlowStressSupport.exterior_conv_left (fun j _ => axialHistory_exterior s j)) hR) heta |
| 74 | have he : ProfileHistories.primitive (SlowResidualMatching.thetaDensity h C (asSlowProfiles s) 1) (R, eta) = |
| 75 | SlowStressSupport.moment R 0 (SlowStressSupport.angularDensity h 1 (fluxHistory s) (axialHistory s) (angularHistory s)) eta := by |
| 76 | apply intervalIntegral.integral_congr |
| 77 | intro r _ |
| 78 | simp only [pow_zero, one_mul] |
| 79 | exact thetaDensity_eq s hbase (by decide : 0 < 1) ⟨mem_univ r, heta⟩ |
| 80 | rw [SlowStressSupport.stress_of_pos 2 _ hRp, he, hb] |
| 81 | simp |
| 82 | |
| 83 | /-- At order one the axial primitive vanishes outside the repair patch as |
| 84 | soon as the actual base mass is zero there. -/ |
| 85 | theorem first_axial_exterior {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) |
| 86 | (hbase : s.base.beta = betaFromU s.domain 0 s.base.axial) |
| 87 | (hmass : ∀ eta ∈ S, SlowStressSupport.moment s.B 1 (axialHistory s 0) eta = 0) : |
| 88 | SlowStressSupport.exterior s.B S (SlowStressSupport.stress 1 (SlowResidualMatching.zDensity h (asSlowProfiles s) 1)) := by |
| 89 | have hmoment : ∀ eta ∈ S, |
| 90 | SlowStressSupport.moment s.B 0 (SlowStressSupport.axialDensity h 1 (fluxHistory s) (axialHistory s) (pressureField s 1)) eta = 0 := by |
| 91 | intro eta heta |
| 92 | apply SlowStressSupport.axial_integral_zero s.domain.isOpen |
| 93 | (fun j _ => fluxHistory_smooth s j) (fun j _ => axialHistory_smooth s j) |
| 94 | (pressureField_smooth s 1) h s.B s.domain.denominator |
| 95 | (axialHistory_exterior s 1) (fun j _ => fluxHistory_exterior s j) |
| 96 | · intro z hz |
| 97 | simp only [SlowStressSupport.conv, fluxHistory_axis s _ hz, zero_mul, Finset.sum_const_zero] |
| 98 | · exact fun _ he => (conservative_moments_zero s (by decide : 0 < 1) he).1 |
| 99 | · exact fun _ he => (conservative_moments_zero s (by decide : 0 < 1) he).2.2.2 |
| 100 | · intro z hz |
| 101 | rw [SlowStressSupport.exterior_conv_left (fun j _ => axialHistory_exterior s j) z hz s.B le_rfl, |
| 102 | pressureField_exterior s (by decide : 0 < 1) z hz s.B le_rfl, zero_add] |
| 103 | · exact axialHistory_exterior s 0 |
| 104 | · exact hmass |
| 105 | · exact heta |
| 106 | have hsrc : SlowStressSupport.exterior s.B S |
| 107 | (SlowStressSupport.axialDensity h 1 (fluxHistory s) (axialHistory s) (pressureField s 1)) := |
| 108 | SlowStressSupport.exterior_axialDensity s.domain.isOpen |
| 109 | (fun j _ => fluxHistory_smooth s j) (fun j _ => axialHistory_smooth s j) |
| 110 | (pressureField_smooth s 1) h s.B |
| 111 | (fun j _ => fluxHistory_exterior s j) (fun j _ => axialHistory_exterior s j) |
| 112 | (pressureField_exterior s (by decide : 0 < 1)) |
| 113 | (SlowStressSupport.exterior_axialOp2 s.domain.isOpen (axialHistory_smooth s 0) |
| 114 | (axialHistory_exterior s 0) h _ s.domain.denominator) |
| 115 | have hd : SlowStressSupport.exterior s.B S (SlowResidualMatching.zDensity h (asSlowProfiles s) 1) := by |
| 116 | intro eta heta R hR |
| 117 | rw [zDensity_eq s hbase (by decide : 0 < 1) ⟨mem_univ R, heta⟩] |
| 118 | exact hsrc eta heta R hR |
| 119 | have hm : ∀ eta ∈ S, |
| 120 | SlowStressSupport.moment s.B 0 (SlowResidualMatching.zDensity h (asSlowProfiles s) 1) eta = 0 := by |
| 121 | intro eta heta |
| 122 | rw [← hmoment eta heta] |
| 123 | apply intervalIntegral.integral_congr |
| 124 | intro r _ |
| 125 | simp only [pow_zero, one_mul] |
| 126 | exact zDensity_eq s hbase (by decide : 0 < 1) ⟨mem_univ r, heta⟩ |
| 127 | exact fun eta heta R hR => SlowStressSupport.stress_exterior 1 s.B_pos.le hd hm hR heta |
| 128 | |
| 129 | /-! ## The literal physical viscosity and its zero total moment -/ |
| 130 | |
| 131 | theorem physical_angular_germ (F : OutgoingProfile.Profile) {XR cost L : ℝ} |
| 132 | (w : HeatedOutgoing.CompensationWitness F XR cost) {E : ℝ × ℝ → ℝ} |
| 133 | (hmatch : ∀ eta ∈ Ioo (-1 : ℝ) 1, ∀ X : ℝ, L ≤ X → |
| 134 | E (X, eta) = HeatedOutgoing.E F XR w.coefficients (X, eta)) |
| 135 | {p : SimilarityProfile.PhysicalPoint} (ht : p.1 < 1) (hs : 0 < p.2.1) |
| 136 | (hL : L < SimilarityProfile.X F.data.h p) |
| 137 | (hfull : 1 / 2 < Real.log (SimilarityProfile.X F.data.h p / |
| 138 | OutgoingDilation.switchRadius F XR) + 1 / 5) : |
| 139 | SimilarityProfile.pullback F.data.h (-CoordinateAlgebra.A F.data.h) E =ᶠ[𝓝 p] |
| 140 | SlowFirstOrderEdge.physicalAngular (TerminalHistoryBridge.normalization F XR) |
| 141 | F.data (TerminalHistoryBridge.shift F XR) := by |
| 142 | have hX := div_pos hs (SimilarityProfile.q_pos F.data.h_pos F.data.h_lt_half ht) |
| 143 | have hK := OutgoingDilation.switchRadius_pos F XR w.radius_pos |
| 144 | have hx := (SimilarityProfile.inner_smoothAt F.data.h_pos F.data.h_lt_half ht).continuousAt.fst |
| 145 | have hc : ContinuousAt (fun q => Real.log (SimilarityProfile.X F.data.h q / |
| 146 | OutgoingDilation.switchRadius F XR) + 1 / 5) p := |
| 147 | ((hx.div_const _).log (div_pos hX hK).ne').add_const _ |
| 148 | filter_upwards [continuousAt_fst.eventually (Iio_mem_nhds ht), |
| 149 | continuousAt_snd.fst.eventually (Ioi_mem_nhds hs), |
| 150 | hx.eventually (Ioi_mem_nhds hL), hc.eventually (Ioi_mem_nhds hfull)] with q hqt hqs hqL hqf |
| 151 | have heta := TerminalHistoryBridge.eta_mem_interior F.data.h_pos F.data.h_lt_half hqt |
| 152 | change L < SimilarityProfile.X F.data.h q at hqL |
| 153 | have he := TerminalHistoryBridge.physicalAngular_eq_terminal F w.radius_pos w.coefficients hqt hqs hqf.le |
| 154 | change SimilarityProfile.q F.data.h q ^ (-CoordinateAlgebra.A F.data.h) * |
| 155 | E (SimilarityProfile.X F.data.h q, SimilarityProfile.eta F.data.h q) = _ |
| 156 | rw [hmatch _ heta _ hqL.le] |
| 157 | exact he |
| 158 | |
| 159 | /-- On the switched tail the actual second axial derivative is the source |
| 160 | used in the independently constructed flat terminal primitive. -/ |
| 161 | theorem actual_viscosity_eq_terminal (F : OutgoingProfile.Profile) {XR cost L : ℝ} |
| 162 | (w : HeatedOutgoing.CompensationWitness F XR cost) {E G : ℝ × ℝ → ℝ} |
| 163 | (hG : SlowStressSupport.Smooth (Ioo (-1) 1) G) |
| 164 | (hGE : ∀ R : ℝ, 0 < R → ∀ eta ∈ Ioo (-1 : ℝ) 1, G (R, eta) = E (R ^ 2 / 2, eta)) |
| 165 | (hmatch : ∀ eta ∈ Ioo (-1 : ℝ) 1, ∀ X : ℝ, L ≤ X → |
| 166 | E (X, eta) = HeatedOutgoing.E F XR w.coefficients (X, eta)) |
| 167 | {R eta : ℝ} (hR : 0 < R) (heta : eta ∈ Ioo (-1 : ℝ) 1) |
| 168 | (hL : L < R ^ 2 / 2) |
| 169 | (hfull : 1 / 2 < Real.log ((R ^ 2 / 2) / OutgoingDilation.switchRadius F XR) + 1 / 5) : |
| 170 | SlowStressSupport.axialOp2 F.data.h (SlowStressSupport.orderExponent F.data.h 0) G (R, eta) = |
| 171 | -SlowFirstOrderEdge.radialSource (TerminalHistoryBridge.normalization F XR) |
| 172 | F.data (TerminalHistoryBridge.shift F XR) eta R := by |
| 173 | obtain ⟨ht, hq, he⟩ := RenormalizedHeatMoment.normalized_coordinates F.data.h_pos F.data.h_lt_half heta |
| 174 | let p : SimilarityProfile.PhysicalPoint := (eta ^ 2, (R ^ 2 / 2, eta)) |
| 175 | have hqp : SimilarityProfile.q F.data.h p = 1 := hq |
| 176 | have hep : SimilarityProfile.eta F.data.h p = eta := he |
| 177 | have hxp : SimilarityProfile.X F.data.h p = R ^ 2 / 2 := by |
| 178 | simp only [SimilarityProfile.X, hqp, div_one, p] |
| 179 | have hg := physical_angular_germ F w hmatch (p := p) ht (by dsimp [p]; positivity) |
| 180 | (by simpa only [hxp] using hL) (by simpa only [hxp] using hfull) |
| 181 | have hc : ContinuousAt (fun z : ℝ => (eta ^ 2, (R ^ 2 / 2, z))) eta := |
| 182 | continuousAt_const.prodMk (continuousAt_const.prodMk continuousAt_id) |
| 183 | have hg' := hg.comp_tendsto hc |
| 184 | have hu : RenormalizedHeatMoment.uTheta F.data.h E (eta ^ 2) R =ᶠ[𝓝 eta] |
| 185 | (fun z => SlowFirstOrderEdge.physicalAngular (TerminalHistoryBridge.normalization F XR) |
| 186 | F.data (TerminalHistoryBridge.shift F XR) (eta ^ 2, (R ^ 2 / 2, z))) := by |
| 187 | filter_upwards [hg'] with z hz |
| 188 | rw [RenormalizedHeatMoment.uTheta_eq_similarity_pullback] |
| 189 | exact hz |
| 190 | have hd := hu.deriv.deriv_eq |
| 191 | have hv := SlowResidualMatching.normalized_axial_viscosity F.data.h_pos F.data.h_lt_half hG hGE heta hR |
| 192 | have hf := SlowFirstOrderEdge.physicalSource_radial_scaled (TerminalHistoryBridge.normalization F XR) |
| 193 | F.data (TerminalHistoryBridge.shift F XR) (t := eta ^ 2) (z := eta) ht hR |
| 194 | have hscale : SlowFirstOrderEdge.physicalScale F.data (eta ^ 2) eta = 1 := hq |
| 195 | have heta' : SlowFirstOrderEdge.physicalEta F.data (eta ^ 2) eta = eta := he |
| 196 | rw [hscale, heta', Real.one_rpow, Real.sqrt_one, div_one, one_mul] at hf |
| 197 | change -deriv (deriv (fun z => SlowFirstOrderEdge.physicalAngular |
| 198 | (TerminalHistoryBridge.normalization F XR) F.data (TerminalHistoryBridge.shift F XR) |
| 199 | (eta ^ 2, (R ^ 2 / 2, z)))) eta = _ at hf |
| 200 | rw [← hd, hv] at hf |
| 201 | have hexp : SlowStressSupport.orderExponent F.data.h 0 = -CoordinateAlgebra.A F.data.h := by |
| 202 | simp [SlowStressSupport.orderExponent, SlowExpansionResidual.slowOrder, |
| 203 | PositiveAxisSystem.a, CoordinateAlgebra.A] |
| 204 | rw [hexp] |
| 205 | linarith |
| 206 | |
| 207 | theorem actual_viscosity_total_zero (F : OutgoingProfile.Profile) {XR cost L : ℝ} |
| 208 | (w : HeatedOutgoing.CompensationWitness F XR cost) {E G : ℝ × ℝ → ℝ} |
| 209 | (hG : SlowStressSupport.Smooth (Ioo (-1) 1) G) |
| 210 | (hGE : ∀ R : ℝ, 0 < R → ∀ eta ∈ Ioo (-1 : ℝ) 1, G (R, eta) = E (R ^ 2 / 2, eta)) |
| 211 | (hmatch : ∀ eta ∈ Ioo (-1 : ℝ) 1, ∀ X : ℝ, L ≤ X → |
| 212 | E (X, eta) = HeatedOutgoing.E F XR w.coefficients (X, eta)) |
| 213 | (hreset : ∀ eta ∈ Ioo (-1 : ℝ) 1, |
| 214 | (∫ X in Ioi (0 : ℝ), Real.sqrt (2 * X) * E (X, eta) - OutgoingDilation.powerH F XR X) = |
| 215 | ∫ X in Ioi (0 : ℝ), HeatedOutgoing.H F XR w.coefficients (X, eta) - OutgoingDilation.powerH F XR X) |
| 216 | {eta : ℝ} (heta : eta ∈ Ioo (-1 : ℝ) 1) : |
| 217 | IntegrableOn (fun R => R ^ 2 * |
| 218 | SlowStressSupport.axialOp2 F.data.h (SlowStressSupport.orderExponent F.data.h 0) G (R, eta)) (Ioi 0) ∧ |
| 219 | (∫ R in Ioi (0 : ℝ), R ^ 2 * |
| 220 | SlowStressSupport.axialOp2 F.data.h (SlowStressSupport.orderExponent F.data.h 0) G (R, eta)) = 0 := by |
| 221 | obtain ⟨ht, _, _⟩ := RenormalizedHeatMoment.normalized_coordinates F.data.h_pos F.data.h_lt_half heta |
| 222 | have hz := RenormalizedHeatMoment.heated_nominal_axial_viscosity F w F.data.h_lt_half ht L |
| 223 | hG hGE hmatch hreset eta |
| 224 | have he : EqOn (fun R => R ^ 2 * deriv (deriv (RenormalizedHeatMoment.uTheta F.data.h E (eta ^ 2) R)) eta) |
| 225 | (fun R => R ^ 2 * SlowStressSupport.axialOp2 F.data.h |
| 226 | (SlowStressSupport.orderExponent F.data.h 0) G (R, eta)) (Ioi 0) := by |
| 227 | intro R hR |
| 228 | dsimp only |
| 229 | rw [SlowResidualMatching.normalized_axial_viscosity F.data.h_pos F.data.h_lt_half hG hGE heta hR] |
| 230 | simp [SlowStressSupport.orderExponent, SlowExpansionResidual.slowOrder, |
| 231 | PositiveAxisSystem.a, CoordinateAlgebra.A] |
| 232 | exact ⟨hz.1.congr_fun he measurableSet_Ioi, |
| 233 | (setIntegral_congr_fun measurableSet_Ioi he).symm.trans hz.2⟩ |
| 234 | |
| 235 | theorem full_switch_monotone (F : OutgoingProfile.Profile) {XR R r : ℝ} |
| 236 | (hXR : 0 < XR) (hR : 0 < R) (hr : R ≤ r) |
| 237 | (hf : 1 / 2 < Real.log ((R ^ 2 / 2) / OutgoingDilation.switchRadius F XR) + 1 / 5) : |
| 238 | 1 / 2 < Real.log ((r ^ 2 / 2) / OutgoingDilation.switchRadius F XR) + 1 / 5 := by |
| 239 | have hK := OutgoingDilation.switchRadius_pos F XR hXR |
| 240 | have hp : 0 < (R ^ 2 / 2) / OutgoingDilation.switchRadius F XR := by positivity |
| 241 | have hs : R ^ 2 ≤ r ^ 2 := (sq_le_sq₀ hR.le (hR.le.trans hr)).mpr hr |
| 242 | have hl := Real.log_le_log hp (div_le_div_of_nonneg_right |
| 243 | (div_le_div_of_nonneg_right hs (by norm_num)) hK.le) |
| 244 | linarith |
| 245 | |
| 246 | /-- The forward first-order primitive equals the backward terminal one. |
| 247 | The total viscosity moment is derived from the same original reset row. -/ |
| 248 | theorem first_angular_eq_backward (F : OutgoingProfile.Profile) {XR cost L C : ℝ} |
| 249 | (w : HeatedOutgoing.CompensationWitness F XR cost) {S : Set ℝ} (s : Scheme S F.data.h C) |
| 250 | (hS : Ioo (-1 : ℝ) 1 ⊆ S) |
| 251 | (hbase : s.base.beta = betaFromU s.domain 0 s.base.axial) {E : ℝ × ℝ → ℝ} |
| 252 | (hGE : ∀ R : ℝ, 0 < R → ∀ eta ∈ Ioo (-1 : ℝ) 1, |
| 253 | angularHistory s 0 (R, eta) = E (R ^ 2 / 2, eta)) |
| 254 | (hmatch : ∀ eta ∈ Ioo (-1 : ℝ) 1, ∀ X : ℝ, L ≤ X → |
| 255 | E (X, eta) = HeatedOutgoing.E F XR w.coefficients (X, eta)) |
| 256 | (hreset : ∀ eta ∈ Ioo (-1 : ℝ) 1, |
| 257 | (∫ X in Ioi (0 : ℝ), Real.sqrt (2 * X) * E (X, eta) - OutgoingDilation.powerH F XR X) = |
| 258 | ∫ X in Ioi (0 : ℝ), HeatedOutgoing.H F XR w.coefficients (X, eta) - OutgoingDilation.powerH F XR X) |
| 259 | {R eta : ℝ} (hR : s.B ≤ R) (heta : eta ∈ Ioo (-1 : ℝ) 1) |
| 260 | (hL : L < R ^ 2 / 2) |
| 261 | (hfull : 1 / 2 < Real.log ((R ^ 2 / 2) / OutgoingDilation.switchRadius F XR) + 1 / 5) : |
| 262 | SlowStressSupport.stress 2 (SlowResidualMatching.thetaDensity F.data.h C (asSlowProfiles s) 1) (R, eta) = |
| 263 | SlowFirstOrderEdge.radialStress (TerminalHistoryBridge.normalization F XR) |
| 264 | F.data (TerminalHistoryBridge.shift F XR) eta R := by |
| 265 | have hRp : 0 < R := s.B_pos.trans_le hR |
| 266 | have hG : SlowStressSupport.Smooth (Ioo (-1) 1) (angularHistory s 0) := |
| 267 | (angularHistory_smooth s 0).mono (prod_mono_right hS) |
| 268 | obtain ⟨hi, hz⟩ := actual_viscosity_total_zero F w hG hGE hmatch hreset heta |
| 269 | have hsplit := TerminalHistoryBridge.split_positive_integral hi hRp.le |
| 270 | rw [hz] at hsplit |
| 271 | have he : (∫ r in Ioi R, r ^ 2 * SlowFirstOrderEdge.radialSource |
| 272 | (TerminalHistoryBridge.normalization F XR) F.data (TerminalHistoryBridge.shift F XR) eta r) = |
| 273 | -(∫ r in Ioi R, r ^ 2 * SlowStressSupport.axialOp2 F.data.h |
| 274 | (SlowStressSupport.orderExponent F.data.h 0) (angularHistory s 0) (r, eta)) := by |
| 275 | rw [← integral_neg] |
| 276 | apply setIntegral_congr_fun measurableSet_Ioi |
| 277 | intro r hr |
| 278 | dsimp only |
| 279 | have hsq : R ^ 2 ≤ r ^ 2 := (sq_le_sq₀ hRp.le (hRp.trans hr).le).mpr hr.le |
| 280 | have hv := actual_viscosity_eq_terminal F w hG hGE hmatch (hRp.trans hr) heta |
| 281 | (hL.trans_le (div_le_div_of_nonneg_right hsq (by norm_num))) |
| 282 | (full_switch_monotone F w.radius_pos hRp hr.le hfull) |
| 283 | rw [hv] |
| 284 | ring |
| 285 | rw [first_angular_balance s hbase hR (hS heta)] |
| 286 | unfold SlowFirstOrderEdge.radialStress TerminalStress.backwardStress |
| 287 | rw [he] |
| 288 | congr 1 |
| 289 | unfold SlowStressSupport.moment |
| 290 | rw [intervalIntegral.integral_of_le hRp.le] |
| 291 | linarith |
| 292 | |
| 293 | /-! ## Identifying the common extension with its actual radial primitive -/ |
| 294 | |
| 295 | theorem coefficients_stress_eq_window {S : Set ℝ} {h C rho inner : ℝ} {U : Set ℂ} |
| 296 | {base : Fin 5 → SimilarityProfile.InnerProfile} {s : Scheme S h C} |
| 297 | {A : SlowRecursion.LocalHierarchy rho U h C base} |
| 298 | (L : Localization s A inner) (B0 : BaseAgreement s A inner) |
| 299 | (Z0 : ZeroOrderSolved s inner) (hI : Icc (-1 : ℝ) 1 ⊆ S) (n : ℕ) |
| 300 | {p : ℝ × ℝ} (hX : 0 ≤ p.1) (heta : |p.2| ≤ (commonWindow s hI).inner) : |
| 301 | (coefficients L B0 Z0 hI).stressTheta n p = SlowResidualMatching.thetaStress h C (asSlowProfiles s) n p ∧ |
| 302 | (coefficients L B0 Z0 hI).stressAxial n p = SlowResidualMatching.zStress h (asSlowProfiles s) n p := by |
| 303 | constructor |
| 304 | · change extendCoreZero _ _ _ p = _ |
| 305 | rw [extendCoreZero_eq _ L.inner_pos _ (fun _ he _ hr => thetaEven_zero L B0 Z0 n hr he) hX heta] |
| 306 | exact thetaEven_eq L B0 Z0 n (Real.sqrt_nonneg _) |
| 307 | · change extendCoreZero _ _ _ p = _ |
| 308 | rw [extendCoreZero_eq _ L.inner_pos _ (fun _ he _ hr => zEven_zero L B0 Z0 n hr he) hX heta] |
| 309 | exact zEven_eq L B0 Z0 n (Real.sqrt_nonneg _) |
| 310 | |
| 311 | theorem coefficients_stress_germ {S : Set ℝ} {h C rho inner : ℝ} {U : Set ℂ} |
| 312 | {base : Fin 5 → SimilarityProfile.InnerProfile} {s : Scheme S h C} |
| 313 | {A : SlowRecursion.LocalHierarchy rho U h C base} |
| 314 | (L : Localization s A inner) (B0 : BaseAgreement s A inner) |
| 315 | (Z0 : ZeroOrderSolved s inner) (hI : Icc (-1 : ℝ) 1 ⊆ S) (n : ℕ) |
| 316 | {p : ℝ × ℝ} (hX : 0 < p.1) (heta : |p.2| ≤ 1) : |
| 317 | (fun q => ((coefficients L B0 Z0 hI).stressTheta n q, (coefficients L B0 Z0 hI).stressAxial n q)) =ᶠ[𝓝 p] |
| 318 | (fun q => (SlowResidualMatching.thetaStress h C (asSlowProfiles s) n q, |
| 319 | SlowResidualMatching.zStress h (asSlowProfiles s) n q)) := by |
| 320 | have he : |p.2| < (commonWindow s hI).inner := heta.trans_lt (commonWindow s hI).one_lt_inner |
| 321 | filter_upwards [(isOpen_Ioi.prod isOpen_Ioo).mem_nhds ⟨hX, abs_lt.mp he⟩] with q hq |
| 322 | have hh := coefficients_stress_eq_window L B0 Z0 hI n hq.1.le (abs_lt.mpr hq.2).le |
| 323 | exact Prod.ext hh.1 hh.2 |
| 324 | |
| 325 | section Nominal |
| 326 | |
| 327 | variable {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) |
| 328 | |
| 329 | theorem nominal_angular_zero_eq {R eta : ℝ} (hR : 0 < R) (heta : eta ∈ nominalParameters W) : |
| 330 | angularHistory (nominalScheme W) 0 (R, eta) = W.E (R ^ 2 / 2, eta) := by |
| 331 | rw [angularHistory_eq _ _ heta, profiles_zero] |
| 332 | have hh := baseFields_angular (nominalDomain W) W.axis.normalization W.profiles |
| 333 | (nominalParameters_domain W) W.axis.normalization_pos.ne' (eta := eta) hR.le |
| 334 | change angularField W.axis.normalization |
| 335 | (baseFields (nominalDomain W) W.axis.normalization W.profiles (nominalParameters_domain W)).phi (R, eta) = _ |
| 336 | exact hh.trans (W.E_eq_sqrt_f (p := (R ^ 2 / 2, eta)) (by positivity)).symm |
| 337 | |
| 338 | theorem nominal_axial_mass_zero {eta : ℝ} (heta : eta ∈ nominalParameters W) : |
| 339 | SlowStressSupport.moment (nominalScheme W).B 1 (axialHistory (nominalScheme W) 0) eta = 0 := by |
| 340 | have he : SlowStressSupport.moment (nominalScheme W).B 1 (axialHistory (nominalScheme W) 0) eta = |
| 341 | PositiveOrderMoments.massHistory (nominalScheme W).base.axial ((nominalScheme W).B, eta) := by |
| 342 | apply intervalIntegral.integral_congr |
| 343 | intro R _ |
| 344 | dsimp only |
| 345 | rw [axialHistory_eq _ _ heta, profiles_zero] |
| 346 | simp only [pow_one, PositiveOrderMoments.weightedAxial] |
| 347 | rw [he] |
| 348 | change PositiveOrderMoments.massHistory |
| 349 | (baseFields (nominalDomain W) W.axis.normalization W.profiles (nominalParameters_domain W)).axial |
| 350 | (nominalOuterRadius W, eta) = 0 |
| 351 | rw [baseFields_mass _ _ _ _ (nominalOuterRadius_pos W).le heta] |
| 352 | exact nominal_mass_exterior W (nominalParameters_domain W) eta heta |
| 353 | |
| 354 | theorem nominal_first_axial_zero {p : ℝ × ℝ} (hX : nominalOuterX W ≤ p.1) : |
| 355 | (nominalCoefficients W).stressAxial 1 p = 0 := by |
| 356 | have hz := first_axial_exterior (nominalScheme W) (nominal_base_beta W) |
| 357 | (fun _ he => nominal_axial_mass_zero W he) |
| 358 | change extendCoreZero _ _ _ p = 0 |
| 359 | apply extendCoreZero_zero_right _ _ _ (nominalOuterRadius_pos W).le _ |
| 360 | (by simpa only [nominalOuterRadius_square] using hX) |
| 361 | intro eta heta R hR |
| 362 | rw [zEven_eq _ _ _ _ ((nominalOuterRadius_pos W).le.trans hR)] |
| 363 | exact hz eta heta R hR |
| 364 | |
| 365 | theorem nominal_first_angular_eq {p : ℝ × ℝ} (hX : nominalOuterX W < p.1) |
| 366 | (heta : p.2 ∈ Ioo (-1 : ℝ) 1) |
| 367 | (hfull : 1 / 2 < Real.log (p.1 / OutgoingDilation.switchRadius F W.controls.radius) + 1 / 5) : |
| 368 | (nominalCoefficients W).stressTheta 1 p = |
| 369 | SlowFirstOrderEdge.stressX (TerminalHistoryBridge.normalization F W.controls.radius) |
| 370 | F.data (TerminalHistoryBridge.shift F W.controls.radius) p := by |
| 371 | have hp : 0 < p.1 := (nominalOuterX_pos W).trans hX |
| 372 | have he : p.2 ∈ Icc (-1 : ℝ) 1 := ⟨heta.1.le, heta.2.le⟩ |
| 373 | rw [(nominalCoefficients_stress_eq W hp.le (abs_le.mpr he) 1).1, |
| 374 | SlowFirstOrderEdge.stressX_eq_radialStress _ _ _ hp] |
| 375 | change SlowStressSupport.stress 2 _ (Real.sqrt (2 * p.1), p.2) = _ |
| 376 | have hs : (Real.sqrt (2 * p.1)) ^ 2 / 2 = p.1 := by rw [Real.sq_sqrt (by positivity)]; ring |
| 377 | apply first_angular_eq_backward F W.heat.physical (nominalScheme W) |
| 378 | (fun _ ht => nominalParameters_contains W ⟨ht.1.le, ht.2.le⟩) (nominal_base_beta W) |
| 379 | (E := W.E) (L := nominalOuterX W) |
| 380 | · intro R hR eta heta |
| 381 | exact nominal_angular_zero_eq W hR (nominalParameters_contains W ⟨heta.1.le, heta.2.le⟩) |
| 382 | · intro eta heta X hX |
| 383 | exact (W.heat_agreement |
| 384 | (W.controls.heatJoin_lt_radius.trans ((nominalOuterX_gt_radius W).trans_le hX)) |
| 385 | ⟨heta.1.le, heta.2.le⟩).2.1 |
| 386 | · intro eta heta |
| 387 | rw [(W.five_moments ⟨heta.1.le, heta.2.le⟩).angular_zero, |
| 388 | W.heat.physical.renormalized_zero eta ⟨heta.1.le, heta.2.le⟩] |
| 389 | · change nominalOuterRadius W ≤ Real.sqrt (2 * p.1) |
| 390 | rw [← Real.sqrt_sq (nominalOuterRadius_pos W).le] |
| 391 | apply Real.sqrt_le_sqrt |
| 392 | have hb := nominalOuterRadius_square W |
| 393 | linarith |
| 394 | · exact heta |
| 395 | · rwa [hs] |
| 396 | · rwa [hs] |
| 397 | |
| 398 | end Nominal |
| 399 | |
| 400 | /-! ## Closed-parameter derivative tensors and the weighted collar estimate -/ |
| 401 | |
| 402 | theorem iteratedFDeriv_eq_closed_parameter {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 403 | {f g : (ℝ × ℝ) → V} {cut : ℝ} (hcut : 0 ≤ cut) |
| 404 | (hf : ∀ p : ℝ × ℝ, 0 < p.1 → ContDiffAt ℝ ∞ f p) |
| 405 | (hg : ∀ p : ℝ × ℝ, 0 < p.1 → ContDiffAt ℝ ∞ g p) |
| 406 | (he : EqOn f g (Ioi cut ×ˢ Ioo (-1 : ℝ) 1)) |
| 407 | (m : ℕ) {p : ℝ × ℝ} (hp : cut < p.1) (heta : p.2 ∈ Icc (-1 : ℝ) 1) : |
| 408 | iteratedFDeriv ℝ m f p = iteratedFDeriv ℝ m g p := by |
| 409 | have hj : EqOn (fun eta => iteratedFDeriv ℝ m f (p.1, eta)) |
| 410 | (fun eta => iteratedFDeriv ℝ m g (p.1, eta)) (Ioo (-1 : ℝ) 1) := by |
| 411 | intro eta heta |
| 412 | have hfg : f =ᶠ[𝓝 (p.1, eta)] g := by |
| 413 | filter_upwards [(isOpen_Ioi.prod isOpen_Ioo).mem_nhds |
| 414 | (show (p.1, eta) ∈ Ioi cut ×ˢ Ioo (-1 : ℝ) 1 from ⟨hp, heta⟩)] with q hq |
| 415 | exact he hq |
| 416 | have hh : f =ᶠ[𝓝[univ] (p.1, eta)] g := by simpa only [nhdsWithin_univ] using hfg |
| 417 | simpa only [iteratedFDerivWithin_univ] using |
| 418 | hh.iteratedFDerivWithin_eq (𝕜 := ℝ) hfg.self_of_nhds m |
| 419 | have hc (u : (ℝ × ℝ) → V) (hu : ∀ p : ℝ × ℝ, 0 < p.1 → ContDiffAt ℝ ∞ u p) : |
| 420 | Continuous (fun eta => iteratedFDeriv ℝ m u (p.1, eta)) := by |
| 421 | apply continuous_iff_continuousAt.mpr |
| 422 | intro eta |
| 423 | have hs : ContDiffAt ℝ ∞ (iteratedFDeriv ℝ m u) (p.1, eta) := |
| 424 | (hu (p.1, eta) (hcut.trans_lt hp)).iteratedFDeriv_right (WithTop.coe_le_coe.mpr le_top) |
| 425 | exact hs.continuousAt.comp (continuousAt_const.prodMk continuousAt_id) |
| 426 | apply hj.closure (hc f hf) (hc g hg) |
| 427 | simpa only [closure_Ioo (by norm_num : (-1 : ℝ) ≠ 1)] using heta |
| 428 | |
| 429 | noncomputable def terminalAmplitude {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) : ℝ := |
| 430 | TerminalHistoryBridge.normalization F W.controls.radius |
| 431 | |
| 432 | noncomputable def terminalShift {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) : ℝ := |
| 433 | TerminalHistoryBridge.shift F W.controls.radius |
| 434 | |
| 435 | noncomputable def terminalInner {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) : ℝ := |
| 436 | Real.exp (terminalShift W + 1) |
| 437 | |
| 438 | theorem terminalInner_pos {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) : |
| 439 | 0 < terminalInner W := Real.exp_pos _ |
| 440 | |
| 441 | theorem switch_lt_terminalInner {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) : |
| 442 | OutgoingDilation.switchRadius F W.controls.radius < terminalInner W := by |
| 443 | have hK := OutgoingDilation.switchRadius_pos F W.controls.radius W.controls.radius_pos |
| 444 | rw [terminalInner, ← Real.exp_log hK] |
| 445 | apply Real.exp_lt_exp.mpr |
| 446 | unfold terminalShift TerminalHistoryBridge.shift |
| 447 | linarith |
| 448 | |
| 449 | theorem terminalInner_full {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) |
| 450 | {X : ℝ} (hX : terminalInner W < X) : |
| 451 | nominalOuterX W < X ∧ |
| 452 | 1 / 2 < Real.log (X / OutgoingDilation.switchRadius F W.controls.radius) + 1 / 5 := by |
| 453 | have hK := OutgoingDilation.switchRadius_pos F W.controls.radius W.controls.radius_pos |
| 454 | have hp : 0 < X := (terminalInner_pos W).trans hX |
| 455 | refine ⟨(nominalOuterX_lt_switch W).trans ((switch_lt_terminalInner W).trans hX), ?_⟩ |
| 456 | have hl : terminalShift W + 1 < Real.log X := (Real.lt_log_iff_exp_lt hp).mpr hX |
| 457 | rw [Real.log_div hp.ne' hK.ne'] |
| 458 | unfold terminalShift TerminalHistoryBridge.shift at hl |
| 459 | linarith |
| 460 | |
| 461 | theorem nominal_first_pair_eq {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) : |
| 462 | EqOn (BaseResidual.stressPair (nominalCoefficients W) 1) |
| 463 | (fun p => (SlowFirstOrderEdge.stressX (terminalAmplitude W) F.data (terminalShift W) p, 0)) |
| 464 | (Ioi (terminalInner W) ×ˢ Ioo (-1 : ℝ) 1) := by |
| 465 | intro p hp |
| 466 | have hc := terminalInner_full W hp.1 |
| 467 | exact Prod.ext (nominal_first_angular_eq W hc.1 hp.2 hc.2) (nominal_first_axial_zero W hc.1.le) |
| 468 | |
| 469 | /-- The scalar terminal factor has the same entire derivative tensor as the |
| 470 | actual stress through both physical parameter endpoints. The proof uses |
| 471 | continuity of each tensor, without identifying different outside extensions. -/ |
| 472 | theorem edgeJets_of_interior_equality {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) |
| 473 | {f : (ℝ × ℝ) → ℝ × ℝ} (hf : ContDiff ℝ ∞ f) |
| 474 | (he : EqOn f |
| 475 | (fun p => (SlowFirstOrderEdge.stressX (terminalAmplitude W) F.data (terminalShift W) p, 0)) |
| 476 | (Ioi (terminalInner W) ×ˢ Ioo (-1 : ℝ) 1)) |
| 477 | {c left : ℝ} (hc : 0 < c) (hl : left < terminalShift W + 2) : |
| 478 | BaseResidual.PolynomialEdgeJets |
| 479 | (BaseResidual.outerWindow (Real.exp (terminalShift W + 3 - 1)) (terminalShift W + 3)) |
| 480 | (BaseResidual.activeZeta c left (terminalShift W + 3)) |
| 481 | (BaseResidual.activeDelta left (terminalShift W + 3)) f := by |
| 482 | have hs := BaseResidual.firstOrder_pair_outer_edgeJets |
| 483 | (terminalAmplitude W) F.data (terminalShift W) hc (by norm_num : (0 : ℝ) < 1) |
| 484 | (by linarith : left < terminalShift W + 3 - 1) |
| 485 | (F := fun p => (SlowFirstOrderEdge.stressX (terminalAmplitude W) F.data (terminalShift W) p, 0)) |
| 486 | (fun _ _ => Filter.EventuallyEq.rfl) |
| 487 | intro m |
| 488 | obtain ⟨A, hA, N, hb⟩ := hs m |
| 489 | refine ⟨A, hA, N, ?_⟩ |
| 490 | intro p hp |
| 491 | have hpi : terminalInner W < p.1 := by |
| 492 | apply lt_of_lt_of_le _ hp.1.1 |
| 493 | exact Real.exp_lt_exp.mpr (by linarith) |
| 494 | rw [iteratedFDeriv_eq_closed_parameter (terminalInner_pos W).le |
| 495 | (fun _ _ => hf.contDiffAt) |
| 496 | (fun q hq => ((SlowFirstOrderEdge.stressX_contDiffOn (terminalAmplitude W) F.data (terminalShift W)).contDiffAt |
| 497 | ((isOpen_lt continuous_const continuous_fst).mem_nhds hq)).prodMk contDiffAt_const) |
| 498 | he m hpi hp.2] |
| 499 | exact hb p hp |
| 500 | |
| 501 | theorem nominal_first_edgeJets {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) |
| 502 | {c left : ℝ} (hc : 0 < c) (hl : left < terminalShift W + 2) : |
| 503 | BaseResidual.PolynomialEdgeJets |
| 504 | (BaseResidual.outerWindow (Real.exp (terminalShift W + 3 - 1)) (terminalShift W + 3)) |
| 505 | (BaseResidual.activeZeta c left (terminalShift W + 3)) |
| 506 | (BaseResidual.activeDelta left (terminalShift W + 3)) |
| 507 | (BaseResidual.stressPair (nominalCoefficients W) 1) := by |
| 508 | have hs := nominalCoefficients_smooth W |
| 509 | exact edgeJets_of_interior_equality W ((hs.stressTheta 1).prodMk (hs.stressAxial 1)) |
| 510 | (nominal_first_pair_eq W) hc hl |
| 511 | |
| 512 | /-! ## Transfer through a finite modification with the restored angular row -/ |
| 513 | |
| 514 | theorem moment_axialOp_congr {S : Set ℝ} (hS : IsOpen S) {f g : SlowStressSupport.Field} |
| 515 | (hf : SlowStressSupport.Smooth S f) (hg : SlowStressSupport.Smooth S g) |
| 516 | (h b R : ℝ) (m : ℕ) |
| 517 | (hm : ∀ eta ∈ S, SlowStressSupport.moment R m f eta = SlowStressSupport.moment R m g eta) |
| 518 | (hb : ∀ eta ∈ S, f (R, eta) = g (R, eta)) {eta : ℝ} (heta : eta ∈ S) : |
| 519 | SlowStressSupport.moment R m (SlowStressSupport.axialOp h b f) eta = |
| 520 | SlowStressSupport.moment R m (SlowStressSupport.axialOp h b g) eta := by |
| 521 | have he : SlowStressSupport.moment R m f =ᶠ[𝓝 eta] SlowStressSupport.moment R m g := by |
| 522 | filter_upwards [hS.mem_nhds heta] with z hz |
| 523 | exact hm z hz |
| 524 | have hd := he.deriv_eq |
| 525 | rw [(SlowStressSupport.moment_hasDerivAt hS hf R m heta).deriv, |
| 526 | (SlowStressSupport.moment_hasDerivAt hS hg R m heta).deriv] at hd |
| 527 | rw [SlowStressSupport.moment_axialOp hS hf h b R m heta, |
| 528 | SlowStressSupport.moment_axialOp hS hg h b R m heta, hm eta heta, hb eta heta, hd] |
| 529 | |
| 530 | theorem moment_axialOp2_congr {S : Set ℝ} (hS : IsOpen S) {f g : SlowStressSupport.Field} |
| 531 | (hf : SlowStressSupport.Smooth S f) (hg : SlowStressSupport.Smooth S g) |
| 532 | (h b R : ℝ) (m : ℕ) (hL : ∀ eta ∈ S, PositiveAxisSystem.ell h eta ≠ 0) |
| 533 | (hm : ∀ eta ∈ S, SlowStressSupport.moment R m f eta = SlowStressSupport.moment R m g eta) |
| 534 | (hfg : ∀ eta ∈ S, f =ᶠ[𝓝 (R, eta)] g) {eta : ℝ} (heta : eta ∈ S) : |
| 535 | SlowStressSupport.moment R m (SlowStressSupport.axialOp2 h b f) eta = |
| 536 | SlowStressSupport.moment R m (SlowStressSupport.axialOp2 h b g) eta := by |
| 537 | apply moment_axialOp_congr hS (SlowStressSupport.smooth_axialOp hS hf h b hL) |
| 538 | (SlowStressSupport.smooth_axialOp hS hg h b hL) h (b - PositiveAxisSystem.dScale h) R m |
| 539 | · exact fun z hz => moment_axialOp_congr hS hf hg h b R m hm |
| 540 | (fun z hz => (hfg z hz).self_of_nhds) hz |
| 541 | · intro z hz |
| 542 | have he := hfg z hz |
| 543 | simp only [SlowStressSupport.axialOp, SlowStressSupport.de, SlowStressSupport.dr, |
| 544 | ProfileHistories.parameterPartial, ProfileHistories.radialPartial, he.fderiv_eq, he.self_of_nhds] |
| 545 | · exact heta |
| 546 | |
| 547 | theorem angular_moment_of_baseFields {S : Set ℝ} {h C : ℝ} {D : ProfileHistories.RadialDomain} |
| 548 | (d : Domain S h) (P : ProfileHistories.Profiles D) |
| 549 | (hD : ∀ X, 0 ≤ X → ∀ eta ∈ S, (X, eta) ∈ D.carrier) (hC : C ≠ 0) |
| 550 | {R eta : ℝ} (hR : 0 ≤ R) (heta : eta ∈ S) : |
| 551 | SlowStressSupport.moment R 2 (angularField C (baseFields d C P hD).phi) eta = |
| 552 | P.I (R ^ 2 / 2, eta) := by |
| 553 | let H := radialPullback P.H P.H_smooth hD |
| 554 | have he : SlowStressSupport.moment R 2 (angularField C (baseFields d C P hD).phi) eta = |
| 555 | PositiveOrderMoments.massHistory H (R, eta) := by |
| 556 | apply intervalIntegral.integral_congr |
| 557 | intro r _ |
| 558 | change r ^ 2 * (r / C * (C * P.f (r ^ 2 / 2, eta))) = r * (2 * (r ^ 2 / 2) * P.f (r ^ 2 / 2, eta)) |
| 559 | field_simp |
| 560 | rw [he] |
| 561 | apply massHistory_of_composition H P.H hR |
| 562 | · exact P.H_smooth.continuousOn.comp (continuous_id.prodMk continuous_const).continuousOn |
| 563 | (fun X hX => hD X hX.1 eta heta) |
| 564 | · exact fun _ _ => rfl |
| 565 | |
| 566 | theorem scheme_angular_moment_zero {S : Set ℝ} {h C R eta : ℝ} (s : Scheme S h C) |
| 567 | (heta : eta ∈ S) : |
| 568 | SlowStressSupport.moment R 2 (angularHistory s 0) eta = |
| 569 | SlowStressSupport.moment R 2 (angularField C s.base.phi) eta := by |
| 570 | apply intervalIntegral.integral_congr |
| 571 | intro r _ |
| 572 | dsimp only |
| 573 | rw [angularHistory_eq s 0 heta, profiles_zero] |
| 574 | |
| 575 | theorem history_equal_after {D D' : ProfileHistories.RadialDomain} |
| 576 | (P : ProfileHistories.Profiles D) (Q : ProfileHistories.Profiles D') {R X eta : ℝ} |
| 577 | (hR : 0 ≤ R) (hX : R ≤ X) |
| 578 | (hP : ∀ x ∈ Icc 0 X, (x, eta) ∈ D.carrier) |
| 579 | (hQ : ∀ x ∈ Icc 0 X, (x, eta) ∈ D'.carrier) |
| 580 | (hI : P.I (R, eta) = Q.I (R, eta)) |
| 581 | (he : ∀ x ∈ Icc R X, P.f (x, eta) = Q.f (x, eta)) : |
| 582 | P.I (X, eta) = Q.I (X, eta) := by |
| 583 | have hcP : ContinuousOn (fun x => P.H (x, eta)) (Icc 0 X) := |
| 584 | P.H_smooth.continuousOn.comp (continuous_id.prodMk continuous_const).continuousOn hP |
| 585 | have hcQ : ContinuousOn (fun x => Q.H (x, eta)) (Icc 0 X) := |
| 586 | Q.H_smooth.continuousOn.comp (continuous_id.prodMk continuous_const).continuousOn hQ |
| 587 | have iP0 := (hcP.mono (Icc_subset_Icc le_rfl hX)).intervalIntegrable_of_Icc (μ := volume) hR |
| 588 | have iQ0 := (hcQ.mono (Icc_subset_Icc le_rfl hX)).intervalIntegrable_of_Icc (μ := volume) hR |
| 589 | have iPR := (hcP.mono (Icc_subset_Icc hR le_rfl)).intervalIntegrable_of_Icc (μ := volume) hX |
| 590 | have iQR := (hcQ.mono (Icc_subset_Icc hR le_rfl)).intervalIntegrable_of_Icc (μ := volume) hX |
| 591 | have heI : (∫ x in R..X, P.H (x, eta)) = ∫ x in R..X, Q.H (x, eta) := by |
| 592 | apply intervalIntegral.integral_congr |
| 593 | intro x hx |
| 594 | rw [uIcc_of_le hX] at hx |
| 595 | simp only [ProfileHistories.Profiles.H, he x hx] |
| 596 | change (∫ x in (0 : ℝ)..R, P.H (x, eta)) = ∫ x in (0 : ℝ)..R, Q.H (x, eta) at hI |
| 597 | change (∫ x in (0 : ℝ)..X, P.H (x, eta)) = ∫ x in (0 : ℝ)..X, Q.H (x, eta) |
| 598 | rw [← intervalIntegral.integral_add_adjacent_intervals iP0 iPR, |
| 599 | ← intervalIntegral.integral_add_adjacent_intervals iQ0 iQR, hI, heI] |
| 600 | |
| 601 | section Modified |
| 602 | |
| 603 | variable {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) |
| 604 | {D : ProfileHistories.RadialDomain} (Q : ProfileHistories.Profiles D) |
| 605 | {S : Set ℝ} {lo hi : ℝ} (M : FiniteModification W Q S lo hi) |
| 606 | |
| 607 | include M |
| 608 | |
| 609 | theorem modified_angular_history |
| 610 | (hI : ∀ eta ∈ S, Q.I (nominalOuterX W, eta) = W.profiles.I (nominalOuterX W, eta)) |
| 611 | {X eta : ℝ} (hX : nominalOuterX W ≤ X) (heta : eta ∈ S) : |
| 612 | Q.I (X, eta) = W.profiles.I (X, eta) := by |
| 613 | apply history_equal_after Q W.profiles (nominalOuterX_pos W).le hX |
| 614 | (fun x hx => M.halfPlane x hx.1 eta heta) |
| 615 | (fun x hx => modified_original_domain W Q M x hx.1 eta heta) (hI eta heta) |
| 616 | intro x hx |
| 617 | exact (M.fields (x, eta) ((nominalOuterX_pos W).le.trans hx.1) heta |
| 618 | (Or.inr ((modification_before_outer W Q M).le.trans hx.1))).1 |
| 619 | |
| 620 | theorem modified_angular_moment_eq |
| 621 | (hI : ∀ eta ∈ S, Q.I (nominalOuterX W, eta) = W.profiles.I (nominalOuterX W, eta)) |
| 622 | {R eta : ℝ} (hR : nominalOuterRadius W ≤ R) (heta : eta ∈ S) : |
| 623 | SlowStressSupport.moment R 2 (angularHistory (modifiedScheme W Q M) 0) eta = |
| 624 | SlowStressSupport.moment R 2 (angularHistory (nominalScheme W) 0) eta := by |
| 625 | have hRp := (nominalOuterRadius_pos W).le.trans hR |
| 626 | rw [scheme_angular_moment_zero _ heta, scheme_angular_moment_zero _ (M.subset heta)] |
| 627 | change SlowStressSupport.moment R 2 |
| 628 | (angularField W.axis.normalization (baseFields (modifiedDomain W Q M) W.axis.normalization Q M.halfPlane).phi) eta = |
| 629 | SlowStressSupport.moment R 2 |
| 630 | (angularField W.axis.normalization (baseFields (nominalDomain W) W.axis.normalization W.profiles |
| 631 | (nominalParameters_domain W)).phi) eta |
| 632 | rw [angular_moment_of_baseFields _ _ _ W.axis.normalization_pos.ne' hRp heta, |
| 633 | angular_moment_of_baseFields _ _ _ W.axis.normalization_pos.ne' hRp (M.subset heta)] |
| 634 | apply modified_angular_history W Q M hI _ heta |
| 635 | have hb := nominalOuterRadius_square W |
| 636 | have hs := (sq_le_sq₀ (nominalOuterRadius_pos W).le hRp).mpr hR |
| 637 | linarith |
| 638 | |
| 639 | theorem modified_angular_zero_eq {R eta : ℝ} (hR : 0 ≤ R) (heta : eta ∈ S) : |
| 640 | angularHistory (modifiedScheme W Q M) 0 (R, eta) = Q.E (R ^ 2 / 2, eta) := by |
| 641 | rw [angularHistory_eq _ _ heta, profiles_zero] |
| 642 | exact baseFields_angular (modifiedDomain W Q M) W.axis.normalization Q M.halfPlane |
| 643 | W.axis.normalization_pos.ne' hR |
| 644 | |
| 645 | theorem modified_angular_zero_germ {R eta : ℝ} (hR : nominalOuterRadius W < R) (heta : eta ∈ S) : |
| 646 | angularHistory (modifiedScheme W Q M) 0 =ᶠ[𝓝 (R, eta)] angularHistory (nominalScheme W) 0 := by |
| 647 | filter_upwards [(isOpen_Ioi.prod M.isOpen).mem_nhds |
| 648 | (show (R, eta) ∈ Ioi (nominalOuterRadius W) ×ˢ S from ⟨hR, heta⟩)] with p hp |
| 649 | have hRp := (nominalOuterRadius_pos W).trans hp.1 |
| 650 | have hX : nominalOuterX W < p.1 ^ 2 / 2 := by |
| 651 | have hh := (sq_lt_sq₀ (nominalOuterRadius_pos W).le hRp.le).mpr hp.1 |
| 652 | rw [← nominalOuterRadius_square W] |
| 653 | linarith |
| 654 | rw [modified_angular_zero_eq W Q M hRp.le hp.2, |
| 655 | nominal_angular_zero_eq W hRp (M.subset hp.2)] |
| 656 | change Real.sqrt (2 * (p.1 ^ 2 / 2)) * Q.f (p.1 ^ 2 / 2, p.2) = _ |
| 657 | rw [(M.fields (p.1 ^ 2 / 2, p.2) (by positivity) hp.2 |
| 658 | (Or.inr ((modification_before_outer W Q M).le.trans hX.le))).1] |
| 659 | exact (W.E_eq_sqrt_f (p := (p.1 ^ 2 / 2, p.2)) (by positivity)).symm |
| 660 | |
| 661 | theorem modified_viscosity_moment_eq |
| 662 | (hI : ∀ eta ∈ S, Q.I (nominalOuterX W, eta) = W.profiles.I (nominalOuterX W, eta)) |
| 663 | {R eta : ℝ} (hR : nominalOuterRadius W < R) (heta : eta ∈ S) : |
| 664 | SlowStressSupport.moment R 2 (SlowStressSupport.axialOp2 F.data.h |
| 665 | (SlowStressSupport.orderExponent F.data.h 0) (angularHistory (modifiedScheme W Q M) 0)) eta = |
| 666 | SlowStressSupport.moment R 2 (SlowStressSupport.axialOp2 F.data.h |
| 667 | (SlowStressSupport.orderExponent F.data.h 0) (angularHistory (nominalScheme W) 0)) eta := by |
| 668 | apply moment_axialOp2_congr M.isOpen (angularHistory_smooth (modifiedScheme W Q M) 0) |
| 669 | ((angularHistory_smooth (nominalScheme W) 0).mono (prod_mono_right M.subset)) |
| 670 | F.data.h _ R 2 (modifiedDomain W Q M).denominator |
| 671 | (fun _ he => modified_angular_moment_eq W Q M hI hR.le he) |
| 672 | (fun _ he => modified_angular_zero_germ W Q M hR he) heta |
| 673 | |
| 674 | omit M in |
| 675 | theorem outerRadius_lt_sqrt {X : ℝ} (hX : nominalOuterX W < X) : |
| 676 | nominalOuterRadius W < Real.sqrt (2 * X) := by |
| 677 | have hp : 0 < X := (nominalOuterX_pos W).trans hX |
| 678 | have hs := Real.sq_sqrt (show 0 ≤ 2 * X by positivity) |
| 679 | have hb := nominalOuterRadius_square W |
| 680 | nlinarith [Real.sqrt_nonneg (2 * X), nominalOuterRadius_pos W] |
| 681 | |
| 682 | theorem modified_first_theta_eq_nominal |
| 683 | (hI : ∀ eta ∈ S, Q.I (nominalOuterX W, eta) = W.profiles.I (nominalOuterX W, eta)) |
| 684 | {p : ℝ × ℝ} (hX : nominalOuterX W < p.1) (heta : |p.2| ≤ 1) : |
| 685 | (modifiedCoefficients W Q M).stressTheta 1 p = (nominalCoefficients W).stressTheta 1 p := by |
| 686 | have hp := (nominalOuterX_pos W).trans hX |
| 687 | have hη := M.contains (abs_le.mp heta) |
| 688 | have hR := outerRadius_lt_sqrt W hX |
| 689 | have hm := (coefficients_stress_eq (modifiedLocalization W Q M) (modifiedBaseAgreement W Q M) |
| 690 | (modifiedZeroOrder W Q M) M.contains 1 hp.le heta).1 |
| 691 | change (modifiedCoefficients W Q M).stressTheta 1 p = _ at hm |
| 692 | rw [hm, |
| 693 | (nominalCoefficients_stress_eq W hp.le heta 1).1] |
| 694 | change SlowStressSupport.stress 2 _ (Real.sqrt (2 * p.1), p.2) = |
| 695 | SlowStressSupport.stress 2 _ (Real.sqrt (2 * p.1), p.2) |
| 696 | rw [first_angular_balance (modifiedScheme W Q M) rfl hR.le hη, |
| 697 | first_angular_balance (nominalScheme W) (nominal_base_beta W) hR.le (M.subset hη), |
| 698 | modified_viscosity_moment_eq W Q M hI hR hη] |
| 699 | |
| 700 | theorem modified_axial_mass_zero {eta : ℝ} (heta : eta ∈ S) : |
| 701 | SlowStressSupport.moment (modifiedScheme W Q M).B 1 (axialHistory (modifiedScheme W Q M) 0) eta = 0 := by |
| 702 | have he : SlowStressSupport.moment (modifiedScheme W Q M).B 1 (axialHistory (modifiedScheme W Q M) 0) eta = |
| 703 | PositiveOrderMoments.massHistory (modifiedScheme W Q M).base.axial ((modifiedScheme W Q M).B, eta) := by |
| 704 | apply intervalIntegral.integral_congr |
| 705 | intro R _ |
| 706 | dsimp only |
| 707 | rw [axialHistory_eq _ _ heta, profiles_zero] |
| 708 | simp only [pow_one, PositiveOrderMoments.weightedAxial] |
| 709 | rw [he] |
| 710 | change PositiveOrderMoments.massHistory |
| 711 | (baseFields (modifiedDomain W Q M) W.axis.normalization Q M.halfPlane).axial |
| 712 | (nominalOuterRadius W, eta) = 0 |
| 713 | rw [baseFields_mass _ _ _ _ (nominalOuterRadius_pos W).le heta] |
| 714 | exact modified_mass_zero W Q M eta heta |
| 715 | |
| 716 | theorem modified_first_axial_zero {p : ℝ × ℝ} (hX : nominalOuterX W ≤ p.1) : |
| 717 | (modifiedCoefficients W Q M).stressAxial 1 p = 0 := by |
| 718 | have hz := first_axial_exterior (modifiedScheme W Q M) rfl |
| 719 | (fun _ he => modified_axial_mass_zero W Q M he) |
| 720 | change extendCoreZero _ _ _ p = 0 |
| 721 | apply extendCoreZero_zero_right _ _ _ (nominalOuterRadius_pos W).le _ |
| 722 | (by simpa only [nominalOuterRadius_square] using hX) |
| 723 | intro eta heta R hR |
| 724 | rw [zEven_eq _ _ _ _ ((nominalOuterRadius_pos W).le.trans hR)] |
| 725 | exact hz eta heta R hR |
| 726 | |
| 727 | theorem modified_first_pair_eq |
| 728 | (hI : ∀ eta ∈ S, Q.I (nominalOuterX W, eta) = W.profiles.I (nominalOuterX W, eta)) : |
| 729 | EqOn (BaseResidual.stressPair (modifiedCoefficients W Q M) 1) |
| 730 | (fun p => (SlowFirstOrderEdge.stressX (terminalAmplitude W) F.data (terminalShift W) p, 0)) |
| 731 | (Ioi (terminalInner W) ×ˢ Ioo (-1 : ℝ) 1) := by |
| 732 | intro p hp |
| 733 | have hc := terminalInner_full W hp.1 |
| 734 | have he : |p.2| ≤ 1 := abs_le.mpr ⟨hp.2.1.le, hp.2.2.le⟩ |
| 735 | exact Prod.ext ((modified_first_theta_eq_nominal W Q M hI hc.1 he).trans |
| 736 | (nominal_first_angular_eq W hc.1 hp.2 hc.2)) (modified_first_axial_zero W Q M hc.1.le) |
| 737 | |
| 738 | theorem modified_first_edgeJets |
| 739 | (hI : ∀ eta ∈ S, Q.I (nominalOuterX W, eta) = W.profiles.I (nominalOuterX W, eta)) |
| 740 | {c left : ℝ} (hc : 0 < c) (hl : left < terminalShift W + 2) : |
| 741 | BaseResidual.PolynomialEdgeJets |
| 742 | (BaseResidual.outerWindow (Real.exp (terminalShift W + 3 - 1)) (terminalShift W + 3)) |
| 743 | (BaseResidual.activeZeta c left (terminalShift W + 3)) |
| 744 | (BaseResidual.activeDelta left (terminalShift W + 3)) |
| 745 | (BaseResidual.stressPair (modifiedCoefficients W Q M) 1) := by |
| 746 | have hs := modifiedCoefficients_smooth W Q M |
| 747 | exact edgeJets_of_interior_equality W ((hs.stressTheta 1).prodMk (hs.stressAxial 1)) |
| 748 | (modified_first_pair_eq W Q M hI) hc hl |
| 749 | |
| 750 | end Modified |
| 751 | |
| 752 | /-! ## Changing the hierarchy cutoff while retaining the same leading fields -/ |
| 753 | |
| 754 | theorem first_axial_balance {S : Set ℝ} {h C R : ℝ} (s : Scheme S h C) |
| 755 | (hbase : s.base.beta = betaFromU s.domain 0 s.base.axial) |
| 756 | (hR : s.B ≤ R) {eta : ℝ} (heta : eta ∈ S) : |
| 757 | SlowStressSupport.stress 1 (SlowResidualMatching.zDensity h (asSlowProfiles s) 1) (R, eta) = |
| 758 | SlowStressSupport.moment R 1 |
| 759 | (SlowStressSupport.axialOp2 h (SlowStressSupport.orderExponent h 0) (axialHistory s 0)) eta / R := by |
| 760 | have hRp := s.B_pos.trans_le hR |
| 761 | have haxis : ∀ eta ∈ S, SlowStressSupport.conv 1 (fluxHistory s) (axialHistory s) (0, eta) = 0 := by |
| 762 | intro z hz |
| 763 | simp only [SlowStressSupport.conv, fluxHistory_axis s _ hz, zero_mul, Finset.sum_const_zero] |
| 764 | have hflux : ∀ eta ∈ S, |
| 765 | SlowStressSupport.conv 1 (axialHistory s) (axialHistory s) (R, eta) + pressureField s 1 (R, eta) = 0 := by |
| 766 | intro z hz |
| 767 | rw [SlowStressSupport.exterior_conv_left (fun j _ => axialHistory_exterior s j) z hz R hR, |
| 768 | pressureField_exterior s (by decide : 0 < 1) z hz R hR, zero_add] |
| 769 | have hb := SlowStressSupport.axial_integral_balance s.domain.isOpen |
| 770 | (fun j _ => fluxHistory_smooth s j) (fun j _ => axialHistory_smooth s j) |
| 771 | (pressureField_smooth s 1) h R s.domain.denominator |
| 772 | (exterior_mono (axialHistory_exterior s 1) hR) |
| 773 | (fun j _ => exterior_mono (fluxHistory_exterior s j) hR) haxis |
| 774 | (fun _ he => (conservative_moments_at s (by decide : 0 < 1) hR he).1) |
| 775 | (fun _ he => (conservative_moments_at s (by decide : 0 < 1) hR he).2.2.2) hflux heta |
| 776 | have he : ProfileHistories.primitive (SlowResidualMatching.zDensity h (asSlowProfiles s) 1) (R, eta) = |
| 777 | SlowStressSupport.moment R 0 |
| 778 | (SlowStressSupport.axialDensity h 1 (fluxHistory s) (axialHistory s) (pressureField s 1)) eta := by |
| 779 | apply intervalIntegral.integral_congr |
| 780 | intro r _ |
| 781 | simp only [pow_zero, one_mul] |
| 782 | exact zDensity_eq s hbase (by decide : 0 < 1) ⟨mem_univ r, heta⟩ |
| 783 | rw [SlowStressSupport.stress_of_pos 1 _ hRp, he, hb] |
| 784 | simp |
| 785 | |
| 786 | theorem moment_axialOp2_eq_of_eqOn {S : Set ℝ} (hS : IsOpen S) {f g : SlowStressSupport.Field} |
| 787 | (hf : SlowStressSupport.Smooth S f) (hg : SlowStressSupport.Smooth S g) |
| 788 | (he : EqOn f g ((univ : Set ℝ) ×ˢ S)) |
| 789 | (h b R : ℝ) (m : ℕ) (hL : ∀ eta ∈ S, PositiveAxisSystem.ell h eta ≠ 0) |
| 790 | {eta : ℝ} (heta : eta ∈ S) : |
| 791 | SlowStressSupport.moment R m (SlowStressSupport.axialOp2 h b f) eta = |
| 792 | SlowStressSupport.moment R m (SlowStressSupport.axialOp2 h b g) eta := by |
| 793 | apply moment_axialOp2_congr hS hf hg h b R m hL |
| 794 | · intro z hz |
| 795 | apply intervalIntegral.integral_congr |
| 796 | intro r _ |
| 797 | dsimp only |
| 798 | rw [he ⟨mem_univ r, hz⟩] |
| 799 | · intro z hz |
| 800 | filter_upwards [(isOpen_univ.prod hS).mem_nhds |
| 801 | (show (R, z) ∈ (univ : Set ℝ) ×ˢ S from ⟨mem_univ R, hz⟩)] with p hp |
| 802 | exact he hp |
| 803 | · exact heta |
| 804 | |
| 805 | /-- The first stress outside both repair regions depends only on the actual |
| 806 | order-zero angular and axial fields. It is unchanged by moving the common |
| 807 | hierarchy cutoff or by rebuilding the positive-order repair. -/ |
| 808 | theorem first_stresses_eq_of_leading {S : Set ℝ} {h C C' R eta : ℝ} |
| 809 | (s : Scheme S h C) (t : Scheme S h C') |
| 810 | (hs : s.base.beta = betaFromU s.domain 0 s.base.axial) |
| 811 | (ht : t.base.beta = betaFromU t.domain 0 t.base.axial) |
| 812 | (he : EqOn (angularHistory s 0) (angularHistory t 0) ((univ : Set ℝ) ×ˢ S)) |
| 813 | (hu : EqOn (axialHistory s 0) (axialHistory t 0) ((univ : Set ℝ) ×ˢ S)) |
| 814 | (hRs : s.B ≤ R) (hRt : t.B ≤ R) (heta : eta ∈ S) : |
| 815 | SlowStressSupport.stress 2 (SlowResidualMatching.thetaDensity h C (asSlowProfiles s) 1) (R, eta) = |
| 816 | SlowStressSupport.stress 2 (SlowResidualMatching.thetaDensity h C' (asSlowProfiles t) 1) (R, eta) ∧ |
| 817 | SlowStressSupport.stress 1 (SlowResidualMatching.zDensity h (asSlowProfiles s) 1) (R, eta) = |
| 818 | SlowStressSupport.stress 1 (SlowResidualMatching.zDensity h (asSlowProfiles t) 1) (R, eta) := by |
| 819 | constructor |
| 820 | · rw [first_angular_balance s hs hRs heta, first_angular_balance t ht hRt heta, |
| 821 | moment_axialOp2_eq_of_eqOn s.domain.isOpen (angularHistory_smooth s 0) |
| 822 | (angularHistory_smooth t 0) he h _ R 2 s.domain.denominator heta] |
| 823 | · rw [first_axial_balance s hs hRs heta, first_axial_balance t ht hRt heta, |
| 824 | moment_axialOp2_eq_of_eqOn s.domain.isOpen (axialHistory_smooth s 0) |
| 825 | (axialHistory_smooth t 0) hu h _ R 1 s.domain.denominator heta] |
| 826 | |
| 827 | section Aligned |
| 828 | |
| 829 | variable {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) |
| 830 | {D : ProfileHistories.RadialDomain} (Q : ProfileHistories.Profiles D) |
| 831 | {S : Set ℝ} {lo hi : ℝ} (M : FiniteModification W Q S lo hi) |
| 832 | {C rho inner : ℝ} {U : Set ℂ} {base : Fin 5 → SimilarityProfile.InnerProfile} |
| 833 | {s : Scheme S F.data.h C} {A : SlowRecursion.LocalHierarchy rho U F.data.h C base} |
| 834 | (L : Localization s A inner) (B0 : BaseAgreement s A inner) (Z0 : ZeroOrderSolved s inner) |
| 835 | (hI : Icc (-1 : ℝ) 1 ⊆ S) |
| 836 | (hbase : s.base.beta = betaFromU s.domain 0 s.base.axial) |
| 837 | (hB : s.B ≤ nominalOuterRadius W) |
| 838 | (he : EqOn (angularHistory s 0) (angularHistory (modifiedScheme W Q M) 0) ((univ : Set ℝ) ×ˢ S)) |
| 839 | (hu : EqOn (axialHistory s 0) (axialHistory (modifiedScheme W Q M) 0) ((univ : Set ℝ) ×ˢ S)) |
| 840 | |
| 841 | include M hbase hB he hu |
| 842 | |
| 843 | theorem coefficients_first_pair_eq_modified {p : ℝ × ℝ} |
| 844 | (hp : nominalOuterX W < p.1) (heta : |p.2| ≤ 1) : |
| 845 | BaseResidual.stressPair (coefficients L B0 Z0 hI) 1 p = |
| 846 | BaseResidual.stressPair (modifiedCoefficients W Q M) 1 p := by |
| 847 | have hxp := (nominalOuterX_pos W).trans hp |
| 848 | have hR := (outerRadius_lt_sqrt W hp).le |
| 849 | have hh := first_stresses_eq_of_leading s (modifiedScheme W Q M) hbase rfl he hu |
| 850 | (hB.trans hR) hR (hI (abs_le.mp heta)) |
| 851 | have h1 := coefficients_stress_eq L B0 Z0 hI 1 hxp.le heta |
| 852 | have h2 := coefficients_stress_eq (modifiedLocalization W Q M) (modifiedBaseAgreement W Q M) |
| 853 | (modifiedZeroOrder W Q M) M.contains 1 hxp.le heta |
| 854 | exact Prod.ext (h1.1.trans (hh.1.trans h2.1.symm)) (h1.2.trans (hh.2.trans h2.2.symm)) |
| 855 | |
| 856 | theorem coefficients_first_edgeJets |
| 857 | (hrow : ∀ eta ∈ S, Q.I (nominalOuterX W, eta) = W.profiles.I (nominalOuterX W, eta)) |
| 858 | {c left : ℝ} (hc : 0 < c) (hl : left < terminalShift W + 2) : |
| 859 | BaseResidual.PolynomialEdgeJets |
| 860 | (BaseResidual.outerWindow (Real.exp (terminalShift W + 3 - 1)) (terminalShift W + 3)) |
| 861 | (BaseResidual.activeZeta c left (terminalShift W + 3)) |
| 862 | (BaseResidual.activeDelta left (terminalShift W + 3)) |
| 863 | (BaseResidual.stressPair (coefficients L B0 Z0 hI) 1) := by |
| 864 | have hf := coefficients_smooth L B0 Z0 hI |
| 865 | apply edgeJets_of_interior_equality W ((hf.stressTheta 1).prodMk (hf.stressAxial 1)) _ hc hl |
| 866 | intro p hp |
| 867 | exact (coefficients_first_pair_eq_modified W Q M L B0 Z0 hI hbase hB he hu |
| 868 | (terminalInner_full W hp.1).1 (abs_le.mpr ⟨hp.2.1.le, hp.2.2.le⟩)).trans |
| 869 | (modified_first_pair_eq W Q M hrow hp) |
| 870 | |
| 871 | end Aligned |
| 872 | |
| 873 | /-- Every ambient derivative tensor of the actual pair agrees with the |
| 874 | terminal factor on the closed physical parameter interval. -/ |
| 875 | theorem first_pair_jets_of_interior_equality {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) |
| 876 | {f : (ℝ × ℝ) → ℝ × ℝ} (hf : ContDiff ℝ ∞ f) |
| 877 | (he : EqOn f |
| 878 | (fun p => (SlowFirstOrderEdge.stressX (terminalAmplitude W) F.data (terminalShift W) p, 0)) |
| 879 | (Ioi (terminalInner W) ×ˢ Ioo (-1 : ℝ) 1)) |
| 880 | (m : ℕ) {p : ℝ × ℝ} (hp : terminalInner W < p.1) (heta : p.2 ∈ Icc (-1 : ℝ) 1) : |
| 881 | iteratedFDeriv ℝ m f p = iteratedFDeriv ℝ m |
| 882 | (fun q => (SlowFirstOrderEdge.stressX (terminalAmplitude W) F.data (terminalShift W) q, 0)) p := |
| 883 | iteratedFDeriv_eq_closed_parameter (terminalInner_pos W).le (fun _ _ => hf.contDiffAt) |
| 884 | (fun _ hq => ((SlowFirstOrderEdge.stressX_contDiffOn (terminalAmplitude W) F.data (terminalShift W)).contDiffAt |
| 885 | ((isOpen_lt continuous_const continuous_fst).mem_nhds hq)).prodMk contDiffAt_const) he m hp heta |
| 886 | |
| 887 | theorem first_pair_zero_right {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) |
| 888 | {f : (ℝ × ℝ) → ℝ × ℝ} (hf : ContDiff ℝ ∞ f) |
| 889 | (he : EqOn f |
| 890 | (fun p => (SlowFirstOrderEdge.stressX (terminalAmplitude W) F.data (terminalShift W) p, 0)) |
| 891 | (Ioi (terminalInner W) ×ˢ Ioo (-1 : ℝ) 1)) |
| 892 | {p : ℝ × ℝ} (hp : Real.exp (terminalShift W + 3) ≤ p.1) (heta : p.2 ∈ Icc (-1 : ℝ) 1) : |
| 893 | f p = 0 := by |
| 894 | have hi : terminalInner W < p.1 := |
| 895 | (Real.exp_lt_exp.mpr (by linarith : terminalShift W + 1 < terminalShift W + 3)).trans_le hp |
| 896 | have hj := first_pair_jets_of_interior_equality W hf he 0 hi heta |
| 897 | have heq := congrArg (fun T => T 0) hj |
| 898 | simp only [iteratedFDeriv_zero_apply] at heq |
| 899 | rw [heq] |
| 900 | rw [SlowFirstOrderEdge.stressX_zero_outside _ _ _ hp] |
| 901 | rfl |
| 902 | |
| 903 | /-- The tensor scale is the exact first slow-order scale |
| 904 | `q^(-A-1/2+2h)`, and the angular term is the actual physical backward |
| 905 | primitive of minus the second axial derivative. -/ |
| 906 | theorem physical_first_pair {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) |
| 907 | {f : (ℝ × ℝ) → ℝ × ℝ} |
| 908 | (he : EqOn f |
| 909 | (fun p => (SlowFirstOrderEdge.stressX (terminalAmplitude W) F.data (terminalShift W) p, 0)) |
| 910 | (Ioi (terminalInner W) ×ˢ Ioo (-1 : ℝ) 1)) |
| 911 | {t r z : ℝ} (ht : t < 1) (hr : 0 < r) |
| 912 | (hX : terminalInner W < SimilarityProfile.X F.data.h (TerminalStress.radiusPoint t r z)) : |
| 913 | SimilarityProfile.q F.data.h (TerminalStress.radiusPoint t r z) ^ |
| 914 | (-CoordinateAlgebra.A F.data.h - 1 / 2 + 2 * F.data.h) • |
| 915 | f (SimilarityProfile.inner F.data.h (TerminalStress.radiusPoint t r z)) = |
| 916 | (SlowFirstOrderEdge.physicalStress (terminalAmplitude W) F.data (terminalShift W) t z r, 0) := by |
| 917 | have heta := TerminalHistoryBridge.eta_mem_interior F.data.h_pos F.data.h_lt_half |
| 918 | (p := TerminalStress.radiusPoint t r z) ht |
| 919 | rw [he (show SimilarityProfile.inner F.data.h (TerminalStress.radiusPoint t r z) ∈ |
| 920 | Ioi (terminalInner W) ×ˢ Ioo (-1 : ℝ) 1 from ⟨hX, heta⟩)] |
| 921 | rw [SlowFirstOrderEdge.physicalStress_scaled (terminalAmplitude W) F.data (terminalShift W) ht hr] |
| 922 | apply Prod.ext |
| 923 | · rfl |
| 924 | · simp |
| 925 | |
| 926 | theorem nominal_first_jets {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) |
| 927 | (m : ℕ) {p : ℝ × ℝ} (hp : terminalInner W < p.1) (heta : p.2 ∈ Icc (-1 : ℝ) 1) : |
| 928 | iteratedFDeriv ℝ m (BaseResidual.stressPair (nominalCoefficients W) 1) p = |
| 929 | iteratedFDeriv ℝ m |
| 930 | (fun q => (SlowFirstOrderEdge.stressX (terminalAmplitude W) F.data (terminalShift W) q, 0)) p := by |
| 931 | have hs := nominalCoefficients_smooth W |
| 932 | exact first_pair_jets_of_interior_equality W ((hs.stressTheta 1).prodMk (hs.stressAxial 1)) |
| 933 | (nominal_first_pair_eq W) m hp heta |
| 934 | |
| 935 | /-- The actual constructed modulation witness supplies the additional |
| 936 | angular anchor, using the same profile and the same finite modification. -/ |
| 937 | theorem modulated_first_edgeJets {F : OutgoingProfile.Profile} {W : NominalProfile.Witness F} |
| 938 | {d : ModulatedProfileAssembly.LoopData W} (v : ModulatedProfileAssembly.Witness d) |
| 939 | {c left : ℝ} (hc : 0 < c) (hl : left < terminalShift W + 2) : |
| 940 | BaseResidual.PolynomialEdgeJets |
| 941 | (BaseResidual.outerWindow (Real.exp (terminalShift W + 3 - 1)) (terminalShift W + 3)) |
| 942 | (BaseResidual.activeZeta c left (terminalShift W + 3)) |
| 943 | (BaseResidual.activeDelta left (terminalShift W + 3)) |
| 944 | (BaseResidual.stressPair (modifiedCoefficients W v.profiles v.finiteModification) 1) := |
| 945 | modified_first_edgeJets W v.profiles v.finiteModification |
| 946 | (fun _ heta => v.slow_outer_angular heta) hc hl |
| 947 | |
| 948 | end NavierStokes.FirstOrderBaseEdge |