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.OrdinarySobolevTower |
| 2 | import Euler.ContinuousTimeIntegral |
| 3 | |
| 4 | /-! The genuine Helmholtz projection preserves ordinary smooth L² |
| 5 | fields and continuous paths of all their jets. Euler pressure and time |
| 6 | derivatives are recovered from velocity, not supplied as estimates. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace EulerOrdinarySobolev |
| 11 | |
| 12 | open Set Filter MeasureTheory InnerProductSpace ContinuousLinearMap EulerSmoothLimit |
| 13 | EulerLpTranslation EulerLpTranslation.SmoothL2Field EulerMeanSolenoidal |
| 14 | EulerMeanSmoothRepresentative EulerMeanOrdinaryLift EulerSmoothFieldSobolevTime |
| 15 | EulerVolterraConvolution EulerLpFiniteTensor |
| 16 | open scoped ContDiff Topology |
| 17 | |
| 18 | def solenoidalField (A : SmoothL2Field Space) : SmoothL2Field Space := |
| 19 | smoothL2Field (solenoidalProjection A.toLp) (solenoidal_orbit A) |
| 20 | |
| 21 | @[simp] theorem solenoidalField_toLp (A : SmoothL2Field Space) : |
| 22 | (solenoidalField A).toLp=solenoidalProjection A.toLp := smoothL2Field_toLp _ _ |
| 23 | |
| 24 | theorem solenoidalField_word (A : SmoothL2Field Space) {n : ℕ} (w : Fin n → Fin 3) : |
| 25 | (wordField (solenoidalField A) w).toLp=solenoidalProjection (wordField A w).toLp := by |
| 26 | rw [word_toLp_eq_orbit,solenoidalField_toLp] |
| 27 | exact (projection_word A w).symm |
| 28 | |
| 29 | theorem jetLp_eq_word_reassembly (A : SmoothL2Field Space) (n : ℕ) : |
| 30 | A.jetLp n=tensorLpReassembly (volume : Measure Space) n |
| 31 | (fun w : Fin n → Fin 3 => (wordField A w).toLp) := by |
| 32 | rw [← ordinaryTensorOperator_apply A n] |
| 33 | unfold ordinaryTensorOperator |
| 34 | rw [ContinuousLinearMap.comp_apply] |
| 35 | congr 1 |
| 36 | funext w |
| 37 | exact ordinaryWordOperator_apply A w |
| 38 | |
| 39 | theorem solenoidalField_continuous {K : Type*} [TopologicalSpace K] |
| 40 | (A : K → SmoothL2Field Space) (hA : ∀ n, Continuous (fun t => (A t).jetLp n)) (n : ℕ) : |
| 41 | Continuous (fun t => (solenoidalField (A t)).jetLp n) := by |
| 42 | simp_rw [jetLp_eq_word_reassembly,solenoidalField_word] |
| 43 | apply (tensorLpReassembly (V := Space) (volume : Measure Space) n).continuous.comp |
| 44 | apply continuous_pi |
| 45 | intro w |
| 46 | apply solenoidalProjection.continuous.comp |
| 47 | have h := (ordinaryWordPath A hA w).continuous |
| 48 | exact h.congr (ordinaryWordPath_apply A hA w) |
| 49 | |
| 50 | theorem advectionField_continuous {K : Type*} [TopologicalSpace K] [CompactSpace K] |
| 51 | (A : K → SmoothL2Field Space) (hA : ∀ n, Continuous (fun t => (A t).jetLp n)) (n : ℕ) : |
| 52 | Continuous (fun t => (advectionField (A t) (A t)).jetLp n) := by |
| 53 | have he (t : K) : advectionField (A t) (A t)=EulerSmoothEulerEvolution.advection A hA t := by |
| 54 | apply field_ext |
| 55 | funext x |
| 56 | rw [advectionField_field,EulerSmoothEulerEvolution.advection_field] |
| 57 | simp only [he] |
| 58 | exact EulerSmoothEulerEvolution.advection_jet_continuous A hA n |
| 59 | |
| 60 | def pressureField (A : SmoothL2Field Space) : SmoothL2Field Space := |
| 61 | fieldSub (solenoidalField (advectionField A A)) (advectionField A A) |
| 62 | |
| 63 | def projectedRhs (A : SmoothL2Field Space) : SmoothL2Field Space := |
| 64 | fieldNeg (solenoidalField (advectionField A A)) |
| 65 | |
| 66 | @[simp] theorem projectedRhs_toLp (A : SmoothL2Field Space) : |
| 67 | (projectedRhs A).toLp = -solenoidalProjection (advectionField A A).toLp := by |
| 68 | rw [projectedRhs,toLp_fieldNeg,solenoidalField_toLp] |
| 69 | |
| 70 | @[simp] theorem pressureField_toLp (A : SmoothL2Field Space) : |
| 71 | (pressureField A).toLp = solenoidalProjection (advectionField A A).toLp-(advectionField A A).toLp := by |
| 72 | rw [pressureField,toLp_fieldSub,solenoidalField_toLp] |
| 73 | |
| 74 | theorem pressureField_mem_gradient (A : SmoothL2Field Space) : (pressureField A).toLp ∈ gradientSpace := by |
| 75 | rw [pressureField_toLp,← neg_sub] |
| 76 | exact gradientSpace.neg_mem (sub_solenoidalProjection_mem_gradient _) |
| 77 | |
| 78 | theorem projectedRhs_field (A : SmoothL2Field Space) (x : Space) : |
| 79 | (projectedRhs A).field x = -fderiv ℝ A.field x (A.field x)-(pressureField A).field x := by |
| 80 | simp only [projectedRhs,pressureField,fieldNeg_field,fieldSub_field,advectionField_field] |
| 81 | abel |
| 82 | |
| 83 | theorem pressureField_continuous {K : Type*} [TopologicalSpace K] [CompactSpace K] |
| 84 | (A : K → SmoothL2Field Space) (hA : ∀ n, Continuous (fun t => (A t).jetLp n)) (n : ℕ) : |
| 85 | Continuous (fun t => (pressureField (A t)).jetLp n) := |
| 86 | continuous_jet_fieldSub _ _ (solenoidalField_continuous _ (advectionField_continuous A hA)) |
| 87 | (advectionField_continuous A hA) n |
| 88 | |
| 89 | theorem projectedRhs_continuous {K : Type*} [TopologicalSpace K] [CompactSpace K] |
| 90 | (A : K → SmoothL2Field Space) (hA : ∀ n, Continuous (fun t => (A t).jetLp n)) (n : ℕ) : |
| 91 | Continuous (fun t => (projectedRhs (A t)).jetLp n) := |
| 92 | continuous_jetLp_mapField _ _ (solenoidalField_continuous _ (advectionField_continuous A hA)) n |
| 93 | |
| 94 | namespace Evolution |
| 95 | |
| 96 | variable {T : ℝ} {hT : 0 ≤ T} |
| 97 | |
| 98 | theorem velocityPath_extend (U : Evolution T hT) : |
| 99 | extendPath T hT U.velocityPath = fun r => (U.velocity (projIcc 0 T hT r)).toLp := |
| 100 | funext (fun r => U.velocityPath_apply (projIcc 0 T hT r)) |
| 101 | |
| 102 | theorem velocityPath_hasDerivWithinAt (U : Evolution T hT) (t : Icc (0 : ℝ) T) : |
| 103 | HasDerivWithinAt (extendPath T hT U.velocityPath) (U.derivative t).toLp (Icc (0 : ℝ) T) t := by |
| 104 | have h := ordinaryWord_hasDerivWithinAt T hT U.velocity U.derivative U.velocity_continuous |
| 105 | U.derivative_continuous (fun r hr x => by simpa only [derivative_field] using U.time_law r hr x) |
| 106 | (Fin.elim0 : Fin 0 → Fin 3) t |
| 107 | rw [U.velocityPath_extend] |
| 108 | simpa only [wordField_zero] using h |
| 109 | |
| 110 | theorem derivative_mem_solenoidal (U : Evolution T hT) (hpos : 0 < T) (t : Icc (0 : ℝ) T) : |
| 111 | (U.derivative t).toLp ∈ solenoidalSpace := by |
| 112 | have hu := U.velocityPath_hasDerivWithinAt t |
| 113 | have hp := solenoidalProjection.hasFDerivAt.comp_hasDerivWithinAt (t : ℝ) hu |
| 114 | have he : (fun r => solenoidalProjection (extendPath T hT U.velocityPath r))= |
| 115 | extendPath T hT U.velocityPath := by |
| 116 | funext r |
| 117 | rw [U.velocityPath_extend] |
| 118 | exact solenoidalSpace.starProjection_eq_self_iff.mpr (U.solenoidal (projIcc 0 T hT r)) |
| 119 | simp only [Function.comp_def] at hp |
| 120 | rw [he] at hp |
| 121 | have hd := (hp.derivWithin (uniqueDiffOn_Icc hpos t t.property)).symm.trans |
| 122 | (hu.derivWithin (uniqueDiffOn_Icc hpos t t.property)) |
| 123 | exact solenoidalSpace.starProjection_eq_self_iff.mp hd |
| 124 | |
| 125 | theorem derivative_toLp_projected (U : Evolution T hT) (hpos : 0 < T) (t : Icc (0 : ℝ) T) : |
| 126 | (U.derivative t).toLp = (projectedRhs (U.velocity t)).toLp := by |
| 127 | have hd : solenoidalProjection (U.derivative t).toLp=(U.derivative t).toLp := |
| 128 | solenoidalSpace.starProjection_eq_self_iff.mpr (U.derivative_mem_solenoidal hpos t) |
| 129 | have he : (U.derivative t).toLp = -((advectionField (U.velocity t) (U.velocity t)).toLp+ |
| 130 | (U.pressureForce t).toLp) := by |
| 131 | rw [U.derivative_eq_eulerRhs,eulerRhs,toLp_fieldNeg,toLp_addField] |
| 132 | rw [he,map_neg,map_add,(solenoidalProjection_eq_zero_iff _).mpr (U.gradient t),add_zero] at hd |
| 133 | rw [projectedRhs_toLp] |
| 134 | exact he.trans hd.symm |
| 135 | |
| 136 | def projectedPath (U : Evolution T hT) : C(Icc (0 : ℝ) T,L2) := |
| 137 | fieldPath (fun t => projectedRhs (U.velocity t)) (projectedRhs_continuous U.velocity U.velocity_continuous) |
| 138 | |
| 139 | theorem velocity_integral_equation (U : Evolution T hT) (hpos : 0 < T) : |
| 140 | U.velocityPath = ContinuousMap.const (Icc (0 : ℝ) T) (U.velocityPath ⟨0,le_rfl,hT⟩)+ |
| 141 | EulerContinuousTimeIntegral.integral T hT U.projectedPath := by |
| 142 | apply ContinuousMap.ext |
| 143 | intro t |
| 144 | have hd (s : Icc (0 : ℝ) T) : HasDerivWithinAt (extendPath T hT U.velocityPath) |
| 145 | (U.projectedPath s) (Icc (0 : ℝ) T) s := by |
| 146 | rw [show U.projectedPath s=(projectedRhs (U.velocity s)).toLp from rfl, |
| 147 | ← U.derivative_toLp_projected hpos s] |
| 148 | exact U.velocityPath_hasDerivWithinAt s |
| 149 | have h := EulerContinuousTimeIntegral.eq_initial_add_integral T hT U.projectedPath |
| 150 | (extendPath T hT U.velocityPath) hd t |
| 151 | simpa only [extendPath,projIcc_of_mem hT t.property, |
| 152 | projIcc_of_mem hT (show (0 : ℝ) ∈ Icc 0 T from ⟨le_rfl,hT⟩), |
| 153 | ContinuousMap.add_apply,ContinuousMap.const_apply] using h |
| 154 | |
| 155 | end Evolution |
| 156 | end EulerOrdinarySobolev |