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.PacketStageInputs |
| 2 | import Euler.PacketStageEstimates |
| 3 | import Euler.PacketStagePhysicalBounds |
| 4 | import Euler.ParentGeometryChoiceLow |
| 5 | import Euler.ParentGeometryChoiceRenewal |
| 6 | |
| 7 | /-! The time-zero normal step: the same selected correction supplies |
| 8 | the next actual state, low source bounds and renewed geometric frame. -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace EulerPacketInduction.Stage |
| 13 | |
| 14 | open Set Finset Real InnerProductSpace EulerSmoothLimit EulerParentPacketFrames |
| 15 | EulerBaseDatum EulerPacketSupport EulerPacketSourceGeometry EulerPacketNormalizedPrimary |
| 16 | EulerPacketInductionScales EulerPacketLowConstants EulerPacketSourceScaleChoice |
| 17 | EulerPacketSourceScaleSequence EulerPacketSourceScaleActual EulerPacketBaseGuardScales |
| 18 | EulerParentRenewalScale EulerPacketGeometryLowBounds EulerParentNeighborThreshold |
| 19 | EulerMeanHarmonic |
| 20 | |
| 21 | variable {q : ℕ} {B : ℝ} {S : Scales (q : ℝ) B} (P : Stage S 0) |
| 22 | (hq : requiredExponent ≤ q) (hB : commonThreshold gradientConstant hessianConstant ≤ B) |
| 23 | |
| 24 | local notation "I" => P.forwardInput hq hB |
| 25 | local notation "G" => P.forwardGuards hq hB |
| 26 | local notation "k" => frequency S.J S.X 0 |
| 27 | local notation "hk" => S.normal_frequency 0 |
| 28 | local notation "ell" => supportScale S.J S.X 1 |
| 29 | |
| 30 | abbrev ForwardChoice := GeometryForwardChoice I P.restrictedState k hk ell (S.support_pos 1) (S.support_one 1) |
| 31 | |
| 32 | def chooseForward : P.ForwardChoice hq hB := by |
| 33 | have hsec := S.secondary_frequency 0 P.restrictedState.labels.K P.label_eq.le |
| 34 | exact Classical.choice (exists_geometryForwardChoice I P.restrictedState k hk ell |
| 35 | (S.support_pos 1) (S.support_one 1) (P.forwardInput_frequency hq hB) hsec.1 |
| 36 | (by rw [P.forwardInput_scale]; exact hsec.2)) |
| 37 | |
| 38 | local notation "F" => P.chooseForward hq hB |
| 39 | |
| 40 | def forwardParent : Parent := (F).parent |
| 41 | |
| 42 | def forwardState : SmoothState (P.forwardParent hq hB) := |
| 43 | GeometryForwardChoice.state I P.restrictedState k hk ell (S.support_pos 1) (S.support_one 1) F symmetric |
| 44 | |
| 45 | theorem forward_smallness : |
| 46 | (P.restrictedLow.K+2*(gradientConstant*previousShear S.J S.X 0)*(G).hchild* |
| 47 | ((G).δ*goodRatio+(G).earlyRatio)+k^(-(1/4 : ℝ)))*(P.nextHorizon^2/2)+ |
| 48 | (P.restrictedLow.Be+((G).hchild*(G).earlyRatio+k^(-(1/4 : ℝ))))*P.nextHorizon+ |
| 49 | boundaryLocalizationC2*(P.restrictedLow.Bc+((G).hchild*(G).earlyRatio+k^(-(1/4 : ℝ))))* |
| 50 | P.restrictedLow.r^3*P.nextHorizon ≤ 1/2 := by |
| 51 | have he : 0 ≤ k^(-(1/4 : ℝ)) := rpow_nonneg (hk).pos.le _ |
| 52 | have h := P.next_localized P.nextHorizon |
| 53 | ((G).hchild*(G).earlyRatio+k^(-(1/4 : ℝ))) |
| 54 | (2*(gradientConstant*previousShear S.J S.X 0)*(G).hchild*((G).δ*goodRatio+(G).earlyRatio)+k^(-(1/4 : ℝ))) |
| 55 | P.nextHorizon_pos.le P.nextHorizon_le_base |
| 56 | (by positivity [(G).child_nonneg,(G).earlyRatio_nonneg]) |
| 57 | (by positivity [gradient_nonneg,S.previousShear_one 0,(G).child_nonneg,(G).delta_nonneg, |
| 58 | goodRatio_pos,(G).earlyRatio_nonneg]) |
| 59 | (P.forward_initial_cost hq hB) (P.forward_pressure_cost hq hB) |
| 60 | rw [P.restrictedLow_pressure,P.restrictedLow_exterior,P.restrictedLow_core,P.restrictedLow_radius] |
| 61 | convert h using 1; ring |
| 62 | |
| 63 | def forwardLow : LowBounds (P.forwardParent hq hB) := |
| 64 | (F).lowBounds (gradientConstant*previousShear S.J S.X 0) |
| 65 | (hessianConstant*previousShear S.J S.X 0*olderShear S.J S.X 0) |
| 66 | P.restricted_gradient_bound P.restricted_hessian_bound (P.forward_smallness hq hB) |
| 67 | |
| 68 | def forwardRenewal : ParentFrame (frameData (P.forwardParent hq hB)) (P.forwardGeometry hq hB).targetTime := |
| 69 | (F).renewal symmetric (gradientConstant*previousShear S.J S.X 0) |
| 70 | (hessianConstant*previousShear S.J S.X 0*olderShear S.J S.X 0) |
| 71 | (frameConstant*(1+previousShear S.J S.X 0)) |
| 72 | (mul_nonneg gradient_nonneg (zero_le_one.trans (S.previousShear_one 0))) |
| 73 | (next_frame_bounds (S := S) (n := 0)).1 (next_frame_bounds (S := S) (n := 0)).2.1 |
| 74 | (next_frame_bounds (S := S) (n := 0)).2.2 |
| 75 | P.restricted_gradient_bound P.restricted_hessian_bound |
| 76 | firstNormal firstNormal_unit firstFrame support compact |
| 77 | |
| 78 | theorem forwardRenewal_matches : |
| 79 | RenewalAtTarget (P.forwardGeometry hq hB) (P.forwardRenewal hq hB) := |
| 80 | (F).renewal_matches symmetric (gradientConstant*previousShear S.J S.X 0) |
| 81 | (hessianConstant*previousShear S.J S.X 0*olderShear S.J S.X 0) |
| 82 | (frameConstant*(1+previousShear S.J S.X 0)) |
| 83 | (mul_nonneg gradient_nonneg (zero_le_one.trans (S.previousShear_one 0))) |
| 84 | (next_frame_bounds (S := S) (n := 0)).1 (next_frame_bounds (S := S) (n := 0)).2.1 |
| 85 | (next_frame_bounds (S := S) (n := 0)).2.2 |
| 86 | P.restricted_gradient_bound P.restricted_hessian_bound |
| 87 | firstNormal firstNormal_unit firstFrame support compact |
| 88 | |
| 89 | def forwardNextFrame : ParentFrame (frameData (P.forwardParent hq hB)) P.nextTime := |
| 90 | (P.forwardRenewal hq hB).changeActivation (P.forwardGeometry_targetTime hq hB) |
| 91 | |
| 92 | def forwardNext : Stage S 1 := by |
| 93 | have hbad : 2*gradientConstant*previousShear S.J S.X 0*shear S.J S.X 0*(G).earlyRatio ≤ |
| 94 | EulerPacketPressureScale.badCost S.J 4 gradientConstant gradientConstant hessianConstant 80 |
| 95 | (scaleSequence S.J S.X) 0 := by |
| 96 | have h := P.forward_bad_cost hq hB |
| 97 | change 2*(gradientConstant*previousShear S.J S.X 0)*shear S.J S.X 0*(G).earlyRatio ≤ _ at h |
| 98 | nlinarith only [h] |
| 99 | have habsorb := ratio_absorption (S := S) (n := 0) (G).earlyRatio (G).earlyRatio_nonneg hbad |
| 100 | have hparams := literal_step (P.forwardRenewal_matches hq hB) S.J S.X 0 S.renewal_series |
| 101 | (by norm_num) (P.forward_renewal_errors hq hB) rfl |
| 102 | have hcoupling : |(P.forwardRenewal hq hB).a/P.frame.a-1| ≤ |
| 103 | renewalCost S.J S.D 4 (q : ℝ) frameConstant S.X 0 := by |
| 104 | have h := hparams.1 |
| 105 | change |(P.forwardRenewal hq hB).a/P.forwardFrame.a-1| ≤ _ at h |
| 106 | rwa [P.forwardFrame_a] at h |
| 107 | refine { |
| 108 | parent := P.forwardParent hq hB |
| 109 | state := P.forwardState hq hB |
| 110 | low := P.forwardLow hq hB |
| 111 | time := P.nextTime |
| 112 | time_nonneg := P.nextTime_pos.le |
| 113 | time_zero := fun h => by omega |
| 114 | time_lower := fun _ => P.nextTime_lower |
| 115 | horizon_eq := rfl |
| 116 | horizon_le := P.nextHorizon_le_base |
| 117 | scale_eq := rfl |
| 118 | label_eq := (F).label_constant |
| 119 | gradient_bound := ?_ |
| 120 | hessian_bound := ?_ |
| 121 | exterior_bound := ?_ |
| 122 | core_bound := ?_ |
| 123 | pressure_bound := ?_ |
| 124 | boundary_eq := rfl |
| 125 | radius_eq := P.radius_eq |
| 126 | frame := P.forwardNextFrame hq hB |
| 127 | frame_shear := ?_ |
| 128 | frame_bound := ?_ |
| 129 | frame_error := ?_ |
| 130 | coupling_error := ?_ |
| 131 | tilt_lower := ?_ |
| 132 | tilt_upper := ?_ |
| 133 | compression := ?_ } |
| 134 | · intro t x |
| 135 | exact ((F).physical_bounds symmetric _ _ P.restricted_gradient_bound P.restricted_hessian_bound t x).1.trans |
| 136 | habsorb.1 |
| 137 | · intro t x |
| 138 | have h := ((F).physical_bounds symmetric _ _ P.restricted_gradient_bound P.restricted_hessian_bound t x).2 |
| 139 | apply h.trans |
| 140 | change hessianConstant*previousShear S.J S.X 0*olderShear S.J S.X 0+ |
| 141 | 2*(gradientConstant*previousShear S.J S.X 0)*shear S.J S.X 0*(goodRatio+(G).earlyRatio)+ |
| 142 | k^(-(1/4 : ℝ)) ≤ hessianConstant*shear S.J S.X 0*previousShear S.J S.X 0 |
| 143 | nlinarith only [habsorb.2] |
| 144 | · exact (P.initial_step_bound _ (P.forward_initial_cost hq hB)).1 |
| 145 | · exact (P.initial_step_bound _ (P.forward_initial_cost hq hB)).2 |
| 146 | · have h := P.pressure_step_bound _ (P.forward_pressure_cost hq hB) |
| 147 | change P.low.K+2*(gradientConstant*previousShear S.J S.X 0)*(G).hchild* |
| 148 | ((G).δ*goodRatio+(G).earlyRatio)+k^(-(1/4 : ℝ)) ≤ _ |
| 149 | convert h using 1; ring |
| 150 | · rw [forwardNextFrame,ParentFrame.changeActivation_shear] |
| 151 | exact (P.forwardRenewal_matches hq hB).shear_eq (I).delta_pos |
| 152 | · change ((P.forwardRenewal hq hB).changeActivation _).G ≤ _ |
| 153 | rw [ParentFrame.changeActivation_G] |
| 154 | exact le_rfl |
| 155 | · change ((P.forwardRenewal hq hB).changeActivation _).error ≤ _ |
| 156 | rw [ParentFrame.changeActivation_error] |
| 157 | exact le_rfl |
| 158 | · rw [forwardNextFrame,ParentFrame.changeActivation_a] |
| 159 | exact P.coupling_step _ hcoupling |
| 160 | · rw [forwardNextFrame,ParentFrame.changeActivation_sigma] |
| 161 | exact hparams.2.1 |
| 162 | · rw [forwardNextFrame,ParentFrame.changeActivation_sigma] |
| 163 | exact hparams.2.2 |
| 164 | · intro _ |
| 165 | have hc := (P.forwardRenewal_matches hq hB).background_compression_of_error_le_one |
| 166 | (priorError S.J S.D S.X 1) (S.priorError_one 1) |
| 167 | change ⟪((P.forwardRenewal hq hB).changeActivation _).B P.nextTime |
| 168 | (unit (((P.forwardRenewal hq hB).changeActivation _).m P.nextTime)), |
| 169 | unit (((P.forwardRenewal hq hB).changeActivation _).m P.nextTime)⟫_ℝ+ |
| 170 | priorError S.J S.D S.X 1 < 0 |
| 171 | rw [ParentFrame.changeActivation_B,ParentFrame.changeActivation_m] |
| 172 | simpa only [← P.forwardGeometry_targetTime hq hB] using hc |
| 173 | |
| 174 | theorem forwardNext_time : (P.forwardNext hq hB).time=P.nextTime := rfl |
| 175 | |
| 176 | end EulerPacketInduction.Stage |