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.CylinderSobolevEmbedding |
| 2 | import Euler.ClassicalPressureCurl |
| 3 | |
| 4 | /-! Actual continuous representatives and point evaluation as bounded linear maps on cylinder H3. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerSobolevPointEvaluation |
| 9 | |
| 10 | open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev |
| 11 | EulerMollifierUniform EulerClassicalPressureCurl |
| 12 | open scoped Topology |
| 13 | |
| 14 | variable (period : ℝ) [Fact (0 < period)] |
| 15 | |
| 16 | /-- The actual continuous representative of a genuine cylinder H3 field. -/ |
| 17 | def representative (u : SobolevSpace period 3) : LiftDomain period → Vector3 := |
| 18 | Classical.choose (exists_continuous_representative period (value period u) (toJet period u)) |
| 19 | |
| 20 | /-- The chosen representative is actually continuous. -/ |
| 21 | theorem representative_continuous (u : SobolevSpace period 3) : Continuous (representative period u) := |
| 22 | (Classical.choose_spec (exists_continuous_representative period (value period u) (toJet period u))).1 |
| 23 | |
| 24 | /-- The chosen representative agrees almost everywhere with the actual L² field. -/ |
| 25 | theorem representative_ae (u : SobolevSpace period 3) : |
| 26 | (value period u : LiftDomain period → Vector3) =ᵐ[liftMeasure period] representative period u := |
| 27 | (Classical.choose_spec (exists_continuous_representative period (value period u) (toJet period u))).2 |
| 28 | |
| 29 | /-- Continuous representatives of the same actual L² field agree pointwise. -/ |
| 30 | theorem representative_eq (u : SobolevSpace period 3) (g : LiftDomain period → Vector3) |
| 31 | (hg : Continuous g) (hrep : (value period u : LiftDomain period → Vector3) =ᵐ[liftMeasure period] g) : |
| 32 | representative period u = g := |
| 33 | MeasureTheory.Measure.eq_of_ae_eq ((representative_ae period u).symm.trans hrep) |
| 34 | (representative_continuous period u) hg |
| 35 | |
| 36 | /-- The actual representative obeys the pointwise H3 evaluation bound at every point. -/ |
| 37 | theorem representative_bound (u : SobolevSpace period 3) (x : LiftDomain period) : |
| 38 | ‖representative period u x‖ ≤ sobolevEmbeddingConstant period 3*‖u‖ := by |
| 39 | have hb : ∀ᵐ y ∂liftMeasure period, ‖representative period u y‖ ≤ sobolevEmbeddingConstant period 3*‖u‖ := by |
| 40 | filter_upwards [value_ae_bound period (le_refl 3) u,representative_ae period u] with y hy he |
| 41 | rwa [← he] |
| 42 | have hc : IsClosed {y | ‖representative period u y‖ ≤ sobolevEmbeddingConstant period 3*‖u‖} := |
| 43 | isClosed_le (representative_continuous period u).norm continuous_const |
| 44 | have hx := MeasureTheory.Measure.dense_of_ae hb x |
| 45 | rwa [hc.closure_eq] at hx |
| 46 | |
| 47 | /-- Addition of actual H3 fields gives pointwise addition of their continuous representatives. -/ |
| 48 | theorem representative_add (u v : SobolevSpace period 3) : |
| 49 | representative period (u+v) = fun x => representative period u x+representative period v x := by |
| 50 | apply representative_eq period (u+v) _ ((representative_continuous period u).add (representative_continuous period v)) |
| 51 | filter_upwards [Lp.coeFn_add (value period u) (value period v),representative_ae period u,representative_ae period v] with x ha hu hv |
| 52 | change (value period u+value period v) x = _ |
| 53 | simpa only [Pi.add_apply,hu,hv] using ha |
| 54 | |
| 55 | /-- Scalar multiplication of actual H3 fields gives pointwise scalar multiplication of their continuous representatives. -/ |
| 56 | theorem representative_smul (c : ℝ) (u : SobolevSpace period 3) : |
| 57 | representative period (c • u) = fun x => c • representative period u x := by |
| 58 | apply representative_eq period (c • u) _ ((representative_continuous period u).const_smul c) |
| 59 | filter_upwards [Lp.coeFn_smul c (value period u),representative_ae period u] with x hs hu |
| 60 | change (c • value period u) x = _ |
| 61 | simpa only [Pi.smul_apply,hu] using hs |
| 62 | |
| 63 | /-- Evaluation of the actual continuous representative is a bounded linear map on cylinder H3. -/ |
| 64 | def pointEvaluation (x : LiftDomain period) : SobolevSpace period 3 →L[ℝ] Vector3 := |
| 65 | ({ toFun := fun u => representative period u x |
| 66 | map_add' := fun u v => congrFun (representative_add period u v) x |
| 67 | map_smul' := fun c u => congrFun (representative_smul period c u) x } : |
| 68 | SobolevSpace period 3 →ₗ[ℝ] Vector3).mkContinuous (sobolevEmbeddingConstant period 3) |
| 69 | (fun u => representative_bound period u x) |
| 70 | |
| 71 | /-- The bounded evaluation operator returns the value of every actual continuous representative. -/ |
| 72 | theorem pointEvaluation_eq (x : LiftDomain period) (u : SobolevSpace period 3) |
| 73 | (g : LiftDomain period → Vector3) (hg : Continuous g) |
| 74 | (hrep : (value period u : LiftDomain period → Vector3) =ᵐ[liftMeasure period] g) : |
| 75 | pointEvaluation period x u = g x := congrFun (representative_eq period u g hg hrep) x |
| 76 | |
| 77 | end EulerSobolevPointEvaluation |