Navier–Stokes: the Lean blow-up proof, cleaned up together
OpenAI's 2026 Lean proofs of blowup for forced Navier–Stokes and Euler, rerun by others, not refereed, no ruling from Clay; cleaned up together: more readable, faster to build

| 1 | import Euler.ClassicalPressureCurl |
| 2 | |
| 3 | /-! Actual smooth representatives of the closed divergence-free space have pointwise lifted divergence zero. -/ |
| 4 | |
| 5 | noncomputable section |
| 6 | |
| 7 | namespace EulerClassicalDivergence |
| 8 | |
| 9 | open MeasureTheory Set InnerProductSpace EulerLiftedGradientSpace EulerMetricTransport |
| 10 | EulerTransportDerivatives EulerLiftedWeakDerivative EulerLiftedCurl EulerClassicalPressureCurl |
| 11 | open scoped ContDiff Topology |
| 12 | |
| 13 | variable (period : ℝ) [Fact (0 < period)] |
| 14 | |
| 15 | /-- A genuine smooth representative of a weakly lifted-divergence-free L² field has zero pointwise lifted divergence. -/ |
| 16 | theorem divergenceFree_classical_divergence_zero (κ : ℝ) (m : Vector3) |
| 17 | (u : LiftL2 period) (hu : u ∈ divergenceFreeSpace period κ m) |
| 18 | (g : LiftDomain period → Vector3) |
| 19 | (hrep : (u : LiftDomain period → Vector3) =ᵐ[liftMeasure period] g) |
| 20 | (hg : ∀ x, ContDiff ℝ ∞ (localFieldLift period g x)) : |
| 21 | ∀ x, (∑ i : Fin 3, (fieldDerivative period (coordinateDirection κ m i) g x) i) = 0 := by |
| 22 | let φ := fun (i : Fin 3) (y : LiftDomain period) => g y i |
| 23 | let a := coordinateDirection κ m |
| 24 | let d := fun (i : Fin 3) => fieldDerivative period (a i) (φ i) |
| 25 | let q := fun y => ∑ i : Fin 3, d i y |
| 26 | have hφ (i : Fin 3) : ∀ y, ContDiff ℝ ∞ (localFieldLift period (φ i) y) := |
| 27 | fun y => (EuclideanSpace.proj i : Vector3 →L[ℝ] ℝ).contDiff.comp (hg y) |
| 28 | have hd (i : Fin 3) : ∀ y, ContDiff ℝ ∞ (localFieldLift period (d i) y) := |
| 29 | fieldDerivative_smooth period (a i) (φ i) (hφ i) |
| 30 | have hq : ∀ y, ContDiff ℝ ∞ (localFieldLift period q y) := by |
| 31 | intro y |
| 32 | change ContDiff ℝ ∞ (fun z => ∑ i : Fin 3, localFieldLift period (d i) y z) |
| 33 | exact ContDiff.sum (fun i _ => hd i y) |
| 34 | have hzero := smooth_eq_zero_of_compact_test_integrals period q hq (fun ψ hψc hψ => by |
| 35 | have hw := weak_divergence_test_integral period κ m hu ψ ⟨hψc,hψ⟩ |
| 36 | have hw' : (∫ y, ∑ i : Fin 3, φ i y * fieldDerivative period (a i) ψ y ∂liftMeasure period) = 0 := by |
| 37 | rw [← hw] |
| 38 | apply integral_congr_ae |
| 39 | filter_upwards [hrep] with y hy |
| 40 | rw [hy,EuclideanSpace.inner_eq_star_dotProduct] |
| 41 | change (∑ i : Fin 3, g y i * fieldDerivative period (coordinateDirection κ m i) ψ y) = |
| 42 | ∑ i : Fin 3, g y i * liftedGradient period κ m ψ y i |
| 43 | simp_rw [liftedGradient_component] |
| 44 | have hI (i : Fin 3) := scalar_product_integrable period (d i) ψ (hd i) hψ hψc |
| 45 | have hJ (i : Fin 3) := scalar_product_integrable period (φ i) (fieldDerivative period (a i) ψ) |
| 46 | (hφ i) (fieldDerivative_smooth period (a i) ψ hψ) (fieldDerivative_compact period (a i) ψ hψc) |
| 47 | change (∫ y, (∑ i : Fin 3, d i y) * ψ y ∂liftMeasure period) = 0 |
| 48 | simp_rw [Finset.sum_mul] |
| 49 | rw [integral_finsetSum _ (fun i _ => hI i)] |
| 50 | calc |
| 51 | _ = ∑ i : Fin 3, -(∫ y, φ i y * fieldDerivative period (a i) ψ y ∂liftMeasure period) := by |
| 52 | apply Finset.sum_congr rfl |
| 53 | intro i _ |
| 54 | exact scalar_integration_by_parts_test period (a i) (φ i) ψ (hφ i) hψ hψc |
| 55 | _ = -(∫ y, ∑ i : Fin 3, φ i y * fieldDerivative period (a i) ψ y ∂liftMeasure period) := by |
| 56 | rw [integral_finsetSum _ (fun i _ => hJ i),Finset.sum_neg_distrib] |
| 57 | _ = 0 := by rw [hw',neg_zero]) |
| 58 | intro x |
| 59 | calc |
| 60 | _ = q x := by |
| 61 | apply Finset.sum_congr rfl |
| 62 | intro i _ |
| 63 | exact (fieldDerivative_linear period (EuclideanSpace.proj i) g hg (a i) x).symm |
| 64 | _ = 0 := hzero x |
| 65 | |
| 66 | end EulerClassicalDivergence |