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(Euler/Drift): 9 small modules folded into the files that import them (−31.7%, measured) #694
Open
+523 −1 Euler/DriftCorrectionBootstrap.lean View file
| @@ -1,8 +1,530 @@ | ||
| 1 | -import Euler.DriftCorrectionMildEnergy | |
| 1 | +import Euler.DriftCorrectionForcing | |
| 2 | +import Euler.GevreyNonlinearEstimate | |
| 3 | +import Euler.NonlinearEnergyConstants | |
| 4 | +import Euler.CorrectionEnergyScalar | |
| 5 | +import Euler.DriftCorrectionBudget | |
| 6 | +import Euler.CorrectionEnergyRestriction | |
| 7 | +import Euler.MildMajorantEnergy | |
| 2 | 8 | import Euler.CorrectionEnergyBootstrap |
| 3 | 9 | |
| 4 | 10 | /-! The actual nonlinear viscous correction closes its shrinking-radius Gevrey bootstrap from the constructed mild equation. -/ |
| 5 | 11 | |
| 12 | +/-! ## From `Euler/DriftEnergyConstants.lean` | |
| 13 | + | |
| 14 | +The text of `Euler/DriftEnergyConstants.lean`, folded into this file, which was its only importer. -/ | |
| 15 | + | |
| 16 | +section | |
| 17 | + | |
| 18 | +/-! Separate the full background norm from the drift norm in the radius-loss term. -/ | |
| 19 | + | |
| 20 | +noncomputable section | |
| 21 | + | |
| 22 | +namespace EulerDriftEnergyConstants | |
| 23 | + | |
| 24 | +open EulerGevreyCorrectionBound EulerGevreyMetricEstimate EulerGevreyGrowthCoefficient | |
| 25 | + EulerNonlinearEnergyConstants | |
| 26 | + | |
| 27 | +variable (period : ℝ) [Fact (0 < period)] | |
| 28 | + | |
| 29 | +/-- The full velocity enters the zero-order coefficient; only the drift enters the loss term. -/ | |
| 30 | +def forcingPolynomial (B M Z0 B0 B1 A0 A2 residual c Rc ρ X Y : ℝ) : ℝ := | |
| 31 | + sourceConstant B M * residual + linearCoefficient period B M Z0 B1 A0 A2 c * X + | |
| 32 | + quadraticCoefficient period B M A2 c * X ^ 2 + | |
| 33 | + lossCoefficient period M c * (ρ⁻¹ + Rc) * (B0 + X) * Y | |
| 34 | + | |
| 35 | +/-- The existing polynomial growth constant absorbs the sharp drift forcing without | |
| 36 | +replacing its small drift envelope by the full background envelope. -/ | |
| 37 | +theorem actual_scalar_bound (g0 g1 k B M Z0 B0 B1 A0 A2 c Rc ρ residual X Y b : ℝ) | |
| 38 | + (hg0 : 0 ≤ g0) (hg1 : 0 ≤ g1) (hk : 0 ≤ k) (hB : 0 ≤ B) (hM : 0 ≤ M) | |
| 39 | + (hZ0 : 0 ≤ Z0) (hB0 : 0 ≤ B0) (hB1 : 0 ≤ B1) (hA0 : 0 ≤ A0) | |
| 40 | + (hA2 : 0 ≤ A2) (hc : 0 < c) (hRc : 0 ≤ Rc) (hρ : 0 < ρ) | |
| 41 | + (hr : 0 ≤ residual) (hX : 0 ≤ X) (hY : 0 ≤ Y) : | |
| 42 | + let C := energyConstant period g0 g1 k B M Z0 B1 A0 A2 c | |
| 43 | + (g0 + g1 * X) * X + b * Y + | |
| 44 | + k * forcingPolynomial period B M Z0 B0 B1 A0 A2 residual c Rc ρ X Y ≤ | |
| 45 | + C * (X + X ^ 2 + residual) + (b + C * (ρ⁻¹ + Rc) * (B0 + X)) * Y := by | |
| 46 | + obtain ⟨hl, hq, hd⟩ := coefficients_nonneg period B M Z0 B1 A0 A2 c | |
| 47 | + hB hM hZ0 hB1 hA0 hA2 hc | |
| 48 | + have hs := sourceConstant_nonneg hB hM | |
| 49 | + have h := absorb_scalar_coefficients g0 g1 (k * sourceConstant B M) | |
| 50 | + (k * linearCoefficient period B M Z0 B1 A0 A2 c) | |
| 51 | + (k * quadraticCoefficient period B M A2 c) (k * lossCoefficient period M c) | |
| 52 | + residual X Y B0 (ρ⁻¹ + Rc) (energyConstant period g0 g1 k B M Z0 B1 A0 A2 c) | |
| 53 | + hg0 hg1 (mul_nonneg hk hs) (mul_nonneg hk hl) (mul_nonneg hk hq) | |
| 54 | + (mul_nonneg hk hd) hr hX hY hB0 (add_nonneg (inv_nonneg.mpr hρ.le) hRc) | |
| 55 | + (le_refl _) b | |
| 56 | + calc | |
| 57 | + _ = (g0 + g1 * X) * X + b * Y + | |
| 58 | + ((k * sourceConstant B M) * residual + | |
| 59 | + (k * linearCoefficient period B M Z0 B1 A0 A2 c) * X + | |
| 60 | + (k * quadraticCoefficient period B M A2 c) * X ^ 2 + | |
| 61 | + (k * lossCoefficient period M c) * (ρ⁻¹ + Rc) * (B0 + X) * Y) := by | |
| 62 | + unfold forcingPolynomial | |
| 63 | + ring | |
| 64 | + _ ≤ _ := h | |
| 65 | + | |
| 66 | +end EulerDriftEnergyConstants | |
| 67 | +end | |
| 68 | + | |
| 69 | +end | |
| 70 | + | |
| 71 | +/-! ## From `Euler/DriftNonlinearEstimate.lean` | |
| 72 | + | |
| 73 | +The text of `Euler/DriftNonlinearEstimate.lean`, folded into this file, which was its only importer. -/ | |
| 74 | + | |
| 75 | +section | |
| 76 | + | |
| 77 | +/-! Actual nonlinear forcing with separate full-background and drift envelopes. -/ | |
| 78 | + | |
| 79 | +noncomputable section | |
| 80 | + | |
| 81 | +namespace EulerDriftNonlinearEstimate | |
| 82 | + | |
| 83 | +open MeasureTheory InnerProductSpace EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev | |
| 84 | + EulerSpatialSobolevInverse EulerH6Pressure EulerSobolevGevreyOperators EulerGevreyCorrectionForcing | |
| 85 | + EulerH6Nonlinear EulerSobolevTransportCommutator EulerGevreyPressureTransport EulerSobolevCoefficientPressure | |
| 86 | + EulerGevreyMetricComparison EulerWeightedCylinderEnergy EulerGevreyRestriction EulerGevreyOrderZero | |
| 87 | + EulerGevreyCorrectionBound EulerGevreyNonlinearEstimate EulerSobolevDriftNorm EulerFunctionalVelocity | |
| 88 | + | |
| 89 | +/-- The factor four is spent only on the correction drift, recovering the original uniform loss constant. -/ | |
| 90 | +theorem drift_loss_absorption (P M Rc ρ B E Y D : ℝ) | |
| 91 | + (hP : 0 ≤ P) (hM : 0 ≤ M) (hRc : 0 ≤ Rc) (hρ : 0 < ρ) | |
| 92 | + (hB : 0 ≤ B) (hE : 0 ≤ E) (hY : 0 ≤ Y) (hD : D ≤ 4*(B+E)) : | |
| 93 | + (P*ρ⁻¹+8*Rc*M*P)*D*Y ≤ ((4+32*M)*P)*(ρ⁻¹+Rc)*(B+E)*Y := by | |
| 94 | + have ha : 0 ≤ P*ρ⁻¹+8*Rc*M*P := by positivity | |
| 95 | + have hc : 4*(P*ρ⁻¹+8*Rc*M*P) ≤ ((4+32*M)*P)*(ρ⁻¹+Rc) := by | |
| 96 | + have h1 := mul_nonneg hP hRc | |
| 97 | + have h2 := mul_nonneg (mul_nonneg hM hP) (inv_nonneg.mpr hρ.le) | |
| 98 | + linarith only [h1,h2] | |
| 99 | + calc | |
| 100 | + _ ≤ (P*ρ⁻¹+8*Rc*M*P)*(4*(B+E))*Y := | |
| 101 | + mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hD ha) hY | |
| 102 | + _ = (4*(P*ρ⁻¹+8*Rc*M*P))*(B+E)*Y := by ring | |
| 103 | + _ ≤ _ := mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right hc (add_nonneg hB hE)) hY | |
| 104 | + | |
| 105 | +/-- Scalar assembly keeps the independent full-velocity and drift envelopes in their respective terms. -/ | |
| 106 | +theorem polynomial_assembly (S T D Z B P B1 A0 A2 R E Y V F H : ℝ) | |
| 107 | + (hS : 0 ≤ S) (hT : 0 ≤ T) (hE : 0 ≤ E) | |
| 108 | + (hV : V ≤ Z+E) (hF : F ≤ R+(P*B1+A0+2*A2*P*Z)*E+A2*P*E^2) | |
| 109 | + (hH : H ≤ S*F+T*V*E+D*(B+E)*Y) : | |
| 110 | + H ≤ S*R+(S*(P*B1+A0+2*A2*P*Z)+T*Z)*E+(S*A2*P+T)*E^2+D*(B+E)*Y := by | |
| 111 | + have h := add_le_add (add_le_add (mul_le_mul_of_nonneg_left hF hS) | |
| 112 | + (mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hV hT) hE)) (le_refl (D*(B+E)*Y)) | |
| 113 | + exact hH.trans (h.trans_eq (by ring)) | |
| 114 | + | |
| 115 | +variable (period : ℝ) [Fact (0 < period)] | |
| 116 | + | |
| 117 | +/-- The literal seven-term Euler forcing has a scalar bound preserving the actual small background drift. -/ | |
| 118 | +theorem correctionForcing_polynomial {s : ℕ} (hs : 6 ≤ s) {A : SmoothCoefficient period} | |
| 119 | + (KG : EulerSpatialSobolevInverse.CoefficientJet period standardDirection s A) | |
| 120 | + (KG0 : EulerSpatialSobolevInverse.CoefficientJet period standardDirection 6 A) | |
| 121 | + (κ : ℝ) (m : Vector3) (c : ℝ) (hc : 0 < c) | |
| 122 | + (hpos : ∀ x v, c*‖v‖^2 ≤ ⟪A.coefficient x v,v⟫_ℝ) | |
| 123 | + (N : ℕ) (hN : N+6 ≤ s) (ρ Rc M B : ℝ) (hρ : 0 < ρ) (hRc : 0 ≤ Rc) (hM : 1 ≤ M) (hB : 0 ≤ B) | |
| 124 | + (hbase5 : (EulerH6Pressure.CoefficientJet.restrict KG 5 (by omega)).pressureConstant c ≤ M) | |
| 125 | + (hbase6 : (EulerH6Pressure.CoefficientJet.restrict KG 6 (by omega)).pressureConstant c ≤ M) | |
| 126 | + (hsmall : 4*M*(ρ*Rc) ≤ 1) | |
| 127 | + (hcoeff : ∀ l, 1 ≤ l → l ≤ N → coefficientBlock period KG 6 l ≤ Rc^l*(l.factorial : ℝ)^2) | |
| 128 | + (hG : ∀ r ≤ 6, EulerJetProductBounds.boundLevel period KG r ≤ B) | |
| 129 | + (hG0 : ∀ r ≤ 6, EulerJetProductBounds.boundLevel period KG0 r ≤ B) | |
| 130 | + (L : Fin 4 → Vector3 →L[ℝ] ℝ) (hL : ∀ i, ‖L i‖ ≤ 1) | |
| 131 | + (C0 : SmoothCoefficient period) (K0 : EulerSpatialSobolevInverse.CoefficientJet period standardDirection s C0) | |
| 132 | + (C : Fin 3 → SmoothCoefficient period) | |
| 133 | + (K : ∀ i, EulerSpatialSobolevInverse.CoefficientJet period standardDirection s (C i)) | |
| 134 | + (z e : SobolevSpace period (s+1)) (r : SobolevSpace period s) | |
| 135 | + (Z0 B0 B1 A0 A2 R : ℝ) (hA2 : 0 ≤ A2) | |
| 136 | + (hz : weightedNorm period 6 N ρ z ≤ Z0) | |
| 137 | + (hb : weightedDriftNorm period 6 N ρ (velocityMap L) z ≤ B0) | |
| 138 | + (hdz : (∑ i : Fin 4, weightedNorm period 6 N ρ (derivativeOperator period s i z)) ≤ B1) | |
| 139 | + (hC0 : weightedCoefficient period K0 6 N ρ ≤ A0) | |
| 140 | + (hC : (∑ i : Fin 3, weightedCoefficient period (K i) 6 N ρ) ≤ A2) | |
| 141 | + (hr : weightedNorm period 6 N ρ r ≤ R) : | |
| 142 | + let f := orderZeroSource period hs L hL (coefficientSobolevOperator period K0) | |
| 143 | + (fun i => coefficientSobolevOperator period (K i)) z r (truncateOperator period s e) | |
| 144 | + weightedForcingSum ρ (fun I : ExternalWord N => I.1.val) | |
| 145 | + (correctionForcing period hs KG KG0 N hN L hL (z+e) e f | |
| 146 | + (pressureSobolevOperator period KG κ m c hc hpos f) (transportPressure period hs KG κ m c hc hpos L hL (z+e) e)) ≤ | |
| 147 | + sourceConstant B M*R+ | |
| 148 | + (sourceConstant B M*(productConstant period 3*B1+A0+2*A2*productConstant period 3*Z0)+transportConstant period B M*Z0)* | |
| 149 | + weightedNorm period 6 N ρ e+ | |
| 150 | + (sourceConstant B M*A2*productConstant period 3+transportConstant period B M)*(weightedNorm period 6 N ρ e)^2+ | |
| 151 | + lossConstant period M*(ρ⁻¹+Rc)*(B0+weightedNorm period 6 N ρ e)*weightedLoss period 6 N ρ e := by | |
| 152 | + let f := orderZeroSource period hs L hL (coefficientSobolevOperator period K0) | |
| 153 | + (fun i => coefficientSobolevOperator period (K i)) z r (truncateOperator period s e) | |
| 154 | + have hf := orderZeroSource_uniform period hs N hN ρ hρ L hL C0 K0 C K z e r Z0 B1 A0 A2 R hA2 hz hdz hC0 hC hr | |
| 155 | + have hv := (weightedNorm_add_le period 6 N (by omega : N+6 ≤ s+1) ρ hρ z e).trans | |
| 156 | + (add_le_add hz (le_refl (weightedNorm period 6 N ρ e))) | |
| 157 | + have hB0 : 0 ≤ B0 := (weightedDriftNorm_nonneg period 6 N ρ hρ (velocityMap L) z).trans hb | |
| 158 | + have heD := weightedDriftNorm_velocityMap_le period 6 N ρ hρ L hL e | |
| 159 | + have hD : weightedDriftNorm period 6 N ρ (velocityMap L) (z+e) ≤ | |
| 160 | + 4*(B0+weightedNorm period 6 N ρ e) := by | |
| 161 | + have h := (weightedDriftNorm_add_le period 6 N (by omega : N+6 ≤ s+1) ρ hρ (velocityMap L) z e).trans | |
| 162 | + (add_le_add hb heD) | |
| 163 | + linarith only [h,hB0] | |
| 164 | + have hraw := EulerDriftCorrectionForcing.correctionForcing_uniform_bound period hs KG KG0 κ m c hc hpos | |
| 165 | + N hN ρ Rc M B hρ hRc hM hbase5 hbase6 hsmall hcoeff hG hG0 L hL (z+e) e f | |
| 166 | + have hloss : (productConstant period 3*ρ⁻¹+8*Rc*M*productConstant period 3)* | |
| 167 | + weightedDriftNorm period 6 N ρ (velocityMap L) (z+e)*weightedLoss period 6 N ρ e ≤ | |
| 168 | + lossConstant period M*(ρ⁻¹+Rc)*(B0+weightedNorm period 6 N ρ e)*weightedLoss period 6 N ρ e := by | |
| 169 | + simpa only [lossConstant] using drift_loss_absorption (productConstant period 3) M Rc ρ B0 | |
| 170 | + (weightedNorm period 6 N ρ e) (weightedLoss period 6 N ρ e) | |
| 171 | + (weightedDriftNorm period 6 N ρ (velocityMap L) (z+e)) | |
| 172 | + (productConstant_nonneg period 3) (by linarith) hRc hρ hB0 | |
| 173 | + (weightedNorm_nonneg period 6 N ρ hρ e) (weightedLoss_nonneg period 6 N ρ hρ e) hD | |
| 174 | + have h := hraw.trans (add_le_add (le_refl _) hloss) | |
| 175 | + exact polynomial_assembly (sourceConstant B M) (transportConstant period B M) | |
| 176 | + (lossConstant period M*(ρ⁻¹+Rc)) Z0 B0 (productConstant period 3) B1 A0 A2 R | |
| 177 | + (weightedNorm period 6 N ρ e) (weightedLoss period 6 N ρ e) (weightedNorm period 6 N ρ (z+e)) | |
| 178 | + (weightedNorm period 6 N ρ f) _ | |
| 179 | + (sourceConstant_nonneg hB (by linarith)) (transportConstant_nonneg period hB (by linarith)) | |
| 180 | + (weightedNorm_nonneg period 6 N ρ hρ e) hv hf h | |
| 181 | + | |
| 182 | +end EulerDriftNonlinearEstimate | |
| 183 | +end | |
| 184 | + | |
| 185 | +end | |
| 186 | + | |
| 187 | +/-! ## From `Euler/DriftMetricForcing.lean` | |
| 188 | + | |
| 189 | +The text of `Euler/DriftMetricForcing.lean`, folded into this file, which was its only importer. -/ | |
| 190 | + | |
| 191 | +section | |
| 192 | + | |
| 193 | +/-! The actual correction forcing in metric energy with distinct full-background and small-drift budgets. -/ | |
| 194 | + | |
| 195 | +noncomputable section | |
| 196 | + | |
| 197 | +namespace EulerDriftMetricForcing | |
| 198 | + | |
| 199 | +open MeasureTheory InnerProductSpace EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev | |
| 200 | + EulerSpatialSobolevInverse EulerH6Pressure EulerSobolevGevreyOperators EulerGevreyCorrectionForcing | |
| 201 | + EulerH6Nonlinear EulerSobolevTransportCommutator EulerGevreyPressureTransport EulerSobolevCoefficientPressure | |
| 202 | + EulerGevreyMetricComparison EulerWeightedCylinderEnergy EulerGevreyRestriction EulerGevreyOrderZero | |
| 203 | + EulerGevreyCorrectionBound EulerGevreyMetricEstimate EulerSobolevDriftNorm EulerFunctionalVelocity | |
| 204 | + | |
| 205 | +variable (period : ℝ) [Fact (0 < period)] | |
| 206 | + | |
| 207 | +/-- The genuine seven-term correction forcing obeys the metric polynomial retaining the small drift envelope. -/ | |
| 208 | +theorem correctionForcing_metric {s : ℕ} (hs : 6 ≤ s) {A : SmoothCoefficient period} | |
| 209 | + (KG : EulerSpatialSobolevInverse.CoefficientJet period standardDirection s A) | |
| 210 | + (KG0 : EulerSpatialSobolevInverse.CoefficientJet period standardDirection 6 A) | |
| 211 | + (κ : ℝ) (m : Vector3) (c : ℝ) (hc : 0 < c) | |
| 212 | + (hpos : ∀ x v, c*‖v‖^2 ≤ ⟪A.coefficient x v,v⟫_ℝ) | |
| 213 | + (N : ℕ) (hN : N+6 ≤ s) (ρ Rc M B : ℝ) (hρ : 0 < ρ) (hRc : 0 ≤ Rc) (hM : 1 ≤ M) (hB : 0 ≤ B) | |
| 214 | + (hbase5 : (EulerH6Pressure.CoefficientJet.restrict KG 5 (by omega)).pressureConstant c ≤ M) | |
| 215 | + (hbase6 : (EulerH6Pressure.CoefficientJet.restrict KG 6 (by omega)).pressureConstant c ≤ M) | |
| 216 | + (hsmall : 4*M*(ρ*Rc) ≤ 1) | |
| 217 | + (hcoeff : ∀ l, 1 ≤ l → l ≤ N → coefficientBlock period KG 6 l ≤ Rc^l*(l.factorial : ℝ)^2) | |
| 218 | + (hG : ∀ r ≤ 6, EulerJetProductBounds.boundLevel period KG r ≤ B) | |
| 219 | + (hG0 : ∀ r ≤ 6, EulerJetProductBounds.boundLevel period KG0 r ≤ B) | |
| 220 | + (L : Fin 4 → Vector3 →L[ℝ] ℝ) (hL : ∀ i, ‖L i‖ ≤ 1) | |
| 221 | + (C0 : SmoothCoefficient period) (K0 : EulerSpatialSobolevInverse.CoefficientJet period standardDirection s C0) | |
| 222 | + (C : Fin 3 → SmoothCoefficient period) | |
| 223 | + (K : ∀ i, EulerSpatialSobolevInverse.CoefficientJet period standardDirection s (C i)) | |
| 224 | + (z e : SobolevSpace period (s+1)) (r : SobolevSpace period s) | |
| 225 | + (Z0 B0 B1 A0 A2 R : ℝ) (hA2 : 0 ≤ A2) | |
| 226 | + (hz : weightedNorm period 6 N ρ z ≤ Z0) | |
| 227 | + (hb : weightedDriftNorm period 6 N ρ (velocityMap L) z ≤ B0) | |
| 228 | + (hdz : (∑ i : Fin 4, weightedNorm period 6 N ρ (derivativeOperator period s i z)) ≤ B1) | |
| 229 | + (hC0 : weightedCoefficient period K0 6 N ρ ≤ A0) | |
| 230 | + (hC : (∑ i : Fin 3, weightedCoefficient period (K i) 6 N ρ) ≤ A2) | |
| 231 | + (hr : weightedNorm period 6 N ρ r ≤ R) | |
| 232 | + (KM : LiftL2 period →L[ℝ] LiftL2 period) (cM : ℝ) (hcM : 0 < cM) | |
| 233 | + (hKM : ∀ v, cM^2*‖v‖^2 ≤ ⟪KM v,v⟫_ℝ) : | |
| 234 | + let f := orderZeroSource period hs L hL (coefficientSobolevOperator period K0) | |
| 235 | + (fun i => coefficientSobolevOperator period (K i)) z r (truncateOperator period s e) | |
| 236 | + weightedForcingSum ρ (fun I : ExternalWord N => I.1.val) | |
| 237 | + (correctionForcing period hs KG KG0 N hN L hL (z+e) e f | |
| 238 | + (pressureSobolevOperator period KG κ m c hc hpos f) (transportPressure period hs KG κ m c hc hpos L hL (z+e) e)) ≤ | |
| 239 | + EulerDriftEnergyConstants.forcingPolynomial period B M Z0 B0 B1 A0 A2 R cM Rc ρ | |
| 240 | + (energyNorm period N (by omega : N+6 ≤ s+1) ρ KM e) | |
| 241 | + (energyLoss period N (by omega : N+6 ≤ s+1) ρ KM e) := by | |
| 242 | + let f := orderZeroSource period hs L hL (coefficientSobolevOperator period K0) | |
| 243 | + (fun i => coefficientSobolevOperator period (K i)) z r (truncateOperator period s e) | |
| 244 | + have h := EulerDriftNonlinearEstimate.correctionForcing_polynomial period hs KG KG0 κ m c hc hpos N hN ρ Rc M B hρ hRc hM hB | |
| 245 | + hbase5 hbase6 hsmall hcoeff hG hG0 L hL C0 K0 C K z e r Z0 B0 B1 A0 A2 R hA2 hz hb hdz hC0 hC hr | |
| 246 | + have hM0 : 0 ≤ M := by linarith | |
| 247 | + have hP := productConstant_nonneg period 3 | |
| 248 | + have hz0 : 0 ≤ Z0 := (weightedNorm_nonneg period 6 N ρ hρ z).trans hz | |
| 249 | + have hb0 : 0 ≤ B0 := (weightedDriftNorm_nonneg period 6 N ρ hρ (velocityMap L) z).trans hb | |
| 250 | + have hb1 : 0 ≤ B1 := (Finset.sum_nonneg (fun i _ => | |
| 251 | + weightedNorm_nonneg period 6 N ρ hρ (derivativeOperator period s i z))).trans hdz | |
| 252 | + have ha0 : 0 ≤ A0 := (weightedCoefficient_nonneg period K0 6 N ρ hρ).trans hC0 | |
| 253 | + have hsf := sourceConstant_nonneg hB hM0 | |
| 254 | + have htf := transportConstant_nonneg period hB hM0 | |
| 255 | + have hlf := lossConstant_nonneg period hM0 | |
| 256 | + have hlin : 0 ≤ sourceConstant B M*(productConstant period 3*B1+A0+2*A2*productConstant period 3*Z0)+ | |
| 257 | + transportConstant period B M*Z0 := by positivity | |
| 258 | + have hquad : 0 ≤ sourceConstant B M*A2*productConstant period 3+transportConstant period B M := by positivity | |
| 259 | + have hconv := metric_polynomial_conversion (sourceConstant B M) | |
| 260 | + (sourceConstant B M*(productConstant period 3*B1+A0+2*A2*productConstant period 3*Z0)+transportConstant period B M*Z0) | |
| 261 | + (sourceConstant B M*A2*productConstant period 3+transportConstant period B M) | |
| 262 | + (lossConstant period M*(ρ⁻¹+Rc)) R B0 (metricAmplification cM) | |
| 263 | + (weightedNorm period 6 N ρ e) (weightedLoss period 6 N ρ e) | |
| 264 | + (energyNorm period N (by omega : N+6 ≤ s+1) ρ KM e) (energyLoss period N (by omega : N+6 ≤ s+1) ρ KM e) _ | |
| 265 | + hlin hquad (mul_nonneg hlf (add_nonneg (inv_nonneg.mpr hρ.le) hRc)) hb0 (metricAmplification_one_le hcM) | |
| 266 | + (weightedNorm_nonneg period 6 N ρ hρ e) (weightedLoss_nonneg period 6 N ρ hρ e) | |
| 267 | + (energyNorm_nonneg period N (by omega : N+6 ≤ s+1) ρ hρ KM e) | |
| 268 | + (weightedNorm_le_energy period N (by omega : N+6 ≤ s+1) ρ hρ KM e cM hcM hKM) | |
| 269 | + (weightedLoss_le_energy period N (by omega : N+6 ≤ s+1) ρ hρ KM e cM hcM hKM) h | |
| 270 | + | |
| 271 | + simpa only [EulerDriftEnergyConstants.forcingPolynomial, | |
| 272 | + EulerNonlinearEnergyConstants.linearCoefficient, EulerNonlinearEnergyConstants.quadraticCoefficient, | |
| 273 | + EulerNonlinearEnergyConstants.lossCoefficient, mul_assoc, mul_left_comm] using hconv | |
| 274 | + | |
| 275 | +end EulerDriftMetricForcing | |
| 276 | +end | |
| 277 | + | |
| 278 | +end | |
| 279 | + | |
| 280 | +/-! ## From `Euler/DriftEnergyMajorants.lean` | |
| 281 | + | |
| 282 | +The text of `Euler/DriftEnergyMajorants.lean`, folded into this file, which was its only importer. -/ | |
| 283 | + | |
| 284 | +section | |
| 285 | + | |
| 286 | +/-! Continuous energy majorants that retain the actual small transport drift. -/ | |
| 287 | + | |
| 288 | +noncomputable section | |
| 289 | + | |
| 290 | +namespace EulerDriftEnergyMajorants | |
| 291 | + | |
| 292 | +open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace | |
| 293 | + EulerCorrectionOperators EulerCorrectionEnergyData EulerCorrectionEnergyMajorants | |
| 294 | + EulerEnergyMetricPaths EulerGevreyMetricEstimate EulerTimeLpSubintervalBound | |
| 295 | + EulerVolterraConvolution EulerDriftCorrectionBudget | |
| 296 | +open scoped Topology | |
| 297 | + | |
| 298 | +variable (period : ℝ) [Fact (0 < period)] | |
| 299 | + | |
| 300 | +/-- The sharp polynomial is evaluated on the actual continuous metric energy paths. -/ | |
| 301 | +def forcingMajorant {q : ℕ} {T : ℝ} {hq : 6 ≤ q+1} | |
| 302 | + {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} | |
| 303 | + {N : ℕ} {R : C(Icc (0 : ℝ) T, ℝ)} | |
| 304 | + (S : Budget period hq D N R) (hN : N+6 ≤ q+1) | |
| 305 | + {hT : 0 ≤ T} (K : MetricBudget period T hT D) | |
| 306 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) : C(Icc (0 : ℝ) T, ℝ) := by | |
| 307 | + let X := energyPath period N hN T R (K.operatorPath period) e | |
| 308 | + let Y := lossPath period N hN T R (K.operatorPath period) e | |
| 309 | + refine ⟨fun t => EulerDriftEnergyConstants.forcingPolynomial period | |
| 310 | + S.full.B S.full.M S.full.B0 S.drift S.full.B1 S.full.A0 S.full.A2 | |
| 311 | + S.full.residual K.c S.full.Rc (R t) (X t) (Y t), ?_⟩ | |
| 312 | + have hi : Continuous (fun t => (R t)⁻¹) := | |
| 313 | + R.continuous.inv₀ (fun t => (S.full.radius_pos t).ne') | |
| 314 | + unfold EulerDriftEnergyConstants.forcingPolynomial | |
| 315 | + fun_prop | |
| 316 | + | |
| 317 | +/-- The genuine scalar majorant retains full velocity only in terms with no derivative loss. -/ | |
| 318 | +def correctionRhs {q : ℕ} {T : ℝ} {hq : 6 ≤ q+1} | |
| 319 | + {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} | |
| 320 | + {N : ℕ} {R : C(Icc (0 : ℝ) T, ℝ)} | |
| 321 | + (S : Budget period hq D N R) (hN : N+6 ≤ q+1) | |
| 322 | + {hT : 0 ≤ T} (K : MetricBudget period T hT D) | |
| 323 | + (Rdot : C(Icc (0 : ℝ) T, ℝ)) | |
| 324 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) : C(Icc (0 : ℝ) T, ℝ) := | |
| 325 | + scalarEnergyRhs T (growthPath period S.full hN K e) | |
| 326 | + (radiusLossPath R Rdot S.full.radius_pos) (ContinuousMap.const _ (K.multiplier period)) | |
| 327 | + (energyPath period N hN T R (K.operatorPath period) e) | |
| 328 | + (lossPath period N hN T R (K.operatorPath period) e) | |
| 329 | + (forcingMajorant period S hN K e) | |
| 330 | + | |
| 331 | +/-- The source's radius-loss factor uses the drift envelope, with the unchanged full-data growth constant. -/ | |
| 332 | +theorem correctionRhs_bound {q : ℕ} {T : ℝ} {hq : 6 ≤ q+1} | |
| 333 | + {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} | |
| 334 | + {N : ℕ} {R : C(Icc (0 : ℝ) T, ℝ)} | |
| 335 | + (S : Budget period hq D N R) (hN : N+6 ≤ q+1) | |
| 336 | + {hT : 0 ≤ T} (K : MetricBudget period T hT D) | |
| 337 | + (Rdot : C(Icc (0 : ℝ) T, ℝ)) | |
| 338 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) (t : Icc (0 : ℝ) T) : | |
| 339 | + let X := energyPath period N hN T R (K.operatorPath period) e t | |
| 340 | + let Y := lossPath period N hN T R (K.operatorPath period) e t | |
| 341 | + let C := combinedConstant period S.full K | |
| 342 | + correctionRhs period S hN K Rdot e t ≤ C * (X + X ^ 2 + S.full.residual) + | |
| 343 | + (Rdot t / R t + C * ((R t)⁻¹ + S.full.Rc) * (S.drift + X)) * Y := by | |
| 344 | + obtain ⟨hg0, hg1, hk⟩ := K.constants_nonneg period S.full.B0 S.full.B0_nonneg | |
| 345 | + exact EulerDriftEnergyConstants.actual_scalar_bound period | |
| 346 | + (K.growth0 period S.full.B0) (K.growth1 period) (K.multiplier period) | |
| 347 | + S.full.B S.full.M S.full.B0 S.drift S.full.B1 S.full.A0 S.full.A2 K.c | |
| 348 | + S.full.Rc (R t) S.full.residual | |
| 349 | + (energyPath period N hN T R (K.operatorPath period) e t) | |
| 350 | + (lossPath period N hN T R (K.operatorPath period) e t) (Rdot t / R t) | |
| 351 | + hg0 hg1 hk S.full.B_nonneg (zero_le_one.trans S.full.M_one_le) | |
| 352 | + S.full.B0_nonneg S.drift_nonneg S.full.B1_nonneg S.full.A0_nonneg | |
| 353 | + S.full.A2_nonneg K.c_pos S.full.Rc_nonneg (S.full.radius_pos t) | |
| 354 | + S.full.residual_pos.le (energy_nonneg period S.full hN K e t) | |
| 355 | + (loss_nonneg period S.full hN K e t) | |
| 356 | + | |
| 357 | +end EulerDriftEnergyMajorants | |
| 358 | +end | |
| 359 | + | |
| 360 | +end | |
| 361 | + | |
| 362 | +/-! ## From `Euler/DriftCorrectionEnergyBound.lean` | |
| 363 | + | |
| 364 | +The text of `Euler/DriftCorrectionEnergyBound.lean`, folded into this file, which was its only importer. -/ | |
| 365 | + | |
| 366 | +section | |
| 367 | + | |
| 368 | +/-! The actual time-dependent correction forcing obeys the sharp drift majorant. -/ | |
| 369 | + | |
| 370 | +noncomputable section | |
| 371 | + | |
| 372 | +namespace EulerDriftCorrectionEnergyBound | |
| 373 | + | |
| 374 | +open MeasureTheory Set InnerProductSpace EulerLiftedGradientSpace EulerCylinderSobolevSpace | |
| 375 | + EulerCylinderSobolev EulerSpatialSobolevInverse EulerCorrectionOperators | |
| 376 | + EulerCorrectionEnergyTime EulerEnergyMetricPaths EulerGevreyMetricEstimate | |
| 377 | + EulerH6Pressure EulerSobolevGevreyOperators EulerSobolevTransportCommutator | |
| 378 | + EulerSobolevTransport EulerH6Nonlinear EulerGevreyMetricComparison EulerTimeLp | |
| 379 | + EulerVolterraConvolution EulerSobolevWordValueIdentity EulerRegularizedTopBlocks | |
| 380 | + EulerGevreyOrderZero EulerTimeCorrectionSource EulerWeightedCylinderEnergy | |
| 381 | + EulerCorrectionEnergyData EulerDriftCorrectionBudget EulerDriftEnergyMajorants | |
| 382 | + EulerFunctionalVelocity EulerSobolevDriftNorm | |
| 383 | +open scoped Topology | |
| 384 | + | |
| 385 | +variable (period : ℝ) [Fact (0 < period)] | |
| 386 | + | |
| 387 | +/-- The actual correction array is controlled by the continuous drift majorant, | |
| 388 | +independently of its auxiliary higher-Sobolev representative. -/ | |
| 389 | +theorem correctionArray_bound {q : ℕ} {T : ℝ} {hq : 6 ≤ q+1} | |
| 390 | + {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} | |
| 391 | + {N : ℕ} {R : C(Icc (0 : ℝ) T, ℝ)} | |
| 392 | + (S : Budget period hq D N R) (hN : N+6 ≤ q+1) | |
| 393 | + {hT : 0 ≤ T} (K : MetricBudget period T hT D) | |
| 394 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) | |
| 395 | + (V : SobolevSpace period ((q+1)+1)) (τ : Icc (0 : ℝ) T) | |
| 396 | + (hV : truncateOperator period (q+1) V = e τ) : | |
| 397 | + weightedForcingSum (R τ) (fun I : ExternalWord N => I.1.val) | |
| 398 | + (correctionArray period hq D (baseMetricJet period hq D) N hN e V τ) ≤ | |
| 399 | + forcingMajorant period S hN K e τ := by | |
| 400 | + have h := EulerDriftMetricForcing.correctionForcing_metric period hq | |
| 401 | + (D.metric.jet τ) (baseMetricJet period hq D τ) | |
| 402 | + D.κ D.direction D.coercivity D.coercivity_pos (D.metric_pos τ) | |
| 403 | + N hN (R τ) S.full.Rc S.full.M S.full.B (S.full.radius_pos τ) | |
| 404 | + S.full.Rc_nonneg S.full.M_one_le S.full.B_nonneg | |
| 405 | + (S.full.inverse_five τ) (S.full.inverse_six τ) (S.full.radius_small τ) | |
| 406 | + (S.full.metric_derivatives τ) (S.full.metric_base τ) (S.full.base_bound period τ) | |
| 407 | + (velocityComponents D.κ D.direction) | |
| 408 | + (velocityComponents_norm D.κ D.direction D.scale_bound D.direction_bound) | |
| 409 | + (D.linear.coefficient τ) (D.linear.jet τ) | |
| 410 | + (fun i => (D.quadratic i).coefficient τ) (fun i => (D.quadratic i).jet τ) | |
| 411 | + (D.approximation τ) V (D.residual τ) | |
| 412 | + S.full.B0 S.drift S.full.B1 S.full.A0 S.full.A2 S.full.residual S.full.A2_nonneg | |
| 413 | + (S.full.background τ) (S.drift_bound τ) (S.full.background_derivative τ) | |
| 414 | + (S.full.linear τ) (S.full.quadratic τ) (S.full.residual_bound τ) | |
| 415 | + (K.operatorPath period τ) K.c K.c_pos (K.operator_coercive period τ) | |
| 416 | + have hv : value period V = value period (e τ) := congrArg (value period) hV | |
| 417 | + rw [energyNorm_of_value_eq period N (by omega) hN (R τ) (K.operatorPath period τ) V (e τ) hv, | |
| 418 | + energyLoss_of_value_eq period N (by omega) hN (R τ) (K.operatorPath period τ) V (e τ) hv] at h | |
| 419 | + simpa only [correctionArray, lowerOrderPath, orderZeroPath, ContinuousMap.coe_mk, | |
| 420 | + CoefficientPath.operatorPath, EulerGevreyPressureTransport.transportPressure, hV, | |
| 421 | + forcingMajorant, energyPath_apply, lossPath_apply] using h | |
| 422 | + | |
| 423 | +/-- The full Bochner forcing inherits the drift bound from the actual spatial fields. -/ | |
| 424 | +theorem weightedCorrectionForcing_bound {q : ℕ} {T : ℝ} {hq : 6 ≤ q+1} | |
| 425 | + {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} | |
| 426 | + {N : ℕ} {R : C(Icc (0 : ℝ) T, ℝ)} | |
| 427 | + (S : Budget period hq D N R) (hN : N+6 ≤ q+1) | |
| 428 | + {hT : 0 ≤ T} (K : MetricBudget period T hT D) | |
| 429 | + (hG : Continuous (fun t => (D.metric.coefficient t).operator)) | |
| 430 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) | |
| 431 | + (U : TimeLp T (SobolevSpace period (2+q))) | |
| 432 | + (hU : Filter.Tendsto (fun n => pathLp T hT (maximalApproximation period q T n e)) | |
| 433 | + Filter.atTop (𝓝 U)) : | |
| 434 | + (weightedCorrectionForcing period hq T hT D hG N hN R e U : ℝ → ℝ) ≤ᵐ[timeMeasure T] | |
| 435 | + extendPath T hT (forcingMajorant period S hN K e) := by | |
| 436 | + filter_upwards [weightedCorrectionForcing_ae period hq T hT D hG | |
| 437 | + (baseMetricJet period hq D) N hN R e U hU, | |
| 438 | + reindexMaximalTime_restriction period T hT e U hU] with t hforce hv | |
| 439 | + exact hforce.le.trans (correctionArray_bound period S hN K e | |
| 440 | + (reindexMaximalTime period q T U t) (projIcc 0 T hT t) hv) | |
| 441 | + | |
| 442 | +end EulerDriftCorrectionEnergyBound | |
| 443 | +end | |
| 444 | + | |
| 445 | +end | |
| 446 | + | |
| 447 | +/-! ## From `Euler/DriftCorrectionMildEnergy.lean` | |
| 448 | + | |
| 449 | +The text of `Euler/DriftCorrectionMildEnergy.lean`, folded into this file, which was its only importer. -/ | |
| 450 | + | |
| 451 | +section | |
| 452 | + | |
| 453 | +/-! Actual nonlinear correction mild solutions obey the drift-sensitive integral energy estimate. -/ | |
| 454 | + | |
| 455 | +noncomputable section | |
| 456 | + | |
| 457 | +namespace EulerDriftCorrectionMildEnergy | |
| 458 | + | |
| 459 | +open MeasureTheory Set InnerProductSpace EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev | |
| 460 | + EulerSpatialSobolevInverse EulerCorrectionOperators EulerSobolevCoefficientPressure EulerCorrectionLowerData | |
| 461 | + EulerCorrectionEnergyRestriction EulerCorrectionEnergyTime EulerCorrectionEnergyData EulerCorrectionEnergyMajorants | |
| 462 | + EulerEnergyMetricPaths EulerGevreyMetricEstimate EulerMildMajorantEnergy EulerEnergyWordCoordinates | |
| 463 | + EulerTimeLpSubintervalBound EulerTimeLp EulerVolterraConvolution EulerSobolevHeat EulerSobolevMaximalRegularity | |
| 464 | + EulerDriftCorrectionBudget EulerDriftEnergyMajorants | |
| 465 | +open scoped Topology | |
| 466 | + | |
| 467 | +variable (period : ℝ) [Fact (0 < period)] | |
| 468 | + | |
| 469 | +/-- The actual nonlinear lower mild equation yields the full energy-order scalar integral bound on every subinterval. | |
| 470 | +Maximal regularity, the higher nonlinear source, the pressure, and their constraints are all constructed or proved inside the argument. -/ | |
| 471 | +theorem correction_mild_integral {q : ℕ} (hq : 6 ≤ q) (T : ℝ) (hT : 0 ≤ T) | |
| 472 | + (D : CorrectionData period (q+1) (Icc (0 : ℝ) T)) | |
| 473 | + (KG : ∀ t, CoefficientJet period standardDirection q (D.metric.coefficient t)) | |
| 474 | + (KL : ∀ t, CoefficientJet period standardDirection q (D.linear.coefficient t)) | |
| 475 | + (KQ : ∀ i t, CoefficientJet period standardDirection q ((D.quadratic i).coefficient t)) | |
| 476 | + (hGq : Continuous (fun t => coefficientSobolevOperator period (KG t))) | |
| 477 | + (hLq : Continuous (fun t => coefficientSobolevOperator period (KL t))) | |
| 478 | + (hQq : ∀ i, Continuous (fun t => coefficientSobolevOperator period (KQ i t))) | |
| 479 | + (hG : Continuous (fun t => (D.metric.coefficient t).operator)) | |
| 480 | + (N : ℕ) (hN : N+6 ≤ q+1) (R Rdot : C(Icc (0 : ℝ) T, ℝ)) | |
| 481 | + (S : Budget period (by omega : 6 ≤ q+1) D N R) (K : MetricBudget period T hT D) | |
| 482 | + (hRd : ∀ t ∈ Ioo 0 T, HasDerivAt (extendPath T hT R) (extendPath T hT Rdot t) t) | |
| 483 | + (ν : ℝ) (hν : 0 < ν) (hν1 : ν ≤ 1) (e₀ : SobolevSpace period (q+1)) | |
| 484 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) | |
| 485 | + (hsol : ∀ t : Icc (0 : ℝ) T, | |
| 486 | + e t = heatOperator period (q+1) (2*ν*t.val).toNNReal e₀ + | |
| 487 | + ∫ r in (0 : ℝ)..t.val, heatKernel period q ν hν r | |
| 488 | + (extendPath T hT (forcingPath period hq (lowerData period D KG KL KQ hGq hLq hQq) e) (t.val-r))) | |
| 489 | + (hz : ∀ t, value period (D.approximation t) ∈ divergenceFreeSpace period D.κ D.direction) | |
| 490 | + (he : ∀ t, value period (e t) ∈ divergenceFreeSpace period D.κ D.direction) | |
| 491 | + (s t : ℝ) (h0s : 0 ≤ s) (hst : s ≤ t) (htT : t ≤ T) : | |
| 492 | + energyPath period N hN T R (K.operatorPath period) e ⟨t,h0s.trans hst,htT⟩ - | |
| 493 | + energyPath period N hN T R (K.operatorPath period) e ⟨s,h0s,hst.trans htT⟩ ≤ | |
| 494 | + ∫ r in s..t, extendPath T hT (correctionRhs period S hN K Rdot e) r := by | |
| 495 | + let Dlow := lowerData period D KG KL KQ hGq hLq hQq | |
| 496 | + let f := forcingPath period hq Dlow e | |
| 497 | + let p := pressurePath period hq Dlow e | |
| 498 | + obtain ⟨U,hU⟩ := exists_maximal_mild_limit period ν hν T hT e₀ f e hsol | |
| 499 | + let F := sourceTime period (by omega : 6 ≤ q+1) T hT D e U | |
| 500 | + let P := signedPressureTime period (by omega : 6 ≤ q+1) T hT D e U | |
| 501 | + let X := energyPath period N hN T R (K.operatorPath period) e | |
| 502 | + let Y := lossPath period N hN T R (K.operatorPath period) e | |
| 503 | + let k : C(Icc (0 : ℝ) T, ℝ) := ContinuousMap.const _ (K.multiplier period) | |
| 504 | + have hF := sourceTime_restriction period hq T hT D KG KL KQ hGq hLq hQq e U hU | |
| 505 | + have hP := signedPressureTime_restriction period hq T hT D KG KL KQ hGq hLq hQq e U hU | |
| 506 | + have henergy := mild_majorized_energy_subinterval period (by omega : 3 ≤ q+1) T hT s t h0s hst htT | |
| 507 | + energyLength energyWord (energyLength_le hN) (fun I : EulerGevreyMetricComparison.ExternalWord N => I.1.val) | |
| 508 | + ν hν D.κ D.direction K.c K.c_pos R Rdot S.full.radius_pos hRd K.metric D.metric.coefficient | |
| 509 | + K.continuous hG K.derivative K.hasDeriv K.symmetric K.coercive K.inverse | |
| 510 | + (fun τ => metricVelocityBound period K.c S.full.B0 (X τ)) (velocityPath period D e) e e₀ f p hsol he | |
| 511 | + (pressurePath_gradient period hq Dlow e) | |
| 512 | + (velocity_divergenceFree period D e hz he) (velocity_bound period S.full hN K e) | |
| 513 | + U F P hU hF hP (growthPath period S.full hN K e) (radiusLossPath R Rdot S.full.radius_pos) k | |
| 514 | + (growthPath_bound period S.full hN K e ν hν1) (fun _ => rfl) | |
| 515 | + (fun τ => div_le_div_of_nonneg_right (K.bound_le τ) K.c_pos.le) | |
| 516 | + have hforce := EulerDriftCorrectionEnergyBound.weightedCorrectionForcing_bound period S hN K hG e U hU | |
| 517 | + have hk : ∀ τ, 0 ≤ k τ := fun _ => (K.constants_nonneg period S.full.B0 S.full.B0_nonneg).2.2 | |
| 518 | + exact scalar_rhs_subinterval T hT s t h0s hst htT | |
| 519 | + (growthPath period S.full hN K e) (radiusLossPath R Rdot S.full.radius_pos) k X Y | |
| 520 | + (forcingMajorant period S hN K e) hk | |
| 521 | + (weightedCorrectionForcing period (by omega : 6 ≤ q+1) T hT D hG N hN R e U) hforce henergy | |
| 522 | + | |
| 523 | +end EulerDriftCorrectionMildEnergy | |
| 524 | +end | |
| 525 | + | |
| 526 | +end | |
| 527 | + | |
| 6 | 528 | noncomputable section |
| 7 | 529 | |
| 8 | 530 | namespace EulerDriftCorrectionBootstrap |
+0 −78 Euler/DriftCorrectionEnergyBound.lean deleted
| @@ -1,78 +0,0 @@ | ||
| 1 | -import Euler.DriftMetricForcing | |
| 2 | -import Euler.DriftEnergyMajorants | |
| 3 | - | |
| 4 | -/-! The actual time-dependent correction forcing obeys the sharp drift majorant. -/ | |
| 5 | - | |
| 6 | -noncomputable section | |
| 7 | - | |
| 8 | -namespace EulerDriftCorrectionEnergyBound | |
| 9 | - | |
| 10 | -open MeasureTheory Set InnerProductSpace EulerLiftedGradientSpace EulerCylinderSobolevSpace | |
| 11 | - EulerCylinderSobolev EulerSpatialSobolevInverse EulerCorrectionOperators | |
| 12 | - EulerCorrectionEnergyTime EulerEnergyMetricPaths EulerGevreyMetricEstimate | |
| 13 | - EulerH6Pressure EulerSobolevGevreyOperators EulerSobolevTransportCommutator | |
| 14 | - EulerSobolevTransport EulerH6Nonlinear EulerGevreyMetricComparison EulerTimeLp | |
| 15 | - EulerVolterraConvolution EulerSobolevWordValueIdentity EulerRegularizedTopBlocks | |
| 16 | - EulerGevreyOrderZero EulerTimeCorrectionSource EulerWeightedCylinderEnergy | |
| 17 | - EulerCorrectionEnergyData EulerDriftCorrectionBudget EulerDriftEnergyMajorants | |
| 18 | - EulerFunctionalVelocity EulerSobolevDriftNorm | |
| 19 | -open scoped Topology | |
| 20 | - | |
| 21 | -variable (period : ℝ) [Fact (0 < period)] | |
| 22 | - | |
| 23 | -/-- The actual correction array is controlled by the continuous drift majorant, | |
| 24 | -independently of its auxiliary higher-Sobolev representative. -/ | |
| 25 | -theorem correctionArray_bound {q : ℕ} {T : ℝ} {hq : 6 ≤ q+1} | |
| 26 | - {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} | |
| 27 | - {N : ℕ} {R : C(Icc (0 : ℝ) T, ℝ)} | |
| 28 | - (S : Budget period hq D N R) (hN : N+6 ≤ q+1) | |
| 29 | - {hT : 0 ≤ T} (K : MetricBudget period T hT D) | |
| 30 | - (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) | |
| 31 | - (V : SobolevSpace period ((q+1)+1)) (τ : Icc (0 : ℝ) T) | |
| 32 | - (hV : truncateOperator period (q+1) V = e τ) : | |
| 33 | - weightedForcingSum (R τ) (fun I : ExternalWord N => I.1.val) | |
| 34 | - (correctionArray period hq D (baseMetricJet period hq D) N hN e V τ) ≤ | |
| 35 | - forcingMajorant period S hN K e τ := by | |
| 36 | - have h := EulerDriftMetricForcing.correctionForcing_metric period hq | |
| 37 | - (D.metric.jet τ) (baseMetricJet period hq D τ) | |
| 38 | - D.κ D.direction D.coercivity D.coercivity_pos (D.metric_pos τ) | |
| 39 | - N hN (R τ) S.full.Rc S.full.M S.full.B (S.full.radius_pos τ) | |
| 40 | - S.full.Rc_nonneg S.full.M_one_le S.full.B_nonneg | |
| 41 | - (S.full.inverse_five τ) (S.full.inverse_six τ) (S.full.radius_small τ) | |
| 42 | - (S.full.metric_derivatives τ) (S.full.metric_base τ) (S.full.base_bound period τ) | |
| 43 | - (velocityComponents D.κ D.direction) | |
| 44 | - (velocityComponents_norm D.κ D.direction D.scale_bound D.direction_bound) | |
| 45 | - (D.linear.coefficient τ) (D.linear.jet τ) | |
| 46 | - (fun i => (D.quadratic i).coefficient τ) (fun i => (D.quadratic i).jet τ) | |
| 47 | - (D.approximation τ) V (D.residual τ) | |
| 48 | - S.full.B0 S.drift S.full.B1 S.full.A0 S.full.A2 S.full.residual S.full.A2_nonneg | |
| 49 | - (S.full.background τ) (S.drift_bound τ) (S.full.background_derivative τ) | |
| 50 | - (S.full.linear τ) (S.full.quadratic τ) (S.full.residual_bound τ) | |
| 51 | - (K.operatorPath period τ) K.c K.c_pos (K.operator_coercive period τ) | |
| 52 | - have hv : value period V = value period (e τ) := congrArg (value period) hV | |
| 53 | - rw [energyNorm_of_value_eq period N (by omega) hN (R τ) (K.operatorPath period τ) V (e τ) hv, | |
| 54 | - energyLoss_of_value_eq period N (by omega) hN (R τ) (K.operatorPath period τ) V (e τ) hv] at h | |
| 55 | - simpa only [correctionArray, lowerOrderPath, orderZeroPath, ContinuousMap.coe_mk, | |
| 56 | - CoefficientPath.operatorPath, EulerGevreyPressureTransport.transportPressure, hV, | |
| 57 | - forcingMajorant, energyPath_apply, lossPath_apply] using h | |
| 58 | - | |
| 59 | -/-- The full Bochner forcing inherits the drift bound from the actual spatial fields. -/ | |
| 60 | -theorem weightedCorrectionForcing_bound {q : ℕ} {T : ℝ} {hq : 6 ≤ q+1} | |
| 61 | - {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} | |
| 62 | - {N : ℕ} {R : C(Icc (0 : ℝ) T, ℝ)} | |
| 63 | - (S : Budget period hq D N R) (hN : N+6 ≤ q+1) | |
| 64 | - {hT : 0 ≤ T} (K : MetricBudget period T hT D) | |
| 65 | - (hG : Continuous (fun t => (D.metric.coefficient t).operator)) | |
| 66 | - (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) | |
| 67 | - (U : TimeLp T (SobolevSpace period (2+q))) | |
| 68 | - (hU : Filter.Tendsto (fun n => pathLp T hT (maximalApproximation period q T n e)) | |
| 69 | - Filter.atTop (𝓝 U)) : | |
| 70 | - (weightedCorrectionForcing period hq T hT D hG N hN R e U : ℝ → ℝ) ≤ᵐ[timeMeasure T] | |
| 71 | - extendPath T hT (forcingMajorant period S hN K e) := by | |
| 72 | - filter_upwards [weightedCorrectionForcing_ae period hq T hT D hG | |
| 73 | - (baseMetricJet period hq D) N hN R e U hU, | |
| 74 | - reindexMaximalTime_restriction period T hT e U hU] with t hforce hv | |
| 75 | - exact hforce.le.trans (correctionArray_bound period S hN K e | |
| 76 | - (reindexMaximalTime period q T U t) (projIcc 0 T hT t) hv) | |
| 77 | - | |
| 78 | -end EulerDriftCorrectionEnergyBound | |
+0 −75 Euler/DriftCorrectionMildEnergy.lean deleted
| @@ -1,75 +0,0 @@ | ||
| 1 | -import Euler.DriftCorrectionEnergyBound | |
| 2 | -import Euler.CorrectionEnergyRestriction | |
| 3 | -import Euler.MildMajorantEnergy | |
| 4 | - | |
| 5 | -/-! Actual nonlinear correction mild solutions obey the drift-sensitive integral energy estimate. -/ | |
| 6 | - | |
| 7 | -noncomputable section | |
| 8 | - | |
| 9 | -namespace EulerDriftCorrectionMildEnergy | |
| 10 | - | |
| 11 | -open MeasureTheory Set InnerProductSpace EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev | |
| 12 | - EulerSpatialSobolevInverse EulerCorrectionOperators EulerSobolevCoefficientPressure EulerCorrectionLowerData | |
| 13 | - EulerCorrectionEnergyRestriction EulerCorrectionEnergyTime EulerCorrectionEnergyData EulerCorrectionEnergyMajorants | |
| 14 | - EulerEnergyMetricPaths EulerGevreyMetricEstimate EulerMildMajorantEnergy EulerEnergyWordCoordinates | |
| 15 | - EulerTimeLpSubintervalBound EulerTimeLp EulerVolterraConvolution EulerSobolevHeat EulerSobolevMaximalRegularity | |
| 16 | - EulerDriftCorrectionBudget EulerDriftEnergyMajorants | |
| 17 | -open scoped Topology | |
| 18 | - | |
| 19 | -variable (period : ℝ) [Fact (0 < period)] | |
| 20 | - | |
| 21 | -/-- The actual nonlinear lower mild equation yields the full energy-order scalar integral bound on every subinterval. | |
| 22 | -Maximal regularity, the higher nonlinear source, the pressure, and their constraints are all constructed or proved inside the argument. -/ | |
| 23 | -theorem correction_mild_integral {q : ℕ} (hq : 6 ≤ q) (T : ℝ) (hT : 0 ≤ T) | |
| 24 | - (D : CorrectionData period (q+1) (Icc (0 : ℝ) T)) | |
| 25 | - (KG : ∀ t, CoefficientJet period standardDirection q (D.metric.coefficient t)) | |
| 26 | - (KL : ∀ t, CoefficientJet period standardDirection q (D.linear.coefficient t)) | |
| 27 | - (KQ : ∀ i t, CoefficientJet period standardDirection q ((D.quadratic i).coefficient t)) | |
| 28 | - (hGq : Continuous (fun t => coefficientSobolevOperator period (KG t))) | |
| 29 | - (hLq : Continuous (fun t => coefficientSobolevOperator period (KL t))) | |
| 30 | - (hQq : ∀ i, Continuous (fun t => coefficientSobolevOperator period (KQ i t))) | |
| 31 | - (hG : Continuous (fun t => (D.metric.coefficient t).operator)) | |
| 32 | - (N : ℕ) (hN : N+6 ≤ q+1) (R Rdot : C(Icc (0 : ℝ) T, ℝ)) | |
| 33 | - (S : Budget period (by omega : 6 ≤ q+1) D N R) (K : MetricBudget period T hT D) | |
| 34 | - (hRd : ∀ t ∈ Ioo 0 T, HasDerivAt (extendPath T hT R) (extendPath T hT Rdot t) t) | |
| 35 | - (ν : ℝ) (hν : 0 < ν) (hν1 : ν ≤ 1) (e₀ : SobolevSpace period (q+1)) | |
| 36 | - (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) | |
| 37 | - (hsol : ∀ t : Icc (0 : ℝ) T, | |
| 38 | - e t = heatOperator period (q+1) (2*ν*t.val).toNNReal e₀ + | |
| 39 | - ∫ r in (0 : ℝ)..t.val, heatKernel period q ν hν r | |
| 40 | - (extendPath T hT (forcingPath period hq (lowerData period D KG KL KQ hGq hLq hQq) e) (t.val-r))) | |
| 41 | - (hz : ∀ t, value period (D.approximation t) ∈ divergenceFreeSpace period D.κ D.direction) | |
| 42 | - (he : ∀ t, value period (e t) ∈ divergenceFreeSpace period D.κ D.direction) | |
| 43 | - (s t : ℝ) (h0s : 0 ≤ s) (hst : s ≤ t) (htT : t ≤ T) : | |
| 44 | - energyPath period N hN T R (K.operatorPath period) e ⟨t,h0s.trans hst,htT⟩ - | |
| 45 | - energyPath period N hN T R (K.operatorPath period) e ⟨s,h0s,hst.trans htT⟩ ≤ | |
| 46 | - ∫ r in s..t, extendPath T hT (correctionRhs period S hN K Rdot e) r := by | |
| 47 | - let Dlow := lowerData period D KG KL KQ hGq hLq hQq | |
| 48 | - let f := forcingPath period hq Dlow e | |
| 49 | - let p := pressurePath period hq Dlow e | |
| 50 | - obtain ⟨U,hU⟩ := exists_maximal_mild_limit period ν hν T hT e₀ f e hsol | |
| 51 | - let F := sourceTime period (by omega : 6 ≤ q+1) T hT D e U | |
| 52 | - let P := signedPressureTime period (by omega : 6 ≤ q+1) T hT D e U | |
| 53 | - let X := energyPath period N hN T R (K.operatorPath period) e | |
| 54 | - let Y := lossPath period N hN T R (K.operatorPath period) e | |
| 55 | - let k : C(Icc (0 : ℝ) T, ℝ) := ContinuousMap.const _ (K.multiplier period) | |
| 56 | - have hF := sourceTime_restriction period hq T hT D KG KL KQ hGq hLq hQq e U hU | |
| 57 | - have hP := signedPressureTime_restriction period hq T hT D KG KL KQ hGq hLq hQq e U hU | |
| 58 | - have henergy := mild_majorized_energy_subinterval period (by omega : 3 ≤ q+1) T hT s t h0s hst htT | |
| 59 | - energyLength energyWord (energyLength_le hN) (fun I : EulerGevreyMetricComparison.ExternalWord N => I.1.val) | |
| 60 | - ν hν D.κ D.direction K.c K.c_pos R Rdot S.full.radius_pos hRd K.metric D.metric.coefficient | |
| 61 | - K.continuous hG K.derivative K.hasDeriv K.symmetric K.coercive K.inverse | |
| 62 | - (fun τ => metricVelocityBound period K.c S.full.B0 (X τ)) (velocityPath period D e) e e₀ f p hsol he | |
| 63 | - (pressurePath_gradient period hq Dlow e) | |
| 64 | - (velocity_divergenceFree period D e hz he) (velocity_bound period S.full hN K e) | |
| 65 | - U F P hU hF hP (growthPath period S.full hN K e) (radiusLossPath R Rdot S.full.radius_pos) k | |
| 66 | - (growthPath_bound period S.full hN K e ν hν1) (fun _ => rfl) | |
| 67 | - (fun τ => div_le_div_of_nonneg_right (K.bound_le τ) K.c_pos.le) | |
| 68 | - have hforce := EulerDriftCorrectionEnergyBound.weightedCorrectionForcing_bound period S hN K hG e U hU | |
| 69 | - have hk : ∀ τ, 0 ≤ k τ := fun _ => (K.constants_nonneg period S.full.B0 S.full.B0_nonneg).2.2 | |
| 70 | - exact scalar_rhs_subinterval T hT s t h0s hst htT | |
| 71 | - (growthPath period S.full hN K e) (radiusLossPath R Rdot S.full.radius_pos) k X Y | |
| 72 | - (forcingMajorant period S hN K e) hk | |
| 73 | - (weightedCorrectionForcing period (by omega : 6 ≤ q+1) T hT D hG N hN R e U) hforce henergy | |
| 74 | - | |
| 75 | -end EulerDriftCorrectionMildEnergy | |
+0 −51 Euler/DriftEnergyConstants.lean deleted
| @@ -1,51 +0,0 @@ | ||
| 1 | -import Euler.NonlinearEnergyConstants | |
| 2 | - | |
| 3 | -/-! Separate the full background norm from the drift norm in the radius-loss term. -/ | |
| 4 | - | |
| 5 | -noncomputable section | |
| 6 | - | |
| 7 | -namespace EulerDriftEnergyConstants | |
| 8 | - | |
| 9 | -open EulerGevreyCorrectionBound EulerGevreyMetricEstimate EulerGevreyGrowthCoefficient | |
| 10 | - EulerNonlinearEnergyConstants | |
| 11 | - | |
| 12 | -variable (period : ℝ) [Fact (0 < period)] | |
| 13 | - | |
| 14 | -/-- The full velocity enters the zero-order coefficient; only the drift enters the loss term. -/ | |
| 15 | -def forcingPolynomial (B M Z0 B0 B1 A0 A2 residual c Rc ρ X Y : ℝ) : ℝ := | |
| 16 | - sourceConstant B M * residual + linearCoefficient period B M Z0 B1 A0 A2 c * X + | |
| 17 | - quadraticCoefficient period B M A2 c * X ^ 2 + | |
| 18 | - lossCoefficient period M c * (ρ⁻¹ + Rc) * (B0 + X) * Y | |
| 19 | - | |
| 20 | -/-- The existing polynomial growth constant absorbs the sharp drift forcing without | |
| 21 | -replacing its small drift envelope by the full background envelope. -/ | |
| 22 | -theorem actual_scalar_bound (g0 g1 k B M Z0 B0 B1 A0 A2 c Rc ρ residual X Y b : ℝ) | |
| 23 | - (hg0 : 0 ≤ g0) (hg1 : 0 ≤ g1) (hk : 0 ≤ k) (hB : 0 ≤ B) (hM : 0 ≤ M) | |
| 24 | - (hZ0 : 0 ≤ Z0) (hB0 : 0 ≤ B0) (hB1 : 0 ≤ B1) (hA0 : 0 ≤ A0) | |
| 25 | - (hA2 : 0 ≤ A2) (hc : 0 < c) (hRc : 0 ≤ Rc) (hρ : 0 < ρ) | |
| 26 | - (hr : 0 ≤ residual) (hX : 0 ≤ X) (hY : 0 ≤ Y) : | |
| 27 | - let C := energyConstant period g0 g1 k B M Z0 B1 A0 A2 c | |
| 28 | - (g0 + g1 * X) * X + b * Y + | |
| 29 | - k * forcingPolynomial period B M Z0 B0 B1 A0 A2 residual c Rc ρ X Y ≤ | |
| 30 | - C * (X + X ^ 2 + residual) + (b + C * (ρ⁻¹ + Rc) * (B0 + X)) * Y := by | |
| 31 | - obtain ⟨hl, hq, hd⟩ := coefficients_nonneg period B M Z0 B1 A0 A2 c | |
| 32 | - hB hM hZ0 hB1 hA0 hA2 hc | |
| 33 | - have hs := sourceConstant_nonneg hB hM | |
| 34 | - have h := absorb_scalar_coefficients g0 g1 (k * sourceConstant B M) | |
| 35 | - (k * linearCoefficient period B M Z0 B1 A0 A2 c) | |
| 36 | - (k * quadraticCoefficient period B M A2 c) (k * lossCoefficient period M c) | |
| 37 | - residual X Y B0 (ρ⁻¹ + Rc) (energyConstant period g0 g1 k B M Z0 B1 A0 A2 c) | |
| 38 | - hg0 hg1 (mul_nonneg hk hs) (mul_nonneg hk hl) (mul_nonneg hk hq) | |
| 39 | - (mul_nonneg hk hd) hr hX hY hB0 (add_nonneg (inv_nonneg.mpr hρ.le) hRc) | |
| 40 | - (le_refl _) b | |
| 41 | - calc | |
| 42 | - _ = (g0 + g1 * X) * X + b * Y + | |
| 43 | - ((k * sourceConstant B M) * residual + | |
| 44 | - (k * linearCoefficient period B M Z0 B1 A0 A2 c) * X + | |
| 45 | - (k * quadraticCoefficient period B M A2 c) * X ^ 2 + | |
| 46 | - (k * lossCoefficient period M c) * (ρ⁻¹ + Rc) * (B0 + X) * Y) := by | |
| 47 | - unfold forcingPolynomial | |
| 48 | - ring | |
| 49 | - _ ≤ _ := h | |
| 50 | - | |
| 51 | -end EulerDriftEnergyConstants | |
+0 −76 Euler/DriftEnergyMajorants.lean deleted
| @@ -1,76 +0,0 @@ | ||
| 1 | -import Euler.CorrectionEnergyScalar | |
| 2 | -import Euler.DriftCorrectionBudget | |
| 3 | -import Euler.DriftEnergyConstants | |
| 4 | - | |
| 5 | -/-! Continuous energy majorants that retain the actual small transport drift. -/ | |
| 6 | - | |
| 7 | -noncomputable section | |
| 8 | - | |
| 9 | -namespace EulerDriftEnergyMajorants | |
| 10 | - | |
| 11 | -open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace | |
| 12 | - EulerCorrectionOperators EulerCorrectionEnergyData EulerCorrectionEnergyMajorants | |
| 13 | - EulerEnergyMetricPaths EulerGevreyMetricEstimate EulerTimeLpSubintervalBound | |
| 14 | - EulerVolterraConvolution EulerDriftCorrectionBudget | |
| 15 | -open scoped Topology | |
| 16 | - | |
| 17 | -variable (period : ℝ) [Fact (0 < period)] | |
| 18 | - | |
| 19 | -/-- The sharp polynomial is evaluated on the actual continuous metric energy paths. -/ | |
| 20 | -def forcingMajorant {q : ℕ} {T : ℝ} {hq : 6 ≤ q+1} | |
| 21 | - {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} | |
| 22 | - {N : ℕ} {R : C(Icc (0 : ℝ) T, ℝ)} | |
| 23 | - (S : Budget period hq D N R) (hN : N+6 ≤ q+1) | |
| 24 | - {hT : 0 ≤ T} (K : MetricBudget period T hT D) | |
| 25 | - (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) : C(Icc (0 : ℝ) T, ℝ) := by | |
| 26 | - let X := energyPath period N hN T R (K.operatorPath period) e | |
| 27 | - let Y := lossPath period N hN T R (K.operatorPath period) e | |
| 28 | - refine ⟨fun t => EulerDriftEnergyConstants.forcingPolynomial period | |
| 29 | - S.full.B S.full.M S.full.B0 S.drift S.full.B1 S.full.A0 S.full.A2 | |
| 30 | - S.full.residual K.c S.full.Rc (R t) (X t) (Y t), ?_⟩ | |
| 31 | - have hi : Continuous (fun t => (R t)⁻¹) := | |
| 32 | - R.continuous.inv₀ (fun t => (S.full.radius_pos t).ne') | |
| 33 | - unfold EulerDriftEnergyConstants.forcingPolynomial | |
| 34 | - fun_prop | |
| 35 | - | |
| 36 | -/-- The genuine scalar majorant retains full velocity only in terms with no derivative loss. -/ | |
| 37 | -def correctionRhs {q : ℕ} {T : ℝ} {hq : 6 ≤ q+1} | |
| 38 | - {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} | |
| 39 | - {N : ℕ} {R : C(Icc (0 : ℝ) T, ℝ)} | |
| 40 | - (S : Budget period hq D N R) (hN : N+6 ≤ q+1) | |
| 41 | - {hT : 0 ≤ T} (K : MetricBudget period T hT D) | |
| 42 | - (Rdot : C(Icc (0 : ℝ) T, ℝ)) | |
| 43 | - (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) : C(Icc (0 : ℝ) T, ℝ) := | |
| 44 | - scalarEnergyRhs T (growthPath period S.full hN K e) | |
| 45 | - (radiusLossPath R Rdot S.full.radius_pos) (ContinuousMap.const _ (K.multiplier period)) | |
| 46 | - (energyPath period N hN T R (K.operatorPath period) e) | |
| 47 | - (lossPath period N hN T R (K.operatorPath period) e) | |
| 48 | - (forcingMajorant period S hN K e) | |
| 49 | - | |
| 50 | -/-- The source's radius-loss factor uses the drift envelope, with the unchanged full-data growth constant. -/ | |
| 51 | -theorem correctionRhs_bound {q : ℕ} {T : ℝ} {hq : 6 ≤ q+1} | |
| 52 | - {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} | |
| 53 | - {N : ℕ} {R : C(Icc (0 : ℝ) T, ℝ)} | |
| 54 | - (S : Budget period hq D N R) (hN : N+6 ≤ q+1) | |
| 55 | - {hT : 0 ≤ T} (K : MetricBudget period T hT D) | |
| 56 | - (Rdot : C(Icc (0 : ℝ) T, ℝ)) | |
| 57 | - (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) (t : Icc (0 : ℝ) T) : | |
| 58 | - let X := energyPath period N hN T R (K.operatorPath period) e t | |
| 59 | - let Y := lossPath period N hN T R (K.operatorPath period) e t | |
| 60 | - let C := combinedConstant period S.full K | |
| 61 | - correctionRhs period S hN K Rdot e t ≤ C * (X + X ^ 2 + S.full.residual) + | |
| 62 | - (Rdot t / R t + C * ((R t)⁻¹ + S.full.Rc) * (S.drift + X)) * Y := by | |
| 63 | - obtain ⟨hg0, hg1, hk⟩ := K.constants_nonneg period S.full.B0 S.full.B0_nonneg | |
| 64 | - exact EulerDriftEnergyConstants.actual_scalar_bound period | |
| 65 | - (K.growth0 period S.full.B0) (K.growth1 period) (K.multiplier period) | |
| 66 | - S.full.B S.full.M S.full.B0 S.drift S.full.B1 S.full.A0 S.full.A2 K.c | |
| 67 | - S.full.Rc (R t) S.full.residual | |
| 68 | - (energyPath period N hN T R (K.operatorPath period) e t) | |
| 69 | - (lossPath period N hN T R (K.operatorPath period) e t) (Rdot t / R t) | |
| 70 | - hg0 hg1 hk S.full.B_nonneg (zero_le_one.trans S.full.M_one_le) | |
| 71 | - S.full.B0_nonneg S.drift_nonneg S.full.B1_nonneg S.full.A0_nonneg | |
| 72 | - S.full.A2_nonneg K.c_pos S.full.Rc_nonneg (S.full.radius_pos t) | |
| 73 | - S.full.residual_pos.le (energy_nonneg period S.full hN K e t) | |
| 74 | - (loss_nonneg period S.full hN K e t) | |
| 75 | - | |
| 76 | -end EulerDriftEnergyMajorants | |
+233 −1 Euler/DriftGevreyInviscidEnergyCompactness.lean View file
| @@ -1,10 +1,242 @@ | ||
| 1 | -import Euler.DriftViscousCorrectionFamily | |
| 1 | +import Euler.DriftCorrectionBootstrap | |
| 2 | +import Euler.CorrectionBudgetRestriction | |
| 3 | +import Euler.CorrectionContinuation | |
| 4 | +import Euler.GevreyPathNorm | |
| 5 | +import Euler.CorrectionMildEquation | |
| 6 | +import Euler.ViscosityDefect | |
| 2 | 7 | import Euler.GevreyStabilityBudget |
| 3 | 8 | import Euler.GevreyFamilyCompactness |
| 4 | 9 | import Euler.GevreyEnergyPathLimit |
| 5 | 10 | |
| 6 | 11 | /-! Drift-aware version: Actual strong inviscid compactness retaining the quantitative Gevrey metric energies. -/ |
| 7 | 12 | |
| 13 | +/-! ## From `Euler/DriftPartialCorrectionBootstrap.lean` | |
| 14 | + | |
| 15 | +The text of `Euler/DriftPartialCorrectionBootstrap.lean`, folded into this file, which was its only importer. -/ | |
| 16 | + | |
| 17 | +section | |
| 18 | + | |
| 19 | +/-! The actual nonlinear Gevrey bootstrap applies uniformly to every partial correction solution. -/ | |
| 20 | + | |
| 21 | +noncomputable section | |
| 22 | + | |
| 23 | +namespace EulerDriftPartialCorrectionBootstrap | |
| 24 | + | |
| 25 | +open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev | |
| 26 | + EulerSpatialSobolevInverse EulerCorrectionOperators EulerSobolevCoefficientPressure EulerCorrectionLowerData | |
| 27 | + EulerCorrectionEnergyData EulerCorrectionEnergyMajorants EulerCorrectionEnergyBootstrap | |
| 28 | + EulerCorrectionBudgetRestriction EulerCorrectionContinuation EulerGevreyMetricEstimate | |
| 29 | + EulerQuadraticSource EulerVolterraConvolution EulerSobolevHeat | |
| 30 | +open EulerDriftCorrectionBudget | |
| 31 | +open scoped Topology | |
| 32 | + | |
| 33 | +variable (period : ℝ) [Fact (0 < period)] | |
| 34 | + | |
| 35 | +/-- Every actual partial solution inherits the same quantitative shrinking-radius estimate from the fixed global data. -/ | |
| 36 | +theorem partial_correction_bootstrap {q : ℕ} (hq : 6 ≤ q) (S : ℝ) (hS : 0 ≤ S) | |
| 37 | + (D : CorrectionData period (q+1) (Icc (0 : ℝ) S)) | |
| 38 | + (KG : ∀ t, CoefficientJet period standardDirection q (D.metric.coefficient t)) | |
| 39 | + (KL : ∀ t, CoefficientJet period standardDirection q (D.linear.coefficient t)) | |
| 40 | + (KQ : ∀ i t, CoefficientJet period standardDirection q ((D.quadratic i).coefficient t)) | |
| 41 | + (hGq : Continuous (fun t => coefficientSobolevOperator period (KG t))) | |
| 42 | + (hLq : Continuous (fun t => coefficientSobolevOperator period (KL t))) | |
| 43 | + (hQq : ∀ i, Continuous (fun t => coefficientSobolevOperator period (KQ i t))) | |
| 44 | + (hG : Continuous (fun t => (D.metric.coefficient t).operator)) | |
| 45 | + (N : ℕ) (hN : N+6 ≤ q+1) (R : C(Icc (0 : ℝ) S,ℝ)) | |
| 46 | + (B : Budget period (by omega : 6 ≤ q+1) D N R) (K : MetricBudget period S hS D) | |
| 47 | + (C Δ ρ0 : ℝ) (hC : combinedConstant period B.full K ≤ C) (hΔ : 0 < Δ) (hΔ1 : Δ ≤ 1) (hρ0 : 0 < ρ0) | |
| 48 | + (hdecay : 2*C*(B.drift+Δ)*S ≤ ρ0/2) (hscale : ρ0*B.full.Rc ≤ 1) | |
| 49 | + (hsmall : 2*B.full.residual*Real.exp (3*C*S) ≤ Δ/2) | |
| 50 | + (hR : ∀ t, R t = ρ0-2*C*(B.drift+Δ)*t.val) | |
| 51 | + (ν : ℝ) (hν : 0 < ν) (hν1 : ν ≤ 1) | |
| 52 | + (hz : ∀ t, value period (D.approximation t) ∈ divergenceFreeSpace period D.κ D.direction) | |
| 53 | + (T : ℝ) (hT : 0 ≤ T) (hTS : T ≤ S) | |
| 54 | + (e : C(Icc (0 : ℝ) T,SobolevSpace period (q+1))) | |
| 55 | + (hsol : ∀ t, e t = quadraticDuhamel period ν hν hT hTS | |
| 56 | + ((lowerData period D KG KL KQ hGq hLq hQq).coefficients period hq) 0 e t) : | |
| 57 | + ∀ t : Icc (0 : ℝ) T, | |
| 58 | + energyNorm period N hN (R (timeInclusion hTS t)) (K.operatorPath period (timeInclusion hTS t)) (e t) | |
| 59 | + ≤ 2*B.full.residual*Real.exp (3*C*t.val) ∧ | |
| 60 | + energyNorm period N hN (R (timeInclusion hTS t)) (K.operatorPath period (timeInclusion hTS t)) (e t) ≤ Δ/2 := by | |
| 61 | + let f := timeInclusion hTS | |
| 62 | + let Dt := D.comp period f | |
| 63 | + let Bt := EulerDriftCorrectionBudget.Budget.restrict period B hTS | |
| 64 | + let Kt := EulerCorrectionBudgetRestriction.MetricBudget.restrict period K hT hTS | |
| 65 | + let Rt := R.comp f | |
| 66 | + let Rd : C(Icc (0 : ℝ) T,ℝ) := ContinuousMap.const _ (-2*C*(B.drift+Δ)) | |
| 67 | + have hCp : 0 < C := (combinedConstant_pos period B.full K).trans_le hC | |
| 68 | + have hB0 := B.drift_nonneg | |
| 69 | + have hr := B.full.residual_pos | |
| 70 | + have hdecayT : 2*C*(B.drift+Δ)*T ≤ ρ0/2 := | |
| 71 | + (mul_le_mul_of_nonneg_left hTS (by positivity : 0 ≤ 2*C*(B.drift+Δ))).trans hdecay | |
| 72 | + have hsmallT : 2*B.full.residual*Real.exp (3*C*T) ≤ Δ/2 := by | |
| 73 | + apply le_trans _ hsmall | |
| 74 | + gcongr | |
| 75 | + have he := correction_mild_divergenceFree period hq ν hν hT hTS | |
| 76 | + (lowerData period D KG KL KQ hGq hLq hQq) e hsol | |
| 77 | + have ht := EulerDriftCorrectionBootstrap.correction_mild_bootstrap period hq T hT Dt | |
| 78 | + (fun t => KG (f t)) (fun t => KL (f t)) (fun i t => KQ i (f t)) | |
| 79 | + (hGq.comp f.continuous) (hLq.comp f.continuous) (fun i => (hQq i).comp f.continuous) | |
| 80 | + (hG.comp f.continuous) N hN Rt Rd Bt Kt C Δ ρ0 hC hΔ hΔ1 hρ0 | |
| 81 | + hdecayT hscale hsmallT (fun t => hR (f t)) (fun _ => rfl) ν hν hν1 e | |
| 82 | + (fun t => hsol t) (fun t => hz (f t)) he | |
| 83 | + exact ht | |
| 84 | + | |
| 85 | +end EulerDriftPartialCorrectionBootstrap | |
| 86 | +end | |
| 87 | + | |
| 88 | +end | |
| 89 | + | |
| 90 | +/-! ## From `Euler/DriftGlobalGevreyCorrection.lean` | |
| 91 | + | |
| 92 | +The text of `Euler/DriftGlobalGevreyCorrection.lean`, folded into this file, which was its only importer. -/ | |
| 93 | + | |
| 94 | +section | |
| 95 | + | |
| 96 | +/-! Actual global-in-time viscous correction from concrete Gevrey coefficient and residual budgets. -/ | |
| 97 | + | |
| 98 | +noncomputable section | |
| 99 | + | |
| 100 | +namespace EulerDriftGlobalGevreyCorrection | |
| 101 | + | |
| 102 | +open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev | |
| 103 | + EulerSpatialSobolevInverse EulerCorrectionOperators EulerSobolevCoefficientPressure EulerCorrectionLowerData | |
| 104 | + EulerCorrectionEnergyData EulerCorrectionEnergyMajorants EulerDriftPartialCorrectionBootstrap | |
| 105 | + EulerCorrectionContinuation EulerGevreyMetricEstimate EulerGevreyPathNorm EulerEnergyMetricPaths | |
| 106 | + EulerQuadraticSource EulerPacketWeights | |
| 107 | +open EulerDriftCorrectionBudget | |
| 108 | +open scoped Topology | |
| 109 | + | |
| 110 | +variable (period : ℝ) [Fact (0 < period)] | |
| 111 | + | |
| 112 | +/-- Concrete coefficient and residual bounds yield an actual viscous correction throughout the prescribed interval. | |
| 113 | +The a-priori energy estimate and the continuation bound are proved inside this theorem, not supplied as hypotheses. -/ | |
| 114 | +theorem exists_global_gevrey_correction {q : ℕ} (hq : 6 ≤ q) (S : ℝ) (hS : 0 < S) | |
| 115 | + (D : CorrectionData period (q+1) (Icc (0 : ℝ) S)) | |
| 116 | + (KG : ∀ t, CoefficientJet period standardDirection q (D.metric.coefficient t)) | |
| 117 | + (KL : ∀ t, CoefficientJet period standardDirection q (D.linear.coefficient t)) | |
| 118 | + (KQ : ∀ i t, CoefficientJet period standardDirection q ((D.quadratic i).coefficient t)) | |
| 119 | + (hGq : Continuous (fun t => coefficientSobolevOperator period (KG t))) | |
| 120 | + (hLq : Continuous (fun t => coefficientSobolevOperator period (KL t))) | |
| 121 | + (hQq : ∀ i, Continuous (fun t => coefficientSobolevOperator period (KQ i t))) | |
| 122 | + (hG : Continuous (fun t => (D.metric.coefficient t).operator)) | |
| 123 | + (N : ℕ) (hN : N+6 ≤ q+1) (hNfull : q+1 ≤ N+6) (R : C(Icc (0 : ℝ) S,ℝ)) | |
| 124 | + (B : Budget period (by omega : 6 ≤ q+1) D N R) (K : MetricBudget period S hS.le D) | |
| 125 | + (C Δ ρ0 : ℝ) (hC : combinedConstant period B.full K ≤ C) (hΔ : 0 < Δ) (hΔ1 : Δ ≤ 1) (hρ0 : 0 < ρ0) | |
| 126 | + (hdecay : 2*C*(B.drift+Δ)*S ≤ ρ0/2) (hscale : ρ0*B.full.Rc ≤ 1) | |
| 127 | + (hsmall : 2*B.full.residual*Real.exp (3*C*S) ≤ Δ/2) | |
| 128 | + (hR : ∀ t, R t = ρ0-2*C*(B.drift+Δ)*t.val) | |
| 129 | + (ν : ℝ) (hν : 0 < ν) (hν1 : ν ≤ 1) | |
| 130 | + (hz : ∀ t, value period (D.approximation t) ∈ divergenceFreeSpace period D.κ D.direction) : | |
| 131 | + ∃ e : C(Icc (0 : ℝ) S,SobolevSpace period (q+1)), | |
| 132 | + e ⟨0,le_rfl,hS.le⟩ = 0 ∧ | |
| 133 | + (∀ t, value period (e t) ∈ divergenceFreeSpace period D.κ D.direction) ∧ | |
| 134 | + (∀ t, e t = quadraticDuhamel period ν hν hS.le le_rfl | |
| 135 | + ((lowerData period D KG KL KQ hGq hLq hQq).coefficients period hq) 0 e t) ∧ | |
| 136 | + (∀ t, energyNorm period N hN (R t) (K.operatorPath period t) (e t) | |
| 137 | + ≤ 2*B.full.residual*Real.exp (3*C*t.val) ∧ | |
| 138 | + energyNorm period N hN (R t) (K.operatorPath period t) (e t) ≤ Δ/2) ∧ | |
| 139 | + ‖e‖ ≤ metricAmplification K.c*(Δ/2)/weight (min (ρ0/2) 1) N := by | |
| 140 | + let δ := min (ρ0/2) 1 | |
| 141 | + let M := metricAmplification K.c*(Δ/2)/weight δ N | |
| 142 | + have hδ : 0 < δ := lt_min (by positivity) zero_lt_one | |
| 143 | + have hδ1 : δ ≤ 1 := min_le_right _ _ | |
| 144 | + have ha : 0 ≤ metricAmplification K.c := | |
| 145 | + (by norm_num : (0 : ℝ) ≤ 1).trans (metricAmplification_one_le K.c_pos) | |
| 146 | + have hM : 0 ≤ M := div_nonneg (mul_nonneg ha (by positivity)) (weight_pos hδ N).le | |
| 147 | + have hCp : 0 < C := (combinedConstant_pos period B.full K).trans_le hC | |
| 148 | + have hcoef : 0 ≤ 2*C*(B.drift+Δ) := by have := B.drift_nonneg; positivity | |
| 149 | + have hrad (t : Icc (0 : ℝ) S) : δ ≤ R t := by | |
| 150 | + rw [hR t] | |
| 151 | + apply (min_le_left (ρ0/2) 1).trans | |
| 152 | + have hm := mul_le_mul_of_nonneg_left t.property.2 hcoef | |
| 153 | + linarith | |
| 154 | + have hbound : ∀ (T : ℝ) (hT : 0 ≤ T) (hTS : T ≤ S) | |
| 155 | + (e : C(Icc (0 : ℝ) T,SobolevSpace period (q+1))), | |
| 156 | + (∀ t, e t = quadraticDuhamel period ν hν hT hTS | |
| 157 | + ((lowerData period D KG KL KQ hGq hLq hQq).coefficients period hq) 0 e t) → ‖e‖ ≤ M := by | |
| 158 | + intro T hT hTS e hsol | |
| 159 | + have hb := EulerDriftPartialCorrectionBootstrap.partial_correction_bootstrap period hq S hS.le D KG KL KQ hGq hLq hQq hG | |
| 160 | + N hN R B K C Δ ρ0 hC hΔ hΔ1 hρ0 hdecay hscale hsmall hR ν hν hν1 hz T hT hTS e hsol | |
| 161 | + apply norm_le_of_energy_bound period N hN hNfull T (R.comp (timeInclusion hTS)) | |
| 162 | + ((K.operatorPath period).comp (timeInclusion hTS)) e K.c δ (Δ/2) K.c_pos hδ hδ1 (by positivity) | |
| 163 | + (fun t => hrad (timeInclusion hTS t)) (fun t => K.operator_coercive period (timeInclusion hTS t)) | |
| 164 | + intro t | |
| 165 | + rw [energyPath_apply] | |
| 166 | + exact (hb t).2 | |
| 167 | + obtain ⟨e,he,hi,hd,hsol⟩ := exists_global_correction_of_bound period hq ν hν S hS M hM | |
| 168 | + (lowerData period D KG KL KQ hGq hLq hQq) hbound | |
| 169 | + have hb := EulerDriftPartialCorrectionBootstrap.partial_correction_bootstrap period hq S hS.le D KG KL KQ hGq hLq hQq hG | |
| 170 | + N hN R B K C Δ ρ0 hC hΔ hΔ1 hρ0 hdecay hscale hsmall hR ν hν hν1 hz S hS.le le_rfl e hsol | |
| 171 | + exact ⟨e,hi,hd,hsol,hb,he⟩ | |
| 172 | + | |
| 173 | +end EulerDriftGlobalGevreyCorrection | |
| 174 | +end | |
| 175 | + | |
| 176 | +end | |
| 177 | + | |
| 178 | +/-! ## From `Euler/DriftViscousCorrectionFamily.lean` | |
| 179 | + | |
| 180 | +The text of `Euler/DriftViscousCorrectionFamily.lean`, folded into this file, which was its only importer. -/ | |
| 181 | + | |
| 182 | +section | |
| 183 | + | |
| 184 | +/-! Drift-aware version: A genuine uniformly bounded viscous approximation family with a uniformly vanishing PDE viscosity term. -/ | |
| 185 | + | |
| 186 | +noncomputable section | |
| 187 | + | |
| 188 | +namespace EulerDriftViscousCorrectionFamily | |
| 189 | + | |
| 190 | +open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev | |
| 191 | + EulerSpatialSobolevInverse EulerCorrectionOperators EulerSobolevCoefficientPressure EulerCorrectionLowerData | |
| 192 | + EulerCorrectionEnergyData EulerCorrectionEnergyMajorants EulerGevreyMetricEstimate | |
| 193 | + EulerQuadraticSource EulerPacketWeights EulerDriftGlobalGevreyCorrection EulerViscosityDefect | |
| 194 | +open scoped Topology | |
| 195 | + | |
| 196 | +variable (period : ℝ) [Fact (0 < period)] | |
| 197 | + | |
| 198 | +/-- The actual finite-cutoff correction has a viscosity approximation sequence with uniform energy control and a uniformly vanishing literal viscous term. | |
| 199 | +This theorem does not assert convergence of the nonlinear solution sequence itself. -/ | |
| 200 | +theorem exists_viscous_correction_family {q : ℕ} (hq : 6 ≤ q) (S : ℝ) (hS : 0 < S) | |
| 201 | + (D : CorrectionData period (q+1) (Icc (0 : ℝ) S)) | |
| 202 | + (KG : ∀ t, CoefficientJet period standardDirection q (D.metric.coefficient t)) | |
| 203 | + (KL : ∀ t, CoefficientJet period standardDirection q (D.linear.coefficient t)) | |
| 204 | + (KQ : ∀ i t, CoefficientJet period standardDirection q ((D.quadratic i).coefficient t)) | |
| 205 | + (hGq : Continuous (fun t => coefficientSobolevOperator period (KG t))) | |
| 206 | + (hLq : Continuous (fun t => coefficientSobolevOperator period (KL t))) | |
| 207 | + (hQq : ∀ i, Continuous (fun t => coefficientSobolevOperator period (KQ i t))) | |
| 208 | + (hG : Continuous (fun t => (D.metric.coefficient t).operator)) | |
| 209 | + (N : ℕ) (hN : N+6 ≤ q+1) (hNfull : q+1 ≤ N+6) (R : C(Icc (0 : ℝ) S,ℝ)) | |
| 210 | + (B : EulerDriftCorrectionBudget.Budget period (by omega : 6 ≤ q+1) D N R) (K : MetricBudget period S hS.le D) | |
| 211 | + (C Δ ρ0 : ℝ) (hC : combinedConstant period B.full K ≤ C) (hΔ : 0 < Δ) (hΔ1 : Δ ≤ 1) (hρ0 : 0 < ρ0) | |
| 212 | + (hdecay : 2*C*(B.drift+Δ)*S ≤ ρ0/2) (hscale : ρ0*B.full.Rc ≤ 1) | |
| 213 | + (hsmall : 2*B.full.residual*Real.exp (3*C*S) ≤ Δ/2) | |
| 214 | + (hR : ∀ t, R t = ρ0-2*C*(B.drift+Δ)*t.val) | |
| 215 | + (hz : ∀ t, value period (D.approximation t) ∈ divergenceFreeSpace period D.κ D.direction) : | |
| 216 | + ∃ e : ℕ → C(Icc (0 : ℝ) S,SobolevSpace period (q+1)), | |
| 217 | + (∀ n, (e n) ⟨0,le_rfl,hS.le⟩ = 0 ∧ | |
| 218 | + (∀ t, value period (e n t) ∈ divergenceFreeSpace period D.κ D.direction) ∧ | |
| 219 | + (∀ t, e n t = quadraticDuhamel period (viscositySequence n) (viscositySequence_pos n) hS.le le_rfl | |
| 220 | + ((lowerData period D KG KL KQ hGq hLq hQq).coefficients period hq) 0 (e n) t) ∧ | |
| 221 | + (∀ t, energyNorm period N hN (R t) (K.operatorPath period t) (e n t) | |
| 222 | + ≤ 2*B.full.residual*Real.exp (3*C*t.val) ∧ | |
| 223 | + energyNorm period N hN (R t) (K.operatorPath period t) (e n t) ≤ Δ/2) ∧ | |
| 224 | + ‖e n‖ ≤ metricAmplification K.c*(Δ/2)/weight (min (ρ0/2) 1) N) ∧ | |
| 225 | + Filter.Tendsto (fun n => viscousDefect period (by omega : 2 ≤ q+1) (viscositySequence n) S (e n)) | |
| 226 | + Filter.atTop (𝓝 0) := by | |
| 227 | + have h := fun n => EulerDriftGlobalGevreyCorrection.exists_global_gevrey_correction period hq S hS D KG KL KQ hGq hLq hQq hG | |
| 228 | + N hN hNfull R B K C Δ ρ0 hC hΔ hΔ1 hρ0 hdecay hscale hsmall hR | |
| 229 | + (viscositySequence n) (viscositySequence_pos n) (viscositySequence_le_one n) hz | |
| 230 | + choose e hi hd hm he hb using h | |
| 231 | + refine ⟨e,fun n => ⟨hi n,hd n,hm n,he n,hb n⟩,?_⟩ | |
| 232 | + exact viscousDefect_tendsto_zero period (by omega : 2 ≤ q+1) S | |
| 233 | + (metricAmplification K.c*(Δ/2)/weight (min (ρ0/2) 1) N) e hb | |
| 234 | + | |
| 235 | +end EulerDriftViscousCorrectionFamily | |
| 236 | +end | |
| 237 | + | |
| 238 | +end | |
| 239 | + | |
| 8 | 240 | noncomputable section |
| 9 | 241 | |
| 10 | 242 | namespace EulerDriftGevreyInviscidEnergyCompactness |
+0 −82 Euler/DriftGlobalGevreyCorrection.lean deleted
| @@ -1,82 +0,0 @@ | ||
| 1 | -import Euler.DriftPartialCorrectionBootstrap | |
| 2 | -import Euler.GevreyPathNorm | |
| 3 | -import Euler.CorrectionMildEquation | |
| 4 | - | |
| 5 | -/-! Actual global-in-time viscous correction from concrete Gevrey coefficient and residual budgets. -/ | |
| 6 | - | |
| 7 | -noncomputable section | |
| 8 | - | |
| 9 | -namespace EulerDriftGlobalGevreyCorrection | |
| 10 | - | |
| 11 | -open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev | |
| 12 | - EulerSpatialSobolevInverse EulerCorrectionOperators EulerSobolevCoefficientPressure EulerCorrectionLowerData | |
| 13 | - EulerCorrectionEnergyData EulerCorrectionEnergyMajorants EulerDriftPartialCorrectionBootstrap | |
| 14 | - EulerCorrectionContinuation EulerGevreyMetricEstimate EulerGevreyPathNorm EulerEnergyMetricPaths | |
| 15 | - EulerQuadraticSource EulerPacketWeights | |
| 16 | -open EulerDriftCorrectionBudget | |
| 17 | -open scoped Topology | |
| 18 | - | |
| 19 | -variable (period : ℝ) [Fact (0 < period)] | |
| 20 | - | |
| 21 | -/-- Concrete coefficient and residual bounds yield an actual viscous correction throughout the prescribed interval. | |
| 22 | -The a-priori energy estimate and the continuation bound are proved inside this theorem, not supplied as hypotheses. -/ | |
| 23 | -theorem exists_global_gevrey_correction {q : ℕ} (hq : 6 ≤ q) (S : ℝ) (hS : 0 < S) | |
| 24 | - (D : CorrectionData period (q+1) (Icc (0 : ℝ) S)) | |
| 25 | - (KG : ∀ t, CoefficientJet period standardDirection q (D.metric.coefficient t)) | |
| 26 | - (KL : ∀ t, CoefficientJet period standardDirection q (D.linear.coefficient t)) | |
| 27 | - (KQ : ∀ i t, CoefficientJet period standardDirection q ((D.quadratic i).coefficient t)) | |
| 28 | - (hGq : Continuous (fun t => coefficientSobolevOperator period (KG t))) | |
| 29 | - (hLq : Continuous (fun t => coefficientSobolevOperator period (KL t))) | |
| 30 | - (hQq : ∀ i, Continuous (fun t => coefficientSobolevOperator period (KQ i t))) | |
| 31 | - (hG : Continuous (fun t => (D.metric.coefficient t).operator)) | |
| 32 | - (N : ℕ) (hN : N+6 ≤ q+1) (hNfull : q+1 ≤ N+6) (R : C(Icc (0 : ℝ) S,ℝ)) | |
| 33 | - (B : Budget period (by omega : 6 ≤ q+1) D N R) (K : MetricBudget period S hS.le D) | |
| 34 | - (C Δ ρ0 : ℝ) (hC : combinedConstant period B.full K ≤ C) (hΔ : 0 < Δ) (hΔ1 : Δ ≤ 1) (hρ0 : 0 < ρ0) | |
| 35 | - (hdecay : 2*C*(B.drift+Δ)*S ≤ ρ0/2) (hscale : ρ0*B.full.Rc ≤ 1) | |
| 36 | - (hsmall : 2*B.full.residual*Real.exp (3*C*S) ≤ Δ/2) | |
| 37 | - (hR : ∀ t, R t = ρ0-2*C*(B.drift+Δ)*t.val) | |
| 38 | - (ν : ℝ) (hν : 0 < ν) (hν1 : ν ≤ 1) | |
| 39 | - (hz : ∀ t, value period (D.approximation t) ∈ divergenceFreeSpace period D.κ D.direction) : | |
| 40 | - ∃ e : C(Icc (0 : ℝ) S,SobolevSpace period (q+1)), | |
| 41 | - e ⟨0,le_rfl,hS.le⟩ = 0 ∧ | |
| 42 | - (∀ t, value period (e t) ∈ divergenceFreeSpace period D.κ D.direction) ∧ | |
| 43 | - (∀ t, e t = quadraticDuhamel period ν hν hS.le le_rfl | |
| 44 | - ((lowerData period D KG KL KQ hGq hLq hQq).coefficients period hq) 0 e t) ∧ | |
| 45 | - (∀ t, energyNorm period N hN (R t) (K.operatorPath period t) (e t) | |
| 46 | - ≤ 2*B.full.residual*Real.exp (3*C*t.val) ∧ | |
| 47 | - energyNorm period N hN (R t) (K.operatorPath period t) (e t) ≤ Δ/2) ∧ | |
| 48 | - ‖e‖ ≤ metricAmplification K.c*(Δ/2)/weight (min (ρ0/2) 1) N := by | |
| 49 | - let δ := min (ρ0/2) 1 | |
| 50 | - let M := metricAmplification K.c*(Δ/2)/weight δ N | |
| 51 | - have hδ : 0 < δ := lt_min (by positivity) zero_lt_one | |
| 52 | - have hδ1 : δ ≤ 1 := min_le_right _ _ | |
| 53 | - have ha : 0 ≤ metricAmplification K.c := | |
| 54 | - (by norm_num : (0 : ℝ) ≤ 1).trans (metricAmplification_one_le K.c_pos) | |
| 55 | - have hM : 0 ≤ M := div_nonneg (mul_nonneg ha (by positivity)) (weight_pos hδ N).le | |
| 56 | - have hCp : 0 < C := (combinedConstant_pos period B.full K).trans_le hC | |
| 57 | - have hcoef : 0 ≤ 2*C*(B.drift+Δ) := by have := B.drift_nonneg; positivity | |
| 58 | - have hrad (t : Icc (0 : ℝ) S) : δ ≤ R t := by | |
| 59 | - rw [hR t] | |
| 60 | - apply (min_le_left (ρ0/2) 1).trans | |
| 61 | - have hm := mul_le_mul_of_nonneg_left t.property.2 hcoef | |
| 62 | - linarith | |
| 63 | - have hbound : ∀ (T : ℝ) (hT : 0 ≤ T) (hTS : T ≤ S) | |
| 64 | - (e : C(Icc (0 : ℝ) T,SobolevSpace period (q+1))), | |
| 65 | - (∀ t, e t = quadraticDuhamel period ν hν hT hTS | |
| 66 | - ((lowerData period D KG KL KQ hGq hLq hQq).coefficients period hq) 0 e t) → ‖e‖ ≤ M := by | |
| 67 | - intro T hT hTS e hsol | |
| 68 | - have hb := EulerDriftPartialCorrectionBootstrap.partial_correction_bootstrap period hq S hS.le D KG KL KQ hGq hLq hQq hG | |
| 69 | - N hN R B K C Δ ρ0 hC hΔ hΔ1 hρ0 hdecay hscale hsmall hR ν hν hν1 hz T hT hTS e hsol | |
| 70 | - apply norm_le_of_energy_bound period N hN hNfull T (R.comp (timeInclusion hTS)) | |
| 71 | - ((K.operatorPath period).comp (timeInclusion hTS)) e K.c δ (Δ/2) K.c_pos hδ hδ1 (by positivity) | |
| 72 | - (fun t => hrad (timeInclusion hTS t)) (fun t => K.operator_coercive period (timeInclusion hTS t)) | |
| 73 | - intro t | |
| 74 | - rw [energyPath_apply] | |
| 75 | - exact (hb t).2 | |
| 76 | - obtain ⟨e,he,hi,hd,hsol⟩ := exists_global_correction_of_bound period hq ν hν S hS M hM | |
| 77 | - (lowerData period D KG KL KQ hGq hLq hQq) hbound | |
| 78 | - have hb := EulerDriftPartialCorrectionBootstrap.partial_correction_bootstrap period hq S hS.le D KG KL KQ hGq hLq hQq hG | |
| 79 | - N hN R B K C Δ ρ0 hC hΔ hΔ1 hρ0 hdecay hscale hsmall hR ν hν hν1 hz S hS.le le_rfl e hsol | |
| 80 | - exact ⟨e,hi,hd,hsol,hb,he⟩ | |
| 81 | - | |
| 82 | -end EulerDriftGlobalGevreyCorrection | |
+0 −86 Euler/DriftMetricForcing.lean deleted
| @@ -1,86 +0,0 @@ | ||
| 1 | -import Euler.DriftNonlinearEstimate | |
| 2 | -import Euler.DriftEnergyConstants | |
| 3 | - | |
| 4 | -/-! The actual correction forcing in metric energy with distinct full-background and small-drift budgets. -/ | |
| 5 | - | |
| 6 | -noncomputable section | |
| 7 | - | |
| 8 | -namespace EulerDriftMetricForcing | |
| 9 | - | |
| 10 | -open MeasureTheory InnerProductSpace EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev | |
| 11 | - EulerSpatialSobolevInverse EulerH6Pressure EulerSobolevGevreyOperators EulerGevreyCorrectionForcing | |
| 12 | - EulerH6Nonlinear EulerSobolevTransportCommutator EulerGevreyPressureTransport EulerSobolevCoefficientPressure | |
| 13 | - EulerGevreyMetricComparison EulerWeightedCylinderEnergy EulerGevreyRestriction EulerGevreyOrderZero | |
| 14 | - EulerGevreyCorrectionBound EulerGevreyMetricEstimate EulerSobolevDriftNorm EulerFunctionalVelocity | |
| 15 | - | |
| 16 | -variable (period : ℝ) [Fact (0 < period)] | |
| 17 | - | |
| 18 | -/-- The genuine seven-term correction forcing obeys the metric polynomial retaining the small drift envelope. -/ | |
| 19 | -theorem correctionForcing_metric {s : ℕ} (hs : 6 ≤ s) {A : SmoothCoefficient period} | |
| 20 | - (KG : EulerSpatialSobolevInverse.CoefficientJet period standardDirection s A) | |
| 21 | - (KG0 : EulerSpatialSobolevInverse.CoefficientJet period standardDirection 6 A) | |
| 22 | - (κ : ℝ) (m : Vector3) (c : ℝ) (hc : 0 < c) | |
| 23 | - (hpos : ∀ x v, c*‖v‖^2 ≤ ⟪A.coefficient x v,v⟫_ℝ) | |
| 24 | - (N : ℕ) (hN : N+6 ≤ s) (ρ Rc M B : ℝ) (hρ : 0 < ρ) (hRc : 0 ≤ Rc) (hM : 1 ≤ M) (hB : 0 ≤ B) | |
| 25 | - (hbase5 : (EulerH6Pressure.CoefficientJet.restrict KG 5 (by omega)).pressureConstant c ≤ M) | |
| 26 | - (hbase6 : (EulerH6Pressure.CoefficientJet.restrict KG 6 (by omega)).pressureConstant c ≤ M) | |
| 27 | - (hsmall : 4*M*(ρ*Rc) ≤ 1) | |
| 28 | - (hcoeff : ∀ l, 1 ≤ l → l ≤ N → coefficientBlock period KG 6 l ≤ Rc^l*(l.factorial : ℝ)^2) | |
| 29 | - (hG : ∀ r ≤ 6, EulerJetProductBounds.boundLevel period KG r ≤ B) | |
| 30 | - (hG0 : ∀ r ≤ 6, EulerJetProductBounds.boundLevel period KG0 r ≤ B) | |
| 31 | - (L : Fin 4 → Vector3 →L[ℝ] ℝ) (hL : ∀ i, ‖L i‖ ≤ 1) | |
| 32 | - (C0 : SmoothCoefficient period) (K0 : EulerSpatialSobolevInverse.CoefficientJet period standardDirection s C0) | |
| 33 | - (C : Fin 3 → SmoothCoefficient period) | |
| 34 | - (K : ∀ i, EulerSpatialSobolevInverse.CoefficientJet period standardDirection s (C i)) | |
| 35 | - (z e : SobolevSpace period (s+1)) (r : SobolevSpace period s) | |
| 36 | - (Z0 B0 B1 A0 A2 R : ℝ) (hA2 : 0 ≤ A2) | |
| 37 | - (hz : weightedNorm period 6 N ρ z ≤ Z0) | |
| 38 | - (hb : weightedDriftNorm period 6 N ρ (velocityMap L) z ≤ B0) | |
| 39 | - (hdz : (∑ i : Fin 4, weightedNorm period 6 N ρ (derivativeOperator period s i z)) ≤ B1) | |
| 40 | - (hC0 : weightedCoefficient period K0 6 N ρ ≤ A0) | |
| 41 | - (hC : (∑ i : Fin 3, weightedCoefficient period (K i) 6 N ρ) ≤ A2) | |
| 42 | - (hr : weightedNorm period 6 N ρ r ≤ R) | |
| 43 | - (KM : LiftL2 period →L[ℝ] LiftL2 period) (cM : ℝ) (hcM : 0 < cM) | |
| 44 | - (hKM : ∀ v, cM^2*‖v‖^2 ≤ ⟪KM v,v⟫_ℝ) : | |
| 45 | - let f := orderZeroSource period hs L hL (coefficientSobolevOperator period K0) | |
| 46 | - (fun i => coefficientSobolevOperator period (K i)) z r (truncateOperator period s e) | |
| 47 | - weightedForcingSum ρ (fun I : ExternalWord N => I.1.val) | |
| 48 | - (correctionForcing period hs KG KG0 N hN L hL (z+e) e f | |
| 49 | - (pressureSobolevOperator period KG κ m c hc hpos f) (transportPressure period hs KG κ m c hc hpos L hL (z+e) e)) ≤ | |
| 50 | - EulerDriftEnergyConstants.forcingPolynomial period B M Z0 B0 B1 A0 A2 R cM Rc ρ | |
| 51 | - (energyNorm period N (by omega : N+6 ≤ s+1) ρ KM e) | |
| 52 | - (energyLoss period N (by omega : N+6 ≤ s+1) ρ KM e) := by | |
| 53 | - let f := orderZeroSource period hs L hL (coefficientSobolevOperator period K0) | |
| 54 | - (fun i => coefficientSobolevOperator period (K i)) z r (truncateOperator period s e) | |
| 55 | - have h := EulerDriftNonlinearEstimate.correctionForcing_polynomial period hs KG KG0 κ m c hc hpos N hN ρ Rc M B hρ hRc hM hB | |
| 56 | - hbase5 hbase6 hsmall hcoeff hG hG0 L hL C0 K0 C K z e r Z0 B0 B1 A0 A2 R hA2 hz hb hdz hC0 hC hr | |
| 57 | - have hM0 : 0 ≤ M := by linarith | |
| 58 | - have hP := productConstant_nonneg period 3 | |
| 59 | - have hz0 : 0 ≤ Z0 := (weightedNorm_nonneg period 6 N ρ hρ z).trans hz | |
| 60 | - have hb0 : 0 ≤ B0 := (weightedDriftNorm_nonneg period 6 N ρ hρ (velocityMap L) z).trans hb | |
| 61 | - have hb1 : 0 ≤ B1 := (Finset.sum_nonneg (fun i _ => | |
| 62 | - weightedNorm_nonneg period 6 N ρ hρ (derivativeOperator period s i z))).trans hdz | |
| 63 | - have ha0 : 0 ≤ A0 := (weightedCoefficient_nonneg period K0 6 N ρ hρ).trans hC0 | |
| 64 | - have hsf := sourceConstant_nonneg hB hM0 | |
| 65 | - have htf := transportConstant_nonneg period hB hM0 | |
| 66 | - have hlf := lossConstant_nonneg period hM0 | |
| 67 | - have hlin : 0 ≤ sourceConstant B M*(productConstant period 3*B1+A0+2*A2*productConstant period 3*Z0)+ | |
| 68 | - transportConstant period B M*Z0 := by positivity | |
| 69 | - have hquad : 0 ≤ sourceConstant B M*A2*productConstant period 3+transportConstant period B M := by positivity | |
| 70 | - have hconv := metric_polynomial_conversion (sourceConstant B M) | |
| 71 | - (sourceConstant B M*(productConstant period 3*B1+A0+2*A2*productConstant period 3*Z0)+transportConstant period B M*Z0) | |
| 72 | - (sourceConstant B M*A2*productConstant period 3+transportConstant period B M) | |
| 73 | - (lossConstant period M*(ρ⁻¹+Rc)) R B0 (metricAmplification cM) | |
| 74 | - (weightedNorm period 6 N ρ e) (weightedLoss period 6 N ρ e) | |
| 75 | - (energyNorm period N (by omega : N+6 ≤ s+1) ρ KM e) (energyLoss period N (by omega : N+6 ≤ s+1) ρ KM e) _ | |
| 76 | - hlin hquad (mul_nonneg hlf (add_nonneg (inv_nonneg.mpr hρ.le) hRc)) hb0 (metricAmplification_one_le hcM) | |
| 77 | - (weightedNorm_nonneg period 6 N ρ hρ e) (weightedLoss_nonneg period 6 N ρ hρ e) | |
| 78 | - (energyNorm_nonneg period N (by omega : N+6 ≤ s+1) ρ hρ KM e) | |
| 79 | - (weightedNorm_le_energy period N (by omega : N+6 ≤ s+1) ρ hρ KM e cM hcM hKM) | |
| 80 | - (weightedLoss_le_energy period N (by omega : N+6 ≤ s+1) ρ hρ KM e cM hcM hKM) h | |
| 81 | - | |
| 82 | - simpa only [EulerDriftEnergyConstants.forcingPolynomial, | |
| 83 | - EulerNonlinearEnergyConstants.linearCoefficient, EulerNonlinearEnergyConstants.quadraticCoefficient, | |
| 84 | - EulerNonlinearEnergyConstants.lossCoefficient, mul_assoc, mul_left_comm] using hconv | |
| 85 | - | |
| 86 | -end EulerDriftMetricForcing | |
+0 −109 Euler/DriftNonlinearEstimate.lean deleted
| @@ -1,109 +0,0 @@ | ||
| 1 | -import Euler.DriftCorrectionForcing | |
| 2 | -import Euler.GevreyNonlinearEstimate | |
| 3 | - | |
| 4 | -/-! Actual nonlinear forcing with separate full-background and drift envelopes. -/ | |
| 5 | - | |
| 6 | -noncomputable section | |
| 7 | - | |
| 8 | -namespace EulerDriftNonlinearEstimate | |
| 9 | - | |
| 10 | -open MeasureTheory InnerProductSpace EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev | |
| 11 | - EulerSpatialSobolevInverse EulerH6Pressure EulerSobolevGevreyOperators EulerGevreyCorrectionForcing | |
| 12 | - EulerH6Nonlinear EulerSobolevTransportCommutator EulerGevreyPressureTransport EulerSobolevCoefficientPressure | |
| 13 | - EulerGevreyMetricComparison EulerWeightedCylinderEnergy EulerGevreyRestriction EulerGevreyOrderZero | |
| 14 | - EulerGevreyCorrectionBound EulerGevreyNonlinearEstimate EulerSobolevDriftNorm EulerFunctionalVelocity | |
| 15 | - | |
| 16 | -/-- The factor four is spent only on the correction drift, recovering the original uniform loss constant. -/ | |
| 17 | -theorem drift_loss_absorption (P M Rc ρ B E Y D : ℝ) | |
| 18 | - (hP : 0 ≤ P) (hM : 0 ≤ M) (hRc : 0 ≤ Rc) (hρ : 0 < ρ) | |
| 19 | - (hB : 0 ≤ B) (hE : 0 ≤ E) (hY : 0 ≤ Y) (hD : D ≤ 4*(B+E)) : | |
| 20 | - (P*ρ⁻¹+8*Rc*M*P)*D*Y ≤ ((4+32*M)*P)*(ρ⁻¹+Rc)*(B+E)*Y := by | |
| 21 | - have ha : 0 ≤ P*ρ⁻¹+8*Rc*M*P := by positivity | |
| 22 | - have hc : 4*(P*ρ⁻¹+8*Rc*M*P) ≤ ((4+32*M)*P)*(ρ⁻¹+Rc) := by | |
| 23 | - have h1 := mul_nonneg hP hRc | |
| 24 | - have h2 := mul_nonneg (mul_nonneg hM hP) (inv_nonneg.mpr hρ.le) | |
| 25 | - linarith only [h1,h2] | |
| 26 | - calc | |
| 27 | - _ ≤ (P*ρ⁻¹+8*Rc*M*P)*(4*(B+E))*Y := | |
| 28 | - mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hD ha) hY | |
| 29 | - _ = (4*(P*ρ⁻¹+8*Rc*M*P))*(B+E)*Y := by ring | |
| 30 | - _ ≤ _ := mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right hc (add_nonneg hB hE)) hY | |
| 31 | - | |
| 32 | -/-- Scalar assembly keeps the independent full-velocity and drift envelopes in their respective terms. -/ | |
| 33 | -theorem polynomial_assembly (S T D Z B P B1 A0 A2 R E Y V F H : ℝ) | |
| 34 | - (hS : 0 ≤ S) (hT : 0 ≤ T) (hE : 0 ≤ E) | |
| 35 | - (hV : V ≤ Z+E) (hF : F ≤ R+(P*B1+A0+2*A2*P*Z)*E+A2*P*E^2) | |
| 36 | - (hH : H ≤ S*F+T*V*E+D*(B+E)*Y) : | |
| 37 | - H ≤ S*R+(S*(P*B1+A0+2*A2*P*Z)+T*Z)*E+(S*A2*P+T)*E^2+D*(B+E)*Y := by | |
| 38 | - have h := add_le_add (add_le_add (mul_le_mul_of_nonneg_left hF hS) | |
| 39 | - (mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hV hT) hE)) (le_refl (D*(B+E)*Y)) | |
| 40 | - exact hH.trans (h.trans_eq (by ring)) | |
| 41 | - | |
| 42 | -variable (period : ℝ) [Fact (0 < period)] | |
| 43 | - | |
| 44 | -/-- The literal seven-term Euler forcing has a scalar bound preserving the actual small background drift. -/ | |
| 45 | -theorem correctionForcing_polynomial {s : ℕ} (hs : 6 ≤ s) {A : SmoothCoefficient period} | |
| 46 | - (KG : EulerSpatialSobolevInverse.CoefficientJet period standardDirection s A) | |
| 47 | - (KG0 : EulerSpatialSobolevInverse.CoefficientJet period standardDirection 6 A) | |
| 48 | - (κ : ℝ) (m : Vector3) (c : ℝ) (hc : 0 < c) | |
| 49 | - (hpos : ∀ x v, c*‖v‖^2 ≤ ⟪A.coefficient x v,v⟫_ℝ) | |
| 50 | - (N : ℕ) (hN : N+6 ≤ s) (ρ Rc M B : ℝ) (hρ : 0 < ρ) (hRc : 0 ≤ Rc) (hM : 1 ≤ M) (hB : 0 ≤ B) | |
| 51 | - (hbase5 : (EulerH6Pressure.CoefficientJet.restrict KG 5 (by omega)).pressureConstant c ≤ M) | |
| 52 | - (hbase6 : (EulerH6Pressure.CoefficientJet.restrict KG 6 (by omega)).pressureConstant c ≤ M) | |
| 53 | - (hsmall : 4*M*(ρ*Rc) ≤ 1) | |
| 54 | - (hcoeff : ∀ l, 1 ≤ l → l ≤ N → coefficientBlock period KG 6 l ≤ Rc^l*(l.factorial : ℝ)^2) | |
| 55 | - (hG : ∀ r ≤ 6, EulerJetProductBounds.boundLevel period KG r ≤ B) | |
| 56 | - (hG0 : ∀ r ≤ 6, EulerJetProductBounds.boundLevel period KG0 r ≤ B) | |
| 57 | - (L : Fin 4 → Vector3 →L[ℝ] ℝ) (hL : ∀ i, ‖L i‖ ≤ 1) | |
| 58 | - (C0 : SmoothCoefficient period) (K0 : EulerSpatialSobolevInverse.CoefficientJet period standardDirection s C0) | |
| 59 | - (C : Fin 3 → SmoothCoefficient period) | |
| 60 | - (K : ∀ i, EulerSpatialSobolevInverse.CoefficientJet period standardDirection s (C i)) | |
| 61 | - (z e : SobolevSpace period (s+1)) (r : SobolevSpace period s) | |
| 62 | - (Z0 B0 B1 A0 A2 R : ℝ) (hA2 : 0 ≤ A2) | |
| 63 | - (hz : weightedNorm period 6 N ρ z ≤ Z0) | |
| 64 | - (hb : weightedDriftNorm period 6 N ρ (velocityMap L) z ≤ B0) | |
| 65 | - (hdz : (∑ i : Fin 4, weightedNorm period 6 N ρ (derivativeOperator period s i z)) ≤ B1) | |
| 66 | - (hC0 : weightedCoefficient period K0 6 N ρ ≤ A0) | |
| 67 | - (hC : (∑ i : Fin 3, weightedCoefficient period (K i) 6 N ρ) ≤ A2) | |
| 68 | - (hr : weightedNorm period 6 N ρ r ≤ R) : | |
| 69 | - let f := orderZeroSource period hs L hL (coefficientSobolevOperator period K0) | |
| 70 | - (fun i => coefficientSobolevOperator period (K i)) z r (truncateOperator period s e) | |
| 71 | - weightedForcingSum ρ (fun I : ExternalWord N => I.1.val) | |
| 72 | - (correctionForcing period hs KG KG0 N hN L hL (z+e) e f | |
| 73 | - (pressureSobolevOperator period KG κ m c hc hpos f) (transportPressure period hs KG κ m c hc hpos L hL (z+e) e)) ≤ | |
| 74 | - sourceConstant B M*R+ | |
| 75 | - (sourceConstant B M*(productConstant period 3*B1+A0+2*A2*productConstant period 3*Z0)+transportConstant period B M*Z0)* | |
| 76 | - weightedNorm period 6 N ρ e+ | |
| 77 | - (sourceConstant B M*A2*productConstant period 3+transportConstant period B M)*(weightedNorm period 6 N ρ e)^2+ | |
| 78 | - lossConstant period M*(ρ⁻¹+Rc)*(B0+weightedNorm period 6 N ρ e)*weightedLoss period 6 N ρ e := by | |
| 79 | - let f := orderZeroSource period hs L hL (coefficientSobolevOperator period K0) | |
| 80 | - (fun i => coefficientSobolevOperator period (K i)) z r (truncateOperator period s e) | |
| 81 | - have hf := orderZeroSource_uniform period hs N hN ρ hρ L hL C0 K0 C K z e r Z0 B1 A0 A2 R hA2 hz hdz hC0 hC hr | |
| 82 | - have hv := (weightedNorm_add_le period 6 N (by omega : N+6 ≤ s+1) ρ hρ z e).trans | |
| 83 | - (add_le_add hz (le_refl (weightedNorm period 6 N ρ e))) | |
| 84 | - have hB0 : 0 ≤ B0 := (weightedDriftNorm_nonneg period 6 N ρ hρ (velocityMap L) z).trans hb | |
| 85 | - have heD := weightedDriftNorm_velocityMap_le period 6 N ρ hρ L hL e | |
| 86 | - have hD : weightedDriftNorm period 6 N ρ (velocityMap L) (z+e) ≤ | |
| 87 | - 4*(B0+weightedNorm period 6 N ρ e) := by | |
| 88 | - have h := (weightedDriftNorm_add_le period 6 N (by omega : N+6 ≤ s+1) ρ hρ (velocityMap L) z e).trans | |
| 89 | - (add_le_add hb heD) | |
| 90 | - linarith only [h,hB0] | |
| 91 | - have hraw := EulerDriftCorrectionForcing.correctionForcing_uniform_bound period hs KG KG0 κ m c hc hpos | |
| 92 | - N hN ρ Rc M B hρ hRc hM hbase5 hbase6 hsmall hcoeff hG hG0 L hL (z+e) e f | |
| 93 | - have hloss : (productConstant period 3*ρ⁻¹+8*Rc*M*productConstant period 3)* | |
| 94 | - weightedDriftNorm period 6 N ρ (velocityMap L) (z+e)*weightedLoss period 6 N ρ e ≤ | |
| 95 | - lossConstant period M*(ρ⁻¹+Rc)*(B0+weightedNorm period 6 N ρ e)*weightedLoss period 6 N ρ e := by | |
| 96 | - simpa only [lossConstant] using drift_loss_absorption (productConstant period 3) M Rc ρ B0 | |
| 97 | - (weightedNorm period 6 N ρ e) (weightedLoss period 6 N ρ e) | |
| 98 | - (weightedDriftNorm period 6 N ρ (velocityMap L) (z+e)) | |
| 99 | - (productConstant_nonneg period 3) (by linarith) hRc hρ hB0 | |
| 100 | - (weightedNorm_nonneg period 6 N ρ hρ e) (weightedLoss_nonneg period 6 N ρ hρ e) hD | |
| 101 | - have h := hraw.trans (add_le_add (le_refl _) hloss) | |
| 102 | - exact polynomial_assembly (sourceConstant B M) (transportConstant period B M) | |
| 103 | - (lossConstant period M*(ρ⁻¹+Rc)) Z0 B0 (productConstant period 3) B1 A0 A2 R | |
| 104 | - (weightedNorm period 6 N ρ e) (weightedLoss period 6 N ρ e) (weightedNorm period 6 N ρ (z+e)) | |
| 105 | - (weightedNorm period 6 N ρ f) _ | |
| 106 | - (sourceConstant_nonneg hB (by linarith)) (transportConstant_nonneg period hB (by linarith)) | |
| 107 | - (weightedNorm_nonneg period 6 N ρ hρ e) hv hf h | |
| 108 | - | |
| 109 | -end EulerDriftNonlinearEstimate | |
+0 −71 Euler/DriftPartialCorrectionBootstrap.lean deleted
| @@ -1,71 +0,0 @@ | ||
| 1 | -import Euler.DriftCorrectionBootstrap | |
| 2 | -import Euler.CorrectionBudgetRestriction | |
| 3 | -import Euler.CorrectionContinuation | |
| 4 | - | |
| 5 | -/-! The actual nonlinear Gevrey bootstrap applies uniformly to every partial correction solution. -/ | |
| 6 | - | |
| 7 | -noncomputable section | |
| 8 | - | |
| 9 | -namespace EulerDriftPartialCorrectionBootstrap | |
| 10 | - | |
| 11 | -open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev | |
| 12 | - EulerSpatialSobolevInverse EulerCorrectionOperators EulerSobolevCoefficientPressure EulerCorrectionLowerData | |
| 13 | - EulerCorrectionEnergyData EulerCorrectionEnergyMajorants EulerCorrectionEnergyBootstrap | |
| 14 | - EulerCorrectionBudgetRestriction EulerCorrectionContinuation EulerGevreyMetricEstimate | |
| 15 | - EulerQuadraticSource EulerVolterraConvolution EulerSobolevHeat | |
| 16 | -open EulerDriftCorrectionBudget | |
| 17 | -open scoped Topology | |
| 18 | - | |
| 19 | -variable (period : ℝ) [Fact (0 < period)] | |
| 20 | - | |
| 21 | -/-- Every actual partial solution inherits the same quantitative shrinking-radius estimate from the fixed global data. -/ | |
| 22 | -theorem partial_correction_bootstrap {q : ℕ} (hq : 6 ≤ q) (S : ℝ) (hS : 0 ≤ S) | |
| 23 | - (D : CorrectionData period (q+1) (Icc (0 : ℝ) S)) | |
| 24 | - (KG : ∀ t, CoefficientJet period standardDirection q (D.metric.coefficient t)) | |
| 25 | - (KL : ∀ t, CoefficientJet period standardDirection q (D.linear.coefficient t)) | |
| 26 | - (KQ : ∀ i t, CoefficientJet period standardDirection q ((D.quadratic i).coefficient t)) | |
| 27 | - (hGq : Continuous (fun t => coefficientSobolevOperator period (KG t))) | |
| 28 | - (hLq : Continuous (fun t => coefficientSobolevOperator period (KL t))) | |
| 29 | - (hQq : ∀ i, Continuous (fun t => coefficientSobolevOperator period (KQ i t))) | |
| 30 | - (hG : Continuous (fun t => (D.metric.coefficient t).operator)) | |
| 31 | - (N : ℕ) (hN : N+6 ≤ q+1) (R : C(Icc (0 : ℝ) S,ℝ)) | |
| 32 | - (B : Budget period (by omega : 6 ≤ q+1) D N R) (K : MetricBudget period S hS D) | |
| 33 | - (C Δ ρ0 : ℝ) (hC : combinedConstant period B.full K ≤ C) (hΔ : 0 < Δ) (hΔ1 : Δ ≤ 1) (hρ0 : 0 < ρ0) | |
| 34 | - (hdecay : 2*C*(B.drift+Δ)*S ≤ ρ0/2) (hscale : ρ0*B.full.Rc ≤ 1) | |
| 35 | - (hsmall : 2*B.full.residual*Real.exp (3*C*S) ≤ Δ/2) | |
| 36 | - (hR : ∀ t, R t = ρ0-2*C*(B.drift+Δ)*t.val) | |
| 37 | - (ν : ℝ) (hν : 0 < ν) (hν1 : ν ≤ 1) | |
| 38 | - (hz : ∀ t, value period (D.approximation t) ∈ divergenceFreeSpace period D.κ D.direction) | |
| 39 | - (T : ℝ) (hT : 0 ≤ T) (hTS : T ≤ S) | |
| 40 | - (e : C(Icc (0 : ℝ) T,SobolevSpace period (q+1))) | |
| 41 | - (hsol : ∀ t, e t = quadraticDuhamel period ν hν hT hTS | |
| 42 | - ((lowerData period D KG KL KQ hGq hLq hQq).coefficients period hq) 0 e t) : | |
| 43 | - ∀ t : Icc (0 : ℝ) T, | |
| 44 | - energyNorm period N hN (R (timeInclusion hTS t)) (K.operatorPath period (timeInclusion hTS t)) (e t) | |
| 45 | - ≤ 2*B.full.residual*Real.exp (3*C*t.val) ∧ | |
| 46 | - energyNorm period N hN (R (timeInclusion hTS t)) (K.operatorPath period (timeInclusion hTS t)) (e t) ≤ Δ/2 := by | |
| 47 | - let f := timeInclusion hTS | |
| 48 | - let Dt := D.comp period f | |
| 49 | - let Bt := EulerDriftCorrectionBudget.Budget.restrict period B hTS | |
| 50 | - let Kt := EulerCorrectionBudgetRestriction.MetricBudget.restrict period K hT hTS | |
| 51 | - let Rt := R.comp f | |
| 52 | - let Rd : C(Icc (0 : ℝ) T,ℝ) := ContinuousMap.const _ (-2*C*(B.drift+Δ)) | |
| 53 | - have hCp : 0 < C := (combinedConstant_pos period B.full K).trans_le hC | |
| 54 | - have hB0 := B.drift_nonneg | |
| 55 | - have hr := B.full.residual_pos | |
| 56 | - have hdecayT : 2*C*(B.drift+Δ)*T ≤ ρ0/2 := | |
| 57 | - (mul_le_mul_of_nonneg_left hTS (by positivity : 0 ≤ 2*C*(B.drift+Δ))).trans hdecay | |
| 58 | - have hsmallT : 2*B.full.residual*Real.exp (3*C*T) ≤ Δ/2 := by | |
| 59 | - apply le_trans _ hsmall | |
| 60 | - gcongr | |
| 61 | - have he := correction_mild_divergenceFree period hq ν hν hT hTS | |
| 62 | - (lowerData period D KG KL KQ hGq hLq hQq) e hsol | |
| 63 | - have ht := EulerDriftCorrectionBootstrap.correction_mild_bootstrap period hq T hT Dt | |
| 64 | - (fun t => KG (f t)) (fun t => KL (f t)) (fun i t => KQ i (f t)) | |
| 65 | - (hGq.comp f.continuous) (hLq.comp f.continuous) (fun i => (hQq i).comp f.continuous) | |
| 66 | - (hG.comp f.continuous) N hN Rt Rd Bt Kt C Δ ρ0 hC hΔ hΔ1 hρ0 | |
| 67 | - hdecayT hscale hsmallT (fun t => hR (f t)) (fun _ => rfl) ν hν hν1 e | |
| 68 | - (fun t => hsol t) (fun t => hz (f t)) he | |
| 69 | - exact ht | |
| 70 | - | |
| 71 | -end EulerDriftPartialCorrectionBootstrap | |
+0 −55 Euler/DriftViscousCorrectionFamily.lean deleted
| @@ -1,55 +0,0 @@ | ||
| 1 | -import Euler.DriftGlobalGevreyCorrection | |
| 2 | -import Euler.ViscosityDefect | |
| 3 | - | |
| 4 | -/-! Drift-aware version: A genuine uniformly bounded viscous approximation family with a uniformly vanishing PDE viscosity term. -/ | |
| 5 | - | |
| 6 | -noncomputable section | |
| 7 | - | |
| 8 | -namespace EulerDriftViscousCorrectionFamily | |
| 9 | - | |
| 10 | -open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev | |
| 11 | - EulerSpatialSobolevInverse EulerCorrectionOperators EulerSobolevCoefficientPressure EulerCorrectionLowerData | |
| 12 | - EulerCorrectionEnergyData EulerCorrectionEnergyMajorants EulerGevreyMetricEstimate | |
| 13 | - EulerQuadraticSource EulerPacketWeights EulerDriftGlobalGevreyCorrection EulerViscosityDefect | |
| 14 | -open scoped Topology | |
| 15 | - | |
| 16 | -variable (period : ℝ) [Fact (0 < period)] | |
| 17 | - | |
| 18 | -/-- The actual finite-cutoff correction has a viscosity approximation sequence with uniform energy control and a uniformly vanishing literal viscous term. | |
| 19 | -This theorem does not assert convergence of the nonlinear solution sequence itself. -/ | |
| 20 | -theorem exists_viscous_correction_family {q : ℕ} (hq : 6 ≤ q) (S : ℝ) (hS : 0 < S) | |
| 21 | - (D : CorrectionData period (q+1) (Icc (0 : ℝ) S)) | |
| 22 | - (KG : ∀ t, CoefficientJet period standardDirection q (D.metric.coefficient t)) | |
| 23 | - (KL : ∀ t, CoefficientJet period standardDirection q (D.linear.coefficient t)) | |
| 24 | - (KQ : ∀ i t, CoefficientJet period standardDirection q ((D.quadratic i).coefficient t)) | |
| 25 | - (hGq : Continuous (fun t => coefficientSobolevOperator period (KG t))) | |
| 26 | - (hLq : Continuous (fun t => coefficientSobolevOperator period (KL t))) | |
| 27 | - (hQq : ∀ i, Continuous (fun t => coefficientSobolevOperator period (KQ i t))) | |
| 28 | - (hG : Continuous (fun t => (D.metric.coefficient t).operator)) | |
| 29 | - (N : ℕ) (hN : N+6 ≤ q+1) (hNfull : q+1 ≤ N+6) (R : C(Icc (0 : ℝ) S,ℝ)) | |
| 30 | - (B : EulerDriftCorrectionBudget.Budget period (by omega : 6 ≤ q+1) D N R) (K : MetricBudget period S hS.le D) | |
| 31 | - (C Δ ρ0 : ℝ) (hC : combinedConstant period B.full K ≤ C) (hΔ : 0 < Δ) (hΔ1 : Δ ≤ 1) (hρ0 : 0 < ρ0) | |
| 32 | - (hdecay : 2*C*(B.drift+Δ)*S ≤ ρ0/2) (hscale : ρ0*B.full.Rc ≤ 1) | |
| 33 | - (hsmall : 2*B.full.residual*Real.exp (3*C*S) ≤ Δ/2) | |
| 34 | - (hR : ∀ t, R t = ρ0-2*C*(B.drift+Δ)*t.val) | |
| 35 | - (hz : ∀ t, value period (D.approximation t) ∈ divergenceFreeSpace period D.κ D.direction) : | |
| 36 | - ∃ e : ℕ → C(Icc (0 : ℝ) S,SobolevSpace period (q+1)), | |
| 37 | - (∀ n, (e n) ⟨0,le_rfl,hS.le⟩ = 0 ∧ | |
| 38 | - (∀ t, value period (e n t) ∈ divergenceFreeSpace period D.κ D.direction) ∧ | |
| 39 | - (∀ t, e n t = quadraticDuhamel period (viscositySequence n) (viscositySequence_pos n) hS.le le_rfl | |
| 40 | - ((lowerData period D KG KL KQ hGq hLq hQq).coefficients period hq) 0 (e n) t) ∧ | |
| 41 | - (∀ t, energyNorm period N hN (R t) (K.operatorPath period t) (e n t) | |
| 42 | - ≤ 2*B.full.residual*Real.exp (3*C*t.val) ∧ | |
| 43 | - energyNorm period N hN (R t) (K.operatorPath period t) (e n t) ≤ Δ/2) ∧ | |
| 44 | - ‖e n‖ ≤ metricAmplification K.c*(Δ/2)/weight (min (ρ0/2) 1) N) ∧ | |
| 45 | - Filter.Tendsto (fun n => viscousDefect period (by omega : 2 ≤ q+1) (viscositySequence n) S (e n)) | |
| 46 | - Filter.atTop (𝓝 0) := by | |
| 47 | - have h := fun n => EulerDriftGlobalGevreyCorrection.exists_global_gevrey_correction period hq S hS D KG KL KQ hGq hLq hQq hG | |
| 48 | - N hN hNfull R B K C Δ ρ0 hC hΔ hΔ1 hρ0 hdecay hscale hsmall hR | |
| 49 | - (viscositySequence n) (viscositySequence_pos n) (viscositySequence_le_one n) hz | |
| 50 | - choose e hi hd hm he hb using h | |
| 51 | - refine ⟨e,fun n => ⟨hi n,hd n,hm n,he n,hb n⟩,?_⟩ | |
| 52 | - exact viscousDefect_tendsto_zero period (by omega : 2 ≤ q+1) S | |
| 53 | - (metricAmplification K.c*(Δ/2)/weight (min (ρ0/2) 1) N) e hb | |
| 54 | - | |
| 55 | -end EulerDriftViscousCorrectionFamily | |
+6 −2 docs/s5-folding/README.md View file
| @@ -4,7 +4,11 @@ Issue S-5 (#14). Measured on main at `ba4a037`: 582 modules fold into 343 files | ||
| 4 | 4 | |
| 5 | 5 | ## The rule |
| 6 | 6 | |
| 7 | -A module is folded when exactly one file of the repository imports it, that file is in the same folder and the same family (first word of the file name), the module has at most 200 lines, the file that takes it stays within 600 lines, and neither states results (no file with `Comparator`, `Solution`, `Theorem`, `PaperResult`, `Results` or `Statement` in its name). The module's text goes into the file unchanged, under a heading that names it, in a `section` of its own, before the file's own text; the scopes it left open at its end are closed there; the file takes over its imports. Chains fold from the leaf up while the limits hold. | |
| 7 | +A module is folded when exactly one file of the repository imports it, that file is in the same folder and the same family (first word of the file name), the module has at most 200 lines, the file takes in at most 600 lines, and neither states results (no file with `Comparator`, `Solution`, `Theorem`, `PaperResult`, `Results` or `Statement` in its name). The module's text goes into the file unchanged, under a heading that names it, in a `section` of its own, before the file's own text; the scopes it left open at its end are closed there; the file takes over its imports. Chains fold from the leaf up while the limits hold. | |
| 8 | + | |
| 9 | +### What the two limits count | |
| 10 | + | |
| 11 | +Both limits count text: a module's own lines for the 200, a file's own lines plus those of the modules it takes for the 600. That is what `fold.py plan` compares, and it is read off the sources before anything is folded. The lines a fold adds to a file are not counted: a heading that names the file the text came from, the `section` it opens, and the `end`s that close the scopes the module left open at its end, which come to 47 lines for the six modules of `Euler/DriftCorrectionBootstrap.lean`. That file takes in 575 lines of text (its own 100 and the 475 of the six modules) and stands at 622: the cap is on the 575, the 622 is the file. The headings and the `end`s are what makes a folded file navigable — where each piece came from, where its scopes end — and they are the same for every module; a file that takes in 600 lines of text and carries ten headings is not a file of 600 lines of text, and the cap is a bound on the text, as the 200 is on the module's. The series keeps it there, and every count this page gives for a file is the text it takes in. | |
| 8 | 12 | |
| 9 | 13 | ## Why it is cheaper |
| 10 | 14 | |
| @@ -100,7 +104,7 @@ Each pull request of the series keeps its plan in its route notes (`routes/<bran | ||
| 100 | 104 | |
| 101 | 105 | ## What this does not show |
| 102 | 106 | |
| 103 | -The wall-clock time of a build on your machine; that every file is now in its best shape for reading (P-8 splits the large ones; nothing here grows past 600 lines). | |
| 107 | +The wall-clock time of a build on your machine; that every file is now in its best shape for reading (P-8 splits the large ones; no file takes in more than 600 lines of text, and the largest, `Euler/DriftCorrectionBootstrap.lean`, stands at 622 with the headings and `end`s of its six folds). | |
| 104 | 108 | |
| 105 | 109 | ## Statements, and the series as it was opened |
| 106 | 110 | |
+14 −4 docs/s5-folding/fold.py View file
| @@ -7,9 +7,13 @@ | ||
| 7 | 7 | python3 -I fold.py self-test |
| 8 | 8 | |
| 9 | 9 | A module is folded when exactly one file of the repository imports it, that file is in the same folder and the same |
| 10 | -family (first word of the file name), neither states results, the module has at most --small lines and the file that | |
| 11 | -takes it stays within --cap lines. Its text goes into the importer unchanged, in its own `section`, before the | |
| 12 | -importer's own text; the importer takes over its imports. No declaration, statement or proof line changes. | |
| 10 | +family (first word of the file name), neither states results, the module has at most --small lines and the file takes | |
| 11 | +in at most --cap lines. Both limits count text: the module's own lines, and the file's own lines plus those of the | |
| 12 | +modules it takes. The lines a fold adds -- a heading that names where the text came from, the `section`, and | |
| 13 | +the `end`s that close the scopes the module left open -- are not counted, and `plan` prints them beside the text of | |
| 14 | +the largest file, so the two numbers are never mistaken for each other. Its text goes into the importer unchanged, in | |
| 15 | +its own `section`, before the importer's own text; the importer takes over its imports. No declaration, statement or | |
| 16 | +proof line changes. | |
| 13 | 17 | """ |
| 14 | 18 | import collections, json, os, re, subprocess, sys |
| 15 | 19 | |
| @@ -212,7 +216,13 @@ if __name__ == "__main__": | ||
| 212 | 216 | pl = plan(src, int(opt("--small", 200)), int(opt("--cap", 600)), skip) |
| 213 | 217 | json.dump({"imports": "in place", "folds": pl}, open(a[2], "w"), indent=0) |
| 214 | 218 | n = sum(len(p) - 1 for p in pl.values()) |
| 215 | - print(f"folds: {n} modules into {len(pl)} files in {len({fam(h) for h in pl})} families; largest file after: {max((sum(src[p].count(chr(10)) for p in ps), h) for h, ps in pl.items()) if pl else None}") | |
| 219 | + if pl: | |
| 220 | + h, ps = max(pl.items(), key=lambda hp: sum(src[p].count("\n") for p in hp[1])) | |
| 221 | + text = sum(src[p].count("\n") for p in ps) | |
| 222 | + stands = folded(src, h, ps, True).count("\n") | |
| 223 | + print(f"folds: {n} modules into {len(pl)} files in {len({fam(h) for h in pl})} families; largest file after: {h} takes in {text} lines of text (the cap counts these) and stands at {stands}") | |
| 224 | + else: | |
| 225 | + print("folds: 0 modules") | |
| 216 | 226 | elif a[0] == "check": |
| 217 | 227 | pl, inplace = load(a[2]); sys.exit(check(a[1], pl, a[3] if len(a) > 3 else "origin/main", inplace)) |
| 218 | 228 | elif a[0] == "apply": |
+25 −0 routes/s5-euler-drift-1/README.md added View file
| @@ -0,0 +1,25 @@ | ||
| 1 | +--- | |
| 2 | +issue: 14 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s5-euler-drift-1 | |
| 6 | + | |
| 7 | +S-5, family `Euler/Drift*`: fold 9 small modules into the two files that import them, the kind of change Lean Pool's | |
| 8 | +cleaned copy shows (fewer modules). `Euler/DriftEnergyConstants.lean`, `Euler/DriftNonlinearEstimate.lean`, | |
| 9 | +`Euler/DriftMetricForcing.lean`, `Euler/DriftEnergyMajorants.lean`, `Euler/DriftCorrectionEnergyBound.lean` and | |
| 10 | +`Euler/DriftCorrectionMildEnergy.lean` go into `Euler/DriftCorrectionBootstrap.lean`; | |
| 11 | +`Euler/DriftPartialCorrectionBootstrap.lean`, `Euler/DriftGlobalGevreyCorrection.lean` and | |
| 12 | +`Euler/DriftViscousCorrectionFamily.lean` go into `Euler/DriftGevreyInviscidEnergyCompactness.lean`. The text moves | |
| 13 | +unchanged, each module under a heading that names it and in a `section` of its own, before the file's own text. The | |
| 14 | +plan is `plan.json` here; `fold.py check` (the series' tool, in `docs/s5-folding/`) makes both files again from | |
| 15 | +main's text and compares byte for byte. | |
| 16 | + | |
| 17 | +## Next | |
| 18 | + | |
| 19 | +The pull request is open. The maintainer's first review asked one thing: that the page say what the 600-line cap | |
| 20 | +counts, since `Euler/DriftCorrectionBootstrap.lean` stands at 622 lines. It is settled on `docs/s5-folding/README.md` | |
| 21 | +(the section "What the two limits count"): the cap counts the text a file takes in — 575 lines here, 100 of the file's | |
| 22 | +own and the 475 of its six modules — and not the 47 lines of headings, `section` and `end`s the folds add, which are | |
| 23 | +what brings the file to 622. `fold.py plan` now prints both numbers for the largest file. The next round is the | |
| 24 | +maintainer's verdict on whether this kind of change is wanted; the rest of the series' folds wait on it, one family | |
| 25 | +per pull request. | |
+20 −0 routes/s5-euler-drift-1/plan.json added View file
| @@ -0,0 +1,20 @@ | ||
| 1 | +{ | |
| 2 | +"imports": "in place", | |
| 3 | +"folds": { | |
| 4 | +"Euler/DriftCorrectionBootstrap.lean": [ | |
| 5 | +"Euler/DriftEnergyConstants.lean", | |
| 6 | +"Euler/DriftNonlinearEstimate.lean", | |
| 7 | +"Euler/DriftMetricForcing.lean", | |
| 8 | +"Euler/DriftEnergyMajorants.lean", | |
| 9 | +"Euler/DriftCorrectionEnergyBound.lean", | |
| 10 | +"Euler/DriftCorrectionMildEnergy.lean", | |
| 11 | +"Euler/DriftCorrectionBootstrap.lean" | |
| 12 | +], | |
| 13 | +"Euler/DriftGevreyInviscidEnergyCompactness.lean": [ | |
| 14 | +"Euler/DriftPartialCorrectionBootstrap.lean", | |
| 15 | +"Euler/DriftGlobalGevreyCorrection.lean", | |
| 16 | +"Euler/DriftViscousCorrectionFamily.lean", | |
| 17 | +"Euler/DriftGevreyInviscidEnergyCompactness.lean" | |
| 18 | +] | |
| 19 | +} | |
| 20 | +} | |