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.InviscidCorrectionParity |
| 2 | import Euler.CorrectionAssemblyRealizations |
| 3 | |
| 4 | /-! Odd parity of the actual common correction and pressure assembled from finite genuine solutions. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerCorrectionAssembly |
| 9 | |
| 10 | open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace |
| 11 | EulerCorrectionOperators EulerAllOrderCorrectionData EulerCylinderReflection |
| 12 | EulerSobolevReflection EulerCorrectionParity EulerInviscidCorrectionParity |
| 13 | |
| 14 | variable (period : ℝ) [Fact (0 < period)] |
| 15 | variable {T : ℝ} {hT : 0 < T} {A : Data period T} |
| 16 | |
| 17 | /-- The prescribed source's actual joint spatial-angular parities. |
| 18 | The metric and linear coefficients are even, the quadratic coefficient is odd, |
| 19 | and the approximate velocity and residual are odd as actual L² fields. -/ |
| 20 | structure ParityData (A : Data period T) where |
| 21 | /-- The actual pressure metric is even. -/ |
| 22 | metric : ∀ t x, (A.metric.coefficient t).coefficient (-x) = |
| 23 | (A.metric.coefficient t).coefficient x |
| 24 | /-- The actual linear coefficient is even. -/ |
| 25 | linear : ∀ t x, (A.linear.coefficient t).coefficient (-x) = |
| 26 | (A.linear.coefficient t).coefficient x |
| 27 | /-- Each actual quadratic coefficient is odd. -/ |
| 28 | quadratic : ∀ t i x, ((A.quadratic i).coefficient t).coefficient (-x) = |
| 29 | -((A.quadratic i).coefficient t).coefficient x |
| 30 | /-- The prescribed approximate velocity is an odd actual field. -/ |
| 31 | approximation : ∀ t, -reflection period (A.approximation.field t) = A.approximation.field t |
| 32 | /-- The prescribed residual is an odd actual field. -/ |
| 33 | residual : ∀ t, -reflection period (A.residual.field t) = A.residual.field t |
| 34 | |
| 35 | /-- Oddness of the actual common L² field forces oddness of every Sobolev realization. -/ |
| 36 | theorem fieldTower_realization_odd (f : FieldTower period T) |
| 37 | (hf : ∀ t, -reflection period (f.field t) = f.field t) (q : ℕ) (t : Icc (0 : ℝ) T) : |
| 38 | oddReflection period q (f.realization q t) = f.realization q t := by |
| 39 | apply value_injective period |
| 40 | rw [value_oddReflection, f.value_eq] |
| 41 | exact hf t |
| 42 | |
| 43 | /-- Genuine PDE uniqueness makes every finite correction odd from the prescribed input parity. -/ |
| 44 | theorem FiniteFamily.solution_odd (F : FiniteFamily period hT A) |
| 45 | (C : ComparisonData period hT A) (P : ParityData period A) |
| 46 | (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : |
| 47 | oddReflection period (q+1) (F.solution q hq t) = F.solution q hq t := by |
| 48 | apply inviscid_correction_odd period hq T hT.le (A.atOrder period q) |
| 49 | (C.stabilityBudget period q) P.metric P.linear P.quadratic |
| 50 | (fieldTower_realization_odd period A.approximation P.approximation (q+1)) |
| 51 | (fieldTower_realization_odd period A.residual P.residual q) (F.solution q hq) |
| 52 | (F.initial q hq) (F.equation q hq) _ (F.divergence q hq) t |
| 53 | intro s |
| 54 | change value period (A.approximation.realization (q+1) s) ∈ |
| 55 | divergenceFreeSpace period A.κ A.direction |
| 56 | rw [A.approximation.value_eq] |
| 57 | exact C.divergence s |
| 58 | |
| 59 | /-- The actual assembled continuous L² correction is odd. -/ |
| 60 | theorem FiniteFamily.commonPath_odd (F : FiniteFamily period hT A) |
| 61 | (C : ComparisonData period hT A) (P : ParityData period A) (t : Icc (0 : ℝ) T) : |
| 62 | -reflection period (F.commonPath period t) = F.commonPath period t := by |
| 63 | have h := congrArg (value period (q := 7)) (F.solution_odd period C P 6 le_rfl t) |
| 64 | rw [value_oddReflection] at h |
| 65 | exact h |
| 66 | |
| 67 | /-- A continuous representative of an actual odd L² field is pointwise odd. -/ |
| 68 | theorem continuous_representative_odd (u : LiftL2 period) (g : LiftDomain period → Vector3) |
| 69 | (hu : -reflection period u = u) (hg : Continuous g) |
| 70 | (hrep : (u : LiftDomain period → Vector3) =ᵐ[liftMeasure period] g) : |
| 71 | ∀ x, g (-x) = -g x := by |
| 72 | have hr : reflection period u = -u := by |
| 73 | simpa only [neg_neg] using congrArg Neg.neg hu |
| 74 | have ha : (fun x => g (-x)) =ᵐ[liftMeasure period] fun x => -g x := by |
| 75 | filter_upwards [reflection_ae period u, |
| 76 | (measurePreserving_reflection period).quasiMeasurePreserving.ae hrep, |
| 77 | hrep, Lp.coeFn_neg u] with x h1 h2 h3 h4 |
| 78 | rw [hr] at h1 |
| 79 | rw [← h2, ← h3, ← h1, h4] |
| 80 | rfl |
| 81 | exact congrFun (MeasureTheory.Measure.eq_of_ae_eq ha (hg.comp continuous_neg) hg.neg) |
| 82 | |
| 83 | /-- The canonical smooth correction is odd at every spatial and angular point. -/ |
| 84 | theorem FiniteFamily.pointField_odd (F : FiniteFamily period hT A) |
| 85 | (C : ComparisonData period hT A) (P : ParityData period A) |
| 86 | (t : Icc (0 : ℝ) T) (x : LiftDomain period) : |
| 87 | F.pointField period t (-x) = -F.pointField period t x := by |
| 88 | have hc : Continuous (F.pointField period t) := |
| 89 | EulerMetricTransport.smoothField_continuous period (F.pointField period t) |
| 90 | (F.pointField_smooth period C t) |
| 91 | exact continuous_representative_odd period (F.commonPath period t) (F.pointField period t) |
| 92 | (F.commonPath_odd period C P t) hc (F.pointField_ae period t) x |
| 93 | |
| 94 | /-- The actual signed coercive pressure is odd at every finite Sobolev order. -/ |
| 95 | theorem FiniteFamily.signedPressurePath_odd (F : FiniteFamily period hT A) |
| 96 | (C : ComparisonData period hT A) (P : ParityData period A) |
| 97 | (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : |
| 98 | oddReflection period q (F.signedPressurePath period q hq t) = |
| 99 | F.signedPressurePath period q hq t := by |
| 100 | exact inviscid_correction_pressure_odd period hq (A.atOrder period q) t |
| 101 | (P.metric t) (P.linear t) (P.quadratic t) |
| 102 | (fieldTower_realization_odd period A.approximation P.approximation (q+1) t) |
| 103 | (fieldTower_realization_odd period A.residual P.residual q t) |
| 104 | (F.solution q hq t) (F.solution_odd period C P q hq t) |
| 105 | |
| 106 | /-- The actual assembled signed pressure gradient is odd in L². -/ |
| 107 | theorem FiniteFamily.commonPressure_odd (F : FiniteFamily period hT A) |
| 108 | (C : ComparisonData period hT A) (P : ParityData period A) (t : Icc (0 : ℝ) T) : |
| 109 | -reflection period (F.commonPressure period t) = F.commonPressure period t := by |
| 110 | have h := congrArg (value period (q := 6)) (F.signedPressurePath_odd period C P 6 le_rfl t) |
| 111 | rw [value_oddReflection] at h |
| 112 | exact h |
| 113 | |
| 114 | /-- Every realization of the assembled correction tower is odd. -/ |
| 115 | theorem FiniteFamily.fieldTower_odd (F : FiniteFamily period hT A) |
| 116 | (C : ComparisonData period hT A) (P : ParityData period A) |
| 117 | (q : ℕ) (t : Icc (0 : ℝ) T) : |
| 118 | oddReflection period q ((F.fieldTower period C).realization q t) = |
| 119 | (F.fieldTower period C).realization q t := |
| 120 | fieldTower_realization_odd period (F.fieldTower period C) (F.commonPath_odd period C P) q t |
| 121 | |
| 122 | /-- Every realization of the actual assembled signed pressure tower is odd. -/ |
| 123 | theorem FiniteFamily.pressureTower_odd (F : FiniteFamily period hT A) |
| 124 | (C : ComparisonData period hT A) (P : ParityData period A) |
| 125 | (q : ℕ) (t : Icc (0 : ℝ) T) : |
| 126 | oddReflection period q ((F.pressureTower period C).realization q t) = |
| 127 | (F.pressureTower period C).realization q t := |
| 128 | fieldTower_realization_odd period (F.pressureTower period C) (F.commonPressure_odd period C P) q t |
| 129 | |
| 130 | end EulerCorrectionAssembly |