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 NavierStokes.LocalHeatPressure |
| 2 | import NavierStokes.DirectAngularDiagonal |
| 3 | |
| 4 | /-! |
| 5 | # The literal exterior heat profile in radial coordinates |
| 6 | |
| 7 | This packages the existing heat solution using the manuscript's argument |
| 8 | `τ / r²`, with its fixed normalization absorbed into the exterior profile. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | namespace NavierStokes.LocalHeatFormula |
| 14 | |
| 15 | open Set |
| 16 | open scoped ContDiff |
| 17 | |
| 18 | /-- The exterior profile with the fixed physical normalization absorbed. -/ |
| 19 | noncomputable def exteriorProfile (C h y : ℝ) : ℝ := |
| 20 | C * (2 : ℝ) ^ (1 / 2 + h) * RadialHeatProfile.profile (1 + h) (4 * y) |
| 21 | |
| 22 | theorem exteriorProfile_smooth (C : ℝ) {h : ℝ} (hh : 0 < h) : |
| 23 | ContDiffOn ℝ ∞ (exteriorProfile C h) (Ici 0) := by |
| 24 | have hm : MapsTo (fun y : ℝ => 4 * y) (Ici 0) (Ici 0) := by |
| 25 | intro y hy |
| 26 | exact mul_nonneg (by norm_num : (0 : ℝ) ≤ 4) hy |
| 27 | exact contDiffOn_const.mul |
| 28 | ((RadialHeatProfile.profile_contDiffOn (show 1 < 1 + h by linarith)).comp |
| 29 | (contDiffOn_const.mul contDiffOn_id) hm) |
| 30 | |
| 31 | theorem exteriorProfile_iteratedDerivWithin (C : ℝ) {h : ℝ} (hh : 0 < h) |
| 32 | (n : ℕ) {y : ℝ} (hy : 0 ≤ y) : |
| 33 | iteratedDerivWithin n (exteriorProfile C h) (Ici 0) y = |
| 34 | (C * (2 : ℝ) ^ (1 / 2 + h)) * (4 : ℝ) ^ n * |
| 35 | iteratedDerivWithin n (RadialHeatProfile.profile (1 + h)) (Ici 0) (4 * y) := by |
| 36 | unfold exteriorProfile |
| 37 | rw [iteratedDerivWithin_const_mul_field] |
| 38 | rw [iteratedDerivWithin_comp_const_smul (s := Ici (0 : ℝ)) hy (uniqueDiffOn_Ici 0) |
| 39 | ((RadialHeatProfile.profile_contDiffOn (show 1 < 1 + h by linarith)).of_le |
| 40 | (ENat.natCast_le_of_coe_top_le_withTop le_rfl n)) 4 |
| 41 | (fun z hz => mul_nonneg (by norm_num : (0 : ℝ) ≤ 4) hz)] |
| 42 | simp only [smul_eq_mul, mul_assoc] |
| 43 | |
| 44 | /-- A finite bound independent of the nonnegative profile argument. -/ |
| 45 | noncomputable def exteriorDerivativeBound (C h : ℝ) (n : ℕ) : ℝ := |
| 46 | |C * (2 : ℝ) ^ (1 / 2 + h)| * (4 : ℝ) ^ n * |
| 47 | (|(Real.Gamma (1 + h))⁻¹ * RadialHeatProfile.derivativeCoeff (1 + h) n| * |
| 48 | Real.Gamma (1 + h + (n : ℝ))) |
| 49 | |
| 50 | theorem exteriorProfile_derivative_bound (C : ℝ) {h : ℝ} (hh : 0 < h) |
| 51 | (n : ℕ) {y : ℝ} (hy : 0 ≤ y) : |
| 52 | |iteratedDerivWithin n (exteriorProfile C h) (Ici 0) y| ≤ exteriorDerivativeBound C h n := by |
| 53 | rw [exteriorProfile_iteratedDerivWithin C hh n hy, abs_mul, abs_mul, |
| 54 | abs_of_nonneg (show 0 ≤ (4 : ℝ) ^ n by positivity)] |
| 55 | exact mul_le_mul_of_nonneg_left |
| 56 | (RadialHeatProfile.profile_derivative_bound (show 1 < 1 + h by linarith) n |
| 57 | (mul_nonneg (by norm_num) hy)) (by positivity) |
| 58 | |
| 59 | theorem exteriorProfile_all_derivatives_bounded (C : ℝ) {h : ℝ} (hh : 0 < h) (n : ℕ) : |
| 60 | ∃ M : ℝ, 0 ≤ M ∧ ∀ y ∈ Ici (0 : ℝ), |
| 61 | |iteratedDerivWithin n (exteriorProfile C h) (Ici 0) y| ≤ M := by |
| 62 | refine ⟨exteriorDerivativeBound C h n, ?_, fun y hy => exteriorProfile_derivative_bound C hh n hy⟩ |
| 63 | exact (abs_nonneg _).trans (exteriorProfile_derivative_bound C hh n (y := 0) le_rfl) |
| 64 | |
| 65 | /-- The angular speed expressed using backward time. -/ |
| 66 | noncomputable def amplitude (C h τ r : ℝ) : ℝ := |
| 67 | C * RadialHeatProfile.radialProfile (1 + h) τ r |
| 68 | |
| 69 | theorem amplitude_formula (C h τ : ℝ) {r : ℝ} (hr : 0 < r) : |
| 70 | amplitude C h τ r = r ^ (-1 - 2 * h) * exteriorProfile C h (τ / r ^ 2) := by |
| 71 | have hpow : (r ^ 2 / 2) ^ (-(1 / 2 + h)) = |
| 72 | r ^ (-1 - 2 * h) * (2 : ℝ) ^ (1 / 2 + h) := by |
| 73 | rw [Real.div_rpow (sq_nonneg r) (by norm_num), ← Real.rpow_natCast r 2, |
| 74 | ← Real.rpow_mul hr.le] |
| 75 | norm_num only [Nat.cast_ofNat] |
| 76 | rw [show (2 : ℝ) * -(1 / 2 + h) = -1 - 2 * h by ring, |
| 77 | Real.rpow_neg (by norm_num : (0 : ℝ) ≤ 2), div_inv_eq_mul] |
| 78 | have harg : 2 * τ / (r ^ 2 / 2) = 4 * (τ / r ^ 2) := by ring |
| 79 | rw [amplitude, RadialHeatProfile.radialProfile_source_formula, hpow, harg, exteriorProfile] |
| 80 | ring |
| 81 | |
| 82 | theorem amplitude_heat_equation (C : ℝ) {h τ r : ℝ} |
| 83 | (hh : 0 < h) (hτ : 0 < τ) (hr : 0 < r) : |
| 84 | -deriv (fun τ => amplitude C h τ r) τ = |
| 85 | iteratedDeriv 2 (amplitude C h τ) r + deriv (amplitude C h τ) r / r - |
| 86 | amplitude C h τ r / r ^ 2 := by |
| 87 | have he := RadialHeatProfile.radial_heat_equation (show 1 < 1 + h by linarith) hτ hr |
| 88 | change -deriv (fun τ => C * RadialHeatProfile.radialProfile (1 + h) τ r) τ = |
| 89 | iteratedDeriv 2 (fun r => C * RadialHeatProfile.radialProfile (1 + h) τ r) r + |
| 90 | deriv (fun r => C * RadialHeatProfile.radialProfile (1 + h) τ r) r / r - |
| 91 | C * RadialHeatProfile.radialProfile (1 + h) τ r / r ^ 2 |
| 92 | rw [iteratedDeriv_const_mul_field, deriv_const_mul_field, deriv_const_mul_field] |
| 93 | linear_combination C * he |
| 94 | |
| 95 | theorem amplitude_eq_heatAmplitude (C h t r : ℝ) : |
| 96 | amplitude C h (1 - t) r = TerminalStress.heatAmplitude C (1 + h) t r := rfl |
| 97 | |
| 98 | theorem heatCoefficient_radius (C h t z : ℝ) {r : ℝ} (hr : 0 < r) : |
| 99 | BaseExterior.heatCoefficient C h (TerminalStress.radiusPoint t r z) = |
| 100 | amplitude C h (1 - t) r / r := by |
| 101 | have he := TerminalStress.swirlCoefficient_amplitude C h (fun _ => 1) t z hr |
| 102 | simp only [TerminalStress.radialSlice, TerminalStress.flattening, mul_one] at he |
| 103 | apply (eq_div_iff hr.ne').mpr |
| 104 | simpa only [BaseExterior.heatCoefficient, amplitude_eq_heatAmplitude, mul_comm] using he |
| 105 | |
| 106 | theorem heatVelocity_formula (C h : ℝ) {w : ProblemStatement.SpaceTime} |
| 107 | (hs : 0 < AxisymmetricFields.radialEnergy w.2) : |
| 108 | BaseExterior.heatVelocity C h w = |
| 109 | (amplitude C h (1 - w.1) (Real.sqrt (2 * AxisymmetricFields.radialEnergy w.2)) / |
| 110 | Real.sqrt (2 * AxisymmetricFields.radialEnergy w.2)) • BaseResidual.angularVector w := by |
| 111 | rw [BaseExterior.heatVelocity_eq_angularVector] |
| 112 | have he := heatCoefficient_radius C h w.1 (w.2 2) |
| 113 | (show 0 < Real.sqrt (2 * AxisymmetricFields.radialEnergy w.2) by positivity) |
| 114 | rw [TerminalStress.radiusPoint_profilePoint hs.le] at he |
| 115 | rw [he] |
| 116 | |
| 117 | theorem heatVelocity_eq_angularField (C h : ℝ) {w : ProblemStatement.SpaceTime} |
| 118 | (hs : 0 < AxisymmetricFields.radialEnergy w.2) : |
| 119 | BaseExterior.heatVelocity C h w = |
| 120 | DirectAngularDiagonal.angularField (fun p => amplitude C h (1 - p.1) p.2.1) w := by |
| 121 | rw [heatVelocity_formula C h hs, DirectAngularDiagonal.angularField_eq_rotationField] |
| 122 | simp only [DirectAngularDiagonal.rotationField, DirectAngularDiagonal.rate, |
| 123 | DirectAngularDiagonal.profileToCyl, AxisymmetricFields.profilePoint, |
| 124 | AxisymmetricResidual.pack, BaseResidual.angularVector, smul_add, smul_smul, |
| 125 | zero_smul, add_zero] |
| 126 | congr 1 <;> congr 1 <;> ring |
| 127 | |
| 128 | theorem pressure_radius_integral (C h τ z : ℝ) {r : ℝ} (hr : 0 < r) : |
| 129 | BaseExterior.heatPressure C h (TerminalStress.radiusPoint (1 - τ) r z) = |
| 130 | -(∫ ρ in Ioi r, amplitude C h τ ρ ^ 2 / ρ) := by |
| 131 | simpa only [TerminalStress.heatAmplitude, show 1 - (1 - τ) = τ by ring, amplitude] using |
| 132 | LocalHeatPressure.heatPressure_radius_integral C h (1 - τ) z hr |
| 133 | |
| 134 | theorem pressure_integrand_integrable (C : ℝ) {h τ r : ℝ} |
| 135 | (hh : 0 < h) (hh1 : h < 1 / 2) (hτ : 0 < τ) (hr : 0 < r) : |
| 136 | MeasureTheory.IntegrableOn (fun ρ => amplitude C h τ ρ ^ 2 / ρ) (Ioi r) := by |
| 137 | simpa only [TerminalStress.heatAmplitude, show 1 - (1 - τ) = τ by ring, amplitude] using |
| 138 | LocalHeatPressure.heatAmplitude_sq_div_integrable C hh hh1 (show 1 - τ < 1 by linarith) hr |
| 139 | |
| 140 | end NavierStokes.LocalHeatFormula |