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.PacketCylinderField |
| 2 | |
| 3 | /-! Finite algebra on actual cylinder-path witnesses of raw packet fields. -/ |
| 4 | |
| 5 | noncomputable section |
| 6 | |
| 7 | namespace EulerPacketCylinderField.Field |
| 8 | |
| 9 | open Set MeasureTheory ContinuousLinearMap Finset EulerSmoothLimit EulerLiftedGradientSpace |
| 10 | EulerCylinderSmoothOrbit EulerLpCylinderTranslation EulerMetricTransport EulerPacketProfileRecursion |
| 11 | open scoped ContDiff |
| 12 | |
| 13 | variable {P T : ℝ} [Fact (0 < P)] {raw raw' : VectorField} |
| 14 | |
| 15 | /-- Recover a raw witness from an actual continuous representative of its L² path. -/ |
| 16 | def ofLifted (p : C(Icc (0 : ℝ) T,LiftL2 P)) |
| 17 | (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) |
| 18 | (f : Icc (0 : ℝ) T → LiftDomain P → Space) (hc : ∀ t, Continuous (f t)) |
| 19 | (hrep : ∀ t, (p t : LiftDomain P → Space) =ᵐ[liftMeasure P] f t) |
| 20 | (he : ∀ (t : Icc (0 : ℝ) T) x θ, raw (t,(x,θ)) = f t (x,(θ : AddCircle P))) : |
| 21 | Field P T raw where |
| 22 | path := p |
| 23 | orbit := hp |
| 24 | raw_eq t x θ := (he t x θ).trans (congrFun |
| 25 | (Measure.eq_of_ae_eq ((hrep t).symm.trans (pointField_ae P p hp t)) |
| 26 | (hc t) (smoothField_continuous P _ (pointField_smooth P p hp t))) (x,(θ : AddCircle P))) |
| 27 | |
| 28 | /-- Equality is needed only on the actual closed time interval. -/ |
| 29 | def congr (G : Field P T raw) |
| 30 | (he : ∀ (t : Icc (0 : ℝ) T) x θ, raw' (t,(x,θ)) = raw (t,(x,θ))) : |
| 31 | Field P T raw' where |
| 32 | path := G.path |
| 33 | orbit := G.orbit |
| 34 | raw_eq t x θ := (he t x θ).trans (G.raw_eq t x θ) |
| 35 | |
| 36 | def zero (P T : ℝ) [Fact (0 < P)] : Field P T (0 : VectorField) := |
| 37 | ofLifted 0 (by simpa only [map_zero] using (contDiff_const : |
| 38 | ContDiff ℝ ∞ (fun _ : LiftTangent => (0 : C(Icc (0 : ℝ) T,LiftL2 P))))) |
| 39 | (fun _ _ => 0) (fun _ => continuous_const) |
| 40 | (fun _ => Lp.coeFn_zero Space 2 (liftMeasure P)) (fun _ _ _ => rfl) |
| 41 | |
| 42 | def add (G : Field P T raw) (H : Field P T raw') : Field P T (raw+raw') := |
| 43 | ofLifted (G.path+H.path) (by simpa only [map_add] using G.orbit.add H.orbit) |
| 44 | (fun t x => pointField P G.path G.orbit t x+pointField P H.path H.orbit t x) |
| 45 | (fun t => (smoothField_continuous P _ (pointField_smooth P G.path G.orbit t)).add |
| 46 | (smoothField_continuous P _ (pointField_smooth P H.path H.orbit t))) |
| 47 | (fun t => by |
| 48 | filter_upwards [Lp.coeFn_add (G.path t) (H.path t),pointField_ae P G.path G.orbit t, |
| 49 | pointField_ae P H.path H.orbit t] with x ha hg hh |
| 50 | exact ha.trans (congrArg₂ (·+·) hg hh)) |
| 51 | (fun t x θ => by simp only [Pi.add_apply,G.raw_eq,H.raw_eq]) |
| 52 | |
| 53 | def neg (G : Field P T raw) : Field P T (-raw) := |
| 54 | ofLifted (-G.path) (by simpa only [map_neg] using G.orbit.neg) |
| 55 | (fun t x => -pointField P G.path G.orbit t x) |
| 56 | (fun t => (smoothField_continuous P _ (pointField_smooth P G.path G.orbit t)).neg) |
| 57 | (fun t => by |
| 58 | filter_upwards [Lp.coeFn_neg (G.path t),pointField_ae P G.path G.orbit t] with x hn hg |
| 59 | exact hn.trans (congrArg Neg.neg hg)) |
| 60 | (fun t x θ => by simp only [Pi.neg_apply,G.raw_eq]) |
| 61 | |
| 62 | def sub (G : Field P T raw) (H : Field P T raw') : Field P T (raw-raw') := |
| 63 | (G.add H.neg).congr (fun t x θ => by simp only [sub_eq_add_neg]) |
| 64 | |
| 65 | def smul (G : Field P T raw) (c : ℝ) : Field P T (c • raw) := |
| 66 | ofLifted (c • G.path) (by simpa only [map_smul] using G.orbit.const_smul c) |
| 67 | (fun t x => c • pointField P G.path G.orbit t x) |
| 68 | (fun t => (smoothField_continuous P _ (pointField_smooth P G.path G.orbit t)).const_smul c) |
| 69 | (fun t => by |
| 70 | filter_upwards [Lp.coeFn_smul c (G.path t),pointField_ae P G.path G.orbit t] with x hs hg |
| 71 | exact hs.trans (congrArg (c • ·) hg)) |
| 72 | (fun t x θ => by simp only [Pi.smul_apply,G.raw_eq]) |
| 73 | |
| 74 | /-- Literal finite raw sums have a single actual continuous L² witness. -/ |
| 75 | def finsetSum {ι : Type*} (s : Finset ι) (f : ι → VectorField) |
| 76 | (G : ∀ i, Field P T (f i)) : Field P T (∑ i ∈ s, f i) := |
| 77 | ofLifted (∑ i ∈ s, (G i).path) |
| 78 | (by simpa only [map_sum] using ContDiff.sum (fun i _ => (G i).orbit)) |
| 79 | (fun t x => ∑ i ∈ s, pointField P (G i).path (G i).orbit t x) |
| 80 | (fun t => continuous_finsetSum s (fun i _ => |
| 81 | smoothField_continuous P _ (pointField_smooth P (G i).path (G i).orbit t))) |
| 82 | (fun t => by |
| 83 | have he : (∑ i ∈ s, (G i).path) t = ∑ i ∈ s, (G i).path t := |
| 84 | map_sum (ContinuousMap.evalCLM ℝ t) (fun i => (G i).path) s |
| 85 | have hall : ∀ᵐ x ∂liftMeasure P, ∀ i ∈ s, |
| 86 | (G i).path t x = pointField P (G i).path (G i).orbit t x := |
| 87 | (Filter.eventually_all_finset s).mpr (fun i _ => pointField_ae P (G i).path (G i).orbit t) |
| 88 | filter_upwards [Lp.coeFn_fun_finsetSum s (fun i => (G i).path t),hall] with x hs hg |
| 89 | exact (congrArg (fun u : LiftL2 P => u x) he).trans |
| 90 | (hs.trans (sum_congr rfl (fun i hi => hg i hi)))) |
| 91 | (fun t x θ => by |
| 92 | rw [Finset.sum_apply] |
| 93 | exact sum_congr rfl (fun i _ => (G i).raw_eq t x θ)) |
| 94 | |
| 95 | @[simp] theorem add_path (G : Field P T raw) (H : Field P T raw') : |
| 96 | (G.add H).path = G.path+H.path := rfl |
| 97 | |
| 98 | @[simp] theorem neg_path (G : Field P T raw) : (G.neg).path = -G.path := rfl |
| 99 | |
| 100 | @[simp] theorem smul_path (G : Field P T raw) (c : ℝ) : (G.smul c).path = c • G.path := rfl |
| 101 | |
| 102 | end EulerPacketCylinderField.Field |