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.CylinderDirichletData |
| 2 | import Euler.FixedEndpointStrong |
| 3 | |
| 4 | /-! |
| 5 | # The actual affine-terminal inverse on the cylinder |
| 6 | |
| 7 | The terminal coordinate below is an element of the genuine cylinder L² |
| 8 | space. The affine lift and its zero-endpoint correction are constructed by |
| 9 | the same coercive form as the forced history inverse. In particular, no |
| 10 | spatially constant nonzero vector is silently treated as L² data. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | namespace EulerCylinderDirichlet.Coefficients |
| 16 | |
| 17 | open Set MeasureTheory ContinuousLinearMap InnerProductSpace EulerSmoothLimit |
| 18 | EulerLiftedGradientSpace EulerLpCylinderTranslation EulerTimeLp |
| 19 | EulerVolterraConvolution EulerTimeH1FrameTransport EulerTerminalTimePrimitive |
| 20 | EulerInitialTimePrimitive EulerTimeH1OperatorProduct EulerTransverseFixedEndpoint |
| 21 | EulerTransverseEndpointParameter EulerTransverseEndpointCoordinates |
| 22 | EulerTransverseGramInverse EulerTransverseForwardInverse |
| 23 | EulerTransverseInitialCoordinates EulerTransverseInitialInverse |
| 24 | |
| 25 | variable {U E : Type*} |
| 26 | [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 27 | [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] |
| 28 | (P : ℝ) [Fact (0 < P)] {T : ℝ} (D : Coefficients T U E) |
| 29 | |
| 30 | /-- The genuine zero-trace correction to the affine terminal lift. -/ |
| 31 | def endpointCorrection : CylinderL2 P U →L[ℝ] |
| 32 | zeroTraceDerivatives (U := CylinderL2 P U) T D.time_pos.le := |
| 33 | fixedEndpointCorrection T D.time_pos.le (D.frame P) (D.frameDerivative P) (D.hessian P) |
| 34 | D.lower D.lower_pos (D.frame_lower P) (D.frame_derivative P) |
| 35 | D.potential D.potential_nonneg (D.hessian_upper P) D.small |
| 36 | (affineTrial T D.time_pos.le (D.frame P) (D.frameDerivative P)) |
| 37 | |
| 38 | /-- The actual coordinate derivative in L² time. -/ |
| 39 | def endpointSlope : CylinderL2 P U →L[ℝ] TimeLp T (CylinderL2 P U) := |
| 40 | coordinateSlope T D.time_pos.le (D.frame P) (D.frameDerivative P) (D.hessian P) |
| 41 | D.lower D.lower_pos (D.frame_lower P) (D.frame_derivative P) |
| 42 | D.potential D.potential_nonneg (D.hessian_upper P) D.small |
| 43 | |
| 44 | /-- The actual coordinate displacement with prescribed terminal trace. -/ |
| 45 | def endpointDisplacement : CylinderL2 P U →L[ℝ] C(Icc (0 : ℝ) T,CylinderL2 P U) := |
| 46 | (initialPrimitive T D.time_pos.le).comp (D.endpointSlope P) |
| 47 | |
| 48 | /-- Bounded H¹ reconstruction of the stationary coordinate velocity. -/ |
| 49 | def endpointCoordinate : CylinderL2 P U →L[ℝ] C(Icc (0 : ℝ) T,CylinderL2 P U) := |
| 50 | continuousCoordinateVelocity T D.time_pos.le (D.frame P) (D.frameDerivative P) (D.hessian P) |
| 51 | D.lower D.lower_pos (D.frame_lower P) (D.frame_derivative P) |
| 52 | D.potential D.potential_nonneg (D.hessian_upper P) D.small |
| 53 | |
| 54 | /-- Its acceleration is the actual homogeneous right hand side. -/ |
| 55 | def endpointAcceleration : CylinderL2 P U →L[ℝ] C(Icc (0 : ℝ) T,CylinderL2 P U) := |
| 56 | (EulerContinuousTimeIntegral.multiplier |
| 57 | (generator T (D.frame P) (D.frameDerivative P) D.lower D.lower_pos (D.frame_lower P))).comp |
| 58 | (D.endpointCoordinate P) |
| 59 | |
| 60 | /-- The physical history velocity, with a genuine L² terminal datum. -/ |
| 61 | def endpointVelocity : CylinderL2 P U →L[ℝ] C(Icc (0 : ℝ) T,CylinderL2 P E) := |
| 62 | (EulerContinuousTimeIntegral.multiplier (D.frame P)).comp (D.endpointCoordinate P) |
| 63 | |
| 64 | /-- The product-rule expression for the actual physical time derivative. -/ |
| 65 | def endpointDerivative : CylinderL2 P U →L[ℝ] C(Icc (0 : ℝ) T,CylinderL2 P E) := |
| 66 | (EulerContinuousTimeIntegral.multiplier (D.frameDerivative P)).comp (D.endpointCoordinate P)+ |
| 67 | (EulerContinuousTimeIntegral.multiplier (D.frame P)).comp (D.endpointAcceleration P) |
| 68 | |
| 69 | theorem endpointDisplacement_initial (Y : CylinderL2 P U) : |
| 70 | D.endpointDisplacement P Y ⟨0,le_rfl,D.time_pos.le⟩ = 0 := |
| 71 | initialPrimitive_initial T D.time_pos.le _ |
| 72 | |
| 73 | theorem endpointDisplacement_terminal (Y : CylinderL2 P U) : |
| 74 | D.endpointDisplacement P Y ⟨T,D.time_pos.le,le_rfl⟩ = Y := by |
| 75 | have hr : initialTrace T D.time_pos.le |
| 76 | (D.endpointCorrection P Y : TimeLp T (CylinderL2 P U)) = 0 := |
| 77 | (D.endpointCorrection P Y).property |
| 78 | change initialPrimitive T D.time_pos.le |
| 79 | (constantFieldOperator T D.time_pos.le (T⁻¹ • Y)- |
| 80 | (D.endpointCorrection P Y : TimeLp T (CylinderL2 P U))) _ = Y |
| 81 | rw [map_sub,ContinuousMap.sub_apply,initialPrimitive_constantFieldOperator, |
| 82 | initialPrimitive_eq_terminal_sub,terminalPrimitive_terminal] |
| 83 | change T • (T⁻¹ • Y)-(0-initialTrace T D.time_pos.le |
| 84 | (D.endpointCorrection P Y : TimeLp T (CylinderL2 P U))) = Y |
| 85 | rw [hr,sub_self,sub_zero,smul_smul,mul_inv_cancel₀ D.time_pos.ne',one_smul] |
| 86 | |
| 87 | theorem endpointCoordinate_eq (Y : CylinderL2 P U) (t : Icc (0 : ℝ) T) : |
| 88 | D.endpointCoordinate P Y t = |
| 89 | EulerTransverseEndpointVelocity.coordinateVelocityPath T D.time_pos.le |
| 90 | (D.frame P) (D.frameDerivative P) D.lower D.lower_pos (D.frame_lower P) (D.hessian P) |
| 91 | (fixedEndpointDerivative T D.time_pos.le (D.frame P) (D.frameDerivative P) (D.hessian P) |
| 92 | D.lower D.lower_pos (D.frame_lower P) (D.frame_derivative P) |
| 93 | D.potential D.potential_nonneg (D.hessian_upper P) D.small |
| 94 | (affineTrial T D.time_pos.le (D.frame P) (D.frameDerivative P)) Y) t := |
| 95 | EulerFixedEndpointStrong.continuousCoordinateVelocity_eq T D.time_pos.le |
| 96 | (D.frame P) (D.frameDerivative P) (D.hessian P) |
| 97 | D.lower D.lower_pos (D.frame_lower P) (D.frame_derivative P) |
| 98 | D.potential D.potential_nonneg (D.hessian_upper P) D.small |
| 99 | (D.frameSecond P) D.time_pos (D.frame_second_derivative P) (D.frame_equation P) Y t |
| 100 | |
| 101 | /-- This reconstruction has the original L² coordinate derivative as its |
| 102 | almost-everywhere representative. -/ |
| 103 | theorem endpointCoordinate_ae (Y : CylinderL2 P U) : |
| 104 | (D.endpointSlope P Y : ℝ → CylinderL2 P U) =ᵐ[timeMeasure T] |
| 105 | extendPath T D.time_pos.le (D.endpointCoordinate P Y) := by |
| 106 | have ha := EulerFixedEndpointStrong.coordinateSlope_ae T D.time_pos.le |
| 107 | (D.frame P) (D.frameDerivative P) (D.hessian P) |
| 108 | D.lower D.lower_pos (D.frame_lower P) (D.frame_derivative P) |
| 109 | D.potential D.potential_nonneg (D.hessian_upper P) D.small D.time_pos Y |
| 110 | filter_upwards [ha,ae_restrict_mem measurableSet_Icc] with t ht hmem |
| 111 | change D.endpointSlope P Y t = _ at ht |
| 112 | rw [ht] |
| 113 | change _ = D.endpointCoordinate P Y (projIcc 0 T D.time_pos.le t) |
| 114 | rw [projIcc_of_mem D.time_pos.le hmem] |
| 115 | exact (D.endpointCoordinate_eq P Y ⟨t,hmem⟩).symm |
| 116 | |
| 117 | theorem endpointDisplacement_hasDerivWithinAt (Y : CylinderL2 P U) (t : Icc (0 : ℝ) T) : |
| 118 | HasDerivWithinAt (extendPath T D.time_pos.le (D.endpointDisplacement P Y)) |
| 119 | (D.endpointCoordinate P Y t) (Icc (0 : ℝ) T) t := by |
| 120 | have hd := EulerTimeH1ContinuousDerivative.hasDerivWithinAt_of_continuous_representative |
| 121 | T D.time_pos.le (D.endpointSlope P Y) (D.endpointCoordinate P Y) |
| 122 | (D.endpointCoordinate_ae P Y) (initialRealPrimitive T (D.endpointSlope P Y)) |
| 123 | (initialRealPrimitive_absolutelyContinuous T _) |
| 124 | (initialRealPrimitive_hasDerivAt_ae T _) t |
| 125 | apply hd.congr_of_mem _ t.property |
| 126 | intro s hs |
| 127 | change initialRealPrimitive T (D.endpointSlope P Y) (projIcc 0 T D.time_pos.le s) = _ |
| 128 | rw [projIcc_of_mem D.time_pos.le hs] |
| 129 | |
| 130 | /-- Equation (10) holds throughout the closed time interval for the actual |
| 131 | affine-terminal solution. -/ |
| 132 | theorem endpointCoordinate_hasDerivWithinAt (Y : CylinderL2 P U) (t : Icc (0 : ℝ) T) : |
| 133 | HasDerivWithinAt (extendPath T D.time_pos.le (D.endpointCoordinate P Y)) |
| 134 | (D.endpointAcceleration P Y t) (Icc (0 : ℝ) T) t := |
| 135 | EulerFixedEndpointStrong.continuousCoordinateVelocity_hasDerivWithinAt_generator |
| 136 | T D.time_pos.le (D.frame P) (D.frameDerivative P) (D.hessian P) |
| 137 | D.lower D.lower_pos (D.frame_lower P) (D.frame_derivative P) |
| 138 | D.potential D.potential_nonneg (D.hessian_upper P) D.small |
| 139 | (D.frameSecond P) D.time_pos (D.frame_second_derivative P) (D.frame_equation P) Y t |
| 140 | |
| 141 | theorem endpointVelocity_hasDerivWithinAt (Y : CylinderL2 P U) (t : Icc (0 : ℝ) T) : |
| 142 | HasDerivWithinAt (extendPath T D.time_pos.le (D.endpointVelocity P Y)) |
| 143 | (D.endpointDerivative P Y t) (Icc (0 : ℝ) T) t := by |
| 144 | have hd := (D.frame_derivative P t).clm_apply (D.endpointCoordinate_hasDerivWithinAt P Y t) |
| 145 | change HasDerivWithinAt |
| 146 | (fun s => extendPath (Y := CylinderL2 P U →L[ℝ] CylinderL2 P E) T D.time_pos.le (D.frame P) s |
| 147 | (extendPath T D.time_pos.le (D.endpointCoordinate P Y) s)) |
| 148 | (D.frameDerivative P t (D.endpointCoordinate P Y t)+ |
| 149 | D.frame P t (D.endpointAcceleration P Y t)) (Icc (0 : ℝ) T) t |
| 150 | simpa only [extendPath,projIcc_of_mem D.time_pos.le t.property] using hd |
| 151 | |
| 152 | /-- The literal homogeneous projected equation, with no prescribed solution |
| 153 | or strong derivative among the data. -/ |
| 154 | theorem endpoint_projected_equation (Y : CylinderL2 P U) (t : Icc (0 : ℝ) T) : |
| 155 | gram (D.frame P t) (D.endpointAcceleration P Y t) = |
| 156 | (D.frame P t).adjoint (-(2 : ℝ) • D.frameDerivative P t (D.endpointCoordinate P Y t)) := by |
| 157 | change gram (D.frame P t) ((-2 : ℝ) • gramInverse (D.frame P t) D.lower D.lower_pos |
| 158 | (D.frame_lower P t) ((D.frame P t).adjoint |
| 159 | (D.frameDerivative P t (D.endpointCoordinate P Y t)))) = _ |
| 160 | rw [map_smul,gram_inverse_apply,map_smul] |
| 161 | |
| 162 | end EulerCylinderDirichlet.Coefficients |