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.CylinderReflection |
| 2 | import Euler.LpCylinderRectangular |
| 3 | import Euler.ClassicalPressureCurl |
| 4 | |
| 5 | /-! Joint reflection for arbitrary Hilbert-valued cylinder fields and their actual supported spaces. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace EulerCylinderFieldReflection |
| 10 | |
| 11 | open Set MeasureTheory ContinuousLinearMap EulerSmoothLimit EulerLiftedGradientSpace |
| 12 | EulerLpCylinderTranslation EulerLpCylinderPaths EulerLpCylinderRectangular EulerLpSupportedSubspace |
| 13 | open scoped BoundedContinuousFunction |
| 14 | |
| 15 | variable (P : ℝ) [Fact (0 < P)] |
| 16 | |
| 17 | section Basic |
| 18 | |
| 19 | variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 20 | |
| 21 | def reflection : CylinderL2 P V →ₗᵢ[ℝ] CylinderL2 P V := |
| 22 | Lp.compMeasurePreservingₗᵢ ℝ (fun x : LiftDomain P => -x) |
| 23 | (EulerCylinderReflection.measurePreserving_reflection P) |
| 24 | |
| 25 | theorem reflection_ae (u : CylinderL2 P V) : |
| 26 | reflection P u =ᵐ[liftMeasure P] fun x => u (-x) := |
| 27 | Lp.coeFn_compMeasurePreserving u (EulerCylinderReflection.measurePreserving_reflection P) |
| 28 | |
| 29 | theorem reflection_involutive (u : CylinderL2 P V) : reflection P (reflection P u) = u := by |
| 30 | apply Lp.ext |
| 31 | filter_upwards [reflection_ae P (reflection P u), |
| 32 | (EulerCylinderReflection.measurePreserving_reflection P).quasiMeasurePreserving.ae |
| 33 | (reflection_ae P u)] with x h₁ h₂ |
| 34 | simp only [h₁,h₂,neg_neg] |
| 35 | |
| 36 | theorem reflection_of_representative (u : CylinderL2 P V) (f : LiftDomain P → V) |
| 37 | (hf : u =ᵐ[liftMeasure P] f) (c : ℝ) (hc : ∀ x, f (-x) = c • f x) : |
| 38 | reflection P u = c • u := by |
| 39 | apply Lp.ext |
| 40 | filter_upwards [reflection_ae P u, |
| 41 | (EulerCylinderReflection.measurePreserving_reflection P).quasiMeasurePreserving.ae hf, |
| 42 | Lp.coeFn_smul c u, hf] with x hr hn hs he |
| 43 | rw [hr,hn,hc,hs,Pi.smul_apply,he] |
| 44 | |
| 45 | theorem representative_of_reflection (u : CylinderL2 P V) (f : LiftDomain P → V) |
| 46 | (hf : u =ᵐ[liftMeasure P] f) (hcont : Continuous f) (c : ℝ) |
| 47 | (hc : reflection P u = c • u) (x : LiftDomain P) : f (-x) = c • f x := by |
| 48 | have he : (fun y => f (-y)) =ᵐ[liftMeasure P] (fun y => c • f y) := by |
| 49 | filter_upwards [reflection_ae P u, |
| 50 | (EulerCylinderReflection.measurePreserving_reflection P).quasiMeasurePreserving.ae hf, |
| 51 | Lp.coeFn_smul c u, hf] with y hr hn hs hy |
| 52 | rw [hc] at hr |
| 53 | rw [hs,Pi.smul_apply,hy,hn] at hr |
| 54 | exact hr.symm |
| 55 | exact congrFun (Measure.eq_of_ae_eq he (hcont.comp continuous_neg) (continuous_const.smul hcont)) x |
| 56 | |
| 57 | variable {K : Type*} [TopologicalSpace K] [CompactSpace K] |
| 58 | |
| 59 | def pathReflection : C(K,CylinderL2 P V) →L[ℝ] C(K,CylinderL2 P V) := |
| 60 | (reflection P).toContinuousLinearMap.compLeftContinuous ℝ K |
| 61 | |
| 62 | omit [CompactSpace K] in |
| 63 | @[simp] theorem pathReflection_apply (u : C(K,CylinderL2 P V)) (t : K) : |
| 64 | pathReflection P u t = reflection P (u t) := rfl |
| 65 | |
| 66 | end Basic |
| 67 | |
| 68 | section Coefficients |
| 69 | |
| 70 | variable {E F : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] |
| 71 | [NormedAddCommGroup F] [InnerProductSpace ℝ F] |
| 72 | |
| 73 | theorem reflection_fullOperator (A : Space →ᵇ E →L[ℝ] F) |
| 74 | (hA : ∀ x, A (-x) = A x) (u : CylinderL2 P E) : |
| 75 | reflection P (fullOperatorMap P A u) = fullOperatorMap P A (reflection P u) := by |
| 76 | apply Lp.ext |
| 77 | filter_upwards [reflection_ae P (fullOperatorMap P A u), |
| 78 | (EulerCylinderReflection.measurePreserving_reflection P).quasiMeasurePreserving.ae |
| 79 | (EulerLpOperatorField.full_ae (liftMeasure P) (fieldLift P A) u), |
| 80 | EulerLpOperatorField.full_ae (liftMeasure P) (fieldLift P A) (reflection P u), |
| 81 | reflection_ae P u] with x hr hn hf hu |
| 82 | change fullOperatorMap P A u (-x) = A (-x.1) (u (-x)) at hn |
| 83 | change fullOperatorMap P A (reflection P u) x = A x.1 (reflection P u x) at hf |
| 84 | rw [hr,hn,hf,hu,hA] |
| 85 | |
| 86 | end Coefficients |
| 87 | |
| 88 | section Supported |
| 89 | |
| 90 | variable {V : Type*} [NormedAddCommGroup V] [InnerProductSpace ℝ V] |
| 91 | (S : Set Space) (hS : MeasurableSet S) (hSym : ∀ x, -x ∈ S ↔ x ∈ S) |
| 92 | |
| 93 | include hSym in |
| 94 | theorem reflection_mem (u : Supported P V S hS) : |
| 95 | reflection P (u : CylinderL2 P V) ∈ Supported P V S hS := by |
| 96 | apply (mem_supportedSpace_ae (liftMeasure P) (spatialSet P S) (spatialSet_measurable P S hS) _).mpr |
| 97 | filter_upwards [reflection_ae P (u : CylinderL2 P V), |
| 98 | (EulerCylinderReflection.measurePreserving_reflection P).quasiMeasurePreserving.ae |
| 99 | ((mem_supportedSpace_ae (liftMeasure P) (spatialSet P S) (spatialSet_measurable P S hS) |
| 100 | (u : CylinderL2 P V)).mp u.property)] with x hr hu hx |
| 101 | rw [hr] |
| 102 | apply hu |
| 103 | intro hn |
| 104 | exact hx ((hSym x.1).mp hn) |
| 105 | |
| 106 | def supportedReflection : Supported P V S hS →L[ℝ] Supported P V S hS := |
| 107 | ((reflection P).toContinuousLinearMap.comp (Supported P V S hS).subtypeL).codRestrict |
| 108 | (Supported P V S hS) (reflection_mem P S hS hSym) |
| 109 | |
| 110 | @[simp] theorem supportedReflection_coe (u : Supported P V S hS) : |
| 111 | (supportedReflection P S hS hSym u : CylinderL2 P V) = reflection P (u : CylinderL2 P V) := rfl |
| 112 | |
| 113 | variable {K : Type*} [TopologicalSpace K] [CompactSpace K] |
| 114 | |
| 115 | def supportedPathReflection : C(K,Supported P V S hS) →L[ℝ] C(K,Supported P V S hS) := |
| 116 | (supportedReflection P S hS hSym).compLeftContinuous ℝ K |
| 117 | |
| 118 | omit [CompactSpace K] in |
| 119 | @[simp] theorem supportedPathReflection_apply (u : C(K,Supported P V S hS)) (t : K) : |
| 120 | supportedPathReflection P S hS hSym u t = supportedReflection P S hS hSym (u t) := rfl |
| 121 | |
| 122 | end Supported |
| 123 | |
| 124 | section SupportedCoefficients |
| 125 | |
| 126 | variable {E F : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] |
| 127 | [NormedAddCommGroup F] [InnerProductSpace ℝ F] |
| 128 | (S : Set Space) (hS : MeasurableSet S) (hSym : ∀ x, -x ∈ S ↔ x ∈ S) |
| 129 | |
| 130 | theorem supportedReflection_operator (A : Space →ᵇ E →L[ℝ] F) |
| 131 | (hA : ∀ x, A (-x) = A x) (u : Supported P E S hS) : |
| 132 | supportedReflection P S hS hSym (supportedOperatorMap P S hS A u) = |
| 133 | supportedOperatorMap P S hS A (supportedReflection P S hS hSym u) := by |
| 134 | apply Subtype.ext |
| 135 | exact reflection_fullOperator P A hA (u : CylinderL2 P E) |
| 136 | |
| 137 | end SupportedCoefficients |
| 138 | end EulerCylinderFieldReflection |