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.MeanIncrementBounds |
| 2 | import NavierStokes.HarmonicFields |
| 3 | import NavierStokes.TemporalMeanUpdate |
| 4 | import NavierStokes.MeanRankUpdate |
| 5 | |
| 6 | /-! |
| 7 | # Concrete fields and residuals for the correction construction |
| 8 | |
| 9 | The state stores fields, rather than a residual-solving operator. Covariances |
| 10 | are actual angular integrals, and the mean residuals are the differential |
| 11 | expressions in `MeanIncrementBounds`. The three sorts of excluded additive |
| 12 | errors are retained as fields on the same space as the oscillations. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | namespace NavierStokes.CorrectionState |
| 18 | |
| 19 | open Set MeasureTheory MeanIncrementBounds WeightedClasses |
| 20 | open scoped BigOperators ContDiff |
| 21 | |
| 22 | variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 23 | |
| 24 | abbrev ScalarField (D : Type) := MeanIncrementBounds.Field D |
| 25 | |
| 26 | abbrev Oscillation (D : Type) := ℕ → (D × ℝ) → Fin 3 → ℝ |
| 27 | abbrev OscillatoryScalar (D : Type) := ℕ → (D × ℝ) → ℝ |
| 28 | abbrev MeanVector (D : Type) := ℕ → D → Fin 3 → ℝ |
| 29 | |
| 30 | /-- Fixed data used by every correction stage. -/ |
| 31 | structure Context (D : Type) where |
| 32 | operators : Operators D |
| 33 | base : Triple D |
| 34 | virtualTheta : ScalarField D |
| 35 | virtualAxial : ScalarField D |
| 36 | |
| 37 | /-- Additive errors are fields, not an exemption from the residual identity. -/ |
| 38 | structure ExcludedErrors (D : Type) where |
| 39 | base : Oscillation D |
| 40 | gaussian : Oscillation D |
| 41 | aliasError : Oscillation D |
| 42 | |
| 43 | namespace ExcludedErrors |
| 44 | |
| 45 | noncomputable def zero : ExcludedErrors D := ⟨0, 0, 0⟩ |
| 46 | |
| 47 | noncomputable def total (e : ExcludedErrors D) : Oscillation D := |
| 48 | e.base + e.gaussian + e.aliasError |
| 49 | |
| 50 | noncomputable def add (e f : ExcludedErrors D) : ExcludedErrors D := |
| 51 | ⟨e.base + f.base, e.gaussian + f.gaussian, e.aliasError + f.aliasError⟩ |
| 52 | |
| 53 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 54 | @[simp] theorem total_zero : (zero : ExcludedErrors D).total = 0 := by |
| 55 | simp [total, zero] |
| 56 | |
| 57 | end ExcludedErrors |
| 58 | |
| 59 | /-- An actual velocity/pressure state on a lifted chart and angular circle. -/ |
| 60 | structure State (D : Type) where |
| 61 | mean : Triple D |
| 62 | pressure : ScalarField D |
| 63 | oscillation : Oscillation D |
| 64 | oscillatoryPressure : OscillatoryScalar D |
| 65 | errors : ExcludedErrors D |
| 66 | |
| 67 | /-- The angular normalization agrees with the physical mean over one period. -/ |
| 68 | noncomputable def angularAverage (f : OscillatoryScalar D) : ScalarField D := |
| 69 | fun n x => (∫ θ in (0 : ℝ)..2 * Real.pi, f n (x, θ)) / (2 * Real.pi) |
| 70 | |
| 71 | noncomputable def bilinearCovariance (u v : Oscillation D) (i j : Fin 3) : ScalarField D := |
| 72 | angularAverage (fun n p => u n p i * v n p j) |
| 73 | |
| 74 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 75 | theorem angularAverage_axisymmetric (f : ScalarField D) : |
| 76 | angularAverage (fun n p => f n p.1) = f := by |
| 77 | funext n x |
| 78 | simp only [angularAverage, intervalIntegral.integral_const, sub_zero, smul_eq_mul] |
| 79 | field_simp [Real.pi_ne_zero] |
| 80 | |
| 81 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 82 | @[simp] theorem angularAverage_zero : angularAverage (0 : OscillatoryScalar D) = 0 := by |
| 83 | funext n x |
| 84 | simp [angularAverage] |
| 85 | |
| 86 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 87 | theorem bilinearCovariance_comm (u v : Oscillation D) (i j : Fin 3) : |
| 88 | bilinearCovariance u v i j = bilinearCovariance v u j i := by |
| 89 | simp only [bilinearCovariance, mul_comm] |
| 90 | |
| 91 | namespace State |
| 92 | |
| 93 | noncomputable def covariance (s : State D) (i j : Fin 3) : ScalarField D := |
| 94 | bilinearCovariance s.oscillation s.oscillation i j |
| 95 | |
| 96 | noncomputable def totalVelocity (s : State D) (c : Context D) : Oscillation D := |
| 97 | fun n p => ![c.base.radial n p.1 + s.mean.radial n p.1 + s.oscillation n p 0, |
| 98 | c.base.angular n p.1 + s.mean.angular n p.1 + s.oscillation n p 1, |
| 99 | c.base.axial n p.1 + s.mean.axial n p.1 + s.oscillation n p 2] |
| 100 | |
| 101 | /-- This is the pressure increment; the fixed base pressure is not part of a stage. -/ |
| 102 | noncomputable def totalPressureIncrement (s : State D) : OscillatoryScalar D := |
| 103 | fun n p => s.pressure n p.1 + s.oscillatoryPressure n p |
| 104 | |
| 105 | noncomputable def thetaResidual (s : State D) (c : Context D) : ScalarField D := |
| 106 | MeanIncrementBounds.thetaResidual c.operators c.base s.mean s.covariance c.virtualTheta |
| 107 | |
| 108 | noncomputable def axialResidual (s : State D) (c : Context D) : ScalarField D := |
| 109 | MeanIncrementBounds.axialResidual c.operators c.base s.mean s.covariance |
| 110 | s.pressure c.virtualAxial |
| 111 | |
| 112 | noncomputable def gr (s : State D) (c : Context D) : ScalarField D := |
| 113 | MeanIncrementBounds.gr c.operators c.base s.mean s.covariance |
| 114 | |
| 115 | noncomputable def radialResidual (s : State D) (c : Context D) : ScalarField D := |
| 116 | c.operators.dr s.pressure - s.gr c |
| 117 | |
| 118 | noncomputable def reducedMeanResidual (s : State D) (c : Context D) : MeanVector D := |
| 119 | fun n x => ![s.radialResidual c n x, s.thetaResidual c n x, s.axialResidual c n x] |
| 120 | |
| 121 | noncomputable def meanBaseError (s : State D) : MeanVector D := |
| 122 | fun n x i => angularAverage (fun k p => s.errors.base k p i) n x |
| 123 | |
| 124 | /-- Equation (32) omits the fixed base-flat error from (24); it is restored here. -/ |
| 125 | noncomputable def meanResidual (s : State D) (c : Context D) : MeanVector D := |
| 126 | s.reducedMeanResidual c + s.meanBaseError |
| 127 | |
| 128 | noncomputable def meanExcluded (s : State D) : MeanVector D := |
| 129 | fun n x i => angularAverage (fun k p => s.errors.total k p i) n x |
| 130 | |
| 131 | /-- Only the actual mean of the explicitly stored errors is removed here. -/ |
| 132 | noncomputable def meanGoodResidual (s : State D) (c : Context D) : MeanVector D := |
| 133 | s.meanResidual c - s.meanExcluded |
| 134 | |
| 135 | /-- Addition of actual fields. No estimate or cancellation is part of this definition. -/ |
| 136 | noncomputable def addIncrement (s : State D) (m : Triple D) (p : ScalarField D) |
| 137 | (u : Oscillation D) (q : OscillatoryScalar D) (e : ExcludedErrors D) : State D where |
| 138 | mean := updated s.mean m |
| 139 | pressure := s.pressure + p |
| 140 | oscillation := s.oscillation + u |
| 141 | oscillatoryPressure := s.oscillatoryPressure + q |
| 142 | errors := s.errors.add e |
| 143 | |
| 144 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 145 | theorem totalVelocity_addIncrement (s : State D) (c : Context D) (m : Triple D) |
| 146 | (p : ScalarField D) (u : Oscillation D) (q : OscillatoryScalar D) (e : ExcludedErrors D) : |
| 147 | (s.addIncrement m p u q e).totalVelocity c = |
| 148 | fun n x => s.totalVelocity c n x + |
| 149 | ![m.radial n x.1, m.angular n x.1, m.axial n x.1] + u n x := by |
| 150 | funext n x i |
| 151 | fin_cases i <;> simp [totalVelocity, addIncrement, updated] <;> ring |
| 152 | |
| 153 | end State |
| 154 | |
| 155 | /-- A single grouped label. The finite group algebra records actual harmonics. -/ |
| 156 | structure HarmonicBlock (D : Type) where |
| 157 | velocity : ℕ → Fin 3 → HarmonicFields.Coefficients D |
| 158 | pressure : ℕ → HarmonicFields.Coefficients D |
| 159 | frequency : ℕ → ℝ |
| 160 | phase : ℕ → D → ℝ |
| 161 | angularFrequency : ℕ → ℤ |
| 162 | |
| 163 | namespace HarmonicBlock |
| 164 | |
| 165 | noncomputable def oscillation (b : HarmonicBlock D) : Oscillation D := |
| 166 | fun n p i => (HarmonicFields.field (b.velocity n i) (b.frequency n) |
| 167 | (b.phase n) (b.angularFrequency n) p).re |
| 168 | |
| 169 | noncomputable def oscillatoryPressure (b : HarmonicBlock D) : OscillatoryScalar D := |
| 170 | fun n p => (HarmonicFields.field (b.pressure n) (b.frequency n) |
| 171 | (b.phase n) (b.angularFrequency n) p).re |
| 172 | |
| 173 | def BandLimited (b : HarmonicBlock D) (N : ℕ) : Prop := |
| 174 | (∀ n i, HarmonicFields.BandLimited (b.velocity n i) N) ∧ |
| 175 | ∀ n, HarmonicFields.BandLimited (b.pressure n) N |
| 176 | |
| 177 | /-- Bounds are on stripped, grouped, nonzero harmonic coefficients. -/ |
| 178 | def WaveBounds (s : StripData D) (P : ℕ → D → ℝ) (α : ℝ) |
| 179 | (b : HarmonicBlock D) : Prop := |
| 180 | ∀ (i : Fin 3) (j : ℤ), j ≠ 0 → |
| 181 | WaveClass s P α (fun n x => b.velocity n i j x) |
| 182 | |
| 183 | def PressureBounds (s : StripData D) (P : ℕ → D → ℝ) (α : ℝ) |
| 184 | (b : HarmonicBlock D) : Prop := |
| 185 | ∀ j : ℤ, j ≠ 0 → WaveClass s P α (fun n x => b.pressure n j x) |
| 186 | |
| 187 | end HarmonicBlock |
| 188 | |
| 189 | /-- The mean portion of the cumulative bounds after initialization. -/ |
| 190 | structure CumulativeBounds (s : StripData D) (u : State D) : Prop where |
| 191 | velocity : MeanIncrementBounds.CumulativeBounds s u.mean |
| 192 | pressure : MeanClass s (9 / 10) u.pressure |
| 193 | |
| 194 | /-- The mean residual portion of (36), computed from the state fields. -/ |
| 195 | structure MeanResidualBounds (s : StripData D) (σ : ℝ) (c : Context D) |
| 196 | (u : State D) : Prop where |
| 197 | angular : MeanClass s (1 + σ) (fun n x => u.meanGoodResidual c n x 1) |
| 198 | axial : MeanClass s (1 + σ) (fun n x => u.meanGoodResidual c n x 2) |
| 199 | |
| 200 | section Moments |
| 201 | |
| 202 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 203 | |
| 204 | /-- Actual radial moment of the full auxiliary torus mean. -/ |
| 205 | noncomputable def radialMoment (k : ℕ) (f : ScalarField (PressureStream.Lift S)) : ScalarField S := |
| 206 | fun n p => PressureStream.pressureMass (fun x => x.1 ^ k * f n x) p |
| 207 | |
| 208 | noncomputable def pressureDefect (c : Context (PressureStream.Lift S)) |
| 209 | (u : State (PressureStream.Lift S)) : ScalarField S := radialMoment 0 (u.gr c) |
| 210 | |
| 211 | noncomputable def thetaDefect (c : Context (PressureStream.Lift S)) |
| 212 | (u : State (PressureStream.Lift S)) : ScalarField S := |
| 213 | radialMoment 2 (thetaAxial c.base u.mean + u.covariance 2 1) |
| 214 | |
| 215 | noncomputable def axialDefect (c : Context (PressureStream.Lift S)) |
| 216 | (u : State (PressureStream.Lift S)) : ScalarField S := |
| 217 | radialMoment 1 (axialAxial c.base u.mean + u.covariance 2 2) - |
| 218 | (1 / 2 : ℝ) • radialMoment 2 (u.gr c) |
| 219 | |
| 220 | /-- The row order is exactly `(P, Jθ, Jz)`, as in `MeanRankUpdate`. -/ |
| 221 | noncomputable def debt (c : Context (PressureStream.Lift S)) |
| 222 | (u : State (PressureStream.Lift S)) : ℕ → S → Fin 3 → ℝ := |
| 223 | fun n x => ![pressureDefect c u n x, thetaDefect c u n x, axialDefect c u n x] |
| 224 | |
| 225 | def DefectBounds (s : StripData S) (σ : ℝ) (c : Context (PressureStream.Lift S)) |
| 226 | (u : State (PressureStream.Lift S)) : Prop := |
| 227 | ∀ i : Fin 3, UnweightedClass s (1 + σ) (fun n x => debt c u n x i) |
| 228 | |
| 229 | def ZeroMasses (u : State (PressureStream.Lift S)) : Prop := |
| 230 | radialMoment 2 u.mean.angular = 0 ∧ radialMoment 1 u.mean.axial = 0 |
| 231 | |
| 232 | end Moments |
| 233 | |
| 234 | /-- Geometry of the genuine compact shifted pressure/stream primitive. -/ |
| 235 | structure ReconstructionData where |
| 236 | exponent : ℝ |
| 237 | inner : ℝ |
| 238 | outer : ℝ |
| 239 | inner_lt_outer : inner < outer |
| 240 | frequency : ℕ → ℝ |
| 241 | radialDirection : PressureStream.Plane |
| 242 | |
| 243 | section Fields |
| 244 | |
| 245 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 246 | |
| 247 | abbrev Lift (S : Type) := PressureStream.Lift S |
| 248 | |
| 249 | /-- Recompute (33) from the current actual radial source. -/ |
| 250 | noncomputable def reconstructPressure (r : ReconstructionData) (c : Context (Lift S)) |
| 251 | (u : State (Lift S)) : State (Lift S) := |
| 252 | { u with pressure := (fun n => PressureStream.meanPressure r.exponent r.inner r.outer |
| 253 | (r.frequency n) r.inner_lt_outer r.radialDirection (u.gr c n)) } |
| 254 | |
| 255 | /-- The pressure alias has the sign with which it occurs in the radial residual. -/ |
| 256 | noncomputable def pressureAlias (r : ReconstructionData) (c : Context (Lift S)) |
| 257 | (u : State (Lift S)) : Oscillation (Lift S) := |
| 258 | fun n p => ![-PressureStream.pressureAlias r.exponent r.inner r.outer (r.frequency n) |
| 259 | r.inner_lt_outer r.radialDirection (u.gr c n) p.1, 0, 0] |
| 260 | |
| 261 | @[simp] theorem reconstructPressure_gr (r : ReconstructionData) (c : Context (Lift S)) |
| 262 | (u : State (Lift S)) : (reconstructPressure r c u).gr c = u.gr c := rfl |
| 263 | |
| 264 | @[simp] theorem reconstructPressure_covariance (r : ReconstructionData) |
| 265 | (c : Context (Lift S)) (u : State (Lift S)) : |
| 266 | (reconstructPressure r c u).covariance = u.covariance := rfl |
| 267 | |
| 268 | /-- Explicit graph operators with the pressure primitive's radial direction. -/ |
| 269 | noncomputable def graphOperators (r : ReconstructionData) (epsilon fast : ℕ → ℝ) |
| 270 | (axial slowTime : S × PressureStream.Plane) (temporal : PressureStream.Plane) : |
| 271 | MeanIncrementBounds.Operators (Lift S) where |
| 272 | epsilon := epsilon |
| 273 | radialFrequency := r.frequency |
| 274 | fastCoefficient := fast |
| 275 | radius := Prod.fst |
| 276 | radialProfile := fun x => RadialPullback.radialJacobian r.exponent x.1 |
| 277 | eR := (1, (0, 0)) |
| 278 | eZ := (0, axial) |
| 279 | eT := (0, slowTime) |
| 280 | vR := (0, (0, r.radialDirection)) |
| 281 | vT := (0, (0, temporal)) |
| 282 | |
| 283 | theorem graphOperators_dr (r : ReconstructionData) (epsilon fast : ℕ → ℝ) |
| 284 | (axial slowTime : S × PressureStream.Plane) (temporal : PressureStream.Plane) |
| 285 | (f : ScalarField (Lift S)) (n : ℕ) (x : Lift S) : |
| 286 | (graphOperators r epsilon fast axial slowTime temporal).dr f n x = |
| 287 | PressureStream.graphDr (PressureStream.physicalSpeed r.exponent (r.frequency n)) |
| 288 | (0, r.radialDirection) (f n) x := by |
| 289 | have he : ((1 : ℝ), ((0 : S), (0 : PressureStream.Plane))) + |
| 290 | (r.frequency n * RadialPullback.radialJacobian r.exponent x.1) • |
| 291 | ((0 : ℝ), ((0 : S), r.radialDirection)) = |
| 292 | PressureStream.radialVector (PressureStream.physicalSpeed r.exponent (r.frequency n)) |
| 293 | ((0 : S), r.radialDirection) x := by |
| 294 | simp [PressureStream.radialVector, PressureStream.physicalSpeed, mul_comm] |
| 295 | rw [PressureStream.graphDr, ← he, map_add, map_smul] |
| 296 | simp [graphOperators, MeanIncrementBounds.Operators.dr, WeightedClasses.graphDerivative, |
| 297 | smul_eq_mul, mul_assoc] |
| 298 | |
| 299 | theorem graphOperators_dz (r : ReconstructionData) (epsilon fast : ℕ → ℝ) |
| 300 | (axial slowTime : S × PressureStream.Plane) (temporal : PressureStream.Plane) |
| 301 | (f : ScalarField (Lift S)) (n : ℕ) (x : Lift S) : |
| 302 | (graphOperators r epsilon fast axial slowTime temporal).dz f n x = |
| 303 | PressureStream.graphDz (epsilon n • axial) (f n) x := by |
| 304 | have he : ((0 : ℝ), epsilon n • axial) = epsilon n • ((0 : ℝ), axial) := by simp |
| 305 | change epsilon n * fderiv ℝ (f n) x (0, axial) = |
| 306 | fderiv ℝ (f n) x (0, epsilon n • axial) |
| 307 | rw [he, map_smul] |
| 308 | rfl |
| 309 | |
| 310 | end Fields |
| 311 | |
| 312 | section Temporal |
| 313 | |
| 314 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] |
| 315 | |
| 316 | /-- The actual temporal increment, including the compactified axial stream. -/ |
| 317 | noncomputable def temporalIncrement (r : ReconstructionData) (h : ℝ) |
| 318 | (axial : S × PressureStream.Plane) (c : Context (Lift S)) (u : State (Lift S)) : |
| 319 | MeanIncrementBounds.Triple (Lift S) where |
| 320 | radial := fun n => TemporalMeanUpdate.radialUpdate r.exponent r.inner r.outer |
| 321 | (r.frequency n) r.radialDirection (c.operators.epsilon n • axial) h n (u.axialResidual c n) |
| 322 | angular := fun n => TemporalMeanUpdate.desiredIncrement h n (u.thetaResidual c n) |
| 323 | axial := fun n => TemporalMeanUpdate.axialUpdate r.exponent r.inner r.outer |
| 324 | (r.frequency n) r.radialDirection h n (u.axialResidual c n) |
| 325 | |
| 326 | /-- The exact remaining axial fast-time error, not its asymptotic estimate. -/ |
| 327 | noncomputable def temporalAlias (r : ReconstructionData) (h : ℝ) |
| 328 | (c : Context (Lift S)) (u : State (Lift S)) : Oscillation (Lift S) := |
| 329 | fun n p => ![0, 0, -TemporalMeanUpdate.fastDerivative h n |
| 330 | (TemporalMeanUpdate.axialAlias r.exponent r.inner r.outer (r.frequency n) |
| 331 | r.radialDirection h n (u.axialResidual c n)) p.1] |
| 332 | |
| 333 | noncomputable def temporalStage (r : ReconstructionData) (h : ℝ) |
| 334 | (axial : S × PressureStream.Plane) (c : Context (Lift S)) (u : State (Lift S)) : |
| 335 | State (Lift S) := |
| 336 | reconstructPressure r c (u.addIncrement (temporalIncrement r h axial c u) 0 0 0 |
| 337 | ⟨0, 0, temporalAlias r h c u⟩) |
| 338 | |
| 339 | end Temporal |
| 340 | |
| 341 | /-- The physical length, velocity, and background amplitude used by the |
| 342 | five-row inverse. These may depend on the band and slow variables. -/ |
| 343 | structure RankData (S : Type) where |
| 344 | lambda : ℝ |
| 345 | inner : ℝ |
| 346 | outer : ℝ |
| 347 | length : ℕ → S → ℝ |
| 348 | velocity : ℕ → S → ℝ |
| 349 | coefficient : ℕ → S → ℝ |
| 350 | |
| 351 | section Rank |
| 352 | |
| 353 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 354 | |
| 355 | noncomputable def rankAngular (r : RankData S) (c : Context (Lift S)) |
| 356 | (u : State (Lift S)) (n : ℕ) : ℝ × S → ℝ := |
| 357 | MeanRankUpdate.angularFamily r.lambda r.inner r.outer (r.length n) (r.velocity n) |
| 358 | (r.coefficient n) (debt c u n) |
| 359 | |
| 360 | noncomputable def rankDesiredAxial (r : RankData S) (c : Context (Lift S)) |
| 361 | (u : State (Lift S)) (n : ℕ) : ℝ × S → ℝ := |
| 362 | MeanRankUpdate.desiredAxialFamily r.lambda r.inner r.outer (r.length n) (r.velocity n) |
| 363 | (r.coefficient n) (debt c u n) |
| 364 | |
| 365 | noncomputable def rankPotential (p : ReconstructionData) (r : RankData S) |
| 366 | (c : Context (Lift S)) (u : State (Lift S)) (n : ℕ) : Lift S → ℝ := |
| 367 | PressureStream.streamPotential p.exponent p.inner p.outer (p.frequency n) |
| 368 | ((0 : S), p.radialDirection) (MeanRankUpdate.slowLift (rankDesiredAxial r c u n)) |
| 369 | |
| 370 | noncomputable def rankIncrement (p : ReconstructionData) (r : RankData S) |
| 371 | (axial : S × PressureStream.Plane) (c : Context (Lift S)) (u : State (Lift S)) : |
| 372 | MeanIncrementBounds.Triple (Lift S) where |
| 373 | radial := fun n => PressureStream.streamBeta (c.operators.epsilon n • axial) |
| 374 | (rankPotential p r c u n) |
| 375 | angular := fun n => MeanRankUpdate.slowLift (rankAngular r c u n) |
| 376 | axial := fun n => PressureStream.streamGamma |
| 377 | (PressureStream.physicalSpeed p.exponent (p.frequency n)) ((0 : S), p.radialDirection) |
| 378 | (rankPotential p r c u n) |
| 379 | |
| 380 | noncomputable def rankStage (p : ReconstructionData) (r : RankData S) |
| 381 | (axial : S × PressureStream.Plane) (c : Context (Lift S)) (u : State (Lift S)) : |
| 382 | State (Lift S) := |
| 383 | reconstructPressure p c (u.addIncrement (rankIncrement p r axial c u) 0 0 0 ExcludedErrors.zero) |
| 384 | |
| 385 | theorem rank_model_rows (r : RankData S) (c : Context (Lift S)) (u : State (Lift S)) |
| 386 | (n : ℕ) (x : S) (hlam : 0 < r.lambda) (hC : r.coefficient n x ≠ 0) |
| 387 | (ha : 0 < r.inner) (hab : r.inner < r.outer) (hell : 0 < r.length n x) |
| 388 | (hU : r.velocity n x ≠ 0) : |
| 389 | FiveRowRank.FiveRows |
| 390 | (MeanRankUpdate.background r.lambda (r.coefficient n x) (r.length n x) (r.velocity n x)) |
| 391 | (fun _ => 0) (debt c u n x) |
| 392 | (fun R => rankAngular r c u n (R, x)) |
| 393 | (fun R => rankDesiredAxial r c u n (R, x)) := |
| 394 | MeanRankUpdate.physical_five_rows hlam hC ha hab hell hU (debt c u n x) |
| 395 | |
| 396 | /-- The linear rows hold for the actual base whenever it agrees with the |
| 397 | prescribed background on the support of the constructed bumps. -/ |
| 398 | theorem rank_rows_on_patch (r : RankData S) (c : Context (Lift S)) (u : State (Lift S)) |
| 399 | (n : ℕ) (x : S) (Y : PressureStream.Plane) |
| 400 | (hlam : 0 < r.lambda) (hC : r.coefficient n x ≠ 0) |
| 401 | (ha : 0 < r.inner) (hab : r.inner < r.outer) (hell : 0 < r.length n x) |
| 402 | (hU : r.velocity n x ≠ 0) |
| 403 | (hV : ∀ R ∈ Ioo (r.length n x * r.inner) (r.length n x * r.outer), |
| 404 | c.base.angular n (R, (x, Y)) = |
| 405 | MeanRankUpdate.background r.lambda (r.coefficient n x) (r.length n x) (r.velocity n x) R) |
| 406 | (hG : ∀ R ∈ Ioo (r.length n x * r.inner) (r.length n x * r.outer), |
| 407 | c.base.axial n (R, (x, Y)) = 0) : |
| 408 | FiveRowRank.FiveRows (fun R => c.base.angular n (R, (x, Y))) |
| 409 | (fun R => c.base.axial n (R, (x, Y))) (debt c u n x) |
| 410 | (fun R => rankAngular r c u n (R, x)) |
| 411 | (fun R => rankDesiredAxial r c u n (R, x)) := |
| 412 | MeanRankUpdate.physical_rows_on_patch hlam hC ha hab hell hU (debt c u n x) _ _ hV hG |
| 413 | |
| 414 | theorem rank_axial_eq_desired (p : ReconstructionData) (r : RankData S) |
| 415 | (axial : S × PressureStream.Plane) (c : Context (Lift S)) (u : State (Lift S)) |
| 416 | (ha : 0 < p.inner) (hd : 0 < p.exponent) (n : ℕ) |
| 417 | (hlam : 0 < r.lambda) (hC : ∀ x, r.coefficient n x ≠ 0) |
| 418 | (hra : 0 < r.inner) (hrab : r.inner < r.outer) |
| 419 | (hell : ∀ x, 0 < r.length n x) (hU : ∀ x, r.velocity n x ≠ 0) |
| 420 | (hf : ContDiff ℝ ∞ (rankDesiredAxial r c u n)) |
| 421 | (hs : RadialAlias.RadiallySupported p.inner p.outer (rankDesiredAxial r c u n)) |
| 422 | (x : Lift S) : |
| 423 | (rankIncrement p r axial c u).axial n x = rankDesiredAxial r c u n (x.1, x.2.1) := by |
| 424 | apply MeanRankUpdate.slow_streamGamma_eq_desired ha p.inner_lt_outer hd p.radialDirection hf hs |
| 425 | intro z |
| 426 | exact (rank_model_rows r c u n z hlam (hC z) hra hrab (hell z) (hU z)).2.1 |
| 427 | |
| 428 | end Rank |
| 429 | |
| 430 | end NavierStokes.CorrectionState |