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

Merge pull request #624 from s2-euler-mean-1
Browse filesperf(Euler/Mean): 17 files cheaper to elaborate (−13.0%, measured)
main s2-instances-1 s2-ns-periodic-1 s2-ns-smooth-1 s5-euler-all-1 s5-euler-base-1 s5-euler-bounded-1 s5-euler-canonical-1 s5-euler-coefficient-1 s5-euler-compact-1 s5-euler-continuous-1 s5-euler-correction-1 s5-euler-cylinder-1 s5-euler-drift-1 s5-euler-duhamel-1 s5-euler-elapsed-1 s5-euler-elapsed-2 s5-euler-euler-1 s5-euler-external-1 s5-euler-field-1 s5-euler-fixed-1 s5-euler-gained-1 s5-euler-gaussian-1 s5-euler-gevrey-1 s5-euler-graph-1 s5-euler-h5-1 s5-euler-h6-1 s5-euler-heat-1 s5-euler-inviscid-1 s5-euler-lifted-1 s5-euler-linear-1 s5-euler-lp-1 s5-euler-mean-1 s5-euler-mixed-1 s5-euler-ordinary-1 s5-euler-packet-1 s5-euler-parameter-1 s5-euler-parent-1 s5-euler-physical-1 s5-euler-projected-1 s5-euler-quadratic-1 s5-euler-regularized-1 s5-euler-small-1 s5-euler-smooth-1 s5-euler-sobolev-1 s5-euler-source-1 s5-euler-stage-1 s5-euler-static-1 s5-euler-terminal-1 s5-euler-time-1 s5-euler-top-1 s5-euler-transverse-1 s5-euler-weighted-1 s5-euler-whole-1 s5-ns-actual-1 s5-ns-axis-1 s5-ns-generic-1 s5-ns-label-1 s5-ns-local-1 s5-ns-mean-1 s5-ns-moment-1 s5-ns-particular-1 s5-ns-periodic-1 s5-ns-periodize-1 s5-ns-positive-1 s5-ns-r3-folder-1 s5-ns-reference-1 s5-ns-sharp-1 s5-ns-smooth-1 s5-ns-torus-1 s5-ns-valid-1 s5-ns-whole-1 s5-ns-within-1
Checks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+1 −1 Euler/MeanBoundaryCoercivity.lean View file
| @@ -31,7 +31,7 @@ theorem mean_boundary_lower_bound (χ : Cutoff) (R : ℝ) (hR : 0 < R) | ||
| 31 | 31 | have hloc := mul_le_mul_of_nonneg_left |
| 32 | 32 | (boundary_localization_form χ R hR z hz hχ r hr hrquarter) hBc |
| 33 | 33 | have hcomp := mul_le_mul_of_nonneg_right hL (boundaryOperator_positive χ z) |
| 34 | - nlinarith only [hcoeff, hloc, hcomp] | |
| 34 | + linarith only [hcoeff, hloc, hcomp] | |
| 35 | 35 | |
| 36 | 36 | /-- The exact cutoff and physical-label core from source (7)–(8). -/ |
| 37 | 37 | theorem scaled_mean_boundary_lower_bound (ℓ : ℝ) (hℓ : 0 < ℓ) |
+1 −1 Euler/MeanBoundaryGevrey.lean View file
| @@ -30,7 +30,7 @@ theorem majorant_next_four_radius (R : ℝ) (hR : 0 ≤ R) (n : ℕ) : | ||
| 30 | 30 | unfold majorant |
| 31 | 31 | simp only [Nat.add_zero, Nat.factorial_succ, Nat.cast_mul, Nat.cast_add, Nat.cast_one, |
| 32 | 32 | pow_succ, mul_pow] |
| 33 | - nlinarith only [H] | |
| 33 | + linarith only [H] | |
| 34 | 34 | |
| 35 | 35 | def cutoffGevreyAmplitude (supportRadius coefficientRadius coefficientSize : ℝ) : ℝ := |
| 36 | 36 | 3 * cutoffCurlConstant * coefficientSize * |
+1 −1 Euler/MeanCutoffCurlBound.lean View file
| @@ -178,6 +178,6 @@ theorem cutoff_curl_bound (ψ : Space → ℝ) (φ : Space → Space) | ||
| 178 | 178 | have hb : 0 ≤ lpNorm (fderiv ℝ ψ) 3 volume := lpNorm_nonneg |
| 179 | 179 | have hc : 0 ≤ (sobolevConstant : ℝ) := NNReal.coe_nonneg _ |
| 180 | 180 | unfold cutoffCurlConstant |
| 181 | - nlinarith [mul_nonneg hc ha] | |
| 181 | + linarith [mul_nonneg hc ha] | |
| 182 | 182 | |
| 183 | 183 | end EulerMeanCutoffCurl |
+2 −2 Euler/MeanFormGevrey.lean View file
| @@ -95,7 +95,7 @@ theorem pullbackMeanOperator_bound | ||
| 95 | 95 | ‖iteratedFDeriv ℝ k (fun p => (meanOperator J R (H p) (C p)).comp (D p)) y‖ ≤ |
| 96 | 96 | (3*baseAmplitude J R CH CC*CD) * majorant r 0 k := by |
| 97 | 97 | intro k y |
| 98 | - simpa only [Nat.zero_add] using clm_comp_bound | |
| 98 | + simpa only using clm_comp_bound | |
| 99 | 99 | (fun p => meanOperator J R (H p) (C p)) D hB hD r (baseAmplitude J R CH CC) CD |
| 100 | 100 | hr hB0 hCD 0 0 hBb hDb k y |
| 101 | 101 | have hDa := (realAdjoint (U := V) (E := W)).contDiff.comp hD |
| @@ -105,7 +105,7 @@ theorem pullbackMeanOperator_bound | ||
| 105 | 105 | r CD (3*baseAmplitude J R CH CC*CD) hr hCD (by positivity) 0 0 hDab hBD n x |
| 106 | 106 | calc |
| 107 | 107 | _ ≤ (3*CD*(3*baseAmplitude J R CH CC*CD)) * majorant r 0 n := by |
| 108 | - simpa only [transportedOperator, Nat.zero_add] using h | |
| 108 | + simpa only [transportedOperator] using h | |
| 109 | 109 | _ = _ := by ring |
| 110 | 110 | |
| 111 | 111 | end EulerMeanFormGevrey |
+1 −1 Euler/MeanFrameCoefficients.lean View file
| @@ -44,7 +44,7 @@ theorem solenoidalFrame_lower | ||
| 44 | 44 | ring |
| 45 | 45 | _ ≤ ‖solenoidalFrame T F t z‖^2 := by |
| 46 | 46 | apply (div_le_iff₀ (sq_pos_of_pos hd)).2 |
| 47 | - nlinarith only [hs] | |
| 47 | + linarith only [hs] | |
| 48 | 48 | |
| 49 | 49 | /-- The actual mean constraint and right inversion place every physical |
| 50 | 50 | primitive in the range of the solenoidal frame, at every time. -/ |
+1 −1 Euler/MeanGradientTestSpace.lean View file
| @@ -108,7 +108,7 @@ theorem lpNorm_fderiv_le_gradient (f : Test) : | ||
| 108 | 108 | calc |
| 109 | 109 | lpNorm (fderiv ℝ (f : Space → Space)) 2 volume ≤ lpNorm (∑ i : Fin 3, a i) 2 volume := |
| 110 | 110 | lpNorm_mono_real hsum (fun x => by |
| 111 | - simpa [a] using (opNorm_le_sum_columns (fderiv ℝ (f : Space → Space) x))) | |
| 111 | + simpa using (opNorm_le_sum_columns (fderiv ℝ (f : Space → Space) x))) | |
| 112 | 112 | _ ≤ ∑ i : Fin 3, lpNorm (a i) 2 volume := lpNorm_sum_le (fun i _ => ha i) (by norm_num) |
| 113 | 113 | _ = ∑ i : Fin 3, ‖derivativeColumn f i‖ := by |
| 114 | 114 | apply Finset.sum_congr rfl |
+2 −2 Euler/MeanHarmonicCutoffEnergy.lean View file
| @@ -77,8 +77,8 @@ theorem caccioppoli_weighted_bound (η ρ h : Space → ℝ) (C : ℝ) | ||
| 77 | 77 | apply integral_mono (integrable_square_gradient_cutoff η h hcη hη hh.continuous) |
| 78 | 78 | (hi.const_mul (C ^ 2)) |
| 79 | 79 | intro x |
| 80 | - nlinarith [mul_le_mul_of_nonneg_left (hbound x) (sq_nonneg (h x))] | |
| 80 | + linarith [mul_le_mul_of_nonneg_left (hbound x) (sq_nonneg (h x))] | |
| 81 | 81 | have hc := caccioppoli_bound η h hcη hη hh hharmonic |
| 82 | - nlinarith | |
| 82 | + linarith | |
| 83 | 83 | |
| 84 | 84 | end EulerMeanHarmonic |
+4 −4 Euler/MeanHarmonicH2.lean View file
| @@ -32,23 +32,23 @@ theorem localized_second_pointwise (h : Space → ℝ) (hh : ContDiff ℝ ∞ h) | ||
| 32 | 32 | (fun _ hx => middle_one_on_inner_support hx) x |
| 33 | 33 | have ha : (h x * partialDerivative (partialDerivative innerCutoff i) i x) ^ 2 ≤ |
| 34 | 34 | innerSecondBound ^ 2 * h x ^ 2 := by |
| 35 | - nlinarith [mul_le_mul_of_nonneg_left hη₂ (sq_nonneg (h x))] | |
| 35 | + linarith [mul_le_mul_of_nonneg_left hη₂ (sq_nonneg (h x))] | |
| 36 | 36 | have hb : (2 * partialDerivative innerCutoff i x * partialDerivative h i x) ^ 2 ≤ |
| 37 | 37 | 4 * innerDerivativeBound ^ 2 * (outerCutoff x ^ 2 * ‖gradient h x‖ ^ 2) := by |
| 38 | 38 | have H := mul_le_mul hη₁ (partialDerivative_sq_le_gradient_sq h i x) |
| 39 | 39 | (sq_nonneg (partialDerivative h i x)) (by positivity) |
| 40 | - nlinarith | |
| 40 | + linarith | |
| 41 | 41 | have hc : (innerCutoff x * partialDerivative (partialDerivative h i) i x) ^ 2 ≤ |
| 42 | 42 | middleCutoff x ^ 2 * ‖gradient (partialDerivative h i) x‖ ^ 2 := by |
| 43 | 43 | have H := mul_le_mul hη₀ (partialDerivative_sq_le_gradient_sq (partialDerivative h i) i x) |
| 44 | 44 | (sq_nonneg _) (sq_nonneg _) |
| 45 | - nlinarith | |
| 45 | + linarith | |
| 46 | 46 | rw [secondPartial_mul innerCutoff h inner_smooth hh i x] |
| 47 | 47 | have H := sq_add_three_le |
| 48 | 48 | (h x * partialDerivative (partialDerivative innerCutoff i) i x) |
| 49 | 49 | (2 * partialDerivative innerCutoff i x * partialDerivative h i x) |
| 50 | 50 | (innerCutoff x * partialDerivative (partialDerivative h i) i x) |
| 51 | - nlinarith | |
| 51 | + linarith | |
| 52 | 52 | |
| 53 | 53 | def interiorSecondEnergyConstant : ℝ := |
| 54 | 54 | 3 * (innerSecondBound ^ 2 + 16 * innerDerivativeBound ^ 2 * outerDerivativeBound ^ 2 + |
+2 −3 Euler/MeanHarmonicScaling.lean View file
| @@ -20,8 +20,7 @@ theorem laplacian_comp_const_smul (f : Space → ℝ) (hf : ContDiff ℝ ∞ f) | ||
| 20 | 20 | def halfScale (f : Space → ℝ) : Space → ℝ := fun x => f ((1/2 : ℝ) • x) |
| 21 | 21 | |
| 22 | 22 | theorem halfScale_smooth (f : Space → ℝ) (hf : ContDiff ℝ ∞ f) : |
| 23 | - ContDiff ℝ ∞ (halfScale f) := by | |
| 24 | - exact hf.comp (contDiff_id.const_smul (1/2 : ℝ)) | |
| 23 | + ContDiff ℝ ∞ (halfScale f) := hf.comp (contDiff_id.const_smul (1/2 : ℝ)) | |
| 25 | 24 | |
| 26 | 25 | theorem halfScale_memLp (f : Space → ℝ) (hf : ContDiff ℝ ∞ f) |
| 27 | 26 | (hLp : MemLp f 2 volume) : MemLp (halfScale f) 2 volume := by |
| @@ -73,6 +72,6 @@ theorem harmonic_pointwise_quarterBall_sq (f : Space → ℝ) (hf : ContDiff ℝ | ||
| 73 | 72 | have H2 := pow_le_pow_left₀ (abs_nonneg (f x)) H 2 |
| 74 | 73 | rw [sq_abs, mul_pow, halfScale_energy f hf hLp] at H2 |
| 75 | 74 | unfold harmonicQuarterBallConstant |
| 76 | - nlinarith | |
| 75 | + linarith | |
| 77 | 76 | |
| 78 | 77 | end EulerMeanHarmonic |
+1 −1 Euler/MeanLocalizedQuadraticBound.lean View file
| @@ -34,7 +34,7 @@ theorem localized_coefficient_lower (M : Space → Space →L[ℝ] Space) | ||
| 34 | 34 | by_cases hxs : x ∈ s |
| 35 | 35 | · rw [Set.indicator_of_mem hxs] |
| 36 | 36 | have H := hcore x hxs (z x) |
| 37 | - nlinarith only [H, mul_nonneg hBe (sq_nonneg ‖z x‖)] | |
| 37 | + linarith only [H, mul_nonneg hBe (sq_nonneg ‖z x‖)] | |
| 38 | 38 | · rw [Set.indicator_of_notMem hxs, mul_zero, sub_zero] |
| 39 | 39 | exact hext x hxs (z x) |
| 40 | 40 | |
+2 −2 Euler/MeanPacketPathEnvelope.lean View file
| @@ -39,10 +39,10 @@ theorem path_envelope_bounds (E : SobolevData D ι q R) | ||
| 39 | 39 | (mul_le_mul_of_nonneg_left (hb n a) (Real.sqrt_nonneg D.T)) |
| 40 | 40 | have hm := mul_nonneg hA (majorant_nonneg R E.radius_nonneg d n) |
| 41 | 41 | have hc := mul_le_mul_of_nonneg_right hCfT hm |
| 42 | - exact h.trans (by nlinarith) | |
| 42 | + exact h.trans (by linarith) | |
| 43 | 43 | · intro n a |
| 44 | 44 | have hm := mul_nonneg hA (majorant_nonneg R E.radius_nonneg d n) |
| 45 | 45 | have hc := mul_le_mul_of_nonneg_right hCf1 hm |
| 46 | - exact (hb n a).trans (by nlinarith) | |
| 46 | + exact (hb n a).trans (by linarith) | |
| 47 | 47 | |
| 48 | 48 | end EulerMeanPacketProvider.SobolevData |
+2 −2 Euler/MeanPressureSobolev.lean View file
| @@ -71,7 +71,7 @@ theorem pressure_time_block_bounds {ι : Type*} [Fintype ι] | ||
| 71 | 71 | refine (congrArg (fun v : TimeLp T solenoidalSpace => |
| 72 | 72 | block directions q (fun b : Space => timeSolenoidalTranslation T b v) n a) |
| 73 | 73 | (s.acceleration_eq_meanAcceleration c hc hLower)).trans_le ?_ |
| 74 | - simpa only [Nat.add_assoc] using meanAcceleration_translation_block_gevrey directions hd q | |
| 74 | + simpa only using meanAcceleration_translation_block_gevrey directions hd q | |
| 75 | 75 | T hT F F₁ c hc hLower s.velocityLp f hF hF₁ hv hf Rc R CF CF₁ Cf 1 |
| 76 | 76 | hRc hRcR hCF hCF₁ hCf zero_le_one hstrong hFb hF₁b (d+1) hf1 hv1 n a |
| 77 | 77 | have ha := s.acceleration_orbit_contDiff c hc hLower hF hF₁ hv hf |
| @@ -91,7 +91,7 @@ theorem pressure_time_block_bounds {ι : Type*} [Fintype ι] | ||
| 91 | 91 | have hac (n a) : block directions q |
| 92 | 92 | (fun b : Space => coordinatePathTranslation T b (s.classicalAcceleration c hc hLower fC)) n a ≤ |
| 93 | 93 | majorant R (d+3) n := by |
| 94 | - simpa only [Nat.add_assoc, meanAccelerationPath, classicalAcceleration] using meanAccelerationPath_translation_block_gevrey | |
| 94 | + simpa only [meanAccelerationPath, classicalAcceleration] using meanAccelerationPath_translation_block_gevrey | |
| 95 | 95 | T F F₁ c hc hLower s.coordinateVelocityPath fC directions hd q hF hF₁ hvc hfC |
| 96 | 96 | Rc R CF CF₁ Cf (coordinateTraceCost T) hRc hRcR hCF hCF₁ hCf htrace |
| 97 | 97 | hstrongC hFb hF₁b (d+2) hfc2 hvcb n a |
+2 −2 Euler/MeanScalarMollification.lean View file
| @@ -42,13 +42,13 @@ theorem scalarMollification_sq_le (φ : ContDiffBump (0 : Space)) | ||
| 42 | 42 | m^2 * φ.normed volume y ≤ φ.normed volume y * f (x-y)^2 |
| 43 | 43 | have h := mul_nonneg (φ.nonneg_normed (μ := (volume : Measure Space)) y) |
| 44 | 44 | (sq_nonneg (f (x-y)-m)) |
| 45 | - nlinarith | |
| 45 | + linarith | |
| 46 | 46 | rw [integral_sub (hi.const_mul (2*m)) (hi0.const_mul (m^2)), |
| 47 | 47 | integral_const_mul, integral_const_mul, φ.integral_normed] at H |
| 48 | 48 | have hm : (∫ y, φ.normed volume y * f (x-y)) = m := rfl |
| 49 | 49 | rw [hm] at H |
| 50 | 50 | change m^2 ≤ ∫ y, φ.normed volume y * f (x-y)^2 |
| 51 | - nlinarith | |
| 51 | + linarith | |
| 52 | 52 | |
| 53 | 53 | theorem scalarMollification_sq_integrable (φ : ContDiffBump (0 : Space)) |
| 54 | 54 | (f : Space → ℝ) (hf : MemLp f 2 volume) : |
+1 −1 Euler/MeanScalarProductDerivatives.lean View file
| @@ -49,6 +49,6 @@ theorem secondPartial_mul (f g : Space → ℝ) (hf : ContDiff ℝ ∞ f) | ||
| 49 | 49 | ring |
| 50 | 50 | |
| 51 | 51 | theorem sq_add_three_le (a b c : ℝ) : (a + b + c) ^ 2 ≤ 3 * (a ^ 2 + b ^ 2 + c ^ 2) := by |
| 52 | - nlinarith [sq_nonneg (a - b), sq_nonneg (a - c), sq_nonneg (b - c)] | |
| 52 | + linarith [sq_nonneg (a - b), sq_nonneg (a - c), sq_nonneg (b - c)] | |
| 53 | 53 | |
| 54 | 54 | end EulerMeanHarmonic |
+1 −1 Euler/MeanScaledBoundaryGevrey.lean View file
| @@ -43,7 +43,7 @@ theorem scaledCutoff_scaledRadiusGevrey (ℓ : ℝ) (hℓ : 0 < ℓ) (n : ℕ) ( | ||
| 43 | 43 | (pow_nonneg hℓ.le n) |
| 44 | 44 | apply H.trans_eq |
| 45 | 45 | unfold scaledCutoffGevreySize majorant |
| 46 | - simp only [Nat.add_zero, mul_pow] | |
| 46 | + simp only [Nat.add_zero] | |
| 47 | 47 | ring |
| 48 | 48 | |
| 49 | 49 | theorem scaledCutoff_support_ball (ℓ : ℝ) (hℓ : 0 < ℓ) : |
+2 −2 Euler/MeanStrongSobolev.lean View file
| @@ -76,7 +76,7 @@ theorem strong_time_block_bounds {ι : Type*} [Fintype ι] | ||
| 76 | 76 | refine (congrArg (fun v : TimeLp T solenoidalSpace => |
| 77 | 77 | block directions q (fun b : Space => timeSolenoidalTranslation T b v) n a) |
| 78 | 78 | (s.acceleration_eq_meanAcceleration c hc hLower)).trans_le ?_ |
| 79 | - simpa only [Nat.add_assoc] using meanAcceleration_translation_block_gevrey directions hd q | |
| 79 | + simpa only using meanAcceleration_translation_block_gevrey directions hd q | |
| 80 | 80 | T hT F F₁ c hc hLower s.velocityLp f hF hF₁ hv hf Rc R CF CF₁ Cf 1 |
| 81 | 81 | hRc hRcR hCF hCF₁ hCf zero_le_one hstrong hFb hF₁b (d+1) hf1 hv1 n a |
| 82 | 82 | have ha := s.acceleration_orbit_contDiff c hc hLower hF hF₁ hv hf |
| @@ -96,7 +96,7 @@ theorem strong_time_block_bounds {ι : Type*} [Fintype ι] | ||
| 96 | 96 | have hac (n a) : block directions q |
| 97 | 97 | (fun b : Space => coordinatePathTranslation T b (s.classicalAcceleration c hc hLower fC)) n a ≤ |
| 98 | 98 | majorant R (d+3) n := by |
| 99 | - simpa only [Nat.add_assoc, meanAccelerationPath, classicalAcceleration] using meanAccelerationPath_translation_block_gevrey | |
| 99 | + simpa only [meanAccelerationPath, classicalAcceleration] using meanAccelerationPath_translation_block_gevrey | |
| 100 | 100 | T F F₁ c hc hLower s.coordinateVelocityPath fC directions hd q hF hF₁ hvc hfC |
| 101 | 101 | Rc R CF CF₁ Cf (coordinateTraceCost T) hRc hRcR hCF hCF₁ hCf htrace |
| 102 | 102 | hstrongC hFb hF₁b (d+2) hfc2 hvcb n a |
+1 −1 Euler/MeanVariationalOperator.lean View file
| @@ -50,7 +50,7 @@ theorem meanOperator_coercive (u : V) : | ||
| 50 | 50 | have hj := mul_le_mul_of_nonneg_left (hJ u) hK |
| 51 | 51 | have hr := mul_le_mul_of_nonneg_left (hR u) hB |
| 52 | 52 | have hs := mul_le_mul_of_nonneg_right hsmall (sq_nonneg ‖u‖) |
| 53 | - nlinarith only [hH (J u), hC u, hj, hr, hs] | |
| 53 | + linarith only [hH (J u), hC u, hj, hr, hs] | |
| 54 | 54 | |
| 55 | 55 | /-- The forcing-to-derivative map constructed from the coercive mean form. -/ |
| 56 | 56 | def meanSolver : W →L[ℝ] V := |
+17 −0 routes/s2-euler-mean-1/README.md added View file
| @@ -0,0 +1,17 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-euler-mean-1 | |
| 6 | + | |
| 7 | +Issue #11 (S-2), unit "Euler/Mean*": make 17 files of the `Euler/Mean*` family | |
| 8 | +cheaper to elaborate, with proof-only edits. `nlinarith` becomes `linarith`; a | |
| 9 | +`simp` argument list loses entries that do not change the goal; one `by exact` | |
| 10 | +becomes a term proof. No statement, import or docstring changes, and no | |
| 11 | +`maxHeartbeats`. The per-file instruction counts before and after, and how they | |
| 12 | +were taken, are in the pull request. | |
| 13 | + | |
| 14 | +## Next | |
| 15 | + | |
| 16 | +The pull request is open; the `build` check and the maintainer agent's review | |
| 17 | +decide it. | |