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.ParentPacketExactEuler |
| 2 | |
| 3 | /-! The actual scalar pressure of the corrected source packet has the |
| 4 | constructed continuous physical pressure force, at every time. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerParentPacketFrames.Parent |
| 9 | |
| 10 | open Set EulerSmoothLimit EulerLiftedGradientSpace EulerTransverseFrameCoordinates |
| 11 | EulerAllOrderCorrectionData EulerAllOrderDriftCorrection EulerPacketCorrectionCoefficients |
| 12 | EulerPacketPhysicalTransform EulerLagrangian |
| 13 | open scoped ContDiff |
| 14 | |
| 15 | private local instance : NormedAddCommGroup Space := inferInstance |
| 16 | private local instance : NormedSpace ℝ Space := inferInstance |
| 17 | private local instance : NormedAddCommGroup (Space →L[ℝ] Space) := inferInstance |
| 18 | private local instance : NormedSpace ℝ (Space →L[ℝ] Space) := inferInstance |
| 19 | |
| 20 | variable (A : EulerParentPacketFrames.Parent) |
| 21 | |
| 22 | theorem transformedForce_continuous |
| 23 | (Y force g : Icc (0 : ℝ) A.T → Space → Space) |
| 24 | (hY : Continuous (Function.uncurry Y)) (hforce : Continuous (Function.uncurry force)) |
| 25 | (hg : Continuous (Function.uncurry g)) : |
| 26 | Continuous (fun q : Icc (0 : ℝ) A.T × Space => force q.1 q.2 + |
| 27 | A.ell • (A.inverse.field q.1 (A.ell⁻¹ • Y q.1 q.2)).adjoint |
| 28 | (g q.1 (A.ell⁻¹ • Y q.1 q.2))) := by |
| 29 | let r : Icc (0 : ℝ) A.T × Space → Space := fun q => A.ell⁻¹ • Y q.1 q.2 |
| 30 | have hr : Continuous r := hY.const_smul A.ell⁻¹ |
| 31 | have hI₀ : Continuous (fun q : Icc (0 : ℝ) A.T × Space => A.inverse.field q.1 q.2) := by |
| 32 | have hc : Continuous (fun q : Icc (0 : ℝ) A.T × Space => ((q.1 : ℝ),q.2)) := |
| 33 | (continuous_subtype_val.comp continuous_fst).prodMk continuous_snd |
| 34 | have h := (A.inverse.realField_joint_continuous A.T A.T_pos.le).comp |
| 35 | hc |
| 36 | simpa only [Function.comp_def,Function.uncurry_def,SmoothTimeField.realField_apply] using h |
| 37 | have hmap : Continuous (fun q : Icc (0 : ℝ) A.T × Space => (q.1,r q)) := |
| 38 | continuous_fst.prodMk hr |
| 39 | have hIn := hI₀.comp (f := fun q : Icc (0 : ℝ) A.T × Space => (q.1,r q)) hmap |
| 40 | have ha : Continuous (fun L : Space →L[ℝ] Space => L.adjoint) := |
| 41 | (ContinuousLinearMap.adjoint (𝕜 := ℝ) (E := Space) (F := Space)).continuous |
| 42 | have hI := ha.comp (f := fun q : Icc (0 : ℝ) A.T × Space => A.inverse.field q.1 (r q)) hIn |
| 43 | have hP := hg.comp (f := fun q : Icc (0 : ℝ) A.T × Space => (q.1,r q)) hmap |
| 44 | have hterm := (hI.clm_apply hP).const_smul A.ell |
| 45 | exact hforce.add hterm |
| 46 | |
| 47 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 48 | (m : Space) (hm : ‖m‖=1) (J : U ≃ₗᵢ[ℝ] referencePlane m) |
| 49 | (support : Set Space) (hSupport : IsCompact support) |
| 50 | |
| 51 | |
| 52 | variable {P : ℝ} [Fact (0 < P)] {κ : ℝ} {hκ : |κ| ≤ 1} |
| 53 | {Z R : FieldTower P A.T} |
| 54 | (B : Budget P A.T_pos (correctionData (A.transverseData m hm J support hSupport) P κ hκ Z R)) |
| 55 | (residual : ApproximationResidual P A.T_pos (correctionData (A.transverseData m hm J support hSupport) P κ hκ Z R)) |
| 56 | |
| 57 | |
| 58 | def exactPacketForce (k : ℝ) (Y force : Icc (0 : ℝ) A.T → Space → Space) |
| 59 | (t : Icc (0 : ℝ) A.T) (x : Space) : Space := |
| 60 | force t x + A.ell • (A.inverse.field t (A.ell⁻¹ • Y t x)).adjoint |
| 61 | (((exactPacketOfResidual P B residual)).graphPressure k t (A.ell⁻¹ • Y t x)) |
| 62 | |
| 63 | theorem exactPacketForce_continuous (k : ℝ) (Y force : Icc (0 : ℝ) A.T → Space → Space) |
| 64 | (hY : Continuous (Function.uncurry Y)) (hforce : Continuous (Function.uncurry force)) : |
| 65 | Continuous (Function.uncurry (A.exactPacketForce m hm J support hSupport B residual k Y force)) := by |
| 66 | exact A.transformedForce_continuous Y force |
| 67 | ((exactPacketOfResidual P B residual).graphPressure k) hY hforce |
| 68 | ((exactPacketOfResidual P B residual).graphPressure_joint_continuous k) |
| 69 | |
| 70 | variable (k : ℝ) (hk : k*κ=1) (Y : Icc (0 : ℝ) A.T → Space → Space) |
| 71 | (hXY : ∀ t x, A.position t (Y t x)=x) (hY : Continuous (Function.uncurry Y)) |
| 72 | (p : ℝ × Space → ℝ) (force : Icc (0 : ℝ) A.T → Space → Space) |
| 73 | (hp : ∀ (t : Icc (0 : ℝ) A.T) x, DifferentiableAt ℝ (fun y => p (t,y)) x) |
| 74 | (hgradient : ∀ (t : Icc (0 : ℝ) A.T) x, gradient (fun y => p (t,y)) x=force t x) |
| 75 | |
| 76 | include hk hXY hY hp hgradient in |
| 77 | theorem normalizedExactPressure_gradient (t : Icc (0 : ℝ) A.T) (x : Space) : |
| 78 | gradient (fun y => A.normalizedExactPressure m hm J support hSupport B residual k Y p (t,y)) x = |
| 79 | A.ell⁻¹ • force t (A.ell • x) + |
| 80 | (A.inverse.field t (A.packetInverse Y (t,x))).adjoint |
| 81 | (((exactPacketOfResidual P B residual)).graphPressure k t (A.packetInverse Y (t,x))) := by |
| 82 | have hs := exact_physicalPressure_smooth (A.transverseData m hm J support hSupport) (exactPacketOfResidual P B residual) |
| 83 | (fun s y => A.packetPosition (s,y)) (fun s y => A.packetInverse Y (s,y)) |
| 84 | (fun s y => A.packetPosition_spatial s y) |
| 85 | (fun s y => A.packetInverse_right Y hXY (s,y)) |
| 86 | (A.packetInverse_time_continuous Y hY) k hk (A.packetInverse Y) (fun _ _ => rfl) t |
| 87 | have hg := exact_physicalPressure_gradient (A.transverseData m hm J support hSupport) (exactPacketOfResidual P B residual) |
| 88 | (fun s y => A.packetPosition (s,y)) (fun s y => A.packetInverse Y (s,y)) |
| 89 | (fun s y => A.packetPosition_spatial s y) |
| 90 | (fun s y => A.packetInverse_right Y hXY (s,y)) |
| 91 | (A.packetInverse_time_continuous Y hY) k hk (A.packetInverse Y) (fun _ _ => rfl) t x |
| 92 | have hn := EulerSpatialRescaling.pressure_gradient A.ell⁻¹ (inv_ne_zero A.ell_pos.ne') p (t,x) |
| 93 | (by simpa only [inv_inv] using hp t (A.ell • x)) |
| 94 | simp only [inv_inv] at hn |
| 95 | change gradient (fun y => A.normalizedPressure p (t,y)) x = |
| 96 | A.ell⁻¹ • gradient (fun y => p (t,y)) (A.ell • x) at hn |
| 97 | change gradient (fun y => A.normalizedPressure p (t,y)+ |
| 98 | physicalPressure (((exactPacketOfResidual P B residual)).rawGraphPotential k) (A.packetInverse Y) (t,y)) x=_ |
| 99 | erw [gradient_add _ _ x (A.normalizedPressure_differentiableAt p t x (hp t (A.ell • x))) |
| 100 | (hs.differentiable (by simp) x),hn,hg,hgradient] |
| 101 | change A.ell⁻¹ • force t (A.ell • x) + κ • |
| 102 | (A.inverse.field t (A.packetInverse Y (t,x))).adjoint |
| 103 | (((exactPacketOfResidual P B residual)).pressure.pointField t (EulerGraphPressurePotential.cylinderGraph P k m (A.packetInverse Y (t,x)))) = _ |
| 104 | apply congrArg (fun z => A.ell⁻¹ • force t (A.ell • x) + z) |
| 105 | exact ((A.inverse.field t (A.packetInverse Y (t,x))).adjoint.map_smul κ |
| 106 | ((exactPacketOfResidual P B residual).pressure.pointField t |
| 107 | (EulerGraphPressurePotential.cylinderGraph P k m (A.packetInverse Y (t,x))))).symm |
| 108 | |
| 109 | include hk hXY hY hp hgradient in |
| 110 | theorem exactPacketPressure_gradient (t : Icc (0 : ℝ) A.T) (x : Space) : |
| 111 | gradient (fun y => A.exactPacketPressure m hm J support hSupport B residual k Y p (t,y)) x = |
| 112 | A.exactPacketForce m hm J support hSupport B residual k Y force t x := by |
| 113 | have hg := EulerSpatialRescaling.pressure_gradient A.ell A.ell_pos.ne' |
| 114 | (A.normalizedExactPressure m hm J support hSupport B residual k Y p) (t,x) |
| 115 | (A.normalizedExactPressure_differentiableAt m hm J support hSupport B residual k hk Y hXY hY p hp t |
| 116 | (A.ell⁻¹ • x)) |
| 117 | change gradient (fun y => EulerSpatialRescaling.pressure A.ell |
| 118 | (A.normalizedExactPressure m hm J support hSupport B residual k Y p) (t,y)) x=_ |
| 119 | rw [hg,A.normalizedExactPressure_gradient m hm J support hSupport B residual k hk Y hXY hY |
| 120 | p force hp hgradient t (A.ell⁻¹ • x)] |
| 121 | have hx : A.ell • (A.ell⁻¹ • x)=x := by |
| 122 | rw [smul_smul,mul_inv_cancel₀ A.ell_pos.ne',one_smul] |
| 123 | have hy : A.packetInverse Y (t,A.ell⁻¹ • x)=A.ell⁻¹ • Y t x := by |
| 124 | simp only [packetInverse,projIcc_of_mem A.T_pos.le t.property,hx] |
| 125 | rw [hx,hy,smul_add,smul_smul,mul_inv_cancel₀ A.ell_pos.ne',one_smul] |
| 126 | rfl |
| 127 | |
| 128 | end EulerParentPacketFrames.Parent |