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.GaugeStateCoherence |
| 2 | import NavierStokes.RankStateBounds |
| 3 | import NavierStokes.BaseRankPatch |
| 4 | import NavierStokes.TemporalStateCoherence |
| 5 | |
| 6 | /-! |
| 7 | # Coherence of the actual five-row rank correction |
| 8 | |
| 9 | The debt is recomputed from the complete incoming state. Primitive chart |
| 10 | data and the shared normalized inverse are transported before applying the |
| 11 | actual variable-gauge stream and pressure constructors. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | namespace NavierStokes.RankStateCoherence |
| 17 | |
| 18 | open Set Function Filter |
| 19 | open scoped Topology ContDiff |
| 20 | open PhysicalResidualNaturality GaugeStateCoherence |
| 21 | |
| 22 | variable {S T : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 23 | [NormedAddCommGroup T] [NormedSpace ℝ T] |
| 24 | |
| 25 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 26 | theorem sourceMoment_fiber (m : ℕ) (f g : PressureStream.Lift S → ℝ) (s : S) |
| 27 | (he : ∀ R Y, f (R,(s,Y)) = g (R,(s,Y))) : |
| 28 | MeanChartCompatibility.sourceMoment m f s = MeanChartCompatibility.sourceMoment m g s := by |
| 29 | exact PhysicalMeanDomain.liftedPressureMass_fiberLocal _ _ s |
| 30 | (fun R Y => congrArg (R^m * ·) (he R Y)) 0 0 |
| 31 | |
| 32 | /-- The whole-fiber moment of a compatible field, using only local slow |
| 33 | regularity and the actual torus covering. -/ |
| 34 | theorem sourceMoment_on {l a : ℝ} (hl : 0 < l) (P : S ≃L[ℝ] T) (k m : ℕ) |
| 35 | {V : Set S} {U : Set T} (hU : IsOpen U) (hmap : MapsTo P V U) |
| 36 | {f : PressureStream.Lift S → ℝ} {g : PressureStream.Lift T → ℝ} |
| 37 | (he : ScalarOn (PhysicalMeanDomain.slowDomain V) (GaugeStateCoherence.chartEquiv l hl.ne' P k) a f g) |
| 38 | (hg : ContDiffOn ℝ ∞ g (PhysicalMeanDomain.slowDomain U)) |
| 39 | (hp : PhysicalMeanDomain.PeriodicOn U g) {s : S} (hs : s ∈ V) : |
| 40 | MeanChartCompatibility.sourceMoment m f s = |
| 41 | (a/l^(m+1)) * MeanChartCompatibility.sourceMoment m g (P s) := by |
| 42 | let G := PhysicalMeanDomain.freezeSlow (P s) g |
| 43 | have hG : ContDiff ℝ ∞ G := VariableGaugeMean.freezeSlow_contDiff hU (hmap hs) hg |
| 44 | have hGp : PressureStream.TorusPeriodicLift G := by |
| 45 | intro R t Y j |
| 46 | exact hp R (P s) (hmap hs) Y j |
| 47 | have hfiber : ∀ R Y, f (R,(s,Y)) = |
| 48 | MeanChartCompatibility.coverPull l P.toContinuousLinearMap k a G (R,(s,Y)) := by |
| 49 | intro R Y |
| 50 | rw [GaugeStateCoherence.coverPull_eq l hl.ne' P k] |
| 51 | exact he (R,(s,Y)) hs |
| 52 | rw [sourceMoment_fiber m f _ s hfiber, |
| 53 | MeanChartCompatibility.sourceMoment_coverPull hl P.toContinuousLinearMap k m a hG hGp] |
| 54 | rfl |
| 55 | |
| 56 | /-- Reference fields needed for the actual three measured debts. -/ |
| 57 | structure DebtRegular (U : Set T) (C : CorrectionState.Context (PressureStream.Lift T)) |
| 58 | (u : CorrectionState.State (PressureStream.Lift T)) (n : ℕ) : Prop where |
| 59 | radial : ContDiffOn ℝ ∞ (u.gr C n) (PhysicalMeanDomain.slowDomain U) |
| 60 | angular : ContDiffOn ℝ ∞ |
| 61 | ((MeanIncrementBounds.thetaAxial C.base u.mean + u.covariance 2 1) n) |
| 62 | (PhysicalMeanDomain.slowDomain U) |
| 63 | axial : ContDiffOn ℝ ∞ |
| 64 | ((MeanIncrementBounds.axialAxial C.base u.mean + u.covariance 2 2) n) |
| 65 | (PhysicalMeanDomain.slowDomain U) |
| 66 | radial_periodic : PhysicalMeanDomain.PeriodicOn U (u.gr C n) |
| 67 | angular_periodic : PhysicalMeanDomain.PeriodicOn U |
| 68 | ((MeanIncrementBounds.thetaAxial C.base u.mean + u.covariance 2 1) n) |
| 69 | axial_periodic : PhysicalMeanDomain.PeriodicOn U |
| 70 | ((MeanIncrementBounds.axialAxial C.base u.mean + u.covariance 2 2) n) |
| 71 | |
| 72 | /-- All three debts are measured from the full base and state. The powers |
| 73 | are pressure `c²`, angular `c²/l³`, and axial `c²/l²`. -/ |
| 74 | theorem measured_debt_on {l c : ℝ} (hl : 0 < l) (P : S ≃L[ℝ] T) (k : ℕ) |
| 75 | {V : Set S} {U : Set T} (hV : IsOpen V) (hU : IsOpen U) (hmap : MapsTo P V U) |
| 76 | {C : CorrectionState.Context (PressureStream.Lift S)} |
| 77 | {Cr : CorrectionState.Context (PressureStream.Lift T)} |
| 78 | {u : CorrectionState.State (PressureStream.Lift S)} |
| 79 | {ur : CorrectionState.State (PressureStream.Lift T)} {n nr : ℕ} |
| 80 | (H : StateOn (PhysicalMeanDomain.slowDomain V) (GaugeStateCoherence.chartEquiv l hl.ne' P k) c l u ur n nr) |
| 81 | (G : ContextOn (PhysicalMeanDomain.slowDomain V) (GaugeStateCoherence.chartEquiv l hl.ne' P k) c l C Cr n nr) |
| 82 | (R : DebtRegular U Cr ur nr) {s : S} (hs : s ∈ V) : |
| 83 | CorrectionState.debt C u n s = |
| 84 | MeanRankUpdate.scaleDebt l⁻¹ c (CorrectionState.debt Cr ur nr (P s)) := by |
| 85 | have hrad := H.gr G (PhysicalMeanDomain.slowDomain_open hV) hl.ne' |
| 86 | have htheta := (G.base.thetaAxial H.mean).add (H.covariance 2 1) |
| 87 | have haxial := (G.base.axialAxial H.mean).add (H.covariance 2 2) |
| 88 | have h0 := sourceMoment_on hl P k 0 hU hmap hrad R.radial R.radial_periodic hs |
| 89 | have h2 := sourceMoment_on hl P k 2 hU hmap hrad R.radial R.radial_periodic hs |
| 90 | have htheta2 := sourceMoment_on hl P k 2 hU hmap htheta R.angular R.angular_periodic hs |
| 91 | have haxial1 := sourceMoment_on hl P k 1 hU hmap haxial R.axial R.axial_periodic hs |
| 92 | rw [MeanChartCompatibility.stateDebt_eq_sourceDebt, |
| 93 | MeanChartCompatibility.stateDebt_eq_sourceDebt] |
| 94 | ext i |
| 95 | fin_cases i |
| 96 | · change MeanChartCompatibility.sourceMoment 0 (u.gr C n) s = _ |
| 97 | rw [h0] |
| 98 | simp [MeanRankUpdate.scaleDebt, MeanChartCompatibility.sourceDebt, hl.ne', pow_two] |
| 99 | · change MeanChartCompatibility.sourceMoment 2 |
| 100 | (MeanIncrementBounds.thetaAxial C.base u.mean n + u.covariance 2 1 n) s = _ |
| 101 | rw [htheta2] |
| 102 | simp [MeanRankUpdate.scaleDebt, MeanChartCompatibility.sourceDebt, |
| 103 | div_eq_mul_inv, pow_two, mul_comm, mul_assoc] |
| 104 | · change MeanChartCompatibility.sourceMoment 1 |
| 105 | (MeanIncrementBounds.axialAxial C.base u.mean n + u.covariance 2 2 n) s - (1/2:ℝ) * |
| 106 | MeanChartCompatibility.sourceMoment 2 (u.gr C n) s = _ |
| 107 | rw [haxial1, h2] |
| 108 | simp only [MeanRankUpdate.scaleDebt, MeanChartCompatibility.sourceDebt, |
| 109 | Matrix.cons_val_two, Matrix.cons_val_one, Matrix.cons_val_zero, |
| 110 | Matrix.cons_val_zero', Matrix.cons_val_succ', Matrix.vecHead, Matrix.vecTail, |
| 111 | Matrix.cons_val_succ, Function.comp_def, Pi.add_apply] |
| 112 | field_simp ; ring |
| 113 | |
| 114 | /-- Primitive rank data use one dimensionless kernel. No rank-output or |
| 115 | debt equality is a field of this structure. -/ |
| 116 | structure RankOn (V : Set S) (P : S → T) (l c : ℝ) |
| 117 | (r : CorrectionState.RankData S) (rr : CorrectionState.RankData T) (n nr : ℕ) : Prop where |
| 118 | lambda : r.lambda = rr.lambda |
| 119 | inner : r.inner = rr.inner |
| 120 | outer : r.outer = rr.outer |
| 121 | length : ∀ s ∈ V, r.length n s = l⁻¹ * rr.length nr (P s) |
| 122 | velocity : ∀ s ∈ V, r.velocity n s = c * rr.velocity nr (P s) |
| 123 | coefficient : ∀ s ∈ V, r.coefficient n s = rr.coefficient nr (P s) |
| 124 | reference_length : ∀ s ∈ V, rr.length nr (P s) ≠ 0 |
| 125 | reference_velocity : ∀ s ∈ V, rr.velocity nr (P s) ≠ 0 |
| 126 | |
| 127 | theorem RankOn.angular {V : Set S} {P : S → T} {l c : ℝ} (hl : l ≠ 0) (hc : c ≠ 0) |
| 128 | {r : CorrectionState.RankData S} {rr : CorrectionState.RankData T} {n nr : ℕ} |
| 129 | (H : RankOn V P l c r rr n nr) |
| 130 | {C : CorrectionState.Context (PressureStream.Lift S)} |
| 131 | {Cr : CorrectionState.Context (PressureStream.Lift T)} |
| 132 | {u : CorrectionState.State (PressureStream.Lift S)} |
| 133 | {ur : CorrectionState.State (PressureStream.Lift T)} {s : S} (hs : s ∈ V) |
| 134 | (hd : CorrectionState.debt C u n s = MeanRankUpdate.scaleDebt l⁻¹ c (CorrectionState.debt Cr ur nr (P s))) |
| 135 | (R : ℝ) : CorrectionState.rankAngular r C u n (R,s) = |
| 136 | c * CorrectionState.rankAngular rr Cr ur nr (l*R,P s) := by |
| 137 | change MeanRankUpdate.angularIncrement r.lambda (r.coefficient n s) r.inner r.outer |
| 138 | (r.length n s) (r.velocity n s) (CorrectionState.debt C u n s) R = _ |
| 139 | rw [H.lambda, H.inner, H.outer, H.length s hs, H.velocity s hs, H.coefficient s hs, hd] |
| 140 | have he := MeanChartCompatibility.rankAngular_scale (inv_ne_zero hl) hc |
| 141 | (H.reference_length s hs) (H.reference_velocity s hs) rr.lambda (rr.coefficient nr (P s)) |
| 142 | rr.inner rr.outer (CorrectionState.debt Cr ur nr (P s)) (l*R) |
| 143 | simp only [inv_mul_cancel_left₀ hl] at he |
| 144 | exact he |
| 145 | |
| 146 | theorem RankOn.desiredAxial {V : Set S} {P : S → T} {l c : ℝ} (hl : l ≠ 0) (hc : c ≠ 0) |
| 147 | {r : CorrectionState.RankData S} {rr : CorrectionState.RankData T} {n nr : ℕ} |
| 148 | (H : RankOn V P l c r rr n nr) |
| 149 | {C : CorrectionState.Context (PressureStream.Lift S)} |
| 150 | {Cr : CorrectionState.Context (PressureStream.Lift T)} |
| 151 | {u : CorrectionState.State (PressureStream.Lift S)} |
| 152 | {ur : CorrectionState.State (PressureStream.Lift T)} {s : S} (hs : s ∈ V) |
| 153 | (hd : CorrectionState.debt C u n s = MeanRankUpdate.scaleDebt l⁻¹ c (CorrectionState.debt Cr ur nr (P s))) |
| 154 | (R : ℝ) : CorrectionState.rankDesiredAxial r C u n (R,s) = |
| 155 | c * CorrectionState.rankDesiredAxial rr Cr ur nr (l*R,P s) := by |
| 156 | change MeanRankUpdate.desiredAxialIncrement r.lambda (r.coefficient n s) r.inner r.outer |
| 157 | (r.length n s) (r.velocity n s) (CorrectionState.debt C u n s) R = _ |
| 158 | rw [H.lambda, H.inner, H.outer, H.length s hs, H.velocity s hs, H.coefficient s hs, hd] |
| 159 | have he := MeanChartCompatibility.rankDesiredAxial_scale (inv_ne_zero hl) hc |
| 160 | (H.reference_length s hs) (H.reference_velocity s hs) rr.lambda (rr.coefficient nr (P s)) |
| 161 | rr.inner rr.outer (CorrectionState.debt Cr ur nr (P s)) (l*R) |
| 162 | simp only [inv_mul_cancel_left₀ hl] at he |
| 163 | exact he |
| 164 | |
| 165 | section ActualStep |
| 166 | |
| 167 | variable {l c : ℝ} (hl : 0 < l) (hc : c ≠ 0) (P : S ≃L[ℝ] T) (k : ℕ) |
| 168 | {V : Set S} {U : Set T} (hV : IsOpen V) (hU : IsOpen U) (hmap : MapsTo P V U) |
| 169 | {C : CorrectionState.Context (PressureStream.Lift S)} |
| 170 | {Cr : CorrectionState.Context (PressureStream.Lift T)} |
| 171 | {u : CorrectionState.State (PressureStream.Lift S)} |
| 172 | {ur : CorrectionState.State (PressureStream.Lift T)} {n nr : ℕ} |
| 173 | (H : StateOn (PhysicalMeanDomain.slowDomain V) (GaugeStateCoherence.chartEquiv l hl.ne' P k) c l u ur n nr) |
| 174 | (G : ContextOn (PhysicalMeanDomain.slowDomain V) (GaugeStateCoherence.chartEquiv l hl.ne' P k) c l C Cr n nr) |
| 175 | (R : DebtRegular U Cr ur nr) |
| 176 | {r : CorrectionState.RankData S} {rr : CorrectionState.RankData T} |
| 177 | (K : RankOn V P l c r rr n nr) |
| 178 | |
| 179 | include hc hV hU hmap H G R K |
| 180 | |
| 181 | theorem rankAngular_on : |
| 182 | ScalarOn (PhysicalMeanDomain.slowDomain V) (GaugeStateCoherence.chartEquiv l hl.ne' P k) c |
| 183 | (MeanRankUpdate.slowLift (CorrectionState.rankAngular r C u n)) |
| 184 | (MeanRankUpdate.slowLift (CorrectionState.rankAngular rr Cr ur nr)) := by |
| 185 | intro z hz |
| 186 | exact K.angular hl.ne' hc hz (measured_debt_on hl P k hV hU hmap H G R hz) z.1 |
| 187 | |
| 188 | theorem rankDesiredAxial_on : |
| 189 | ScalarOn (PhysicalMeanDomain.slowDomain V) (GaugeStateCoherence.chartEquiv l hl.ne' P k) c |
| 190 | (MeanRankUpdate.slowLift (CorrectionState.rankDesiredAxial r C u n)) |
| 191 | (MeanRankUpdate.slowLift (CorrectionState.rankDesiredAxial rr Cr ur nr)) := by |
| 192 | intro z hz |
| 193 | exact K.desiredAxial hl.ne' hc hz (measured_debt_on hl P k hV hU hmap H G R hz) z.1 |
| 194 | |
| 195 | variable {g : VariableGaugeMean.GaugeData S} {gr : VariableGaugeMean.GaugeData T} |
| 196 | (J : GaugeOn V l P.toContinuousLinearMap k g gr n nr) |
| 197 | (F : LocalRankDefect.RankGeometry gr rr U Cr ur) |
| 198 | |
| 199 | include J F |
| 200 | |
| 201 | /-- Naturality of the literal moving-gauge rank potential. Its source is |
| 202 | the already constructed five-row inverse of the measured debt. -/ |
| 203 | theorem rankPotential_on : |
| 204 | ScalarOn (PhysicalMeanDomain.slowDomain V) (GaugeStateCoherence.chartEquiv l hl.ne' P k) (c/l) |
| 205 | (VariableGaugeMean.rankPotential g r C u n) (VariableGaugeMean.rankPotential gr rr Cr ur nr) := by |
| 206 | have ha : 0 < g.radial.inner := J.inner ▸ F.primitive_inner_pos |
| 207 | have hd : 0 < g.radial.exponent := J.exponent ▸ F.exponent_pos |
| 208 | have hs : VariableGaugeMean.SupportedGauge g.radial.inner g.radial.outer (gr.length nr) U |
| 209 | (MeanRankUpdate.slowLift (CorrectionState.rankDesiredAxial rr Cr ur nr)) := by |
| 210 | intro z hz hn |
| 211 | have he := F.desired_slice_support nr hz (F.gauge_left nr _ hz) (F.gauge_right nr _ hz) hn |
| 212 | simpa only [J.inner, J.outer] using he |
| 213 | have he := TemporalStateCoherence.streamPotential_on hl P k ha g.radial.inner_lt_outer hd |
| 214 | g.radial.radialDirection gr.radial.radialDirection J.frequency (g.length n) (gr.length nr) |
| 215 | hU hmap J.positive J.length (rankDesiredAxial_on hl hc P k hV hU hmap H G R K) |
| 216 | (F.desired_lift_smooth nr) hs |
| 217 | change ScalarOn _ _ _ (VariableGaugeMean.streamPotential _ _ _ _ _ _ _) |
| 218 | (VariableGaugeMean.streamPotential _ _ _ _ _ _ _) |
| 219 | rw [TemporalStateCoherence.streamPotential_congr_profile J.exponent J.inner J.outer |
| 220 | (gr.radial.frequency nr) (gr.length nr) gr.radial.radialDirection] |
| 221 | exact he |
| 222 | |
| 223 | /-- All three components are the actual stream reconstruction of the |
| 224 | rank correction. No output-increment coherence is assumed. -/ |
| 225 | theorem rankIncrementState_on (axial : S × PressureStream.Plane) (axialr : T × PressureStream.Plane) |
| 226 | (ha : (P.toContinuousLinearMap.prodMap (TemporalMeanUpdate.coverMap k)) |
| 227 | (C.operators.epsilon n • axial) = l • (Cr.operators.epsilon nr • axialr)) : |
| 228 | TripleOn (PhysicalMeanDomain.slowDomain V) (GaugeStateCoherence.chartEquiv l hl.ne' P k) c |
| 229 | (VariableGaugeMean.rankIncrementState g r axial C u) |
| 230 | (VariableGaugeMean.rankIncrementState gr rr axialr Cr ur) n nr := by |
| 231 | have hpot := rankPotential_on hl hc P k hV hU hmap H G R K J F |
| 232 | have hb := TemporalStateCoherence.streamBeta_on hl P k (C.operators.epsilon n • axial) |
| 233 | (Cr.operators.epsilon nr • axialr) ha hV hpot |
| 234 | have hgamma := TemporalStateCoherence.streamGamma_on hl P k g.radial.radialDirection |
| 235 | gr.radial.radialDirection J.frequency hV hpot |
| 236 | refine ⟨hb.reweight (div_mul_cancel₀ c hl.ne'), rankAngular_on hl hc P k hV hU hmap H G R K, ?_⟩ |
| 237 | simpa only [VariableGaugeMean.rankIncrementState, J.exponent] using |
| 238 | hgamma.reweight (div_mul_cancel₀ c hl.ne') |
| 239 | |
| 240 | end ActualStep |
| 241 | |
| 242 | /-- The actual state before the rank step's pressure is reconstructed. -/ |
| 243 | noncomputable def rankAddedState (g : VariableGaugeMean.GaugeData S) (r : CorrectionState.RankData S) |
| 244 | (axial : S × PressureStream.Plane) (C : CorrectionState.Context (PressureStream.Lift S)) |
| 245 | (u : CorrectionState.State (PressureStream.Lift S)) : CorrectionState.State (PressureStream.Lift S) := |
| 246 | u.addIncrement (VariableGaugeMean.rankIncrementState g r axial C u) 0 0 0 CorrectionState.ExcludedErrors.zero |
| 247 | |
| 248 | theorem add_mean_on {D E : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 249 | [NormedAddCommGroup E] [NormedSpace ℝ E] {V : Set D} {e : D ≃L[ℝ] E} {c l : ℝ} |
| 250 | {u : CorrectionState.State D} {ur : CorrectionState.State E} {n nr : ℕ} |
| 251 | (H : StateOn V e c l u ur n nr) {m : MeanIncrementBounds.Triple D} {mr : MeanIncrementBounds.Triple E} |
| 252 | (hm : TripleOn V e c m mr n nr) : |
| 253 | StateOn V e c l |
| 254 | (u.addIncrement m 0 0 0 CorrectionState.ExcludedErrors.zero) |
| 255 | (ur.addIncrement mr 0 0 0 CorrectionState.ExcludedErrors.zero) n nr := by |
| 256 | refine ⟨H.mean.updated hm, ?_, ?_, ?_, ?_, ?_, ?_⟩ |
| 257 | · simpa only [CorrectionState.State.addIncrement, add_zero] using H.pressure |
| 258 | · simpa only [CorrectionState.State.addIncrement, add_zero] using H.oscillation |
| 259 | · simpa only [CorrectionState.State.addIncrement, add_zero] using H.oscillatoryPressure |
| 260 | · simpa only [CorrectionState.State.addIncrement, CorrectionState.ExcludedErrors.add, |
| 261 | CorrectionState.ExcludedErrors.zero, add_zero] using H.baseError |
| 262 | · simpa only [CorrectionState.State.addIncrement, CorrectionState.ExcludedErrors.add, |
| 263 | CorrectionState.ExcludedErrors.zero, add_zero] using H.gaussian |
| 264 | · simpa only [CorrectionState.State.addIncrement, CorrectionState.ExcludedErrors.add, |
| 265 | CorrectionState.ExcludedErrors.zero, add_zero] using H.aliasError |
| 266 | |
| 267 | /-- Coherence survives the complete rank step, including the pressure |
| 268 | recomputed from the new actual radial residual. -/ |
| 269 | theorem rankStageState_on {l c : ℝ} (hl : 0 < l) (hc : c ≠ 0) (P : S ≃L[ℝ] T) (k : ℕ) |
| 270 | {V : Set S} {U : Set T} (hV : IsOpen V) (hU : IsOpen U) (hmap : MapsTo P V U) |
| 271 | {C : CorrectionState.Context (PressureStream.Lift S)} |
| 272 | {Cr : CorrectionState.Context (PressureStream.Lift T)} |
| 273 | {u : CorrectionState.State (PressureStream.Lift S)} |
| 274 | {ur : CorrectionState.State (PressureStream.Lift T)} {n nr : ℕ} |
| 275 | (H : StateOn (PhysicalMeanDomain.slowDomain V) (GaugeStateCoherence.chartEquiv l hl.ne' P k) c l u ur n nr) |
| 276 | (G : ContextOn (PhysicalMeanDomain.slowDomain V) (GaugeStateCoherence.chartEquiv l hl.ne' P k) c l C Cr n nr) |
| 277 | (R : DebtRegular U Cr ur nr) |
| 278 | {r : CorrectionState.RankData S} {rr : CorrectionState.RankData T} |
| 279 | (K : RankOn V P l c r rr n nr) |
| 280 | {g : VariableGaugeMean.GaugeData S} {gr : VariableGaugeMean.GaugeData T} |
| 281 | (J : GaugeOn V l P.toContinuousLinearMap k g gr n nr) |
| 282 | (F : LocalRankDefect.RankGeometry gr rr U Cr ur) |
| 283 | (axial : S × PressureStream.Plane) (axialr : T × PressureStream.Plane) |
| 284 | (ha : (P.toContinuousLinearMap.prodMap (TemporalMeanUpdate.coverMap k)) |
| 285 | (C.operators.epsilon n • axial) = l • (Cr.operators.epsilon nr • axialr)) |
| 286 | (hf : ContDiffOn ℝ ∞ ((rankAddedState gr rr axialr Cr ur).gr Cr nr) (PhysicalMeanDomain.slowDomain U)) |
| 287 | (hp : PhysicalMeanDomain.PeriodicOn U ((rankAddedState gr rr axialr Cr ur).gr Cr nr)) |
| 288 | (hs : VariableGaugeMean.SupportedGauge gr.radial.inner gr.radial.outer (gr.length nr) U |
| 289 | ((rankAddedState gr rr axialr Cr ur).gr Cr nr)) : |
| 290 | StateOn (PhysicalMeanDomain.slowDomain V) (GaugeStateCoherence.chartEquiv l hl.ne' P k) c l |
| 291 | (VariableGaugeMean.rankStageState g r axial C u) |
| 292 | (VariableGaugeMean.rankStageState gr rr axialr Cr ur) n nr := by |
| 293 | have hi := rankIncrementState_on hl hc P k hV hU hmap H G R K J F axial axialr ha |
| 294 | have hm := add_mean_on H hi |
| 295 | exact GaugeStateCoherence.reconstructState_on hl P k hV hU hmap g gr C Cr |
| 296 | (rankAddedState g r axial C u) (rankAddedState gr rr axialr Cr ur) n nr |
| 297 | (J.inner ▸ F.primitive_inner_pos) (J.exponent ▸ F.exponent_pos) J hm G hf hp hs |
| 298 | |
| 299 | /-! ## The actual normalized data used by the recurrence -/ |
| 300 | |
| 301 | theorem normalized_rank_on {h : ℝ} (hh : 0 < h) (hh1 : h < 1/2) |
| 302 | (B lam a b : ℝ) (n m : ℕ) {V : Set PressureStream.Plane} |
| 303 | (hV : ∀ s ∈ V, 0 < s.1) : |
| 304 | RankOn V (bandSlowEquiv h n m) (bandScale n m) (bandVelocityScale h n m) |
| 305 | (RankStateBounds.normalizedData (2*h) (CoordinateAlgebra.A h) B lam a b) |
| 306 | (RankStateBounds.normalizedData (2*h) (CoordinateAlgebra.A h) B lam a b) n m := by |
| 307 | have hQ : 0 < ChartScales.Q n / ChartScales.Q m := div_pos (ChartScales.Q_pos n) (ChartScales.Q_pos m) |
| 308 | have hpos (s : PressureStream.Plane) (hs : s ∈ V) : 0 < (bandSlowEquiv h n m s).1 := |
| 309 | mul_pos hQ (hV s hs) |
| 310 | refine ⟨rfl, rfl, rfl, ?_, ?_, ?_, ?_, ?_⟩ |
| 311 | · intro s hs |
| 312 | change VariableGaugeMean.qLength (2*h) s = |
| 313 | (bandScale n m)⁻¹ * VariableGaugeMean.qLength (2*h) (bandSlowEquiv h n m s) |
| 314 | rw [qLength_bandSlowEquiv hh hh1 n m (hV s hs), inv_mul_cancel_left₀ (bandScale_pos n m).ne'] |
| 315 | · intro s hs |
| 316 | change SimilarityCoordinates.coordinateQ (2*h) s ^ (-CoordinateAlgebra.A h) = |
| 317 | (ChartScales.Q n / ChartScales.Q m) ^ CoordinateAlgebra.A h * |
| 318 | SimilarityCoordinates.coordinateQ (2*h) |
| 319 | ((ChartScales.Q n / ChartScales.Q m)*s.1, |
| 320 | (ChartScales.Q n / ChartScales.Q m)^CoordinateAlgebra.D h*s.2) ^ (-CoordinateAlgebra.A h) |
| 321 | rw [SimilarityHomogeneity.coordinateQ_scale_h hh hh1 hQ (hV s hs), |
| 322 | Real.mul_rpow hQ.le (SimilarityCoordinates.coordinateQ_spec (by linarith) (by linarith) (hV s hs)).1.le, |
| 323 | ← mul_assoc, ← Real.rpow_add hQ, add_neg_cancel, Real.rpow_zero, one_mul] |
| 324 | · intro s hs |
| 325 | change MeanRankUpdate.shapedAmplitude B (SimilarityCoordinates.coordinateEta (2*h) s) = |
| 326 | MeanRankUpdate.shapedAmplitude B (SimilarityCoordinates.coordinateEta (2*h) |
| 327 | ((ChartScales.Q n / ChartScales.Q m)*s.1, |
| 328 | (ChartScales.Q n / ChartScales.Q m)^CoordinateAlgebra.D h*s.2)) |
| 329 | rw [SimilarityHomogeneity.coordinateEta_scale_h hh hh1 hQ (hV s hs)] |
| 330 | · intro s hs |
| 331 | exact (VariableGaugeMean.qLength_pos (by linarith) (by linarith) (hpos s hs)).ne' |
| 332 | · intro s hs |
| 333 | exact (Real.rpow_pos_of_pos |
| 334 | (SimilarityCoordinates.coordinateQ_spec (by linarith) (by linarith) (hpos s hs)).1 _).ne' |
| 335 | |
| 336 | theorem normalized_rank_on_of_parameters {h B : ℝ} (hh : 0 < h) (hh1 : h < 1/2) |
| 337 | (n m : ℕ) {V U : Set PressureStream.Plane} (htime : ∀ s ∈ V, 0 < s.1) |
| 338 | (hmap : MapsTo (bandSlowEquiv h n m) V U) |
| 339 | {r rr : CorrectionState.RankData PressureStream.Plane} |
| 340 | (hr : RankStateBounds.NormalizedParameters (2*h) (CoordinateAlgebra.A h) B r V) |
| 341 | (hrr : RankStateBounds.NormalizedParameters (2*h) (CoordinateAlgebra.A h) B rr U) |
| 342 | (hlam : r.lambda = rr.lambda) (ha : r.inner = rr.inner) (hb : r.outer = rr.outer) : |
| 343 | RankOn V (bandSlowEquiv h n m) (bandScale n m) (bandVelocityScale h n m) r rr n m := by |
| 344 | have H := normalized_rank_on hh hh1 B r.lambda r.inner r.outer n m htime |
| 345 | refine ⟨hlam, ha, hb, ?_, ?_, ?_, ?_, ?_⟩ |
| 346 | · intro s hs |
| 347 | rw [hr.length n s hs, hrr.length m _ (hmap hs)] |
| 348 | exact H.length s hs |
| 349 | · intro s hs |
| 350 | rw [hr.velocity n s hs, hrr.velocity m _ (hmap hs)] |
| 351 | exact H.velocity s hs |
| 352 | · intro s hs |
| 353 | rw [hr.coefficient n s hs, hrr.coefficient m _ (hmap hs)] |
| 354 | exact H.coefficient s hs |
| 355 | · intro s hs |
| 356 | rw [hrr.length m _ (hmap hs)] |
| 357 | exact H.reference_length s hs |
| 358 | · intro s hs |
| 359 | rw [hrr.velocity m _ (hmap hs)] |
| 360 | exact H.reference_velocity s hs |
| 361 | |
| 362 | /-! ## All five rows, against the full base -/ |
| 363 | |
| 364 | theorem fiveRows_chart {l c : ℝ} (hl : 0 < l) |
| 365 | {v g f z vr gr fr zr : ℝ → ℝ} {d dr : MeanRankUpdate.Debt} |
| 366 | (H : FiveRowRank.FiveRows vr gr dr fr zr) |
| 367 | (hv : ∀ R, v R = c * vr (l*R)) (hg : ∀ R, g R = c * gr (l*R)) |
| 368 | (hf : ∀ R, f R = c * fr (l*R)) (hz : ∀ R, z R = c * zr (l*R)) |
| 369 | (hd : d = MeanRankUpdate.scaleDebt l⁻¹ c dr) : |
| 370 | FiveRowRank.FiveRows v g d f z := by |
| 371 | have ev : v = MeanRankUpdate.scaleField l⁻¹ c vr := by |
| 372 | funext R |
| 373 | simpa only [MeanRankUpdate.scaleField, div_inv_eq_mul, mul_comm R l] using hv R |
| 374 | have eg : g = MeanRankUpdate.scaleField l⁻¹ c gr := by |
| 375 | funext R |
| 376 | simpa only [MeanRankUpdate.scaleField, div_inv_eq_mul, mul_comm R l] using hg R |
| 377 | have ef : f = MeanRankUpdate.scaleField l⁻¹ c fr := by |
| 378 | funext R |
| 379 | simpa only [MeanRankUpdate.scaleField, div_inv_eq_mul, mul_comm R l] using hf R |
| 380 | have ez : z = MeanRankUpdate.scaleField l⁻¹ c zr := by |
| 381 | funext R |
| 382 | simpa only [MeanRankUpdate.scaleField, div_inv_eq_mul, mul_comm R l] using hz R |
| 383 | rw [ev, eg, ef, ez, hd] |
| 384 | exact MeanRankUpdate.fiveRows_scaled (inv_pos.mpr hl) c H |
| 385 | |
| 386 | theorem scalarOn_slice {l c : ℝ} (hl : 0 < l) (P : S ≃L[ℝ] T) (k : ℕ) |
| 387 | {V : Set S} {f : PressureStream.Lift S → ℝ} {g : PressureStream.Lift T → ℝ} |
| 388 | (H : ScalarOn (PhysicalMeanDomain.slowDomain V) (GaugeStateCoherence.chartEquiv l hl.ne' P k) c f g) |
| 389 | {s : S} (hs : s ∈ V) (R : ℝ) : f (R,(s,0)) = c * g (l*R,(P s,0)) := by |
| 390 | simpa only [GaugeStateCoherence.chartEquiv_apply, map_zero] using H (R,(s,0)) hs |
| 391 | |
| 392 | /-- The five-row conclusion is transported from the actual reference |
| 393 | rank solve. Both background slices here are the complete stored base. -/ |
| 394 | theorem rankIncrementState_fiveRows_on [FiniteDimensional ℝ T] |
| 395 | {l c : ℝ} (hl : 0 < l) (hc : c ≠ 0) (P : S ≃L[ℝ] T) (k : ℕ) |
| 396 | {V : Set S} {U : Set T} (hV : IsOpen V) (hU : IsOpen U) (hmap : MapsTo P V U) |
| 397 | {C : CorrectionState.Context (PressureStream.Lift S)} |
| 398 | {Cr : CorrectionState.Context (PressureStream.Lift T)} |
| 399 | {u : CorrectionState.State (PressureStream.Lift S)} |
| 400 | {ur : CorrectionState.State (PressureStream.Lift T)} {n nr : ℕ} |
| 401 | (H : StateOn (PhysicalMeanDomain.slowDomain V) (GaugeStateCoherence.chartEquiv l hl.ne' P k) c l u ur n nr) |
| 402 | (G : ContextOn (PhysicalMeanDomain.slowDomain V) (GaugeStateCoherence.chartEquiv l hl.ne' P k) c l C Cr n nr) |
| 403 | (R : DebtRegular U Cr ur nr) |
| 404 | {r : CorrectionState.RankData S} {rr : CorrectionState.RankData T} |
| 405 | (K : RankOn V P l c r rr n nr) |
| 406 | {g : VariableGaugeMean.GaugeData S} {gr : VariableGaugeMean.GaugeData T} |
| 407 | (J : GaugeOn V l P.toContinuousLinearMap k g gr n nr) |
| 408 | (F : LocalRankDefect.RankGeometry gr rr U Cr ur) |
| 409 | (axial : S × PressureStream.Plane) (axialr : T × PressureStream.Plane) |
| 410 | (ha : (P.toContinuousLinearMap.prodMap (TemporalMeanUpdate.coverMap k)) |
| 411 | (C.operators.epsilon n • axial) = l • (Cr.operators.epsilon nr • axialr)) |
| 412 | {lo hi : ℝ} (hlo : 0 < lo) (hlohi : lo < hi) |
| 413 | (hleft : ∀ m t, t ∈ U → lo ≤ rr.length m t * rr.inner) |
| 414 | (hright : ∀ m t, t ∈ U → rr.length m t * rr.outer ≤ hi) |
| 415 | {s : S} (hs : s ∈ V) : |
| 416 | FiveRowRank.FiveRows (DefectIncrementBounds.slowSlice C.base.angular n s) |
| 417 | (DefectIncrementBounds.slowSlice C.base.axial n s) (CorrectionState.debt C u n s) |
| 418 | (DefectIncrementBounds.slowSlice (VariableGaugeMean.rankIncrementState g r axial C u).angular n s) |
| 419 | (DefectIncrementBounds.slowSlice (VariableGaugeMean.rankIncrementState g r axial C u).axial n s) := by |
| 420 | have hinc := rankIncrementState_on hl hc P k hV hU hmap H G R K J F axial axialr ha |
| 421 | exact fiveRows_chart hl (F.fiveRows hlo hlohi hU hleft hright axialr nr (hmap hs)) |
| 422 | (scalarOn_slice hl P k G.base.angular hs) (scalarOn_slice hl P k G.base.axial hs) |
| 423 | (scalarOn_slice hl P k hinc.angular hs) (scalarOn_slice hl P k hinc.axial hs) |
| 424 | (measured_debt_on hl P k hV hU hmap H G R hs) |
| 425 | |
| 426 | /-- The physical axial unit has the required chart differential, with the |
| 427 | actual viscosity/axial coefficient `Q^h`. -/ |
| 428 | theorem band_axial_vector (h : ℝ) (n m k : ℕ) : |
| 429 | ((bandSlowEquiv h n m).toContinuousLinearMap.prodMap (TemporalMeanUpdate.coverMap k)) |
| 430 | (ChartScales.Q n ^ h • (((0,1) : PressureStream.Plane), (0 : PressureStream.Plane))) = |
| 431 | bandScale n m • (ChartScales.Q m ^ h • (((0,1) : PressureStream.Plane), (0 : PressureStream.Plane))) := by |
| 432 | have hQ : 0 < ChartScales.Q n / ChartScales.Q m := div_pos (ChartScales.Q_pos n) (ChartScales.Q_pos m) |
| 433 | have he : ChartScales.Q n ^ h = (ChartScales.Q n / ChartScales.Q m)^h * ChartScales.Q m ^ h := by |
| 434 | rw [Real.div_rpow (ChartScales.Q_pos n).le (ChartScales.Q_pos m).le] |
| 435 | exact (div_mul_cancel₀ _ (Real.rpow_pos_of_pos (ChartScales.Q_pos m) h).ne').symm |
| 436 | have hp : (ChartScales.Q n / ChartScales.Q m)^CoordinateAlgebra.D h * ChartScales.Q n ^ h = |
| 437 | bandScale n m * ChartScales.Q m ^ h := by |
| 438 | rw [he, ← mul_assoc, ← Real.rpow_add hQ] |
| 439 | congr 2 |
| 440 | unfold CoordinateAlgebra.D |
| 441 | ring |
| 442 | apply Prod.ext |
| 443 | · apply Prod.ext |
| 444 | · simp [bandSlowEquiv_apply] |
| 445 | · change (ChartScales.Q n / ChartScales.Q m)^CoordinateAlgebra.D h * (ChartScales.Q n ^ h * 1) = |
| 446 | bandScale n m * (ChartScales.Q m ^ h * 1) |
| 447 | simpa only [mul_one] using hp |
| 448 | · simp |
| 449 | |
| 450 | /-- Concrete normalized rank stage at the common cover. Every rank |
| 451 | parameter and axial scaling law is derived from the shared data. -/ |
| 452 | theorem normalized_rankStageState_on {h d a b M B lam ra rb : ℝ} |
| 453 | (hh : 0 < h) (hh1 : h < 1/2) (hab : a < b) |
| 454 | (index : ℕ → ℕ) (n m k : ℕ) (hi : index n + k = index m) |
| 455 | {V U : Set PressureStream.Plane} (hV : IsOpen V) (hU : IsOpen U) |
| 456 | (htime : ∀ s ∈ V, 0 < s.1) (hmap : MapsTo (bandSlowEquiv h n m) V U) |
| 457 | (C Cr : CorrectionState.Context (PressureStream.Lift PressureStream.Plane)) |
| 458 | (u ur : CorrectionState.State (PressureStream.Lift PressureStream.Plane)) |
| 459 | (H : StateOn (PhysicalMeanDomain.slowDomain V) (bandChartEquiv h n m k) |
| 460 | (bandVelocityScale h n m) (bandScale n m) u ur n m) |
| 461 | (G : ContextOn (PhysicalMeanDomain.slowDomain V) (bandChartEquiv h n m k) |
| 462 | (bandVelocityScale h n m) (bandScale n m) C Cr n m) |
| 463 | (R : DebtRegular U Cr ur m) |
| 464 | (F : LocalRankDefect.RankGeometry (VariableGaugeMean.similarityGauge h d a b M hab index) |
| 465 | (RankStateBounds.normalizedData (2*h) (CoordinateAlgebra.A h) B lam ra rb) U Cr ur) |
| 466 | (heps : C.operators.epsilon n = ChartScales.Q n ^ h) |
| 467 | (hepsr : Cr.operators.epsilon m = ChartScales.Q m ^ h) |
| 468 | (hf : ContDiffOn ℝ ∞ ((rankAddedState (VariableGaugeMean.similarityGauge h d a b M hab index) |
| 469 | (RankStateBounds.normalizedData (2*h) (CoordinateAlgebra.A h) B lam ra rb) ((0,1),0) Cr ur).gr Cr m) |
| 470 | (PhysicalMeanDomain.slowDomain U)) |
| 471 | (hp : PhysicalMeanDomain.PeriodicOn U ((rankAddedState (VariableGaugeMean.similarityGauge h d a b M hab index) |
| 472 | (RankStateBounds.normalizedData (2*h) (CoordinateAlgebra.A h) B lam ra rb) ((0,1),0) Cr ur).gr Cr m)) |
| 473 | (hs : VariableGaugeMean.SupportedGauge a b (VariableGaugeMean.qLength (2*h)) U |
| 474 | ((rankAddedState (VariableGaugeMean.similarityGauge h d a b M hab index) |
| 475 | (RankStateBounds.normalizedData (2*h) (CoordinateAlgebra.A h) B lam ra rb) ((0,1),0) Cr ur).gr Cr m)) : |
| 476 | StateOn (PhysicalMeanDomain.slowDomain V) (bandChartEquiv h n m k) |
| 477 | (bandVelocityScale h n m) (bandScale n m) |
| 478 | (VariableGaugeMean.rankStageState (VariableGaugeMean.similarityGauge h d a b M hab index) |
| 479 | (RankStateBounds.normalizedData (2*h) (CoordinateAlgebra.A h) B lam ra rb) ((0,1),0) C u) |
| 480 | (VariableGaugeMean.rankStageState (VariableGaugeMean.similarityGauge h d a b M hab index) |
| 481 | (RankStateBounds.normalizedData (2*h) (CoordinateAlgebra.A h) B lam ra rb) ((0,1),0) Cr ur) n m := by |
| 482 | apply rankStageState_on (bandScale_pos n m) |
| 483 | (Real.rpow_pos_of_pos (div_pos (ChartScales.Q_pos n) (ChartScales.Q_pos m)) _).ne' |
| 484 | (bandSlowEquiv h n m) k hV hU hmap H G R |
| 485 | (normalized_rank_on hh hh1 B lam ra rb n m htime) |
| 486 | (similarityGaugeOn hh hh1 d a b M hab index n m k hi htime) F ((0,1),0) ((0,1),0) _ hf hp hs |
| 487 | rw [heps, hepsr] |
| 488 | exact band_axial_vector h n m k |
| 489 | |
| 490 | end NavierStokes.RankStateCoherence |