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.ParentPacketSourceData |
| 2 | |
| 3 | /-! The coefficient factory agrees with the physical velocity gradient |
| 4 | and pressure Hessian. The only matching data are the literal Lagrangian |
| 5 | velocity and acceleration laws, not separate coefficient identities. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace EulerParentPacketFrames |
| 10 | |
| 11 | open Set ContinuousLinearMap InnerProductSpace EulerSmoothLimit EulerMeanCoefficients |
| 12 | EulerMeanBoundary EulerMeanHarmonic |
| 13 | open scoped ContDiff |
| 14 | |
| 15 | namespace Parent |
| 16 | |
| 17 | variable (G : Parent) |
| 18 | |
| 19 | def position (t : Icc (0 : ℝ) G.T) (x : Space) : Space := |
| 20 | x+G.displacement.field t x |
| 21 | |
| 22 | @[simp] theorem position_initial (x : Space) : G.position G.zeroTime x=x := by |
| 23 | change x+G.displacement.field ⟨0,le_rfl,G.T_pos.le⟩ x=x |
| 24 | rw [G.initial,add_zero] |
| 25 | |
| 26 | theorem position_hasFDerivAt (t : Icc (0 : ℝ) G.T) (x : Space) : |
| 27 | HasFDerivAt (G.position t) (ContinuousLinearMap.id ℝ Space+ |
| 28 | fderiv ℝ (G.displacement.field t : Space → Space) x) x := |
| 29 | (hasFDerivAt_id x).add ((G.displacement.smooth t).differentiable (by norm_num)).differentiableAt.hasFDerivAt |
| 30 | |
| 31 | theorem position_frame (t : Icc (0 : ℝ) G.T) (x : Space) : |
| 32 | HasFDerivAt (G.position t) (G.frame.field t x) (G.ell • x) := by |
| 33 | rw [G.frame_apply] |
| 34 | exact G.position_hasFDerivAt t (G.ell • x) |
| 35 | |
| 36 | variable (u force : Icc (0 : ℝ) G.T → Space → Space) |
| 37 | (hu : ∀ t x, DifferentiableAt ℝ (u t) x) |
| 38 | (hf : ∀ t x, DifferentiableAt ℝ (force t) x) |
| 39 | (hvelocity : ∀ t x, G.velocity.field t x=u t (G.position t x)) |
| 40 | (hacceleration : ∀ t x, G.acceleration.field t x= -(force t (G.position t x))) |
| 41 | |
| 42 | include hu hvelocity in |
| 43 | theorem first_physical (t : Icc (0 : ℝ) G.T) (x : Space) : |
| 44 | G.first.field t x = |
| 45 | (fderiv ℝ (u t) (G.position t (G.ell • x))).comp (G.frame.field t x) := by |
| 46 | rw [G.first_apply] |
| 47 | have he : (G.velocity.field t : Space → Space) = (u t) ∘ G.position t := |
| 48 | funext (hvelocity t) |
| 49 | rw [he] |
| 50 | exact ((hu t (G.position t (G.ell • x))).hasFDerivAt.comp (G.ell • x) |
| 51 | (G.position_frame t x)).fderiv |
| 52 | |
| 53 | include hf hacceleration in |
| 54 | theorem second_physical (t : Icc (0 : ℝ) G.T) (x : Space) : |
| 55 | G.second.field t x = |
| 56 | -((fderiv ℝ (force t) (G.position t (G.ell • x))).comp (G.frame.field t x)) := by |
| 57 | rw [G.second_apply] |
| 58 | have he : (G.acceleration.field t : Space → Space) = fun y => -(force t (G.position t y)) := |
| 59 | funext (hacceleration t) |
| 60 | rw [he] |
| 61 | exact (((hf t (G.position t (G.ell • x))).hasFDerivAt.comp (G.ell • x) |
| 62 | (G.position_frame t x)).neg).fderiv |
| 63 | |
| 64 | include hu hvelocity in |
| 65 | theorem strain_physical (t : Icc (0 : ℝ) G.T) (x : Space) : |
| 66 | G.strain.field t x = fderiv ℝ (u t) (G.position t (G.ell • x)) := by |
| 67 | rw [G.strain_apply,G.first_physical u hu hvelocity] |
| 68 | apply ContinuousLinearMap.ext |
| 69 | intro v |
| 70 | simp only [comp_apply,G.inverse_right] |
| 71 | |
| 72 | include hf hacceleration in |
| 73 | theorem curvature_physical (t : Icc (0 : ℝ) G.T) (x : Space) : |
| 74 | G.curvature.field t x = fderiv ℝ (force t) (G.position t (G.ell • x)) := by |
| 75 | rw [G.curvature_apply,G.second_physical force hf hacceleration] |
| 76 | apply ContinuousLinearMap.ext |
| 77 | intro v |
| 78 | simp only [neg_apply,comp_apply,G.inverse_right,neg_neg] |
| 79 | |
| 80 | include hu hvelocity in |
| 81 | theorem initialStrain_physical (x : Space) : |
| 82 | G.initialStrain.field x = fderiv ℝ (u G.zeroTime) (G.ell • x) := by |
| 83 | rw [G.initialStrain_apply,G.first_physical u hu hvelocity,G.position_initial,G.frame_initial] |
| 84 | exact ContinuousLinearMap.comp_id _ |
| 85 | |
| 86 | /-- The source low-order hypotheses follow from the actual physical |
| 87 | gradient at time zero and the actual physical pressure-force derivative. -/ |
| 88 | def lowBoundsOfPhysical (Be Bc L r K : ℝ) |
| 89 | (hBe : 0 ≤ Be) (hBc : 0 ≤ Bc) (hL : boundaryLocalizationC1*Bc ≤ L) |
| 90 | (hr : 0 ≤ r) (hrq : r ≤ 1/4) (hK : 0 ≤ K) |
| 91 | (hexterior : ∀ x, r ≤ ‖x‖ → ∀ v : Space, |
| 92 | -Be*‖v‖^2 ≤ ⟪fderiv ℝ (u G.zeroTime) x v,v⟫_ℝ) |
| 93 | (hcore : ∀ x, ‖x‖ < r → ∀ v : Space, |
| 94 | -Bc*‖v‖^2 ≤ ⟪fderiv ℝ (u G.zeroTime) x v,v⟫_ℝ) |
| 95 | (hpressure : ∀ t x v, ⟪fderiv ℝ (force t) x v,v⟫_ℝ ≤ K*‖v‖^2) |
| 96 | (hsmall : K*(G.T^2/2)+Be*G.T+boundaryLocalizationC2*Bc*r^3*G.T ≤ 1/2) : |
| 97 | LowBounds G where |
| 98 | Be := Be |
| 99 | Bc := Bc |
| 100 | L := L |
| 101 | r := r |
| 102 | K := K |
| 103 | Be_nonneg := hBe |
| 104 | Bc_nonneg := hBc |
| 105 | L_lower := hL |
| 106 | r_nonneg := hr |
| 107 | r_le_quarter := hrq |
| 108 | K_nonneg := hK |
| 109 | exterior_lower x hx v := by |
| 110 | rw [G.initialStrain_physical u hu hvelocity] |
| 111 | exact hexterior (G.ell • x) hx v |
| 112 | core_lower x hx v := by |
| 113 | rw [G.initialStrain_physical u hu hvelocity] |
| 114 | exact hcore (G.ell • x) hx v |
| 115 | curvature_upper t x v := by |
| 116 | rw [G.curvature_physical force hf hacceleration] |
| 117 | exact hpressure t (G.position t (G.ell • x)) v |
| 118 | small := hsmall |
| 119 | |
| 120 | end Parent |
| 121 | end EulerParentPacketFrames |