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.PacketStageGeometry |
| 2 | import Euler.PacketForwardGeometryLowBounds |
| 3 | |
| 4 | /-! Literal forward and joined source guards for the next packet of an |
| 5 | actual finite stage. The radius is one, the spike and target shear are |
| 6 | the prescribed source scales, and the physical target is nextTime. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace EulerPacketInduction.Stage |
| 11 | |
| 12 | open Set Real InnerProductSpace EulerSmoothLimit EulerParentPacketFrames |
| 13 | EulerPacketSourceGeometry EulerTransversePacketProvider EulerTransverseFrameCoordinates |
| 14 | EulerPacketInductionScales EulerPacketSourceScaleChoice EulerPacketSourceScaleSequence |
| 15 | EulerPacketSourceScaleActual EulerPacketBaseGuardScales EulerPacketLowConstants |
| 16 | EulerPacketNormalizedPrimary EulerParentNeighborThreshold EulerParentHistoryFrequency |
| 17 | EulerPacketSupport EulerPacketMovingFrame |
| 18 | |
| 19 | section Joined |
| 20 | |
| 21 | variable {q : ℕ} {B : ℝ} {S : Scales (q : ℝ) B} {n : ℕ} (P : Stage S n) |
| 22 | (hn : n ≠ 0) (hq : requiredExponent ≤ q) |
| 23 | (hB : commonThreshold gradientConstant hessianConstant ≤ B) |
| 24 | |
| 25 | include hq hB in |
| 26 | theorem joined_neighbor : |
| 27 | P.restrictedState.labels.neighborScaleCost (P.joinedNormal hn) (P.joinedNormal_unit hn) |
| 28 | (LinearIsometryEquiv.refl ℝ (referencePlane (P.joinedNormal hn))) support compact |
| 29 | P.restrictedLow P.time (P.time_pos hn) P.time_lt_nextHorizon (P.joinedFrame hn) |
| 30 | gradientConstant hessianConstant*P.restrictedParent.ell*1 ≤ |
| 31 | neighborError S.J S.D S.X (q : ℝ) n := by |
| 32 | have htime := base_inverse_le_previous_frequency_pow80 S.J S.D S.stage_large S.base_power |
| 33 | S.X (by linarith only [S.x_large]) S.actual.initial_frequency n |
| 34 | have hcost : joinedThreshold gradientConstant hessianConstant ≤ previousFrequency S.J S.D S.X n := |
| 35 | (joinedThreshold_le_common _ _).trans (hB.trans (S.previous_floor n)) |
| 36 | exact P.restrictedState.labels.neighbor_error_of_source_scales |
| 37 | (P.joinedNormal hn) (P.joinedNormal_unit hn) |
| 38 | (LinearIsometryEquiv.refl ℝ (referencePlane (P.joinedNormal hn))) support compact |
| 39 | P.restrictedLow P.time (P.time_pos hn) P.time_lt_nextHorizon (P.joinedFrame hn) |
| 40 | (12/baseHorizon S.J S.X) gradientConstant hessianConstant P.time_one (P.time_reciprocal hn) |
| 41 | gradient_nonneg hessian_nonneg |
| 42 | (by erw [P.joinedFrame_a]; exact P.coupling_bounds.1) |
| 43 | (by erw [P.joinedFrame_shear,P.frame_shear]; exact S.previousShear_one n) |
| 44 | S.J S.D S.X 1 n 80 q zero_le_one le_rfl ((P.joinedFrame_shear hn).trans P.frame_shear) |
| 45 | (S.previousFrequency_one n) |
| 46 | P.label_eq.le htime hcost hq (degree_le_requiredExponent.trans hq) P.scale_eq.le |
| 47 | |
| 48 | def joinedGuards : Guards (P.time_pos hn) P.time_lt_nextHorizon (P.joinedFrame hn) (P.joinedHistory hn) := |
| 49 | P.restrictedState.labels.geometryGuardsOfStage |
| 50 | (P.joinedNormal hn) (P.joinedNormal_unit hn) |
| 51 | (LinearIsometryEquiv.refl ℝ (referencePlane (P.joinedNormal hn))) support compact |
| 52 | P.restrictedLow P.time (P.time_pos hn) P.time_lt_nextHorizon (P.joinedFrame hn) |
| 53 | (fun t x => P.restrictedState.evolution.pressure (t,x)) P.restrictedState.evolution.pressure_smooth |
| 54 | (by |
| 55 | intro t x |
| 56 | rw [P.restrictedState.evolution.pressure_gradient] |
| 57 | exact P.restrictedState.evolution.acceleration_match t x) |
| 58 | S.J S.D 4 (q : ℝ) S.X (fun _ => P.frame.a) (fun _ => P.frame.sigma^2) n S.x_pos |
| 59 | frameConstant frame_properties.1 P.source_stage P.coupling_bounds.1 (P.joinedFrame_a hn) |
| 60 | ((P.joinedFrame_shear hn).trans P.frame_shear) |
| 61 | ((P.joinedFrame_sigma hn).trans (sqrt_sq P.sigma_nonneg).symm) |
| 62 | ((P.joinedFrame_horizon hn).trans P.restrictedFrame_horizon) |
| 63 | ((P.joinedFrame_G hn).le.trans P.frame_bound) ((P.joinedFrame_error hn).le.trans P.frame_error) |
| 64 | gradientConstant hessianConstant activationMargin 1 (spike S.J S.X n) (shear S.J S.X n) |
| 65 | gradient_nonneg hessian_nonneg activationMargin_pos.le zero_le_one (S.spike_pos n).le |
| 66 | (zero_le_one.trans (S.shear_one n)) (P.joined_neighbor hn hq hB) |
| 67 | (P.restrictedFrame.activation_normal_choice (P.time_pos hn) P.time_lt_nextHorizon) |
| 68 | (P.history_layer hn) (P.joined_history_strain hn) (P.joined_history_hessian hn) |
| 69 | activationMargin_small (S.activation_small hn) (P.compression hn) |
| 70 | |
| 71 | @[simp] theorem joinedGuards_radius : (P.joinedGuards hn hq hB).radius=1 := rfl |
| 72 | @[simp] theorem joinedGuards_y : (P.joinedGuards hn hq hB).y=(scaleSequence S.J S.X (n+1))⁻¹ := rfl |
| 73 | @[simp] theorem joinedGuards_delta : (P.joinedGuards hn hq hB).δ=spike S.J S.X n := rfl |
| 74 | @[simp] theorem joinedGuards_shear : (P.joinedGuards hn hq hB).hchild=shear S.J S.X n := rfl |
| 75 | @[simp] theorem joinedGuards_CM : (P.joinedGuards hn hq hB).CM=gradientConstant := rfl |
| 76 | @[simp] theorem joinedGuards_CH : (P.joinedGuards hn hq hB).CH=hessianConstant := rfl |
| 77 | |
| 78 | theorem joined_source_neighbor : |
| 79 | (P.joinedFrame hn).neighborCost (P.time_pos hn) P.time_lt_nextHorizon |
| 80 | (P.joinedHistory hn) (P.joinedGuards hn hq hB).CM (P.joinedGuards hn hq hB).CH* |
| 81 | (P.joinedGuards hn hq hB).radius ≤ neighborError S.J S.D S.X (q : ℝ) n := by |
| 82 | have hs := P.restrictedState.labels.source_neighbor_scale |
| 83 | (P.joinedNormal hn) (P.joinedNormal_unit hn) |
| 84 | (LinearIsometryEquiv.refl ℝ (referencePlane (P.joinedNormal hn))) support compact |
| 85 | P.restrictedLow P.time (P.time_pos hn) P.time_lt_nextHorizon (P.joinedFrame hn) |
| 86 | gradientConstant hessianConstant gradient_nonneg hessian_nonneg |
| 87 | (P.joinedGuards hn hq hB).shear_pos (P.joinedGuards hn hq hB).epsilon_pos |
| 88 | exact (mul_le_mul_of_nonneg_right hs zero_le_one).trans (P.joined_neighbor hn hq hB) |
| 89 | |
| 90 | def joinedGeometry : PhysicalGeometryData {x : Space // ‖x‖ ≤ (1/2 : ℝ)} := |
| 91 | (P.joinedGuards hn hq hB).lowGeometry (by rw [P.joinedGuards_radius]; norm_num) |
| 92 | |
| 93 | theorem joinedGeometry_targetTime : (P.joinedGeometry hn hq hB).targetTime=P.nextTime := by |
| 94 | change physicalTime P.time (P.joinedFrame hn).a (P.joinedFrame hn).epsilon |
| 95 | (((P.joinedGuards hn hq hB).y)⁻¹/(P.joinedFrame hn).sigma)=P.nextTime |
| 96 | have he : (P.joinedFrame hn).epsilon=P.frame.epsilon := by |
| 97 | simp only [ParentFrame.epsilon,P.joinedFrame_a,P.joinedFrame_shear] |
| 98 | rw [P.joinedGuards_y,inv_inv,P.joinedFrame_a,P.joinedFrame_sigma,he] |
| 99 | exact P.physical_target_eq_nextTime |
| 100 | |
| 101 | end Joined |
| 102 | |
| 103 | section Forward |
| 104 | |
| 105 | variable {q : ℕ} {B : ℝ} {S : Scales (q : ℝ) B} (P : Stage S 0) |
| 106 | (hq : requiredExponent ≤ q) (hB : commonThreshold gradientConstant hessianConstant ≤ B) |
| 107 | |
| 108 | include hq hB in |
| 109 | theorem forward_neighbor : P.restrictedState.labels.strainDifferenceCost*P.restrictedParent.ell*1 ≤ |
| 110 | neighborError S.J S.D S.X (q : ℝ) 0 := |
| 111 | P.restrictedState.labels.forward_neighbor_error_of_source_scales S.J S.D S.stage_large |
| 112 | S.X 1 S.x_one S.actual.initial_frequency 0 q zero_le_one le_rfl P.label_eq.le |
| 113 | ((forwardThreshold_le_common _ _).trans (hB.trans (S.previous_floor 0))) hq P.scale_eq.le |
| 114 | |
| 115 | def forwardGuards : ForwardGuards P.forwardFrame := |
| 116 | P.restrictedState.labels.forwardGeometryGuardsOfStage P.forwardNormal P.forwardNormal_unit |
| 117 | (LinearIsometryEquiv.refl ℝ (referencePlane P.forwardNormal)) support compact P.forwardFrame |
| 118 | S.J S.D 4 (q : ℝ) S.X (fun _ => P.frame.a) (fun _ => P.frame.sigma^2) 0 |
| 119 | frameConstant frame_properties.1 P.source_stage P.coupling_bounds.1 P.forwardFrame_a |
| 120 | (P.forwardFrame_shear.trans P.frame_shear) |
| 121 | (P.forwardFrame_sigma.trans (sqrt_sq P.sigma_nonneg).symm) |
| 122 | (P.forwardFrame_horizon.trans P.restrictedFrame_horizon) |
| 123 | (P.forwardFrame_G.le.trans P.frame_bound) (P.forwardFrame_error.le.trans P.frame_error) |
| 124 | 1 (spike S.J S.X 0) (shear S.J S.X 0) zero_le_one (S.spike_pos 0).le |
| 125 | (zero_le_one.trans (S.shear_one 0)) (P.forward_neighbor hq hB) P.zeroFrame.forward_normal_choice |
| 126 | |
| 127 | @[simp] theorem forwardGuards_radius : (P.forwardGuards hq hB).radius=1 := rfl |
| 128 | @[simp] theorem forwardGuards_y : (P.forwardGuards hq hB).y=(scaleSequence S.J S.X 1)⁻¹ := rfl |
| 129 | @[simp] theorem forwardGuards_delta : (P.forwardGuards hq hB).δ=spike S.J S.X 0 := rfl |
| 130 | @[simp] theorem forwardGuards_shear : (P.forwardGuards hq hB).hchild=shear S.J S.X 0 := rfl |
| 131 | |
| 132 | theorem forward_source_neighbor : |
| 133 | ‖P.forwardData.M.derivative.field‖*(P.forwardGuards hq hB).radius ≤ |
| 134 | neighborError S.J S.D S.X (q : ℝ) 0 := by |
| 135 | have hs := P.restrictedState.labels.source_strain_derivative_norm |
| 136 | P.forwardNormal P.forwardNormal_unit |
| 137 | (LinearIsometryEquiv.refl ℝ (referencePlane P.forwardNormal)) support compact |
| 138 | exact (mul_le_mul_of_nonneg_right hs zero_le_one).trans (P.forward_neighbor hq hB) |
| 139 | |
| 140 | def forwardGeometry : PhysicalGeometryData {x : Space // ‖x‖ ≤ (1/2 : ℝ)} := |
| 141 | (P.forwardGuards hq hB).lowGeometry (by rw [P.forwardGuards_radius]; norm_num) |
| 142 | |
| 143 | theorem forwardGeometry_targetTime : (P.forwardGeometry hq hB).targetTime=P.nextTime := by |
| 144 | change physicalTime 0 P.forwardFrame.a P.forwardFrame.epsilon |
| 145 | (((P.forwardGuards hq hB).y)⁻¹/P.forwardFrame.sigma)=P.nextTime |
| 146 | rw [P.forwardGuards_y,inv_inv,P.forwardFrame_a,P.forwardFrame_sigma] |
| 147 | have he : P.forwardFrame.epsilon=P.frame.epsilon := by |
| 148 | simp only [ParentFrame.epsilon,P.forwardFrame_a,P.forwardFrame_shear] |
| 149 | rw [he] |
| 150 | simpa only [P.time_zero rfl] using P.physical_target_eq_nextTime |
| 151 | |
| 152 | end Forward |
| 153 | |
| 154 | end EulerPacketInduction.Stage |