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.CylinderEndpointData |
| 2 | import Euler.FixedEndpointForcing |
| 3 | |
| 4 | /-! |
| 5 | The actual cylinder endpoint inverse is affine data minus the genuine |
| 6 | zero-endpoint inverse of its explicit forcing. These identities transfer |
| 7 | the already proved support, translation and same-radius estimates to the |
| 8 | nonzero-terminal construction. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | namespace EulerCylinderDirichlet.Coefficients |
| 14 | |
| 15 | open Set ContinuousLinearMap InnerProductSpace EulerSmoothLimit |
| 16 | EulerLiftedGradientSpace EulerLpCylinderTranslation EulerTimeLp |
| 17 | EulerVolterraConvolution EulerTimeH1FrameTransport EulerTerminalTimePrimitive |
| 18 | EulerInitialTimePrimitive EulerTransverseFixedEndpoint |
| 19 | EulerTransverseEndpointParameter EulerTransverseEndpointCoordinates |
| 20 | EulerFixedEndpointForcing EulerContinuousTimeIntegral |
| 21 | |
| 22 | variable {U E : Type*} |
| 23 | [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 24 | [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] |
| 25 | (P : ℝ) [Fact (0 < P)] {T : ℝ} (D : Coefficients T U E) |
| 26 | |
| 27 | /-- The exact forcing of the affine endpoint correction. -/ |
| 28 | def endpointForcing : CylinderL2 P U →L[ℝ] C(Icc (0 : ℝ) T,CylinderL2 P E) := |
| 29 | affineForcing T (D.frameDerivative P) |
| 30 | |
| 31 | omit [CompleteSpace U] [CompleteSpace E] in |
| 32 | theorem endpointForcing_apply (Y : CylinderL2 P U) (t : Icc (0 : ℝ) T) : |
| 33 | D.endpointForcing P Y t = (2 : ℝ) • D.frameDerivative P t (T⁻¹ • Y) := rfl |
| 34 | |
| 35 | /-- Equality of the genuinely constructed corrections, not a new solution assumption. -/ |
| 36 | theorem endpointCorrection_eq_forced (Y : CylinderL2 P U) : |
| 37 | D.endpointCorrection P Y = D.coordinateSolver P (pathLp T D.time_pos.le (D.endpointForcing P Y)) := |
| 38 | correction_eq_forced T D.time_pos.le (D.frame P) (D.frameDerivative P) (D.frameSecond P) |
| 39 | (D.hessian P) (D.frame_derivative P) (D.frame_second_derivative P) (D.frame_equation P) |
| 40 | D.lower D.lower_pos (D.frame_lower P) D.potential D.potential_nonneg |
| 41 | (D.hessian_upper P) D.small Y |
| 42 | |
| 43 | theorem endpointSlope_eq_const_sub (Y : CylinderL2 P U) : |
| 44 | D.endpointSlope P Y = constantFieldOperator T D.time_pos.le (T⁻¹ • Y)- |
| 45 | D.velocityLp P (pathLp T D.time_pos.le (D.endpointForcing P Y)) := by |
| 46 | change constantFieldOperator T D.time_pos.le (T⁻¹ • Y)- |
| 47 | (D.endpointCorrection P Y : TimeLp T (CylinderL2 P U)) = _ |
| 48 | rw [D.endpointCorrection_eq_forced P Y] |
| 49 | rfl |
| 50 | |
| 51 | theorem endpointDisplacement_eq_affine_sub (Y : CylinderL2 P U) (t : Icc (0 : ℝ) T) : |
| 52 | D.endpointDisplacement P Y t = (t : ℝ) • (T⁻¹ • Y)- |
| 53 | D.displacementPath P (pathLp T D.time_pos.le (D.endpointForcing P Y)) t := by |
| 54 | have hz : initialTrace T D.time_pos.le |
| 55 | (D.velocityLp P (pathLp T D.time_pos.le (D.endpointForcing P Y))) = 0 := |
| 56 | (D.coordinateSolver P (pathLp T D.time_pos.le (D.endpointForcing P Y))).property |
| 57 | change initialPrimitive T D.time_pos.le (D.endpointSlope P Y) t = _ |
| 58 | rw [D.endpointSlope_eq_const_sub P Y,map_sub,ContinuousMap.sub_apply, |
| 59 | initialPrimitive_constantFieldOperator,initialPrimitive_eq_terminal_sub, |
| 60 | hz,sub_zero] |
| 61 | rfl |
| 62 | |
| 63 | /-- Equality in continuous time follows from the true displacement |
| 64 | derivative, including the endpoint derivatives. -/ |
| 65 | theorem endpointCoordinate_eq_const_sub (Y : CylinderL2 P U) (t : Icc (0 : ℝ) T) : |
| 66 | D.endpointCoordinate P Y t = T⁻¹ • Y- |
| 67 | D.velocityPath P (pathLp T D.time_pos.le (D.endpointForcing P Y)) t := by |
| 68 | have hc : HasDerivWithinAt (fun s : ℝ => s • (T⁻¹ • Y)) (T⁻¹ • Y) |
| 69 | (Icc (0 : ℝ) T) t := by |
| 70 | simpa only [id_eq,one_smul] using ((hasDerivAt_id (t : ℝ)).smul_const (T⁻¹ • Y)).hasDerivWithinAt |
| 71 | have hh := hc.sub (D.displacement_hasDerivWithinAt P (D.endpointForcing P Y) t) |
| 72 | have he : HasDerivWithinAt (extendPath T D.time_pos.le (D.endpointDisplacement P Y)) |
| 73 | (T⁻¹ • Y-D.velocityPath P (pathLp T D.time_pos.le (D.endpointForcing P Y)) t) |
| 74 | (Icc (0 : ℝ) T) t := by |
| 75 | apply hh.congr_of_mem _ t.property |
| 76 | intro s hs |
| 77 | simpa only [Pi.sub_apply,extendPath,projIcc_of_mem D.time_pos.le hs] using |
| 78 | D.endpointDisplacement_eq_affine_sub P Y ⟨s,hs⟩ |
| 79 | exact ((D.endpointDisplacement_hasDerivWithinAt P Y t).derivWithin |
| 80 | ((uniqueDiffOn_Icc D.time_pos) _ t.property)).symm.trans |
| 81 | (he.derivWithin ((uniqueDiffOn_Icc D.time_pos) _ t.property)) |
| 82 | |
| 83 | theorem endpointCoordinate_eq_forced (Y : CylinderL2 P U) : |
| 84 | D.endpointCoordinate P Y = ContinuousMap.const (Icc (0 : ℝ) T) (T⁻¹ • Y)- |
| 85 | D.velocityPath P (pathLp T D.time_pos.le (D.endpointForcing P Y)) := by |
| 86 | apply ContinuousMap.ext |
| 87 | intro t |
| 88 | exact D.endpointCoordinate_eq_const_sub P Y t |
| 89 | |
| 90 | theorem endpointAcceleration_eq_forced (Y : CylinderL2 P U) : |
| 91 | D.endpointAcceleration P Y = -D.accelerationPath P (D.endpointForcing P Y) := by |
| 92 | apply ContinuousMap.ext |
| 93 | intro t |
| 94 | have hh := (hasDerivWithinAt_const (t : ℝ) (Icc (0 : ℝ) T) (T⁻¹ • Y)).sub |
| 95 | (D.velocity_hasDerivWithinAt P (D.endpointForcing P Y) t) |
| 96 | have he : HasDerivWithinAt (extendPath T D.time_pos.le (D.endpointCoordinate P Y)) |
| 97 | (-D.accelerationPath P (D.endpointForcing P Y) t) (Icc (0 : ℝ) T) t := by |
| 98 | apply (hh.congr_deriv (zero_sub _)).congr_of_mem _ t.property |
| 99 | intro s hs |
| 100 | simpa only [Pi.sub_apply,extendPath,projIcc_of_mem D.time_pos.le hs] using |
| 101 | D.endpointCoordinate_eq_const_sub P Y ⟨s,hs⟩ |
| 102 | exact ((D.endpointCoordinate_hasDerivWithinAt P Y t).derivWithin |
| 103 | ((uniqueDiffOn_Icc D.time_pos) _ t.property)).symm.trans |
| 104 | (he.derivWithin ((uniqueDiffOn_Icc D.time_pos) _ t.property)) |
| 105 | |
| 106 | theorem endpointVelocity_eq_forced (Y : CylinderL2 P U) : |
| 107 | D.endpointVelocity P Y = |
| 108 | multiplier (D.frame P) (ContinuousMap.const (Icc (0 : ℝ) T) (T⁻¹ • Y))- |
| 109 | D.physicalVelocity P (D.endpointForcing P Y) := by |
| 110 | apply ContinuousMap.ext |
| 111 | intro t |
| 112 | change D.frame P t (D.endpointCoordinate P Y t) = |
| 113 | D.frame P t (T⁻¹ • Y)-D.frame P t |
| 114 | (D.velocityPath P (pathLp T D.time_pos.le (D.endpointForcing P Y)) t) |
| 115 | rw [D.endpointCoordinate_eq_const_sub P Y t,map_sub] |
| 116 | |
| 117 | theorem endpointDerivative_eq_forced (Y : CylinderL2 P U) : |
| 118 | D.endpointDerivative P Y = |
| 119 | multiplier (D.frameDerivative P) (ContinuousMap.const (Icc (0 : ℝ) T) (T⁻¹ • Y))- |
| 120 | D.physicalDerivative P (D.endpointForcing P Y) := by |
| 121 | apply ContinuousMap.ext |
| 122 | intro t |
| 123 | change D.frameDerivative P t (D.endpointCoordinate P Y t)+D.frame P t (D.endpointAcceleration P Y t) = |
| 124 | D.frameDerivative P t (T⁻¹ • Y)-(D.frameDerivative P t |
| 125 | (D.velocityPath P (pathLp T D.time_pos.le (D.endpointForcing P Y)) t)+ |
| 126 | D.frame P t (D.accelerationPath P (D.endpointForcing P Y) t)) |
| 127 | rw [D.endpointCoordinate_eq_const_sub P Y t,D.endpointAcceleration_eq_forced P Y, |
| 128 | ContinuousMap.neg_apply,map_sub,map_neg] |
| 129 | abel |
| 130 | |
| 131 | end EulerCylinderDirichlet.Coefficients |