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.MeanSolenoidalReflection |
| 3 | import Euler.MeanScaledCutoff |
| 4 | |
| 5 | /-! |
| 6 | Reflection covariance of the actual cutoff-curl/Riesz boundary operator. |
| 7 | On homogeneous gradient tensors reflection is componentwise pullback. It |
| 8 | is represented by the reflected vector test `-φ(-x)`, so both curl signs |
| 9 | cancel. No covariance or parity of an inverse operator is assumed. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | namespace EulerMeanBoundary |
| 15 | |
| 16 | open MeasureTheory InnerProductSpace EulerSmoothLimit EulerVectorCalculus |
| 17 | EulerMeanSolenoidal EulerMeanCutoffCurl EulerMeanGradientTest |
| 18 | open scoped ContDiff |
| 19 | |
| 20 | def Cutoff.reflect (χ : Cutoff) : Cutoff := |
| 21 | ⟨fun x => χ.field (-x), χ.smooth.comp contDiff_id.neg, |
| 22 | χ.compact.comp_homeomorph (Homeomorph.neg Space)⟩ |
| 23 | |
| 24 | theorem Cutoff.reflect_reflect (χ : Cutoff) : χ.reflect.reflect = χ := by |
| 25 | apply Cutoff.ext |
| 26 | funext x |
| 27 | exact congrArg χ.field (neg_neg x) |
| 28 | |
| 29 | theorem Cutoff.reflect_eq_of_even (χ : Cutoff) (hχ : ∀ x, χ.field (-x) = χ.field x) : |
| 30 | χ.reflect = χ := Cutoff.ext (funext hχ) |
| 31 | |
| 32 | def l2ReflectionEquiv : L2 ≃ₗᵢ[ℝ] L2 := |
| 33 | LinearIsometryEquiv.ofSurjective reflection (fun u => ⟨reflection u, reflection_involutive u⟩) |
| 34 | |
| 35 | def gradientReflection : GradientTensor ≃ₗᵢ[ℝ] GradientTensor := |
| 36 | LinearIsometryEquiv.piLpCongrRight 2 (fun _ : Fin 3 => l2ReflectionEquiv) |
| 37 | |
| 38 | theorem gradientReflection_apply (G : GradientTensor) (i : Fin 3) : |
| 39 | gradientReflection G i = reflection (G i) := rfl |
| 40 | |
| 41 | theorem gradientReflection_involutive (G : GradientTensor) : |
| 42 | gradientReflection (gradientReflection G) = G := by |
| 43 | ext i : 1 |
| 44 | exact reflection_involutive (G i) |
| 45 | |
| 46 | def reflectedTest (f : Test) : Test := |
| 47 | ⟨fun x => -(f : Space → Space) (-x), (f.smooth.comp contDiff_id.neg).neg, |
| 48 | (f.compact.comp_homeomorph (Homeomorph.neg Space)).neg⟩ |
| 49 | |
| 50 | theorem testGradient_reflected (f : Test) : |
| 51 | EulerMeanGradientTest.testGradient (reflectedTest f) = |
| 52 | gradientReflection (EulerMeanGradientTest.testGradient f) := by |
| 53 | ext i : 1 |
| 54 | change derivativeColumn (reflectedTest f) i = reflection (derivativeColumn f i) |
| 55 | apply Lp.ext |
| 56 | filter_upwards [derivativeColumn_ae (reflectedTest f) i, |
| 57 | reflection_ae (derivativeColumn f i), |
| 58 | measurePreserving_reflection.quasiMeasurePreserving.ae (derivativeColumn_ae f i)] |
| 59 | with x ht hr hf |
| 60 | rw [ht, hr, hf] |
| 61 | change fderiv ℝ (fun y => -(f : Space → Space) (-y)) x _ = _ |
| 62 | rw [fderiv_neg_reflect _ (f.smooth.differentiable (by simp))] |
| 63 | |
| 64 | theorem gradientReflection_homogeneous (u : homogeneousSpace) : |
| 65 | gradientReflection (u : GradientTensor) ∈ homogeneousSpace := by |
| 66 | refine homogeneousGradient_dense.induction_on u ?_ ?_ |
| 67 | · exact EulerMeanGradientTest.testGradient.range.isClosed_topologicalClosure.preimage |
| 68 | (gradientReflection.continuous.comp continuous_subtype_val) |
| 69 | · intro f |
| 70 | change gradientReflection (EulerMeanGradientTest.testGradient f) ∈ homogeneousSpace |
| 71 | rw [← testGradient_reflected] |
| 72 | exact EulerMeanGradientTest.testGradient.range.le_topologicalClosure |
| 73 | (LinearMap.mem_range_self _ _) |
| 74 | |
| 75 | def homogeneousReflection : homogeneousSpace →ₗᵢ[ℝ] homogeneousSpace where |
| 76 | toFun u := ⟨gradientReflection (u : GradientTensor), gradientReflection_homogeneous u⟩ |
| 77 | map_add' u v := by apply Subtype.ext; exact map_add gradientReflection _ _ |
| 78 | map_smul' c u := by apply Subtype.ext; exact map_smul gradientReflection c _ |
| 79 | norm_map' u := gradientReflection.norm_map (u : GradientTensor) |
| 80 | |
| 81 | theorem homogeneousReflection_coe (u : homogeneousSpace) : |
| 82 | (homogeneousReflection u : GradientTensor) = gradientReflection (u : GradientTensor) := rfl |
| 83 | |
| 84 | theorem homogeneousReflection_involutive (u : homogeneousSpace) : |
| 85 | homogeneousReflection (homogeneousReflection u) = u := by |
| 86 | apply Subtype.ext |
| 87 | exact gradientReflection_involutive (u : GradientTensor) |
| 88 | |
| 89 | theorem homogeneousReflection_test (f : Test) : |
| 90 | homogeneousReflection (homogeneousGradient f) = homogeneousGradient (reflectedTest f) := by |
| 91 | apply Subtype.ext |
| 92 | exact (testGradient_reflected f).symm |
| 93 | |
| 94 | theorem homogeneousReflection_inner_shift (u v : homogeneousSpace) : |
| 95 | ⟪homogeneousReflection u, v⟫_ℝ = ⟪u, homogeneousReflection v⟫_ℝ := by |
| 96 | calc |
| 97 | _ = ⟪homogeneousReflection u, homogeneousReflection (homogeneousReflection v)⟫_ℝ := by |
| 98 | rw [homogeneousReflection_involutive] |
| 99 | _ = _ := homogeneousReflection.inner_map_map u (homogeneousReflection v) |
| 100 | |
| 101 | theorem vectorCurl_neg_reflect (f : Space → Space) (hf : Differentiable ℝ f) (x : Space) : |
| 102 | vectorCurl (fun y => -f (-y)) x = vectorCurl f (-x) := by |
| 103 | have hleft : Differentiable ℝ (fun y => -f (-y)) := (hf.comp differentiable_id.neg).neg |
| 104 | rw [vectorCurl_eq_matrix _ x (hleft x), |
| 105 | fderiv_neg_reflect f hf, ← vectorCurl_eq_matrix f (-x) (hf (-x))] |
| 106 | |
| 107 | theorem testCurl_reflected (χ : Cutoff) (f : Test) : |
| 108 | reflection (testCurl χ f) = testCurl χ.reflect (reflectedTest f) := by |
| 109 | apply Lp.ext |
| 110 | filter_upwards [reflection_ae (testCurl χ f), |
| 111 | measurePreserving_reflection.quasiMeasurePreserving.ae (testCurl_ae χ f), |
| 112 | testCurl_ae χ.reflect (reflectedTest f)] with x hr hχ ht |
| 113 | rw [hr, hχ, ht] |
| 114 | have he := vectorCurl_neg_reflect (fun y => χ.field y • (f : Space → Space) y) |
| 115 | ((χ.smooth.smul f.smooth).differentiable (by simp)) x |
| 116 | simpa only [Cutoff.reflect, reflectedTest, smul_neg] using he.symm |
| 117 | |
| 118 | /-- Covariance is proved first on real compact tests, then by density. -/ |
| 119 | theorem cutoffCurl_reflection (χ : Cutoff) (u : homogeneousSpace) : |
| 120 | reflection (cutoffCurl χ u) = cutoffCurl χ.reflect (homogeneousReflection u) := by |
| 121 | refine homogeneousGradient_dense.induction_on u ?_ ?_ |
| 122 | · exact isClosed_eq (reflection.continuous.comp (cutoffCurl χ).continuous) |
| 123 | ((cutoffCurl χ.reflect).continuous.comp homogeneousReflection.continuous) |
| 124 | · intro f |
| 125 | rw [homogeneousReflection_test, cutoffCurl_on_test, cutoffCurl_on_test] |
| 126 | exact testCurl_reflected χ f |
| 127 | |
| 128 | /-- The actual Riesz solution, rather than an assumed inverse, respects reflection. -/ |
| 129 | theorem weakPotential_reflection (χ : Cutoff) (z : L2) : |
| 130 | homogeneousReflection (weakPotential χ z) = weakPotential χ.reflect (reflection z) := by |
| 131 | apply ext_inner_right ℝ |
| 132 | intro v |
| 133 | calc |
| 134 | _ = ⟪weakPotential χ z, homogeneousReflection v⟫_ℝ := |
| 135 | homogeneousReflection_inner_shift _ _ |
| 136 | _ = ⟪z, cutoffCurl χ (homogeneousReflection v)⟫_ℝ := |
| 137 | ContinuousLinearMap.adjoint_inner_left (cutoffCurl χ) _ z |
| 138 | _ = ⟪reflection z, reflection (cutoffCurl χ (homogeneousReflection v))⟫_ℝ := |
| 139 | (reflection.inner_map_map _ _).symm |
| 140 | _ = ⟪reflection z, cutoffCurl χ.reflect v⟫_ℝ := by |
| 141 | rw [cutoffCurl_reflection, homogeneousReflection_involutive] |
| 142 | _ = _ := (ContinuousLinearMap.adjoint_inner_left (cutoffCurl χ.reflect) v _).symm |
| 143 | |
| 144 | theorem mixedBoundaryOperator_reflection (χ ψ : Cutoff) (z : L2) : |
| 145 | reflection (mixedBoundaryOperator χ ψ z) = |
| 146 | mixedBoundaryOperator χ.reflect ψ.reflect (reflection z) := by |
| 147 | change reflection (cutoffCurl χ (weakPotential ψ z)) = |
| 148 | cutoffCurl χ.reflect (weakPotential ψ.reflect (reflection z)) |
| 149 | rw [cutoffCurl_reflection, weakPotential_reflection] |
| 150 | |
| 151 | theorem boundaryOperator_reflection (χ : Cutoff) (z : L2) : |
| 152 | reflection (boundaryOperator χ z) = boundaryOperator χ.reflect (reflection z) := |
| 153 | mixedBoundaryOperator_reflection χ χ z |
| 154 | |
| 155 | theorem boundaryOperator_reflection_of_even (χ : Cutoff) |
| 156 | (hχ : ∀ x, χ.field (-x) = χ.field x) (z : L2) : |
| 157 | reflection (boundaryOperator χ z) = boundaryOperator χ (reflection z) := by |
| 158 | rw [boundaryOperator_reflection, Cutoff.reflect_eq_of_even χ hχ] |
| 159 | |
| 160 | /-- The concrete source boundary operator commutes with ordinary spatial reflection. -/ |
| 161 | theorem scaledBoundaryOperator_reflection (ℓ : ℝ) (hℓ : 0 < ℓ) (z : L2) : |
| 162 | reflection (boundaryOperator (scaledCutoff ℓ hℓ) z) = |
| 163 | boundaryOperator (scaledCutoff ℓ hℓ) (reflection z) := |
| 164 | boundaryOperator_reflection_of_even (scaledCutoff ℓ hℓ) (scaledCutoff_even ℓ hℓ) z |
| 165 | |
| 166 | end EulerMeanBoundary |