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.PacketLiftedCurl |
| 2 | |
| 3 | /-! |
| 4 | The curl Piola identity on the actual periodic cylinder. The Jacobian acts |
| 5 | only on the three label variables. Its derivative cancels in the lifted |
| 6 | curl by symmetry of the genuine second derivative; the angular component |
| 7 | passes through unchanged. This supplies an actual element of the closed |
| 8 | lifted divergence-free L² space from a compact smooth packet potential. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | |
| 14 | namespace EulerPacketPiola |
| 15 | |
| 16 | open MeasureTheory InnerProductSpace EulerSmoothLimit EulerMeanBoundary |
| 17 | EulerLiftedGradientSpace EulerMetricTransport EulerTransportDerivatives |
| 18 | EulerLiftedWeakDerivative EulerTransverseGramInverse |
| 19 | open scoped ContDiff |
| 20 | |
| 21 | private local instance : NormedAddCommGroup (Space →L[ℝ] Space) := inferInstance |
| 22 | private local instance : NormedSpace ℝ (Space →L[ℝ] Space) := inferInstance |
| 23 | |
| 24 | theorem realAdjoint_apply (A : Space →L[ℝ] Space) : |
| 25 | realAdjoint A = A.adjoint := rfl |
| 26 | |
| 27 | def coveringCurl (κ : ℝ) (m : Space) (q : LiftTangent → Space) |
| 28 | (z : LiftTangent) : Space := |
| 29 | curlMatrix ((fderiv ℝ q z).comp (EulerGraphPullback.liftedDirection κ m)) |
| 30 | |
| 31 | def coveringPullbackCovector (Ξ : Space → Space) (q : LiftTangent → Space) |
| 32 | (z : LiftTangent) : Space := |
| 33 | (fderiv ℝ Ξ z.1).adjoint (q z) |
| 34 | |
| 35 | /-- Cancellation of the actual Hessian in all constant lifted directions. -/ |
| 36 | theorem coveringCurl_pullback (κ : ℝ) (m : Space) (Ξ : Space → Space) |
| 37 | (q : LiftTangent → Space) (hΞ : ContDiff ℝ 2 Ξ) (z : LiftTangent) |
| 38 | (hq : DifferentiableAt ℝ q z) : |
| 39 | coveringCurl κ m (coveringPullbackCovector Ξ q) z = |
| 40 | curlMatrix ((fderiv ℝ Ξ z.1).adjoint.comp |
| 41 | ((fderiv ℝ q z).comp (EulerGraphPullback.liftedDirection κ m))) := by |
| 42 | have hD : DifferentiableAt ℝ (fderiv ℝ Ξ) z.1 := |
| 43 | ((hΞ.fderiv_right (m := 1) le_rfl).differentiable one_ne_zero).differentiableAt |
| 44 | have hX : HasFDerivAt (fun w : LiftTangent => fderiv ℝ Ξ w.1) |
| 45 | ((fderiv ℝ (fderiv ℝ Ξ) z.1).comp (ContinuousLinearMap.fst ℝ Space ℝ)) z := |
| 46 | hD.hasFDerivAt.comp z hasFDerivAt_fst |
| 47 | have hA : HasFDerivAt (fun w : LiftTangent => (fderiv ℝ Ξ w.1).adjoint) |
| 48 | ((realAdjoint (U := Space) (E := Space)).comp |
| 49 | ((fderiv ℝ (fderiv ℝ Ξ) z.1).comp (ContinuousLinearMap.fst ℝ Space ℝ))) z := |
| 50 | (realAdjoint (U := Space) (E := Space)).hasFDerivAt.comp z hX |
| 51 | have hp := hA.clm_apply hq.hasFDerivAt |
| 52 | have hzero : curlMatrix |
| 53 | ((((realAdjoint (U := Space) (E := Space)).comp |
| 54 | ((fderiv ℝ (fderiv ℝ Ξ) z.1).comp (ContinuousLinearMap.fst ℝ Space ℝ))).flip (q z)).comp |
| 55 | (EulerGraphPullback.liftedDirection κ m)) = 0 := by |
| 56 | ext i |
| 57 | simp only [curlMatrix, WithLp.ofLp_toLp, ContinuousLinearMap.comp_apply, |
| 58 | ContinuousLinearMap.flip_apply, EulerGraphPullback.liftedDirection_apply, |
| 59 | ContinuousLinearMap.coe_fst', realAdjoint_apply, PiLp.zero_apply] |
| 60 | change |
| 61 | ((fderiv ℝ (fderiv ℝ Ξ) z.1 (κ • EuclideanSpace.single (i + 1) 1)).adjoint (q z)) (i + 2) - |
| 62 | ((fderiv ℝ (fderiv ℝ Ξ) z.1 (κ • EuclideanSpace.single (i + 2) 1)).adjoint (q z)) (i + 1) = 0 |
| 63 | rw [adjoint_apply_coordinate, adjoint_apply_coordinate] |
| 64 | simp only [map_smul, smul_apply, real_inner_smul_left] |
| 65 | have hs := ((hΞ.contDiffAt (x := z.1)).isSymmSndFDerivAt (n := 2) (by simp)).eq |
| 66 | (EuclideanSpace.single (i + 1) 1) (EuclideanSpace.single (i + 2) 1) |
| 67 | rw [hs, sub_self] |
| 68 | change curlMatrix ((fderiv ℝ (fun w : LiftTangent => (fderiv ℝ Ξ w.1).adjoint (q w)) z).comp |
| 69 | (EulerGraphPullback.liftedDirection κ m)) = _ |
| 70 | rw [hp.fderiv, ContinuousLinearMap.add_comp, curlMatrix_add, hzero, add_zero] |
| 71 | rfl |
| 72 | |
| 73 | /-- Unit determinant transforms the full slow-plus-angular curl by the inverse Jacobian. -/ |
| 74 | theorem covering_piola_curl (κ : ℝ) (m : Space) (Ξ : Space → Space) |
| 75 | (q : LiftTangent → Space) (hΞ : ContDiff ℝ 2 Ξ) (z : LiftTangent) |
| 76 | (F : Space ≃L[ℝ] Space) (hF : fderiv ℝ Ξ z.1 = F.toContinuousLinearMap) |
| 77 | (hdet : (operatorMatrix F.toContinuousLinearMap).det = 1) |
| 78 | (hq : DifferentiableAt ℝ q z) : |
| 79 | F.symm (curlMatrix ((fderiv ℝ q z).comp |
| 80 | ((EulerGraphPullback.liftedDirection κ m).comp F.symm.toContinuousLinearMap))) = |
| 81 | coveringCurl κ m (coveringPullbackCovector Ξ q) z := by |
| 82 | rw [coveringCurl_pullback κ m Ξ q hΞ z hq, hF] |
| 83 | exact (curlMatrix_piola F hdet |
| 84 | ((fderiv ℝ q z).comp (EulerGraphPullback.liftedDirection κ m))).symm |
| 85 | |
| 86 | variable (period : ℝ) |
| 87 | |
| 88 | def liftedPullbackCovector (Ξ : Space → Space) (Q : LiftDomain period → Space) |
| 89 | (x : LiftDomain period) : Space := |
| 90 | (fderiv ℝ Ξ x.1).adjoint (Q x) |
| 91 | |
| 92 | def transformedLiftedCurl (κ : ℝ) (m : Space) |
| 93 | (F : Space → Space ≃L[ℝ] Space) (Q : LiftDomain period → Space) |
| 94 | (x : LiftDomain period) : Space := |
| 95 | curlMatrix ((fieldFDeriv period Q x).comp |
| 96 | ((EulerGraphPullback.liftedDirection κ m).comp (F x.1).symm.toContinuousLinearMap)) |
| 97 | |
| 98 | /-- The actual local chart of the pulled-back potential. -/ |
| 99 | theorem localFieldLift_pullbackCovector (Ξ : Space → Space) |
| 100 | (Q : LiftDomain period → Space) (x : LiftDomain period) : |
| 101 | localFieldLift period (liftedPullbackCovector period Ξ Q) x = |
| 102 | coveringPullbackCovector (fun y => Ξ (x.1 + y)) (localFieldLift period Q x) := by |
| 103 | funext z |
| 104 | simp only [localFieldLift, liftedPullbackCovector, coveringPullbackCovector, |
| 105 | fderiv_comp_add_left] |
| 106 | |
| 107 | /-- The Piola curl identity for the periodic packet, with the actual scaled lifted directions. -/ |
| 108 | theorem lifted_piola_curl (κ : ℝ) (m : Space) (Ξ : Space → Space) |
| 109 | (Q : LiftDomain period → Space) (hΞ : ContDiff ℝ 2 Ξ) |
| 110 | (F : Space → Space ≃L[ℝ] Space) |
| 111 | (hF : ∀ y, fderiv ℝ Ξ y = (F y).toContinuousLinearMap) |
| 112 | (hdet : ∀ y, (operatorMatrix (F y).toContinuousLinearMap).det = 1) |
| 113 | (hQ : ∀ x, ContDiff ℝ ∞ (localFieldLift period Q x)) (x : LiftDomain period) : |
| 114 | (F x.1).symm (transformedLiftedCurl period κ m F Q x) = |
| 115 | liftedCurl period κ m (liftedPullbackCovector period Ξ Q) x := by |
| 116 | have hshift : ContDiff ℝ 2 (fun y => Ξ (x.1 + y)) := |
| 117 | hΞ.comp (contDiff_const.add contDiff_id) |
| 118 | have hF0 : fderiv ℝ (fun y => Ξ (x.1 + y)) (0 : LiftTangent).1 = |
| 119 | (F x.1).toContinuousLinearMap := by |
| 120 | simpa only [fderiv_comp_add_left, Prod.fst_zero, add_zero] using hF x.1 |
| 121 | have he := covering_piola_curl κ m (fun y => Ξ (x.1 + y)) |
| 122 | (localFieldLift period Q x) hshift 0 (F x.1) hF0 (hdet x.1) |
| 123 | (((hQ x).differentiable (by simp)).differentiableAt) |
| 124 | simpa only [transformedLiftedCurl, liftedCurl, fieldFDeriv, coveringCurl, |
| 125 | ← localFieldLift_pullbackCovector period Ξ Q x] using he |
| 126 | |
| 127 | theorem liftedPullbackCovector_smooth (Ξ : Space → Space) |
| 128 | (Q : LiftDomain period → Space) (hΞ : ContDiff ℝ ∞ Ξ) |
| 129 | (hQ : ∀ x, ContDiff ℝ ∞ (localFieldLift period Q x)) (x : LiftDomain period) : |
| 130 | ContDiff ℝ ∞ (localFieldLift period (liftedPullbackCovector period Ξ Q) x) := by |
| 131 | change ContDiff ℝ ∞ (fun z : LiftTangent => |
| 132 | (fderiv ℝ Ξ (x.1 + z.1)).adjoint (localFieldLift period Q x z)) |
| 133 | exact ((realAdjoint (U := Space) (E := Space)).contDiff.comp |
| 134 | ((hΞ.fderiv_right (m := ∞) (by simp)).comp |
| 135 | (contDiff_const.add contDiff_fst))).clm_apply (hQ x) |
| 136 | |
| 137 | theorem liftedPullbackCovector_compact (Ξ : Space → Space) |
| 138 | (Q : LiftDomain period → Space) (hc : HasCompactSupport Q) : |
| 139 | HasCompactSupport (liftedPullbackCovector period Ξ Q) := by |
| 140 | apply hc.mono |
| 141 | intro x hx |
| 142 | contrapose! hx |
| 143 | simp only [Function.mem_support, not_not] at hx ⊢ |
| 144 | simp only [liftedPullbackCovector, hx, map_zero] |
| 145 | |
| 146 | /-- Actual pointwise lifted divergence vanishes for the transformed packet curl. -/ |
| 147 | theorem lifted_divergence_piola_curl (κ : ℝ) (m : Space) (Ξ : Space → Space) |
| 148 | (Q : LiftDomain period → Space) (hΞ : ContDiff ℝ ∞ Ξ) |
| 149 | (F : Space → Space ≃L[ℝ] Space) |
| 150 | (hF : ∀ y, fderiv ℝ Ξ y = (F y).toContinuousLinearMap) |
| 151 | (hdet : ∀ y, (operatorMatrix (F y).toContinuousLinearMap).det = 1) |
| 152 | (hQ : ∀ x, ContDiff ℝ ∞ (localFieldLift period Q x)) (x : LiftDomain period) : |
| 153 | (∑ i : Fin 3, (fieldDerivative period (coordinateDirection κ m i) |
| 154 | (fun y => (F y.1).symm (transformedLiftedCurl period κ m F Q y)) x) i) = 0 := by |
| 155 | have he : (fun y => (F y.1).symm (transformedLiftedCurl period κ m F Q y)) = |
| 156 | liftedCurl period κ m (liftedPullbackCovector period Ξ Q) := |
| 157 | funext fun y => lifted_piola_curl period κ m Ξ Q (hΞ.of_le (by simp)) F hF hdet hQ y |
| 158 | rw [he] |
| 159 | exact lifted_divergence_curl period κ m _ (liftedPullbackCovector_smooth period Ξ Q hΞ hQ) x |
| 160 | |
| 161 | variable [Fact (0 < period)] |
| 162 | |
| 163 | /-- A genuine Bochner L² realization of the pulled-back packet curl. -/ |
| 164 | def piolaLiftedCurlLp (κ : ℝ) (m : Space) (Ξ : Space → Space) |
| 165 | (Q : LiftDomain period → Space) (hΞ : ContDiff ℝ ∞ Ξ) |
| 166 | (hc : HasCompactSupport Q) (hQ : ∀ x, ContDiff ℝ ∞ (localFieldLift period Q x)) : |
| 167 | LiftL2 period := |
| 168 | liftedCurlLp period κ m (liftedPullbackCovector period Ξ Q) |
| 169 | (liftedPullbackCovector_compact period Ξ Q hc) |
| 170 | (liftedPullbackCovector_smooth period Ξ Q hΞ hQ) |
| 171 | |
| 172 | theorem piolaLiftedCurlLp_ae (κ : ℝ) (m : Space) (Ξ : Space → Space) |
| 173 | (Q : LiftDomain period → Space) (hΞ : ContDiff ℝ ∞ Ξ) |
| 174 | (hc : HasCompactSupport Q) (hQ : ∀ x, ContDiff ℝ ∞ (localFieldLift period Q x)) |
| 175 | (F : Space → Space ≃L[ℝ] Space) |
| 176 | (hF : ∀ y, fderiv ℝ Ξ y = (F y).toContinuousLinearMap) |
| 177 | (hdet : ∀ y, (operatorMatrix (F y).toContinuousLinearMap).det = 1) : |
| 178 | (piolaLiftedCurlLp period κ m Ξ Q hΞ hc hQ : LiftDomain period → Space) =ᵐ[liftMeasure period] |
| 179 | (fun x => (F x.1).symm (transformedLiftedCurl period κ m F Q x)) := by |
| 180 | filter_upwards [liftedCurlLp_ae period κ m (liftedPullbackCovector period Ξ Q) |
| 181 | (liftedPullbackCovector_compact period Ξ Q hc) |
| 182 | (liftedPullbackCovector_smooth period Ξ Q hΞ hQ)] with x hx |
| 183 | exact hx.trans (lifted_piola_curl period κ m Ξ Q (hΞ.of_le (by simp)) F hF hdet hQ x).symm |
| 184 | |
| 185 | /-- The pulled-back packet satisfies the exact closed constraint used by correction assembly. -/ |
| 186 | theorem piolaLiftedCurlLp_mem (κ : ℝ) (m : Space) (Ξ : Space → Space) |
| 187 | (Q : LiftDomain period → Space) (hΞ : ContDiff ℝ ∞ Ξ) |
| 188 | (hc : HasCompactSupport Q) (hQ : ∀ x, ContDiff ℝ ∞ (localFieldLift period Q x)) : |
| 189 | piolaLiftedCurlLp period κ m Ξ Q hΞ hc hQ ∈ divergenceFreeSpace period κ m := |
| 190 | liftedCurlLp_mem period κ m (liftedPullbackCovector period Ξ Q) |
| 191 | (liftedPullbackCovector_compact period Ξ Q hc) |
| 192 | (liftedPullbackCovector_smooth period Ξ Q hΞ hQ) |
| 193 | |
| 194 | end EulerPacketPiola |