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.MeanBoundaryMixed |
| 2 | import Euler.MeanSolenoidalTranslation |
| 3 | |
| 4 | /-! The actual translation action on homogeneous gradients and localized Newtonian operators. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerMeanBoundary |
| 9 | |
| 10 | open MeasureTheory InnerProductSpace EulerSmoothLimit EulerVectorCalculus |
| 11 | EulerMeanSolenoidal EulerMeanCutoffCurl EulerMeanGradientTest |
| 12 | open scoped ContDiff |
| 13 | |
| 14 | def l2TranslationEquiv (a : Space) : L2 ≃ₗᵢ[ℝ] L2 := |
| 15 | LinearIsometryEquiv.ofSurjective (translation a) (fun u => |
| 16 | ⟨translation (-a) u, by rw [translation_add, add_neg_cancel, translation_zero]⟩) |
| 17 | |
| 18 | def gradientTranslation (a : Space) : GradientTensor ≃ₗᵢ[ℝ] GradientTensor := |
| 19 | LinearIsometryEquiv.piLpCongrRight 2 (fun _ : Fin 3 => l2TranslationEquiv a) |
| 20 | |
| 21 | theorem gradientTranslation_add (a b : Space) (G : GradientTensor) : |
| 22 | gradientTranslation a (gradientTranslation b G) = gradientTranslation (a+b) G := by |
| 23 | ext i : 1 |
| 24 | exact translation_add a b (G i) |
| 25 | |
| 26 | theorem gradientTranslation_zero (G : GradientTensor) : gradientTranslation 0 G = G := by |
| 27 | ext i : 1 |
| 28 | exact translation_zero (G i) |
| 29 | |
| 30 | def translatedTest (a : Space) (f : Test) : Test := |
| 31 | ⟨fun x => (f : Space → Space) (x+a), f.smooth.comp (contDiff_id.add contDiff_const), |
| 32 | f.compact.comp_homeomorph (Homeomorph.addRight a)⟩ |
| 33 | |
| 34 | theorem testGradient_translated (a : Space) (f : Test) : |
| 35 | EulerMeanGradientTest.testGradient (translatedTest a f) = |
| 36 | gradientTranslation a (EulerMeanGradientTest.testGradient f) := by |
| 37 | ext i : 1 |
| 38 | change derivativeColumn (translatedTest a f) i = translation a (derivativeColumn f i) |
| 39 | apply Lp.ext |
| 40 | filter_upwards [derivativeColumn_ae (translatedTest a f) i, |
| 41 | translation_ae a (derivativeColumn f i), |
| 42 | (measurePreserving_add_right (volume : Measure Space) a).quasiMeasurePreserving.ae |
| 43 | (derivativeColumn_ae f i)] with x ht ha hf |
| 44 | rw [ht, ha, hf] |
| 45 | change fderiv ℝ (fun y => (f : Space → Space) (y+a)) x _ = _ |
| 46 | rw [fderiv_comp_add_right] |
| 47 | |
| 48 | theorem gradientTranslation_homogeneous (a : Space) (u : homogeneousSpace) : |
| 49 | gradientTranslation a (u : GradientTensor) ∈ homogeneousSpace := by |
| 50 | refine homogeneousGradient_dense.induction_on u ?_ ?_ |
| 51 | · exact EulerMeanGradientTest.testGradient.range.isClosed_topologicalClosure.preimage |
| 52 | ((gradientTranslation a).continuous.comp continuous_subtype_val) |
| 53 | · intro f |
| 54 | change gradientTranslation a (EulerMeanGradientTest.testGradient f) ∈ homogeneousSpace |
| 55 | rw [← testGradient_translated] |
| 56 | exact EulerMeanGradientTest.testGradient.range.le_topologicalClosure |
| 57 | (LinearMap.mem_range_self _ _) |
| 58 | |
| 59 | def homogeneousTranslation (a : Space) : homogeneousSpace →ₗᵢ[ℝ] homogeneousSpace where |
| 60 | toFun u := ⟨gradientTranslation a (u : GradientTensor), gradientTranslation_homogeneous a u⟩ |
| 61 | map_add' u v := by apply Subtype.ext; exact map_add (gradientTranslation a) _ _ |
| 62 | map_smul' c u := by apply Subtype.ext; exact map_smul (gradientTranslation a) c _ |
| 63 | norm_map' u := (gradientTranslation a).norm_map (u : GradientTensor) |
| 64 | |
| 65 | theorem homogeneousTranslation_add (a b : Space) (u : homogeneousSpace) : |
| 66 | homogeneousTranslation a (homogeneousTranslation b u) = homogeneousTranslation (a+b) u := by |
| 67 | apply Subtype.ext |
| 68 | exact gradientTranslation_add a b (u : GradientTensor) |
| 69 | |
| 70 | theorem homogeneousTranslation_zero (u : homogeneousSpace) : homogeneousTranslation 0 u = u := by |
| 71 | apply Subtype.ext |
| 72 | exact gradientTranslation_zero (u : GradientTensor) |
| 73 | |
| 74 | theorem homogeneousTranslation_test (a : Space) (f : Test) : |
| 75 | homogeneousTranslation a (homogeneousGradient f) = homogeneousGradient (translatedTest a f) := by |
| 76 | apply Subtype.ext |
| 77 | exact (testGradient_translated a f).symm |
| 78 | |
| 79 | theorem homogeneousTranslation_inner_shift (a : Space) (u v : homogeneousSpace) : |
| 80 | ⟪homogeneousTranslation a u, v⟫_ℝ = ⟪u, homogeneousTranslation (-a) v⟫_ℝ := by |
| 81 | calc |
| 82 | _ = ⟪homogeneousTranslation a u, |
| 83 | homogeneousTranslation a (homogeneousTranslation (-a) v)⟫_ℝ := by |
| 84 | rw [homogeneousTranslation_add, add_neg_cancel, homogeneousTranslation_zero] |
| 85 | _ = _ := (homogeneousTranslation a).inner_map_map _ _ |
| 86 | |
| 87 | theorem vectorCurl_translated (a : Space) (f : Space → Space) (x : Space) : |
| 88 | vectorCurl (fun y => f (y+a)) x = vectorCurl f (x+a) := by |
| 89 | ext i |
| 90 | simp only [vectorCurl, curl_apply, partialDerivative] |
| 91 | have h₁ := fderiv_comp_add_right (𝕜 := ℝ) (f := fun y => f y (i+2)) (x := x) a |
| 92 | have h₂ := fderiv_comp_add_right (𝕜 := ℝ) (f := fun y => f y (i+1)) (x := x) a |
| 93 | rw [h₁, h₂] |
| 94 | |
| 95 | theorem testCurl_translated (a : Space) (χ : Cutoff) (f : Test) : |
| 96 | translation a (testCurl χ f) = testCurl (χ.translate a) (translatedTest a f) := by |
| 97 | apply Lp.ext |
| 98 | filter_upwards [translation_ae a (testCurl χ f), |
| 99 | (measurePreserving_add_right (volume : Measure Space) a).quasiMeasurePreserving.ae |
| 100 | (testCurl_ae χ f), testCurl_ae (χ.translate a) (translatedTest a f)] with x ha hχ ht |
| 101 | rw [ha, hχ, ht] |
| 102 | exact (vectorCurl_translated a (fun y => χ.field y • (f : Space → Space) y) x).symm |
| 103 | |
| 104 | /-- Translating the output translates both the cutoff and the homogeneous potential. -/ |
| 105 | theorem cutoffCurl_translation (a : Space) (χ : Cutoff) (u : homogeneousSpace) : |
| 106 | translation a (cutoffCurl χ u) = cutoffCurl (χ.translate a) (homogeneousTranslation a u) := by |
| 107 | refine homogeneousGradient_dense.induction_on u ?_ ?_ |
| 108 | · exact isClosed_eq ((translation a).continuous.comp (cutoffCurl χ).continuous) |
| 109 | ((cutoffCurl (χ.translate a)).continuous.comp (homogeneousTranslation a).continuous) |
| 110 | · intro f |
| 111 | rw [homogeneousTranslation_test, cutoffCurl_on_test, cutoffCurl_on_test] |
| 112 | exact testCurl_translated a χ f |
| 113 | |
| 114 | /-- The actual weak inverse respects spatial translation of its cutoff and forcing. -/ |
| 115 | theorem weakPotential_translation (a : Space) (χ : Cutoff) (z : L2) : |
| 116 | homogeneousTranslation a (weakPotential χ z) = weakPotential (χ.translate a) (translation a z) := by |
| 117 | apply ext_inner_right ℝ |
| 118 | intro v |
| 119 | calc |
| 120 | _ = ⟪weakPotential χ z, homogeneousTranslation (-a) v⟫_ℝ := |
| 121 | homogeneousTranslation_inner_shift a _ _ |
| 122 | _ = ⟪z, cutoffCurl χ (homogeneousTranslation (-a) v)⟫_ℝ := |
| 123 | ContinuousLinearMap.adjoint_inner_left (cutoffCurl χ) _ z |
| 124 | _ = ⟪translation a z, translation a (cutoffCurl χ (homogeneousTranslation (-a) v))⟫_ℝ := |
| 125 | ((translation a).inner_map_map _ _).symm |
| 126 | _ = ⟪translation a z, cutoffCurl (χ.translate a) v⟫_ℝ := by |
| 127 | rw [cutoffCurl_translation, homogeneousTranslation_add, add_neg_cancel, homogeneousTranslation_zero] |
| 128 | _ = _ := (ContinuousLinearMap.adjoint_inner_left (cutoffCurl (χ.translate a)) v _).symm |
| 129 | |
| 130 | theorem mixedBoundaryOperator_translation (a : Space) (χ ψ : Cutoff) (z : L2) : |
| 131 | translation a (mixedBoundaryOperator χ ψ z) = |
| 132 | mixedBoundaryOperator (χ.translate a) (ψ.translate a) (translation a z) := by |
| 133 | change translation a (cutoffCurl χ (weakPotential ψ z)) = |
| 134 | cutoffCurl (χ.translate a) (weakPotential (ψ.translate a) (translation a z)) |
| 135 | rw [cutoffCurl_translation, weakPotential_translation] |
| 136 | |
| 137 | end EulerMeanBoundary |