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 Mathlib.Algebra.BigOperators.Ring.Finset |
| 2 | import Mathlib.Analysis.Real.Sqrt |
| 3 | import Mathlib.Tactic.FieldSimp |
| 4 | import Mathlib.Tactic.Linarith |
| 5 | import Mathlib.Tactic.Ring |
| 6 | |
| 7 | /-! |
| 8 | # Exact moment algebra for the true-cone loop construction |
| 9 | |
| 10 | This file collects the algebraic ingredients of the true-cone loop construction |
| 11 | in Lemma 6.1 of the candidate manuscript: the averaging operator, the loop shear |
| 12 | and the rephasing density, with their elementary identities. The formulas are |
| 13 | algebraic; no existence, smoothness, or invertibility of a circle |
| 14 | reparametrization is asserted here. |
| 15 | |
| 16 | It also defines a two-point probability law and its mean. |
| 17 | -/ |
| 18 | |
| 19 | namespace NavierStokes.LoopMoments |
| 20 | |
| 21 | open scoped BigOperators |
| 22 | |
| 23 | noncomputable section |
| 24 | |
| 25 | variable {ι : Type*} |
| 26 | |
| 27 | /-- A finite weighted average. We retain the weights explicitly, so no |
| 28 | probabilistic or analytic existence assertion is hidden in the notation. -/ |
| 29 | def avg (s : Finset ι) (w f : ι → ℝ) : ℝ := |
| 30 | ∑ i ∈ s, w i * f i |
| 31 | |
| 32 | theorem avg_add (s : Finset ι) (w f g : ι → ℝ) : |
| 33 | avg s w (fun i => f i + g i) = avg s w f + avg s w g := by |
| 34 | simp only [avg, mul_add, Finset.sum_add_distrib] |
| 35 | |
| 36 | /-- The rephasing density relative to the old averaging parameter. -/ |
| 37 | def phaseDensity (a v t : ℝ) : ℝ := a * (1 + t ^ 2) / v |
| 38 | |
| 39 | /-- The positive first component of the loop shear. -/ |
| 40 | def loopA (v t : ℝ) : ℝ := v / (1 + t ^ 2) |
| 41 | |
| 42 | /-- The signed second component; this corresponds to `-b_L`. -/ |
| 43 | def loopC (v t : ℝ) : ℝ := v * t / (1 + t ^ 2) |
| 44 | |
| 45 | theorem one_add_sq_pos (t : ℝ) : 0 < 1 + t ^ 2 := by |
| 46 | nlinarith [sq_nonneg t] |
| 47 | |
| 48 | theorem loopA_pos (v t : ℝ) (hv : 0 < v) : 0 < loopA v t := by |
| 49 | exact div_pos hv (one_add_sq_pos t) |
| 50 | |
| 51 | theorem phaseDensity_pos (a v t : ℝ) (ha : 0 < a) (hv : 0 < v) : |
| 52 | 0 < phaseDensity a v t := by |
| 53 | exact div_pos (mul_pos ha (one_add_sq_pos t)) hv |
| 54 | |
| 55 | theorem loop_speed (v t : ℝ) : loopA v t * (1 + t ^ 2) = v := by |
| 56 | unfold loopA |
| 57 | exact div_mul_cancel₀ v (ne_of_gt (one_add_sq_pos t)) |
| 58 | |
| 59 | theorem loop_slope (v t : ℝ) (hv : v ≠ 0) : loopC v t / loopA v t = t := by |
| 60 | unfold loopC loopA |
| 61 | field_simp |
| 62 | |
| 63 | theorem density_times_loopA (a v t : ℝ) (hv : v ≠ 0) : |
| 64 | phaseDensity a v t * loopA v t = a := by |
| 65 | unfold phaseDensity loopA |
| 66 | field_simp |
| 67 | |
| 68 | theorem density_times_loopC (a v t : ℝ) (hv : v ≠ 0) : |
| 69 | phaseDensity a v t * loopC v t = a * t := by |
| 70 | unfold phaseDensity loopC |
| 71 | field_simp |
| 72 | |
| 73 | /-- A two-point probability law. This is a concrete finite object, without |
| 74 | any hypothesis asserting the existence of the manuscript's smooth loop. -/ |
| 75 | structure TwoPoint where |
| 76 | leftWeight : ℝ |
| 77 | rightWeight : ℝ |
| 78 | leftValue : ℝ |
| 79 | rightValue : ℝ |
| 80 | |
| 81 | def TwoPoint.mean (q : TwoPoint) : ℝ := |
| 82 | q.leftWeight * q.leftValue + q.rightWeight * q.rightValue |
| 83 | |
| 84 | end |
| 85 | |
| 86 | end NavierStokes.LoopMoments |