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.ActualCorrectionModels |
| 2 | |
| 3 | /-! |
| 4 | # Continuation of the actual mean residual and signed request |
| 5 | |
| 6 | The input consists of continued primitive velocity and pressure components. |
| 7 | Covariances, graph derivatives, mean residuals, and the moving signed radial |
| 8 | primitive are computed from those components. Agreement always retains the |
| 9 | entire free radial and torus fibers, as well as the free angular variable. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | namespace NavierStokes.SignedRequestContinuation |
| 15 | |
| 16 | open Set Function Filter MeasureTheory |
| 17 | open scoped ContDiff Topology Interval BigOperators |
| 18 | |
| 19 | |
| 20 | abbrev Slow := TorusInverse.Plane |
| 21 | abbrev Point := LocalSignedRequest.Point |
| 22 | abbrev ScalarField := MeanIncrementBounds.Field Point |
| 23 | |
| 24 | /-! ## Support of the literal differential expressions -/ |
| 25 | |
| 26 | def Supported (a b : ℝ) (ell : Slow → ℝ) (U : Set Slow) (f : ScalarField) : Prop := |
| 27 | ∀ n, VariableGaugeMean.SupportedGauge a b ell U (f n) |
| 28 | |
| 29 | namespace Supported |
| 30 | |
| 31 | variable {a b : ℝ} {ell : Slow → ℝ} {U : Set Slow} {f g : ScalarField} |
| 32 | |
| 33 | theorem zero : Supported a b ell U (0 : ScalarField) := |
| 34 | fun _ _ _ hn => (hn rfl).elim |
| 35 | |
| 36 | theorem add (hf : Supported a b ell U f) (hg : Supported a b ell U g) : |
| 37 | Supported a b ell U (f + g) := by |
| 38 | intro n x hx hn |
| 39 | by_contra hnot |
| 40 | have hf0 : f n x = 0 := by by_contra he; exact hnot (hf n x hx he) |
| 41 | have hg0 : g n x = 0 := by by_contra he; exact hnot (hg n x hx he) |
| 42 | exact hn (by simp [hf0, hg0]) |
| 43 | |
| 44 | theorem neg (hf : Supported a b ell U f) : Supported a b ell U (-f) := |
| 45 | fun n x hx hn => hf n x hx (neg_ne_zero.mp hn) |
| 46 | |
| 47 | theorem sub (hf : Supported a b ell U f) (hg : Supported a b ell U g) : |
| 48 | Supported a b ell U (f - g) := by |
| 49 | simpa only [sub_eq_add_neg] using hf.add hg.neg |
| 50 | |
| 51 | theorem mul_left (hf : Supported a b ell U f) (g : ScalarField) : |
| 52 | Supported a b ell U (g * f) := |
| 53 | fun n x hx hn => hf n x hx (right_ne_zero_of_mul hn) |
| 54 | |
| 55 | theorem mul_right (hf : Supported a b ell U f) (g : ScalarField) : |
| 56 | Supported a b ell U (f * g) := |
| 57 | fun n x hx hn => hf n x hx (left_ne_zero_of_mul hn) |
| 58 | |
| 59 | theorem band_mul (hf : Supported a b ell U f) (c : ℕ → ℝ) : |
| 60 | Supported a b ell U (fun n x => c n * f n x) := |
| 61 | fun n x hx hn => hf n x hx (right_ne_zero_of_mul hn) |
| 62 | |
| 63 | theorem smul (hf : Supported a b ell U f) (c : ℝ) : |
| 64 | Supported a b ell U (c • f) := hf.band_mul (fun _ => c) |
| 65 | |
| 66 | theorem directional (hf : Supported a b ell U f) (hU : IsOpen U) |
| 67 | (hell : ContinuousOn ell U) (v : Point) : |
| 68 | Supported a b ell U (fun n x => fderiv ℝ (f n) x v) := |
| 69 | fun n => LocalRankDefect.supportedGauge_directional hU hell (hf n) v |
| 70 | |
| 71 | theorem dr (hf : Supported a b ell U f) (hU : IsOpen U) |
| 72 | (hell : ContinuousOn ell U) (o : MeanIncrementBounds.Operators Point) : |
| 73 | Supported a b ell U (o.dr f) := |
| 74 | (hf.directional hU hell o.eR).add |
| 75 | (((hf.directional hU hell o.vR).mul_left (fun _ => o.radialProfile)).band_mul o.radialFrequency) |
| 76 | |
| 77 | theorem dz (hf : Supported a b ell U f) (hU : IsOpen U) |
| 78 | (hell : ContinuousOn ell U) (o : MeanIncrementBounds.Operators Point) : |
| 79 | Supported a b ell U (o.dz f) := (hf.directional hU hell o.eZ).band_mul o.epsilon |
| 80 | |
| 81 | theorem time (hf : Supported a b ell U f) (hU : IsOpen U) |
| 82 | (hell : ContinuousOn ell U) (o : MeanIncrementBounds.Operators Point) : |
| 83 | Supported a b ell U (o.time f) := |
| 84 | ((hf.directional hU hell o.eT).band_mul o.epsilon).neg.add |
| 85 | ((hf.directional hU hell o.vT).band_mul o.fastCoefficient) |
| 86 | |
| 87 | theorem radialDiv (hf : Supported a b ell U f) (hU : IsOpen U) |
| 88 | (hell : ContinuousOn ell U) (o : MeanIncrementBounds.Operators Point) (c : ℝ) : |
| 89 | Supported a b ell U (o.radialDiv c f) := |
| 90 | (hf.dr hU hell o).add ((hf.mul_left o.invRadius).smul c) |
| 91 | |
| 92 | theorem viscosity (hf : Supported a b ell U f) (hU : IsOpen U) |
| 93 | (hell : ContinuousOn ell U) (o : MeanIncrementBounds.Operators Point) (c : ℝ) : |
| 94 | Supported a b ell U (o.viscosity c f) := |
| 95 | (((((hf.dr hU hell o).dr hU hell o).add ((hf.dr hU hell o).mul_left o.invRadius)).add |
| 96 | ((hf.dz hU hell o).dz hU hell o)).sub |
| 97 | (((hf.mul_left o.invRadius).mul_left o.invRadius).smul c)).band_mul o.epsilon |
| 98 | |
| 99 | end Supported |
| 100 | |
| 101 | structure SupportedTriple (a b : ℝ) (ell : Slow → ℝ) (U : Set Slow) |
| 102 | (m : MeanIncrementBounds.Triple Point) : Prop where |
| 103 | radial : Supported a b ell U m.radial |
| 104 | angular : Supported a b ell U m.angular |
| 105 | axial : Supported a b ell U m.axial |
| 106 | |
| 107 | namespace SupportedTriple |
| 108 | |
| 109 | variable {a b : ℝ} {ell : Slow → ℝ} {U : Set Slow} {m : MeanIncrementBounds.Triple Point} |
| 110 | (hm : SupportedTriple a b ell U m) (base : MeanIncrementBounds.Triple Point) |
| 111 | |
| 112 | include hm |
| 113 | |
| 114 | theorem thetaRadial : Supported a b ell U (MeanIncrementBounds.thetaRadial base m) := |
| 115 | ((hm.angular.mul_left base.radial).add (hm.radial.mul_right base.angular)).add |
| 116 | (hm.radial.mul_right m.angular) |
| 117 | |
| 118 | theorem thetaAxial : Supported a b ell U (MeanIncrementBounds.thetaAxial base m) := |
| 119 | ((hm.angular.mul_left base.axial).add (hm.axial.mul_left base.angular)).add |
| 120 | (hm.axial.mul_right m.angular) |
| 121 | |
| 122 | theorem axialRadial : Supported a b ell U (MeanIncrementBounds.axialRadial base m) := |
| 123 | ((hm.axial.mul_left base.radial).add (hm.radial.mul_right base.axial)).add |
| 124 | (hm.radial.mul_right m.axial) |
| 125 | |
| 126 | theorem axialAxial : Supported a b ell U (MeanIncrementBounds.axialAxial base m) := |
| 127 | ((hm.axial.mul_left base.axial).smul 2).add (hm.axial.mul_right m.axial) |
| 128 | |
| 129 | theorem radialRadial : Supported a b ell U (MeanIncrementBounds.radialRadial base m) := |
| 130 | ((hm.radial.mul_left base.radial).smul 2).add (hm.radial.mul_right m.radial) |
| 131 | |
| 132 | theorem radialAngular : Supported a b ell U (MeanIncrementBounds.radialAngular base m) := |
| 133 | ((hm.angular.mul_left base.angular).smul 2).add (hm.angular.mul_right m.angular) |
| 134 | |
| 135 | end SupportedTriple |
| 136 | |
| 137 | theorem thetaResidual_supported {a b : ℝ} {ell : Slow → ℝ} {U : Set Slow} |
| 138 | (hU : IsOpen U) (hell : ContinuousOn ell U) (o : MeanIncrementBounds.Operators Point) (base : MeanIncrementBounds.Triple Point) |
| 139 | {m : MeanIncrementBounds.Triple Point} (hm : SupportedTriple a b ell U m) |
| 140 | (W : Fin 3 → Fin 3 → ScalarField) (hW : ∀ i j, Supported a b ell U (W i j)) |
| 141 | {T : ScalarField} (hT : Supported a b ell U T) : |
| 142 | Supported a b ell U (MeanIncrementBounds.thetaResidual o base m W T) := |
| 143 | ((((hm.angular.time hU hell o).add (((hm.thetaRadial base).add (hW 0 1)).radialDiv hU hell o 2)).add |
| 144 | (((hm.thetaAxial base).add (hW 2 1)).dz hU hell o)).sub |
| 145 | (hm.angular.viscosity hU hell o 1)).sub (hT.radialDiv hU hell o 2) |
| 146 | |
| 147 | theorem axialResidual_supported {a b : ℝ} {ell : Slow → ℝ} {U : Set Slow} |
| 148 | (hU : IsOpen U) (hell : ContinuousOn ell U) (o : MeanIncrementBounds.Operators Point) (base : MeanIncrementBounds.Triple Point) |
| 149 | {m : MeanIncrementBounds.Triple Point} (hm : SupportedTriple a b ell U m) |
| 150 | (W : Fin 3 → Fin 3 → ScalarField) (hW : ∀ i j, Supported a b ell U (W i j)) |
| 151 | {p T : ScalarField} (hp : Supported a b ell U p) (hT : Supported a b ell U T) : |
| 152 | Supported a b ell U (MeanIncrementBounds.axialResidual o base m W p T) := |
| 153 | ((((hm.axial.time hU hell o).add (((hm.axialRadial base).add (hW 0 2)).radialDiv hU hell o 1)).add |
| 154 | ((((hm.axialAxial base).add (hW 2 2)).add hp).dz hU hell o)).sub |
| 155 | (hm.axial.viscosity hU hell o 0)).sub (hT.radialDiv hU hell o 1) |
| 156 | |
| 157 | theorem gr_supported {a b : ℝ} {ell : Slow → ℝ} {U : Set Slow} |
| 158 | (hU : IsOpen U) (hell : ContinuousOn ell U) (o : MeanIncrementBounds.Operators Point) (base : MeanIncrementBounds.Triple Point) |
| 159 | {m : MeanIncrementBounds.Triple Point} (hm : SupportedTriple a b ell U m) |
| 160 | (W : Fin 3 → Fin 3 → ScalarField) (hW : ∀ i j, Supported a b ell U (W i j)) : |
| 161 | Supported a b ell U (MeanIncrementBounds.gr o base m W) := |
| 162 | (((((hm.radial.time hU hell o).add (((hm.radialRadial base).add (hW 0 0)).radialDiv hU hell o 1)).add |
| 163 | (((hm.axialRadial base).add (hW 2 0)).dz hU hell o)).sub |
| 164 | (((hm.radialAngular base).add (hW 1 1)).mul_left o.invRadius)).sub |
| 165 | (hm.radial.viscosity hU hell o 1)).neg |
| 166 | |
| 167 | /-! ## Smoothness with actual axis zero germs -/ |
| 168 | |
| 169 | theorem thetaRadial_localShell {a b : ℝ} (ha : 0 < a) {U : Set Slow} (hU : IsOpen U) |
| 170 | {base m : MeanIncrementBounds.Triple Point} (hb : MeanIncrementBounds.SmoothTriple (LocalRankDefect.positiveDomain U) base) |
| 171 | (hm : LocalRankDefect.LocalTriple a b U m) : LocalRankDefect.LocalShell a b U (MeanIncrementBounds.thetaRadial base m) := |
| 172 | ((hm.angular.coefficient_mul ha hU hb.radial).add |
| 173 | (hm.radial.mul_coefficient ha hU hb.angular)).add (hm.radial.mul hm.angular) |
| 174 | |
| 175 | theorem thetaResidual_localShell {a b : ℝ} (ha : 0 < a) {U : Set Slow} (hU : IsOpen U) |
| 176 | {o : MeanIncrementBounds.Operators Point} (ho : LocalRankDefect.LocalOperators U o) |
| 177 | {base m : MeanIncrementBounds.Triple Point} (hb : MeanIncrementBounds.SmoothTriple (LocalRankDefect.positiveDomain U) base) |
| 178 | (hm : LocalRankDefect.LocalTriple a b U m) (W : Fin 3 → Fin 3 → ScalarField) |
| 179 | (hW : ∀ i j, LocalRankDefect.LocalShell a b U (W i j)) |
| 180 | {T : ScalarField} (hT : LocalRankDefect.LocalShell a b U T) : |
| 181 | LocalRankDefect.LocalShell a b U (MeanIncrementBounds.thetaResidual o base m W T) := |
| 182 | ((((hm.angular.time hU o).add (((thetaRadial_localShell ha hU hb hm).add |
| 183 | (hW 0 1)).radialDiv ha hU ho 2)).add |
| 184 | (((LocalRankDefect.thetaAxial_localShell ha hU hb hm).add (hW 2 1)).dz hU o)).sub |
| 185 | (hm.angular.viscosity ha hU ho 1)).sub (hT.radialDiv ha hU ho 2) |
| 186 | |
| 187 | theorem axialResidual_localShell {a b : ℝ} (ha : 0 < a) {U : Set Slow} (hU : IsOpen U) |
| 188 | {o : MeanIncrementBounds.Operators Point} (ho : LocalRankDefect.LocalOperators U o) |
| 189 | {base m : MeanIncrementBounds.Triple Point} (hb : MeanIncrementBounds.SmoothTriple (LocalRankDefect.positiveDomain U) base) |
| 190 | (hm : LocalRankDefect.LocalTriple a b U m) (W : Fin 3 → Fin 3 → ScalarField) |
| 191 | (hW : ∀ i j, LocalRankDefect.LocalShell a b U (W i j)) |
| 192 | {p T : ScalarField} (hp : LocalRankDefect.LocalShell a b U p) (hT : LocalRankDefect.LocalShell a b U T) : |
| 193 | LocalRankDefect.LocalShell a b U (MeanIncrementBounds.axialResidual o base m W p T) := |
| 194 | ((((hm.axial.time hU o).add (((LocalRankDefect.axialRadial_localShell ha hU hb hm).add |
| 195 | (hW 0 2)).radialDiv ha hU ho 1)).add |
| 196 | ((((LocalRankDefect.axialAxial_localShell ha hU hb hm).add (hW 2 2)).add hp).dz hU o)).sub |
| 197 | (hm.axial.viscosity ha hU ho 0)).sub (hT.radialDiv ha hU ho 1) |
| 198 | |
| 199 | /-! ## Covariance is continued by its actual angular integral -/ |
| 200 | |
| 201 | theorem covariance_smooth {U : Set Slow} (hU : IsOpen U) (u : CorrectionState.State Point) |
| 202 | (hu : ∀ n i, ContDiffOn ℝ ∞ (fun x => u.oscillation n x i) |
| 203 | (PhysicalMeanDomain.slowDomain U ×ˢ univ)) (i j : Fin 3) : |
| 204 | MeanIncrementBounds.SmoothOn (PhysicalMeanDomain.slowDomain U) (u.covariance i j) := by |
| 205 | intro n |
| 206 | exact (ParametricRephase.intervalIntegral_contDiffOn_of_joint _ _ (PhysicalMeanDomain.slowDomain_open hU) |
| 207 | ((hu n i).mul (hu n j)) 0 (2 * Real.pi) (by positivity)).div_const _ |
| 208 | |
| 209 | theorem covariance_supported {a b : ℝ} {ell : Slow → ℝ} {U : Set Slow} |
| 210 | (u : CorrectionState.State Point) |
| 211 | (hu : ∀ n i θ, VariableGaugeMean.SupportedGauge a b ell U (fun x => u.oscillation n (x, θ) i)) |
| 212 | (i j : Fin 3) : Supported a b ell U (u.covariance i j) := by |
| 213 | intro n x hx hn |
| 214 | by_contra hnot |
| 215 | have hz (θ : ℝ) : u.oscillation n (x, θ) i = 0 := by |
| 216 | by_contra he |
| 217 | exact hnot (hu n i θ x hx he) |
| 218 | exact hn (by simp [CorrectionState.State.covariance, CorrectionState.bilinearCovariance, CorrectionState.angularAverage, hz]) |
| 219 | |
| 220 | theorem covariance_agreement {U : Set Slow} {v u : CorrectionState.State Point} |
| 221 | (hu : ∀ n i θ, OffplaneCorrectionExtensions.FiberAgreement U |
| 222 | (fun x => v.oscillation n (x, θ) i) (fun x => u.oscillation n (x, θ) i)) |
| 223 | (i j : Fin 3) (n : ℕ) : OffplaneCorrectionExtensions.FiberAgreement U (v.covariance i j n) (u.covariance i j n) := by |
| 224 | intro x hx |
| 225 | unfold CorrectionState.State.covariance CorrectionState.bilinearCovariance CorrectionState.angularAverage |
| 226 | congr 1 |
| 227 | apply intervalIntegral.integral_congr |
| 228 | intro θ _ |
| 229 | exact congrArg₂ (· * ·) (hu n i θ hx) (hu n j θ hx) |
| 230 | |
| 231 | /-! ## Full-fiber equality is preserved by the residual algebra -/ |
| 232 | |
| 233 | def Agrees (U : Set Slow) (f g : ScalarField) : Prop := |
| 234 | ∀ n, OffplaneCorrectionExtensions.FiberAgreement U (f n) (g n) |
| 235 | |
| 236 | namespace Agrees |
| 237 | |
| 238 | variable {U : Set Slow} {f f' g g' : ScalarField} |
| 239 | |
| 240 | theorem refl (f : ScalarField) : Agrees U f f := fun _ _ _ => rfl |
| 241 | theorem add (hf : Agrees U f f') (hg : Agrees U g g') : Agrees U (f + g) (f' + g') := |
| 242 | fun n _ hx => congrArg₂ (· + ·) (hf n hx) (hg n hx) |
| 243 | theorem sub (hf : Agrees U f f') (hg : Agrees U g g') : Agrees U (f - g) (f' - g') := |
| 244 | fun n _ hx => congrArg₂ (· - ·) (hf n hx) (hg n hx) |
| 245 | theorem mul (hf : Agrees U f f') (hg : Agrees U g g') : Agrees U (f * g) (f' * g') := |
| 246 | fun n _ hx => congrArg₂ (· * ·) (hf n hx) (hg n hx) |
| 247 | theorem neg (hf : Agrees U f f') : Agrees U (-f) (-f') := |
| 248 | fun n _ hx => congrArg Neg.neg (hf n hx) |
| 249 | theorem smul (hf : Agrees U f f') (c : ℝ) : Agrees U (c • f) (c • f') := |
| 250 | fun n _ hx => congrArg (c * ·) (hf n hx) |
| 251 | theorem dr (hf : Agrees U f f') (hU : IsOpen U) (o : MeanIncrementBounds.Operators Point) : |
| 252 | Agrees U (o.dr f) (o.dr f') := ActualCorrectionModels.fiberAgreement_dr hU o hf |
| 253 | theorem dz (hf : Agrees U f f') (hU : IsOpen U) (o : MeanIncrementBounds.Operators Point) : |
| 254 | Agrees U (o.dz f) (o.dz f') := ActualCorrectionModels.fiberAgreement_dz hU o hf |
| 255 | theorem time (hf : Agrees U f f') (hU : IsOpen U) (o : MeanIncrementBounds.Operators Point) : |
| 256 | Agrees U (o.time f) (o.time f') := ActualCorrectionModels.fiberAgreement_time hU o hf |
| 257 | theorem radialDiv (hf : Agrees U f f') (hU : IsOpen U) (o : MeanIncrementBounds.Operators Point) (c : ℝ) : |
| 258 | Agrees U (o.radialDiv c f) (o.radialDiv c f') := |
| 259 | (hf.dr hU o).add (((refl o.invRadius).mul hf).smul c) |
| 260 | theorem viscosity (hf : Agrees U f f') (hU : IsOpen U) (o : MeanIncrementBounds.Operators Point) (c : ℝ) : |
| 261 | Agrees U (o.viscosity c f) (o.viscosity c f') := ActualCorrectionModels.fiberAgreement_viscosity hU o c hf |
| 262 | |
| 263 | end Agrees |
| 264 | |
| 265 | structure TripleAgrees (U : Set Slow) (m m' : MeanIncrementBounds.Triple Point) : Prop where |
| 266 | radial : Agrees U m.radial m'.radial |
| 267 | angular : Agrees U m.angular m'.angular |
| 268 | axial : Agrees U m.axial m'.axial |
| 269 | |
| 270 | namespace TripleAgrees |
| 271 | |
| 272 | variable {U : Set Slow} {b b' m m' : MeanIncrementBounds.Triple Point} |
| 273 | (hb : TripleAgrees U b b') (hm : TripleAgrees U m m') |
| 274 | |
| 275 | include hb hm |
| 276 | |
| 277 | theorem thetaRadial : Agrees U (MeanIncrementBounds.thetaRadial b m) (MeanIncrementBounds.thetaRadial b' m') := |
| 278 | ((hb.radial.mul hm.angular).add (hm.radial.mul hb.angular)).add (hm.radial.mul hm.angular) |
| 279 | theorem thetaAxial : Agrees U (MeanIncrementBounds.thetaAxial b m) (MeanIncrementBounds.thetaAxial b' m') := |
| 280 | ((hb.axial.mul hm.angular).add (hb.angular.mul hm.axial)).add (hm.axial.mul hm.angular) |
| 281 | theorem axialRadial : Agrees U (MeanIncrementBounds.axialRadial b m) (MeanIncrementBounds.axialRadial b' m') := |
| 282 | ((hb.radial.mul hm.axial).add (hm.radial.mul hb.axial)).add (hm.radial.mul hm.axial) |
| 283 | theorem axialAxial : Agrees U (MeanIncrementBounds.axialAxial b m) (MeanIncrementBounds.axialAxial b' m') := |
| 284 | ((hb.axial.mul hm.axial).smul 2).add (hm.axial.mul hm.axial) |
| 285 | theorem radialRadial : Agrees U (MeanIncrementBounds.radialRadial b m) (MeanIncrementBounds.radialRadial b' m') := |
| 286 | ((hb.radial.mul hm.radial).smul 2).add (hm.radial.mul hm.radial) |
| 287 | theorem radialAngular : Agrees U (MeanIncrementBounds.radialAngular b m) (MeanIncrementBounds.radialAngular b' m') := |
| 288 | ((hb.angular.mul hm.angular).smul 2).add (hm.angular.mul hm.angular) |
| 289 | |
| 290 | end TripleAgrees |
| 291 | |
| 292 | theorem thetaResidual_agrees {U : Set Slow} (hU : IsOpen U) (o : MeanIncrementBounds.Operators Point) |
| 293 | {b b' m m' : MeanIncrementBounds.Triple Point} (hb : TripleAgrees U b b') (hm : TripleAgrees U m m') |
| 294 | {W W' : Fin 3 → Fin 3 → ScalarField} (hW : ∀ i j, Agrees U (W i j) (W' i j)) |
| 295 | {T T' : ScalarField} (hT : Agrees U T T') : |
| 296 | Agrees U (MeanIncrementBounds.thetaResidual o b m W T) (MeanIncrementBounds.thetaResidual o b' m' W' T') := |
| 297 | ((((hm.angular.time hU o).add (((hb.thetaRadial hm).add (hW 0 1)).radialDiv hU o 2)).add |
| 298 | (((hb.thetaAxial hm).add (hW 2 1)).dz hU o)).sub |
| 299 | (hm.angular.viscosity hU o 1)).sub (hT.radialDiv hU o 2) |
| 300 | |
| 301 | theorem axialResidual_agrees {U : Set Slow} (hU : IsOpen U) (o : MeanIncrementBounds.Operators Point) |
| 302 | {b b' m m' : MeanIncrementBounds.Triple Point} (hb : TripleAgrees U b b') (hm : TripleAgrees U m m') |
| 303 | {W W' : Fin 3 → Fin 3 → ScalarField} (hW : ∀ i j, Agrees U (W i j) (W' i j)) |
| 304 | {p p' T T' : ScalarField} (hp : Agrees U p p') (hT : Agrees U T T') : |
| 305 | Agrees U (MeanIncrementBounds.axialResidual o b m W p T) (MeanIncrementBounds.axialResidual o b' m' W' p' T') := |
| 306 | ((((hm.axial.time hU o).add (((hb.axialRadial hm).add (hW 0 2)).radialDiv hU o 1)).add |
| 307 | ((((hb.axialAxial hm).add (hW 2 2)).add hp).dz hU o)).sub |
| 308 | (hm.axial.viscosity hU o 0)).sub (hT.radialDiv hU o 1) |
| 309 | |
| 310 | theorem gr_agrees {U : Set Slow} (hU : IsOpen U) (o : MeanIncrementBounds.Operators Point) |
| 311 | {b b' m m' : MeanIncrementBounds.Triple Point} (hb : TripleAgrees U b b') (hm : TripleAgrees U m m') |
| 312 | {W W' : Fin 3 → Fin 3 → ScalarField} (hW : ∀ i j, Agrees U (W i j) (W' i j)) : |
| 313 | Agrees U (MeanIncrementBounds.gr o b m W) (MeanIncrementBounds.gr o b' m' W') := |
| 314 | (((((hm.radial.time hU o).add (((hb.radialRadial hm).add (hW 0 0)).radialDiv hU o 1)).add |
| 315 | (((hb.axialRadial hm).add (hW 2 0)).dz hU o)).sub |
| 316 | ((Agrees.refl o.invRadius).mul ((hb.radialAngular hm).add (hW 1 1)))).sub |
| 317 | (hm.radial.viscosity hU o 1)).neg |
| 318 | |
| 319 | /-! ## Primitive inputs and their literal state -/ |
| 320 | |
| 321 | /-- Only primitive fields are supplied. No covariance, residual, or signed |
| 322 | request continuation is part of this structure. -/ |
| 323 | structure Primitives {coord : ℝ} (P : SignedStressPrimitive.Patch) (W : OffplaneCorrectionExtensions.Window coord P.a P.b) |
| 324 | (u : CorrectionState.State Point) where |
| 325 | radial : ∀ n, OffplaneCorrectionExtensions.SupportedContinuation W (u.mean.radial n) |
| 326 | angular : ∀ n, OffplaneCorrectionExtensions.SupportedContinuation W (u.mean.angular n) |
| 327 | axial : ∀ n, OffplaneCorrectionExtensions.SupportedContinuation W (u.mean.axial n) |
| 328 | pressure : ∀ n, OffplaneCorrectionExtensions.SupportedContinuation W (u.pressure n) |
| 329 | oscillation : CorrectionState.Oscillation Point |
| 330 | oscillation_smooth : ∀ n i, ContDiffOn ℝ ∞ (fun x => oscillation n x i) |
| 331 | (PhysicalMeanDomain.slowDomain W.carrier ×ˢ univ) |
| 332 | oscillation_supported : ∀ n i θ, VariableGaugeMean.SupportedGauge P.a P.b (OffplaneCorrectionExtensions.stableLength coord) W.carrier |
| 333 | (fun x => oscillation n (x, θ) i) |
| 334 | oscillation_agrees : ∀ n i θ, OffplaneCorrectionExtensions.FiberAgreement W.carrier |
| 335 | (fun x => oscillation n (x, θ) i) (fun x => u.oscillation n (x, θ) i) |
| 336 | |
| 337 | namespace Primitives |
| 338 | |
| 339 | variable {coord : ℝ} {P : SignedStressPrimitive.Patch} {W : OffplaneCorrectionExtensions.Window coord P.a P.b} |
| 340 | {u : CorrectionState.State Point} (d : Primitives P W u) |
| 341 | |
| 342 | noncomputable def state : CorrectionState.State Point := |
| 343 | {u with |
| 344 | mean := ⟨fun n => (d.radial n).value, fun n => (d.angular n).value, fun n => (d.axial n).value⟩ |
| 345 | pressure := fun n => (d.pressure n).value |
| 346 | oscillation := d.oscillation } |
| 347 | |
| 348 | theorem mean_localShell : LocalRankDefect.LocalTriple W.lower W.upper W.carrier d.state.mean := |
| 349 | ⟨⟨fun n => (d.radial n).smooth, fun n => W.fixed_support (d.radial n).supported⟩, |
| 350 | ⟨fun n => (d.angular n).smooth, fun n => W.fixed_support (d.angular n).supported⟩, |
| 351 | ⟨fun n => (d.axial n).smooth, fun n => W.fixed_support (d.axial n).supported⟩⟩ |
| 352 | |
| 353 | theorem mean_supported : SupportedTriple P.a P.b (OffplaneCorrectionExtensions.stableLength coord) W.carrier d.state.mean := |
| 354 | ⟨fun n => (d.radial n).supported, fun n => (d.angular n).supported, fun n => (d.axial n).supported⟩ |
| 355 | |
| 356 | theorem pressure_localShell : LocalRankDefect.LocalShell W.lower W.upper W.carrier d.state.pressure := |
| 357 | ⟨fun n => (d.pressure n).smooth, fun n => W.fixed_support (d.pressure n).supported⟩ |
| 358 | |
| 359 | theorem pressure_supported : Supported P.a P.b (OffplaneCorrectionExtensions.stableLength coord) W.carrier d.state.pressure := |
| 360 | fun n => (d.pressure n).supported |
| 361 | |
| 362 | theorem covariance_localShell (i j : Fin 3) : |
| 363 | LocalRankDefect.LocalShell W.lower W.upper W.carrier (d.state.covariance i j) := |
| 364 | ⟨covariance_smooth W.isOpen d.state d.oscillation_smooth i j, |
| 365 | fun n => W.fixed_support (covariance_supported d.state d.oscillation_supported i j n)⟩ |
| 366 | |
| 367 | theorem covariance_supported (i j : Fin 3) : |
| 368 | Supported P.a P.b (OffplaneCorrectionExtensions.stableLength coord) W.carrier (d.state.covariance i j) := |
| 369 | SignedRequestContinuation.covariance_supported d.state d.oscillation_supported i j |
| 370 | |
| 371 | theorem mean_agrees : TripleAgrees W.carrier d.state.mean u.mean := |
| 372 | ⟨fun n => (d.radial n).agrees, fun n => (d.angular n).agrees, fun n => (d.axial n).agrees⟩ |
| 373 | |
| 374 | theorem pressure_agrees : Agrees W.carrier d.state.pressure u.pressure := |
| 375 | fun n => (d.pressure n).agrees |
| 376 | |
| 377 | theorem covariance_agrees (i j : Fin 3) : Agrees W.carrier (d.state.covariance i j) (u.covariance i j) := |
| 378 | covariance_agreement d.oscillation_agrees i j |
| 379 | |
| 380 | end Primitives |
| 381 | |
| 382 | /-! ## The moving signed primitive at any positive smooth scale -/ |
| 383 | |
| 384 | noncomputable def profileMap (q : Slow → ℝ) (x : Point) : Point := |
| 385 | (x.1 / Real.sqrt (q x.2.1), x.2) |
| 386 | |
| 387 | noncomputable def inverseProfileMap (q : Slow → ℝ) (x : Point) : Point := |
| 388 | (Real.sqrt (q x.2.1) * x.1, x.2) |
| 389 | |
| 390 | theorem profileMap_smooth {U : Set Slow} {q : Slow → ℝ} |
| 391 | (hq : ContDiffOn ℝ ∞ q U) (hp : ∀ s ∈ U, 0 < q s) : |
| 392 | ContDiffOn ℝ ∞ (profileMap q) (PhysicalMeanDomain.slowDomain U) := |
| 393 | (contDiffOn_fst.div ((hq.comp contDiffOn_snd.fst (fun _ hx => hx)).sqrt |
| 394 | (fun _ hx => (hp _ hx).ne')) (fun _ hx => (Real.sqrt_pos.mpr (hp _ hx)).ne')).prodMk contDiffOn_snd |
| 395 | |
| 396 | theorem inverseProfileMap_smooth {U : Set Slow} {q : Slow → ℝ} |
| 397 | (hq : ContDiffOn ℝ ∞ q U) (hp : ∀ s ∈ U, 0 < q s) : |
| 398 | ContDiffOn ℝ ∞ (inverseProfileMap q) (PhysicalMeanDomain.slowDomain U) := |
| 399 | (((hq.comp contDiffOn_snd.fst (fun _ hx => hx)).sqrt (fun _ hx => (hp _ hx).ne')).mul |
| 400 | contDiffOn_fst).prodMk contDiffOn_snd |
| 401 | |
| 402 | theorem inverseProfileMap_supported (P : SignedStressPrimitive.Patch) {U : Set Slow} {q : Slow → ℝ} |
| 403 | (hp : ∀ s ∈ U, 0 < q s) {f : Point → ℝ} |
| 404 | (hs : VariableGaugeMean.SupportedGauge P.a P.b (SignedStressPrimitive.lengthScale q) U f) : |
| 405 | PhysicalMeanDomain.SupportedOn P.a P.b U (fun x => f (inverseProfileMap q x)) := by |
| 406 | intro x hx hn |
| 407 | have h := hs (inverseProfileMap q x) hx hn |
| 408 | have he : 0 < Real.sqrt (q x.2.1) := Real.sqrt_pos.mpr (hp _ hx) |
| 409 | exact ⟨(mul_le_mul_iff_right₀ he).mp h.1, (mul_le_mul_iff_right₀ he).mp h.2⟩ |
| 410 | |
| 411 | theorem physicalBarSigma_profile (P : SignedStressPrimitive.Patch) (e : ℕ) (q : Slow → ℝ) (f : Point → ℝ) (x : Point) : |
| 412 | SignedStressPrimitive.physicalBarSigma P e q f (x.1, x.2.1) = |
| 413 | Real.sqrt (q x.2.1) * SignedStressPrimitive.barSigma P e (fun y => f (inverseProfileMap q y)) |
| 414 | ((profileMap q x).1, x.2.1) := rfl |
| 415 | |
| 416 | theorem physicalBarSigma_smooth (P : SignedStressPrimitive.Patch) (e : ℕ) {U : Set Slow} (hU : IsOpen U) |
| 417 | {q : Slow → ℝ} (hq : ContDiffOn ℝ ∞ q U) (hp : ∀ s ∈ U, 0 < q s) |
| 418 | {f : Point → ℝ} (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U)) |
| 419 | (hs : VariableGaugeMean.SupportedGauge P.a P.b (SignedStressPrimitive.lengthScale q) U f) : |
| 420 | ContDiffOn ℝ ∞ (fun x : Point => SignedStressPrimitive.physicalBarSigma P e q f (x.1, x.2.1)) |
| 421 | (PhysicalMeanDomain.slowDomain U) := by |
| 422 | have hg := hf.comp (inverseProfileMap_smooth hq hp) (fun _ hx => hx) |
| 423 | have hgs := inverseProfileMap_supported P hp hs |
| 424 | have hb := LocalSignedRequest.sigma_contDiffOn P e hU |
| 425 | (PhysicalMeanDomain.liftedTorusAverage_contDiffOn hU hg) |
| 426 | (PhysicalMeanDomain.liftedTorusAverage_supportedOn hU hg hgs) |
| 427 | have hell : ContDiffOn ℝ ∞ (fun x : Point => Real.sqrt (q x.2.1)) |
| 428 | (PhysicalMeanDomain.slowDomain U) := |
| 429 | (hq.comp contDiffOn_snd.fst (fun _ hx => hx)).sqrt (fun _ hx => (hp _ hx).ne') |
| 430 | have h := hell.mul (hb.comp (profileMap_smooth hq hp) (fun _ hx => hx)) |
| 431 | simp only [Function.comp_def, SignedWaveUpdate.sigma_liftedTorusAverage] at h |
| 432 | exact h |
| 433 | |
| 434 | /-- Freezing is used only to apply the exact one-fiber integral theorem; |
| 435 | the smooth continuation above retains the full slow dependence. -/ |
| 436 | noncomputable def frozenAverage (f : Point → ℝ) (s : Slow) (x : ℝ × ℝ) : ℝ := |
| 437 | PressureStream.torusAverage f (x.1, s) |
| 438 | |
| 439 | theorem frozenAverage_smooth {U : Set Slow} (hU : IsOpen U) {s : Slow} (hs : s ∈ U) |
| 440 | {f : Point → ℝ} (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U)) : |
| 441 | ContDiff ℝ ∞ (frozenAverage f s) := by |
| 442 | have hb := PhysicalMeanDomain.liftedTorusAverage_contDiffOn hU hf |
| 443 | rw [contDiff_iff_contDiffAt] |
| 444 | intro x |
| 445 | change ContDiffAt ℝ ∞ (fun z : ℝ × ℝ => |
| 446 | MeanMomentBounds.liftedTorusAverage f (z.1, (s, (0 : Slow)))) x |
| 447 | exact (hb.contDiffAt ((PhysicalMeanDomain.slowDomain_open hU).mem_nhds hs)).comp x |
| 448 | (contDiffAt_fst.prodMk (contDiffAt_const.prodMk contDiffAt_const)) |
| 449 | |
| 450 | theorem frozenAverage_supported (P : SignedStressPrimitive.Patch) {U : Set Slow} {q : Slow → ℝ} |
| 451 | (hp : ∀ s ∈ U, 0 < q s) {s : Slow} (hs : s ∈ U) {f : Point → ℝ} |
| 452 | (hfs : VariableGaugeMean.SupportedGauge P.a P.b (SignedStressPrimitive.lengthScale q) U f) : |
| 453 | SignedStressPrimitive.PhysicalSupport P (fun _ : ℝ => q s) (frozenAverage f s) := by |
| 454 | intro x hx |
| 455 | by_contra hn |
| 456 | apply hx |
| 457 | apply PressureStream.torusAverage_zero_of_forall |
| 458 | intro Y |
| 459 | by_contra hY |
| 460 | have hh := hfs (x.1, (s, Y)) hs hY |
| 461 | have hpos : 0 < SignedStressPrimitive.lengthScale q s := Real.sqrt_pos.mpr (hp _ hs) |
| 462 | apply hn |
| 463 | exact ⟨(le_div_iff₀ hpos).mpr (by simpa only [mul_comm] using hh.1), |
| 464 | (div_le_iff₀ hpos).mpr (by simpa only [mul_comm] using hh.2)⟩ |
| 465 | |
| 466 | theorem physicalBarSigma_frozen (P : SignedStressPrimitive.Patch) (e : ℕ) (q : Slow → ℝ) |
| 467 | (f : Point → ℝ) (s : Slow) (r : ℝ) : |
| 468 | SignedStressPrimitive.physicalBarSigma P e q f (r, s) = |
| 469 | SignedStressPrimitive.physicalSigma P e (fun _ : ℝ => q s) (frozenAverage f s) (r, 0) := |
| 470 | LocalSignedRequest.physicalSigma_fiber_congr (S := Slow) (T := ℝ) P e |
| 471 | (q := q) (q' := fun _ : ℝ => q s) (f := PressureStream.torusAverage f) |
| 472 | (g := frozenAverage f s) (s := s) (t := 0) rfl (fun _ => rfl) r |
| 473 | |
| 474 | theorem physicalBarSigma_supported (P : SignedStressPrimitive.Patch) (e : ℕ) {U : Set Slow} (hU : IsOpen U) |
| 475 | {q : Slow → ℝ} (hp : ∀ s ∈ U, 0 < q s) |
| 476 | {f : Point → ℝ} (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U)) |
| 477 | (hs : VariableGaugeMean.SupportedGauge P.a P.b (SignedStressPrimitive.lengthScale q) U f) : |
| 478 | VariableGaugeMean.SupportedGauge P.a P.b (SignedStressPrimitive.lengthScale q) U |
| 479 | (fun x : Point => SignedStressPrimitive.physicalBarSigma P e q f (x.1, x.2.1)) := by |
| 480 | intro x hx hn |
| 481 | change SignedStressPrimitive.physicalBarSigma P e q f (x.1, x.2.1) ≠ 0 at hn |
| 482 | rw [physicalBarSigma_frozen] at hn |
| 483 | have h := SignedStressPrimitive.physicalSigma_supported P e contDiff_const (fun _ => hp _ hx) |
| 484 | (frozenAverage_smooth hU hx hf) (frozenAverage_supported P hp hx hs) (x.1, 0) hn |
| 485 | have he : 0 < SignedStressPrimitive.lengthScale q x.2.1 := Real.sqrt_pos.mpr (hp _ hx) |
| 486 | exact ⟨by simpa only [mul_comm] using (le_div_iff₀ he).mp h.1, |
| 487 | by simpa only [mul_comm] using (div_le_iff₀ he).mp h.2⟩ |
| 488 | |
| 489 | theorem physicalBarSigma_integral (P : SignedStressPrimitive.Patch) (e : ℕ) {U : Set Slow} (hU : IsOpen U) |
| 490 | {q : Slow → ℝ} (hp : ∀ s ∈ U, 0 < q s) |
| 491 | {f : Point → ℝ} (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U)) |
| 492 | (hs : VariableGaugeMean.SupportedGauge P.a P.b (SignedStressPrimitive.lengthScale q) U f) {s : Slow} (hsp : s ∈ U) (r : ℝ) : |
| 493 | SignedStressPrimitive.physicalBarSigma P e q f (r, s) = -(∫ t in (0 : ℝ)..r, |
| 494 | t ^ e * SignedStressPrimitive.physicalAdjusted P e q (PressureStream.torusAverage f) (t, s)) / r ^ e := by |
| 495 | rw [physicalBarSigma_frozen] |
| 496 | exact SignedStressPrimitive.physicalSigma_eq_negative_primitive P e contDiff_const (fun _ => hp _ hsp) |
| 497 | (frozenAverage_smooth hU hsp hf) (frozenAverage_supported P hp hsp hs) (r, 0) |
| 498 | |
| 499 | theorem physicalBarSigma_agrees (P : SignedStressPrimitive.Patch) (e : ℕ) {U : Set Slow} |
| 500 | {q q' : Slow → ℝ} (hq : EqOn q q' (U ∩ OffplaneCorrectionExtensions.positiveSlow)) |
| 501 | {f g : Point → ℝ} (he : OffplaneCorrectionExtensions.FiberAgreement U f g) : |
| 502 | OffplaneCorrectionExtensions.FiberAgreement U |
| 503 | (fun x : Point => SignedStressPrimitive.physicalBarSigma P e q f (x.1, x.2.1)) |
| 504 | (fun x : Point => SignedStressPrimitive.physicalBarSigma P e q' g (x.1, x.2.1)) := by |
| 505 | intro x hx |
| 506 | apply LocalSignedRequest.physicalSigma_fiber_congr P e (hq hx) |
| 507 | intro r |
| 508 | exact PressureStream.torusAverage_congr_slice (r, x.2.1) (fun Y => he hx) |
| 509 | |
| 510 | /-- Continuation of the exact signed primitive, including both averages |
| 511 | and its moving radial scaling. -/ |
| 512 | noncomputable def signedPrimitive {coord : ℝ} (hc : 0 < coord) (hc1 : coord < 1) |
| 513 | {P : SignedStressPrimitive.Patch} {W : OffplaneCorrectionExtensions.Window coord P.a P.b} {f : Point → ℝ} |
| 514 | (d : OffplaneCorrectionExtensions.SupportedContinuation W f) (e : ℕ) : |
| 515 | OffplaneCorrectionExtensions.SupportedContinuation W (fun x : Point => SignedStressPrimitive.physicalBarSigma P e |
| 516 | (SimilarityCoordinates.coordinateQ coord) f (x.1, x.2.1)) where |
| 517 | value x := SignedStressPrimitive.physicalBarSigma P e (OffplaneCorrectionExtensions.stableQ coord) d.value (x.1, x.2.1) |
| 518 | smooth := physicalBarSigma_smooth P e W.isOpen |
| 519 | (fun _ hx => (OffplaneCorrectionExtensions.stableQ_contDiffAt hc hc1 (W.stable hx)).contDiffWithinAt) |
| 520 | (fun _ hx => OffplaneCorrectionExtensions.stableQ_pos (W.stable hx)) d.smooth d.supported |
| 521 | supported := physicalBarSigma_supported P e W.isOpen |
| 522 | (fun _ hx => OffplaneCorrectionExtensions.stableQ_pos (W.stable hx)) d.smooth d.supported |
| 523 | agrees := physicalBarSigma_agrees P e |
| 524 | (fun _ hx => OffplaneCorrectionExtensions.stableQ_eq_coordinateQ hc hc1 hx.2) d.agrees |
| 525 | |
| 526 | /-! ## Instantiation with the same constructed slow base -/ |
| 527 | |
| 528 | section ActualContext |
| 529 | |
| 530 | variable {F : OutgoingProfile.Profile} {W₀ : NominalProfile.Witness F} |
| 531 | (H : NominalConeAssembly.Certificate W₀) {ld : ModulatedProfileAssembly.LoopData W₀} |
| 532 | (v : ModulatedProfileAssembly.Witness ld) (upper : ℝ) (B : ℕ) (index : ℕ → ℕ) |
| 533 | {P : SignedStressPrimitive.Patch} (W : OffplaneCorrectionExtensions.Window (2 * F.data.h) P.a P.b) |
| 534 | |
| 535 | theorem actual_base_smooth : MeanIncrementBounds.SmoothTriple (LocalRankDefect.positiveDomain W.carrier) |
| 536 | (ActualCorrectionModels.context H v upper B index).base := by |
| 537 | have hsub : LocalRankDefect.positiveDomain W.carrier ⊆ ActualCorrectionModels.contextDomain F.data.h := |
| 538 | fun _ hx => ⟨W.stable hx.2, hx.1⟩ |
| 539 | have hb := ActualCorrectionModels.context_base_smooth H v upper B index |
| 540 | exact ⟨fun n => (hb.radial n).mono hsub, fun n => (hb.angular n).mono hsub, |
| 541 | fun n => (hb.axial n).mono hsub⟩ |
| 542 | |
| 543 | theorem actual_operators_local : LocalRankDefect.LocalOperators W.carrier (ActualCorrectionModels.context H v upper B index).operators := |
| 544 | CommonBaseContext.context_operators_local H v upper B W.carrier index |
| 545 | |
| 546 | theorem actual_stress_smooth (n : ℕ) : |
| 547 | ContDiffOn ℝ ∞ ((ActualCorrectionModels.context H v upper B index).virtualTheta n) (PhysicalMeanDomain.slowDomain W.carrier) ∧ |
| 548 | ContDiffOn ℝ ∞ ((ActualCorrectionModels.context H v upper B index).virtualAxial n) (PhysicalMeanDomain.slowDomain W.carrier) := by |
| 549 | constructor <;> intro x hx |
| 550 | · exact (((ActualCorrectionModels.virtualStress_smoothAt H v upper B n |
| 551 | (p := BaseContextAssembly.slowCoordinates x) (W.stable hx)).comp x |
| 552 | BaseContextAssembly.slowCoordinates.contDiff.contDiffAt).fst).contDiffWithinAt |
| 553 | · exact (((ActualCorrectionModels.virtualStress_smoothAt H v upper B n |
| 554 | (p := BaseContextAssembly.slowCoordinates x) (W.stable hx)).comp x |
| 555 | BaseContextAssembly.slowCoordinates.contDiff.contDiffAt).snd).contDiffWithinAt |
| 556 | |
| 557 | theorem actual_base_agrees : TripleAgrees W.carrier (ActualCorrectionModels.context H v upper B index).base |
| 558 | (CommonBaseContext.context H v upper B index).base := |
| 559 | ⟨fun n => (ActualCorrectionModels.context_base_fiberAgreement H v upper B index n W.carrier).1, |
| 560 | fun n => (ActualCorrectionModels.context_base_fiberAgreement H v upper B index n W.carrier).2.1, |
| 561 | fun n => (ActualCorrectionModels.context_base_fiberAgreement H v upper B index n W.carrier).2.2⟩ |
| 562 | |
| 563 | variable {u : CorrectionState.State Point} (d : Primitives P W u) |
| 564 | |
| 565 | /-- The continued radial source is computed before pressure reconstruction. -/ |
| 566 | noncomputable def radialSource (n : ℕ) : |
| 567 | OffplaneCorrectionExtensions.SupportedContinuation W (u.gr (CommonBaseContext.context H v upper B index) n) where |
| 568 | value := d.state.gr (ActualCorrectionModels.context H v upper B index) n |
| 569 | smooth := (LocalRankDefect.gr_localShell W.lower_pos W.isOpen |
| 570 | (actual_base_smooth H v upper B index W) d.mean_localShell |
| 571 | (actual_operators_local H v upper B index W) d.state.covariance d.covariance_localShell).smooth n |
| 572 | supported := gr_supported W.isOpen |
| 573 | (W.length_smooth (by linarith [F.data.h_pos]) (by linarith [F.data.h_lt_half])).continuousOn |
| 574 | (ActualCorrectionModels.context H v upper B index).operators (ActualCorrectionModels.context H v upper B index).base |
| 575 | d.mean_supported d.state.covariance d.covariance_supported n |
| 576 | agrees := gr_agrees W.isOpen (ActualCorrectionModels.context H v upper B index).operators |
| 577 | (actual_base_agrees H v upper B index W) d.mean_agrees d.covariance_agrees n |
| 578 | |
| 579 | /-- This is primitive support geometry for the continued virtual tensor. |
| 580 | It does not assume any residual or request bound or continuation. -/ |
| 581 | structure ContextSupport : Prop where |
| 582 | theta : Supported P.a P.b (OffplaneCorrectionExtensions.stableLength (2 * F.data.h)) W.carrier |
| 583 | (ActualCorrectionModels.context H v upper B index).virtualTheta |
| 584 | axial : Supported P.a P.b (OffplaneCorrectionExtensions.stableLength (2 * F.data.h)) W.carrier |
| 585 | (ActualCorrectionModels.context H v upper B index).virtualAxial |
| 586 | |
| 587 | variable (hT : ContextSupport H v upper B index W) |
| 588 | |
| 589 | noncomputable def thetaSource (n : ℕ) : |
| 590 | OffplaneCorrectionExtensions.SupportedContinuation W (u.thetaResidual (CommonBaseContext.context H v upper B index) n) where |
| 591 | value := d.state.thetaResidual (ActualCorrectionModels.context H v upper B index) n |
| 592 | smooth := (thetaResidual_localShell W.lower_pos W.isOpen |
| 593 | (actual_operators_local H v upper B index W) (actual_base_smooth H v upper B index W) |
| 594 | d.mean_localShell d.state.covariance d.covariance_localShell |
| 595 | ⟨fun k => (actual_stress_smooth H v upper B index W k).1, |
| 596 | fun k => W.fixed_support (hT.theta k)⟩).smooth n |
| 597 | supported := thetaResidual_supported W.isOpen |
| 598 | (W.length_smooth (by linarith [F.data.h_pos]) (by linarith [F.data.h_lt_half])).continuousOn |
| 599 | (ActualCorrectionModels.context H v upper B index).operators (ActualCorrectionModels.context H v upper B index).base |
| 600 | d.mean_supported d.state.covariance d.covariance_supported hT.theta n |
| 601 | agrees := thetaResidual_agrees W.isOpen (ActualCorrectionModels.context H v upper B index).operators |
| 602 | (actual_base_agrees H v upper B index W) d.mean_agrees d.covariance_agrees |
| 603 | (fun k => (ActualCorrectionModels.context_stress_fiberAgreement H v upper B index k W.carrier).1) n |
| 604 | |
| 605 | noncomputable def axialSource (n : ℕ) : |
| 606 | OffplaneCorrectionExtensions.SupportedContinuation W (u.axialResidual (CommonBaseContext.context H v upper B index) n) where |
| 607 | value := d.state.axialResidual (ActualCorrectionModels.context H v upper B index) n |
| 608 | smooth := (axialResidual_localShell W.lower_pos W.isOpen |
| 609 | (actual_operators_local H v upper B index W) (actual_base_smooth H v upper B index W) |
| 610 | d.mean_localShell d.state.covariance d.covariance_localShell d.pressure_localShell |
| 611 | ⟨fun k => (actual_stress_smooth H v upper B index W k).2, |
| 612 | fun k => W.fixed_support (hT.axial k)⟩).smooth n |
| 613 | supported := axialResidual_supported W.isOpen |
| 614 | (W.length_smooth (by linarith [F.data.h_pos]) (by linarith [F.data.h_lt_half])).continuousOn |
| 615 | (ActualCorrectionModels.context H v upper B index).operators (ActualCorrectionModels.context H v upper B index).base |
| 616 | d.mean_supported d.state.covariance d.covariance_supported d.pressure_supported hT.axial n |
| 617 | agrees := axialResidual_agrees W.isOpen (ActualCorrectionModels.context H v upper B index).operators |
| 618 | (actual_base_agrees H v upper B index W) d.mean_agrees d.covariance_agrees d.pressure_agrees |
| 619 | (fun k => (ActualCorrectionModels.context_stress_fiberAgreement H v upper B index k W.carrier).2) n |
| 620 | |
| 621 | /-- The moving pressure reconstruction applied to the derived radial |
| 622 | source. No pressure-output continuation is assumed here. -/ |
| 623 | noncomputable def pressureFromRadial (n : ℕ) {exponent : ℝ} (he : 0 < exponent) |
| 624 | (M : ℝ) (vr : Slow) : |
| 625 | OffplaneCorrectionExtensions.SupportedContinuation W |
| 626 | (VariableGaugeMean.meanPressure exponent P.a P.b M P.a_lt_b (VariableGaugeMean.qLength (2 * F.data.h)) vr |
| 627 | (u.gr (CommonBaseContext.context H v upper B index) n)) := |
| 628 | (radialSource H v upper B index W d n).pressure (by linarith [F.data.h_pos]) |
| 629 | (by linarith [F.data.h_lt_half]) P.a_pos P.a_lt_b he M vr |
| 630 | |
| 631 | /-- The actual pressure reconstruction preserves primitive continuation |
| 632 | data, with no assumption on its output. -/ |
| 633 | noncomputable def reconstructPrimitives (g : VariableGaugeMean.GaugeData Slow) |
| 634 | (ha : g.radial.inner = P.a) (hb : g.radial.outer = P.b) |
| 635 | (hell : ∀ n, g.length n = VariableGaugeMean.qLength (2 * F.data.h)) (he : 0 < g.radial.exponent) : |
| 636 | Primitives P W (VariableGaugeMean.reconstructState g (CommonBaseContext.context H v upper B index) u) where |
| 637 | radial := d.radial |
| 638 | angular := d.angular |
| 639 | axial := d.axial |
| 640 | pressure := fun n => by |
| 641 | let p := pressureFromRadial H v upper B index W d n he |
| 642 | (g.radial.frequency n) g.radial.radialDirection |
| 643 | refine ⟨p.value, p.smooth, p.supported, ?_⟩ |
| 644 | intro x hx |
| 645 | have h := p.agrees hx |
| 646 | change p.value x = VariableGaugeMean.meanPressure g.radial.exponent g.radial.inner |
| 647 | g.radial.outer (g.radial.frequency n) g.radial.inner_lt_outer (g.length n) |
| 648 | g.radial.radialDirection (u.gr (CommonBaseContext.context H v upper B index) n) x |
| 649 | simpa only [ha, hb, hell] using h |
| 650 | oscillation := d.oscillation |
| 651 | oscillation_smooth := d.oscillation_smooth |
| 652 | oscillation_supported := d.oscillation_supported |
| 653 | oscillation_agrees := d.oscillation_agrees |
| 654 | |
| 655 | /-- The continued reconstructed pressure is the same integral recipe at |
| 656 | the stable positive scale, applied to the derived continued radial source. -/ |
| 657 | theorem reconstructPrimitives_pressure (g : VariableGaugeMean.GaugeData Slow) |
| 658 | (ha : g.radial.inner = P.a) (hb : g.radial.outer = P.b) |
| 659 | (hell : ∀ n, g.length n = VariableGaugeMean.qLength (2 * F.data.h)) (he : 0 < g.radial.exponent) |
| 660 | (n : ℕ) (x : Point) : |
| 661 | (reconstructPrimitives H v upper B index W d g ha hb hell he).state.pressure n x = |
| 662 | VariableGaugeMean.meanPressure g.radial.exponent P.a P.b (g.radial.frequency n) P.a_lt_b |
| 663 | (OffplaneCorrectionExtensions.stableLength (2 * F.data.h)) g.radial.radialDirection |
| 664 | (d.state.gr (ActualCorrectionModels.context H v upper B index) n) x := rfl |
| 665 | |
| 666 | /-- The literal normalized request: the same two derived residuals, the same patch, |
| 667 | the actual moving signed primitive, and the original epsilon factor. -/ |
| 668 | noncomputable def fullRequest (s : WeightedClasses.StripData Point) : |
| 669 | ℕ → Point × ℝ → SignedWaveUpdate.Vec2 := |
| 670 | fun n x => (s.epsilon n)⁻¹ • |
| 671 | ![SignedStressPrimitive.physicalBarSigma P 2 (OffplaneCorrectionExtensions.stableQ (2 * F.data.h)) |
| 672 | (d.state.thetaResidual (ActualCorrectionModels.context H v upper B index) n) (x.1.1, x.1.2.1), |
| 673 | SignedStressPrimitive.physicalBarSigma P 1 (OffplaneCorrectionExtensions.stableQ (2 * F.data.h)) |
| 674 | (d.state.axialResidual (ActualCorrectionModels.context H v upper B index) n) (x.1.1, x.1.2.1)] |
| 675 | |
| 676 | include hT in |
| 677 | theorem fullRequest_smooth (s : WeightedClasses.StripData Point) (n : ℕ) : |
| 678 | ContDiffOn ℝ ∞ (fullRequest H v upper B index W d s n) |
| 679 | (PhysicalMeanDomain.slowDomain W.carrier ×ˢ univ) := by |
| 680 | let θ := signedPrimitive (by linarith [F.data.h_pos]) (by linarith [F.data.h_lt_half]) |
| 681 | (thetaSource H v upper B index W d hT n) 2 |
| 682 | let z := signedPrimitive (by linarith [F.data.h_pos]) (by linarith [F.data.h_lt_half]) |
| 683 | (axialSource H v upper B index W d hT n) 1 |
| 684 | have hθ : ContDiffOn ℝ ∞ (fun x : Point × ℝ => θ.value x.1) |
| 685 | (PhysicalMeanDomain.slowDomain W.carrier ×ˢ univ) := |
| 686 | θ.smooth.comp contDiffOn_fst (fun _ hx => hx.1) |
| 687 | have hz : ContDiffOn ℝ ∞ (fun x : Point × ℝ => z.value x.1) |
| 688 | (PhysicalMeanDomain.slowDomain W.carrier ×ˢ univ) := |
| 689 | z.smooth.comp contDiffOn_fst (fun _ hx => hx.1) |
| 690 | apply contDiffOn_pi.mpr |
| 691 | intro i |
| 692 | fin_cases i |
| 693 | · exact contDiffOn_const.mul hθ |
| 694 | · exact contDiffOn_const.mul hz |
| 695 | |
| 696 | include hT in |
| 697 | theorem fullRequest_supported (s : WeightedClasses.StripData Point) (n : ℕ) (i : Fin 2) (θ : ℝ) : |
| 698 | VariableGaugeMean.SupportedGauge P.a P.b (OffplaneCorrectionExtensions.stableLength (2 * F.data.h)) W.carrier |
| 699 | (fun x => fullRequest H v upper B index W d s n (x, θ) i) := by |
| 700 | let th := signedPrimitive (by linarith [F.data.h_pos]) (by linarith [F.data.h_lt_half]) |
| 701 | (thetaSource H v upper B index W d hT n) 2 |
| 702 | let z := signedPrimitive (by linarith [F.data.h_pos]) (by linarith [F.data.h_lt_half]) |
| 703 | (axialSource H v upper B index W d hT n) 1 |
| 704 | intro x hx hn |
| 705 | fin_cases i |
| 706 | · exact th.supported x hx (right_ne_zero_of_mul hn) |
| 707 | · exact z.supported x hx (right_ne_zero_of_mul hn) |
| 708 | |
| 709 | include hT in |
| 710 | theorem fullRequest_agrees (s : WeightedClasses.StripData Point) (n : ℕ) (θ : ℝ) : |
| 711 | OffplaneCorrectionExtensions.FiberAgreement W.carrier |
| 712 | (fun x => fullRequest H v upper B index W d s n (x, θ)) |
| 713 | (fun x => LocalSignedRequest.fullRequest s P (2 * F.data.h) |
| 714 | (CommonBaseContext.context H v upper B index) u n (x, θ)) := by |
| 715 | let th := signedPrimitive (by linarith [F.data.h_pos]) (by linarith [F.data.h_lt_half]) |
| 716 | (thetaSource H v upper B index W d hT n) 2 |
| 717 | let z := signedPrimitive (by linarith [F.data.h_pos]) (by linarith [F.data.h_lt_half]) |
| 718 | (axialSource H v upper B index W d hT n) 1 |
| 719 | intro x hx |
| 720 | funext i |
| 721 | fin_cases i |
| 722 | · exact congrArg ((s.epsilon n)⁻¹ * ·) (th.agrees hx) |
| 723 | · exact congrArg ((s.epsilon n)⁻¹ * ·) (z.agrees hx) |
| 724 | |
| 725 | noncomputable def fullRequestComponent (s : WeightedClasses.StripData Point) (n : ℕ) (i : Fin 2) (θ : ℝ) : |
| 726 | OffplaneCorrectionExtensions.SupportedContinuation W (fun x => LocalSignedRequest.fullRequest s P (2 * F.data.h) |
| 727 | (CommonBaseContext.context H v upper B index) u n (x, θ) i) where |
| 728 | value x := fullRequest H v upper B index W d s n (x, θ) i |
| 729 | smooth := (contDiffOn_pi.mp ((fullRequest_smooth H v upper B index W d hT s n).comp |
| 730 | (contDiffOn_id.prodMk contDiffOn_const) (fun _ hx => ⟨hx, mem_univ _⟩))) i |
| 731 | supported := fullRequest_supported H v upper B index W d hT s n i θ |
| 732 | agrees := fun _ hx => congrFun (fullRequest_agrees H v upper B index W d hT s n θ hx) i |
| 733 | |
| 734 | theorem fullRequest_free_variables (s : WeightedClasses.StripData Point) (n : ℕ) |
| 735 | (r : ℝ) (p Y Y' : Slow) (θ θ' : ℝ) : |
| 736 | fullRequest H v upper B index W d s n ((r, (p, Y)), θ) = |
| 737 | fullRequest H v upper B index W d s n ((r, (p, Y')), θ') := rfl |
| 738 | |
| 739 | end ActualContext |
| 740 | |
| 741 | /-! The agreement is a neighborhood equality at positive time, so every |
| 742 | fixed ambient derivative tensor is also the tensor of the original field. -/ |
| 743 | theorem continuation_jets {coord a b : ℝ} {W : OffplaneCorrectionExtensions.Window coord a b} |
| 744 | {f : Point → ℝ} (d : OffplaneCorrectionExtensions.SupportedContinuation W f) {x : Point} |
| 745 | (hx : x.2.1 ∈ W.carrier) (ht : 0 < x.2.1.1) (m : ℕ) : |
| 746 | iteratedFDeriv ℝ m d.value x = iteratedFDeriv ℝ m f x := by |
| 747 | have he := d.agrees.eventuallyEq W.isOpen hx ht |
| 748 | have hw : d.value =ᶠ[𝓝[univ] x] f := by simpa only [nhdsWithin_univ] using he |
| 749 | simpa only [iteratedFDerivWithin_univ] using hw.iteratedFDerivWithin_eq he.self_of_nhds m |
| 750 | |
| 751 | end NavierStokes.SignedRequestContinuation |