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.AnglePrimitiveSpatialRegularity |
| 2 | import Euler.CylinderTimeRegularity |
| 3 | |
| 4 | /-! The literal periodic scalar pressure primitive, with actual smoothness and normalization. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerCylinderScalarPrimitive |
| 9 | |
| 10 | open Set MeasureTheory EulerSmoothLimit EulerLiftedGradientSpace EulerMetricTransport |
| 11 | open scoped ContDiff |
| 12 | |
| 13 | variable (P : ℝ) [Fact (0 < P)] (f : LiftDomain P → ℝ) (hf : Continuous f) |
| 14 | (hmean : ∀ y, (∫ s in (0 : ℝ)..P, f (y,(s : AddCircle P))) = 0) |
| 15 | |
| 16 | omit [Fact (0 < P)] in |
| 17 | theorem scalarAngle_periodic (y : Space) : Function.Periodic (fun s : ℝ => f (y,(s : AddCircle P))) P := by |
| 18 | intro s |
| 19 | change f (y,((s+P : ℝ) : AddCircle P)) = f (y,(s : AddCircle P)) |
| 20 | rw [AddCircle.coe_add_period] |
| 21 | |
| 22 | /-- The normalized integral descended to the actual periodic cylinder. -/ |
| 23 | def classicalPrimitive (x : LiftDomain P) : ℝ := |
| 24 | (EulerAngleMeanZeroPrimitive.primitive_periodic P (fun s => f (x.1,(s : AddCircle P))) |
| 25 | (hf.comp (continuous_const.prodMk (AddCircle.continuous_mk' P))) |
| 26 | (scalarAngle_periodic P f x.1) (hmean x.1)).lift x.2 |
| 27 | |
| 28 | omit [Fact (0 < P)] in |
| 29 | theorem classicalPrimitive_cover (y : Space) (θ : ℝ) : |
| 30 | classicalPrimitive P f hf hmean (y,(θ : AddCircle P)) = |
| 31 | EulerAngleMeanZeroPrimitive.primitive P (fun s => f (y,(s : AddCircle P))) θ := |
| 32 | Function.Periodic.lift_coe _ θ |
| 33 | |
| 34 | omit [Fact (0 < P)] in |
| 35 | /-- The literal angular derivative is the original scalar field. -/ |
| 36 | theorem classicalPrimitive_angle (y : Space) (θ : ℝ) : |
| 37 | HasDerivAt (fun s : ℝ => classicalPrimitive P f hf hmean (y,(s : AddCircle P))) |
| 38 | (f (y,(θ : AddCircle P))) θ := by |
| 39 | have he : (fun s : ℝ => classicalPrimitive P f hf hmean (y,(s : AddCircle P))) = |
| 40 | EulerAngleMeanZeroPrimitive.primitive P (fun s => f (y,(s : AddCircle P))) := |
| 41 | funext (classicalPrimitive_cover P f hf hmean y) |
| 42 | rw [he] |
| 43 | exact EulerAngleMeanZeroPrimitive.primitive_hasDerivAt P _ |
| 44 | (hf.comp (continuous_const.prodMk (AddCircle.continuous_mk' P))) θ |
| 45 | |
| 46 | theorem classicalPrimitive_mean_zero (y : Space) : |
| 47 | (∫ θ in (0 : ℝ)..P, classicalPrimitive P f hf hmean (y,(θ : AddCircle P))) = 0 := by |
| 48 | simp_rw [classicalPrimitive_cover] |
| 49 | exact EulerAngleMeanZeroPrimitive.primitive_mean_zero P (ne_of_gt (Fact.out : 0 < P)) _ |
| 50 | (hf.comp (continuous_const.prodMk (AddCircle.continuous_mk' P))) |
| 51 | |
| 52 | /-- The actual normalized integral is smooth in all cylinder variables. -/ |
| 53 | theorem classicalPrimitive_smooth |
| 54 | (hfs : ∀ x, ContDiff ℝ ∞ (localFieldLift P f x)) (x : LiftDomain P) : |
| 55 | ContDiff ℝ ∞ (localFieldLift P (classicalPrimitive P f hf hmean) x) := by |
| 56 | let F : Space × ℝ → ℝ := localFieldLift P f 0 |
| 57 | have hF : ContDiff ℝ ∞ F := hfs 0 |
| 58 | have hq := EulerAngleMeanZeroPrimitive.primitive_joint_contDiff P (le_of_lt (Fact.out : 0 < P)) F hF |
| 59 | obtain ⟨θ,hθ⟩ := QuotientAddGroup.mk_surjective x.2 |
| 60 | have hx : x = coveringMap P (x.1,θ) := by |
| 61 | apply Prod.ext |
| 62 | · rfl |
| 63 | · exact hθ.symm |
| 64 | rw [hx,localFieldLift_cover] |
| 65 | have he : localFieldLift P (classicalPrimitive P f hf hmean) 0 = |
| 66 | fun z : LiftTangent => EulerAngleMeanZeroPrimitive.primitive P (fun s => F (z.1,s)) z.2 := by |
| 67 | funext z |
| 68 | simp only [localFieldLift,Prod.fst_zero,Prod.snd_zero,zero_add,classicalPrimitive_cover,F] |
| 69 | rw [he] |
| 70 | exact hq.comp (contDiff_const.add contDiff_id) |
| 71 | |
| 72 | theorem classicalPrimitive_continuous |
| 73 | (hfs : ∀ x, ContDiff ℝ ∞ (localFieldLift P f x)) : |
| 74 | Continuous (classicalPrimitive P f hf hmean) := |
| 75 | smoothField_continuous P _ (classicalPrimitive_smooth P f hf hmean hfs) |
| 76 | |
| 77 | omit [Fact (0 < P)] in |
| 78 | /-- Angular integration does not spread spatial support. -/ |
| 79 | theorem classicalPrimitive_zero (y : Space) (hy : ∀ θ : AddCircle P, f (y,θ) = 0) (θ : AddCircle P) : |
| 80 | classicalPrimitive P f hf hmean (y,θ) = 0 := by |
| 81 | obtain ⟨s,rfl⟩ := QuotientAddGroup.mk_surjective θ |
| 82 | rw [classicalPrimitive_cover] |
| 83 | have he : (fun r : ℝ => f (y,(r : AddCircle P))) = fun _ => 0 := funext (fun r => hy r) |
| 84 | simp only [he,EulerAngleMeanZeroPrimitive.primitive,EulerAngleMeanZeroPrimitive.rawPrimitive, |
| 85 | intervalIntegral.integral_zero,smul_zero,sub_zero] |
| 86 | |
| 87 | end EulerCylinderScalarPrimitive |