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.PacketInductionScaleBounds |
| 2 | import Euler.ParentStageHorizon |
| 3 | import Euler.ParentStageDirection |
| 4 | import Euler.BaseFirstPacketFrame |
| 5 | |
| 6 | /-! The invariant for a finite, actually constructed packet stage. |
| 7 | All fields refer to its genuine Euler state, source guards and frame. |
| 8 | The cumulative bounds use only earlier indices. -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace EulerPacketInduction |
| 13 | |
| 14 | open Set Finset Real InnerProductSpace EulerSmoothLimit EulerParentPacketFrames |
| 15 | EulerBaseDatum EulerPacketSupport EulerPacketSourceGeometry EulerPacketNormalizedPrimary |
| 16 | EulerPacketLowConstants EulerPacketInductionScales EulerPacketSourceScaleChoice |
| 17 | EulerPacketSourceScaleSequence EulerPacketSourceScaleActual EulerPacketBaseGuardScales |
| 18 | EulerParentRenewalScale EulerMeanHarmonic |
| 19 | |
| 20 | def frameData (A : Parent) : EulerTransversePacketProvider.Data FirstPlane := |
| 21 | A.transverseData firstNormal firstNormal_unit firstFrame support compact |
| 22 | |
| 23 | structure Stage {c B : ℝ} (S : Scales c B) (n : ℕ) where |
| 24 | parent : Parent |
| 25 | state : SmoothState parent |
| 26 | low : LowBounds parent |
| 27 | time : ℝ |
| 28 | time_nonneg : 0 ≤ time |
| 29 | time_zero : n=0 → time=0 |
| 30 | time_lower : n ≠ 0 → baseHorizon S.J S.X/12 ≤ time |
| 31 | horizon_eq : parent.T=time+2*timeWidth S.J S.X n |
| 32 | horizon_le : parent.T ≤ baseHorizon S.J S.X |
| 33 | scale_eq : parent.ell=supportScale S.J S.X n |
| 34 | label_eq : state.labels.K=(previousFrequency S.J S.D S.X n)^80 |
| 35 | gradient_bound : ∀ (t : Icc (0 : ℝ) parent.T) x, |
| 36 | ‖fderiv ℝ (fun y => state.evolution.velocity (t,y)) x‖ ≤ |
| 37 | gradientConstant*previousShear S.J S.X n |
| 38 | hessian_bound : ∀ (t : Icc (0 : ℝ) parent.T) x, |
| 39 | ‖fderiv ℝ (state.evolution.force t) x‖ ≤ |
| 40 | hessianConstant*previousShear S.J S.X n*olderShear S.J S.X n |
| 41 | exterior_bound : low.Be ≤ initialCoefficientCost+∑ i ∈ range n, initialIncrement S.J S.X i |
| 42 | core_bound : low.Bc ≤ gradientConstant*S.X^1000+∑ i ∈ range n, initialIncrement S.J S.X i |
| 43 | pressure_bound : low.K ≤ initialCoefficientCost+literalInitialPressureCost S.D S.X+ |
| 44 | ∑ i ∈ range n, pressureIncrement S.J S.X i |
| 45 | boundary_eq : low.L=boundaryLocalizationC1*low.Bc+1 |
| 46 | radius_eq : low.r=baseRadius S.X |
| 47 | frame : ParentFrame (frameData parent) time |
| 48 | frame_shear : frame.shear=previousShear S.J S.X n |
| 49 | frame_bound : frame.G ≤ frameConstant*(1+olderShear S.J S.X n) |
| 50 | frame_error : frame.error ≤ priorError S.J S.D S.X n |
| 51 | coupling_error : |frame.a-1| ≤ 2*∑ i ∈ range n, renewalCost S.J S.D 4 c frameConstant S.X i |
| 52 | tilt_lower : 1/2 ≤ frame.sigma^2*(scaleSequence S.J S.X n)^2 |
| 53 | tilt_upper : frame.sigma^2*(scaleSequence S.J S.X n)^2 ≤ 2 |
| 54 | compression : n ≠ 0 → |
| 55 | ⟪frame.B time (unit (frame.m time)),unit (frame.m time)⟫_ℝ+priorError S.J S.D S.X n < 0 |
| 56 | |
| 57 | namespace Stage |
| 58 | |
| 59 | variable {c B : ℝ} {S : Scales c B} {n : ℕ} (P : Stage S n) |
| 60 | |
| 61 | theorem coupling_bounds : 1/2 ≤ P.frame.a ∧ P.frame.a ≤ 2 := |
| 62 | EulerParentRenewalPrefix.bounds_of_accumulated_error S.renewal_series le_rfl n P.coupling_error |
| 63 | |
| 64 | theorem coupling_pos : 0 < P.frame.a := by linarith only [P.coupling_bounds.1] |
| 65 | |
| 66 | theorem sigma_nonneg : 0 ≤ P.frame.sigma := sqrt_nonneg _ |
| 67 | |
| 68 | theorem sigma_pos : 0 < P.frame.sigma := by |
| 69 | by_contra h |
| 70 | have hz := le_antisymm (le_of_not_gt h) P.sigma_nonneg |
| 71 | have ht := P.tilt_lower |
| 72 | rw [hz,zero_pow (by decide : 2 ≠ 0),zero_mul] at ht |
| 73 | norm_num at ht |
| 74 | |
| 75 | theorem time_lt : P.time < P.parent.T := by |
| 76 | rw [P.horizon_eq] |
| 77 | exact lt_add_of_pos_right _ (mul_pos (by norm_num) (timeWidth_pos S.J S.j_one S.x_pos n)) |
| 78 | |
| 79 | theorem time_one : P.time ≤ 1 := P.time_lt.le.trans (P.horizon_le.trans S.time_small) |
| 80 | |
| 81 | theorem horizon_lower : baseHorizon S.J S.X/12 < P.parent.T := by |
| 82 | by_cases hn : n=0 |
| 83 | · have ht := P.time_zero hn |
| 84 | have heq : P.parent.T=baseHorizon S.J S.X := by |
| 85 | rw [P.horizon_eq,ht,zero_add,hn,← baseHorizon_eq_timeWidth S.J S.x_pos] |
| 86 | rw [heq] |
| 87 | have hp := baseHorizon_pos S.J S.j_one S.x_pos |
| 88 | linarith only [hp] |
| 89 | · exact (P.time_lower hn).trans_lt P.time_lt |
| 90 | |
| 91 | theorem horizon_reciprocal : P.parent.T⁻¹ ≤ 12/baseHorizon S.J S.X := by |
| 92 | have hp := div_pos (baseHorizon_pos S.J S.j_one S.x_pos) (by norm_num : (0 : ℝ) < 12) |
| 93 | have h := one_div_le_one_div_of_le hp P.horizon_lower.le |
| 94 | simpa only [one_div,inv_div] using h |
| 95 | |
| 96 | theorem time_pos (hn : n ≠ 0) : 0 < P.time := |
| 97 | (div_pos (baseHorizon_pos S.J S.j_one S.x_pos) (by norm_num)).trans_le (P.time_lower hn) |
| 98 | |
| 99 | theorem time_reciprocal (hn : n ≠ 0) : P.time⁻¹ ≤ 12/baseHorizon S.J S.X := by |
| 100 | have hp := div_pos (baseHorizon_pos S.J S.j_one S.x_pos) (by norm_num : (0 : ℝ) < 12) |
| 101 | have h := one_div_le_one_div_of_le hp (P.time_lower hn) |
| 102 | simpa only [one_div,inv_div] using h |
| 103 | |
| 104 | theorem exterior_cap : P.low.Be ≤ initialCoefficientCost+1 := by |
| 105 | have h := P.exterior_bound |
| 106 | have hs := S.initial_partial_sum n |
| 107 | have hd := S.delta_small |
| 108 | linarith only [h,hs,hd] |
| 109 | |
| 110 | theorem core_cap : P.low.Bc ≤ gradientConstant*S.X^1000+2 := by |
| 111 | have h := P.core_bound |
| 112 | have hs := S.initial_partial_sum n |
| 113 | have hd := S.delta_small |
| 114 | linarith only [h,hs,hd] |
| 115 | |
| 116 | theorem pressure_cap : P.low.K ≤ initialCoefficientCost+1 := by |
| 117 | have h := P.pressure_bound |
| 118 | have hs := S.pressure_partial_sum n |
| 119 | have hd := S.delta_small |
| 120 | have hb := S.first.pressure_small |
| 121 | linarith only [h,hs,hd,hb] |
| 122 | |
| 123 | theorem source_stage : EulerPacketSourceScaleGuards.StageGuards S.J S.D 4 c S.X |
| 124 | geometryConstant (fun _ => P.frame.a) (fun _ => P.frame.sigma^2) n := |
| 125 | S.stage _ _ n P.coupling_bounds.1 P.coupling_bounds.2 P.tilt_lower P.tilt_upper |
| 126 | |
| 127 | theorem normalized_sigma : P.frame.sigma*scaleSequence S.J S.X n ≤ 2 := by |
| 128 | have h := P.tilt_upper |
| 129 | have hx := S.sequence_one n |
| 130 | have hp := mul_nonneg P.sigma_nonneg (zero_le_one.trans hx) |
| 131 | nlinarith only [h,hp,sq_nonneg (P.frame.sigma*scaleSequence S.J S.X n-1)] |
| 132 | |
| 133 | theorem strain_bound (t : Icc (0 : ℝ) P.parent.T) (x : Space) : |
| 134 | ‖P.parent.strain.field t x‖ ≤ gradientConstant*previousShear S.J S.X n := by |
| 135 | rw [P.state.evolution.strain_eq] |
| 136 | exact P.gradient_bound _ _ |
| 137 | |
| 138 | theorem curvature_bound (t : Icc (0 : ℝ) P.parent.T) (x : Space) : |
| 139 | ‖P.parent.curvature.field t x‖ ≤ |
| 140 | hessianConstant*previousShear S.J S.X n*olderShear S.J S.X n := by |
| 141 | rw [P.state.evolution.curvature_eq] |
| 142 | exact P.hessian_bound _ _ |
| 143 | |
| 144 | end Stage |
| 145 | end EulerPacketInduction |