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.TransversePacketPrimaryHistory |
| 2 | import Euler.TransversePacketPiolaData |
| 3 | import Euler.PacketFrameCoefficients |
| 4 | import Euler.PacketPhysicalEulerTransform |
| 5 | |
| 6 | /-! The actual compact primary has exactly the source rank-one shear at |
| 7 | zero phase throughout its history interval, including the activation time. |
| 8 | No derivative of the finite-dimensional history is postulated. -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace EulerPacketPrimaryShear |
| 13 | |
| 14 | open Set Filter InnerProductSpace ContinuousLinearMap EulerSmoothLimit |
| 15 | EulerLiftedGradientSpace EulerGraphPullback EulerPacketNormalizedPrimary |
| 16 | EulerTransversePacketProvider EulerPacketTerminalDatum EulerTransversePacketPrimary |
| 17 | EulerSpatialCutoffs EulerPeriodicProfile |
| 18 | open scoped ContDiff |
| 19 | |
| 20 | theorem zero_slice_hasFDerivAt (A : Space × ℝ → Space) (x a : Space) |
| 21 | (hA : DifferentiableAt ℝ A (x,0)) (hzero : ∀ y, A (y,0)=0) |
| 22 | (ha : HasDerivAt (fun θ : ℝ => A (x,θ)) a 0) : |
| 23 | HasFDerivAt A ((toSpanSingleton ℝ a).comp (snd ℝ Space ℝ)) (x,0) := by |
| 24 | have hs := hA.hasFDerivAt.comp x |
| 25 | ((hasFDerivAt_id (𝕜 := ℝ) x).prodMk (hasFDerivAt_const (0 : ℝ) x)) |
| 26 | have he : (fun y => A (y,0)) = fun _ : Space => (0 : Space) := funext hzero |
| 27 | change HasFDerivAt (fun y => A (y,0)) ((fderiv ℝ A (x,0)).comp (inl ℝ Space ℝ)) x at hs |
| 28 | rw [he] at hs |
| 29 | have hspace : ∀ v : Space, fderiv ℝ A (x,0) (v,0)=0 := by |
| 30 | intro v |
| 31 | have h := congrArg (fun L : Space →L[ℝ] Space => L v) |
| 32 | (hs.unique (hasFDerivAt_const (0 : Space) x)) |
| 33 | exact h |
| 34 | have ht := hA.hasFDerivAt.comp_hasDerivAt (0 : ℝ) |
| 35 | ((hasDerivAt_const (0 : ℝ) x).prodMk (hasDerivAt_id (0 : ℝ))) |
| 36 | have hangle : fderiv ℝ A (x,0) (0,1)=a := ht.unique ha |
| 37 | have hd : fderiv ℝ A (x,0) = (toSpanSingleton ℝ a).comp (snd ℝ Space ℝ) := by |
| 38 | apply ContinuousLinearMap.ext |
| 39 | rintro ⟨v,s⟩ |
| 40 | have hp : (v,s) = (v,(0 : ℝ))+s•((0 : Space),(1 : ℝ)) := by simp |
| 41 | rw [hp,map_add,map_smul,hspace,hangle] |
| 42 | simp |
| 43 | exact hd ▸ hA.hasFDerivAt |
| 44 | |
| 45 | theorem zero_phase_graph_hasFDerivAt (A : Space × ℝ → Space) (a m : Space) |
| 46 | (hA : DifferentiableAt ℝ A (0,0)) (hzero : ∀ y, A (y,0)=0) |
| 47 | (ha : HasDerivAt (fun θ : ℝ => A (0,θ)) a 0) (c k : ℝ) : |
| 48 | HasFDerivAt (fun y => c • A (y,k*⟪m,y⟫_ℝ)) ((c*k) • rankOne ℝ a m) 0 := by |
| 49 | have hp : HasFDerivAt A ((toSpanSingleton ℝ a).comp (snd ℝ Space ℝ)) (graphMap k m 0) := by |
| 50 | rw [map_zero] |
| 51 | change HasFDerivAt A ((toSpanSingleton ℝ a).comp (snd ℝ Space ℝ)) (0,0) |
| 52 | exact zero_slice_hasFDerivAt A 0 a hA hzero ha |
| 53 | have h := (hp.comp 0 (graphMap k m).hasFDerivAt).const_smul c |
| 54 | convert! h using 1 |
| 55 | apply ContinuousLinearMap.ext |
| 56 | intro v |
| 57 | simp only [smul_apply,comp_apply,toSpanSingleton_apply,coe_snd',graphMap_apply, |
| 58 | rankOne_apply,smul_smul] |
| 59 | congr 1 |
| 60 | ring |
| 61 | |
| 62 | theorem rankOne_normalized (c : ℝ) (v m : Space) (hv : v ≠ 0) (hm : m ≠ 0) : |
| 63 | c • rankOne ℝ v m = |
| 64 | (c*(‖m‖*‖v‖)) • rankOne ℝ (unit v) (unit m) := by |
| 65 | apply ContinuousLinearMap.ext |
| 66 | intro x |
| 67 | simp only [smul_apply,rankOne_apply,unit,real_inner_smul_left,smul_smul] |
| 68 | congr 1 |
| 69 | field_simp [norm_ne_zero_iff.mpr hv,norm_ne_zero_iff.mpr hm] |
| 70 | |
| 71 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 72 | {D : Data U} (τ : ℝ) (hτ : 0 < τ) (hτT : τ < D.T) |
| 73 | (B : HistoryData (D.initial τ hτ hτT.le)) |
| 74 | (δ : ℝ) (hδ : 0 < δ) (ξ : U) (hs : tsupport innerCutoff ⊆ D.support) |
| 75 | |
| 76 | /-- The literal leading primary on the physical phase graph in label coordinates. -/ |
| 77 | def historyWave (α k : ℝ) (t : Icc (0 : ℝ) τ) (y : Space) : Space := |
| 78 | (α/k) • vector τ hτ hτT B (initialData D δ hδ ξ hs) (t,(y,k*⟪D.m₀,y⟫_ℝ)) |
| 79 | |
| 80 | theorem historyWave_hasFDerivAt (α k : ℝ) (hk : k ≠ 0) (t : Icc (0 : ℝ) τ) : |
| 81 | HasFDerivAt (historyWave τ hτ hτT B δ hδ ξ hs α k t) |
| 82 | ((α/δ) • rankOne ℝ (B.coefficients.labelVelocity 0 ξ t) D.m₀) 0 := by |
| 83 | let A : Space × ℝ → Space := fun z => |
| 84 | vector τ hτ hτT B (initialData D δ hδ ξ hs) (t,z) |
| 85 | have hA : DifferentiableAt ℝ A (0,0) := |
| 86 | ((vectorField τ hτ hτT B (initialData D δ hδ ξ hs)).raw_smooth |
| 87 | ⟨t,t.property.1,t.property.2.trans hτT.le⟩).differentiable (by simp) (0,0) |
| 88 | have hzero : ∀ y, A (y,0)=0 := by |
| 89 | intro y |
| 90 | change vector τ hτ hτT B (initialData D δ hδ ξ hs) (t,(y,0))=0 |
| 91 | rw [vector_compact_wave_history] |
| 92 | simp [profile] |
| 93 | have ha : HasDerivAt (fun θ : ℝ => A (0,θ)) (δ⁻¹ • B.coefficients.labelVelocity 0 ξ t) 0 := by |
| 94 | simpa only [A,innerCutoff_zero,one_mul] using |
| 95 | angular_derivative_zero_history τ hτ hτT B δ hδ ξ hs t 0 |
| 96 | have h := zero_phase_graph_hasFDerivAt A _ D.m₀ hA hzero ha (α/k) k |
| 97 | have hc : α/k*k=α := by field_simp |
| 98 | rw [hc] at h |
| 99 | convert! h using 1 |
| 100 | apply ContinuousLinearMap.ext |
| 101 | intro v |
| 102 | simp only [smul_apply,rankOne_apply,smul_smul] |
| 103 | congr 1 |
| 104 | rw [div_eq_mul_inv] |
| 105 | ring |
| 106 | |
| 107 | /-- The physical gradient uses the actual inverse Jacobian, producing the |
| 108 | normal F⁻ᵀm₀ rather than the initial direction m₀. -/ |
| 109 | theorem historyWave_physical_hasFDerivAt (α k : ℝ) (hk : k ≠ 0) |
| 110 | (t : Icc (0 : ℝ) τ) (X Y : Space → Space) |
| 111 | (hX : HasFDerivAt X (D.F.field ⟨t,t.property.1,t.property.2.trans hτT.le⟩ 0) 0) |
| 112 | (hY : DifferentiableAt ℝ Y (X 0)) (hleft : ∀ y, Y (X y)=y) : |
| 113 | HasFDerivAt (fun x => historyWave τ hτ hτT B δ hδ ξ hs α k t (Y x)) |
| 114 | ((α/δ) • rankOne ℝ (B.coefficients.labelVelocity 0 ξ t) |
| 115 | (D.normal.field ⟨t,t.property.1,t.property.2.trans hτT.le⟩ 0)) (X 0) := by |
| 116 | let tg : Icc (0 : ℝ) D.T := ⟨t,t.property.1,t.property.2.trans hτT.le⟩ |
| 117 | have he : (Y ∘ X) = id := funext hleft |
| 118 | have hdY := EulerLagrangian.derivative_pullback_inverse Y X (D.deformationEquiv tg 0) 0 hX hY |
| 119 | rw [he,fderiv_id,id_comp] at hdY |
| 120 | have hy : HasFDerivAt Y (D.deformationEquiv tg 0).symm.toContinuousLinearMap (X 0) := |
| 121 | hdY ▸ hY.hasFDerivAt |
| 122 | have hp : HasFDerivAt (historyWave τ hτ hτT B δ hδ ξ hs α k t) |
| 123 | ((α/δ) • rankOne ℝ (B.coefficients.labelVelocity 0 ξ t) D.m₀) (Y (X 0)) := by |
| 124 | rw [hleft] |
| 125 | exact historyWave_hasFDerivAt τ hτ hτT B δ hδ ξ hs α k hk t |
| 126 | convert! hp.comp (X 0) hy using 1 |
| 127 | apply ContinuousLinearMap.ext |
| 128 | intro v |
| 129 | simp only [smul_apply,comp_apply,rankOne_apply] |
| 130 | congr 2 |
| 131 | exact (D.FInv.field tg 0).adjoint_inner_left v D.m₀ |
| 132 | |
| 133 | theorem historyWave_physical_norm (α k : ℝ) (hα : 0 ≤ α) (hk : k ≠ 0) |
| 134 | (t : Icc (0 : ℝ) τ) (X Y : Space → Space) |
| 135 | (hX : HasFDerivAt X (D.F.field ⟨t,t.property.1,t.property.2.trans hτT.le⟩ 0) 0) |
| 136 | (hY : DifferentiableAt ℝ Y (X 0)) (hleft : ∀ y, Y (X y)=y) : |
| 137 | ‖fderiv ℝ (fun x => historyWave τ hτ hτT B δ hδ ξ hs α k t (Y x)) (X 0)‖ = |
| 138 | (α/δ) * (‖B.coefficients.labelVelocity 0 ξ t‖ * |
| 139 | ‖D.normal.field ⟨t,t.property.1,t.property.2.trans hτT.le⟩ 0‖) := by |
| 140 | rw [(historyWave_physical_hasFDerivAt τ hτ hτT B δ hδ ξ hs α k hk t X Y hX hY hleft).fderiv, |
| 141 | norm_smul,Real.norm_eq_abs,abs_of_nonneg (div_nonneg hα hδ.le),norm_rankOne] |
| 142 | |
| 143 | end EulerPacketPrimaryShear |