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 NavierStokes.R3.H3PressureDistribution |
| 2 | import NavierStokes.R3.H3DivCurlFourier |
| 3 | |
| 4 | /-! # Pressure cancellation for ordinary first-order Sobolev fields |
| 5 | |
| 6 | The pressure is an arbitrary C¹ scalar function. Only its gradient must be |
| 7 | square integrable; no decay or growth condition is imposed on the pressure. |
| 8 | -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | open Set Filter MeasureTheory LineDeriv |
| 13 | open scoped ContDiff Topology BigOperators LineDeriv |
| 14 | |
| 15 | namespace NavierStokesR3.H3PressureOrthogonality |
| 16 | |
| 17 | open NavierStokes.ProblemStatement |
| 18 | open NavierStokes.PeriodicIntegration (spatialPartial) |
| 19 | open H3Comparison H3PressureDistribution |
| 20 | |
| 21 | def complexComponent (i : Fin 3) : Space →L[ℝ] ℂ := |
| 22 | Complex.ofRealCLM.comp (EuclideanSpace.proj i) |
| 23 | |
| 24 | @[simp] theorem complexComponent_apply (i : Fin 3) (x : Space) : |
| 25 | complexComponent i x = (x i : ℂ) := rfl |
| 26 | |
| 27 | theorem spatialPartial_ofReal {p : Space → ℝ} (hp : ContDiff ℝ 1 p) (i : Fin 3) : |
| 28 | spatialPartial i (fun x => (p x : ℂ)) = fun x => ((spatialPartial i p x : ℝ) : ℂ) := by |
| 29 | funext x |
| 30 | have hd := (Complex.ofRealCLM.hasFDerivAt.comp x |
| 31 | (hp.differentiable (by norm_num) x).hasFDerivAt).fderiv |
| 32 | exact congrArg (fun M => M (coordinateVector i)) hd |
| 33 | |
| 34 | theorem sum_distribution_eq_zero (f : Fin 3 → Space → ℂ) |
| 35 | (hf : ∀ i, MemLp (f i) 2 volume) |
| 36 | (hzero : ∀ᵐ x : Space ∂volume, ∑ i : Fin 3, f i x = 0) : |
| 37 | (∑ i : Fin 3, distribution ((hf i).toLp (f i))) = 0 := by |
| 38 | ext ψ |
| 39 | change (∑ i : Fin 3, distribution ((hf i).toLp (f i)) ψ) = 0 |
| 40 | simp only [distribution, Lp.toTemperedDistribution_apply, smul_eq_mul] |
| 41 | have hi (i : Fin 3) : Integrable (fun x : Space => ψ x * (hf i).toLp (f i) x) := |
| 42 | (ψ.memLp (p := 2) (μ := volume)).integrable_mul (Lp.memLp ((hf i).toLp (f i))) |
| 43 | rw [← integral_finsetSum _ (fun i _ => hi i)] |
| 44 | apply integral_eq_zero_of_ae |
| 45 | have hrep : ∀ᵐ x : Space ∂volume, ∀ i : Fin 3, (hf i).toLp (f i) x = f i x := by |
| 46 | rw [ae_all_iff] |
| 47 | exact fun i => (hf i).coeFn_toLp |
| 48 | filter_upwards [hzero, hrep] with x hx hr |
| 49 | simp only [hr, ← Finset.mul_sum, hx, mul_zero, Pi.zero_apply] |
| 50 | |
| 51 | theorem component_divergence_eq_zero {w : Space → Space} {dw : Fin 3 → Space → Space} |
| 52 | (hw : H1Approximation w dw) |
| 53 | (hdiv : ∀ᵐ x : Space ∂volume, ∑ i : Fin 3, dw i x i = 0) : |
| 54 | (∑ i : Fin 3, LineDeriv.lineDerivOp (coordinateVector i) (distribution |
| 55 | ((hw.map (complexComponent i)).memLp.toLp (complexComponent i ∘ w)))) = 0 := by |
| 56 | have hd (i : Fin 3) := |
| 57 | H3PressureDistribution.H1Approximation.derivative_distribution |
| 58 | (hw.map (complexComponent i)) i |
| 59 | simp_rw [hd] |
| 60 | apply sum_distribution_eq_zero |
| 61 | filter_upwards [hdiv] with x hx |
| 62 | simpa only [Function.comp_apply, complexComponent_apply, ← Complex.ofReal_sum, |
| 63 | Complex.ofReal_eq_zero] using hx |
| 64 | |
| 65 | theorem integral_representatives (f g : Fin 3 → Space → ℂ) |
| 66 | (hf : ∀ i, MemLp (f i) 2 volume) (hg : ∀ i, MemLp (g i) 2 volume) : |
| 67 | (∑ i : Fin 3, inner ℂ ((hf i).toLp (f i)) ((hg i).toLp (g i))) = |
| 68 | ∫ x : Space, ∑ i : Fin 3, star (f i x) * g i x := by |
| 69 | rw [H3DivCurlFourier.sum_inner_eq_integral] |
| 70 | apply integral_congr_ae |
| 71 | have hrep : ∀ᵐ x : Space ∂volume, ∀ i : Fin 3, |
| 72 | (hf i).toLp (f i) x = f i x ∧ (hg i).toLp (g i) x = g i x := by |
| 73 | rw [ae_all_iff] |
| 74 | exact fun i => (hf i).coeFn_toLp.and (hg i).coeFn_toLp |
| 75 | filter_upwards [hrep] with x hx |
| 76 | apply Finset.sum_congr rfl |
| 77 | intro i _ |
| 78 | rw [(hx i).1, (hx i).2] |
| 79 | |
| 80 | /-- A divergence-free ordinary H¹ field is orthogonal to an arbitrary C¹ |
| 81 | pressure gradient in L². In particular the pressure need not belong to L². -/ |
| 82 | theorem pressure_pairing_zero {w : Space → Space} {dw : Fin 3 → Space → Space} |
| 83 | (hw : H1Approximation w dw) |
| 84 | (hdiv : ∀ᵐ x : Space ∂volume, ∑ i : Fin 3, dw i x i = 0) |
| 85 | {p : Space → ℝ} (hp : ContDiff ℝ 1 p) |
| 86 | (hg : ∀ i : Fin 3, MemLp (spatialPartial i p) 2 volume) : |
| 87 | (∫ x : Space, ∑ i : Fin 3, w x i * spatialPartial i p x) = 0 := by |
| 88 | let pC : Space → ℂ := fun x => (p x : ℂ) |
| 89 | have hpC : ContDiff ℝ 1 pC := Complex.ofRealCLM.contDiff.comp hp |
| 90 | have hgC : ∀ i : Fin 3, MemLp (spatialPartial i pC) 2 volume := by |
| 91 | intro i |
| 92 | rw [show pC = (fun x => (p x : ℂ)) from rfl, spatialPartial_ofReal hp i] |
| 93 | exact Complex.ofRealCLM.comp_memLp' (hg i) |
| 94 | let W : Fin 3 → H3DivCurlFourier.ComplexL2 := fun i => |
| 95 | (hw.map (complexComponent i)).memLp.toLp (complexComponent i ∘ w) |
| 96 | let G : Fin 3 → H3DivCurlFourier.ComplexL2 := fun i => |
| 97 | (hgC i).toLp (spatialPartial i pC) |
| 98 | have hd : (∑ i : Fin 3, LineDeriv.lineDerivOp (coordinateVector i) |
| 99 | (Lp.toTemperedDistribution (W i))) = 0 := |
| 100 | component_divergence_eq_zero hw hdiv |
| 101 | have hc : ∀ i j : Fin 3, LineDeriv.lineDerivOp (coordinateVector i) |
| 102 | (Lp.toTemperedDistribution (G j)) = |
| 103 | LineDeriv.lineDerivOp (coordinateVector j) (Lp.toTemperedDistribution (G i)) := |
| 104 | gradient_curl_free hpC hgC |
| 105 | have hz := H3DivCurlFourier.inner_eq_zero_of_divergence_eq_zero_curl_eq_zero W G hd hc |
| 106 | have hi := integral_representatives (fun i => complexComponent i ∘ w) |
| 107 | (fun i => spatialPartial i pC) (fun i => (hw.map (complexComponent i)).memLp) hgC |
| 108 | change (∑ i : Fin 3, inner ℂ (W i) (G i)) = _ at hi |
| 109 | rw [hz] at hi |
| 110 | have hs (x : Space) : (∑ i : Fin 3, star ((complexComponent i ∘ w) x) * |
| 111 | spatialPartial i pC x) = ((∑ i : Fin 3, w x i * spatialPartial i p x : ℝ) : ℂ) := by |
| 112 | simp only [Function.comp_apply, complexComponent_apply, pC, |
| 113 | spatialPartial_ofReal hp, Complex.star_def, |
| 114 | Complex.conj_ofReal, Complex.ofReal_sum, Complex.ofReal_mul] |
| 115 | simp_rw [hs] at hi |
| 116 | rw [integral_complex_ofReal] at hi |
| 117 | exact Complex.ofReal_eq_zero.mp hi.symm |
| 118 | |
| 119 | end NavierStokesR3.H3PressureOrthogonality |