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.PacketStageRestriction |
| 2 | import Euler.ParentNeighborThreshold |
| 3 | import Euler.ParentPacketGeometryGuards |
| 4 | import Euler.ParentForwardGeometryGuards |
| 5 | |
| 6 | /-! The actual next packet geometry is constructed from the current |
| 7 | finite stage. Source normals, history bounds and the neighboring-label |
| 8 | guards are derived from its state and the one fixed scale choice. -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | open scoped ContDiff |
| 13 | |
| 14 | namespace EulerParentPacketFrames.Evolution |
| 15 | |
| 16 | open Set InnerProductSpace EulerSmoothLimit |
| 17 | |
| 18 | theorem pressure_smooth {A : Parent} (E : Evolution A) (t : Icc (0 : ℝ) A.T) : |
| 19 | ContDiff ℝ ∞ (fun x => E.pressure (t,x)) := by |
| 20 | apply contDiff_infty_iff_fderiv.mpr |
| 21 | refine ⟨fun x => E.pressure_differentiable t x, ?_⟩ |
| 22 | have he : fderiv ℝ (fun x => E.pressure (t,x))= |
| 23 | (toDual ℝ Space).toContinuousLinearMap ∘ E.force t := by |
| 24 | funext x |
| 25 | change fderiv ℝ (fun y => E.pressure (t,y)) x=(toDual ℝ Space) (E.force t x) |
| 26 | rw [← toDual_gradient,E.pressure_gradient] |
| 27 | rw [he] |
| 28 | exact (toDual ℝ Space).toContinuousLinearMap.contDiff.comp (E.force_smooth t) |
| 29 | |
| 30 | end EulerParentPacketFrames.Evolution |
| 31 | |
| 32 | |
| 33 | namespace EulerPacketSourceGeometry.ParentFrame |
| 34 | |
| 35 | open EulerTransversePacketProvider |
| 36 | |
| 37 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 38 | {D : Data U} {s t : ℝ} (P : ParentFrame D s) (h : s=t) |
| 39 | |
| 40 | def changeActivation : ParentFrame D t := h ▸ P |
| 41 | |
| 42 | @[simp] theorem changeActivation_a : (P.changeActivation h).a=P.a := by cases h; rfl |
| 43 | @[simp] theorem changeActivation_sigma : (P.changeActivation h).sigma=P.sigma := by cases h; rfl |
| 44 | @[simp] theorem changeActivation_shear : (P.changeActivation h).shear=P.shear := by cases h; rfl |
| 45 | @[simp] theorem changeActivation_G : (P.changeActivation h).G=P.G := by cases h; rfl |
| 46 | @[simp] theorem changeActivation_error : (P.changeActivation h).error=P.error := by cases h; rfl |
| 47 | @[simp] theorem changeActivation_horizon : (P.changeActivation h).horizon=P.horizon := by cases h; rfl |
| 48 | @[simp] theorem changeActivation_B : (P.changeActivation h).B=P.B := by cases h; rfl |
| 49 | @[simp] theorem changeActivation_m : (P.changeActivation h).m=P.m := by cases h; rfl |
| 50 | @[simp] theorem changeActivation_v : (P.changeActivation h).v=P.v := by cases h; rfl |
| 51 | |
| 52 | end EulerPacketSourceGeometry.ParentFrame |
| 53 | |
| 54 | |
| 55 | namespace EulerPacketInductionScales.Scales |
| 56 | |
| 57 | open Real EulerPacketSourceScaleSequence |
| 58 | |
| 59 | variable {c B : ℝ} (S : Scales c B) |
| 60 | |
| 61 | theorem previousShear_monotone : Monotone (previousShear S.J S.X) := by |
| 62 | apply monotone_nat_of_le_succ |
| 63 | intro n |
| 64 | have hp := S.previousShear_one n |
| 65 | have hs := S.shear_separation n |
| 66 | change previousShear S.J S.X n ≤ shear S.J S.X n |
| 67 | nlinarith only [hp,hs,sq_nonneg (previousShear S.J S.X n-1)] |
| 68 | |
| 69 | theorem previousShear_double_base {n : ℕ} (hn : n ≠ 0) : |
| 70 | 2*S.X^1000 ≤ previousShear S.J S.X n := by |
| 71 | have hm := S.previousShear_monotone (show 1 ≤ n by omega) |
| 72 | have hs := S.shear_separation 0 |
| 73 | have hp := S.previousShear_one 0 |
| 74 | change shear S.J S.X 0 ≤ previousShear S.J S.X n at hm |
| 75 | change (S.X^1000)^2 ≤ shear S.J S.X 0/4 at hs |
| 76 | change 1 ≤ S.X^1000 at hp |
| 77 | nlinarith only [hm,hs,hp,sq_nonneg (S.X^1000-1)] |
| 78 | |
| 79 | end EulerPacketInductionScales.Scales |
| 80 | |
| 81 | |
| 82 | namespace EulerPacketInduction.Stage |
| 83 | |
| 84 | open Set Real InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerParentPacketFrames |
| 85 | EulerPacketSourceGeometry EulerTransversePacketProvider EulerTransverseFrameCoordinates |
| 86 | EulerPacketInductionScales EulerPacketSourceScaleChoice EulerPacketSourceScaleSequence |
| 87 | EulerPacketSourceScaleActual EulerPacketBaseGuardScales EulerPacketLowConstants |
| 88 | EulerPacketNormalizedPrimary EulerParentNeighborThreshold EulerParentHistoryFrequency |
| 89 | EulerPacketSupport EulerTimeIntervalRestriction |
| 90 | |
| 91 | section General |
| 92 | |
| 93 | variable {c B : ℝ} {S : Scales c B} {n : ℕ} (P : Stage S n) |
| 94 | |
| 95 | theorem history_layer (hn : n ≠ 0) : 1 ≤ previousShear S.J S.X n*P.time := by |
| 96 | have hi : P.time⁻¹ ≤ previousShear S.J S.X n := |
| 97 | (P.time_reciprocal hn).trans |
| 98 | ((EulerPacketSourceParameterScales.base_inverse_time_le S.J S.j_one S.X S.x_one).trans |
| 99 | (S.previousShear_double_base hn)) |
| 100 | exact (div_le_iff₀ (P.time_pos hn)).mp (by simpa only [one_div] using hi) |
| 101 | |
| 102 | def joinedNormal (hn : n ≠ 0) : Space := |
| 103 | P.restrictedFrame.activationNormal (P.time_pos hn) P.time_lt_nextHorizon |
| 104 | |
| 105 | theorem joinedNormal_unit (hn : n ≠ 0) : ‖P.joinedNormal hn‖=1 := |
| 106 | P.restrictedFrame.activationNormal_unit (P.time_pos hn) P.time_lt_nextHorizon |
| 107 | |
| 108 | def joinedData (hn : n ≠ 0) : Data (referencePlane (P.joinedNormal hn)) := |
| 109 | P.restrictedFrame.activationData (P.time_pos hn) P.time_lt_nextHorizon |
| 110 | |
| 111 | def joinedFrame (hn : n ≠ 0) : ParentFrame (P.joinedData hn) P.time := |
| 112 | P.restrictedFrame.activationFrame (P.time_pos hn) P.time_lt_nextHorizon |
| 113 | |
| 114 | def joinedHistory (hn : n ≠ 0) : |
| 115 | HistoryData ((P.joinedData hn).initial P.time (P.time_pos hn) P.time_lt_nextHorizon.le) := |
| 116 | P.restrictedFrame.activationHistory (P.time_pos hn) P.time_lt_nextHorizon P.restrictedLow |
| 117 | |
| 118 | @[simp] theorem joinedFrame_a (hn : n ≠ 0) : (P.joinedFrame hn).a=P.frame.a := |
| 119 | (P.restrictedFrame.activation_parameters (P.time_pos hn) P.time_lt_nextHorizon).1.trans |
| 120 | P.restrictedFrame_a |
| 121 | @[simp] theorem joinedFrame_sigma (hn : n ≠ 0) : (P.joinedFrame hn).sigma=P.frame.sigma := |
| 122 | (P.restrictedFrame.activation_parameters (P.time_pos hn) P.time_lt_nextHorizon).2.1.trans |
| 123 | P.restrictedFrame_sigma |
| 124 | @[simp] theorem joinedFrame_shear (hn : n ≠ 0) : (P.joinedFrame hn).shear=P.frame.shear := |
| 125 | (P.restrictedFrame.activation_parameters (P.time_pos hn) P.time_lt_nextHorizon).2.2.1.trans |
| 126 | P.restrictedFrame_shear |
| 127 | @[simp] theorem joinedFrame_G (hn : n ≠ 0) : (P.joinedFrame hn).G=P.frame.G := |
| 128 | (P.restrictedFrame.activation_parameters (P.time_pos hn) P.time_lt_nextHorizon).2.2.2.2.2.1.trans |
| 129 | P.restrictedFrame_G |
| 130 | @[simp] theorem joinedFrame_error (hn : n ≠ 0) : (P.joinedFrame hn).error=P.frame.error := |
| 131 | (P.restrictedFrame.activation_parameters (P.time_pos hn) P.time_lt_nextHorizon).2.2.2.2.2.2.trans |
| 132 | P.restrictedFrame_error |
| 133 | @[simp] theorem joinedFrame_horizon (hn : n ≠ 0) : |
| 134 | (P.joinedFrame hn).horizon=P.restrictedFrame.horizon := |
| 135 | (P.restrictedFrame.activation_parameters (P.time_pos hn) P.time_lt_nextHorizon).2.2.2.2.1 |
| 136 | |
| 137 | theorem joined_history_strain (hn : n ≠ 0) : |
| 138 | ‖EulerTransverseSourceCoefficientPath.pathEvaluation 0 |
| 139 | ((P.joinedData hn).initial P.time (P.time_pos hn) P.time_lt_nextHorizon.le).M.field‖ ≤ |
| 140 | gradientConstant*previousShear S.J S.X n := by |
| 141 | apply (ContinuousMap.norm_le _ (mul_nonneg gradient_nonneg |
| 142 | (zero_le_one.trans (S.previousShear_one n)))).2 |
| 143 | intro t |
| 144 | change ‖P.restrictedParent.strain.field |
| 145 | (initialInclusion P.restrictedParent.T P.time P.time_lt_nextHorizon.le t) 0‖ ≤ _ |
| 146 | exact P.restricted_strain_bound |
| 147 | (initialInclusion P.restrictedParent.T P.time P.time_lt_nextHorizon.le t) 0 |
| 148 | |
| 149 | theorem joined_history_hessian (hn : n ≠ 0) : |
| 150 | ‖(P.joinedHistory hn).coefficients.labelHessian 0‖ ≤ |
| 151 | hessianConstant*(previousShear S.J S.X n)^2 := by |
| 152 | apply (ContinuousMap.norm_le _ (mul_nonneg hessian_nonneg (sq_nonneg _))).2 |
| 153 | intro t |
| 154 | change ‖P.restrictedParent.curvature.field |
| 155 | (initialInclusion P.restrictedParent.T P.time P.time_lt_nextHorizon.le t) 0‖ ≤ _ |
| 156 | have hp := P.restricted_curvature_bound |
| 157 | (initialInclusion P.restrictedParent.T P.time P.time_lt_nextHorizon.le t) 0 |
| 158 | have hm := mul_le_mul_of_nonneg_left (S.olderShear_le n) |
| 159 | (mul_nonneg hessian_nonneg (zero_le_one.trans (S.previousShear_one n))) |
| 160 | exact hp.trans (by nlinarith only [hm]) |
| 161 | |
| 162 | end General |
| 163 | |
| 164 | section ForwardData |
| 165 | |
| 166 | variable {c B : ℝ} {S : Scales c B} (P : Stage S 0) |
| 167 | |
| 168 | def zeroFrame : ParentFrame (frameData P.restrictedParent) 0 := |
| 169 | P.restrictedFrame.changeActivation (P.time_zero rfl) |
| 170 | |
| 171 | def forwardNormal : Space := P.zeroFrame.crossDirection |
| 172 | |
| 173 | theorem forwardNormal_unit : ‖P.forwardNormal‖=1 := |
| 174 | P.zeroFrame.crossDirection_unit P.restrictedParent.T_pos.le |
| 175 | |
| 176 | def forwardData : Data (referencePlane P.forwardNormal) := P.zeroFrame.forwardData |
| 177 | |
| 178 | def forwardFrame : ParentFrame P.forwardData 0 := P.zeroFrame.forwardFrame |
| 179 | |
| 180 | @[simp] theorem forwardFrame_a : P.forwardFrame.a=P.frame.a := |
| 181 | P.zeroFrame.forward_parameters.1.trans |
| 182 | ((P.restrictedFrame.changeActivation_a (P.time_zero rfl)).trans P.restrictedFrame_a) |
| 183 | |
| 184 | @[simp] theorem forwardFrame_sigma : P.forwardFrame.sigma=P.frame.sigma := |
| 185 | P.zeroFrame.forward_parameters.2.1.trans |
| 186 | ((P.restrictedFrame.changeActivation_sigma (P.time_zero rfl)).trans P.restrictedFrame_sigma) |
| 187 | |
| 188 | @[simp] theorem forwardFrame_shear : P.forwardFrame.shear=P.frame.shear := |
| 189 | P.zeroFrame.forward_parameters.2.2.1.trans |
| 190 | ((P.restrictedFrame.changeActivation_shear (P.time_zero rfl)).trans P.restrictedFrame_shear) |
| 191 | |
| 192 | @[simp] theorem forwardFrame_G : P.forwardFrame.G=P.frame.G := |
| 193 | P.zeroFrame.forward_parameters.2.2.2.2.2.1.trans |
| 194 | ((P.restrictedFrame.changeActivation_G (P.time_zero rfl)).trans P.restrictedFrame_G) |
| 195 | |
| 196 | @[simp] theorem forwardFrame_error : P.forwardFrame.error=P.frame.error := |
| 197 | P.zeroFrame.forward_parameters.2.2.2.2.2.2.trans |
| 198 | ((P.restrictedFrame.changeActivation_error (P.time_zero rfl)).trans P.restrictedFrame_error) |
| 199 | |
| 200 | @[simp] theorem forwardFrame_horizon : P.forwardFrame.horizon=P.restrictedFrame.horizon := |
| 201 | P.zeroFrame.forward_parameters.2.2.2.2.1.trans |
| 202 | (P.restrictedFrame.changeActivation_horizon (P.time_zero rfl)) |
| 203 | |
| 204 | end ForwardData |
| 205 | |
| 206 | end EulerPacketInduction.Stage |