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

perf(NavierStokes/R3): 17 files cheaper to elaborate (−8.5%, measured) #597
Merged
+1 −1 NavierStokes/R3/CompactEnergy.lean View file
| @@ -266,7 +266,7 @@ theorem energy_rate_le {u f : VelocityField} {p : PressureField} {t : ℝ} | ||
| 266 | 266 | 2 * ⟪u (t, x), f (t, x)⟫_ℝ ≤ ‖u (t, x)‖ ^ 2 + ‖f (t, x)‖ ^ 2 := by |
| 267 | 267 | have hinner := (le_abs_self ⟪u (t, x), f (t, x)⟫_ℝ).trans |
| 268 | 268 | (abs_real_inner_le_norm (u (t, x)) (f (t, x))) |
| 269 | - nlinarith [sq_nonneg (‖u (t, x)‖ - ‖f (t, x)‖)] | |
| 269 | + linarith [sq_nonneg (‖u (t, x)‖ - ‖f (t, x)‖)] | |
| 270 | 270 | have hforce : 2 * (∫ x, ⟪u (t, x), f (t, x)⟫_ℝ) ≤ l2Sq u t + l2Sq f t := by |
| 271 | 271 | rw [← integral_const_mul] |
| 272 | 272 | unfold l2Sq |
+1 −1 NavierStokes/R3/ComparisonFiniteEnergy.lean View file
| @@ -41,7 +41,7 @@ theorem continuous_slice_of_continuousOn {times : Set ℝ} {u : VelocityField} | ||
| 41 | 41 | theorem norm_sub_sq_le_twice {E : Type*} [SeminormedAddCommGroup E] (a b : E) : |
| 42 | 42 | ‖a - b‖ ^ 2 ≤ 2 * (‖a‖ ^ 2 + ‖b‖ ^ 2) := by |
| 43 | 43 | have h := mul_self_le_mul_self (norm_nonneg (a - b)) (norm_sub_le a b) |
| 44 | - nlinarith [sq_nonneg (‖a‖ - ‖b‖)] | |
| 44 | + linarith [sq_nonneg (‖a‖ - ‖b‖)] | |
| 45 | 45 | |
| 46 | 46 | /-- A difference of square-integrable slices remains square integrable. -/ |
| 47 | 47 | theorem squareIntegrableAtTime_sub {u v : VelocityField} {t : ℝ} |
+4 −4 NavierStokes/R3/ComparisonRateBound.lean View file
| @@ -45,7 +45,7 @@ theorem exists_uniform_flux_absorption {C1 C2 S M δ : ℝ} | ||
| 45 | 45 | have hSMQ : S * M ≤ Q := |
| 46 | 46 | (mul_le_mul_of_nonneg_left (le_max_right 1 M) hS).trans (le_max_right _ _) |
| 47 | 47 | have hQ0 : 0 ≤ Q := (mul_nonneg hS hM).trans hSMQ |
| 48 | - have hQsq1 : 1 ≤ Q ^ 2 := by nlinarith [sq_nonneg (Q - 1)] | |
| 48 | + have hQsq1 : 1 ≤ Q ^ 2 := by linarith [sq_nonneg (Q - 1)] | |
| 49 | 49 | let C : ℝ := (C1 + C2) * Q ^ 2 |
| 50 | 50 | have hC : 0 ≤ C := mul_nonneg (add_nonneg hC1 hC2) (sq_nonneg _) |
| 51 | 51 | have hC1Q : C1 * Q ^ 2 ≤ C := |
| @@ -119,7 +119,7 @@ theorem exists_uniform_flux_absorption {C1 C2 S M δ : ℝ} | ||
| 119 | 119 | C * (x ^ (1 / 2 : ℝ) + 1) * (R⁻¹ * A + R ^ (-2 : ℝ)) + |
| 120 | 120 | C * R ^ (-7 / 4 : ℝ) * x ^ (3 / 4 : ℝ) + |
| 121 | 121 | C * R⁻¹ * x ^ (3 / 2 : ℝ) := by |
| 122 | - nlinarith only [hpressure, hcommutator, htransport] | |
| 122 | + linarith only [hpressure, hcommutator, htransport] | |
| 123 | 123 | exact hsum.trans (hD_bound A hA R hR) |
| 124 | 124 | |
| 125 | 125 | /-- One radius-independent constant turns the full localized energy inequality |
| @@ -139,12 +139,12 @@ theorem exists_uniform_rate_bound {C0 C1 C2 S M : ℝ} | ||
| 139 | 139 | refine ⟨2 * (C0 + D), by positivity, ?_⟩ |
| 140 | 140 | intro R hR A hA B hB hSobolev E E' G henergy |
| 141 | 141 | have hRpos : 0 < R := zero_lt_one.trans_le hR |
| 142 | - have hRsq : R ≤ R ^ 2 := by nlinarith [sq_nonneg (R - 1)] | |
| 142 | + have hRsq : R ≤ R ^ 2 := by linarith [sq_nonneg (R - 1)] | |
| 143 | 143 | have hC0radius : C0 / R ^ 2 ≤ C0 / R := |
| 144 | 144 | div_le_div_of_nonneg_left hC0 hRpos hRsq |
| 145 | 145 | have hbound := hflux R hR A hA B hB hSobolev |
| 146 | 146 | have hdivide : 2 * (C0 + D) / R = 2 * (C0 / R + D / R) := by ring |
| 147 | 147 | rw [hdivide] |
| 148 | - nlinarith only [henergy, hbound, hC0radius, sq_nonneg A] | |
| 148 | + linarith only [henergy, hbound, hC0radius, sq_nonneg A] | |
| 149 | 149 | |
| 150 | 150 | end NavierStokesR3.ComparisonRateBound |
+1 −1 NavierStokes/R3/ComparisonTimeAverages.lean View file
| @@ -325,7 +325,7 @@ theorem l2_complex_mul_integrable_and_norm_integral_le {f : Space → ℝ} {ψ : | ||
| 325 | 325 | have hψ_sq := (memLp_two_iff_integrable_sq_norm hψ.1).1 hψ |
| 326 | 326 | have hpoint (x : Space) : ‖(f x : ℂ) * ψ x‖ ≤ ‖f x‖ ^ 2 + ‖ψ x‖ ^ 2 := by |
| 327 | 327 | rw [norm_mul, Complex.norm_real] |
| 328 | - nlinarith [sq_nonneg (‖f x‖ - ‖ψ x‖), mul_nonneg (norm_nonneg (f x)) (norm_nonneg (ψ x))] | |
| 328 | + linarith [sq_nonneg (‖f x‖ - ‖ψ x‖), mul_nonneg (norm_nonneg (f x)) (norm_nonneg (ψ x))] | |
| 329 | 329 | have hmeas := (Complex.continuous_ofReal.comp_aestronglyMeasurable hf.1).mul hψ.1 |
| 330 | 330 | have hint := (hf_sq.add hψ_sq).mono' hmeas (Filter.Eventually.of_forall hpoint) |
| 331 | 331 | refine ⟨hint, ?_⟩ |
+5 −5 NavierStokes/R3/ComparisonYoung.lean View file
| @@ -62,9 +62,9 @@ theorem exists_shifted_rpow_absorption {C δ p : ℝ} | ||
| 62 | 62 | intro A hA |
| 63 | 63 | have hboundA := hbound (A + 1) (by linarith) |
| 64 | 64 | have hsquare : (A + 1) ^ 2 ≤ 2 * A ^ 2 + 2 := by |
| 65 | - nlinarith [sq_nonneg (A - 1)] | |
| 65 | + linarith [sq_nonneg (A - 1)] | |
| 66 | 66 | have hscaled := mul_le_mul_of_nonneg_left hsquare (half_pos hδ).le |
| 67 | - nlinarith | |
| 67 | + linarith | |
| 68 | 68 | |
| 69 | 69 | /-- Dividing the shifted estimate by a radius at least one preserves the |
| 70 | 70 | arbitrarily small square coefficient and makes the constant decay as `1 / R`. -/ |
| @@ -82,7 +82,7 @@ theorem exists_scaled_shifted_rpow_absorption {C δ p : ℝ} | ||
| 82 | 82 | have hquadratic := mul_le_mul_of_nonneg_left hInv1 |
| 83 | 83 | (mul_nonneg hδ.le (sq_nonneg A)) |
| 84 | 84 | simp only [div_eq_mul_inv] |
| 85 | - nlinarith | |
| 85 | + linarith | |
| 86 | 86 | |
| 87 | 87 | /-- The pressure and transport cutoff remainders are controlled by one shifted |
| 88 | 88 | subquadratic power. The estimate retains the full factor `1 / R`. -/ |
| @@ -112,7 +112,7 @@ theorem cutoff_expression_le {C A R : ℝ} | ||
| 112 | 112 | have hone := Real.one_le_rpow hB1 (by norm_num : (0 : ℝ) ≤ 1 / 2) |
| 113 | 113 | linarith |
| 114 | 114 | have hlinear : R⁻¹ * A + R ^ (-2 : ℝ) ≤ R⁻¹ * (A + 1) := by |
| 115 | - nlinarith | |
| 115 | + linarith | |
| 116 | 116 | have hlinear0 : 0 ≤ R⁻¹ * A + R ^ (-2 : ℝ) := |
| 117 | 117 | add_nonneg (mul_nonneg hInv hA) (Real.rpow_nonneg hRpos.le _) |
| 118 | 118 | have hprod : (A + 1) ^ (1 / 2 : ℝ) * (A + 1) = |
| @@ -140,7 +140,7 @@ theorem cutoff_expression_le {C A R : ℝ} | ||
| 140 | 140 | (mul_le_mul hR74 hthreeQuarters (Real.rpow_nonneg hx _) hInv) hC |
| 141 | 141 | have hterm3 := mul_le_mul_of_nonneg_left hthreeHalves (mul_nonneg hC hInv) |
| 142 | 142 | simp only [div_eq_mul_inv] |
| 143 | - nlinarith only [hterm1, hterm2, hterm3] | |
| 143 | + linarith only [hterm1, hterm2, hterm3] | |
| 144 | 144 | |
| 145 | 145 | /-- Scalar Young absorption of all cutoff remainders. The same nonnegative |
| 146 | 146 | constant works for every nonnegative gradient norm and every radius at least |
+3 −4 NavierStokes/R3/FourierTestDerivatives.lean View file
| @@ -34,7 +34,7 @@ def laplacianCLM : ComplexTest →L[ℂ] ComplexTest := | ||
| 34 | 34 | laplacianCLM ψ x = |
| 35 | 35 | ∑ i : Fin 3, NavierStokes.PeriodicIntegration.spatialPartial i |
| 36 | 36 | (fun y => NavierStokes.PeriodicIntegration.spatialPartial i (ψ : Space → ℂ) y) x := by |
| 37 | - simp [laplacianCLM, Fin.sum_univ_succ, partialCLM, | |
| 37 | + simp [laplacianCLM, partialCLM, | |
| 38 | 38 | NavierStokes.PeriodicIntegration.spatialPartial, SchwartzMap.lineDerivOp_apply_eq_fderiv] |
| 39 | 39 | rfl |
| 40 | 40 | |
| @@ -43,13 +43,12 @@ theorem fourier_partialCLM_apply (i : Fin 3) (ψ : ComplexTest) (ξ : Space) : | ||
| 43 | 43 | FourierTransform.fourierCLE ℂ ComplexTest (partialCLM i ψ) ξ = |
| 44 | 44 | (2 * (Real.pi : ℂ) * Complex.I * (ξ i : ℂ)) * |
| 45 | 45 | FourierTransform.fourierCLE ℂ ComplexTest ψ ξ := by |
| 46 | - have hd : Integrable (fderiv ℝ (ψ : Space → ℂ)) := by | |
| 47 | - exact (SchwartzMap.fderivCLM ℂ Space ℂ ψ).integrable | |
| 46 | + have hd : Integrable (fderiv ℝ (ψ : Space → ℂ)) := (SchwartzMap.fderivCLM ℂ Space ℂ ψ).integrable | |
| 48 | 47 | change 𝓕 (fun x => fderiv ℝ (ψ : Space → ℂ) x |
| 49 | 48 | (NavierStokes.ProblemStatement.coordinateVector i)) ξ = _ |
| 50 | 49 | rw [← Real.fourier_continuousLinearMap_apply hd, |
| 51 | 50 | Real.fourier_fderiv ψ.integrable ψ.differentiable hd] |
| 52 | - simp [VectorFourier.fourierSMulRight_apply, SchwartzMap.fourier_coe, | |
| 51 | + simp [SchwartzMap.fourier_coe, | |
| 53 | 52 | NavierStokes.ProblemStatement.coordinateVector, |
| 54 | 53 | smul_eq_mul, mul_assoc] |
| 55 | 54 | left |
+1 −1 NavierStokes/R3/GaussianMoments.lean View file
| @@ -77,7 +77,7 @@ theorem integrable_norm_gaussian {a : ℝ} (ha : 0 < a) : | ||
| 77 | 77 | ‖x‖ * Real.exp (-a * ‖x‖ ^ 2) ≤ |
| 78 | 78 | (1 + ‖x‖ ^ 2) * Real.exp (-a * ‖x‖ ^ 2) := by |
| 79 | 79 | apply mul_le_mul_of_nonneg_right _ (Real.exp_nonneg _) |
| 80 | - nlinarith [sq_nonneg (‖x‖ - 1 / 2)] | |
| 80 | + linarith [sq_nonneg (‖x‖ - 1 / 2)] | |
| 81 | 81 | _ = Real.exp (-a * ‖x‖ ^ 2) + ‖x‖ ^ 2 * Real.exp (-a * ‖x‖ ^ 2) := by ring |
| 82 | 82 | |
| 83 | 83 | end NavierStokesR3.Comparison |
+2 −3 NavierStokes/R3/HeatKernelCancellation.lean View file
| @@ -44,7 +44,7 @@ theorem abs_sq_sub_sq_le_one {a b : ℝ} | ||
| 44 | 44 | rw [abs_le] |
| 45 | 45 | have ha2 : a * a ≤ 1 * 1 := mul_le_mul ha.2 ha.2 ha.1 (by norm_num) |
| 46 | 46 | have hb2 : b * b ≤ 1 * 1 := mul_le_mul hb.2 hb.2 hb.1 (by norm_num) |
| 47 | - constructor <;> nlinarith [sq_nonneg a, sq_nonneg b] | |
| 47 | + constructor <;> linarith [sq_nonneg a, sq_nonneg b] | |
| 48 | 48 | |
| 49 | 49 | theorem cutoffSquareDifference_abs_le_one {φ : Space → ℝ} |
| 50 | 50 | (hφ : ∀ x, φ x ∈ Icc (0 : ℝ) 1) (x y : Space) : |
| @@ -157,8 +157,7 @@ theorem cancelledTimeIntegrand_measurable {K : ℝ → Space → ℝ} | ||
| 157 | 157 | theorem cancelledTimeKernel_measurable {K : ℝ → Space → ℝ} |
| 158 | 158 | {φ : Space → ℝ} (hK : Measurable (Function.uncurry K)) |
| 159 | 159 | (hφ : Measurable φ) : |
| 160 | - Measurable (Function.uncurry (cancelledTimeKernel K φ)) := by | |
| 161 | - exact (cancelledTimeIntegrand_measurable hK hφ).stronglyMeasurable.integral_prod_right'.measurable | |
| 160 | + Measurable (Function.uncurry (cancelledTimeKernel K φ)) := (cancelledTimeIntegrand_measurable hK hφ).stronglyMeasurable.integral_prod_right'.measurable | |
| 162 | 161 | |
| 163 | 162 | theorem absoluteCancelledTimeKernel_measurable {K : ℝ → Space → ℝ} |
| 164 | 163 | {φ : Space → ℝ} (hK : Measurable (Function.uncurry K)) |
+1 −1 NavierStokes/R3/LocalizedFluxEstimates.lean View file
| @@ -53,7 +53,7 @@ theorem neg_coupling_le_weightedEnergy {χ : Space → ℝ} {u w : VelocityField | ||
| 53 | 53 | G * (χ x * ‖w (t, x)‖ ^ 2) |
| 54 | 54 | have h := NavierStokes.PeriodicUniqueness.nonlinear_energy_bound |
| 55 | 55 | (spatialDerivative u t x) (w (t, x)) (hG x) |
| 56 | - nlinarith [mul_le_mul_of_nonneg_left h (hχ0 x)] | |
| 56 | + linarith [mul_le_mul_of_nonneg_left h (hχ0 x)] | |
| 57 | 57 | |
| 58 | 58 | /-- Derivative of the energy weight. -/ |
| 59 | 59 | theorem fderiv_cutoff_eight {φ : Space → ℝ} {x : Space} |
+4 −5 NavierStokes/R3/LocalizedTensorBounds.lean View file
| @@ -84,8 +84,7 @@ theorem quadratic_cutoff_bound {φ : Space → ℝ} {w : Space → Space} | ||
| 84 | 84 | calc |
| 85 | 85 | comparisonLpNorm (12 / 5) (fun x => φ x • w x) ^ 2 ≤ |
| 86 | 86 | (comparisonLpNorm 2 w ^ (3 / 4 : ℝ) * |
| 87 | - comparisonLpNorm 6 (fun x => φ x ^ 4 • w x) ^ (1 / 4 : ℝ)) ^ 2 := by | |
| 88 | - exact pow_le_pow_left₀ hA hb 2 | |
| 87 | + comparisonLpNorm 6 (fun x => φ x ^ 4 • w x) ^ (1 / 4 : ℝ)) ^ 2 := pow_le_pow_left₀ hA hb 2 | |
| 89 | 88 | _ = comparisonLpNorm 2 w ^ (3 / 2 : ℝ) * |
| 90 | 89 | comparisonLpNorm 6 (fun x => φ x ^ 4 • w x) ^ (1 / 2 : ℝ) := by |
| 91 | 90 | rw [← Real.rpow_natCast _ 2, |
| @@ -152,7 +151,7 @@ theorem norm_weighted_tensorDiff_le (u v : VelocityField) (t : ℝ) (i j : Fin 3 | ||
| 152 | 151 | mul_le_mul_of_nonneg_left ht (sq_nonneg s) |
| 153 | 152 | _ ≤ 2 * (‖a‖ * ‖w‖) + ‖s • w‖ ^ 2 := by |
| 154 | 153 | rw [norm_smul, Real.norm_eq_abs, abs_of_nonneg hs0] |
| 155 | - nlinarith [mul_nonneg (sub_nonneg.mpr hs2) (mul_nonneg (norm_nonneg a) (norm_nonneg w))] | |
| 154 | + linarith [mul_nonneg (sub_nonneg.mpr hs2) (mul_nonneg (norm_nonneg a) (norm_nonneg w))] | |
| 156 | 155 | |
| 157 | 156 | /-- Compactness supplies finite weighted tensor norms without any growth |
| 158 | 157 | assumption on either velocity. -/ |
| @@ -198,7 +197,7 @@ theorem weighted_tensorDiff_bound {φ : Space → ℝ} {u v : VelocityField} {t | ||
| 198 | 197 | change ‖φ x ^ 2 * tensorDiff u v t i j x‖ ≤ ‖2 * P x + Q x‖ |
| 199 | 198 | have hn : ‖2 * P x + Q x‖ = 2 * P x + Q x := by |
| 200 | 199 | rw [Real.norm_eq_abs, abs_of_nonneg] |
| 201 | - dsimp [P, Q] | |
| 200 | + dsimp [P] | |
| 202 | 201 | positivity |
| 203 | 202 | rw [hn] |
| 204 | 203 | exact norm_weighted_tensorDiff_le u v t i j x (hφ0 x) (hφ1 x) |
| @@ -214,6 +213,6 @@ theorem weighted_tensorDiff_bound {φ : Space → ℝ} {u v : VelocityField} {t | ||
| 214 | 213 | comparisonLpNorm 2 (fun x => (u - v) (t, x)) ^ (3 / 2 : ℝ) * |
| 215 | 214 | comparisonLpNorm 6 (fun x => φ x ^ 4 • (u - v) (t, x)) ^ (1 / 2 : ℝ) + |
| 216 | 215 | 2 * comparisonLpNorm 2 (fun x => (u - v) (t, x)) * comparisonLpNorm 3 (fun x => u (t, x)) |
| 217 | - nlinarith | |
| 216 | + linarith | |
| 218 | 217 | |
| 219 | 218 | end NavierStokesR3.LocalizedTensorBounds |
+2 −3 NavierStokes/R3/LocalizedTransport.lean View file
| @@ -34,13 +34,12 @@ theorem divergence_weighted {χ : Space → ℝ} {v : Space → Space} | ||
| 34 | 34 | (fderiv ℝ (fun y => χ y • v y) x (coordinateVector i)) = _ |
| 35 | 35 | rw [fderiv_fun_smul (hχ.differentiable (by simp) x) |
| 36 | 36 | (hv.differentiable (by simp) x)] |
| 37 | - simp only [_root_.add_apply, _root_.smul_apply, | |
| 38 | - ContinuousLinearMap.smulRight_apply, map_add, map_smul, smul_eq_mul, | |
| 37 | + simp only [_root_.add_apply, ContinuousLinearMap.smulRight_apply, map_add, map_smul, smul_eq_mul, | |
| 39 | 38 | spatialPartial] |
| 40 | 39 | rfl |
| 41 | 40 | simp_rw [hpartial] |
| 42 | 41 | rw [Finset.sum_add_distrib, ← Finset.mul_sum, fderiv_apply_eq_sum] |
| 43 | - simp only [spatialPartial] | |
| 42 | + simp only | |
| 44 | 43 | rw [add_comm] |
| 45 | 44 | congr 1 |
| 46 | 45 | apply Finset.sum_congr rfl |
+1 −1 NavierStokes/R3/ParabolicEnergy.lean View file
| @@ -47,7 +47,7 @@ theorem velocity_speed_unbounded {u : VelocityField} {l : ℝ} | ||
| 47 | 47 | have hts : t ≤ s := by |
| 48 | 48 | have hprod : (t - 1) * (l ^ 2 - 1) ≤ 0 := |
| 49 | 49 | mul_nonpos_of_nonpos_of_nonneg (by linarith [ht.2]) (by linarith) |
| 50 | - have hd : t - 1 ≤ (t - 1) / l ^ 2 := (le_div_iff₀ hq).2 (by nlinarith) | |
| 50 | + have hd : t - 1 ≤ (t - 1) / l ^ 2 := (le_div_iff₀ hq).2 (by linarith) | |
| 51 | 51 | dsimp [s] |
| 52 | 52 | linarith |
| 53 | 53 | have hclock : clock l s = t := by |
+1 −1 NavierStokes/R3/PositiveTimeForce.lean View file
| @@ -29,7 +29,7 @@ theorem timeCutoff_eq_one {t : ℝ} (ht : t ∈ Icc (3 / 8 : ℝ) 1) : | ||
| 29 | 29 | timeCutoff t = 1 := by |
| 30 | 30 | apply NavierStokes.SmoothCutoffs.cutoff_one_of_abs_le |
| 31 | 31 | rw [abs_le] |
| 32 | - constructor <;> nlinarith [ht.1, ht.2] | |
| 32 | + constructor <;> linarith [ht.1, ht.2] | |
| 33 | 33 | |
| 34 | 34 | theorem timeCutoff_eq_zero {t : ℝ} (ht : t ∉ Icc (1 / 16 : ℝ) (21 / 16)) : |
| 35 | 35 | timeCutoff t = 0 := by |
+4 −4 NavierStokes/R3/PressureFlux.lean View file
| @@ -89,7 +89,7 @@ theorem norm_holder_pair_le {f : Space → ℝ} {g : Space → ℂ} | ||
| 89 | 89 | simpa only [ENNReal.coe_one, one_mul] using |
| 90 | 90 | eLpNorm_le_eLpNorm_mul_eLpNorm_of_nnnorm hfc.1 hg.1 |
| 91 | 91 | (fun a b : ℂ => a * b) 1 |
| 92 | - (Eventually.of_forall fun x => by simp [nnnorm_mul]) | |
| 92 | + (Eventually.of_forall fun x => by simp) | |
| 93 | 93 | have ht := ENNReal.toReal_mono (ENNReal.mul_ne_top hfc.eLpNorm_ne_top hg.eLpNorm_ne_top) he |
| 94 | 94 | change comparisonLpNorm 1 (fun x => (f x : ℂ) * g x) ≤ |
| 95 | 95 | (eLpNorm (fun x => (f x : ℂ)) (6 / 5) volume * eLpNorm g 6 volume).toReal at ht |
| @@ -375,13 +375,13 @@ theorem uniform_expression_bound {C₁ C₂ M₀ U₀ G₀ M U G A B R : ℝ} | ||
| 375 | 375 | (M₀ ^ (3 / 2 : ℝ) + 2 * M₀ * U₀) * (B ^ (1 / 2 : ℝ) + 1) := by |
| 376 | 376 | have h := add_le_add (mul_le_mul_of_nonneg_right hMp hB₁) hMU |
| 377 | 377 | have hm0u0 : 0 ≤ 2 * M₀ * U₀ := by positivity |
| 378 | - exact h.trans (by nlinarith only [hM₀p, mul_nonneg hm0u0 hB₁]) | |
| 378 | + exact h.trans (by linarith only [hM₀p, mul_nonneg hm0u0 hB₁]) | |
| 379 | 379 | have hAR : 0 ≤ A / R := div_nonneg hA hR.le |
| 380 | 380 | have hInv : 0 ≤ 1 / R ^ 2 := by positivity |
| 381 | 381 | have hD : A / R + M / R ^ 2 ≤ (M₀ + 1) * (A / R + 1 / R ^ 2) := by |
| 382 | 382 | have hdiv := (div_le_div_iff_of_pos_right (sq_pos_of_pos hR)).2 hMM |
| 383 | 383 | have hdiv' : M / R ^ 2 ≤ M₀ * (1 / R ^ 2) := by simpa only [mul_one_div] using hdiv |
| 384 | - nlinarith only [hdiv', mul_nonneg hM₀ hAR, hInv] | |
| 384 | + linarith only [hdiv', mul_nonneg hM₀ hAR, hInv] | |
| 385 | 385 | have hlocal : |
| 386 | 386 | C₁ * (M ^ (3 / 2 : ℝ) * B ^ (1 / 2 : ℝ) + 2 * M * U) * (A / R + M / R ^ 2) ≤ |
| 387 | 387 | (C₁ * (M₀ ^ (3 / 2 : ℝ) + 2 * M₀ * U₀) * (M₀ + 1)) * |
| @@ -404,7 +404,7 @@ theorem uniform_expression_bound {C₁ C₂ M₀ U₀ G₀ M U G A B R : ℝ} | ||
| 404 | 404 | have hE₁ : 0 ≤ (B ^ (1 / 2 : ℝ) + 1) * (A / R + 1 / R ^ 2) := by positivity |
| 405 | 405 | have hE₂ : 0 ≤ R ^ (-(7 / 4 : ℝ)) * B ^ (3 / 4 : ℝ) := mul_nonneg hRp hB₃ |
| 406 | 406 | unfold uniformCoefficient |
| 407 | - nlinarith only [add_le_add hlocal hcomm, mul_nonneg hK₁ hE₂, mul_nonneg hK₂ hE₁] | |
| 407 | + linarith only [add_le_add hlocal hcomm, mul_nonneg hK₁ hE₂, mul_nonneg hK₂ hE₁] | |
| 408 | 408 | |
| 409 | 409 | theorem rpow_three_fourths_div {R : ℝ} (hR : 0 < R) : |
| 410 | 410 | R ^ (-(3 / 4 : ℝ)) / R = R ^ (-(7 / 4 : ℝ)) := by |
+3 −3 NavierStokes/R3/PressureFluxTest.lean View file
| @@ -64,7 +64,7 @@ theorem norm_r_le {φ : Space → ℝ} {w : Space → Space} {x : Space} | ||
| 64 | 64 | ‖r φ w x‖ ≤ (8 * L) * ‖(φ x ^ 3) • w x‖ := by |
| 65 | 65 | have hp2 : φ x ^ 2 ≤ 1 := pow_le_one₀ hφ0 hφ1 |
| 66 | 66 | have hp : φ x ^ 5 ≤ φ x ^ 3 := by |
| 67 | - nlinarith [mul_le_mul_of_nonneg_left hp2 (pow_nonneg hφ0 3)] | |
| 67 | + linarith [mul_le_mul_of_nonneg_left hp2 (pow_nonneg hφ0 3)] | |
| 68 | 68 | have happly : ‖fderiv ℝ φ x (w x)‖ ≤ L * ‖w x‖ := |
| 69 | 69 | ((fderiv ℝ φ x).le_opNorm (w x)).trans |
| 70 | 70 | (mul_le_mul_of_nonneg_right hL (norm_nonneg _)) |
| @@ -74,7 +74,7 @@ theorem norm_r_le {φ : Space → ℝ} {w : Space → Space} {x : Space} | ||
| 74 | 74 | _ ≤ 8 * φ x ^ 5 * (L * ‖w x‖) := |
| 75 | 75 | mul_le_mul_of_nonneg_left happly (by positivity) |
| 76 | 76 | _ ≤ (8 * L) * (φ x ^ 3 * ‖w x‖) := by |
| 77 | - nlinarith [mul_le_mul_of_nonneg_right hp (mul_nonneg hL0 (norm_nonneg (w x)))] | |
| 77 | + linarith [mul_le_mul_of_nonneg_right hp (mul_nonneg hL0 (norm_nonneg (w x)))] | |
| 78 | 78 | _ = (8 * L) * ‖(φ x ^ 3) • w x‖ := by |
| 79 | 79 | rw [norm_smul, Real.norm_eq_abs, abs_of_nonneg (pow_nonneg hφ0 3)] |
| 80 | 80 | |
| @@ -194,7 +194,7 @@ theorem norm_fderiv_r_le_amplitude {φ : Space → ℝ} {w : Space → Space} | ||
| 194 | 194 | have hp4 : φ x ^ 4 ≤ 1 := pow_le_one₀ hφ0 hφ1 |
| 195 | 195 | have hp5 : φ x ^ 5 ≤ 1 := pow_le_one₀ hφ0 hφ1 |
| 196 | 196 | have hp54 : φ x ^ 5 ≤ φ x ^ 4 := by |
| 197 | - nlinarith [mul_le_mul_of_nonneg_left hφ1 (pow_nonneg hφ0 4)] | |
| 197 | + linarith [mul_le_mul_of_nonneg_left hφ1 (pow_nonneg hφ0 4)] | |
| 198 | 198 | have hgrad := GradientOperator.norm_fderiv_le_three_mul_sqrt_gradientSq w x |
| 199 | 199 | have h1 : φ x ^ 5 * ‖fderiv ℝ φ x‖ * ‖fderiv ℝ w x‖ ≤ |
| 200 | 200 | 3 * L * WeightedSobolev.cutoffGradientAmplitude φ w x := by |
+4 −5 NavierStokes/R3/WeightedInterpolation.lean View file
| @@ -142,8 +142,8 @@ theorem cutoff_interpolation | ||
| 142 | 142 | comparisonLpNorm 6 (fun x => (φ x ^ 4) • w x) ^ ((k : ℝ) / 4) := by |
| 143 | 143 | apply memLp_and_lpNorm_le_rpow_mul hw hweighted ((hφm.pow k).smul hw.1) |
| 144 | 144 | (by norm_num) (by norm_num) hr ha hb |
| 145 | - · simpa using hra | |
| 146 | - · simpa using hab | |
| 145 | + · exact hra | |
| 146 | + · exact hab | |
| 147 | 147 | · exact Filter.Eventually.of_forall fun x => (norm_weight_pow_eq (hφ x) (w x) k).le |
| 148 | 148 | |
| 149 | 149 | /-- `φ w` belongs to `L^(12/5)` with the exact endpoint interpolation bound. -/ |
| @@ -209,12 +209,11 @@ theorem cutoff_transport_bound | ||
| 209 | 209 | ring |
| 210 | 210 | have hint : Integrable (fun x => φ x ^ 6 * ‖w x‖ ^ 3) volume := by |
| 211 | 211 | have hi := hmem.integrable_norm_rpow (by norm_num) (by norm_num) |
| 212 | - exact hi.congr (Filter.Eventually.of_forall fun x => by simpa using hid x) | |
| 212 | + exact hi.congr (Filter.Eventually.of_forall fun x => hid x) | |
| 213 | 213 | refine ⟨hint, ?_⟩ |
| 214 | 214 | calc |
| 215 | 215 | (∫ x : Space, φ x ^ 6 * ‖w x‖ ^ 3) = |
| 216 | - (∫ x : Space, ‖(φ x ^ 2) • w x‖ ^ (3 : ℝ)) := by | |
| 217 | - exact integral_congr_ae (Filter.Eventually.of_forall fun x => (hid x).symm) | |
| 216 | + (∫ x : Space, ‖(φ x ^ 2) • w x‖ ^ (3 : ℝ)) := integral_congr_ae (Filter.Eventually.of_forall fun x => (hid x).symm) | |
| 218 | 217 | _ = comparisonLpNorm 3 (fun x => (φ x ^ 2) • w x) ^ (3 : ℝ) := by |
| 219 | 218 | simpa using integral_norm_rpow_eq_lpNorm_rpow (by norm_num) hmem |
| 220 | 219 | _ ≤ (comparisonLpNorm 2 w ^ (1 / 2 : ℝ) * |
+2 −2 NavierStokes/R3/WeightedSobolev.lean View file
| @@ -153,7 +153,7 @@ theorem norm_fderiv_cutoff_four_le_amplitude {φ : Space → ℝ} {w : Space → | ||
| 153 | 153 | (4 * L) * ‖w x‖ := by |
| 154 | 154 | apply add_le_add |
| 155 | 155 | · exact mul_le_mul_of_nonneg_left hg (by positivity) |
| 156 | - · nlinarith [mul_le_mul_of_nonneg_right hd (norm_nonneg (w x))] | |
| 156 | + · linarith [mul_le_mul_of_nonneg_right hd (norm_nonneg (w x))] | |
| 157 | 157 | _ = _ := by unfold cutoffGradientAmplitude; ring |
| 158 | 158 | |
| 159 | 159 | /-- The derivative of the cutoff velocity has a finite `L²` bound involving |
| @@ -215,7 +215,7 @@ theorem weighted_sobolev {φ : Space → ℝ} {w : Space → Space} | ||
| 215 | 215 | apply hSob.trans |
| 216 | 216 | apply (mul_le_mul_of_nonneg_left hDer hS).trans |
| 217 | 217 | unfold weightedSobolevConstant |
| 218 | - nlinarith [mul_nonneg hS hA, mul_nonneg hL0 hM] | |
| 218 | + linarith [mul_nonneg hS hA, mul_nonneg hL0 hM] | |
| 219 | 219 | |
| 220 | 220 | /-- Time-slice form using precisely the common comparison definitions. -/ |
| 221 | 221 | theorem cutoffL6_le {φ : Space → ℝ} {w : VelocityField} {t : ℝ} |
+21 −0 routes/s2-ns-r3-folder-1/README.md added View file
| @@ -0,0 +1,21 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-r3-folder-1 | |
| 6 | + | |
| 7 | +Makes 17 files of the family `NavierStokes/R3` cheaper to elaborate, 45 lines out and 40 in, all inside proofs: | |
| 8 | +`nlinarith` becomes `linarith`, a `simp` argument list loses the entries that do not change the goal, a | |
| 9 | +`simpa`/`by exact` becomes the term that closes its goal, and a few small tactic rewrites. No statement, import | |
| 10 | +line or docstring changes, and there is no `maxHeartbeats`. | |
| 11 | + | |
| 12 | +The edits are those of Treant's `speedup_trials` stage (TitiSkywalker/NavierStokesAndEuler, the run of 2026-12-03), | |
| 13 | +carried onto main at `d956c7c` and counted there file by file: instructions retired in user space by `lean` on one | |
| 14 | +file alone, before and after, against that commit. Over the 17 files the count falls from 288.70 G to 264.10 G | |
| 15 | +(−8.5%). The table and the method are in the pull request. `git diff --stat` names only these 17 files, and every | |
| 16 | +changed line is in a proof body below the `:=`. | |
| 17 | + | |
| 18 | +## Next | |
| 19 | + | |
| 20 | +Push and open the pull request into `main`; `challenge` and `build` then decide, and the maintainer's review comes | |
| 21 | +after them. The other units of #11 are separate. | |