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.CylinderEndpointLabels |
| 2 | import Euler.CylinderEndpointRegularity |
| 3 | import Euler.CylinderEndpointEquation |
| 4 | import Euler.CylinderRetractRepresentative |
| 5 | import Euler.CylinderPathIntegral |
| 6 | import Euler.FixedEndpointClassical |
| 7 | |
| 8 | /-! |
| 9 | The actual cylinder endpoint inverse agrees at every spatial/angular point |
| 10 | with the finite-dimensional stationary history. The proof first recovers |
| 11 | genuine coordinate representatives and their time derivatives, then uses |
| 12 | the proved two-endpoint energy uniqueness theorem. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | namespace EulerCylinderDirichlet.Coefficients |
| 18 | |
| 19 | open Set MeasureTheory ContinuousLinearMap InnerProductSpace EulerSmoothLimit |
| 20 | EulerLiftedGradientSpace EulerLpCylinderTranslation EulerVolterraConvolution |
| 21 | EulerCylinderRetractRepresentative EulerTransverseGramInverse EulerMetricTransport EulerMeanCoefficients |
| 22 | open scoped ContDiff BoundedContinuousFunction |
| 23 | |
| 24 | variable (P : ℝ) [Fact (0 < P)] {T : ℝ} {U : Type*} |
| 25 | [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 26 | (D : Coefficients T U Space) |
| 27 | (J : U →L[ℝ] Space) (L : Space →L[ℝ] U) |
| 28 | (hQ : ContDiff ℝ ∞ (translateCoefficientPath D.Q)) |
| 29 | (hQ₁ : ContDiff ℝ ∞ (translateCoefficientPath D.Q₁)) |
| 30 | (hH : ContDiff ℝ ∞ (translateCoefficientPath D.H)) |
| 31 | (Y : CylinderL2 P U) (hY : ContDiff ℝ ∞ (fun a : LiftTangent => translate P a Y)) |
| 32 | |
| 33 | include hQ hQ₁ hH hY in |
| 34 | theorem endpointDisplacement_orbit_contDiff : |
| 35 | ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a (D.endpointDisplacement P Y)) := |
| 36 | EulerCylinderPathIntegral.orbit_contDiff_of_derivative P T D.time_pos.le |
| 37 | (D.endpointDisplacement P Y) (D.endpointCoordinate P Y) |
| 38 | (D.endpointCoordinate_orbit_contDiff P hQ hQ₁ hH Y hY) |
| 39 | (D.endpointDisplacement_hasDerivWithinAt P Y) (D.endpointDisplacement_initial P Y) |
| 40 | |
| 41 | def endpointPointDisplacement (x : LiftDomain P) : C(Icc (0 : ℝ) T,U) := |
| 42 | pointPath P J L (D.endpointDisplacement P Y) |
| 43 | (D.endpointDisplacement_orbit_contDiff P hQ hQ₁ hH Y hY) x |
| 44 | |
| 45 | def endpointPointCoordinate (x : LiftDomain P) : C(Icc (0 : ℝ) T,U) := |
| 46 | pointPath P J L (D.endpointCoordinate P Y) |
| 47 | (D.endpointCoordinate_orbit_contDiff P hQ hQ₁ hH Y hY) x |
| 48 | |
| 49 | def endpointPointAcceleration (x : LiftDomain P) : C(Icc (0 : ℝ) T,U) := |
| 50 | pointPath P J L (D.endpointAcceleration P Y) |
| 51 | (D.endpointAcceleration_orbit_contDiff P hQ hQ₁ hH Y hY) x |
| 52 | |
| 53 | theorem endpointPointDisplacement_hasDerivWithinAt (x : LiftDomain P) (t : Icc (0 : ℝ) T) : |
| 54 | HasDerivWithinAt |
| 55 | (extendPath T D.time_pos.le (D.endpointPointDisplacement P J L hQ hQ₁ hH Y hY x)) |
| 56 | (D.endpointPointCoordinate P J L hQ hQ₁ hH Y hY x t) (Icc (0 : ℝ) T) t := |
| 57 | pointPath_hasDerivWithinAt P J L T D.time_pos.le |
| 58 | (D.endpointDisplacement P Y) (D.endpointCoordinate P Y) |
| 59 | (D.endpointDisplacement_orbit_contDiff P hQ hQ₁ hH Y hY) |
| 60 | (D.endpointCoordinate_orbit_contDiff P hQ hQ₁ hH Y hY) |
| 61 | (D.endpointDisplacement_hasDerivWithinAt P Y) x t |
| 62 | |
| 63 | theorem endpointPointCoordinate_hasDerivWithinAt (x : LiftDomain P) (t : Icc (0 : ℝ) T) : |
| 64 | HasDerivWithinAt |
| 65 | (extendPath T D.time_pos.le (D.endpointPointCoordinate P J L hQ hQ₁ hH Y hY x)) |
| 66 | (D.endpointPointAcceleration P J L hQ hQ₁ hH Y hY x t) (Icc (0 : ℝ) T) t := |
| 67 | pointPath_hasDerivWithinAt P J L T D.time_pos.le |
| 68 | (D.endpointCoordinate P Y) (D.endpointAcceleration P Y) |
| 69 | (D.endpointCoordinate_orbit_contDiff P hQ hQ₁ hH Y hY) |
| 70 | (D.endpointAcceleration_orbit_contDiff P hQ hQ₁ hH Y hY) |
| 71 | (D.endpointCoordinate_hasDerivWithinAt P Y) x t |
| 72 | |
| 73 | variable (hL : ∀ v : U, L (J v) = v) |
| 74 | |
| 75 | include hL in |
| 76 | theorem endpointPointCoordinate_ae (t : Icc (0 : ℝ) T) : |
| 77 | D.endpointCoordinate P Y t =ᵐ[liftMeasure P] |
| 78 | fun x => D.endpointPointCoordinate P J L hQ hQ₁ hH Y hY x t := |
| 79 | pointField_ae P J L (D.endpointCoordinate P Y) |
| 80 | (D.endpointCoordinate_orbit_contDiff P hQ hQ₁ hH Y hY) hL t |
| 81 | |
| 82 | include hL in |
| 83 | theorem endpointPointAcceleration_ae (t : Icc (0 : ℝ) T) : |
| 84 | D.endpointAcceleration P Y t =ᵐ[liftMeasure P] |
| 85 | fun x => D.endpointPointAcceleration P J L hQ hQ₁ hH Y hY x t := |
| 86 | pointField_ae P J L (D.endpointAcceleration P Y) |
| 87 | (D.endpointAcceleration_orbit_contDiff P hQ hQ₁ hH Y hY) hL t |
| 88 | |
| 89 | include hL in |
| 90 | theorem endpointPointDisplacement_initial (x : LiftDomain P) : |
| 91 | D.endpointPointDisplacement P J L hQ hQ₁ hH Y hY x ⟨0,le_rfl,D.time_pos.le⟩ = 0 := by |
| 92 | have he := pointField_eq P J L (D.endpointDisplacement P Y) |
| 93 | (D.endpointDisplacement_orbit_contDiff P hQ hQ₁ hH Y hY) hL |
| 94 | ⟨0,le_rfl,D.time_pos.le⟩ (fun _ => (0 : U)) continuous_const |
| 95 | (by rw [D.endpointDisplacement_initial P Y]; exact Lp.coeFn_zero U 2 (liftMeasure P)) |
| 96 | exact congrFun he x |
| 97 | |
| 98 | include hL in |
| 99 | theorem endpointPointDisplacement_terminal (f : LiftDomain P → U) (hf : Continuous f) |
| 100 | (hrep : Y =ᵐ[liftMeasure P] f) (x : LiftDomain P) : |
| 101 | D.endpointPointDisplacement P J L hQ hQ₁ hH Y hY x ⟨T,D.time_pos.le,le_rfl⟩ = f x := by |
| 102 | have he := pointField_eq P J L (D.endpointDisplacement P Y) |
| 103 | (D.endpointDisplacement_orbit_contDiff P hQ hQ₁ hH Y hY) hL |
| 104 | ⟨T,D.time_pos.le,le_rfl⟩ f hf |
| 105 | (by rw [D.endpointDisplacement_terminal P Y]; exact hrep) |
| 106 | exact congrFun he x |
| 107 | |
| 108 | include hL in |
| 109 | theorem endpointPoint_projected_equation (x : LiftDomain P) (t : Icc (0 : ℝ) T) : |
| 110 | gram (D.Q t x.1) (D.endpointPointAcceleration P J L hQ hQ₁ hH Y hY x t) = |
| 111 | (D.Q t x.1).adjoint ((-2 : ℝ) • D.Q₁ t x.1 |
| 112 | (D.endpointPointCoordinate P J L hQ hQ₁ hH Y hY x t)) := by |
| 113 | have hcQ : Continuous (fun x : LiftDomain P => D.Q t x.1) := |
| 114 | (D.Q t).continuous.comp continuous_fst |
| 115 | have hcQ₁ : Continuous (fun x : LiftDomain P => D.Q₁ t x.1) := |
| 116 | (D.Q₁ t).continuous.comp continuous_fst |
| 117 | have hcAdj : Continuous (fun x : LiftDomain P => (D.Q t x.1).adjoint) := |
| 118 | (realAdjoint (U := U) (E := Space)).continuous.comp hcQ |
| 119 | have hcv := pointField_continuous P J L (D.endpointCoordinate P Y) |
| 120 | (D.endpointCoordinate_orbit_contDiff P hQ hQ₁ hH Y hY) t |
| 121 | have hca := pointField_continuous P J L (D.endpointAcceleration P Y) |
| 122 | (D.endpointAcceleration_orbit_contDiff P hQ hQ₁ hH Y hY) t |
| 123 | have he : (fun x : LiftDomain P => |
| 124 | gram (D.Q t x.1) (D.endpointPointAcceleration P J L hQ hQ₁ hH Y hY x t)) =ᵐ[liftMeasure P] |
| 125 | (fun x => (D.Q t x.1).adjoint ((-2 : ℝ) • D.Q₁ t x.1 |
| 126 | (D.endpointPointCoordinate P J L hQ hQ₁ hH Y hY x t))) := by |
| 127 | filter_upwards [D.endpoint_coordinate_equation_ae P Y t, |
| 128 | D.endpointPointCoordinate_ae P J L hQ hQ₁ hH Y hY hL t, |
| 129 | D.endpointPointAcceleration_ae P J L hQ hQ₁ hH Y hY hL t] with x hx hv ha |
| 130 | simpa only [hv,ha] using hx |
| 131 | exact congrFun (Measure.eq_of_ae_eq he (hcAdj.clm_apply (hcQ.clm_apply hca)) |
| 132 | (hcAdj.clm_apply ((hcQ₁.clm_apply hcv).const_smul (-2 : ℝ)))) x |
| 133 | |
| 134 | include hL in |
| 135 | theorem endpointPointCoordinate_eq_label (f : LiftDomain P → U) (hf : Continuous f) |
| 136 | (hrep : Y =ᵐ[liftMeasure P] f) (x : LiftDomain P) : |
| 137 | D.endpointPointCoordinate P J L hQ hQ₁ hH Y hY x = D.labelCoordinate x.1 (f x) := by |
| 138 | exact (EulerFixedEndpointClassical.unique T D.time_pos.le (D.labelFrame x.1) |
| 139 | (D.labelFrameDerivative x.1) (D.labelHessian x.1) |
| 140 | D.lower D.lower_pos (D.labelFrame_lower x.1) (D.labelFrame_derivative x.1) |
| 141 | D.potential D.potential_nonneg (D.labelHessian_upper x.1) D.small |
| 142 | (D.labelFrameSecond x.1) D.time_pos (D.labelFrame_second_derivative x.1) (D.labelFrame_equation x.1) |
| 143 | (f x) (D.endpointPointDisplacement P J L hQ hQ₁ hH Y hY x) |
| 144 | (D.endpointPointCoordinate P J L hQ hQ₁ hH Y hY x) |
| 145 | (D.endpointPointAcceleration P J L hQ hQ₁ hH Y hY x) |
| 146 | (D.endpointPointDisplacement_hasDerivWithinAt P J L hQ hQ₁ hH Y hY x) |
| 147 | (D.endpointPointCoordinate_hasDerivWithinAt P J L hQ hQ₁ hH Y hY x) |
| 148 | (D.endpointPointDisplacement_initial P J L hQ hQ₁ hH Y hY hL x) |
| 149 | (D.endpointPointDisplacement_terminal P J L hQ hQ₁ hH Y hY hL f hf hrep x) |
| 150 | (D.endpointPoint_projected_equation P J L hQ hQ₁ hH Y hY hL x)).2 |
| 151 | |
| 152 | include hL in |
| 153 | theorem endpointVelocity_pointwise (f : LiftDomain P → U) (hf : Continuous f) |
| 154 | (hrep : Y =ᵐ[liftMeasure P] f) (x : LiftDomain P) (t : Icc (0 : ℝ) T) : |
| 155 | EulerCylinderSmoothOrbit.pointField P (D.endpointVelocity P Y) |
| 156 | (D.endpointVelocity_orbit_contDiff P hQ hQ₁ hH Y hY) t x = |
| 157 | D.labelVelocity x.1 (f x) t := by |
| 158 | have he : (fun x => EulerCylinderSmoothOrbit.pointField P (D.endpointVelocity P Y) |
| 159 | (D.endpointVelocity_orbit_contDiff P hQ hQ₁ hH Y hY) t x) =ᵐ[liftMeasure P] |
| 160 | (fun x => D.Q t x.1 (D.endpointPointCoordinate P J L hQ hQ₁ hH Y hY x t)) := by |
| 161 | filter_upwards [D.endpointVelocity_ae P Y t, |
| 162 | D.endpointPointCoordinate_ae P J L hQ hQ₁ hH Y hY hL t, |
| 163 | EulerCylinderSmoothOrbit.pointField_ae P (D.endpointVelocity P Y) |
| 164 | (D.endpointVelocity_orbit_contDiff P hQ hQ₁ hH Y hY) t] with x hx hv hp |
| 165 | rw [← hp,hx,hv] |
| 166 | have hevery := Measure.eq_of_ae_eq he |
| 167 | (smoothField_continuous P _ (EulerCylinderSmoothOrbit.pointField_smooth P |
| 168 | (D.endpointVelocity P Y) (D.endpointVelocity_orbit_contDiff P hQ hQ₁ hH Y hY) t)) |
| 169 | (((D.Q t).continuous.comp continuous_fst).clm_apply |
| 170 | (pointField_continuous P J L (D.endpointCoordinate P Y) |
| 171 | (D.endpointCoordinate_orbit_contDiff P hQ hQ₁ hH Y hY) t)) |
| 172 | rw [congrFun hevery x,D.endpointPointCoordinate_eq_label P J L hQ hQ₁ hH Y hY hL f hf hrep x] |
| 173 | exact (D.labelVelocity_apply x.1 (f x) t).symm |
| 174 | |
| 175 | end EulerCylinderDirichlet.Coefficients |