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.PressureRecoveryHelpers |
| 2 | import NavierStokes.R3.LocalizedTransport |
| 3 | import NavierStokes.R3.PressureFunctionals |
| 4 | import NavierStokes.R3.RieszLinearityDecay |
| 5 | |
| 6 | /-! |
| 7 | # From scalar pressure-gradient identification to the cutoff pressure flux |
| 8 | |
| 9 | This module is an integration-by-parts bridge. Its input is an explicit |
| 10 | identification of every compact scalar pressure-gradient pairing. It does not |
| 11 | assume a pressure-flux formula or any bound on the pressure at infinity. |
| 12 | -/ |
| 13 | |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | open Set Filter MeasureTheory |
| 18 | open scoped ContDiff BigOperators |
| 19 | |
| 20 | namespace NavierStokesR3.PressureFluxIdentity |
| 21 | |
| 22 | open ProblemStatement Comparison PressureRecovery HarmonicTestFunctionals |
| 23 | open NavierStokes.PeriodicIntegration (spatialPartial) |
| 24 | open NavierStokes.PeriodicUniqueness |
| 25 | |
| 26 | theorem fluxFunction_smooth {χ : Space → ℝ} {w : Space → Space} |
| 27 | (hχ : ContDiff ℝ ∞ χ) (hw : ContDiff ℝ ∞ w) : |
| 28 | ContDiff ℝ ∞ (fun x : Space => fderiv ℝ χ x (w x)) := |
| 29 | (hχ.fderiv_right (m := ∞) (by simp)).clm_apply hw |
| 30 | |
| 31 | theorem fluxFunction_hasCompactSupport {χ : Space → ℝ} |
| 32 | (hcχ : HasCompactSupport χ) (w : Space → Space) : |
| 33 | HasCompactSupport (fun x : Space => fderiv ℝ χ x (w x)) := by |
| 34 | apply (hcχ.fderiv ℝ).mono |
| 35 | intro x hx |
| 36 | change fderiv ℝ χ x ≠ 0 |
| 37 | intro hzero |
| 38 | apply hx |
| 39 | simp only [hzero, _root_.zero_apply] |
| 40 | |
| 41 | theorem integrable_pressure_flux {χ π : Space → ℝ} {w : Space → Space} |
| 42 | (hχ : ContDiff ℝ ∞ χ) (hπ : ContDiff ℝ ∞ π) (hw : ContDiff ℝ ∞ w) |
| 43 | (hcχ : HasCompactSupport χ) : |
| 44 | Integrable (fun x : Space => π x * fderiv ℝ χ x (w x)) := |
| 45 | ConservativeDifference.integrable_mul_test hπ.continuous |
| 46 | (fluxFunction_smooth hχ hw).continuous (fluxFunction_hasCompactSupport hcχ w) |
| 47 | |
| 48 | /-- The scalar compact test associated to one component of the weighted velocity. -/ |
| 49 | def weightedComponent (χ : Space → ℝ) (w : Space → Space) (k : Fin 3) : Space → ℝ := |
| 50 | fun x => χ x * w x k |
| 51 | |
| 52 | theorem weightedComponent_smooth {χ : Space → ℝ} {w : Space → Space} |
| 53 | (hχ : ContDiff ℝ ∞ χ) (hw : ContDiff ℝ ∞ w) (k : Fin 3) : |
| 54 | ContDiff ℝ ∞ (weightedComponent χ w k) := |
| 55 | hχ.mul (component_contDiff hw k) |
| 56 | |
| 57 | theorem weightedComponent_hasCompactSupport {χ : Space → ℝ} |
| 58 | (hcχ : HasCompactSupport χ) (w : Space → Space) (k : Fin 3) : |
| 59 | HasCompactSupport (weightedComponent χ w k) := hcχ.mul_right |
| 60 | |
| 61 | theorem sum_partial_weightedComponent {χ : Space → ℝ} {w : Space → Space} |
| 62 | (hχ : ContDiff ℝ ∞ χ) (hw : ContDiff ℝ ∞ w) |
| 63 | (hdiv : ∀ x : Space, (∑ k : Fin 3, partialD k w x k) = 0) (x : Space) : |
| 64 | (∑ k : Fin 3, partialD k (weightedComponent χ w k) x) = fderiv ℝ χ x (w x) := by |
| 65 | calc |
| 66 | (∑ k : Fin 3, partialD k (weightedComponent χ w k) x) = |
| 67 | ∑ k : Fin 3, spatialPartial k (fun y => χ y • w y) x k := by |
| 68 | apply Finset.sum_congr rfl |
| 69 | intro k _ |
| 70 | change spatialPartial k (fun y => (χ y • w y) k) x = _ |
| 71 | exact ConservativeDifference.partial_component (hχ.smul hw) k k x |
| 72 | _ = fderiv ℝ χ x (w x) := by |
| 73 | simpa only [hdiv x, mul_zero, add_zero] using |
| 74 | LocalizedDifferenceEnergy.divergence_weighted hχ hw x |
| 75 | |
| 76 | /-- The compact flux test is the sum of the differentiated component tests. -/ |
| 77 | theorem sum_partial_realTest_weightedComponent {χ : Space → ℝ} {w : Space → Space} |
| 78 | (hχ : ContDiff ℝ ∞ χ) (hw : ContDiff ℝ ∞ w) (hcχ : HasCompactSupport χ) |
| 79 | (hdiv : ∀ x : Space, (∑ k : Fin 3, partialD k w x k) = 0) : |
| 80 | (∑ k : Fin 3, partialCLM k (realTest (weightedComponent χ w k) |
| 81 | (weightedComponent_smooth hχ hw k) (weightedComponent_hasCompactSupport hcχ w k))) = |
| 82 | realTest (fun x : Space => fderiv ℝ χ x (w x)) |
| 83 | (fluxFunction_smooth hχ hw) (fluxFunction_hasCompactSupport hcχ w) := by |
| 84 | ext x |
| 85 | simp only [sum_apply, partialCLM_realTest, realTest_apply] |
| 86 | calc |
| 87 | (∑ k : Fin 3, ((spatialPartial k (weightedComponent χ w k) x : ℝ) : ℂ)) = |
| 88 | ((∑ k : Fin 3, partialD k (weightedComponent χ w k) x : ℝ) : ℂ) := |
| 89 | (map_sum Complex.ofRealCLM _ _).symm |
| 90 | _ = (fderiv ℝ χ x (w x) : ℂ) := |
| 91 | congrArg Complex.ofReal (sum_partial_weightedComponent hχ hw hdiv x) |
| 92 | |
| 93 | /-- The sum of all canonical pressure pairings is a complex-linear functional. -/ |
| 94 | def canonicalPressureLinear (g : Fin 3 → Fin 3 → Space → ℝ) |
| 95 | (hg : ∀ i j : Fin 3, Integrable (g i j)) : ComplexTest →ₗ[ℂ] ℂ := |
| 96 | ∑ i : Fin 3, ∑ j : Fin 3, PressureFunctionals.pressurePairLinear i j (g i j) (hg i j) |
| 97 | |
| 98 | @[simp] theorem canonicalPressureLinear_apply (g : Fin 3 → Fin 3 → Space → ℝ) |
| 99 | (hg : ∀ i j : Fin 3, Integrable (g i j)) (ψ : ComplexTest) : |
| 100 | canonicalPressureLinear g hg ψ = ∑ i : Fin 3, ∑ j : Fin 3, pressurePair i j (g i j) ψ := by |
| 101 | simp only [canonicalPressureLinear, LinearMap.sum_apply, PressureFunctionals.pressurePairLinear_apply] |
| 102 | |
| 103 | theorem integrable_canonical_flux_terms {χ : Space → ℝ} {w : Space → Space} |
| 104 | (hχ : ContDiff ℝ ∞ χ) (hw : ContDiff ℝ ∞ w) (hcχ : HasCompactSupport χ) |
| 105 | {g : Fin 3 → Fin 3 → Space → ℝ} (hg : ∀ i j : Fin 3, Integrable (g i j)) |
| 106 | (i j : Fin 3) : |
| 107 | Integrable (fun x : Space => (g i j x : ℂ) * rieszTest i j |
| 108 | (realTest (fun y : Space => fderiv ℝ χ y (w y)) |
| 109 | (fluxFunction_smooth hχ hw) (fluxFunction_hasCompactSupport hcχ w)) x) := |
| 110 | PressureFunctionals.integrable_l1_riesz_pair (hg i j) i j _ |
| 111 | |
| 112 | /-- Compact integration by parts turns the given scalar pressure-gradient |
| 113 | identification into the actual cutoff pressure flux. -/ |
| 114 | theorem pressure_flux_eq_of_gradient_identification |
| 115 | {π χ : Space → ℝ} {w : Space → Space} {g : Fin 3 → Fin 3 → Space → ℝ} |
| 116 | (hπ : ContDiff ℝ ∞ π) (hχ : ContDiff ℝ ∞ χ) (hw : ContDiff ℝ ∞ w) |
| 117 | (hcχ : HasCompactSupport χ) (hg : ∀ i j : Fin 3, Integrable (g i j)) |
| 118 | (hdiv : ∀ x : Space, (∑ k : Fin 3, partialD k w x k) = 0) |
| 119 | (hgrad : ∀ (k : Fin 3) (ψ : Space → ℝ) (hψ : ContDiff ℝ ∞ ψ) |
| 120 | (hcψ : HasCompactSupport ψ), |
| 121 | (∫ x : Space, partialD k π x * ψ x) = |
| 122 | -(∑ i : Fin 3, ∑ j : Fin 3, |
| 123 | pressurePair i j (g i j) (partialCLM k (realTest ψ hψ hcψ))).re) : |
| 124 | (∫ x : Space, π x * fderiv ℝ χ x (w x)) = |
| 125 | (∑ i : Fin 3, ∑ j : Fin 3, pressurePair i j (g i j) |
| 126 | (realTest (fun x : Space => fderiv ℝ χ x (w x)) |
| 127 | (fluxFunction_smooth hχ hw) (fluxFunction_hasCompactSupport hcχ w))).re := by |
| 128 | let η : Fin 3 → ComplexTest := fun k => |
| 129 | partialCLM k (realTest (weightedComponent χ w k) |
| 130 | (weightedComponent_smooth hχ hw k) (weightedComponent_hasCompactSupport hcχ w k)) |
| 131 | let Q : ComplexTest →ₗ[ℂ] ℂ := canonicalPressureLinear g hg |
| 132 | have hsum : (∑ k : Fin 3, η k) = |
| 133 | realTest (fun x : Space => fderiv ℝ χ x (w x)) |
| 134 | (fluxFunction_smooth hχ hw) (fluxFunction_hasCompactSupport hcχ w) := |
| 135 | sum_partial_realTest_weightedComponent hχ hw hcχ hdiv |
| 136 | have hint (k : Fin 3) : |
| 137 | Integrable (fun x : Space => π x * partialD k (weightedComponent χ w k) x) := |
| 138 | ConservativeDifference.integrable_mul_test hπ.continuous |
| 139 | (spatial_partial_contDiff (weightedComponent_smooth hχ hw k) k).continuous |
| 140 | (CompactEnergy.compact_partial (weightedComponent_hasCompactSupport hcχ w k) k) |
| 141 | have hscalar (k : Fin 3) : |
| 142 | (∫ x : Space, π x * partialD k (weightedComponent χ w k) x) = (Q (η k)).re := by |
| 143 | have hibp : |
| 144 | (∫ x : Space, partialD k π x * weightedComponent χ w k x) = |
| 145 | -(∫ x : Space, π x * partialD k (weightedComponent χ w k) x) := by |
| 146 | simpa only [partialD, mul_comm] using |
| 147 | CompactEnergy.integral_mul_partial (weightedComponent_smooth hχ hw k) hπ |
| 148 | (weightedComponent_hasCompactSupport hcχ w k) k |
| 149 | have h := neg_injective (hibp.symm.trans (hgrad k (weightedComponent χ w k) |
| 150 | (weightedComponent_smooth hχ hw k) (weightedComponent_hasCompactSupport hcχ w k))) |
| 151 | simpa only [Q, η, canonicalPressureLinear_apply] using h |
| 152 | have hfluxsum : |
| 153 | (∫ x : Space, π x * fderiv ℝ χ x (w x)) = |
| 154 | ∑ k : Fin 3, ∫ x : Space, π x * partialD k (weightedComponent χ w k) x := by |
| 155 | calc |
| 156 | (∫ x : Space, π x * fderiv ℝ χ x (w x)) = |
| 157 | ∫ x : Space, ∑ k : Fin 3, π x * partialD k (weightedComponent χ w k) x := by |
| 158 | apply integral_congr_ae |
| 159 | exact Filter.Eventually.of_forall fun x => by |
| 160 | change π x * fderiv ℝ χ x (w x) = |
| 161 | ∑ k : Fin 3, π x * partialD k (weightedComponent χ w k) x |
| 162 | rw [← sum_partial_weightedComponent hχ hw hdiv x, Finset.mul_sum] |
| 163 | _ = _ := integral_finsetSum _ (fun k _ => hint k) |
| 164 | calc |
| 165 | (∫ x : Space, π x * fderiv ℝ χ x (w x)) = |
| 166 | ∑ k : Fin 3, ∫ x : Space, π x * partialD k (weightedComponent χ w k) x := hfluxsum |
| 167 | _ = ∑ k : Fin 3, (Q (η k)).re := Finset.sum_congr rfl (fun k _ => hscalar k) |
| 168 | _ = (∑ k : Fin 3, Q (η k)).re := |
| 169 | (map_sum Complex.reCLM (fun k => Q (η k)) Finset.univ).symm |
| 170 | _ = (Q (∑ k : Fin 3, η k)).re := |
| 171 | congrArg Complex.re (map_sum Q η Finset.univ).symm |
| 172 | _ = _ := by |
| 173 | rw [hsum] |
| 174 | exact congrArg Complex.re (canonicalPressureLinear_apply g hg _) |
| 175 | |
| 176 | end NavierStokesR3.PressureFluxIdentity |