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.TransversePacketPrimaryPressure |
| 2 | import Euler.TransversePacketPrimaryHistory |
| 3 | import Euler.LinearFundamentalPath |
| 4 | |
| 5 | /-! The actual primary retains its angular profile on the entire joined |
| 6 | interval. This follows from uniqueness for its genuine homogeneous linear |
| 7 | ODE, whose coefficients are independent of the angle. -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace EulerPacketPrimaryFactorization |
| 12 | |
| 13 | open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit |
| 14 | EulerLiftedGradientSpace EulerTransversePacketProvider EulerTransversePacketPrimary |
| 15 | EulerTransverseSourceCoefficientPath EulerPacketTerminalDatum EulerPeriodicProfile |
| 16 | EulerSpatialCutoffs EulerLinearDuhamel |
| 17 | open scoped ContDiff BoundedContinuousFunction |
| 18 | |
| 19 | private local instance : NormedAddCommGroup Space := inferInstance |
| 20 | private local instance : NormedSpace ℝ Space := inferInstance |
| 21 | |
| 22 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 23 | |
| 24 | def physicalGenerator (D : Data U) (x : Space) : C(Icc (0 : ℝ) D.T,Space →L[ℝ] Space) where |
| 25 | toFun t := -(D.M.field t x)+(2/‖D.normal.field t x‖^2) • |
| 26 | ((rankOne ℝ (D.normal.field t x) (D.normal.field t x)).comp (D.M.field t x)) |
| 27 | continuous_toFun := by |
| 28 | have hM : Continuous (fun t => D.M.field t x) := by |
| 29 | convert! (pointPath D.M x).continuous using 1 |
| 30 | funext t |
| 31 | exact (pointPath_apply D.M x t).symm |
| 32 | have hm : Continuous (fun t => D.normal.field t x) := by |
| 33 | convert! (pointPath D.normal x).continuous using 1 |
| 34 | funext t |
| 35 | exact (pointPath_apply D.normal x t).symm |
| 36 | exact hM.neg.add ((continuous_const.div (hm.norm.pow 2) |
| 37 | (fun t => pow_ne_zero 2 (norm_ne_zero_iff.mpr (HistoryData.normal_ne_zero t x)))).smul |
| 38 | ((((rankOne ℝ).continuous.comp hm).clm_apply hm).clm_comp hM)) |
| 39 | |
| 40 | theorem physicalGenerator_apply (D : Data U) (x : Space) (t : Icc (0 : ℝ) D.T) (v : Space) : |
| 41 | physicalGenerator D x t v = -D.M.field t x v+ |
| 42 | (2*⟪D.normal.field t x,D.M.field t x v⟫_ℝ/‖D.normal.field t x‖^2) • D.normal.field t x := by |
| 43 | simp only [physicalGenerator,ContinuousMap.coe_mk,add_apply,neg_apply,smul_apply,comp_apply, |
| 44 | rankOne_apply,smul_smul] |
| 45 | congr 2 |
| 46 | ring |
| 47 | |
| 48 | variable [CompleteSpace U] {D : Data U} |
| 49 | (τ : ℝ) (hτ : 0 < τ) (hτT : τ < D.T) |
| 50 | (B : HistoryData (D.initial τ hτ hτT.le)) |
| 51 | |
| 52 | theorem vector_homogeneous_time {P : ℝ} [Fact (0 < P)] (Y : InitialData P D) |
| 53 | (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 54 | HasDerivWithinAt (fun s => vector τ hτ hτT B Y (s,(x,θ))) |
| 55 | (physicalGenerator D x t (vector τ hτ hτT B Y (t,(x,θ)))) (Icc (0 : ℝ) D.T) t := by |
| 56 | have h := vector_hasDerivWithinAt τ hτ hτT B Y t x θ |
| 57 | have hb : vectorDerivative τ hτ hτT B Y (t,(x,θ))+ |
| 58 | D.M.field t x (vector τ hτ hτT B Y (t,(x,θ)))+ |
| 59 | (-(2*⟪D.normal.field t x,D.M.field t x (vector τ hτ hτT B Y (t,(x,θ)))⟫_ℝ)/ |
| 60 | ‖D.normal.field t x‖^2) • D.normal.field t x=0 := by |
| 61 | simpa only [vectorDerivative,vector,normalResidual,Data.clamp_coe] using |
| 62 | field_balance τ hτ hτT B Y t (x,(θ : AddCircle P)) |
| 63 | have he : vectorDerivative τ hτ hτT B Y (t,(x,θ)) = |
| 64 | physicalGenerator D x t (vector τ hτ hτT B Y (t,(x,θ))) := by |
| 65 | rw [physicalGenerator_apply] |
| 66 | have hh : vectorDerivative τ hτ hτT B Y (t,(x,θ))+ |
| 67 | D.M.field t x (vector τ hτ hτT B Y (t,(x,θ))) = |
| 68 | (2*⟪D.normal.field t x,D.M.field t x (vector τ hτ hτT B Y (t,(x,θ)))⟫_ℝ/ |
| 69 | ‖D.normal.field t x‖^2) • D.normal.field t x := |
| 70 | sub_eq_zero.mp (by simpa only [neg_div,neg_smul,sub_eq_add_neg] using hb) |
| 71 | exact (eq_sub_of_add_eq hh).trans (by abel) |
| 72 | rwa [he] at h |
| 73 | |
| 74 | private theorem homogeneous_unique (T : ℝ) (hT : 0 ≤ T) |
| 75 | (G : C(Icc (0 : ℝ) T,Space →L[ℝ] Space)) (f g : ℝ → Space) |
| 76 | (hf : ∀ t : Icc (0 : ℝ) T, HasDerivWithinAt f (G t (f t)) (Icc (0 : ℝ) T) t) |
| 77 | (hg : ∀ t : Icc (0 : ℝ) T, HasDerivWithinAt g (G t (g t)) (Icc (0 : ℝ) T) t) |
| 78 | (h0 : f 0=g 0) (t : Icc (0 : ℝ) T) : f t=g t := by |
| 79 | let E := constructedEvolution T hT G |
| 80 | have he (a : ℝ → Space) (ha : ∀ t : Icc (0 : ℝ) T, |
| 81 | HasDerivWithinAt a (G t (a t)) (Icc (0 : ℝ) T) t) : |
| 82 | a t=E.solution 0 (a 0) t := |
| 83 | E.solution_unique 0 (a 0) a (fun s => by simpa only [ContinuousMap.zero_apply,add_zero] using ha s) rfl t |
| 84 | rw [he f hf,he g hg,h0] |
| 85 | |
| 86 | theorem angular_proportional (δ : ℝ) (hδ : 0 < δ) (ξ : U) |
| 87 | (hs : tsupport innerCutoff ⊆ D.support) (t : Icc (0 : ℝ) D.T) |
| 88 | (x : Space) (θ φ : ℝ) : |
| 89 | profile δ φ • vector τ hτ hτT B (initialData D δ hδ ξ hs) (t,(x,θ)) = |
| 90 | profile δ θ • vector τ hτ hτT B (initialData D δ hδ ξ hs) (t,(x,φ)) := by |
| 91 | apply homogeneous_unique D.T D.T_pos.le (physicalGenerator D x) |
| 92 | (fun s => profile δ φ • vector τ hτ hτT B (initialData D δ hδ ξ hs) (s,(x,θ))) |
| 93 | (fun s => profile δ θ • vector τ hτ hτT B (initialData D δ hδ ξ hs) (s,(x,φ))) _ _ _ t |
| 94 | · intro s |
| 95 | rw [map_smul] |
| 96 | convert! (vector_homogeneous_time τ hτ hτT B |
| 97 | (initialData D δ hδ ξ hs) s x θ).const_smul (profile δ φ) using 1 |
| 98 | · intro s |
| 99 | rw [map_smul] |
| 100 | convert! (vector_homogeneous_time τ hτ hτT B |
| 101 | (initialData D δ hδ ξ hs) s x φ).const_smul (profile δ θ) using 1 |
| 102 | · have hθ := vector_compact_wave_history τ hτ hτT B δ hδ ξ hs ⟨0,le_rfl,hτ.le⟩ x θ |
| 103 | have hφ := vector_compact_wave_history τ hτ hτT B δ hδ ξ hs ⟨0,le_rfl,hτ.le⟩ x φ |
| 104 | dsimp only at hθ hφ |
| 105 | rw [hθ,hφ,smul_smul,smul_smul] |
| 106 | congr 1 |
| 107 | ring |
| 108 | |
| 109 | def referenceValue (δ : ℝ) : ℝ := profile δ (Real.pi/2) |
| 110 | |
| 111 | theorem referenceValue_pos (δ : ℝ) (hδ : 0 < δ) : 0 < referenceValue δ := by |
| 112 | simp only [referenceValue,profile,Real.sin_pi_div_two,Real.cos_pi_div_two,sub_zero] |
| 113 | exact Real.arctan_pos.mpr (div_pos zero_lt_one (by linarith)) |
| 114 | |
| 115 | /-- The envelope is retained in this actual velocity. On the core it agrees |
| 116 | with the unmultiplied history, and its definition is valid for every time. -/ |
| 117 | def envelopedVelocity (δ : ℝ) (hδ : 0 < δ) (ξ : U) |
| 118 | (hs : tsupport innerCutoff ⊆ D.support) (t : ℝ) (x : Space) : Space := |
| 119 | (referenceValue δ)⁻¹ • |
| 120 | vector τ hτ hτT B (initialData D δ hδ ξ hs) (t,(x,Real.pi/2)) |
| 121 | |
| 122 | theorem vector_factorization (δ : ℝ) (hδ : 0 < δ) (ξ : U) |
| 123 | (hs : tsupport innerCutoff ⊆ D.support) (t : Icc (0 : ℝ) D.T) |
| 124 | (x : Space) (θ : ℝ) : |
| 125 | vector τ hτ hτT B (initialData D δ hδ ξ hs) (t,(x,θ)) = |
| 126 | profile δ θ • envelopedVelocity τ hτ hτT B δ hδ ξ hs t x := by |
| 127 | have h := congrArg (fun v : Space => (referenceValue δ)⁻¹ • v) |
| 128 | (angular_proportional τ hτ hτT B δ hδ ξ hs t x θ (Real.pi/2)) |
| 129 | change (referenceValue δ)⁻¹ • (referenceValue δ • _) = _ at h |
| 130 | rw [smul_smul,inv_mul_cancel₀ (ne_of_gt (referenceValue_pos δ hδ)),one_smul] at h |
| 131 | simpa only [envelopedVelocity,smul_smul,mul_comm] using h |
| 132 | |
| 133 | theorem envelopedVelocity_history (δ : ℝ) (hδ : 0 < δ) (ξ : U) |
| 134 | (hs : tsupport innerCutoff ⊆ D.support) (t : Icc (0 : ℝ) τ) (x : Space) : |
| 135 | envelopedVelocity τ hτ hτT B δ hδ ξ hs t x = |
| 136 | innerCutoff x • B.coefficients.labelVelocity x ξ t := by |
| 137 | rw [envelopedVelocity,vector_compact_wave_history,smul_smul] |
| 138 | change ((referenceValue δ)⁻¹*(innerCutoff x*referenceValue δ)) • _ = _ |
| 139 | have he : (referenceValue δ)⁻¹*(innerCutoff x*referenceValue δ)=innerCutoff x := by |
| 140 | field_simp [ne_of_gt (referenceValue_pos δ hδ)] |
| 141 | rw [he] |
| 142 | |
| 143 | theorem envelopedVelocity_homogeneous_time (δ : ℝ) (hδ : 0 < δ) (ξ : U) |
| 144 | (hs : tsupport innerCutoff ⊆ D.support) (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 145 | HasDerivWithinAt (fun s => envelopedVelocity τ hτ hτT B δ hδ ξ hs s x) |
| 146 | (physicalGenerator D x t (envelopedVelocity τ hτ hτT B δ hδ ξ hs t x)) |
| 147 | (Icc (0 : ℝ) D.T) t := by |
| 148 | simp only [envelopedVelocity,map_smul] |
| 149 | convert! (vector_homogeneous_time τ hτ hτT B |
| 150 | (initialData D δ hδ ξ hs) t x (Real.pi/2)).const_smul (referenceValue δ)⁻¹ using 1 |
| 151 | |
| 152 | /-- The recovered velocity is independent of the narrow angular profile. |
| 153 | In particular its construction does not introduce a dependence on δ into |
| 154 | the geometric amplitude or the homogeneous propagation estimate. -/ |
| 155 | theorem envelopedVelocity_independent_profile (δ δ' : ℝ) (hδ : 0 < δ) (hδ' : 0 < δ') |
| 156 | (ξ : U) (hs : tsupport innerCutoff ⊆ D.support) |
| 157 | (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 158 | envelopedVelocity τ hτ hτT B δ hδ ξ hs t x = |
| 159 | envelopedVelocity τ hτ hτT B δ' hδ' ξ hs t x := by |
| 160 | apply homogeneous_unique D.T D.T_pos.le (physicalGenerator D x) |
| 161 | (fun s => envelopedVelocity τ hτ hτT B δ hδ ξ hs s x) |
| 162 | (fun s => envelopedVelocity τ hτ hτT B δ' hδ' ξ hs s x) |
| 163 | (fun s => envelopedVelocity_homogeneous_time τ hτ hτT B δ hδ ξ hs s x) |
| 164 | (fun s => envelopedVelocity_homogeneous_time τ hτ hτT B δ' hδ' ξ hs s x) _ t |
| 165 | exact (envelopedVelocity_history τ hτ hτT B δ hδ ξ hs ⟨0,le_rfl,hτ.le⟩ x).trans |
| 166 | (envelopedVelocity_history τ hτ hτT B δ' hδ' ξ hs ⟨0,le_rfl,hτ.le⟩ x).symm |
| 167 | |
| 168 | def canonicalVelocity (ξ : U) (hs : tsupport innerCutoff ⊆ D.support) |
| 169 | (t : ℝ) (x : Space) : Space := |
| 170 | envelopedVelocity τ hτ hτT B 1 zero_lt_one ξ hs t x |
| 171 | |
| 172 | theorem vector_factorization_canonical (δ : ℝ) (hδ : 0 < δ) (ξ : U) |
| 173 | (hs : tsupport innerCutoff ⊆ D.support) (t : Icc (0 : ℝ) D.T) |
| 174 | (x : Space) (θ : ℝ) : |
| 175 | vector τ hτ hτT B (initialData D δ hδ ξ hs) (t,(x,θ)) = |
| 176 | profile δ θ • canonicalVelocity τ hτ hτT B ξ hs t x := by |
| 177 | rw [vector_factorization,envelopedVelocity_independent_profile τ hτ hτT B δ 1 hδ zero_lt_one] |
| 178 | rfl |
| 179 | |
| 180 | theorem canonicalVelocity_history (ξ : U) (hs : tsupport innerCutoff ⊆ D.support) |
| 181 | (t : Icc (0 : ℝ) τ) (x : Space) : |
| 182 | canonicalVelocity τ hτ hτT B ξ hs t x = innerCutoff x • B.coefficients.labelVelocity x ξ t := |
| 183 | envelopedVelocity_history τ hτ hτT B 1 zero_lt_one ξ hs t x |
| 184 | |
| 185 | theorem canonicalVelocity_homogeneous_time (ξ : U) (hs : tsupport innerCutoff ⊆ D.support) |
| 186 | (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 187 | HasDerivWithinAt (fun s => canonicalVelocity τ hτ hτT B ξ hs s x) |
| 188 | (physicalGenerator D x t (canonicalVelocity τ hτ hτT B ξ hs t x)) |
| 189 | (Icc (0 : ℝ) D.T) t := |
| 190 | envelopedVelocity_homogeneous_time τ hτ hτT B 1 zero_lt_one ξ hs t x |
| 191 | |
| 192 | end EulerPacketPrimaryFactorization |