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.ProfileHistories |
| 2 | import NavierStokes.SimilarityProfile |
| 3 | |
| 4 | /-! |
| 5 | # The actual positive-order divergence primitive |
| 6 | |
| 7 | Equation (21) is derived from genuine radial averages of a jointly smooth |
| 8 | axial profile. Its radial derivative is the actual similarity axial operator, |
| 9 | and its physical reconstruction satisfies the flux form of incompressibility. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | namespace NavierStokes.SlowDivergence |
| 15 | |
| 16 | open Set Filter MeasureTheory |
| 17 | open scoped Topology ContDiff |
| 18 | open ProfileHistories |
| 19 | |
| 20 | /-- The positive-order radial flux, with an arbitrary exponent increment lam. -/ |
| 21 | def radialFlux (h lam : ℝ) (U : Field) (p : Point) : ℝ := |
| 22 | p.1 / CoordinateAlgebra.L h p.2 * |
| 23 | (2 * p.2 * U p - 2 * p.2 * (CoordinateAlgebra.D h + lam) * average U p - |
| 24 | CoordinateAlgebra.d p.2 * SimilarityProfile.partialEta (average U) p) |
| 25 | |
| 26 | theorem radialFlux_at_axis (h lam η : ℝ) (U : Field) : radialFlux h lam U (0, η) = 0 := by |
| 27 | simp [radialFlux] |
| 28 | |
| 29 | theorem radialFlux_div_radial (h lam : ℝ) (U : Field) {p : Point} (hX : p.1 ≠ 0) : |
| 30 | radialFlux h lam U p / p.1 = (CoordinateAlgebra.L h p.2)⁻¹ * |
| 31 | (2 * p.2 * U p - 2 * p.2 * (CoordinateAlgebra.D h + lam) * average U p - |
| 32 | CoordinateAlgebra.d p.2 * SimilarityProfile.partialEta (average U) p) := by |
| 33 | dsimp [radialFlux] |
| 34 | rw [div_eq_mul_inv, div_eq_mul_inv] |
| 35 | calc |
| 36 | _ = (p.1 * p.1⁻¹) * ((CoordinateAlgebra.L h p.2)⁻¹ * |
| 37 | (2 * p.2 * U p - 2 * p.2 * (CoordinateAlgebra.D h + lam) * average U p - |
| 38 | CoordinateAlgebra.d p.2 * SimilarityProfile.partialEta (average U) p)) := by ring |
| 39 | _ = _ := by rw [mul_inv_cancel₀ hX, one_mul] |
| 40 | |
| 41 | /-- Rewriting the formula through actual radial histories removes every |
| 42 | division by X and permits differentiation at the axis. -/ |
| 43 | theorem radialFlux_eq_histories (Ω : RadialDomain) {U : Field} |
| 44 | (hU : ContDiffOn ℝ ∞ U Ω.carrier) (h lam : ℝ) {p : Point} (hp : p ∈ Ω.carrier) : |
| 45 | radialFlux h lam U p = |
| 46 | (2 * p.2 * (p.1 * U p) - |
| 47 | 2 * p.2 * (CoordinateAlgebra.D h + lam) * primitive U p - |
| 48 | CoordinateAlgebra.d p.2 * primitive (parameterPartial U) p) / |
| 49 | CoordinateAlgebra.L h p.2 := by |
| 50 | have hη : SimilarityProfile.partialEta (average U) p = average (parameterPartial U) p := |
| 51 | parameterPartial_average Ω hU hp |
| 52 | simp only [radialFlux, hη, primitive_eq_mul_average, div_eq_mul_inv] |
| 53 | ring |
| 54 | |
| 55 | theorem radialFlux_smoothAt (Ω : RadialDomain) {U : Field} |
| 56 | (hU : ContDiffOn ℝ ∞ U Ω.carrier) (h lam : ℝ) {p : Point} (hp : p ∈ Ω.carrier) |
| 57 | (hL : CoordinateAlgebra.L h p.2 ≠ 0) : ContDiffAt ℝ ∞ (radialFlux h lam U) p := by |
| 58 | have hu := hU.contDiffAt (Ω.isOpen.mem_nhds hp) |
| 59 | have ha := (average_smooth Ω hU).contDiffAt (Ω.isOpen.mem_nhds hp) |
| 60 | have hη := (parameterPartial_smooth Ω (average_smooth Ω hU)).contDiffAt (Ω.isOpen.mem_nhds hp) |
| 61 | exact (contDiffAt_fst.div |
| 62 | (contDiffAt_const.sub (contDiffAt_const.mul (contDiffAt_snd.pow 2))) hL).mul |
| 63 | ((((contDiffAt_const.mul contDiffAt_snd).mul hu).sub |
| 64 | (((contDiffAt_const.mul contDiffAt_snd).mul contDiffAt_const).mul ha)).sub |
| 65 | ((contDiffAt_const.sub (contDiffAt_snd.pow 2)).mul hη)) |
| 66 | |
| 67 | /-- Joint C∞ regularity on every open profile domain avoiding L=0. -/ |
| 68 | theorem radialFlux_smooth (Ω : RadialDomain) {U : Field} |
| 69 | (hU : ContDiffOn ℝ ∞ U Ω.carrier) (h lam : ℝ) |
| 70 | (hL : ∀ p ∈ Ω.carrier, CoordinateAlgebra.L h p.2 ≠ 0) : |
| 71 | ContDiffOn ℝ ∞ (radialFlux h lam U) Ω.carrier := by |
| 72 | intro p hp |
| 73 | exact (radialFlux_smoothAt Ω hU h lam hp (hL p hp)).contDiffWithinAt |
| 74 | |
| 75 | /-- The first identity in (21), derived by FTC from the actual histories. |
| 76 | The scalar radial statement also holds under total division when L=0. -/ |
| 77 | theorem radialFlux_hasDerivAt (Ω : RadialDomain) {U : Field} |
| 78 | (hU : ContDiffOn ℝ ∞ U Ω.carrier) (h lam : ℝ) {p : Point} (hp : p ∈ Ω.carrier) : |
| 79 | HasDerivAt (fun x => radialFlux h lam U (x, p.2)) |
| 80 | (-SimilarityProfile.Z h (-CoordinateAlgebra.A h + lam) U p) p.1 := by |
| 81 | have hd := (((((hasDerivAt_id p.1).mul (radialPartial_hasDerivAt Ω hU hp)).const_mul |
| 82 | (2 * p.2)).sub ((primitive_hasDerivAt Ω hU hp).const_mul |
| 83 | (2 * p.2 * (CoordinateAlgebra.D h + lam)))).sub |
| 84 | ((primitive_hasDerivAt Ω (parameterPartial_smooth Ω hU) hp).const_mul |
| 85 | (CoordinateAlgebra.d p.2))).div_const (CoordinateAlgebra.L h p.2) |
| 86 | have hd' : HasDerivAt (fun x => |
| 87 | (2 * p.2 * (x * U (x, p.2)) - |
| 88 | 2 * p.2 * (CoordinateAlgebra.D h + lam) * primitive U (x, p.2) - |
| 89 | CoordinateAlgebra.d p.2 * primitive (parameterPartial U) (x, p.2)) / |
| 90 | CoordinateAlgebra.L h p.2) |
| 91 | (-SimilarityProfile.Z h (-CoordinateAlgebra.A h + lam) U p) p.1 := by |
| 92 | apply hd.congr_deriv |
| 93 | dsimp [SimilarityProfile.Z, CoordinateAlgebra.axialCoeff, CoordinateAlgebra.A, |
| 94 | CoordinateAlgebra.D, SimilarityProfile.partialX, SimilarityProfile.partialEta, |
| 95 | radialPartial, parameterPartial] |
| 96 | ring |
| 97 | apply hd'.congr_of_eventuallyEq |
| 98 | have hn : ∀ᶠ x in 𝓝 p.1, (x, p.2) ∈ Ω.carrier := |
| 99 | (continuous_id.prodMk continuous_const).continuousAt (Ω.isOpen.mem_nhds hp) |
| 100 | filter_upwards [hn] with x hx |
| 101 | exact radialFlux_eq_histories Ω hU h lam hx |
| 102 | |
| 103 | /-- Equality with the partial derivative used by the similarity calculus. -/ |
| 104 | theorem partialX_radialFlux (Ω : RadialDomain) {U : Field} |
| 105 | (hU : ContDiffOn ℝ ∞ U Ω.carrier) (h lam : ℝ) {p : Point} (hp : p ∈ Ω.carrier) |
| 106 | (hL : CoordinateAlgebra.L h p.2 ≠ 0) : |
| 107 | SimilarityProfile.partialX (radialFlux h lam U) p = |
| 108 | -SimilarityProfile.Z h (-CoordinateAlgebra.A h + lam) U p := by |
| 109 | have hv := ((radialFlux_smoothAt Ω hU h lam hp hL).differentiableAt (by simp)).hasFDerivAt |
| 110 | have hd := hv.comp_hasDerivAt p.1 |
| 111 | ((hasDerivAt_id p.1).prodMk (hasDerivAt_const p.1 p.2)) |
| 112 | exact hd.unique (radialFlux_hasDerivAt Ω hU h lam hp) |
| 113 | |
| 114 | theorem axial_source_intervalIntegrable (Ω : RadialDomain) {U : Field} |
| 115 | (hU : ContDiffOn ℝ ∞ U Ω.carrier) (h b : ℝ) {p : Point} (hp : p ∈ Ω.carrier) : |
| 116 | IntervalIntegrable (fun x => -SimilarityProfile.Z h b U (x, p.2)) volume 0 p.1 := by |
| 117 | have hu : ContinuousOn (fun x => U (x, p.2)) (uIcc 0 p.1) := |
| 118 | (radial_slice_continuous Ω hU p.2).mono (fun _ hx => Ω.segment_mem hp hx) |
| 119 | have hx : ContinuousOn (fun x => radialPartial U (x, p.2)) (uIcc 0 p.1) := |
| 120 | (radial_slice_continuous Ω (radialPartial_smooth Ω hU) p.2).mono |
| 121 | (fun _ hx => Ω.segment_mem hp hx) |
| 122 | have hη : ContinuousOn (fun x => parameterPartial U (x, p.2)) (uIcc 0 p.1) := |
| 123 | (radial_slice_continuous Ω (parameterPartial_smooth Ω hU) p.2).mono |
| 124 | (fun _ hx => Ω.segment_mem hp hx) |
| 125 | have hc : ContinuousOn (fun x => |
| 126 | -((2 * p.2 * b * U (x, p.2) + CoordinateAlgebra.d p.2 * parameterPartial U (x, p.2) - |
| 127 | 2 * p.2 * (x * radialPartial U (x, p.2))) / CoordinateAlgebra.L h p.2)) |
| 128 | (uIcc 0 p.1) := |
| 129 | ((((continuousOn_const.mul hu).add |
| 130 | (continuousOn_const.mul hη)).sub |
| 131 | (continuousOn_const.mul (continuousOn_id.mul hx))).div_const (CoordinateAlgebra.L h p.2)).neg |
| 132 | simpa only [SimilarityProfile.Z, CoordinateAlgebra.axialCoeff, SimilarityProfile.partialX, |
| 133 | SimilarityProfile.partialEta, radialPartial, parameterPartial, mul_assoc] using hc.intervalIntegrable |
| 134 | |
| 135 | /-- The printed expression is precisely the zero-axis integral of -Z U. -/ |
| 136 | theorem radialFlux_eq_integral (Ω : RadialDomain) {U : Field} |
| 137 | (hU : ContDiffOn ℝ ∞ U Ω.carrier) (h lam : ℝ) {p : Point} (hp : p ∈ Ω.carrier) : |
| 138 | radialFlux h lam U p = |
| 139 | ∫ x in (0 : ℝ)..p.1, -SimilarityProfile.Z h (-CoordinateAlgebra.A h + lam) U (x, p.2) := by |
| 140 | have hi := intervalIntegral.integral_eq_sub_of_hasDerivAt |
| 141 | (f := fun x => radialFlux h lam U (x, p.2)) |
| 142 | (fun x hx => radialFlux_hasDerivAt Ω hU h lam (Ω.segment_mem hp hx)) |
| 143 | (axial_source_intervalIntegrable Ω hU h (-CoordinateAlgebra.A h + lam) hp) |
| 144 | simpa only [radialFlux_at_axis, sub_zero, Prod.eta] using hi.symm |
| 145 | |
| 146 | /-- Physical incompressibility in flux coordinates `(t,s,z)`, `s=r²/2`. |
| 147 | The radial flux has power q^lam and the axial velocity has power q^(-A+lam). -/ |
| 148 | theorem physical_flux_axial_balance (Ω : RadialDomain) {U : Field} |
| 149 | (hU : ContDiffOn ℝ ∞ U Ω.carrier) {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 150 | (lam : ℝ) {p : SimilarityProfile.PhysicalPoint} (hp : p.1 < 1) |
| 151 | (hi : SimilarityProfile.inner h p ∈ Ω.carrier) : |
| 152 | SimilarityProfile.partialS (SimilarityProfile.pullback h lam (radialFlux h lam U)) p + |
| 153 | SimilarityProfile.partialZ (SimilarityProfile.pullback h (-CoordinateAlgebra.A h + lam) U) p = 0 := by |
| 154 | have hL : CoordinateAlgebra.L h (SimilarityProfile.inner h p).2 ≠ 0 := |
| 155 | (SimilarityProfile.L_pos hh hh1 hp).ne' |
| 156 | rw [SimilarityProfile.partialS_pullback hh hh1 hp |
| 157 | ((radialFlux_smoothAt Ω hU h lam hi hL).differentiableAt (by simp))] |
| 158 | rw [SimilarityProfile.partialZ_pullback hh hh1 hp |
| 159 | ((hU.contDiffAt (Ω.isOpen.mem_nhds hi)).differentiableAt (by simp))] |
| 160 | have he : -CoordinateAlgebra.A h + lam - SimilarityProfile.D h = lam - 1 := by |
| 161 | dsimp [CoordinateAlgebra.A, SimilarityProfile.D, CoordinateAlgebra.D] |
| 162 | ring |
| 163 | rw [he] |
| 164 | simp only [SimilarityProfile.pullback] |
| 165 | rw [partialX_radialFlux Ω hU h lam hi hL] |
| 166 | ring |
| 167 | |
| 168 | /-- Specialization to the manuscript's lam_n = 2nh, with n represented honestly |
| 169 | as a natural-number order. -/ |
| 170 | theorem slow_order_divergence (Ω : RadialDomain) {U : Field} |
| 171 | (hU : ContDiffOn ℝ ∞ U Ω.carrier) (h : ℝ) (n : ℕ) |
| 172 | {p : Point} (hp : p ∈ Ω.carrier) (hL : CoordinateAlgebra.L h p.2 ≠ 0) : |
| 173 | SimilarityProfile.partialX (radialFlux h (2 * (n : ℝ) * h) U) p + |
| 174 | SimilarityProfile.Z h (-CoordinateAlgebra.A h + 2 * (n : ℝ) * h) U p = 0 := by |
| 175 | rw [partialX_radialFlux Ω hU h (2 * (n : ℝ) * h) hp hL] |
| 176 | exact neg_add_cancel _ |
| 177 | |
| 178 | end NavierStokes.SlowDivergence |
| 179 | |
| 180 | end |