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.SupportedActualContext |
| 2 | import NavierStokes.MeanStateRegularity |
| 3 | import NavierStokes.RankStateBounds |
| 4 | |
| 5 | /-! |
| 6 | # Supported continuation through the literal mean stages |
| 7 | |
| 8 | All continuations retain whole radial and torus fibers. Temporal inverses, |
| 9 | stream derivatives, measured debts, and the rank kernels are constructed |
| 10 | before the outgoing primitive continuation is assembled. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | open Set Filter Function |
| 16 | open scoped Topology ContDiff BigOperators |
| 17 | |
| 18 | namespace NavierStokes.MeanStageContinuation |
| 19 | |
| 20 | abbrev Slow := TorusInverse.Plane |
| 21 | abbrev Point := PressureStream.Lift Slow |
| 22 | abbrev Scalar := MeanIncrementBounds.Field Point |
| 23 | |
| 24 | namespace Continuation |
| 25 | |
| 26 | variable {coord a b : ℝ} {W : OffplaneCorrectionExtensions.Window coord a b} |
| 27 | {f g : Point → ℝ} |
| 28 | |
| 29 | noncomputable def retarget (e : OffplaneCorrectionExtensions.SupportedContinuation W f) |
| 30 | (h : ∀ x, f x = g x) : OffplaneCorrectionExtensions.SupportedContinuation W g where |
| 31 | value := e.value |
| 32 | smooth := e.smooth |
| 33 | supported := e.supported |
| 34 | agrees := fun x hx => (e.agrees hx).trans (h x) |
| 35 | |
| 36 | noncomputable def zero : OffplaneCorrectionExtensions.SupportedContinuation W (fun _ => 0) where |
| 37 | value := fun _ => 0 |
| 38 | smooth := contDiffOn_const |
| 39 | supported := fun _ _ hn => (hn rfl).elim |
| 40 | agrees := fun _ _ => rfl |
| 41 | |
| 42 | noncomputable def add (e : OffplaneCorrectionExtensions.SupportedContinuation W f) |
| 43 | (d : OffplaneCorrectionExtensions.SupportedContinuation W g) : |
| 44 | OffplaneCorrectionExtensions.SupportedContinuation W (fun x => f x + g x) where |
| 45 | value := fun x => e.value x + d.value x |
| 46 | smooth := e.smooth.add d.smooth |
| 47 | supported := by |
| 48 | intro x hx hn |
| 49 | by_contra hr |
| 50 | have he : e.value x = 0 := by by_contra h; exact hr (e.supported x hx h) |
| 51 | have hd : d.value x = 0 := by by_contra h; exact hr (d.supported x hx h) |
| 52 | exact hn (by simp only [he, hd, add_zero]) |
| 53 | agrees := fun x hx => congrArg₂ (· + ·) (e.agrees hx) (d.agrees hx) |
| 54 | |
| 55 | noncomputable def neg (e : OffplaneCorrectionExtensions.SupportedContinuation W f) : |
| 56 | OffplaneCorrectionExtensions.SupportedContinuation W (fun x => -f x) where |
| 57 | value := fun x => -e.value x |
| 58 | smooth := e.smooth.neg |
| 59 | supported := fun x hx hn => e.supported x hx (neg_ne_zero.mp hn) |
| 60 | agrees := fun _ hx => congrArg Neg.neg (e.agrees hx) |
| 61 | |
| 62 | noncomputable def directional (hc : 0 < coord) (hc1 : coord < 1) |
| 63 | (e : OffplaneCorrectionExtensions.SupportedContinuation W f) (v : Point) : |
| 64 | OffplaneCorrectionExtensions.SupportedContinuation W (fun x => fderiv ℝ f x v) where |
| 65 | value := fun x => fderiv ℝ e.value x v |
| 66 | smooth := ((contDiffOn_infty_iff_fderiv_of_isOpen |
| 67 | (PhysicalMeanDomain.slowDomain_open W.isOpen)).mp e.smooth).2.clm_apply contDiffOn_const |
| 68 | supported := VariableGaugeMean.fderiv_apply_supportedGauge W.isOpen |
| 69 | (W.length_smooth hc hc1).continuousOn e.supported (fun _ => v) |
| 70 | agrees := fun _ hx => congrArg (fun L : Point →L[ℝ] ℝ => L v) |
| 71 | (e.agrees.eventuallyEq W.isOpen hx.1 hx.2).fderiv_eq |
| 72 | |
| 73 | /-- A coefficient need only be smooth at positive radii. The fixed lower |
| 74 | support bound gives a genuine zero germ through the axis. -/ |
| 75 | noncomputable def coefficientMul |
| 76 | (e : OffplaneCorrectionExtensions.SupportedContinuation W f) (c : Point → ℝ) |
| 77 | (hc : ContDiffOn ℝ ∞ c (LocalRankDefect.positiveDomain W.carrier)) : |
| 78 | OffplaneCorrectionExtensions.SupportedContinuation W (fun x => c x * f x) where |
| 79 | value := fun x => c x * e.value x |
| 80 | smooth := by |
| 81 | have he : LocalRankDefect.LocalShell W.lower W.upper W.carrier (fun _ => e.value) := |
| 82 | ⟨fun _ => e.smooth, fun _ => W.fixed_support e.supported⟩ |
| 83 | exact (he.coefficient_mul W.lower_pos W.isOpen (fun _ => hc)).smooth 0 |
| 84 | supported := fun x hx hn => e.supported x hx (right_ne_zero_of_mul hn) |
| 85 | agrees := fun x hx => congrArg (c x * ·) (e.agrees hx) |
| 86 | |
| 87 | noncomputable def radialPower (e : OffplaneCorrectionExtensions.SupportedContinuation W f) |
| 88 | (k : ℕ) : OffplaneCorrectionExtensions.SupportedContinuation W (fun x => x.1 ^ k * f x) := |
| 89 | coefficientMul e (fun x => x.1 ^ k) (contDiffOn_fst.pow k) |
| 90 | |
| 91 | noncomputable def divideRadius (e : OffplaneCorrectionExtensions.SupportedContinuation W f) : |
| 92 | OffplaneCorrectionExtensions.SupportedContinuation W (PressureStream.divideRadius f) where |
| 93 | value := PressureStream.divideRadius e.value |
| 94 | smooth := VariableGaugeMean.divideRadius_contDiffOn W.lower_pos W.isOpen e.smooth |
| 95 | (W.fixed_support e.supported) |
| 96 | supported := VariableGaugeMean.divideRadius_supportedGauge e.supported |
| 97 | agrees := fun x hx => congrArg (· / x.1) (e.agrees hx) |
| 98 | |
| 99 | noncomputable def streamBeta (hc : 0 < coord) (hc1 : coord < 1) |
| 100 | (e : OffplaneCorrectionExtensions.SupportedContinuation W f) (w : Slow × Slow) : |
| 101 | OffplaneCorrectionExtensions.SupportedContinuation W (PressureStream.streamBeta w f) := |
| 102 | neg (directional hc hc1 e (0, w)) |
| 103 | |
| 104 | theorem graphDr_split (d M : ℝ) (v : Slow) (f : Point → ℝ) (x : Point) : |
| 105 | PressureStream.graphDr (PressureStream.physicalSpeed d M) ((0 : Slow), v) f x = |
| 106 | fderiv ℝ f x (1, 0) + PressureStream.physicalSpeed d M x.1 * |
| 107 | fderiv ℝ f x (0, (0, v)) := by |
| 108 | change fderiv ℝ f x (1, _ • ((0 : Slow), v)) = _ |
| 109 | rw [show (((1 : ℝ), PressureStream.physicalSpeed d M x.1 • ((0 : Slow), v)) : Point) = |
| 110 | (1, (0, (0 : Slow))) + PressureStream.physicalSpeed d M x.1 • (0, (0, v)) by simp] |
| 111 | simp only [map_add, map_smul, smul_eq_mul] |
| 112 | rfl |
| 113 | |
| 114 | noncomputable def streamGamma (hc : 0 < coord) (hc1 : coord < 1) |
| 115 | (e : OffplaneCorrectionExtensions.SupportedContinuation W f) (d M : ℝ) (v : Slow) : |
| 116 | OffplaneCorrectionExtensions.SupportedContinuation W |
| 117 | (PressureStream.streamGamma (PressureStream.physicalSpeed d M) ((0 : Slow), v) f) := |
| 118 | retarget (add (add (directional hc hc1 e (1, 0)) |
| 119 | (coefficientMul (directional hc hc1 e (0, (0, v))) |
| 120 | (fun x => PressureStream.physicalSpeed d M x.1) |
| 121 | (fun x hx => ((PressureStream.physicalSpeed_smooth d M hx.1.ne').comp x |
| 122 | contDiffAt_fst).contDiffWithinAt))) (divideRadius e)) |
| 123 | (fun x => by rw [PressureStream.streamGamma, graphDr_split]) |
| 124 | |
| 125 | theorem streamGamma_value (hc : 0 < coord) (hc1 : coord < 1) |
| 126 | (e : OffplaneCorrectionExtensions.SupportedContinuation W f) (d M : ℝ) (v : Slow) : |
| 127 | (streamGamma hc hc1 e d M v).value = |
| 128 | PressureStream.streamGamma (PressureStream.physicalSpeed d M) ((0 : Slow), v) e.value := by |
| 129 | funext x |
| 130 | change _ + PressureStream.divideRadius e.value x = _ |
| 131 | rw [PressureStream.streamGamma, graphDr_split] |
| 132 | rfl |
| 133 | |
| 134 | end Continuation |
| 135 | |
| 136 | /-! ## Torus periodicity is propagated from primitive fields -/ |
| 137 | |
| 138 | open MeanStateRegularity |
| 139 | |
| 140 | namespace PeriodicAlgebra |
| 141 | |
| 142 | variable {U : Set Slow} {f : Scalar} {o : MeanIncrementBounds.Operators Point} |
| 143 | |
| 144 | theorem dr (hf : Periodic U f) (hU : IsOpen U) |
| 145 | (hp : Periodic U (fun _ => o.radialProfile)) : Periodic U (o.dr f) := |
| 146 | (hf.directional hU o.eR).add ((hp.mul (hf.directional hU o.vR)).band_mul o.radialFrequency) |
| 147 | |
| 148 | theorem dz (hf : Periodic U f) (hU : IsOpen U) (o : MeanIncrementBounds.Operators Point) : |
| 149 | Periodic U (o.dz f) := (hf.directional hU o.eZ).band_mul o.epsilon |
| 150 | |
| 151 | theorem time (hf : Periodic U f) (hU : IsOpen U) (o : MeanIncrementBounds.Operators Point) : |
| 152 | Periodic U (o.time f) := |
| 153 | ((hf.directional hU o.eT).band_mul o.epsilon).neg.add |
| 154 | ((hf.directional hU o.vT).band_mul o.fastCoefficient) |
| 155 | |
| 156 | theorem radialDiv (hf : Periodic U f) (hU : IsOpen U) |
| 157 | (hp : Periodic U (fun _ => o.radialProfile)) (hr : Periodic U o.invRadius) (c : ℝ) : |
| 158 | Periodic U (o.radialDiv c f) := (dr hf hU hp).add ((hr.mul hf).smul c) |
| 159 | |
| 160 | theorem viscosity (hf : Periodic U f) (hU : IsOpen U) |
| 161 | (hp : Periodic U (fun _ => o.radialProfile)) (hr : Periodic U o.invRadius) (c : ℝ) : |
| 162 | Periodic U (o.viscosity c f) := |
| 163 | ((((dr (dr hf hU hp) hU hp).add (hr.mul (dr hf hU hp))).add |
| 164 | (dz (dz hf hU o) hU o)).sub ((hr.mul (hr.mul hf)).smul c)).band_mul o.epsilon |
| 165 | |
| 166 | theorem thetaResidual {base m : MeanIncrementBounds.Triple Point} |
| 167 | (hb : PeriodicTriple U base) (hm : PeriodicTriple U m) |
| 168 | {A : Fin 3 → Fin 3 → Scalar} (hA : ∀ i j, Periodic U (A i j)) |
| 169 | {T : Scalar} (hT : Periodic U T) (hU : IsOpen U) |
| 170 | (hp : Periodic U (fun _ => o.radialProfile)) (hr : Periodic U o.invRadius) : |
| 171 | Periodic U (MeanIncrementBounds.thetaResidual o base m A T) := |
| 172 | (((time hm.angular hU o).add |
| 173 | (radialDiv ((((hb.radial.mul hm.angular).add (hm.radial.mul hb.angular)).add |
| 174 | (hm.radial.mul hm.angular)).add (hA 0 1)) hU hp hr 2)).add |
| 175 | (dz ((((hb.axial.mul hm.angular).add (hb.angular.mul hm.axial)).add |
| 176 | (hm.axial.mul hm.angular)).add (hA 2 1)) hU o)).sub |
| 177 | (viscosity hm.angular hU hp hr 1) |>.sub (radialDiv hT hU hp hr 2) |
| 178 | |
| 179 | theorem axialResidual {base m : MeanIncrementBounds.Triple Point} |
| 180 | (hb : PeriodicTriple U base) (hm : PeriodicTriple U m) |
| 181 | {A : Fin 3 → Fin 3 → Scalar} (hA : ∀ i j, Periodic U (A i j)) |
| 182 | {p T : Scalar} (hP : Periodic U p) (hT : Periodic U T) (hU : IsOpen U) |
| 183 | (hp : Periodic U (fun _ => o.radialProfile)) (hr : Periodic U o.invRadius) : |
| 184 | Periodic U (MeanIncrementBounds.axialResidual o base m A p T) := |
| 185 | (((time hm.axial hU o).add |
| 186 | (radialDiv ((((hb.radial.mul hm.axial).add (hm.radial.mul hb.axial)).add |
| 187 | (hm.radial.mul hm.axial)).add (hA 0 2)) hU hp hr 1)).add |
| 188 | (dz (((((hb.axial.mul hm.axial).smul 2).add (hm.axial.mul hm.axial)).add |
| 189 | (hA 2 2)).add hP) hU o)).sub |
| 190 | (viscosity hm.axial hU hp hr 0) |>.sub (radialDiv hT hU hp hr 1) |
| 191 | |
| 192 | theorem gr {base m : MeanIncrementBounds.Triple Point} |
| 193 | (hb : PeriodicTriple U base) (hm : PeriodicTriple U m) |
| 194 | {A : Fin 3 → Fin 3 → Scalar} (hA : ∀ i j, Periodic U (A i j)) (hU : IsOpen U) |
| 195 | (hp : Periodic U (fun _ => o.radialProfile)) (hr : Periodic U o.invRadius) : |
| 196 | Periodic U (MeanIncrementBounds.gr o base m A) := |
| 197 | (((((time hm.radial hU o).add |
| 198 | (radialDiv ((((hb.radial.mul hm.radial).smul 2).add (hm.radial.mul hm.radial)).add |
| 199 | (hA 0 0)) hU hp hr 1)).add |
| 200 | (dz ((((hb.radial.mul hm.axial).add (hm.radial.mul hb.axial)).add |
| 201 | (hm.radial.mul hm.axial)).add (hA 2 0)) hU o)).sub |
| 202 | (hr.mul ((((hb.angular.mul hm.angular).smul 2).add (hm.angular.mul hm.angular)).add |
| 203 | (hA 1 1)))).sub (viscosity hm.radial hU hp hr 1)).neg |
| 204 | |
| 205 | end PeriodicAlgebra |
| 206 | |
| 207 | /-- The required torus symmetry belongs to the incoming primitive |
| 208 | continuations. Residual symmetry is a consequence below. -/ |
| 209 | structure PeriodicPrimitives {coord : ℝ} {P : SignedStressPrimitive.Patch} |
| 210 | {W : OffplaneCorrectionExtensions.Window coord P.a P.b} {u : CorrectionState.State Point} |
| 211 | (d : SignedRequestContinuation.Primitives P W u) : Prop where |
| 212 | mean : PeriodicTriple W.carrier d.state.mean |
| 213 | pressure : Periodic W.carrier d.state.pressure |
| 214 | oscillation : ∀ n i θ, PhysicalMeanDomain.PeriodicOn W.carrier |
| 215 | (fun x => d.oscillation n (x, θ) i) |
| 216 | |
| 217 | theorem PeriodicPrimitives.covariance {coord : ℝ} {P : SignedStressPrimitive.Patch} |
| 218 | {W : OffplaneCorrectionExtensions.Window coord P.a P.b} {u : CorrectionState.State Point} |
| 219 | {d : SignedRequestContinuation.Primitives P W u} (hp : PeriodicPrimitives d) (i j : Fin 3) : |
| 220 | Periodic W.carrier (d.state.covariance i j) := by |
| 221 | intro n R s hs Y k |
| 222 | apply congrArg (· / (2 * Real.pi)) |
| 223 | apply intervalIntegral.integral_congr |
| 224 | intro θ _ |
| 225 | exact congrArg₂ (· * ·) (hp.oscillation n i θ R s hs Y k) |
| 226 | (hp.oscillation n j θ R s hs Y k) |
| 227 | |
| 228 | theorem streamBeta_periodic {U : Set Slow} (hU : IsOpen U) {f : Point → ℝ} |
| 229 | (hf : PhysicalMeanDomain.PeriodicOn U f) (w : Slow × Slow) : |
| 230 | PhysicalMeanDomain.PeriodicOn U (PressureStream.streamBeta w f) := |
| 231 | (Periodic.neg (Periodic.directional (f := fun _ => f) (fun _ => hf) hU (0, w))) 0 |
| 232 | |
| 233 | theorem streamGamma_periodic {U : Set Slow} (hU : IsOpen U) {f : Point → ℝ} |
| 234 | (hf : PhysicalMeanDomain.PeriodicOn U f) (d M : ℝ) (v : Slow) : |
| 235 | PhysicalMeanDomain.PeriodicOn U |
| 236 | (PressureStream.streamGamma (PressureStream.physicalSpeed d M) ((0 : Slow), v) f) := by |
| 237 | have h0 := Periodic.directional (f := fun _ => f) (fun _ => hf) hU (1, (0 : Slow × Slow)) |
| 238 | have h1 := Periodic.directional (f := fun _ => f) (fun _ => hf) hU (0, ((0 : Slow), v)) |
| 239 | intro R s hs Y k |
| 240 | simp only [PressureStream.streamGamma, Continuation.graphDr_split, PressureStream.divideRadius] |
| 241 | have e0 := h0 0 R s hs Y k |
| 242 | have e1 := h1 0 R s hs Y k |
| 243 | have ef := hf R s hs Y k |
| 244 | dsimp only at e0 e1 ef |
| 245 | rw [e0, e1, ef] |
| 246 | |
| 247 | structure IncrementContinuations {coord : ℝ} (P : SignedStressPrimitive.Patch) |
| 248 | (W : OffplaneCorrectionExtensions.Window coord P.a P.b) (m : MeanIncrementBounds.Triple Point) where |
| 249 | radial : ∀ n, OffplaneCorrectionExtensions.SupportedContinuation W (m.radial n) |
| 250 | angular : ∀ n, OffplaneCorrectionExtensions.SupportedContinuation W (m.angular n) |
| 251 | axial : ∀ n, OffplaneCorrectionExtensions.SupportedContinuation W (m.axial n) |
| 252 | |
| 253 | noncomputable def IncrementContinuations.value {coord : ℝ} {P : SignedStressPrimitive.Patch} |
| 254 | {W : OffplaneCorrectionExtensions.Window coord P.a P.b} {m : MeanIncrementBounds.Triple Point} |
| 255 | (e : IncrementContinuations P W m) : MeanIncrementBounds.Triple Point := |
| 256 | ⟨fun n => (e.radial n).value, fun n => (e.angular n).value, fun n => (e.axial n).value⟩ |
| 257 | |
| 258 | /-- Literal addition of the continued mean increments; the oscillation and |
| 259 | the previous pressure are retained until pressure reconstruction. -/ |
| 260 | noncomputable def addPrimitives {coord : ℝ} {P : SignedStressPrimitive.Patch} |
| 261 | {W : OffplaneCorrectionExtensions.Window coord P.a P.b} {u : CorrectionState.State Point} |
| 262 | (d : SignedRequestContinuation.Primitives P W u) {m : MeanIncrementBounds.Triple Point} |
| 263 | (e : IncrementContinuations P W m) (err : CorrectionState.ExcludedErrors Point) : |
| 264 | SignedRequestContinuation.Primitives P W (u.addIncrement m 0 0 0 err) where |
| 265 | radial := fun n => Continuation.add (d.radial n) (e.radial n) |
| 266 | angular := fun n => Continuation.add (d.angular n) (e.angular n) |
| 267 | axial := fun n => Continuation.add (d.axial n) (e.axial n) |
| 268 | pressure := fun n => Continuation.retarget (d.pressure n) (fun _ => by |
| 269 | simp only [CorrectionState.State.addIncrement, add_zero]) |
| 270 | oscillation := d.oscillation |
| 271 | oscillation_smooth := d.oscillation_smooth |
| 272 | oscillation_supported := d.oscillation_supported |
| 273 | oscillation_agrees := fun n i θ x hx => by |
| 274 | simpa only [CorrectionState.State.addIncrement, Pi.add_apply, Pi.zero_apply, add_zero] |
| 275 | using d.oscillation_agrees n i θ hx |
| 276 | |
| 277 | theorem addPrimitives_periodic {coord : ℝ} {P : SignedStressPrimitive.Patch} |
| 278 | {W : OffplaneCorrectionExtensions.Window coord P.a P.b} {u : CorrectionState.State Point} |
| 279 | {d : SignedRequestContinuation.Primitives P W u} (hd : PeriodicPrimitives d) |
| 280 | {m : MeanIncrementBounds.Triple Point} (e : IncrementContinuations P W m) |
| 281 | (he : PeriodicTriple W.carrier e.value) (err : CorrectionState.ExcludedErrors Point) : |
| 282 | PeriodicPrimitives (addPrimitives d e err) := |
| 283 | ⟨⟨hd.mean.radial.add he.radial, hd.mean.angular.add he.angular, hd.mean.axial.add he.axial⟩, |
| 284 | hd.pressure, hd.oscillation⟩ |
| 285 | |
| 286 | section Actual |
| 287 | |
| 288 | variable {F : OutgoingProfile.Profile} {W₀ : NominalProfile.Witness F} |
| 289 | (H : NominalConeAssembly.Certificate W₀) {ld : ModulatedProfileAssembly.LoopData W₀} |
| 290 | (v : ModulatedProfileAssembly.Witness ld) (upper : ℝ) (B : ℕ) (index : ℕ → ℕ) |
| 291 | {P : SignedStressPrimitive.Patch} |
| 292 | (W : OffplaneCorrectionExtensions.Window (2 * F.data.h) P.a P.b) |
| 293 | |
| 294 | theorem actual_base_periodic : PeriodicTriple W.carrier |
| 295 | (SupportedActualContext.context H v upper B index).base := |
| 296 | ⟨fun _ _ _ _ _ _ => rfl, fun _ _ _ _ _ _ => rfl, fun _ _ _ _ _ _ => rfl⟩ |
| 297 | |
| 298 | theorem actual_profile_periodic : Periodic W.carrier |
| 299 | (fun _ => (SupportedActualContext.context H v upper B index).operators.radialProfile) := |
| 300 | fun _ _ _ _ _ _ => rfl |
| 301 | |
| 302 | theorem actual_invRadius_periodic : Periodic W.carrier |
| 303 | (SupportedActualContext.context H v upper B index).operators.invRadius := |
| 304 | fun _ _ _ _ _ _ => rfl |
| 305 | |
| 306 | theorem actual_virtual_periodic : |
| 307 | Periodic W.carrier (SupportedActualContext.context H v upper B index).virtualTheta ∧ |
| 308 | Periodic W.carrier (SupportedActualContext.context H v upper B index).virtualAxial := |
| 309 | ⟨fun _ _ _ _ _ _ => rfl, fun _ _ _ _ _ _ => rfl⟩ |
| 310 | |
| 311 | variable {u : CorrectionState.State Point} (d : SignedRequestContinuation.Primitives P W u) |
| 312 | |
| 313 | theorem radialSource_periodic (hp : PeriodicPrimitives d) : |
| 314 | Periodic W.carrier (fun n => (SignedRequestContinuation.radialSource H v upper B index W d n).value) := |
| 315 | PeriodicAlgebra.gr (actual_base_periodic H v upper B index W) hp.mean hp.covariance W.isOpen |
| 316 | (actual_profile_periodic H v upper B index W) (actual_invRadius_periodic H v upper B index W) |
| 317 | |
| 318 | theorem reconstructPrimitives_periodic (hp : PeriodicPrimitives d) |
| 319 | (g : VariableGaugeMean.GaugeData Slow) |
| 320 | (ha : g.radial.inner = P.a) (hb : g.radial.outer = P.b) |
| 321 | (hell : ∀ n, g.length n = VariableGaugeMean.qLength (2 * F.data.h)) (he : 0 < g.radial.exponent) : |
| 322 | PeriodicPrimitives (SignedRequestContinuation.reconstructPrimitives H v upper B index W d g ha hb hell he) := by |
| 323 | refine ⟨hp.mean, ?_, hp.oscillation⟩ |
| 324 | intro n |
| 325 | exact VariableGaugeMean.meanPressure_periodicOn P.a_lt_b g.radial.exponent |
| 326 | (g.radial.frequency n) (OffplaneCorrectionExtensions.stableLength (2 * F.data.h)) |
| 327 | g.radial.radialDirection (radialSource_periodic H v upper B index W d hp n) |
| 328 | |
| 329 | variable (hleft : P.a ≤ PrimaryTargetBounds.leftRadius W₀) |
| 330 | (hright : PrimaryTargetBounds.rightRadius W₀ ≤ P.b) |
| 331 | |
| 332 | theorem thetaSource_periodic (hp : PeriodicPrimitives d) : |
| 333 | Periodic W.carrier (fun n => |
| 334 | (SupportedActualContext.thetaSource H v upper B index W hleft hright d n).value) := |
| 335 | PeriodicAlgebra.thetaResidual (actual_base_periodic H v upper B index W) hp.mean hp.covariance |
| 336 | (actual_virtual_periodic H v upper B index W).1 W.isOpen |
| 337 | (actual_profile_periodic H v upper B index W) (actual_invRadius_periodic H v upper B index W) |
| 338 | |
| 339 | theorem axialSource_periodic (hp : PeriodicPrimitives d) : |
| 340 | Periodic W.carrier (fun n => |
| 341 | (SupportedActualContext.axialSource H v upper B index W hleft hright d n).value) := |
| 342 | PeriodicAlgebra.axialResidual (actual_base_periodic H v upper B index W) hp.mean hp.covariance |
| 343 | hp.pressure (actual_virtual_periodic H v upper B index W).2 W.isOpen |
| 344 | (actual_profile_periodic H v upper B index W) (actual_invRadius_periodic H v upper B index W) |
| 345 | |
| 346 | noncomputable def temporalAngular (hp : PeriodicPrimitives d) (n : ℕ) : |
| 347 | OffplaneCorrectionExtensions.SupportedContinuation W |
| 348 | (MeanChartCompatibility.temporalAtIndex F.data.h n (index n) |
| 349 | (u.thetaResidual (CommonBaseContext.context H v upper B index) n)) := |
| 350 | (SupportedActualContext.thetaSource H v upper B index W hleft hright d n).temporal |
| 351 | F.data.h n (index n) (thetaSource_periodic H v upper B index W d hleft hright hp n) |
| 352 | |
| 353 | noncomputable def temporalDesiredAxial (hp : PeriodicPrimitives d) (n : ℕ) : |
| 354 | OffplaneCorrectionExtensions.SupportedContinuation W |
| 355 | (MeanChartCompatibility.temporalAtIndex F.data.h n (index n) |
| 356 | (u.axialResidual (CommonBaseContext.context H v upper B index) n)) := |
| 357 | (SupportedActualContext.axialSource H v upper B index W hleft hright d n).temporal |
| 358 | F.data.h n (index n) (axialSource_periodic H v upper B index W d hleft hright hp n) |
| 359 | |
| 360 | variable (g : VariableGaugeMean.GaugeData Slow) |
| 361 | (ha : g.radial.inner = P.a) (hb : g.radial.outer = P.b) |
| 362 | (hell : ∀ n, g.length n = VariableGaugeMean.qLength (2 * F.data.h)) |
| 363 | (he : 0 < g.radial.exponent) |
| 364 | |
| 365 | noncomputable def temporalPotential (hp : PeriodicPrimitives d) (n : ℕ) : |
| 366 | OffplaneCorrectionExtensions.SupportedContinuation W |
| 367 | (VariableGaugeMean.temporalPotential g F.data.h index |
| 368 | (CommonBaseContext.context H v upper B index) u n) := |
| 369 | Continuation.retarget |
| 370 | ((temporalDesiredAxial H v upper B index W d hleft hright hp n).stream |
| 371 | (by linarith [F.data.h_pos]) (by linarith [F.data.h_lt_half]) P.a_pos P.a_lt_b he |
| 372 | (g.radial.frequency n) g.radial.radialDirection) |
| 373 | (fun _ => by simp only [VariableGaugeMean.temporalPotential, ha, hb, hell]) |
| 374 | |
| 375 | noncomputable def temporalIncrement (hp : PeriodicPrimitives d) (axial : Slow × Slow) : |
| 376 | IncrementContinuations P W (VariableGaugeMean.temporalIncrementState g F.data.h index axial |
| 377 | (CommonBaseContext.context H v upper B index) u) where |
| 378 | radial := fun n => Continuation.streamBeta |
| 379 | (by linarith [F.data.h_pos]) (by linarith [F.data.h_lt_half]) |
| 380 | (temporalPotential H v upper B index W d hleft hright g ha hb hell he hp n) |
| 381 | ((CommonBaseContext.context H v upper B index).operators.epsilon n • axial) |
| 382 | angular := temporalAngular H v upper B index W d hleft hright hp |
| 383 | axial := fun n => Continuation.streamGamma |
| 384 | (by linarith [F.data.h_pos]) (by linarith [F.data.h_lt_half]) |
| 385 | (temporalPotential H v upper B index W d hleft hright g ha hb hell he hp n) |
| 386 | g.radial.exponent (g.radial.frequency n) g.radial.radialDirection |
| 387 | |
| 388 | /-- The actual temporal stage, including its retained exact alias and |
| 389 | new reconstructed pressure, has a derived primitive continuation. -/ |
| 390 | noncomputable def temporalPrimitives (hp : PeriodicPrimitives d) (axial : Slow × Slow) : |
| 391 | SignedRequestContinuation.Primitives P W |
| 392 | (VariableGaugeMean.temporalStageState g F.data.h index axial |
| 393 | (CommonBaseContext.context H v upper B index) u) := |
| 394 | SignedRequestContinuation.reconstructPrimitives H v upper B index W |
| 395 | (addPrimitives d (temporalIncrement H v upper B index W d hleft hright g ha hb hell he hp axial) |
| 396 | ⟨0, 0, VariableGaugeMean.temporalAliasState g F.data.h index |
| 397 | (CommonBaseContext.context H v upper B index) u⟩) g ha hb hell he |
| 398 | |
| 399 | theorem temporalPotential_periodic (hp : PeriodicPrimitives d) (n : ℕ) : |
| 400 | PhysicalMeanDomain.PeriodicOn W.carrier |
| 401 | (temporalPotential H v upper B index W d hleft hright g ha hb hell he hp n).value := |
| 402 | VariableGaugeMean.streamPotential_periodicOn g.radial.exponent P.a P.b (g.radial.frequency n) |
| 403 | (OffplaneCorrectionExtensions.stableLength (2 * F.data.h)) g.radial.radialDirection |
| 404 | (fun R s _ => MeanChartCompatibility.temporalAtIndex_periodic F.data.h n (index n) _ R s) |
| 405 | |
| 406 | theorem temporalIncrement_periodic (hp : PeriodicPrimitives d) (axial : Slow × Slow) : |
| 407 | PeriodicTriple W.carrier |
| 408 | (temporalIncrement H v upper B index W d hleft hright g ha hb hell he hp axial).value := by |
| 409 | refine ⟨?_, ?_, ?_⟩ |
| 410 | · intro n |
| 411 | exact streamBeta_periodic W.isOpen |
| 412 | (temporalPotential_periodic H v upper B index W d hleft hright g ha hb hell he hp n) _ |
| 413 | · intro n R s _ |
| 414 | exact MeanChartCompatibility.temporalAtIndex_periodic F.data.h n (index n) _ R s |
| 415 | · intro n |
| 416 | change PhysicalMeanDomain.PeriodicOn W.carrier |
| 417 | (Continuation.streamGamma _ _ |
| 418 | (temporalPotential H v upper B index W d hleft hright g ha hb hell he hp n) |
| 419 | g.radial.exponent (g.radial.frequency n) g.radial.radialDirection).value |
| 420 | rw [Continuation.streamGamma_value] |
| 421 | exact streamGamma_periodic W.isOpen |
| 422 | (temporalPotential_periodic H v upper B index W d hleft hright g ha hb hell he hp n) _ _ _ |
| 423 | |
| 424 | theorem temporalPrimitives_periodic (hp : PeriodicPrimitives d) (axial : Slow × Slow) : |
| 425 | PeriodicPrimitives |
| 426 | (temporalPrimitives H v upper B index W d hleft hright g ha hb hell he hp axial) := |
| 427 | reconstructPrimitives_periodic H v upper B index W _ |
| 428 | (addPrimitives_periodic hp _ |
| 429 | (temporalIncrement_periodic H v upper B index W d hleft hright g ha hb hell he hp axial) _) |
| 430 | g ha hb hell he |
| 431 | |
| 432 | /-! ## The continued debts are measured from the continued primitives -/ |
| 433 | |
| 434 | noncomputable def thetaFlux (n : ℕ) : OffplaneCorrectionExtensions.SupportedContinuation W |
| 435 | (fun x => MeanIncrementBounds.thetaAxial (CommonBaseContext.context H v upper B index).base u.mean n x + |
| 436 | u.covariance 2 1 n x) where |
| 437 | value := fun x => MeanIncrementBounds.thetaAxial (SupportedActualContext.context H v upper B index).base |
| 438 | d.state.mean n x + d.state.covariance 2 1 n x |
| 439 | smooth := ((LocalRankDefect.thetaAxial_localShell W.lower_pos W.isOpen |
| 440 | (SignedRequestContinuation.actual_base_smooth H v upper B index W) d.mean_localShell).add |
| 441 | (d.covariance_localShell 2 1)).smooth n |
| 442 | supported := ((d.mean_supported.thetaAxial (SupportedActualContext.context H v upper B index).base).add |
| 443 | (d.covariance_supported 2 1)) n |
| 444 | agrees := ((SupportedActualContext.context_base_agrees H v upper B index W.carrier).thetaAxial |
| 445 | d.mean_agrees |>.add (d.covariance_agrees 2 1)) n |
| 446 | |
| 447 | noncomputable def axialFlux (n : ℕ) : OffplaneCorrectionExtensions.SupportedContinuation W |
| 448 | (fun x => MeanIncrementBounds.axialAxial (CommonBaseContext.context H v upper B index).base u.mean n x + |
| 449 | u.covariance 2 2 n x) where |
| 450 | value := fun x => MeanIncrementBounds.axialAxial (SupportedActualContext.context H v upper B index).base |
| 451 | d.state.mean n x + d.state.covariance 2 2 n x |
| 452 | smooth := ((LocalRankDefect.axialAxial_localShell W.lower_pos W.isOpen |
| 453 | (SignedRequestContinuation.actual_base_smooth H v upper B index W) d.mean_localShell).add |
| 454 | (d.covariance_localShell 2 2)).smooth n |
| 455 | supported := ((d.mean_supported.axialAxial (SupportedActualContext.context H v upper B index).base).add |
| 456 | (d.covariance_supported 2 2)) n |
| 457 | agrees := ((SupportedActualContext.context_base_agrees H v upper B index W.carrier).axialAxial |
| 458 | d.mean_agrees |>.add (d.covariance_agrees 2 2)) n |
| 459 | |
| 460 | /-- No debt continuation is supplied: all three debts are actual radial |
| 461 | and torus integrals of the continued source and nonlinear fluxes. -/ |
| 462 | noncomputable def continuedDebt (n : ℕ) : Slow → MeanRankUpdate.Debt := |
| 463 | CorrectionState.debt (SupportedActualContext.context H v upper B index) d.state n |
| 464 | |
| 465 | theorem continuedDebt_smooth (n : ℕ) : ContDiffOn ℝ ∞ |
| 466 | (continuedDebt H v upper B index W d n) W.carrier := by |
| 467 | let p0 := Continuation.radialPower (SignedRequestContinuation.radialSource H v upper B index W d n) 0 |
| 468 | let p2 := Continuation.radialPower (SignedRequestContinuation.radialSource H v upper B index W d n) 2 |
| 469 | let t2 := Continuation.radialPower (thetaFlux H v upper B index W d n) 2 |
| 470 | let z1 := Continuation.radialPower (axialFlux H v upper B index W d n) 1 |
| 471 | apply contDiffOn_pi.mpr |
| 472 | intro i |
| 473 | fin_cases i |
| 474 | · exact p0.pressureMass_smooth |
| 475 | · exact t2.pressureMass_smooth |
| 476 | · exact z1.pressureMass_smooth.sub (contDiffOn_const.mul p2.pressureMass_smooth) |
| 477 | |
| 478 | theorem continuedDebt_agrees (n : ℕ) : EqOn (continuedDebt H v upper B index W d n) |
| 479 | (CorrectionState.debt (CommonBaseContext.context H v upper B index) u n) |
| 480 | (W.carrier ∩ OffplaneCorrectionExtensions.positiveSlow) := by |
| 481 | let p0 := Continuation.radialPower (SignedRequestContinuation.radialSource H v upper B index W d n) 0 |
| 482 | let p2 := Continuation.radialPower (SignedRequestContinuation.radialSource H v upper B index W d n) 2 |
| 483 | let t2 := Continuation.radialPower (thetaFlux H v upper B index W d n) 2 |
| 484 | let z1 := Continuation.radialPower (axialFlux H v upper B index W d n) 1 |
| 485 | intro s hs |
| 486 | funext i |
| 487 | fin_cases i |
| 488 | · exact p0.pressureMass_agreement hs |
| 489 | · exact t2.pressureMass_agreement hs |
| 490 | · exact congrArg₂ (fun a b : ℝ => a - 1 / 2 * b) |
| 491 | (z1.pressureMass_agreement hs) (p2.pressureMass_agreement hs) |
| 492 | |
| 493 | /-! ## The same normalized five-row rank kernels, with measured debts -/ |
| 494 | |
| 495 | variable (A C lam ra rb : ℝ) (hC : C ≠ 0) (hrab : ra < rb) |
| 496 | (hra : P.a ≤ ra) (hrb : rb ≤ P.b) |
| 497 | |
| 498 | noncomputable def rankAngularKernel (i : Fin 3) : |
| 499 | OffplaneCorrectionExtensions.SupportedContinuation W |
| 500 | (MeanRankUpdate.chartKernel (2 * F.data.h) |
| 501 | (MeanRankUpdate.angularModel (2 * F.data.h) A C lam ra rb (Pi.single i 1))) := by |
| 502 | apply OffplaneCorrectionExtensions.SupportedContinuation.ofModel |
| 503 | (by linarith [F.data.h_pos]) (by linarith [F.data.h_lt_half]) |
| 504 | (fun y => MeanRankUpdate.angularModel (2 * F.data.h) A C lam ra rb (Pi.single i 1) y.1) |
| 505 | · exact (MeanRankUpdate.angularModel_contDiffOn (2 * F.data.h) A C lam ra rb hC _).comp |
| 506 | contDiffOn_fst (fun _ hy => hy) |
| 507 | · intro y hy hn |
| 508 | have hs := OffplaneCorrectionExtensions.rankAngular_model_supported |
| 509 | (2 * F.data.h) A C lam ra rb hrab (Pi.single i 1) y hy hn |
| 510 | exact ⟨(mul_le_mul_of_nonneg_left hra (Real.sqrt_nonneg _)).trans hs.1, |
| 511 | hs.2.trans (mul_le_mul_of_nonneg_left hrb (Real.sqrt_nonneg _))⟩ |
| 512 | |
| 513 | noncomputable def rankAxialKernel (i : Fin 3) : |
| 514 | OffplaneCorrectionExtensions.SupportedContinuation W |
| 515 | (MeanRankUpdate.chartKernel (2 * F.data.h) |
| 516 | (MeanRankUpdate.axialModel (2 * F.data.h) A C lam ra rb (Pi.single i 1))) := by |
| 517 | apply OffplaneCorrectionExtensions.SupportedContinuation.ofModel |
| 518 | (by linarith [F.data.h_pos]) (by linarith [F.data.h_lt_half]) |
| 519 | (fun y => MeanRankUpdate.axialModel (2 * F.data.h) A C lam ra rb (Pi.single i 1) y.1) |
| 520 | · exact (MeanRankUpdate.axialModel_contDiffOn (2 * F.data.h) A C lam ra rb hC _).comp |
| 521 | contDiffOn_fst (fun _ hy => hy) |
| 522 | · intro y hy hn |
| 523 | have hs := OffplaneCorrectionExtensions.rankAxial_model_supported |
| 524 | (2 * F.data.h) A C lam ra rb hrab (Pi.single i 1) y hy hn |
| 525 | exact ⟨(mul_le_mul_of_nonneg_left hra (Real.sqrt_nonneg _)).trans hs.1, |
| 526 | hs.2.trans (mul_le_mul_of_nonneg_left hrb (Real.sqrt_nonneg _))⟩ |
| 527 | |
| 528 | noncomputable def rankAngular (n : ℕ) : |
| 529 | OffplaneCorrectionExtensions.SupportedContinuation W |
| 530 | (MeanRankUpdate.slowLift (CorrectionState.rankAngular |
| 531 | (RankStateBounds.normalizedData (2 * F.data.h) A C lam ra rb) |
| 532 | (CommonBaseContext.context H v upper B index) u n)) := |
| 533 | Continuation.retarget |
| 534 | (OffplaneCorrectionExtensions.SupportedContinuation.finiteSum Finset.univ |
| 535 | (fun i x => CorrectionState.debt (CommonBaseContext.context H v upper B index) u n x.2.1 i * |
| 536 | MeanRankUpdate.chartKernel (2 * F.data.h) |
| 537 | (MeanRankUpdate.angularModel (2 * F.data.h) A C lam ra rb (Pi.single i 1)) x) |
| 538 | (fun i => (rankAngularKernel W A C lam ra rb hC hrab hra hrb i).scaleSlow |
| 539 | (fun s => continuedDebt H v upper B index W d n s i) |
| 540 | (contDiffOn_pi.mp (continuedDebt_smooth H v upper B index W d n) i) |
| 541 | (fun _ hs => congrFun (continuedDebt_agrees H v upper B index W d n hs) i))) |
| 542 | (fun x => (MeanRankUpdate.chartAngular_eq_sum (2 * F.data.h) A C lam ra rb |
| 543 | (fun z => CorrectionState.debt (CommonBaseContext.context H v upper B index) u n z.2.1) x).symm) |
| 544 | |
| 545 | noncomputable def rankDesiredAxial (n : ℕ) : |
| 546 | OffplaneCorrectionExtensions.SupportedContinuation W |
| 547 | (MeanRankUpdate.slowLift (CorrectionState.rankDesiredAxial |
| 548 | (RankStateBounds.normalizedData (2 * F.data.h) A C lam ra rb) |
| 549 | (CommonBaseContext.context H v upper B index) u n)) := |
| 550 | Continuation.retarget |
| 551 | (OffplaneCorrectionExtensions.SupportedContinuation.finiteSum Finset.univ |
| 552 | (fun i x => CorrectionState.debt (CommonBaseContext.context H v upper B index) u n x.2.1 i * |
| 553 | MeanRankUpdate.chartKernel (2 * F.data.h) |
| 554 | (MeanRankUpdate.axialModel (2 * F.data.h) A C lam ra rb (Pi.single i 1)) x) |
| 555 | (fun i => (rankAxialKernel W A C lam ra rb hC hrab hra hrb i).scaleSlow |
| 556 | (fun s => continuedDebt H v upper B index W d n s i) |
| 557 | (contDiffOn_pi.mp (continuedDebt_smooth H v upper B index W d n) i) |
| 558 | (fun _ hs => congrFun (continuedDebt_agrees H v upper B index W d n hs) i))) |
| 559 | (fun x => (MeanRankUpdate.chartAxial_eq_sum (2 * F.data.h) A C lam ra rb |
| 560 | (fun z => CorrectionState.debt (CommonBaseContext.context H v upper B index) u n z.2.1) x).symm) |
| 561 | |
| 562 | noncomputable def rankPotential (n : ℕ) : |
| 563 | OffplaneCorrectionExtensions.SupportedContinuation W |
| 564 | (VariableGaugeMean.rankPotential g (RankStateBounds.normalizedData (2 * F.data.h) A C lam ra rb) |
| 565 | (CommonBaseContext.context H v upper B index) u n) := |
| 566 | Continuation.retarget |
| 567 | ((rankDesiredAxial H v upper B index W d A C lam ra rb hC hrab hra hrb n).stream |
| 568 | (by linarith [F.data.h_pos]) (by linarith [F.data.h_lt_half]) P.a_pos P.a_lt_b he |
| 569 | (g.radial.frequency n) g.radial.radialDirection) |
| 570 | (fun _ => by simp only [VariableGaugeMean.rankPotential, ha, hb, hell]) |
| 571 | |
| 572 | noncomputable def rankIncrement (axial : Slow × Slow) : IncrementContinuations P W |
| 573 | (VariableGaugeMean.rankIncrementState g (RankStateBounds.normalizedData (2 * F.data.h) A C lam ra rb) |
| 574 | axial (CommonBaseContext.context H v upper B index) u) where |
| 575 | radial := fun n => Continuation.streamBeta |
| 576 | (by linarith [F.data.h_pos]) (by linarith [F.data.h_lt_half]) |
| 577 | (rankPotential H v upper B index W d g ha hb hell he A C lam ra rb hC hrab hra hrb n) |
| 578 | ((CommonBaseContext.context H v upper B index).operators.epsilon n • axial) |
| 579 | angular := rankAngular H v upper B index W d A C lam ra rb hC hrab hra hrb |
| 580 | axial := fun n => Continuation.streamGamma |
| 581 | (by linarith [F.data.h_pos]) (by linarith [F.data.h_lt_half]) |
| 582 | (rankPotential H v upper B index W d g ha hb hell he A C lam ra rb hC hrab hra hrb n) |
| 583 | g.radial.exponent (g.radial.frequency n) g.radial.radialDirection |
| 584 | |
| 585 | /-- The outgoing pressure is reconstructed from the updated means and the |
| 586 | same oscillation. Its continuation is obtained after constructing the |
| 587 | actual rank increment, rather than assumed for the result. -/ |
| 588 | noncomputable def rankPrimitives (axial : Slow × Slow) : |
| 589 | SignedRequestContinuation.Primitives P W |
| 590 | (VariableGaugeMean.rankStageState g (RankStateBounds.normalizedData (2 * F.data.h) A C lam ra rb) |
| 591 | axial (CommonBaseContext.context H v upper B index) u) := |
| 592 | SignedRequestContinuation.reconstructPrimitives H v upper B index W |
| 593 | (addPrimitives d (rankIncrement H v upper B index W d g ha hb hell he A C lam ra rb hC hrab hra hrb axial) |
| 594 | CorrectionState.ExcludedErrors.zero) g ha hb hell he |
| 595 | |
| 596 | theorem rankAngular_periodic (n : ℕ) : PhysicalMeanDomain.PeriodicOn W.carrier |
| 597 | (rankAngular H v upper B index W d A C lam ra rb hC hrab hra hrb n).value := |
| 598 | fun _ _ _ _ _ => rfl |
| 599 | |
| 600 | theorem rankDesiredAxial_periodic (n : ℕ) : PhysicalMeanDomain.PeriodicOn W.carrier |
| 601 | (rankDesiredAxial H v upper B index W d A C lam ra rb hC hrab hra hrb n).value := |
| 602 | fun _ _ _ _ _ => rfl |
| 603 | |
| 604 | theorem rankPotential_periodic (n : ℕ) : PhysicalMeanDomain.PeriodicOn W.carrier |
| 605 | (rankPotential H v upper B index W d g ha hb hell he A C lam ra rb hC hrab hra hrb n).value := |
| 606 | VariableGaugeMean.streamPotential_periodicOn g.radial.exponent P.a P.b (g.radial.frequency n) |
| 607 | (OffplaneCorrectionExtensions.stableLength (2 * F.data.h)) g.radial.radialDirection |
| 608 | (rankDesiredAxial_periodic H v upper B index W d A C lam ra rb hC hrab hra hrb n) |
| 609 | |
| 610 | theorem rankIncrement_periodic (axial : Slow × Slow) : PeriodicTriple W.carrier |
| 611 | (rankIncrement H v upper B index W d g ha hb hell he A C lam ra rb hC hrab hra hrb axial).value := by |
| 612 | refine ⟨?_, ?_, ?_⟩ |
| 613 | · intro n |
| 614 | exact streamBeta_periodic W.isOpen |
| 615 | (rankPotential_periodic H v upper B index W d g ha hb hell he A C lam ra rb hC hrab hra hrb n) _ |
| 616 | · exact rankAngular_periodic H v upper B index W d A C lam ra rb hC hrab hra hrb |
| 617 | · intro n |
| 618 | change PhysicalMeanDomain.PeriodicOn W.carrier |
| 619 | (Continuation.streamGamma _ _ |
| 620 | (rankPotential H v upper B index W d g ha hb hell he A C lam ra rb hC hrab hra hrb n) |
| 621 | g.radial.exponent (g.radial.frequency n) g.radial.radialDirection).value |
| 622 | rw [Continuation.streamGamma_value] |
| 623 | exact streamGamma_periodic W.isOpen |
| 624 | (rankPotential_periodic H v upper B index W d g ha hb hell he A C lam ra rb hC hrab hra hrb n) _ _ _ |
| 625 | |
| 626 | theorem rankPrimitives_periodic (hp : PeriodicPrimitives d) (axial : Slow × Slow) : |
| 627 | PeriodicPrimitives (rankPrimitives H v upper B index W d g ha hb hell he |
| 628 | A C lam ra rb hC hrab hra hrb axial) := |
| 629 | reconstructPrimitives_periodic H v upper B index W _ |
| 630 | (addPrimitives_periodic hp _ |
| 631 | (rankIncrement_periodic H v upper B index W d g ha hb hell he A C lam ra rb hC hrab hra hrb axial) _) |
| 632 | g ha hb hell he |
| 633 | |
| 634 | /-- Two consecutive literal mean stages preserve the same window and |
| 635 | gauge. The rank debts are measured after the temporal update. -/ |
| 636 | noncomputable def temporalRankPrimitives (hp : PeriodicPrimitives d) |
| 637 | (axialTime axialRank : Slow × Slow) : |
| 638 | SignedRequestContinuation.Primitives P W |
| 639 | (VariableGaugeMean.rankStageState g (RankStateBounds.normalizedData (2 * F.data.h) A C lam ra rb) |
| 640 | axialRank (CommonBaseContext.context H v upper B index) |
| 641 | (VariableGaugeMean.temporalStageState g F.data.h index axialTime |
| 642 | (CommonBaseContext.context H v upper B index) u)) := |
| 643 | rankPrimitives H v upper B index W |
| 644 | (temporalPrimitives H v upper B index W d hleft hright g ha hb hell he hp axialTime) |
| 645 | g ha hb hell he A C lam ra rb hC hrab hra hrb axialRank |
| 646 | |
| 647 | theorem temporalRankPrimitives_periodic (hp : PeriodicPrimitives d) |
| 648 | (axialTime axialRank : Slow × Slow) : |
| 649 | PeriodicPrimitives (temporalRankPrimitives H v upper B index W d hleft hright |
| 650 | g ha hb hell he A C lam ra rb hC hrab hra hrb hp axialTime axialRank) := |
| 651 | rankPrimitives_periodic H v upper B index W |
| 652 | (temporalPrimitives H v upper B index W d hleft hright g ha hb hell he hp axialTime) |
| 653 | g ha hb hell he A C lam ra rb hC hrab hra hrb |
| 654 | (temporalPrimitives_periodic H v upper B index W d hleft hright g ha hb hell he hp axialTime) axialRank |
| 655 | |
| 656 | /-- The retained temporal alias is itself continued by differentiating |
| 657 | the difference between the desired and realized axial increments. -/ |
| 658 | noncomputable def temporalAliasComponent (hp : PeriodicPrimitives d) (n : ℕ) : |
| 659 | OffplaneCorrectionExtensions.SupportedContinuation W |
| 660 | (fun x => VariableGaugeMean.temporalAliasState g F.data.h index |
| 661 | (CommonBaseContext.context H v upper B index) u n (x, 0) 2) := |
| 662 | Continuation.retarget |
| 663 | (Continuation.neg (Continuation.coefficientMul |
| 664 | (Continuation.directional (by linarith [F.data.h_pos]) (by linarith [F.data.h_lt_half]) |
| 665 | (Continuation.add (temporalDesiredAxial H v upper B index W d hleft hright hp n) |
| 666 | (Continuation.neg ((temporalIncrement H v upper B index W d hleft hright g ha hb hell he hp 0).axial n))) |
| 667 | (CommonBaseContext.context H v upper B index).operators.vT) |
| 668 | (fun _ => (CommonBaseContext.context H v upper B index).operators.fastCoefficient n) contDiffOn_const)) |
| 669 | (fun x => by |
| 670 | simp [VariableGaugeMean.temporalAliasState, |
| 671 | VariableGaugeMean.temporalIncrementState, MeanIncrementBounds.Operators.fastTime, |
| 672 | Matrix.cons_val_two] |
| 673 | left |
| 674 | unfold VariableGaugeMean.temporalAxialDifference |
| 675 | simp only [sub_eq_add_neg]) |
| 676 | |
| 677 | /-! ## Physical stream, direct-angular, and pressure endpoint models -/ |
| 678 | |
| 679 | noncomputable def temporalStreamExtension (hp : PeriodicPrimitives d) (n : ℕ) |
| 680 | {x : ProblemStatement.Space} (hx : (0, x 2) ∈ W.carrier) : |
| 681 | JointResidualLimits.OneSidedExtension |
| 682 | (OffplaneCorrectionExtensions.azimuthalPotential F.data.h n |
| 683 | (VariableGaugeMean.temporalPotential g F.data.h index |
| 684 | (CommonBaseContext.context H v upper B index) u n)) x := |
| 685 | (temporalPotential H v upper B index W d hleft hright g ha hb hell he hp n).azimuthalExtension |
| 686 | F.data.h n hx |
| 687 | |
| 688 | noncomputable def temporalAngularExtension (hp : PeriodicPrimitives d) (n : ℕ) |
| 689 | {x : ProblemStatement.Space} (hx : (0, x 2) ∈ W.carrier) : |
| 690 | JointResidualLimits.OneSidedExtension |
| 691 | (OffplaneCorrectionExtensions.angularField F.data.h n |
| 692 | (MeanChartCompatibility.temporalAtIndex F.data.h n (index n) |
| 693 | (u.thetaResidual (CommonBaseContext.context H v upper B index) n))) x := |
| 694 | (temporalAngular H v upper B index W d hleft hright hp n).angularExtension F.data.h n hx |
| 695 | |
| 696 | noncomputable def temporalPressureExtension (hp : PeriodicPrimitives d) |
| 697 | (axial : Slow × Slow) (n : ℕ) {x : ProblemStatement.Space} (hx : (0, x 2) ∈ W.carrier) : |
| 698 | JointResidualLimits.OneSidedExtension |
| 699 | (OffplaneCorrectionExtensions.physicalScalar F.data.h n |
| 700 | ((VariableGaugeMean.temporalStageState g F.data.h index axial |
| 701 | (CommonBaseContext.context H v upper B index) u).pressure n)) x := |
| 702 | ((temporalPrimitives H v upper B index W d hleft hright g ha hb hell he hp axial).pressure n).physicalExtension |
| 703 | F.data.h n hx |
| 704 | |
| 705 | noncomputable def rankStreamExtension (n : ℕ) {x : ProblemStatement.Space} (hx : (0, x 2) ∈ W.carrier) : |
| 706 | JointResidualLimits.OneSidedExtension |
| 707 | (OffplaneCorrectionExtensions.azimuthalPotential F.data.h n |
| 708 | (VariableGaugeMean.rankPotential g (RankStateBounds.normalizedData (2 * F.data.h) A C lam ra rb) |
| 709 | (CommonBaseContext.context H v upper B index) u n)) x := |
| 710 | (rankPotential H v upper B index W d g ha hb hell he A C lam ra rb hC hrab hra hrb n).azimuthalExtension |
| 711 | F.data.h n hx |
| 712 | |
| 713 | noncomputable def rankAngularExtension (n : ℕ) {x : ProblemStatement.Space} (hx : (0, x 2) ∈ W.carrier) : |
| 714 | JointResidualLimits.OneSidedExtension |
| 715 | (OffplaneCorrectionExtensions.angularField F.data.h n |
| 716 | (MeanRankUpdate.slowLift (CorrectionState.rankAngular |
| 717 | (RankStateBounds.normalizedData (2 * F.data.h) A C lam ra rb) |
| 718 | (CommonBaseContext.context H v upper B index) u n))) x := |
| 719 | (rankAngular H v upper B index W d A C lam ra rb hC hrab hra hrb n).angularExtension F.data.h n hx |
| 720 | |
| 721 | noncomputable def rankPressureExtension (axial : Slow × Slow) (n : ℕ) |
| 722 | {x : ProblemStatement.Space} (hx : (0, x 2) ∈ W.carrier) : |
| 723 | JointResidualLimits.OneSidedExtension |
| 724 | (OffplaneCorrectionExtensions.physicalScalar F.data.h n |
| 725 | ((VariableGaugeMean.rankStageState g (RankStateBounds.normalizedData (2 * F.data.h) A C lam ra rb) |
| 726 | axial (CommonBaseContext.context H v upper B index) u).pressure n)) x := |
| 727 | ((rankPrimitives H v upper B index W d g ha hb hell he A C lam ra rb hC hrab hra hrb axial).pressure n).physicalExtension |
| 728 | F.data.h n hx |
| 729 | |
| 730 | end Actual |
| 731 | |
| 732 | end NavierStokes.MeanStageContinuation |