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.SobolevReflection |
| 2 | import Euler.CorrectionOperators |
| 3 | |
| 4 | /-! Reflection covariance of the literal Sobolev product, transport and pressure operators. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerSobolevParityOperators |
| 9 | |
| 10 | open MeasureTheory InnerProductSpace EulerLiftedGradientSpace EulerPressureSpatialRegularity |
| 11 | EulerSpatialSobolevInverse EulerCylinderSobolev EulerCylinderSobolevSpace |
| 12 | EulerSobolevCoefficientPressure EulerSobolevL2Product EulerSobolevTransport EulerCorrectionOperators |
| 13 | EulerCylinderReflection EulerGradientReflection EulerSobolevReflection |
| 14 | |
| 15 | variable (period : ℝ) [Fact (0 < period)] |
| 16 | |
| 17 | /-- The inherited Sobolev additive normed-group instance. -/ |
| 18 | local instance paritySobolevGroup (q : ℕ) : NormedAddCommGroup (SobolevSpace period q) := inferInstance |
| 19 | /-- The inherited real Sobolev module instance. -/ |
| 20 | local instance paritySobolevSpace (q : ℕ) : NormedSpace ℝ (SobolevSpace period q) := inferInstance |
| 21 | /-- The inherited normed-group instance on the actual bilinear operator space. -/ |
| 22 | local instance parityBilinearGroup (q : ℕ) : SeminormedAddCommGroup |
| 23 | (SobolevSpace period (q+1) →L[ℝ] SobolevSpace period (q+1) →L[ℝ] SobolevSpace period q) := inferInstance |
| 24 | |
| 25 | /-- Reflection of the actual Sobolev product is the product of reflected fields. -/ |
| 26 | theorem product_reflection {q : ℕ} (hq : 6 ≤ q) (L : Vector3 →L[ℝ] ℝ) (hL : ‖L‖ ≤ 1) |
| 27 | (u v : SobolevSpace period q) : |
| 28 | sobolevReflection period q (productHq period hq L hL u v) = |
| 29 | productHq period hq L hL (sobolevReflection period q u) (sobolevReflection period q v) := by |
| 30 | apply value_injective period |
| 31 | rw [value_sobolevReflection] |
| 32 | apply Lp.ext |
| 33 | have hp := productHq_ae period hq L hL (sobolevReflection period q u) (sobolevReflection period q v) |
| 34 | simp only [value_sobolevReflection] at hp |
| 35 | filter_upwards [reflection_ae period (value period (productHq period hq L hL u v)), |
| 36 | (measurePreserving_reflection period).quasiMeasurePreserving.ae (productHq_ae period hq L hL u v), |
| 37 | hp, reflection_ae period (value period u), reflection_ae period (value period v)] |
| 38 | with x h1 h2 h3 h4 h5 |
| 39 | rw [h1, h2, h3, h4, h5] |
| 40 | |
| 41 | /-- The actual bilinear Sobolev product changes sign in its second input. -/ |
| 42 | theorem product_neg_right {q : ℕ} (hq : 6 ≤ q) (L : Vector3 →L[ℝ] ℝ) (hL : ‖L‖ ≤ 1) |
| 43 | (u v : SobolevSpace period q) : |
| 44 | productHq period hq L hL u (-v) = -productHq period hq L hL u v := |
| 45 | map_neg (productHqBilinear period hq L hL u) v |
| 46 | |
| 47 | /-- The literal transport operator reverses under joint pullback reflection. -/ |
| 48 | theorem transport_reflection {q : ℕ} (hq : 6 ≤ q) |
| 49 | (L : Fin 4 → Vector3 →L[ℝ] ℝ) (hL : ∀ i, ‖L i‖ ≤ 1) |
| 50 | (u v : SobolevSpace period (q+1)) : |
| 51 | transportBilinear period hq L hL (sobolevReflection period (q+1) u) (sobolevReflection period (q+1) v) = |
| 52 | -sobolevReflection period q (transportBilinear period hq L hL u v) := by |
| 53 | have hi (i : Fin 4) : |
| 54 | productHq period hq (L i) (hL i) (truncateOperator period q (sobolevReflection period (q+1) u)) |
| 55 | (derivativeOperator period q i (sobolevReflection period (q+1) v)) = |
| 56 | -sobolevReflection period q (productHq period hq (L i) (hL i) |
| 57 | (truncateOperator period q u) (derivativeOperator period q i v)) := by |
| 58 | rw [truncate_reflection period u, derivative_reflection period i v, |
| 59 | product_neg_right period hq (L i) (hL i)] |
| 60 | exact congrArg Neg.neg (product_reflection period hq (L i) (hL i) |
| 61 | (truncateOperator period q u) (derivativeOperator period q i v)).symm |
| 62 | have hh := Finset.sum_congr (s₁ := (Finset.univ : Finset (Fin 4))) rfl (fun i _ => hi i) |
| 63 | simpa only [transportBilinear_apply, map_sum, Finset.sum_neg_distrib] using hh |
| 64 | |
| 65 | /-- Actual even coefficient multiplication commutes with Sobolev reflection. -/ |
| 66 | theorem coefficient_reflection {q : ℕ} {A : SmoothCoefficient period} |
| 67 | (K : CoefficientJet period standardDirection q A) |
| 68 | (hA : ∀ x, A.coefficient (-x) = A.coefficient x) (u : SobolevSpace period q) : |
| 69 | sobolevReflection period q (coefficientSobolevOperator period K u) = |
| 70 | coefficientSobolevOperator period K (sobolevReflection period q u) := by |
| 71 | apply value_injective period |
| 72 | rw [value_sobolevReflection, coefficientSobolevOperator_value, coefficientSobolevOperator_value, |
| 73 | value_sobolevReflection, coefficientOperator_reflection period A hA] |
| 74 | |
| 75 | /-- Actual odd coefficient multiplication anticommutes with the L² reflection. -/ |
| 76 | theorem odd_coefficient_L2_reflection (A : SmoothCoefficient period) |
| 77 | (hA : ∀ x, A.coefficient (-x) = -A.coefficient x) (f : LiftL2 period) : |
| 78 | reflection period (A.operator f) = -A.operator (reflection period f) := by |
| 79 | apply Lp.ext |
| 80 | filter_upwards [reflection_ae period (A.operator f), |
| 81 | (measurePreserving_reflection period).quasiMeasurePreserving.ae (A.operator_ae f), |
| 82 | Lp.coeFn_neg (A.operator (reflection period f)), A.operator_ae (reflection period f), |
| 83 | reflection_ae period f] with x h1 h2 h3 h4 h5 |
| 84 | rw [h1, h2, h3] |
| 85 | change A.coefficient (-x) (f (-x)) = -(A.operator (reflection period f) x) |
| 86 | rw [h4, h5, hA, neg_apply] |
| 87 | |
| 88 | /-- Actual odd coefficient multiplication anticommutes with Sobolev reflection. -/ |
| 89 | theorem odd_coefficient_reflection {q : ℕ} {A : SmoothCoefficient period} |
| 90 | (K : CoefficientJet period standardDirection q A) |
| 91 | (hA : ∀ x, A.coefficient (-x) = -A.coefficient x) (u : SobolevSpace period q) : |
| 92 | sobolevReflection period q (coefficientSobolevOperator period K u) = |
| 93 | -coefficientSobolevOperator period K (sobolevReflection period q u) := by |
| 94 | apply value_injective period |
| 95 | change value period (sobolevReflection period q (coefficientSobolevOperator period K u)) = |
| 96 | -value period (coefficientSobolevOperator period K (sobolevReflection period q u)) |
| 97 | rw [value_sobolevReflection, coefficientSobolevOperator_value, coefficientSobolevOperator_value, |
| 98 | value_sobolevReflection, odd_coefficient_L2_reflection period A hA] |
| 99 | |
| 100 | /-- The concrete coercive pressure acts covariantly at every Sobolev order. -/ |
| 101 | theorem pressureSobolev_reflection {q : ℕ} {A : SmoothCoefficient period} |
| 102 | (K : CoefficientJet period standardDirection q A) |
| 103 | (hA : ∀ x, A.coefficient (-x) = A.coefficient x) |
| 104 | (κ : ℝ) (m : Vector3) (c : ℝ) (hc : 0 < c) |
| 105 | (hpos : ∀ x v, c * ‖v‖ ^ 2 ≤ ⟪A.coefficient x v,v⟫_ℝ) (u : SobolevSpace period q) : |
| 106 | sobolevReflection period q (pressureSobolevOperator period K κ m c hc hpos u) = |
| 107 | pressureSobolevOperator period K κ m c hc hpos (sobolevReflection period q u) := by |
| 108 | apply value_injective period |
| 109 | rw [value_sobolevReflection, pressureSobolevOperator_value, pressureSobolevOperator_value, |
| 110 | value_sobolevReflection, pressure_reflection period A hA] |
| 111 | |
| 112 | /-- The actual pressure-corrected forcing commutes with reflection for an even metric. -/ |
| 113 | theorem projectedSource_reflection {q : ℕ} {A : SmoothCoefficient period} |
| 114 | (K : CoefficientJet period standardDirection q A) |
| 115 | (hA : ∀ x, A.coefficient (-x) = A.coefficient x) |
| 116 | (κ : ℝ) (m : Vector3) (c : ℝ) (hc : 0 < c) |
| 117 | (hpos : ∀ x v, c * ‖v‖ ^ 2 ≤ ⟪A.coefficient x v,v⟫_ℝ) (u : SobolevSpace period q) : |
| 118 | sobolevReflection period q (projectedSourceOperator period K κ m c hc hpos u) = |
| 119 | projectedSourceOperator period K κ m c hc hpos (sobolevReflection period q u) := by |
| 120 | change sobolevReflection period q (u - coefficientSobolevOperator period K |
| 121 | (pressureSobolevOperator period K κ m c hc hpos u)) = |
| 122 | sobolevReflection period q u - coefficientSobolevOperator period K |
| 123 | (pressureSobolevOperator period K κ m c hc hpos (sobolevReflection period q u)) |
| 124 | rw [map_sub, coefficient_reflection period K hA, pressureSobolev_reflection period K hA] |
| 125 | |
| 126 | /-- The coordinate product reflects without a derivative sign. -/ |
| 127 | theorem coordinateProduct_reflection {q : ℕ} (hq : 6 ≤ q) (i : Fin 3) |
| 128 | (u v : SobolevSpace period (q+1)) : |
| 129 | coordinateProduct period hq i (sobolevReflection period (q+1) u) (sobolevReflection period (q+1) v) = |
| 130 | sobolevReflection period q (coordinateProduct period hq i u v) := by |
| 131 | change productHq period hq (EulerVectorCylinder.coordinate 3 i) (EulerVectorCylinder.coordinate_norm_le 3 i) |
| 132 | (truncateOperator period q (sobolevReflection period (q+1) u)) |
| 133 | (truncateOperator period q (sobolevReflection period (q+1) v)) = |
| 134 | sobolevReflection period q (productHq period hq (EulerVectorCylinder.coordinate 3 i) |
| 135 | (EulerVectorCylinder.coordinate_norm_le 3 i) (truncateOperator period q u) (truncateOperator period q v)) |
| 136 | exact (congrArg₂ (productHq period hq (EulerVectorCylinder.coordinate 3 i) (EulerVectorCylinder.coordinate_norm_le 3 i)) |
| 137 | (truncate_reflection period u) (truncate_reflection period v)).trans |
| 138 | (product_reflection period hq (EulerVectorCylinder.coordinate 3 i) |
| 139 | (EulerVectorCylinder.coordinate_norm_le 3 i) (truncateOperator period q u) (truncateOperator period q v)).symm |
| 140 | |
| 141 | /-- The actual algebraic Euler term reverses reflection because its |
| 142 | coefficient fields, `κ F⁻¹ ∂ᵢF`, are odd. -/ |
| 143 | theorem algebraic_reflection {q : ℕ} (hq : 6 ≤ q) |
| 144 | (A : Fin 3 → SmoothCoefficient period) (K : ∀ i, CoefficientJet period standardDirection q (A i)) |
| 145 | (hA : ∀ i x, (A i).coefficient (-x) = -(A i).coefficient x) |
| 146 | (u v : SobolevSpace period (q+1)) : |
| 147 | algebraicBilinear period hq (fun i => coefficientSobolevOperator period (K i)) |
| 148 | (sobolevReflection period (q+1) u) (sobolevReflection period (q+1) v) = |
| 149 | -sobolevReflection period q (algebraicBilinear period hq (fun i => coefficientSobolevOperator period (K i)) u v) := by |
| 150 | have hi (i : Fin 3) : coefficientSobolevOperator period (K i) |
| 151 | (coordinateProduct period hq i (sobolevReflection period (q+1) u) (sobolevReflection period (q+1) v)) = |
| 152 | -sobolevReflection period q (coefficientSobolevOperator period (K i) (coordinateProduct period hq i u v)) := by |
| 153 | have hp := congrArg (coefficientSobolevOperator period (K i)) (coordinateProduct_reflection period hq i u v) |
| 154 | have hc := congrArg Neg.neg (odd_coefficient_reflection period (K i) (hA i) (coordinateProduct period hq i u v)) |
| 155 | simp only [neg_neg] at hc |
| 156 | exact hp.trans hc.symm |
| 157 | have hh := Finset.sum_congr (s₁ := (Finset.univ : Finset (Fin 3))) rfl (fun i _ => hi i) |
| 158 | simpa only [algebraicBilinear_apply, map_sum, Finset.sum_neg_distrib] using hh |
| 159 | |
| 160 | /-- The literal Euler bilinear term reverses pullback reflection. -/ |
| 161 | theorem eulerBilinear_reflection {q : ℕ} (hq : 6 ≤ q) |
| 162 | (L : Fin 4 → Vector3 →L[ℝ] ℝ) (hL : ∀ i, ‖L i‖ ≤ 1) |
| 163 | (A : Fin 3 → SmoothCoefficient period) (K : ∀ i, CoefficientJet period standardDirection q (A i)) |
| 164 | (hA : ∀ i x, (A i).coefficient (-x) = -(A i).coefficient x) |
| 165 | (u v : SobolevSpace period (q+1)) : |
| 166 | eulerBilinear period hq L hL (fun i => coefficientSobolevOperator period (K i)) |
| 167 | (sobolevReflection period (q+1) u) (sobolevReflection period (q+1) v) = |
| 168 | -sobolevReflection period q (eulerBilinear period hq L hL (fun i => coefficientSobolevOperator period (K i)) u v) := by |
| 169 | change transportBilinear period hq L hL _ _ + algebraicBilinear period hq _ _ _ = |
| 170 | -sobolevReflection period q (transportBilinear period hq L hL u v + algebraicBilinear period hq _ u v) |
| 171 | have hh := congrArg₂ HAdd.hAdd (transport_reflection period hq L hL u v) (algebraic_reflection period hq A K hA u v) |
| 172 | exact hh.trans ((neg_add _ _).symm.trans |
| 173 | (congrArg Neg.neg (map_add (sobolevReflection period q) |
| 174 | (transportBilinear period hq L hL u v) |
| 175 | (algebraicBilinear period hq (fun i => coefficientSobolevOperator period (K i)) u v))).symm) |
| 176 | |
| 177 | /-- Signed reflection is an exact symmetry of the actual bilinear Euler term. -/ |
| 178 | theorem eulerBilinear_oddReflection {q : ℕ} (hq : 6 ≤ q) |
| 179 | (L : Fin 4 → Vector3 →L[ℝ] ℝ) (hL : ∀ i, ‖L i‖ ≤ 1) |
| 180 | (A : Fin 3 → SmoothCoefficient period) (K : ∀ i, CoefficientJet period standardDirection q (A i)) |
| 181 | (hA : ∀ i x, (A i).coefficient (-x) = -(A i).coefficient x) |
| 182 | (u v : SobolevSpace period (q+1)) : |
| 183 | oddReflection period q (eulerBilinear period hq L hL (fun i => coefficientSobolevOperator period (K i)) u v) = |
| 184 | eulerBilinear period hq L hL (fun i => coefficientSobolevOperator period (K i)) |
| 185 | (oddReflection period (q+1) u) (oddReflection period (q+1) v) := by |
| 186 | simp only [oddReflection_apply, map_neg, neg_apply, neg_neg] |
| 187 | exact (eulerBilinear_reflection period hq L hL A K hA u v).symm |
| 188 | |
| 189 | end EulerSobolevParityOperators |