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.PacketSlicedResidual |
| 2 | import Euler.PacketKnownGrade |
| 3 | |
| 4 | /-! |
| 5 | The well-founded profile recursion in (14), on literal time/space/angle fields. |
| 6 | Every new mean is computed before the new high coefficient. The supplied |
| 7 | linear inverse maps are the interface to the analytic source constructions; |
| 8 | this file proves the recursion and its dependence only on earlier grades. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | namespace EulerPacketProfileRecursion |
| 14 | |
| 15 | open EulerSmoothLimit EulerPacketPointJets Set |
| 16 | |
| 17 | abbrev VectorField := Domain → Space |
| 18 | abbrev ScalarField := Domain → ℝ |
| 19 | |
| 20 | structure Profile where |
| 21 | high : VectorField |
| 22 | mean : VectorField |
| 23 | corrector : VectorField |
| 24 | highPressure : ScalarField |
| 25 | meanPressure : ScalarField |
| 26 | |
| 27 | instance : Zero Profile := ⟨⟨0,0,0,0,0⟩⟩ |
| 28 | |
| 29 | structure Operators where |
| 30 | interval : Set ℝ |
| 31 | period : ℝ |
| 32 | inverseFrame : Domain → Space →L[ℝ] Space |
| 33 | strain : Domain → Space →L[ℝ] Space |
| 34 | normal : VectorField |
| 35 | meanSolve : VectorField → VectorField × ScalarField |
| 36 | highSolve : VectorField → VectorField × ScalarField |
| 37 | curlCorrector : VectorField → VectorField |
| 38 | |
| 39 | /-- Literal angular averaging at each time and spatial label. -/ |
| 40 | def angleMean (P : ℝ) (f : VectorField) : VectorField := |
| 41 | fun z => P⁻¹ • ∫ θ in 0..P, f (z.1,(z.2.1,θ)) |
| 42 | |
| 43 | /-- The stored coefficients determine the jets of V_i=A_i+B_i+C_{i-1}. -/ |
| 44 | def velocityJet (s : Set ℝ) (a : ℕ → Profile) (z : Domain) (i : ℕ) : VectorJet := |
| 45 | if i=0 then 0 else slicedJet s (a i).high z+slicedJet s (a i).mean z+ |
| 46 | slicedJet s (a (i-1)).corrector z |
| 47 | |
| 48 | def knownJets (O : Operators) (p : ℕ) (a : ℕ → Profile) (z : Domain) : ℕ → VectorJet := |
| 49 | history p (velocityJet O.interval a z) (slicedJet O.interval (a (p-1)).corrector z) |
| 50 | |
| 51 | /-- All terms of the grade-p forcing that are already determined. -/ |
| 52 | def knownForce (O : Operators) (p : ℕ) (a : ℕ → Profile) : VectorField := |
| 53 | fun z => -(linearPart (O.strain z) (slicedJet O.interval (a (p-1)).corrector z)+ |
| 54 | slowPressure (O.inverseFrame z) (pressureJet (a (p-1)).highPressure z)+ |
| 55 | nonlinearGrade (p+1) p (O.inverseFrame z) (O.normal z) (knownJets O p a z)) |
| 56 | |
| 57 | def meanForce (O : Operators) (p : ℕ) (a : ℕ → Profile) : VectorField := |
| 58 | angleMean O.period (knownForce O p a) |
| 59 | |
| 60 | def meanResult (O : Operators) (p : ℕ) (a : ℕ → Profile) : VectorField × ScalarField := |
| 61 | O.meanSolve (meanForce O p a) |
| 62 | |
| 63 | /-- The sole new mean-primary interaction is added after solving the mean. -/ |
| 64 | def highForce (O : Operators) (p : ℕ) (a : ℕ → Profile) : VectorField := |
| 65 | fun z => knownForce O p a z-meanForce O p a z- |
| 66 | fastAdvection (O.normal z) (slicedJet O.interval (meanResult O p a).1 z) |
| 67 | (slicedJet O.interval (a 1).high z) |
| 68 | |
| 69 | def step (O : Operators) (p : ℕ) (a : ℕ → Profile) : Profile := |
| 70 | let b := meanResult O p a |
| 71 | let h := O.highSolve (highForce O p a) |
| 72 | ⟨h.1,b.1,O.curlCorrector h.1,h.2,b.2⟩ |
| 73 | |
| 74 | theorem velocityJet_congr (s : Set ℝ) (p : ℕ) (a b : ℕ → Profile) |
| 75 | (h : ∀ i<p, a i=b i) (z : Domain) (i : ℕ) (hi : i<p) : |
| 76 | velocityJet s a z i=velocityJet s b z i := by |
| 77 | by_cases hz : i=0 |
| 78 | · simp only [velocityJet, hz, ite_true] |
| 79 | · simp only [velocityJet, hz, ite_false, h i hi, h (i-1) (by omega)] |
| 80 | |
| 81 | theorem knownJets_congr (O : Operators) (p : ℕ) (hp : 1 ≤ p) (a b : ℕ → Profile) |
| 82 | (h : ∀ i<p, a i=b i) (z : Domain) : knownJets O p a z=knownJets O p b z := by |
| 83 | unfold knownJets |
| 84 | rw [h (p-1) (by omega)] |
| 85 | exact history_congr p _ _ _ (fun i hi => velocityJet_congr O.interval p a b h z i hi) |
| 86 | |
| 87 | theorem knownForce_congr (O : Operators) (p : ℕ) (hp : 1 ≤ p) (a b : ℕ → Profile) |
| 88 | (h : ∀ i<p, a i=b i) : knownForce O p a=knownForce O p b := by |
| 89 | funext z |
| 90 | unfold knownForce |
| 91 | rw [h (p-1) (by omega), knownJets_congr O p hp a b h z] |
| 92 | |
| 93 | /-- At p≥2 the complete new profile depends only on the strict prefix. -/ |
| 94 | theorem step_congr (O : Operators) (p : ℕ) (hp : 2 ≤ p) (a b : ℕ → Profile) |
| 95 | (h : ∀ i<p, a i=b i) : step O p a=step O p b := by |
| 96 | have hf := knownForce_congr O p (by omega) a b h |
| 97 | have h₁ := h 1 (by omega) |
| 98 | have hh : highForce O p a=highForce O p b := by |
| 99 | funext z |
| 100 | simp only [highForce, meanResult, meanForce, hf, h₁] |
| 101 | simp only [step, meanResult, meanForce, hf, hh] |
| 102 | |
| 103 | def recursionStep (O : Operators) (primary : Profile) (p : ℕ) |
| 104 | (a : (i : ℕ) → i<p → Profile) : Profile := |
| 105 | if p=0 then 0 else if p=1 then primary else |
| 106 | step O p (fun i => if hi : i<p then a i hi else 0) |
| 107 | |
| 108 | /-- All finite profile families are restrictions of this one well-founded sequence. -/ |
| 109 | def profiles (O : Operators) (primary : Profile) : ℕ → Profile := |
| 110 | Nat.strongRec (recursionStep O primary) |
| 111 | |
| 112 | theorem profiles_unfold (O : Operators) (primary : Profile) (p : ℕ) : |
| 113 | profiles O primary p=recursionStep O primary p (fun i _ => profiles O primary i) := |
| 114 | Nat.strongRec_eq (recursionStep O primary) p |
| 115 | |
| 116 | @[simp] theorem profiles_zero (O : Operators) (primary : Profile) : profiles O primary 0=0 := by |
| 117 | rw [profiles_unfold] |
| 118 | simp only [recursionStep, ite_true] |
| 119 | |
| 120 | @[simp] theorem profiles_one (O : Operators) (primary : Profile) : profiles O primary 1=primary := by |
| 121 | rw [profiles_unfold] |
| 122 | simp only [recursionStep, one_ne_zero, ite_false, ite_true] |
| 123 | |
| 124 | /-- This is an actual recursive construction, not an existence assumption on profiles. -/ |
| 125 | theorem profiles_step (O : Operators) (primary : Profile) (p : ℕ) (hp : 2 ≤ p) : |
| 126 | profiles O primary p=step O p (profiles O primary) := by |
| 127 | rw [profiles_unfold] |
| 128 | simp only [recursionStep, show p ≠ 0 by omega, show p ≠ 1 by omega, ite_false] |
| 129 | apply step_congr O p hp |
| 130 | intro i hi |
| 131 | simp only [dite_eq_left hi] |
| 132 | |
| 133 | theorem profiles_mean (O : Operators) (primary : Profile) (p : ℕ) (hp : 2 ≤ p) : |
| 134 | (profiles O primary p).mean=(meanResult O p (profiles O primary)).1 := by |
| 135 | rw [profiles_step O primary p hp] |
| 136 | rfl |
| 137 | |
| 138 | theorem profiles_high (O : Operators) (primary : Profile) (p : ℕ) (hp : 2 ≤ p) : |
| 139 | (profiles O primary p).high=(O.highSolve (highForce O p (profiles O primary))).1 := by |
| 140 | rw [profiles_step O primary p hp] |
| 141 | rfl |
| 142 | |
| 143 | theorem profiles_corrector (O : Operators) (primary : Profile) (p : ℕ) (hp : 2 ≤ p) : |
| 144 | (profiles O primary p).corrector=O.curlCorrector (profiles O primary p).high := by |
| 145 | rw [profiles_step O primary p hp] |
| 146 | rfl |
| 147 | |
| 148 | end EulerPacketProfileRecursion |