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.PacketPrimaryFactorization |
| 2 | import Euler.PacketPrimaryScaling |
| 3 | import Euler.FixedEndpointClassical |
| 4 | import Euler.TransversePacketTimeData |
| 5 | |
| 6 | /-! Tangency, the physical tangent ODE, and nonvanishing of the actual |
| 7 | canonical primary. Nonvanishing follows from the prescribed nonzero |
| 8 | terminal displacement, rather than from an assumption on the solved velocity. -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace EulerLinearDuhamel.Evolution |
| 13 | |
| 14 | open Set ContinuousLinearMap EulerVolterraConvolution |
| 15 | |
| 16 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 17 | {T : ℝ} {hT : 0 ≤ T} {G : C(Icc (0 : ℝ) T,E →L[ℝ] E)} |
| 18 | |
| 19 | /-- A zero of a genuine homogeneous solution propagates in either time direction. -/ |
| 20 | theorem homogeneous_zero_at (U : Evolution T hT G) (f : ℝ → E) |
| 21 | (hf : ∀ t : Icc (0 : ℝ) T, |
| 22 | HasDerivWithinAt f (G t (f t)) (Icc (0 : ℝ) T) t) |
| 23 | (s t : Icc (0 : ℝ) T) (hs : f s = 0) : f t = 0 := by |
| 24 | let q : ℝ → E := fun r => extendPath T hT U.backward r (f r) |
| 25 | have hq : ∀ r ∈ Icc (0 : ℝ) T, HasDerivWithinAt q 0 (Icc (0 : ℝ) T) r := by |
| 26 | intro r hr |
| 27 | have hd := (U.backward_derivative ⟨r,hr⟩).clm_apply (hf ⟨r,hr⟩) |
| 28 | convert! hd using 1 |
| 29 | · simp only [neg_apply,comp_apply,extendPath,projIcc_of_mem hT hr] |
| 30 | abel |
| 31 | have he : q t = q s := by |
| 32 | have h := Convex.norm_image_sub_le_of_norm_hasDerivWithin_le (C := 0) hq |
| 33 | (fun r hr => by simp) (convex_Icc (0 : ℝ) T) s.property t.property |
| 34 | simpa only [zero_mul,norm_le_zero_iff,sub_eq_zero] using h |
| 35 | have hqs : q s = 0 := by simp only [q,hs,map_zero] |
| 36 | have ht : U.backward t (f t) = 0 := by |
| 37 | simpa only [q,extendPath,projIcc_of_mem hT t.property] using he.trans hqs |
| 38 | have h := congrArg (U.forward t) ht |
| 39 | change ((U.forward t).comp (U.backward t)) (f t) = U.forward t 0 at h |
| 40 | simpa only [U.forward_backward,id_apply,map_zero] using h |
| 41 | |
| 42 | end EulerLinearDuhamel.Evolution |
| 43 | |
| 44 | namespace EulerCylinderDirichlet.Coefficients |
| 45 | |
| 46 | open Set ContinuousLinearMap InnerProductSpace EulerSmoothLimit EulerVolterraConvolution |
| 47 | EulerTransverseEndpointCoordinates EulerFixedEndpointClassical |
| 48 | |
| 49 | variable {T : ℝ} {U E : Type*} |
| 50 | [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 51 | [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] |
| 52 | (D : Coefficients T U E) |
| 53 | |
| 54 | /-- A nonzero terminal coordinate forces the actual physical history |
| 55 | velocity to be nonzero at some time. -/ |
| 56 | theorem labelVelocity_exists_ne_zero (x : Space) (ξ : U) (hξ : ξ ≠ 0) : |
| 57 | ∃ t : Icc (0 : ℝ) T, D.labelVelocity x ξ t ≠ 0 := by |
| 58 | classical |
| 59 | by_contra hn |
| 60 | push Not at hn |
| 61 | have hv : ∀ t : Icc (0 : ℝ) T, D.labelCoordinate x ξ t = 0 := by |
| 62 | intro t |
| 63 | have h := D.labelFrame_lower x t (D.labelCoordinate x ξ t) |
| 64 | change D.lower*‖D.labelCoordinate x ξ t‖^2 ≤ ‖D.labelVelocity x ξ t‖^2 at h |
| 65 | rw [hn t,norm_zero,zero_pow (by decide : 2 ≠ 0)] at h |
| 66 | have hs : ‖D.labelCoordinate x ξ t‖^2 ≤ 0 := nonpos_of_mul_nonpos_right h D.lower_pos |
| 67 | exact norm_eq_zero.mp (by nlinarith [norm_nonneg (D.labelCoordinate x ξ t)]) |
| 68 | let z := EulerFixedEndpointClassical.displacement T D.time_pos.le (D.labelFrame x) (D.labelFrameDerivative x) |
| 69 | (D.labelHessian x) D.lower D.lower_pos (D.labelFrame_lower x) (D.labelFrame_derivative x) |
| 70 | D.potential D.potential_nonneg (D.labelHessian_upper x) D.small ξ |
| 71 | have hd : ∀ t ∈ Icc (0 : ℝ) T, |
| 72 | HasDerivWithinAt (extendPath T D.time_pos.le z) 0 (Icc (0 : ℝ) T) t := by |
| 73 | intro t ht |
| 74 | have h := EulerFixedEndpointClassical.displacement_hasDerivWithinAt T D.time_pos.le (D.labelFrame x) |
| 75 | (D.labelFrameDerivative x) (D.labelHessian x) D.lower D.lower_pos (D.labelFrame_lower x) |
| 76 | (D.labelFrame_derivative x) D.potential D.potential_nonneg (D.labelHessian_upper x) D.small |
| 77 | (D.labelFrameSecond x) D.time_pos (D.labelFrame_second_derivative x) (D.labelFrame_equation x) |
| 78 | ξ ⟨t,ht⟩ |
| 79 | change HasDerivWithinAt (extendPath T D.time_pos.le z) (D.labelCoordinate x ξ ⟨t,ht⟩) |
| 80 | (Icc (0 : ℝ) T) t at h |
| 81 | rwa [hv] at h |
| 82 | have he : extendPath T D.time_pos.le z T = extendPath T D.time_pos.le z 0 := by |
| 83 | have h := Convex.norm_image_sub_le_of_norm_hasDerivWithin_le (C := 0) hd |
| 84 | (fun r hr => by simp) (convex_Icc (0 : ℝ) T) |
| 85 | (show (0 : ℝ) ∈ Icc 0 T from ⟨le_rfl,D.time_pos.le⟩) |
| 86 | (show T ∈ Icc (0 : ℝ) T from ⟨D.time_pos.le,le_rfl⟩) |
| 87 | simpa only [zero_mul,norm_le_zero_iff,sub_eq_zero] using h |
| 88 | have hz0 : extendPath T D.time_pos.le z 0 = 0 := by |
| 89 | rw [extendPath,projIcc_of_mem D.time_pos.le (show (0 : ℝ) ∈ Icc 0 T from ⟨le_rfl,D.time_pos.le⟩)] |
| 90 | exact EulerFixedEndpointClassical.displacement_initial T D.time_pos.le (D.labelFrame x) (D.labelFrameDerivative x) |
| 91 | (D.labelHessian x) D.lower D.lower_pos (D.labelFrame_lower x) (D.labelFrame_derivative x) |
| 92 | D.potential D.potential_nonneg (D.labelHessian_upper x) D.small ξ |
| 93 | have hzT : extendPath T D.time_pos.le z T = ξ := by |
| 94 | rw [extendPath,projIcc_of_mem D.time_pos.le (show T ∈ Icc (0 : ℝ) T from ⟨D.time_pos.le,le_rfl⟩)] |
| 95 | exact EulerFixedEndpointClassical.displacement_terminal T D.time_pos.le (D.labelFrame x) (D.labelFrameDerivative x) |
| 96 | (D.labelHessian x) D.lower D.lower_pos (D.labelFrame_lower x) (D.labelFrame_derivative x) |
| 97 | D.potential D.potential_nonneg (D.labelHessian_upper x) D.small D.time_pos ξ |
| 98 | exact hξ (hzT.symm.trans (he.trans hz0)) |
| 99 | |
| 100 | end EulerCylinderDirichlet.Coefficients |
| 101 | |
| 102 | namespace EulerPacketPrimaryFactorization |
| 103 | |
| 104 | open Set InnerProductSpace EulerSmoothLimit EulerTransversePacketProvider |
| 105 | EulerPacketTerminalDatum EulerTransversePacketPrimary EulerSpatialCutoffs |
| 106 | EulerLinearDuhamel EulerVolterraConvolution |
| 107 | |
| 108 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 109 | {D : Data U} (τ : ℝ) (hτ : 0 < τ) (hτT : τ < D.T) |
| 110 | (B : HistoryData (D.initial τ hτ hτT.le)) |
| 111 | (ξ : U) (hs : tsupport innerCutoff ⊆ D.support) |
| 112 | |
| 113 | omit [CompleteSpace U] in |
| 114 | theorem canonicalNormal_equation (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 115 | HasDerivWithinAt (fun s => D.normal.field (D.clamp s) x) |
| 116 | (-(D.M.field t x).adjoint (D.normal.field t x)) (Icc (0 : ℝ) D.T) t := by |
| 117 | simpa only [extendPath,Data.clamp,projIcc_of_mem D.T_pos.le t.property, |
| 118 | Data.normalDerivative_apply] using D.normal_hasDerivWithinAt t t.property x |
| 119 | |
| 120 | end EulerPacketPrimaryFactorization |