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.PacketParentMeanCoercivity |
| 2 | import Euler.ParameterSobolevCostMonotone |
| 3 | import Euler.MeanPacketBudget |
| 4 | |
| 5 | /-! A genuine mean-solver budget from parent deformation jets. All inverse |
| 6 | costs and the final radius are explicit finite polynomials in those jets, |
| 7 | the initial boundary size, and an upper bound for the inverse time length. -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace EulerPacketParentMeanBudget |
| 12 | |
| 13 | open Set Real EulerSmoothLimit EulerMeanCoefficients EulerPacketPiola EulerPacketCofactor |
| 14 | EulerGevrey EulerParameterWordGevrey EulerMeanBoundary EulerMeanFixedSobolevGevrey |
| 15 | EulerMeanTranslatedGevrey EulerMeanSourceFixedInverse EulerMeanStrongContinuousGevrey |
| 16 | EulerTimeLpGramSobolev EulerPacketParentMeanCoercivity |
| 17 | |
| 18 | def curvatureAmplitude (C C₂ : ℝ) : ℝ := 27*C^2*C₂ |
| 19 | |
| 20 | def operatorCost (q : ℕ) (T R C C₁ C₂ L : ℝ) : ℝ := |
| 21 | operatorBlockAmplitude (Fin 4) q T R C C₁ (curvatureAmplitude C C₂) C₁ |
| 22 | scaledBoundaryOperatorAmplitude L |
| 23 | |
| 24 | def forcingCost (q : ℕ) (T R C C₁ : ℝ) : ℝ := |
| 25 | forcingBlockAmplitude (Fin 4) q T R C C₁ 1 |
| 26 | |
| 27 | def weakCost (q : ℕ) (T R C C₁ C₂ L : ℝ) : ℝ := |
| 28 | 1+sobolevInverseCost (inverseEnvelope C C₁) (operatorCost q T R C C₁ C₂ L) q* |
| 29 | (operatorCost q T R C C₁ C₂ L+forcingCost q T R C C₁) |
| 30 | |
| 31 | def gramCost (q : ℕ) (R C C₁ V : ℝ) : ℝ := |
| 32 | inverseBlockCost (Fin 4) q (gramInverseEnvelope C) R (3*C^2) |
| 33 | (accelerationBlockAmplitude (Fin 4) q R C C₁ 1 V) |
| 34 | |
| 35 | def radius (q : ℕ) (T Ti R C C₁ C₂ L : ℝ) : ℝ := |
| 36 | 1+2*(weakCost q T R C C₁ C₂ L+gramCost q R C C₁ 1+gramCost q R C C₁ (Ti+2))* |
| 37 | (sobolevCoefficientRadius (Fin 4) R+1) |
| 38 | |
| 39 | theorem operatorCost_nonneg (q : ℕ) (T R C C₁ C₂ L : ℝ) |
| 40 | (hT : 0 ≤ T) (hR : 0 ≤ R) (hC₁ : 0 ≤ C₁) (hC₂ : 0 ≤ C₂) : |
| 41 | 0 ≤ operatorCost q T R C C₁ C₂ L := |
| 42 | sobolevCoefficientAmplitude_nonneg q R _ hR |
| 43 | (operatorAmplitude_nonneg T C C₁ (curvatureAmplitude C C₂) C₁ |
| 44 | scaledBoundaryOperatorAmplitude L hT (by unfold curvatureAmplitude; positivity) |
| 45 | hC₁ scaledBoundaryOperatorAmplitude_nonneg) |
| 46 | |
| 47 | theorem forcingCost_nonneg (q : ℕ) (T R C C₁ : ℝ) |
| 48 | (hT : 0 ≤ T) (hR : 0 ≤ R) (hC : 0 ≤ C) (hC₁ : 0 ≤ C₁) : |
| 49 | 0 ≤ forcingCost q T R C C₁ := by |
| 50 | have ha := sobolevCoefficientAmplitude_nonneg (ι := Fin 4) q R (T*(T*C₁+C)) hR (by positivity) |
| 51 | unfold forcingCost forcingBlockAmplitude |
| 52 | positivity |
| 53 | |
| 54 | theorem weakCost_one_le (q : ℕ) (T R C C₁ C₂ L : ℝ) |
| 55 | (hT : 0 ≤ T) (hR : 0 ≤ R) (hC : 0 ≤ C) (hC₁ : 0 ≤ C₁) (hC₂ : 0 ≤ C₂) : |
| 56 | 1 ≤ weakCost q T R C C₁ C₂ L := by |
| 57 | have ho := operatorCost_nonneg q T R C C₁ C₂ L hT hR hC₁ hC₂ |
| 58 | have hf := forcingCost_nonneg q T R C C₁ hT hR hC hC₁ |
| 59 | have hi := sobolevInverseCost_nonneg (inverseEnvelope C C₁) _ |
| 60 | (inverseEnvelope_nonneg C C₁) ho q |
| 61 | unfold weakCost |
| 62 | exact le_add_of_nonneg_right (mul_nonneg hi (add_nonneg ho hf)) |
| 63 | |
| 64 | theorem gramCost_nonneg (q : ℕ) (R C C₁ V : ℝ) |
| 65 | (hR : 0 ≤ R) (hC : 0 ≤ C) (hC₁ : 0 ≤ C₁) (hV : 0 ≤ V) : |
| 66 | 0 ≤ gramCost q R C C₁ V := by |
| 67 | have hi : 0 ≤ gramInverseEnvelope C := by unfold gramInverseEnvelope; positivity |
| 68 | have hb := sobolevCoefficientAmplitude_nonneg (ι := Fin 4) q R (3*C^2) hR (by positivity) |
| 69 | have hs := sobolevInverseCost_nonneg (gramInverseEnvelope C) _ hi hb q |
| 70 | have hd := accelerationBlockAmplitude_nonneg (ι := Fin 4) q R C C₁ 1 V hR hC hC₁ zero_le_one hV |
| 71 | unfold gramCost inverseBlockCost |
| 72 | positivity |
| 73 | |
| 74 | theorem radius_guards (q : ℕ) (T Ti R C C₁ C₂ L : ℝ) |
| 75 | (hT : 0 ≤ T) (hTi : 0 ≤ Ti) (hR : 0 ≤ R) (hC : 0 ≤ C) (hC₁ : 0 ≤ C₁) (hC₂ : 0 ≤ C₂) : |
| 76 | 2*weakCost q T R C C₁ C₂ L*(sobolevCoefficientRadius (Fin 4) R+1) ≤ radius q T Ti R C C₁ C₂ L ∧ |
| 77 | 2*gramCost q R C C₁ 1*(sobolevCoefficientRadius (Fin 4) R+1) ≤ radius q T Ti R C C₁ C₂ L ∧ |
| 78 | 2*gramCost q R C C₁ (Ti+2)*(sobolevCoefficientRadius (Fin 4) R+1) ≤ radius q T Ti R C C₁ C₂ L := by |
| 79 | have hw := zero_le_one.trans (weakCost_one_le q T R C C₁ C₂ L hT hR hC hC₁ hC₂) |
| 80 | have hg := gramCost_nonneg q R C C₁ 1 hR hC hC₁ zero_le_one |
| 81 | have hgc := gramCost_nonneg q R C C₁ (Ti+2) hR hC hC₁ (by positivity) |
| 82 | have hr := add_nonneg (sobolevCoefficientRadius_nonneg (ι := Fin 4) R hR) zero_le_one |
| 83 | have hw' := mul_nonneg hw hr |
| 84 | have hg' := mul_nonneg hg hr |
| 85 | have hgc' := mul_nonneg hgc hr |
| 86 | unfold radius |
| 87 | constructor |
| 88 | · nlinarith |
| 89 | constructor <;> nlinarith |
| 90 | |
| 91 | variable (D : EulerMeanPacketProvider.Data) (q : ℕ) (Ti R C C₁ C₂ : ℝ) |
| 92 | (hT : D.T ≤ 1) (hTi : D.T⁻¹ ≤ Ti) (hR : 1024 ≤ R) |
| 93 | (hC : 0 ≤ C) (hC₁ : 0 ≤ C₁) (hC₂ : 0 ≤ C₂) |
| 94 | (hdet : ∀ t x, (operatorMatrix (D.F.field t x)).det = 1) |
| 95 | (hF : ∀ n t x, ‖iteratedFDeriv ℝ n (D.F.field t : Space → EndSpace) x‖ ≤ C*majorant R 0 n) |
| 96 | (hF₁ : ∀ n t x, ‖iteratedFDeriv ℝ n (D.F₁.field t : Space → EndSpace) x‖ ≤ C₁*majorant R 0 n) |
| 97 | (hF₂ : ∀ n t x, ‖iteratedFDeriv ℝ n (D.F₂.field t : Space → EndSpace) x‖ ≤ C₂*majorant R 0 n) |
| 98 | |
| 99 | def sourceMeanBudget : EulerMeanPacketProvider.Budget D q (radius q D.T Ti R C C₁ C₂ D.L) := by |
| 100 | have hR0 : 0 ≤ R := (by norm_num : (0 : ℝ) ≤ 1024).trans hR |
| 101 | have hTi0 : 0 ≤ Ti := (inv_nonneg.mpr D.T_pos.le).trans hTi |
| 102 | have hzero : ∀ t x, ‖D.F.field t x‖ ≤ C := by |
| 103 | intro t x |
| 104 | simpa only [norm_iteratedFDeriv_zero,majorant,Nat.zero_add,Nat.factorial_zero, |
| 105 | Nat.cast_one,pow_zero,mul_one,one_pow] using hF 0 t x |
| 106 | have hone : ∀ t x, ‖D.F₁.field t x‖ ≤ C₁ := by |
| 107 | intro t x |
| 108 | simpa only [norm_iteratedFDeriv_zero,majorant,Nat.zero_add,Nat.factorial_zero, |
| 109 | Nat.cast_one,pow_zero,mul_one,one_pow] using hF₁ 0 t x |
| 110 | have hInv := sourceInverse_bound D C C₁ hC hC₁ hdet hzero hone hT |
| 111 | have hGram := gramInverse_bound D C hC hdet hzero |
| 112 | have hi0 : 0 ≤ (sourceFixedCoercivity D.T D.F D.F₁ D.opInv)⁻¹ := |
| 113 | inv_nonneg.mpr (sourceFixedCoercivity_pos D.T D.T_pos.le D.F D.F₁ D.opInv).le |
| 114 | have ho := operatorCost_nonneg q D.T R C C₁ C₂ D.L D.T_pos.le hR0 hC₁ hC₂ |
| 115 | have hf := forcingCost_nonneg q D.T R C C₁ D.T_pos.le hR0 hC hC₁ |
| 116 | have hs0 := sobolevInverseCost_nonneg (inverseEnvelope C C₁) _ (inverseEnvelope_nonneg C C₁) ho q |
| 117 | have hs := sobolevInverseCost_mono hi0 ho hInv le_rfl q |
| 118 | have hop : sobolevInverseCost (sourceFixedCoercivity D.T D.F D.F₁ D.opInv)⁻¹ |
| 119 | (operatorCost q D.T R C C₁ C₂ D.L) q*operatorCost q D.T R C C₁ C₂ D.L ≤ |
| 120 | weakCost q D.T R C C₁ C₂ D.L := by |
| 121 | apply (mul_le_mul_of_nonneg_right hs ho).trans |
| 122 | unfold weakCost |
| 123 | nlinarith [mul_nonneg hs0 hf] |
| 124 | have hfp : sobolevInverseCost (sourceFixedCoercivity D.T D.F D.F₁ D.opInv)⁻¹ |
| 125 | (operatorCost q D.T R C C₁ C₂ D.L) q*forcingCost q D.T R C C₁ ≤ |
| 126 | weakCost q D.T R C C₁ C₂ D.L := by |
| 127 | apply (mul_le_mul_of_nonneg_right hs hf).trans |
| 128 | unfold weakCost |
| 129 | nlinarith [mul_nonneg hs0 ho] |
| 130 | have hsqrt : sqrt D.T ≤ 1 := by nlinarith [sqrt_nonneg D.T, sq_sqrt D.T_pos.le] |
| 131 | have htrace : coordinateTraceCost D.T ≤ Ti+2 := by |
| 132 | unfold coordinateTraceCost |
| 133 | have hmul := mul_le_mul hTi hsqrt (sqrt_nonneg D.T) hTi0 |
| 134 | nlinarith |
| 135 | have ht0 := coordinateTraceCost_nonneg D.T D.T_pos.le |
| 136 | have hg0 : 0 ≤ D.frameLower⁻¹ := inv_nonneg.mpr D.frameLower_pos.le |
| 137 | have hd0 := accelerationBlockAmplitude_nonneg (ι := Fin 4) q R C C₁ 1 1 hR0 hC hC₁ zero_le_one zero_le_one |
| 138 | have hdt := accelerationBlockAmplitude_nonneg (ι := Fin 4) q R C C₁ 1 (coordinateTraceCost D.T) |
| 139 | hR0 hC hC₁ zero_le_one ht0 |
| 140 | have hacc : accelerationBlockAmplitude (Fin 4) q R C C₁ 1 (coordinateTraceCost D.T) ≤ |
| 141 | accelerationBlockAmplitude (Fin 4) q R C C₁ 1 (Ti+2) := by |
| 142 | have ha := sobolevCoefficientAmplitude_nonneg (ι := Fin 4) q R C hR0 hC |
| 143 | have hb := sobolevCoefficientAmplitude_nonneg (ι := Fin 4) q R C₁ hR0 hC₁ |
| 144 | unfold accelerationBlockAmplitude |
| 145 | gcongr |
| 146 | have hg := inverseBlockCost_mono (ι := Fin 4) q hg0 hR0 (by positivity : 0 ≤ 3*C^2) hd0 hGram le_rfl le_rfl |
| 147 | have hgc := inverseBlockCost_mono (ι := Fin 4) q hg0 hR0 (by positivity : 0 ≤ 3*C^2) hdt hGram le_rfl hacc |
| 148 | have hr := radius_guards q D.T Ti R C C₁ C₂ D.L D.T_pos.le hTi0 hR0 hC hC₁ hC₂ |
| 149 | have hr0 := add_nonneg (sobolevCoefficientRadius_nonneg (ι := Fin 4) R hR0) zero_le_one |
| 150 | refine { |
| 151 | Rc := R |
| 152 | M := weakCost q D.T R C C₁ C₂ D.L |
| 153 | CF := C |
| 154 | CF₁ := C₁ |
| 155 | CH := curvatureAmplitude C C₂ |
| 156 | CM := C₁ |
| 157 | Cf := 1 |
| 158 | radius_lower := hR |
| 159 | inverse_cost_lower := weakCost_one_le q D.T R C C₁ C₂ D.L D.T_pos.le hR0 hC hC₁ hC₂ |
| 160 | CF_nonneg := hC |
| 161 | CF₁_nonneg := hC₁ |
| 162 | CH_nonneg := by unfold curvatureAmplitude; positivity |
| 163 | CM_nonneg := hC₁ |
| 164 | Cf_nonneg := zero_le_one |
| 165 | operator_budget := hop |
| 166 | forcing_budget := hfp |
| 167 | radius_budget := hr.1 |
| 168 | acceleration_budget := ?_ |
| 169 | continuous_acceleration_budget := ?_ |
| 170 | frame_bound := hF |
| 171 | frame_derivative_bound := hF₁ |
| 172 | curvature_bound := coefficientCurvature_bound D.F D.F₂ D.H hdet D.second_equation |
| 173 | R C C₂ hR0 hC hC₂ hF hF₂ |
| 174 | initial_strain_bound := ?_ |
| 175 | forcing_one := le_rfl |
| 176 | forcing_time := hsqrt } |
| 177 | · exact (mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hg (by norm_num : (0 : ℝ) ≤ 2)) hr0).trans hr.2.1 |
| 178 | · exact (mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hgc (by norm_num : (0 : ℝ) ≤ 2)) hr0).trans hr.2.2 |
| 179 | · intro n x |
| 180 | have he : (D.M0.field : Space → EndSpace) = D.F₁.field ⟨0,le_rfl,D.T_pos.le⟩ := |
| 181 | funext (fun y => (D.derivative_initial y).symm) |
| 182 | rw [he] |
| 183 | exact hF₁ n ⟨0,le_rfl,D.T_pos.le⟩ x |
| 184 | |
| 185 | end EulerPacketParentMeanBudget |