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.R3LocalizedPressure |
| 2 | import NavierStokes.R3SpaceTimeApproximation |
| 3 | |
| 4 | /-! |
| 5 | # Passing pressure pairings from Gaussian kernels to the physical pressure |
| 6 | |
| 7 | The pressure itself may differ by a function of time. Testing against the |
| 8 | spatial divergence of a compact vector field removes precisely that freedom. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | namespace NavierStokes.R3PressurePairing |
| 13 | |
| 14 | open Set Filter MeasureTheory TemperedDistribution |
| 15 | open R3SpaceTime R3SpaceTimePressure R3WeakPressure |
| 16 | open scoped SchwartzMap LineDeriv Topology ContDiff ENNReal |
| 17 | |
| 18 | def testDivergence (Ψ : Fin 3 → 𝓢(Domain, ℂ)) : 𝓢(Domain, ℂ) := |
| 19 | ∑ i, ∂_{spaceDirection i} (Ψ i) |
| 20 | |
| 21 | /-- Equality of pressure gradients determines the pressure pairing with a |
| 22 | compact divergence test. -/ |
| 23 | theorem divergence_test_eq {Q : 𝓢'(Domain, ℂ)} {p : Domain → ℂ} |
| 24 | (hp : ContDiff ℝ ∞ p) |
| 25 | (hQ : ∀ i, Represents (∂_{spaceDirection i} Q) (directional (spaceDirection i) p)) |
| 26 | (Ψ : Fin 3 → 𝓢(Domain, ℂ)) (hc : ∀ i, HasCompactSupport (Ψ i : Domain → ℂ)) : |
| 27 | Q (testDivergence Ψ) = ∫ z : Domain, testDivergence Ψ z * p z := by |
| 28 | have he (i : Fin 3) : Q (∂_{spaceDirection i} (Ψ i)) = |
| 29 | ∫ z : Domain, (∂_{spaceDirection i} (Ψ i)) z * p z := by |
| 30 | have hh := hQ i (Ψ i) (hc i) |
| 31 | rw [TemperedDistribution.lineDerivOp_apply_apply, map_neg] at hh |
| 32 | rw [integration_by_parts (hp.of_le (by simp)) (Ψ i) (hc i) _] at hh |
| 33 | exact neg_injective hh |
| 34 | have hi (i : Fin 3) : Integrable (fun z : Domain => (∂_{spaceDirection i} (Ψ i)) z * p z) := |
| 35 | ((∂_{spaceDirection i} (Ψ i)).continuous.mul hp.continuous).integrable_of_hasCompactSupport |
| 36 | (compact_lineDeriv (Ψ i) (hc i) _).mul_right |
| 37 | simp only [testDivergence, map_sum, sum_apply, Finset.sum_mul, he] |
| 38 | exact (integral_finsetSum _ (fun i _ => hi i)).symm |
| 39 | |
| 40 | /-- The actual Gaussian stress-pressure pairings converge to the physical |
| 41 | pressure pairing for every compact smooth vector test field. -/ |
| 42 | theorem actual_pressure_pairing_tendsto (G : Fin 3 → Fin 3 → Domain → ℂ) |
| 43 | (hG : ∀ i j, MemLp (G i j) 1) (p : Domain → ℂ) (hp : ContDiff ℝ ∞ p) |
| 44 | (hP : ∀ i, Represents |
| 45 | (∂_{spaceDirection i} (stressPressure (fun i j => (hG i j).toLp (G i j)))) |
| 46 | (directional (spaceDirection i) p)) |
| 47 | (Ψ : Fin 3 → 𝓢(Domain, ℂ)) (hc : ∀ i, HasCompactSupport (Ψ i : Domain → ℂ)) : |
| 48 | Tendsto (fun n => ∑ i : Fin 3, ∑ j : Fin 3, |
| 49 | ∫ z : Domain, testDivergence Ψ z * R3SpatialConvolution.regularized n i j (G i j) z) |
| 50 | atTop (𝓝 (∫ z : Domain, testDivergence Ψ z * p z)) := by |
| 51 | have hh := tendsto_finsetSum (Finset.univ : Finset (Fin 3)) (fun i _ => |
| 52 | tendsto_finsetSum (Finset.univ : Finset (Fin 3)) (fun j _ => |
| 53 | R3SpaceTimeApproximation.actual_regularized_test_tendsto i j (hG i j) (testDivergence Ψ))) |
| 54 | have he : (∑ i : Fin 3, ∑ j : Fin 3, |
| 55 | pressureL1 i j ((hG i j).toLp (G i j)) (testDivergence Ψ)) = |
| 56 | ∫ z : Domain, testDivergence Ψ z * p z := by |
| 57 | rw [← divergence_test_eq hp hP Ψ hc] |
| 58 | simp only [stressPressure, sum_apply] |
| 59 | simpa only [he] using hh |
| 60 | |
| 61 | end NavierStokes.R3PressurePairing |