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.PacketPiola |
| 2 | |
| 3 | /-! |
| 4 | Curl in the constant lifted directions `(κ eᵢ, m₀ᵢ)` on the actual periodic |
| 5 | cylinder. Mixed covering derivatives commute, so its lifted divergence |
| 6 | vanishes. Compact smooth potentials also produce members of the existing |
| 7 | closed divergence-free Bochner L² space. |
| 8 | -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | |
| 13 | namespace EulerPacketPiola |
| 14 | |
| 15 | open MeasureTheory InnerProductSpace EulerSmoothLimit EulerMeanBoundary |
| 16 | EulerLiftedGradientSpace EulerMetricTransport EulerTransportDerivatives |
| 17 | EulerLiftedWeakDerivative EulerLiftedCurl |
| 18 | open scoped ContDiff |
| 19 | |
| 20 | variable (period : ℝ) |
| 21 | |
| 22 | theorem liftedDirection_coordinate (κ : ℝ) (m : Vector3) (i : Fin 3) : |
| 23 | EulerGraphPullback.liftedDirection κ m (EuclideanSpace.single i 1) = |
| 24 | coordinateDirection κ m i := by |
| 25 | rw [EulerGraphPullback.liftedDirection_apply] |
| 26 | simp only [coordinateDirection, EuclideanSpace.inner_single_right, conj_trivial, one_mul] |
| 27 | |
| 28 | def liftedCurl (κ : ℝ) (m : Vector3) (Q : LiftDomain period → Vector3) |
| 29 | (x : LiftDomain period) : Vector3 := |
| 30 | curlMatrix ((fieldFDeriv period Q x).comp (EulerGraphPullback.liftedDirection κ m)) |
| 31 | |
| 32 | theorem liftedCurl_component (κ : ℝ) (m : Vector3) (Q : LiftDomain period → Vector3) |
| 33 | (x : LiftDomain period) (i : Fin 3) : |
| 34 | liftedCurl period κ m Q x i = |
| 35 | (fieldDerivative period (coordinateDirection κ m (i + 1)) Q x) (i + 2) - |
| 36 | (fieldDerivative period (coordinateDirection κ m (i + 2)) Q x) (i + 1) := by |
| 37 | simp only [liftedCurl, curlMatrix, ContinuousLinearMap.comp_apply, liftedDirection_coordinate] |
| 38 | rfl |
| 39 | |
| 40 | theorem component_smooth (Q : LiftDomain period → Vector3) |
| 41 | (hQ : ∀ x, ContDiff ℝ ∞ (localFieldLift period Q x)) (i : Fin 3) (x : LiftDomain period) : |
| 42 | ContDiff ℝ ∞ (localFieldLift period (fun y => Q y i) x) := |
| 43 | (EuclideanSpace.proj i : Vector3 →L[ℝ] ℝ).contDiff.comp (hQ x) |
| 44 | |
| 45 | theorem liftedCurl_component_scalar (κ : ℝ) (m : Vector3) (Q : LiftDomain period → Vector3) |
| 46 | (hQ : ∀ x, ContDiff ℝ ∞ (localFieldLift period Q x)) (x : LiftDomain period) (i : Fin 3) : |
| 47 | liftedCurl period κ m Q x i = |
| 48 | fieldDerivative period (coordinateDirection κ m (i + 1)) (fun y => Q y (i + 2)) x - |
| 49 | fieldDerivative period (coordinateDirection κ m (i + 2)) (fun y => Q y (i + 1)) x := by |
| 50 | rw [liftedCurl_component] |
| 51 | congr 1 |
| 52 | · exact (fieldDerivative_linear period (EuclideanSpace.proj (i + 2)) Q hQ _ x).symm |
| 53 | · exact (fieldDerivative_linear period (EuclideanSpace.proj (i + 1)) Q hQ _ x).symm |
| 54 | |
| 55 | /-- The full lifted curl is a finite sum of the existing antisymmetric scalar curl tests. -/ |
| 56 | theorem liftedCurl_eq_tests (κ : ℝ) (m : Vector3) (Q : LiftDomain period → Vector3) |
| 57 | (hQ : ∀ x, ContDiff ℝ ∞ (localFieldLift period Q x)) : |
| 58 | liftedCurl period κ m Q = fun x => |
| 59 | curlTest period κ m 0 1 (fun y => Q y 2) x + |
| 60 | curlTest period κ m 1 2 (fun y => Q y 0) x + |
| 61 | curlTest period κ m 2 0 (fun y => Q y 1) x := by |
| 62 | funext x |
| 63 | ext i |
| 64 | rw [liftedCurl_component_scalar period κ m Q hQ] |
| 65 | fin_cases i <;> |
| 66 | norm_num [curlTest, PiLp.add_apply, PiLp.sub_apply, PiLp.smul_apply, |
| 67 | EuclideanSpace.single, Pi.single_apply, Fin.add_def, Fin.ext_iff] |
| 68 | · rfl |
| 69 | · change |
| 70 | fieldDerivative period (coordinateDirection κ m 2) (fun y => Q y 0) x - |
| 71 | fieldDerivative period (coordinateDirection κ m 0) (fun y => Q y 2) x = |
| 72 | -fieldDerivative period (coordinateDirection κ m 0) (fun y => Q y 2) x + |
| 73 | fieldDerivative period (coordinateDirection κ m 2) (fun y => Q y 0) x |
| 74 | ring |
| 75 | · change |
| 76 | fieldDerivative period (coordinateDirection κ m 0) (fun y => Q y 1) x - |
| 77 | fieldDerivative period (coordinateDirection κ m 1) (fun y => Q y 0) x = |
| 78 | -fieldDerivative period (coordinateDirection κ m 1) (fun y => Q y 0) x + |
| 79 | fieldDerivative period (coordinateDirection κ m 0) (fun y => Q y 1) x |
| 80 | ring |
| 81 | |
| 82 | theorem component_compact (Q : LiftDomain period → Vector3) (hQ : HasCompactSupport Q) |
| 83 | (i : Fin 3) : HasCompactSupport (fun x => Q x i) := |
| 84 | hQ.of_isClosed_subset (isClosed_tsupport _) |
| 85 | (tsupport_comp_subset (g := fun v : Vector3 => v i) rfl Q) |
| 86 | |
| 87 | variable [Fact (0 < period)] |
| 88 | |
| 89 | def liftedCurlLp (κ : ℝ) (m : Vector3) (Q : LiftDomain period → Vector3) |
| 90 | (hc : HasCompactSupport Q) (hQ : ∀ x, ContDiff ℝ ∞ (localFieldLift period Q x)) : |
| 91 | LiftL2 period := |
| 92 | curlTestLp period κ m 0 1 (fun y => Q y 2) (component_compact period Q hc 2) (component_smooth period Q hQ 2) + |
| 93 | curlTestLp period κ m 1 2 (fun y => Q y 0) (component_compact period Q hc 0) (component_smooth period Q hQ 0) + |
| 94 | curlTestLp period κ m 2 0 (fun y => Q y 1) (component_compact period Q hc 1) (component_smooth period Q hQ 1) |
| 95 | |
| 96 | theorem liftedCurlLp_ae (κ : ℝ) (m : Vector3) (Q : LiftDomain period → Vector3) |
| 97 | (hc : HasCompactSupport Q) (hQ : ∀ x, ContDiff ℝ ∞ (localFieldLift period Q x)) : |
| 98 | (liftedCurlLp period κ m Q hc hQ : LiftDomain period → Vector3) =ᵐ[liftMeasure period] |
| 99 | liftedCurl period κ m Q := by |
| 100 | let a := curlTestLp period κ m 0 1 (fun y => Q y 2) (component_compact period Q hc 2) (component_smooth period Q hQ 2) |
| 101 | let b := curlTestLp period κ m 1 2 (fun y => Q y 0) (component_compact period Q hc 0) (component_smooth period Q hQ 0) |
| 102 | let c := curlTestLp period κ m 2 0 (fun y => Q y 1) (component_compact period Q hc 1) (component_smooth period Q hQ 1) |
| 103 | filter_upwards [Lp.coeFn_add (a + b) c, Lp.coeFn_add a b, |
| 104 | curlTestLp_ae period κ m 0 1 (fun y => Q y 2) (component_compact period Q hc 2) (component_smooth period Q hQ 2), |
| 105 | curlTestLp_ae period κ m 1 2 (fun y => Q y 0) (component_compact period Q hc 0) (component_smooth period Q hQ 0), |
| 106 | curlTestLp_ae period κ m 2 0 (fun y => Q y 1) (component_compact period Q hc 1) (component_smooth period Q hQ 1)] |
| 107 | with x habc hab ha hb hc' |
| 108 | change (a + b + c) x = _ |
| 109 | change (a + b + c) x = (a + b) x + c x at habc |
| 110 | change (a + b) x = a x + b x at hab |
| 111 | rw [habc, hab, ha, hb, hc', liftedCurl_eq_tests period κ m Q hQ] |
| 112 | |
| 113 | /-- Compact lifted curls belong to the actual closed constraint space used by the correction. -/ |
| 114 | theorem liftedCurlLp_mem (κ : ℝ) (m : Vector3) (Q : LiftDomain period → Vector3) |
| 115 | (hc : HasCompactSupport Q) (hQ : ∀ x, ContDiff ℝ ∞ (localFieldLift period Q x)) : |
| 116 | liftedCurlLp period κ m Q hc hQ ∈ divergenceFreeSpace period κ m := by |
| 117 | intro p hp |
| 118 | simp only [liftedCurlLp, inner_add_right] |
| 119 | rw [gradient_curl_pairing period κ m 0 1 _ _ _ hp, |
| 120 | gradient_curl_pairing period κ m 1 2 _ _ _ hp, |
| 121 | gradient_curl_pairing period κ m 2 0 _ _ _ hp] |
| 122 | ring |
| 123 | |
| 124 | end EulerPacketPiola |