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.PacketInductionStage |
| 2 | |
| 3 | /-! The next literal activation and horizon are constructed from the |
| 4 | current actual frame. Restriction preserves the actual Euler state, |
| 5 | low bounds and frame before the next packet is added. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace EulerPacketInduction.Stage |
| 10 | |
| 11 | open Set Real EulerSmoothLimit EulerParentPacketFrames EulerPacketSourceGeometry |
| 12 | EulerPacketInductionScales EulerPacketSourceScaleChoice EulerPacketSourceScaleSequence |
| 13 | EulerPacketNestedHorizons EulerPacketBaseGuardScales EulerPacketScaleGeometry |
| 14 | EulerPacketMovingFrame EulerTimeIntervalRestriction |
| 15 | |
| 16 | variable {c B : ℝ} {S : Scales c B} {n : ℕ} (P : Stage S n) |
| 17 | |
| 18 | def step : ℝ := |
| 19 | stepLength S.J S.X (fun _ => P.frame.a) (fun _ => P.frame.sigma^2) n |
| 20 | |
| 21 | def nextTime : ℝ := P.time+P.step |
| 22 | |
| 23 | def nextHorizon : ℝ := P.nextTime+2*timeWidth S.J S.X (n+1) |
| 24 | |
| 25 | theorem step_bounds : timeWidth S.J S.X n/6 ≤ P.step ∧ |
| 26 | P.step ≤ 2*timeWidth S.J S.X n/3 := |
| 27 | activation_time_bounds P.coupling_bounds.1 P.coupling_bounds.2 |
| 28 | (previousShear_pos S.J S.x_pos n) (zero_lt_one.trans_le (S.sequence_one n)) |
| 29 | (zero_le_one.trans (S.sequence_one (n+1))) P.tilt_lower P.tilt_upper |
| 30 | |
| 31 | theorem step_pos : 0 < P.step := |
| 32 | (div_pos (timeWidth_pos S.J S.j_one S.x_pos n) (by norm_num)).trans_le P.step_bounds.1 |
| 33 | |
| 34 | theorem time_lt_nextTime : P.time < P.nextTime := lt_add_of_pos_right _ P.step_pos |
| 35 | |
| 36 | theorem nextTime_pos : 0 < P.nextTime := P.time_nonneg.trans_lt P.time_lt_nextTime |
| 37 | |
| 38 | theorem nextTime_lt_nextHorizon : P.nextTime < P.nextHorizon := |
| 39 | lt_add_of_pos_right _ (mul_pos (by norm_num) (timeWidth_pos S.J S.j_one S.x_pos (n+1))) |
| 40 | |
| 41 | theorem time_lt_nextHorizon : P.time < P.nextHorizon := |
| 42 | P.time_lt_nextTime.trans P.nextTime_lt_nextHorizon |
| 43 | |
| 44 | theorem nextHorizon_pos : 0 < P.nextHorizon := |
| 45 | P.nextTime_pos.trans P.nextTime_lt_nextHorizon |
| 46 | |
| 47 | theorem nextHorizon_lt : P.nextHorizon < P.parent.T := by |
| 48 | have hstep := P.step_bounds.2 |
| 49 | have hwidth := P.source_stage.next_width |
| 50 | have hpos := timeWidth_pos S.J S.j_one S.x_pos n |
| 51 | rw [P.horizon_eq] |
| 52 | dsimp only [nextHorizon,nextTime] |
| 53 | linarith only [hstep,hwidth,hpos] |
| 54 | |
| 55 | theorem nextHorizon_le : P.nextHorizon ≤ P.parent.T := P.nextHorizon_lt.le |
| 56 | |
| 57 | theorem nextHorizon_le_base : P.nextHorizon ≤ baseHorizon S.J S.X := |
| 58 | P.nextHorizon_le.trans P.horizon_le |
| 59 | |
| 60 | theorem nextHorizon_one : P.nextHorizon ≤ 1 := P.nextHorizon_le_base.trans S.time_small |
| 61 | |
| 62 | theorem nextTime_lower : baseHorizon S.J S.X/12 ≤ P.nextTime := by |
| 63 | by_cases hn : n=0 |
| 64 | · subst n |
| 65 | have ht := P.time_zero rfl |
| 66 | have hs := P.step_bounds.1 |
| 67 | rw [baseHorizon_eq_timeWidth S.J S.x_pos] |
| 68 | dsimp only [nextTime] |
| 69 | linarith only [ht,hs] |
| 70 | · exact (P.time_lower hn).trans P.time_lt_nextTime.le |
| 71 | |
| 72 | theorem nextHorizon_common : baseHorizon S.J S.X/12 < P.nextHorizon := |
| 73 | P.nextTime_lower.trans_lt P.nextTime_lt_nextHorizon |
| 74 | |
| 75 | theorem physical_target_eq_nextTime : |
| 76 | physicalTime P.time P.frame.a P.frame.epsilon |
| 77 | (scaleSequence S.J S.X (n+1)/P.frame.sigma)=P.nextTime := by |
| 78 | exact P.frame.target_on_scales S.J S.X (fun _ => P.frame.a) (fun _ => P.frame.sigma^2) n |
| 79 | P.coupling_pos.le (sq_nonneg _) rfl P.frame_shear |
| 80 | (sqrt_sq P.sigma_nonneg).symm |
| 81 | |
| 82 | def restrictedParent : Parent := |
| 83 | P.parent.restrictTime P.nextHorizon P.nextHorizon_pos P.nextHorizon_le |
| 84 | |
| 85 | def restrictedState : SmoothState P.restrictedParent := |
| 86 | P.state.restrictTime P.nextHorizon P.nextHorizon_pos P.nextHorizon_le |
| 87 | |
| 88 | def restrictedLow : LowBounds P.restrictedParent := |
| 89 | P.low.restrictTime P.nextHorizon P.nextHorizon_pos P.nextHorizon_le |
| 90 | |
| 91 | def restrictedFrame : ParentFrame (frameData P.restrictedParent) P.time := |
| 92 | P.frame.restrictTime P.nextHorizon P.nextHorizon_pos P.nextHorizon_le P.time_nonneg |
| 93 | |
| 94 | @[simp] theorem restrictedParent_time : P.restrictedParent.T=P.nextHorizon := rfl |
| 95 | @[simp] theorem restrictedParent_scale : P.restrictedParent.ell=P.parent.ell := rfl |
| 96 | @[simp] theorem restrictedState_label : P.restrictedState.labels.K=P.state.labels.K := rfl |
| 97 | @[simp] theorem restrictedLow_exterior : P.restrictedLow.Be=P.low.Be := rfl |
| 98 | @[simp] theorem restrictedLow_core : P.restrictedLow.Bc=P.low.Bc := rfl |
| 99 | @[simp] theorem restrictedLow_pressure : P.restrictedLow.K=P.low.K := rfl |
| 100 | @[simp] theorem restrictedLow_boundary : P.restrictedLow.L=P.low.L := rfl |
| 101 | @[simp] theorem restrictedLow_radius : P.restrictedLow.r=P.low.r := rfl |
| 102 | @[simp] theorem restrictedFrame_a : P.restrictedFrame.a=P.frame.a := rfl |
| 103 | @[simp] theorem restrictedFrame_sigma : P.restrictedFrame.sigma=P.frame.sigma := rfl |
| 104 | @[simp] theorem restrictedFrame_shear : P.restrictedFrame.shear=P.frame.shear := rfl |
| 105 | @[simp] theorem restrictedFrame_G : P.restrictedFrame.G=P.frame.G := rfl |
| 106 | @[simp] theorem restrictedFrame_error : P.restrictedFrame.error=P.frame.error := rfl |
| 107 | @[simp] theorem restrictedFrame_B : P.restrictedFrame.B=P.frame.B := rfl |
| 108 | @[simp] theorem restrictedFrame_m : P.restrictedFrame.m=P.frame.m := rfl |
| 109 | @[simp] theorem restrictedFrame_v : P.restrictedFrame.v=P.frame.v := rfl |
| 110 | |
| 111 | theorem restrictedFrame_horizon : |
| 112 | P.restrictedFrame.horizon=EulerPacketSourceScaleGuards.horizon S.J S.X |
| 113 | P.frame.a (P.frame.sigma^2) n := |
| 114 | P.frame.restricted_horizon_on_scales S.J S.X S.x_pos |
| 115 | (fun _ => P.frame.a) (fun _ => P.frame.sigma^2) n P.coupling_pos |
| 116 | (sq_pos_of_pos P.sigma_pos) rfl P.frame_shear |
| 117 | P.nextHorizon P.nextHorizon_pos P.nextHorizon_le P.time_nonneg rfl |
| 118 | |
| 119 | theorem restricted_strain_bound (t : Icc (0 : ℝ) P.restrictedParent.T) (x : Space) : |
| 120 | ‖P.restrictedParent.strain.field t x‖ ≤ |
| 121 | EulerPacketLowConstants.gradientConstant*previousShear S.J S.X n := by |
| 122 | rw [show P.restrictedParent.strain.field t x=P.parent.strain.field |
| 123 | (initialInclusion P.parent.T P.nextHorizon P.nextHorizon_le t) x from |
| 124 | P.parent.restrictTime_strain P.nextHorizon P.nextHorizon_pos P.nextHorizon_le t x] |
| 125 | exact P.strain_bound _ _ |
| 126 | |
| 127 | theorem restricted_curvature_bound (t : Icc (0 : ℝ) P.restrictedParent.T) (x : Space) : |
| 128 | ‖P.restrictedParent.curvature.field t x‖ ≤ |
| 129 | EulerPacketLowConstants.hessianConstant*previousShear S.J S.X n*olderShear S.J S.X n := by |
| 130 | rw [show P.restrictedParent.curvature.field t x=P.parent.curvature.field |
| 131 | (initialInclusion P.parent.T P.nextHorizon P.nextHorizon_le t) x from |
| 132 | P.parent.restrictTime_curvature P.nextHorizon P.nextHorizon_pos P.nextHorizon_le t x] |
| 133 | exact P.curvature_bound _ _ |
| 134 | |
| 135 | end EulerPacketInduction.Stage |