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_div_radial (h lam : ℝ) (U : Field) {p : Point} (hX : p.1 ≠ 0) : |
| 27 | radialFlux h lam U p / p.1 = (CoordinateAlgebra.L h p.2)⁻¹ * |
| 28 | (2 * p.2 * U p - 2 * p.2 * (CoordinateAlgebra.D h + lam) * average U p - |
| 29 | CoordinateAlgebra.d p.2 * SimilarityProfile.partialEta (average U) p) := by |
| 30 | dsimp [radialFlux] |
| 31 | rw [div_eq_mul_inv, div_eq_mul_inv] |
| 32 | calc |
| 33 | _ = (p.1 * p.1⁻¹) * ((CoordinateAlgebra.L h p.2)⁻¹ * |
| 34 | (2 * p.2 * U p - 2 * p.2 * (CoordinateAlgebra.D h + lam) * average U p - |
| 35 | CoordinateAlgebra.d p.2 * SimilarityProfile.partialEta (average U) p)) := by ring |
| 36 | _ = _ := by rw [mul_inv_cancel₀ hX, one_mul] |
| 37 | |
| 38 | /-- Rewriting the formula through actual radial histories removes every |
| 39 | division by X and permits differentiation at the axis. -/ |
| 40 | theorem radialFlux_eq_histories (Ω : RadialDomain) {U : Field} |
| 41 | (hU : ContDiffOn ℝ ∞ U Ω.carrier) (h lam : ℝ) {p : Point} (hp : p ∈ Ω.carrier) : |
| 42 | radialFlux h lam U p = |
| 43 | (2 * p.2 * (p.1 * U p) - |
| 44 | 2 * p.2 * (CoordinateAlgebra.D h + lam) * primitive U p - |
| 45 | CoordinateAlgebra.d p.2 * primitive (parameterPartial U) p) / |
| 46 | CoordinateAlgebra.L h p.2 := by |
| 47 | have hη : SimilarityProfile.partialEta (average U) p = average (parameterPartial U) p := |
| 48 | parameterPartial_average Ω hU hp |
| 49 | simp only [radialFlux, hη, primitive_eq_mul_average, div_eq_mul_inv] |
| 50 | ring |
| 51 | |
| 52 | theorem radialFlux_smoothAt (Ω : RadialDomain) {U : Field} |
| 53 | (hU : ContDiffOn ℝ ∞ U Ω.carrier) (h lam : ℝ) {p : Point} (hp : p ∈ Ω.carrier) |
| 54 | (hL : CoordinateAlgebra.L h p.2 ≠ 0) : ContDiffAt ℝ ∞ (radialFlux h lam U) p := by |
| 55 | have hu := hU.contDiffAt (Ω.isOpen.mem_nhds hp) |
| 56 | have ha := (average_smooth Ω hU).contDiffAt (Ω.isOpen.mem_nhds hp) |
| 57 | have hη := (parameterPartial_smooth Ω (average_smooth Ω hU)).contDiffAt (Ω.isOpen.mem_nhds hp) |
| 58 | exact (contDiffAt_fst.div |
| 59 | (contDiffAt_const.sub (contDiffAt_const.mul (contDiffAt_snd.pow 2))) hL).mul |
| 60 | ((((contDiffAt_const.mul contDiffAt_snd).mul hu).sub |
| 61 | (((contDiffAt_const.mul contDiffAt_snd).mul contDiffAt_const).mul ha)).sub |
| 62 | ((contDiffAt_const.sub (contDiffAt_snd.pow 2)).mul hη)) |
| 63 | |
| 64 | /-- The first identity in (21), derived by FTC from the actual histories. |
| 65 | The scalar radial statement also holds under total division when L=0. -/ |
| 66 | theorem radialFlux_hasDerivAt (Ω : RadialDomain) {U : Field} |
| 67 | (hU : ContDiffOn ℝ ∞ U Ω.carrier) (h lam : ℝ) {p : Point} (hp : p ∈ Ω.carrier) : |
| 68 | HasDerivAt (fun x => radialFlux h lam U (x, p.2)) |
| 69 | (-SimilarityProfile.Z h (-CoordinateAlgebra.A h + lam) U p) p.1 := by |
| 70 | have hd := (((((hasDerivAt_id p.1).mul (radialPartial_hasDerivAt Ω hU hp)).const_mul |
| 71 | (2 * p.2)).sub ((primitive_hasDerivAt Ω hU hp).const_mul |
| 72 | (2 * p.2 * (CoordinateAlgebra.D h + lam)))).sub |
| 73 | ((primitive_hasDerivAt Ω (parameterPartial_smooth Ω hU) hp).const_mul |
| 74 | (CoordinateAlgebra.d p.2))).div_const (CoordinateAlgebra.L h p.2) |
| 75 | have hd' : HasDerivAt (fun x => |
| 76 | (2 * p.2 * (x * U (x, p.2)) - |
| 77 | 2 * p.2 * (CoordinateAlgebra.D h + lam) * primitive U (x, p.2) - |
| 78 | CoordinateAlgebra.d p.2 * primitive (parameterPartial U) (x, p.2)) / |
| 79 | CoordinateAlgebra.L h p.2) |
| 80 | (-SimilarityProfile.Z h (-CoordinateAlgebra.A h + lam) U p) p.1 := by |
| 81 | apply hd.congr_deriv |
| 82 | dsimp [SimilarityProfile.Z, CoordinateAlgebra.axialCoeff, CoordinateAlgebra.A, |
| 83 | CoordinateAlgebra.D, SimilarityProfile.partialX, SimilarityProfile.partialEta, |
| 84 | radialPartial, parameterPartial] |
| 85 | ring |
| 86 | apply hd'.congr_of_eventuallyEq |
| 87 | have hn : ∀ᶠ x in 𝓝 p.1, (x, p.2) ∈ Ω.carrier := |
| 88 | (continuous_id.prodMk continuous_const).continuousAt (Ω.isOpen.mem_nhds hp) |
| 89 | filter_upwards [hn] with x hx |
| 90 | exact radialFlux_eq_histories Ω hU h lam hx |
| 91 | |
| 92 | /-- Equality with the partial derivative used by the similarity calculus. -/ |
| 93 | theorem partialX_radialFlux (Ω : RadialDomain) {U : Field} |
| 94 | (hU : ContDiffOn ℝ ∞ U Ω.carrier) (h lam : ℝ) {p : Point} (hp : p ∈ Ω.carrier) |
| 95 | (hL : CoordinateAlgebra.L h p.2 ≠ 0) : |
| 96 | SimilarityProfile.partialX (radialFlux h lam U) p = |
| 97 | -SimilarityProfile.Z h (-CoordinateAlgebra.A h + lam) U p := by |
| 98 | have hv := ((radialFlux_smoothAt Ω hU h lam hp hL).differentiableAt (by simp)).hasFDerivAt |
| 99 | have hd := hv.comp_hasDerivAt p.1 |
| 100 | ((hasDerivAt_id p.1).prodMk (hasDerivAt_const p.1 p.2)) |
| 101 | exact hd.unique (radialFlux_hasDerivAt Ω hU h lam hp) |
| 102 | |
| 103 | end NavierStokes.SlowDivergence |
| 104 | |
| 105 | end |