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.ParentNormalizedEuler |
| 2 | import Euler.PacketExactEulerianField |
| 3 | |
| 4 | /-! The actual source packet is Euler in the physical parent coordinates. |
| 5 | The normalized frame and inverse identities are supplied by the parent |
| 6 | construction, and the final physical scaling is explicit. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace EulerParentPacketFrames.Parent |
| 11 | |
| 12 | open Set Filter EulerSmoothLimit EulerLiftedGradientSpace EulerTransverseFrameCoordinates |
| 13 | EulerAllOrderCorrectionData EulerAllOrderDriftCorrection EulerPacketCorrectionCoefficients |
| 14 | EulerPacketPhysicalTransform EulerLagrangian |
| 15 | open scoped ContDiff Topology |
| 16 | |
| 17 | variable (A : EulerParentPacketFrames.Parent) |
| 18 | |
| 19 | def packetFrame (q : ℝ × Space) : Space →L[ℝ] Space := |
| 20 | A.frame.realField A.T A.T_pos.le q.1 q.2 |
| 21 | |
| 22 | theorem packetInverseCoordinates_differentiableAt |
| 23 | (Y : Icc (0 : ℝ) A.T → Space → Space) |
| 24 | (hXY : ∀ t x, A.position t (Y t x)=x) (hY : Continuous (Function.uncurry Y)) |
| 25 | (t : ℝ) (ht : t ∈ Ioo 0 A.T) (x : Space) : |
| 26 | DifferentiableAt ℝ (inverseCoordinates (A.packetInverse Y)) (t,x) := |
| 27 | (A.packetInverseLift_contDiffAt_two Y hXY hY t ht x).differentiableAt (by norm_num) |
| 28 | |
| 29 | theorem packetInverse_time_continuous |
| 30 | (Y : Icc (0 : ℝ) A.T → Space → Space) (hY : Continuous (Function.uncurry Y)) : |
| 31 | Continuous (fun q : Icc (0 : ℝ) A.T × Space => A.packetInverse Y (q.1,q.2)) := |
| 32 | (A.packetInverse_joint_continuous Y hY).comp |
| 33 | ((continuous_subtype_val.comp continuous_fst).prodMk continuous_snd) |
| 34 | |
| 35 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 36 | (m : Space) (hm : ‖m‖=1) (J : U ≃ₗᵢ[ℝ] referencePlane m) |
| 37 | (support : Set Space) (hSupport : IsCompact support) |
| 38 | |
| 39 | |
| 40 | theorem packetFrame_match (t : Icc (0 : ℝ) A.T) (x : Space) : |
| 41 | A.packetFrame (t,x)=((A.transverseData m hm J support hSupport)).F.field t x := |
| 42 | A.frame.realField_apply A.T A.T_pos.le t x |
| 43 | |
| 44 | variable {P : ℝ} [Fact (0 < P)] {κ : ℝ} {hκ : |κ| ≤ 1} |
| 45 | {Z R : FieldTower P A.T} |
| 46 | (B : Budget P A.T_pos (correctionData (A.transverseData m hm J support hSupport) P κ hκ Z R)) |
| 47 | (residual : ApproximationResidual P A.T_pos (correctionData (A.transverseData m hm J support hSupport) P κ hκ Z R)) |
| 48 | |
| 49 | |
| 50 | def normalizedExactVelocity (k : ℝ) (Y : Icc (0 : ℝ) A.T → Space → Space) |
| 51 | (u : ℝ × Space → Space) (q : ℝ × Space) : Space := |
| 52 | A.normalizedVelocity u q + physicalVelocity κ k m A.packetFrame ((exactPacketOfResidual P B residual)).rawVelocity (A.packetInverse Y) q |
| 53 | |
| 54 | def normalizedExactPressure (k : ℝ) (Y : Icc (0 : ℝ) A.T → Space → Space) |
| 55 | (p : ℝ × Space → ℝ) (q : ℝ × Space) : ℝ := |
| 56 | A.normalizedPressure p q + physicalPressure (((exactPacketOfResidual P B residual)).rawGraphPotential k) (A.packetInverse Y) q |
| 57 | |
| 58 | def exactPacketVelocity (k : ℝ) (Y : Icc (0 : ℝ) A.T → Space → Space) (u : ℝ × Space → Space) : |
| 59 | ℝ × Space → Space := |
| 60 | EulerSpatialRescaling.velocity A.ell |
| 61 | (A.normalizedExactVelocity m hm J support hSupport B residual k Y u) |
| 62 | |
| 63 | def exactPacketPressure (k : ℝ) (Y : Icc (0 : ℝ) A.T → Space → Space) (p : ℝ × Space → ℝ) : |
| 64 | ℝ × Space → ℝ := |
| 65 | EulerSpatialRescaling.pressure A.ell |
| 66 | (A.normalizedExactPressure m hm J support hSupport B residual k Y p) |
| 67 | |
| 68 | variable (k : ℝ) (hk : k*κ=1) (Y : Icc (0 : ℝ) A.T → Space → Space) |
| 69 | (hYX : ∀ t x, Y t (A.position t x)=x) |
| 70 | (hXY : ∀ t x, A.position t (Y t x)=x) (hY : Continuous (Function.uncurry Y)) |
| 71 | (u : ℝ × Space → Space) (p : ℝ × Space → ℝ) |
| 72 | (hvelocity : ∀ (t : Icc (0 : ℝ) A.T) x, A.velocity.field t x=u (t,A.position t x)) |
| 73 | (hu : ∀ t ∈ Ioo 0 A.T, ∀ x, DifferentiableAt ℝ u (t,x)) |
| 74 | (hp : ∀ (t : Icc (0 : ℝ) A.T) x, DifferentiableAt ℝ (fun y => p (t,y)) x) |
| 75 | (heuler : ∀ t ∈ Ioo 0 A.T, ∀ x, momentumResidual u p (t,x)=0) |
| 76 | |
| 77 | include hYX hXY hY hu in |
| 78 | theorem normalizedExactVelocity_differentiableAt (t : ℝ) (ht : t ∈ Ioo 0 A.T) (x : Space) : |
| 79 | DifferentiableAt ℝ (A.normalizedExactVelocity m hm J support hSupport B residual k Y u) (t,x) := by |
| 80 | let y := A.packetInverse Y (t,x) |
| 81 | have hy : A.packetPosition (t,y)=x := A.packetInverse_right Y hXY (t,x) |
| 82 | have hd := exact_source_velocity_differentiableAt (A.transverseData m hm J support hSupport) (exactPacketOfResidual P B residual) k A.packetFrame A.packetPosition |
| 83 | (A.packetInverse Y) t ht y (A.packetInverse_left Y hYX (t,y)) |
| 84 | (A.packetInverseCoordinates_differentiableAt Y hXY hY t ht (A.packetPosition (t,y))) |
| 85 | (A.packetPosition_contDiffAt_two t ht y) (A.packetPosition_frame_eventually t ht y) |
| 86 | rw [hy] at hd |
| 87 | exact (A.normalizedVelocity_differentiableAt u t x (hu t ht (A.ell • x))).add hd |
| 88 | |
| 89 | include hXY hY hp hk in |
| 90 | theorem normalizedExactPressure_differentiableAt (t : Icc (0 : ℝ) A.T) (x : Space) : |
| 91 | DifferentiableAt ℝ |
| 92 | (fun y => A.normalizedExactPressure m hm J support hSupport B residual k Y p (t,y)) x := by |
| 93 | have hs := exact_physicalPressure_smooth (A.transverseData m hm J support hSupport) (exactPacketOfResidual P B residual) |
| 94 | (fun s y => A.packetPosition (s,y)) (fun s y => A.packetInverse Y (s,y)) |
| 95 | (fun s y => A.packetPosition_spatial s y) |
| 96 | (fun s y => A.packetInverse_right Y hXY (s,y)) |
| 97 | (A.packetInverse_time_continuous Y hY) k hk (A.packetInverse Y) (fun _ _ => rfl) t |
| 98 | exact (A.normalizedPressure_differentiableAt p t x (hp t (A.ell • x))).add |
| 99 | (hs.differentiable (by simp) x) |
| 100 | |
| 101 | include hYX hXY hY hvelocity hu hp heuler hk in |
| 102 | theorem normalizedExact_momentum (t : ℝ) (ht : t ∈ Ioo 0 A.T) (x : Space) : |
| 103 | momentumResidual (A.normalizedExactVelocity m hm J support hSupport B residual k Y u) |
| 104 | (A.normalizedExactPressure m hm J support hSupport B residual k Y p) (t,x)=0 := by |
| 105 | let y := A.packetInverse Y (t,x) |
| 106 | have hy : A.packetPosition (t,y)=x := A.packetInverse_right Y hXY (t,x) |
| 107 | have hh := exact_source_momentum (A.transverseData m hm J support hSupport) (exactPacketOfResidual P B residual) k hk A.packetFrame (A.normalizedVelocity u) |
| 108 | (A.normalizedPressure p) A.packetPosition (A.packetInverse Y) |
| 109 | (A.packetFrame_match m hm J support hSupport) t ht y |
| 110 | (fun s z => A.packetInverse_left Y hYX (s,z)) |
| 111 | (A.packetInverseCoordinates_differentiableAt Y hXY hY t ht (A.packetPosition (t,y))) |
| 112 | (A.packetPosition_contDiffAt_two t ht y) |
| 113 | (A.packetPosition_frame_eventually t ht y) |
| 114 | (A.packetPosition_velocity_eventually u hvelocity t ht y) |
| 115 | (A.normalizedVelocity_differentiableAt u t (A.packetPosition (t,y)) |
| 116 | (hu t ht (A.ell • A.packetPosition (t,y)))) |
| 117 | (A.normalizedPressure_differentiableAt p t (A.packetPosition (t,y)) |
| 118 | (hp ⟨t,ht.1.le,ht.2.le⟩ (A.ell • A.packetPosition (t,y)))) |
| 119 | (A.normalizedMomentum_zero u p t (A.packetPosition (t,y)) |
| 120 | (hu t ht (A.ell • A.packetPosition (t,y))) |
| 121 | (hp ⟨t,ht.1.le,ht.2.le⟩ (A.ell • A.packetPosition (t,y))) |
| 122 | (heuler t ht (A.ell • A.packetPosition (t,y)))) |
| 123 | rw [hy] at hh |
| 124 | exact hh |
| 125 | |
| 126 | include hYX hXY hY hu in |
| 127 | theorem exactPacketVelocity_differentiableAt (t : ℝ) (ht : t ∈ Ioo 0 A.T) (x : Space) : |
| 128 | DifferentiableAt ℝ (A.exactPacketVelocity m hm J support hSupport B residual k Y u) (t,x) := |
| 129 | (EulerSpatialRescaling.velocity_hasFDerivAt A.ell |
| 130 | (A.normalizedExactVelocity m hm J support hSupport B residual k Y u) (t,x) |
| 131 | (A.normalizedExactVelocity_differentiableAt m hm J support hSupport B residual k Y |
| 132 | hYX hXY hY u hu t ht (A.ell⁻¹ • x))).differentiableAt |
| 133 | |
| 134 | include hYX hXY hY hvelocity hu hp heuler hk in |
| 135 | theorem exactPacket_momentum (t : ℝ) (ht : t ∈ Ioo 0 A.T) (x : Space) : |
| 136 | momentumResidual (A.exactPacketVelocity m hm J support hSupport B residual k Y u) |
| 137 | (A.exactPacketPressure m hm J support hSupport B residual k Y p) (t,x)=0 := by |
| 138 | apply EulerSpatialRescaling.momentumResidual_zero A.ell A.ell_pos.ne' |
| 139 | (A.normalizedExactVelocity m hm J support hSupport B residual k Y u) |
| 140 | (A.normalizedExactPressure m hm J support hSupport B residual k Y p) (t,x) |
| 141 | · exact A.normalizedExactVelocity_differentiableAt m hm J support hSupport B residual k Y |
| 142 | hYX hXY hY u hu t ht (A.ell⁻¹ • x) |
| 143 | · exact A.normalizedExactPressure_differentiableAt m hm J support hSupport B residual k hk Y |
| 144 | hXY hY p hp ⟨t,ht.1.le,ht.2.le⟩ (A.ell⁻¹ • x) |
| 145 | · exact A.normalizedExact_momentum m hm J support hSupport B residual k hk Y |
| 146 | hYX hXY hY u p hvelocity hu hp heuler t ht (A.ell⁻¹ • x) |
| 147 | |
| 148 | theorem exactPacketVelocity_eq_corrected (t : Icc (0 : ℝ) A.T) (x : Space) : |
| 149 | A.exactPacketVelocity m hm J support hSupport B residual k Y u (t,x) = |
| 150 | A.correctedPacketVelocity B k Y (fun s y => u (s,y)) t x := by |
| 151 | change EulerSpatialRescaling.velocity A.ell |
| 152 | (fun q => A.normalizedVelocity u q + physicalVelocity κ k m A.packetFrame |
| 153 | (exactPacketOfResidual P B residual).rawVelocity (A.packetInverse Y) q) (t,x)=_ |
| 154 | rw [A.normalizedVelocity_add_restore] |
| 155 | exact (A.correctedPacketVelocity_eq_physical B k Y (fun s y => u (s,y)) t x).symm |
| 156 | |
| 157 | end EulerParentPacketFrames.Parent |