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

refactor(NavierStokes): extract correction-step covariance identities #30
Open
+4 −163 NavierStokes/CorrectionStep.lean View file
| @@ -44,14 +44,14 @@ import NavierStokes.LocalSignedRequest | ||
| 44 | 44 | import NavierStokes.ParticularWaveAssembly |
| 45 | 45 | import NavierStokes.LocalRankDefect |
| 46 | 46 | import NavierStokes.StateReindex |
| 47 | +import NavierStokes.CorrectionStepCovariance | |
| 47 | 48 | |
| 48 | 49 | /-! |
| 49 | 50 | # Exact field bookkeeping for one correction cycle |
| 50 | 51 | |
| 51 | -The residuals in this file are the differentiated nonlinear fields in (32). | |
| 52 | -In particular, changing the wave covariance and changing a mean velocity are | |
| 53 | -not treated as independent black-box state transitions. Every old/new cross | |
| 54 | -term is retained in the displayed residual differences. | |
| 52 | +`NavierStokes.CorrectionStepCovariance` supplies the exact changes of the | |
| 53 | +angularly averaged residual. Here we track the full residual and its averaged | |
| 54 | +components through a correction cycle, retaining the old/new cross terms. | |
| 55 | 55 | -/ |
| 56 | 56 | |
| 57 | 57 | noncomputable section |
| @@ -63,165 +63,6 @@ open scoped ContDiff BigOperators | ||
| 63 | 63 | |
| 64 | 64 | variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 65 | 65 | |
| 66 | -abbrev ScalarField (D : Type) := MeanIncrementBounds.Field D | |
| 67 | -abbrev Tensor (D : Type) := Fin 3 → Fin 3 → ScalarField D | |
| 68 | - | |
| 69 | -/-- These are changes of the literal covariance terms in (32). -/ | |
| 70 | -noncomputable def thetaCovarianceChange (o : Operators D) (X : Tensor D) : ScalarField D := | |
| 71 | - o.radialDiv 2 (X 0 1) + o.dz (X 2 1) | |
| 72 | - | |
| 73 | -noncomputable def axialCovarianceChange (o : Operators D) (X : Tensor D) : ScalarField D := | |
| 74 | - o.radialDiv 1 (X 0 2) + o.dz (X 2 2) | |
| 75 | - | |
| 76 | -noncomputable def radialCovarianceChange (o : Operators D) (X : Tensor D) : ScalarField D := | |
| 77 | - -o.radialDiv 1 (X 0 0) - o.dz (X 2 0) + o.invRadius * X 1 1 | |
| 78 | - | |
| 79 | -theorem smooth_updated {U : Set D} {m h : Triple D} | |
| 80 | - (hm : SmoothTriple U m) (hh : SmoothTriple U h) : SmoothTriple U (updated m h) := | |
| 81 | - ⟨hm.radial.add hh.radial, hm.angular.add hh.angular, hm.axial.add hh.axial⟩ | |
| 82 | - | |
| 83 | -section CovarianceChanges | |
| 84 | - | |
| 85 | -variable {U : Set D} (hU : IsOpen U) (o : Operators D) | |
| 86 | - {b m : Triple D} (hb : SmoothTriple U b) (hm : SmoothTriple U m) | |
| 87 | - (W X : Tensor D) (hW : ∀ i j, SmoothOn U (W i j)) | |
| 88 | - (hX : ∀ i j, SmoothOn U (X i j)) | |
| 89 | - | |
| 90 | -include hU hb hm hW hX in | |
| 91 | -theorem thetaResidual_covariance_change (T : ScalarField D) : | |
| 92 | - Agree U (thetaResidual o b m (W + X) T - thetaResidual o b m W T) | |
| 93 | - (thetaCovarianceChange o X) := by | |
| 94 | - have hr : thetaRadial b m + (W + X) 0 1 = (thetaRadial b m + W 0 1) + X 0 1 := by | |
| 95 | - funext n x | |
| 96 | - simp only [Pi.add_apply] | |
| 97 | - ring | |
| 98 | - have hz : thetaAxial b m + (W + X) 2 1 = (thetaAxial b m + W 2 1) + X 2 1 := by | |
| 99 | - funext n x | |
| 100 | - simp only [Pi.add_apply] | |
| 101 | - ring | |
| 102 | - simp only [Pi.add_apply] at hr hz | |
| 103 | - intro n x hx | |
| 104 | - simp only [thetaResidual, Pi.sub_apply, Pi.add_apply] | |
| 105 | - rw [hr, hz, o.radialDiv_add hU 2 ((hb.thetaRadial hm).add (hW 0 1)) (hX 0 1) n hx, | |
| 106 | - o.dz_add hU ((hb.thetaAxial hm).add (hW 2 1)) (hX 2 1) n hx] | |
| 107 | - simp only [thetaCovarianceChange, Pi.add_apply] | |
| 108 | - ring | |
| 109 | - | |
| 110 | -include hU hb hm hW hX in | |
| 111 | -theorem axialResidual_covariance_change (p T : ScalarField D) (hp : SmoothOn U p) : | |
| 112 | - Agree U (axialResidual o b m (W + X) p T - axialResidual o b m W p T) | |
| 113 | - (axialCovarianceChange o X) := by | |
| 114 | - have hr : axialRadial b m + (W + X) 0 2 = (axialRadial b m + W 0 2) + X 0 2 := by | |
| 115 | - funext n x | |
| 116 | - simp only [Pi.add_apply] | |
| 117 | - ring | |
| 118 | - have hz : axialAxial b m + (W + X) 2 2 + p = (axialAxial b m + W 2 2 + p) + X 2 2 := by | |
| 119 | - funext n x | |
| 120 | - simp only [Pi.add_apply] | |
| 121 | - ring | |
| 122 | - simp only [Pi.add_apply] at hr hz | |
| 123 | - intro n x hx | |
| 124 | - simp only [axialResidual, Pi.sub_apply, Pi.add_apply] | |
| 125 | - rw [hr, hz, o.radialDiv_add hU 1 ((hb.axialRadial hm).add (hW 0 2)) (hX 0 2) n hx, | |
| 126 | - o.dz_add hU (((hb.axialAxial hm).add (hW 2 2)).add hp) (hX 2 2) n hx] | |
| 127 | - simp only [axialCovarianceChange, Pi.add_apply] | |
| 128 | - ring | |
| 129 | - | |
| 130 | -include hU hb hm hW hX in | |
| 131 | -theorem gr_covariance_change : | |
| 132 | - Agree U (gr o b m (W + X) - gr o b m W) (radialCovarianceChange o X) := by | |
| 133 | - have hr : radialRadial b m + (W + X) 0 0 = (radialRadial b m + W 0 0) + X 0 0 := by | |
| 134 | - funext n x | |
| 135 | - simp only [Pi.add_apply] | |
| 136 | - ring | |
| 137 | - have hz : axialRadial b m + (W + X) 2 0 = (axialRadial b m + W 2 0) + X 2 0 := by | |
| 138 | - funext n x | |
| 139 | - simp only [Pi.add_apply] | |
| 140 | - ring | |
| 141 | - simp only [Pi.add_apply] at hr hz | |
| 142 | - intro n x hx | |
| 143 | - simp only [gr, Pi.sub_apply, Pi.add_apply, Pi.neg_apply, Pi.mul_apply] | |
| 144 | - rw [hr, hz, o.radialDiv_add hU 1 ((hb.radialRadial hm).add (hW 0 0)) (hX 0 0) n hx, | |
| 145 | - o.dz_add hU ((hb.axialRadial hm).add (hW 2 0)) (hX 2 0) n hx] | |
| 146 | - simp only [radialCovarianceChange, Pi.add_apply, Pi.sub_apply, Pi.neg_apply, Pi.mul_apply] | |
| 147 | - ring | |
| 148 | - | |
| 149 | -end CovarianceChanges | |
| 150 | - | |
| 151 | -section JointChanges | |
| 152 | - | |
| 153 | -variable {U : Set D} (hU : IsOpen U) (o : Operators D) | |
| 154 | - (ha : ContDiffOn ℝ ∞ o.radialProfile U) | |
| 155 | - {b m h : Triple D} (hb : SmoothTriple U b) (hm : SmoothTriple U m) | |
| 156 | - (hh : SmoothTriple U h) (W X : Tensor D) | |
| 157 | - (hW : ∀ i j, SmoothOn U (W i j)) (hX : ∀ i j, SmoothOn U (X i j)) | |
| 158 | - | |
| 159 | -include hU ha hb hm hh hW hX in | |
| 160 | -theorem thetaResidual_joint_change (T : ScalarField D) : | |
| 161 | - Agree U (thetaResidual o b (updated m h) (W + X) T - thetaResidual o b m W T) | |
| 162 | - (o.fastTime h.angular + thetaRemainder o b m h + thetaCovarianceChange o X) := by | |
| 163 | - intro n x hx | |
| 164 | - have hmean := thetaResidual_change hU o ha hb hm hh W hW T n hx | |
| 165 | - have hwave := thetaResidual_covariance_change hU o hb (smooth_updated hm hh) W X hW hX T n hx | |
| 166 | - simp only [Pi.add_apply, Pi.sub_apply] at * | |
| 167 | - linarith | |
| 168 | - | |
| 169 | -include hU ha hb hm hh hW hX in | |
| 170 | -theorem axialResidual_joint_change (p δp T : ScalarField D) | |
| 171 | - (hp : SmoothOn U p) (hδp : SmoothOn U δp) : | |
| 172 | - Agree U (axialResidual o b (updated m h) (W + X) (p + δp) T - | |
| 173 | - axialResidual o b m W p T) | |
| 174 | - (o.fastTime h.axial + axialRemainder o b m h δp + axialCovarianceChange o X) := by | |
| 175 | - intro n x hx | |
| 176 | - have hmean := axialResidual_change hU o ha hb hm hh W hW p δp T hp hδp n hx | |
| 177 | - have hwave := axialResidual_covariance_change hU o hb (smooth_updated hm hh) W X hW hX | |
| 178 | - (p + δp) T (hp.add hδp) n hx | |
| 179 | - simp only [Pi.add_apply, Pi.sub_apply] at * | |
| 180 | - linarith | |
| 181 | - | |
| 182 | -include hU ha hb hm hh hW hX in | |
| 183 | -theorem gr_joint_change : | |
| 184 | - Agree U (gr o b (updated m h) (W + X) - gr o b m W) | |
| 185 | - (leadingRadial o b h + radialRemainder o b m h + radialCovarianceChange o X) := by | |
| 186 | - intro n x hx | |
| 187 | - have hmean := gr_change hU o ha hb hm hh W hW n hx | |
| 188 | - have hwave := gr_covariance_change hU o hb (smooth_updated hm hh) W X hW hX n hx | |
| 189 | - simp only [Pi.add_apply, Pi.sub_apply] at * | |
| 190 | - linarith | |
| 191 | - | |
| 192 | -end JointChanges | |
| 193 | - | |
| 194 | -/-- A bound on each actual tensor entry. It is not a bound on the resulting | |
| 195 | -residual and contains no update-preservation assertion. -/ | |
| 196 | -def TensorClass (s : StripData D) (α : ℝ) (X : Tensor D) : Prop := | |
| 197 | - ∀ i j, MeanClass s α (X i j) | |
| 198 | - | |
| 199 | -section CovarianceBounds | |
| 200 | - | |
| 201 | -variable {s : StripData D} {o : Operators D} {κ α : ℝ} | |
| 202 | - (ho : OperatorBounds s o κ) {X : Tensor D} (hX : TensorClass s α X) | |
| 203 | - | |
| 204 | -include ho hX in | |
| 205 | -theorem thetaCovarianceChange_mem : | |
| 206 | - MeanClass s (α - κ) (thetaCovarianceChange o X) := by | |
| 207 | - exact (ho.radialDiv (hX 0 1) 2).add | |
| 208 | - ((ho.dz (hX 2 1)).mono_exponent (by linarith [ho.kappa_nonneg])) | |
| 209 | - | |
| 210 | -include ho hX in | |
| 211 | -theorem axialCovarianceChange_mem : | |
| 212 | - MeanClass s (α - κ) (axialCovarianceChange o X) := by | |
| 213 | - exact (ho.radialDiv (hX 0 2) 1).add | |
| 214 | - ((ho.dz (hX 2 2)).mono_exponent (by linarith [ho.kappa_nonneg])) | |
| 215 | - | |
| 216 | -include ho hX in | |
| 217 | -theorem radialCovarianceChange_mem : | |
| 218 | - MeanClass s (α - κ) (radialCovarianceChange o X) := by | |
| 219 | - exact (Class.sub (Class.neg (ho.radialDiv (hX 0 0) 1)) | |
| 220 | - ((ho.dz (hX 2 0)).mono_exponent (by linarith [ho.kappa_nonneg]))).add | |
| 221 | - ((ho.inv_mul (hX 1 1)).mono_exponent (by linarith [ho.kappa_nonneg])) | |
| 222 | - | |
| 223 | -end CovarianceBounds | |
| 224 | - | |
| 225 | 66 | /-! ## The full differential residual, before angular averaging -/ |
| 226 | 67 | |
| 227 | 68 | section FullCalculus |
+181 −0 NavierStokes/CorrectionStepCovariance.lean added View file
| @@ -0,0 +1,181 @@ | ||
| 1 | +import NavierStokes.MeanIncrementBounds | |
| 2 | + | |
| 3 | +/-! | |
| 4 | +# Changes in the angularly averaged residual | |
| 5 | + | |
| 6 | +Section 8.1, equation (8.3), of *Finite time blowup for Navier–Stokes* (166-page | |
| 7 | +version) gives the azimuthal and axial residuals and the radial pressure source. | |
| 8 | +This module subtracts those expressions before and after a covariance increment, | |
| 9 | +first with the mean fixed and then with a simultaneous mean update. It also bounds | |
| 10 | +the covariance contributions from a bound on each tensor entry. | |
| 11 | +-/ | |
| 12 | + | |
| 13 | +noncomputable section | |
| 14 | + | |
| 15 | +namespace NavierStokes.CorrectionStep | |
| 16 | + | |
| 17 | +open Set WeightedClasses MeanIncrementBounds | |
| 18 | +open scoped ContDiff BigOperators | |
| 19 | + | |
| 20 | +variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] | |
| 21 | + | |
| 22 | +abbrev ScalarField (D : Type) := MeanIncrementBounds.Field D | |
| 23 | +abbrev Tensor (D : Type) := Fin 3 → Fin 3 → ScalarField D | |
| 24 | + | |
| 25 | +/-- These are changes of the literal covariance terms in (8.3). -/ | |
| 26 | +noncomputable def thetaCovarianceChange (o : Operators D) (X : Tensor D) : ScalarField D := | |
| 27 | + o.radialDiv 2 (X 0 1) + o.dz (X 2 1) | |
| 28 | + | |
| 29 | +noncomputable def axialCovarianceChange (o : Operators D) (X : Tensor D) : ScalarField D := | |
| 30 | + o.radialDiv 1 (X 0 2) + o.dz (X 2 2) | |
| 31 | + | |
| 32 | +noncomputable def radialCovarianceChange (o : Operators D) (X : Tensor D) : ScalarField D := | |
| 33 | + -o.radialDiv 1 (X 0 0) - o.dz (X 2 0) + o.invRadius * X 1 1 | |
| 34 | + | |
| 35 | +theorem smooth_updated {U : Set D} {m h : Triple D} | |
| 36 | + (hm : SmoothTriple U m) (hh : SmoothTriple U h) : SmoothTriple U (updated m h) := | |
| 37 | + ⟨hm.radial.add hh.radial, hm.angular.add hh.angular, hm.axial.add hh.axial⟩ | |
| 38 | + | |
| 39 | +section CovarianceChanges | |
| 40 | + | |
| 41 | +variable {U : Set D} (hU : IsOpen U) (o : Operators D) | |
| 42 | + {b m : Triple D} (hb : SmoothTriple U b) (hm : SmoothTriple U m) | |
| 43 | + (W X : Tensor D) (hW : ∀ i j, SmoothOn U (W i j)) | |
| 44 | + (hX : ∀ i j, SmoothOn U (X i j)) | |
| 45 | + | |
| 46 | +include hU hb hm hW hX in | |
| 47 | +theorem thetaResidual_covariance_change (T : ScalarField D) : | |
| 48 | + Agree U (thetaResidual o b m (W + X) T - thetaResidual o b m W T) | |
| 49 | + (thetaCovarianceChange o X) := by | |
| 50 | + have hr : thetaRadial b m + (W + X) 0 1 = (thetaRadial b m + W 0 1) + X 0 1 := by | |
| 51 | + funext n x | |
| 52 | + simp only [Pi.add_apply] | |
| 53 | + ring | |
| 54 | + have hz : thetaAxial b m + (W + X) 2 1 = (thetaAxial b m + W 2 1) + X 2 1 := by | |
| 55 | + funext n x | |
| 56 | + simp only [Pi.add_apply] | |
| 57 | + ring | |
| 58 | + simp only [Pi.add_apply] at hr hz | |
| 59 | + intro n x hx | |
| 60 | + simp only [thetaResidual, Pi.sub_apply, Pi.add_apply] | |
| 61 | + rw [hr, hz, o.radialDiv_add hU 2 ((hb.thetaRadial hm).add (hW 0 1)) (hX 0 1) n hx, | |
| 62 | + o.dz_add hU ((hb.thetaAxial hm).add (hW 2 1)) (hX 2 1) n hx] | |
| 63 | + simp only [thetaCovarianceChange, Pi.add_apply] | |
| 64 | + ring | |
| 65 | + | |
| 66 | +include hU hb hm hW hX in | |
| 67 | +theorem axialResidual_covariance_change (p T : ScalarField D) (hp : SmoothOn U p) : | |
| 68 | + Agree U (axialResidual o b m (W + X) p T - axialResidual o b m W p T) | |
| 69 | + (axialCovarianceChange o X) := by | |
| 70 | + have hr : axialRadial b m + (W + X) 0 2 = (axialRadial b m + W 0 2) + X 0 2 := by | |
| 71 | + funext n x | |
| 72 | + simp only [Pi.add_apply] | |
| 73 | + ring | |
| 74 | + have hz : axialAxial b m + (W + X) 2 2 + p = (axialAxial b m + W 2 2 + p) + X 2 2 := by | |
| 75 | + funext n x | |
| 76 | + simp only [Pi.add_apply] | |
| 77 | + ring | |
| 78 | + simp only [Pi.add_apply] at hr hz | |
| 79 | + intro n x hx | |
| 80 | + simp only [axialResidual, Pi.sub_apply, Pi.add_apply] | |
| 81 | + rw [hr, hz, o.radialDiv_add hU 1 ((hb.axialRadial hm).add (hW 0 2)) (hX 0 2) n hx, | |
| 82 | + o.dz_add hU (((hb.axialAxial hm).add (hW 2 2)).add hp) (hX 2 2) n hx] | |
| 83 | + simp only [axialCovarianceChange, Pi.add_apply] | |
| 84 | + ring | |
| 85 | + | |
| 86 | +include hU hb hm hW hX in | |
| 87 | +theorem gr_covariance_change : | |
| 88 | + Agree U (gr o b m (W + X) - gr o b m W) (radialCovarianceChange o X) := by | |
| 89 | + have hr : radialRadial b m + (W + X) 0 0 = (radialRadial b m + W 0 0) + X 0 0 := by | |
| 90 | + funext n x | |
| 91 | + simp only [Pi.add_apply] | |
| 92 | + ring | |
| 93 | + have hz : axialRadial b m + (W + X) 2 0 = (axialRadial b m + W 2 0) + X 2 0 := by | |
| 94 | + funext n x | |
| 95 | + simp only [Pi.add_apply] | |
| 96 | + ring | |
| 97 | + simp only [Pi.add_apply] at hr hz | |
| 98 | + intro n x hx | |
| 99 | + simp only [gr, Pi.sub_apply, Pi.add_apply, Pi.neg_apply, Pi.mul_apply] | |
| 100 | + rw [hr, hz, o.radialDiv_add hU 1 ((hb.radialRadial hm).add (hW 0 0)) (hX 0 0) n hx, | |
| 101 | + o.dz_add hU ((hb.axialRadial hm).add (hW 2 0)) (hX 2 0) n hx] | |
| 102 | + simp only [radialCovarianceChange, Pi.add_apply, Pi.sub_apply, Pi.neg_apply, Pi.mul_apply] | |
| 103 | + ring | |
| 104 | + | |
| 105 | +end CovarianceChanges | |
| 106 | + | |
| 107 | +section JointChanges | |
| 108 | + | |
| 109 | +variable {U : Set D} (hU : IsOpen U) (o : Operators D) | |
| 110 | + (ha : ContDiffOn ℝ ∞ o.radialProfile U) | |
| 111 | + {b m h : Triple D} (hb : SmoothTriple U b) (hm : SmoothTriple U m) | |
| 112 | + (hh : SmoothTriple U h) (W X : Tensor D) | |
| 113 | + (hW : ∀ i j, SmoothOn U (W i j)) (hX : ∀ i j, SmoothOn U (X i j)) | |
| 114 | + | |
| 115 | +include hU ha hb hm hh hW hX in | |
| 116 | +theorem thetaResidual_joint_change (T : ScalarField D) : | |
| 117 | + Agree U (thetaResidual o b (updated m h) (W + X) T - thetaResidual o b m W T) | |
| 118 | + (o.fastTime h.angular + thetaRemainder o b m h + thetaCovarianceChange o X) := by | |
| 119 | + intro n x hx | |
| 120 | + have hmean := thetaResidual_change hU o ha hb hm hh W hW T n hx | |
| 121 | + have hwave := thetaResidual_covariance_change hU o hb (smooth_updated hm hh) W X hW hX T n hx | |
| 122 | + simp only [Pi.add_apply, Pi.sub_apply] at * | |
| 123 | + linarith | |
| 124 | + | |
| 125 | +include hU ha hb hm hh hW hX in | |
| 126 | +theorem axialResidual_joint_change (p δp T : ScalarField D) | |
| 127 | + (hp : SmoothOn U p) (hδp : SmoothOn U δp) : | |
| 128 | + Agree U (axialResidual o b (updated m h) (W + X) (p + δp) T - | |
| 129 | + axialResidual o b m W p T) | |
| 130 | + (o.fastTime h.axial + axialRemainder o b m h δp + axialCovarianceChange o X) := by | |
| 131 | + intro n x hx | |
| 132 | + have hmean := axialResidual_change hU o ha hb hm hh W hW p δp T hp hδp n hx | |
| 133 | + have hwave := axialResidual_covariance_change hU o hb (smooth_updated hm hh) W X hW hX | |
| 134 | + (p + δp) T (hp.add hδp) n hx | |
| 135 | + simp only [Pi.add_apply, Pi.sub_apply] at * | |
| 136 | + linarith | |
| 137 | + | |
| 138 | +include hU ha hb hm hh hW hX in | |
| 139 | +theorem gr_joint_change : | |
| 140 | + Agree U (gr o b (updated m h) (W + X) - gr o b m W) | |
| 141 | + (leadingRadial o b h + radialRemainder o b m h + radialCovarianceChange o X) := by | |
| 142 | + intro n x hx | |
| 143 | + have hmean := gr_change hU o ha hb hm hh W hW n hx | |
| 144 | + have hwave := gr_covariance_change hU o hb (smooth_updated hm hh) W X hW hX n hx | |
| 145 | + simp only [Pi.add_apply, Pi.sub_apply] at * | |
| 146 | + linarith | |
| 147 | + | |
| 148 | +end JointChanges | |
| 149 | + | |
| 150 | +/-- A bound on each actual tensor entry. It is not a bound on the resulting | |
| 151 | +residual and contains no update-preservation assertion. -/ | |
| 152 | +def TensorClass (s : StripData D) (α : ℝ) (X : Tensor D) : Prop := | |
| 153 | + ∀ i j, MeanClass s α (X i j) | |
| 154 | + | |
| 155 | +section CovarianceBounds | |
| 156 | + | |
| 157 | +variable {s : StripData D} {o : Operators D} {κ α : ℝ} | |
| 158 | + (ho : OperatorBounds s o κ) {X : Tensor D} (hX : TensorClass s α X) | |
| 159 | + | |
| 160 | +include ho hX in | |
| 161 | +theorem thetaCovarianceChange_mem : | |
| 162 | + MeanClass s (α - κ) (thetaCovarianceChange o X) := by | |
| 163 | + exact (ho.radialDiv (hX 0 1) 2).add | |
| 164 | + ((ho.dz (hX 2 1)).mono_exponent (by linarith [ho.kappa_nonneg])) | |
| 165 | + | |
| 166 | +include ho hX in | |
| 167 | +theorem axialCovarianceChange_mem : | |
| 168 | + MeanClass s (α - κ) (axialCovarianceChange o X) := by | |
| 169 | + exact (ho.radialDiv (hX 0 2) 1).add | |
| 170 | + ((ho.dz (hX 2 2)).mono_exponent (by linarith [ho.kappa_nonneg])) | |
| 171 | + | |
| 172 | +include ho hX in | |
| 173 | +theorem radialCovarianceChange_mem : | |
| 174 | + MeanClass s (α - κ) (radialCovarianceChange o X) := by | |
| 175 | + exact (Class.sub (Class.neg (ho.radialDiv (hX 0 0) 1)) | |
| 176 | + ((ho.dz (hX 2 0)).mono_exponent (by linarith [ho.kappa_nonneg]))).add | |
| 177 | + ((ho.inv_mul (hX 1 1)).mono_exponent (by linarith [ho.kappa_nonneg])) | |
| 178 | + | |
| 179 | +end CovarianceBounds | |
| 180 | + | |
| 181 | +end NavierStokes.CorrectionStep | |
+16 −0 routes/p2-correction-covariance/README.md added View file
| @@ -0,0 +1,16 @@ | ||
| 1 | +--- | |
| 2 | +issue: 3 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | + | |
| 6 | +# P-2: Split out the covariance and mean-velocity residual changes | |
| 7 | + | |
| 8 | +First slice only: `NavierStokes/CorrectionStepCovariance.lean` takes the opening block of `CorrectionStep.lean` through `end CovarianceBounds`. It accounts for covariance and joint mean/covariance changes in the angularly averaged residual and bounds the covariance contributions. The declarations retain their existing namespace, statements and proof text. `NavierStokes.CorrectionStep` imports the new module so downstream imports need not change. | |
| 9 | + | |
| 10 | +In the [166-page paper](https://cdn.openai.com/pdf/32d9f210-8b73-45e0-91bc-82a30aef8a9a/navier-stokes.pdf), the tensor entries and signs in `thetaCovarianceChange`, `axialCovarianceChange`, and `radialCovarianceChange` match the covariance contributions to `Eθ`, `Ez`, and `gr` in §8.1, equation (8.3). The joint-change lemmas combine these differences with a mean update. The old source comment said “(32)”; §5 in this version instead constructs the higher-order base field, and its equation (5.32) is not this residual identity. The paper reference concerns this block, not the whole file. | |
| 11 | + | |
| 12 | +To reproduce, run `python3 checks/challenge.py .` from an LF checkout, then `lake build NavierStokes.CorrectionStepCovariance NavierStokes.CorrectionStep` with the pinned Lean toolchain and dependencies. On Windows a checkout that converts LF to CRLF causes false hash mismatches in the frozen challenge files; a Git archive produced with `-c core.autocrlf=false -c core.eol=lf` avoids that conversion. Local Lean compilation was not run because the pinned toolchain is absent; the remote `build` checks the original entry point and its downstream users. | |
| 13 | + | |
| 14 | +## Next | |
| 15 | + | |
| 16 | +Review this single §8.1 split and check the remote build before extracting a second block. The issue points to §5, so the maintainer should confirm whether the later blocks should likewise be mapped to their actual sections in the 166-page paper. | |