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.TransverseFixedEvolution |
| 2 | import Euler.ContinuousTimeIntegral |
| 3 | |
| 4 | /-! |
| 5 | # Classical time evolution for the fixed-coordinate Dirichlet solve |
| 6 | |
| 7 | Continuous forcing gives a continuous Gram acceleration. The genuine H¹ |
| 8 | velocity therefore has its actual derivative throughout the closed interval. |
| 9 | The displacement keeps both zero endpoint conditions. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | namespace EulerTransverseFixedEvolution |
| 15 | |
| 16 | open Set MeasureTheory ContinuousLinearMap InnerProductSpace EulerTimeLp |
| 17 | EulerTerminalTimePrimitive EulerVolterraConvolution EulerTimeH1OperatorProduct |
| 18 | EulerTimeH1FrameTransport EulerTransverseFixedSpaceInverse EulerTransverseGramInverse |
| 19 | EulerContinuousTimeIntegral EulerTimeH1ContinuousDerivative |
| 20 | |
| 21 | variable {U E : Type*} |
| 22 | [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 23 | [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] |
| 24 | (T : ℝ) (hT : 0 ≤ T) |
| 25 | (Q Q₁ : C(Icc (0 : ℝ) T,U →L[ℝ] E)) (H : C(Icc (0 : ℝ) T,E →L[ℝ] E)) |
| 26 | (c : ℝ) (hc : 0 < c) (hQ : ∀ t v, c*‖v‖^2 ≤ ‖Q t v‖^2) |
| 27 | (hd : ∀ t : Icc (0 : ℝ) T, |
| 28 | HasDerivWithinAt (extendPath T hT Q) (Q₁ t) (Icc (0 : ℝ) T) t) |
| 29 | (K : ℝ) (hK : 0 ≤ K) (hH : ∀ t v, ⟪H t v,v⟫_ℝ ≤ K*‖v‖^2) |
| 30 | (hsmall : K*(T^2/2) ≤ 1/2) |
| 31 | |
| 32 | def classicalAcceleration (f : C(Icc (0 : ℝ) T,E)) : C(Icc (0 : ℝ) T,U) := |
| 33 | EulerContinuousGramAcceleration.accelerationPath T Q Q₁ c hc hQ |
| 34 | (velocityPath T hT Q Q₁ H c hc hQ hd K hK hH hsmall (pathLp T hT f)) f |
| 35 | |
| 36 | def displacementPath (f : TimeLp T E) : C(Icc (0 : ℝ) T,U) := |
| 37 | terminalPrimitive T hT (velocityLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall f) |
| 38 | |
| 39 | def physicalVelocityPath (f : C(Icc (0 : ℝ) T,E)) : C(Icc (0 : ℝ) T,E) := |
| 40 | multiplier Q (velocityPath T hT Q Q₁ H c hc hQ hd K hK hH hsmall (pathLp T hT f)) |
| 41 | |
| 42 | def physicalDerivativePath (f : C(Icc (0 : ℝ) T,E)) : C(Icc (0 : ℝ) T,E) := |
| 43 | multiplier Q₁ (velocityPath T hT Q Q₁ H c hc hQ hd K hK hH hsmall (pathLp T hT f))+ |
| 44 | multiplier Q (classicalAcceleration T hT Q Q₁ H c hc hQ hd K hK hH hsmall f) |
| 45 | |
| 46 | theorem displacementPath_initial (f : TimeLp T E) : |
| 47 | displacementPath T hT Q Q₁ H c hc hQ hd K hK hH hsmall f ⟨0,le_rfl,hT⟩ = 0 := |
| 48 | velocityLp_zero_trace T hT Q Q₁ H c hc hQ hd K hK hH hsmall f |
| 49 | |
| 50 | theorem displacementPath_terminal (f : TimeLp T E) : |
| 51 | displacementPath T hT Q Q₁ H c hc hQ hd K hK hH hsmall f ⟨T,hT,le_rfl⟩ = 0 := |
| 52 | terminalPrimitive_terminal T hT _ |
| 53 | |
| 54 | theorem classicalAcceleration_equation (f : C(Icc (0 : ℝ) T,E)) (t : Icc (0 : ℝ) T) : |
| 55 | gram (Q t) (classicalAcceleration T hT Q Q₁ H c hc hQ hd K hK hH hsmall f t) = |
| 56 | (Q t).adjoint (f t-(2 : ℝ) • Q₁ t |
| 57 | (velocityPath T hT Q Q₁ H c hc hQ hd K hK hH hsmall (pathLp T hT f) t)) := |
| 58 | EulerContinuousGramAcceleration.accelerationPath_equation T Q Q₁ c hc hQ _ f t |
| 59 | |
| 60 | variable (Q₂ : C(Icc (0 : ℝ) T,U →L[ℝ] E)) |
| 61 | (hd₁ : ∀ t : Icc (0 : ℝ) T, |
| 62 | HasDerivWithinAt (extendPath T hT Q₁) (Q₂ t) (Icc (0 : ℝ) T) t) |
| 63 | (hframe : ∀ t, Q₂ t = -((H t).comp (Q t))) |
| 64 | (hTpos : 0 < T) |
| 65 | |
| 66 | include hd₁ hframe hTpos in |
| 67 | theorem classicalAcceleration_ae (f : C(Icc (0 : ℝ) T,E)) : |
| 68 | (accelerationLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall (pathLp T hT f) : ℝ → U) =ᵐ[timeMeasure T] |
| 69 | extendPath T hT (classicalAcceleration T hT Q Q₁ H c hc hQ hd K hK hH hsmall f) := |
| 70 | EulerContinuousGramAcceleration.accelerationPath_ae T Q Q₁ c hc hQ hT |
| 71 | (velocityLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall (pathLp T hT f)) |
| 72 | (accelerationLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall (pathLp T hT f)) |
| 73 | (pathLp T hT f) (velocityPath T hT Q Q₁ H c hc hQ hd K hK hH hsmall (pathLp T hT f)) f |
| 74 | (velocityPath_ae T hT Q Q₁ H c hc hQ hd K hK hH hsmall Q₂ hd₁ hframe hTpos _) |
| 75 | (pathLp_ae T hT f) (accelerationLp_equation T hT Q Q₁ H c hc hQ hd K hK hH hsmall _) |
| 76 | |
| 77 | include hd₁ hframe hTpos in |
| 78 | /-- The actual coordinate history has the genuine time derivative in (10), |
| 79 | including within-interval derivatives at both endpoints. -/ |
| 80 | theorem velocityPath_hasDerivWithinAt (f : C(Icc (0 : ℝ) T,E)) (t : Icc (0 : ℝ) T) : |
| 81 | HasDerivWithinAt (extendPath T hT |
| 82 | (velocityPath T hT Q Q₁ H c hc hQ hd K hK hH hsmall (pathLp T hT f))) |
| 83 | (classicalAcceleration T hT Q Q₁ H c hc hQ hd K hK hH hsmall f t) (Icc (0 : ℝ) T) t := by |
| 84 | obtain ⟨v,hv,hrep,hder⟩ := velocityLp_h1 T hT Q Q₁ H c hc hQ hd K hK hH hsmall |
| 85 | Q₂ hd₁ hframe hTpos (pathLp T hT f) |
| 86 | have hdv := hasDerivWithinAt_of_continuous_representative T hT |
| 87 | (accelerationLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall (pathLp T hT f)) |
| 88 | (classicalAcceleration T hT Q Q₁ H c hc hQ hd K hK hH hsmall f) |
| 89 | (classicalAcceleration_ae T hT Q Q₁ H c hc hQ hd K hK hH hsmall Q₂ hd₁ hframe hTpos f) |
| 90 | v hv hder t |
| 91 | apply hdv.congr_of_mem _ t.property |
| 92 | intro s hs |
| 93 | change velocityPath T hT Q Q₁ H c hc hQ hd K hK hH hsmall (pathLp T hT f) (projIcc 0 T hT s) = v s |
| 94 | rw [projIcc_of_mem hT hs] |
| 95 | exact velocityPath_eq T hT Q Q₁ H c hc hQ hd K hK hH hsmall hTpos _ v hv hrep hder ⟨s,hs⟩ |
| 96 | |
| 97 | include hd₁ hframe hTpos in |
| 98 | theorem displacementPath_hasDerivWithinAt (f : C(Icc (0 : ℝ) T,E)) (t : Icc (0 : ℝ) T) : |
| 99 | HasDerivWithinAt (extendPath T hT |
| 100 | (displacementPath T hT Q Q₁ H c hc hQ hd K hK hH hsmall (pathLp T hT f))) |
| 101 | (velocityPath T hT Q Q₁ H c hc hQ hd K hK hH hsmall (pathLp T hT f) t) (Icc (0 : ℝ) T) t := by |
| 102 | let w := velocityLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall (pathLp T hT f) |
| 103 | have hdr := hasDerivWithinAt_of_continuous_representative T hT w |
| 104 | (velocityPath T hT Q Q₁ H c hc hQ hd K hK hH hsmall (pathLp T hT f)) |
| 105 | (velocityPath_ae T hT Q Q₁ H c hc hQ hd K hK hH hsmall Q₂ hd₁ hframe hTpos _) |
| 106 | (realPrimitive T w) (realPrimitive_absolutelyContinuous T w) |
| 107 | (realPrimitive_hasDerivAt_ae T w) t |
| 108 | apply hdr.congr_of_mem _ t.property |
| 109 | intro s hs |
| 110 | change realPrimitive T w (projIcc 0 T hT s) = realPrimitive T w s |
| 111 | rw [projIcc_of_mem hT hs] |
| 112 | |
| 113 | include hd₁ hframe hTpos in |
| 114 | theorem physicalVelocityPath_hasDerivWithinAt (f : C(Icc (0 : ℝ) T,E)) (t : Icc (0 : ℝ) T) : |
| 115 | HasDerivWithinAt (extendPath T hT |
| 116 | (physicalVelocityPath T hT Q Q₁ H c hc hQ hd K hK hH hsmall f)) |
| 117 | (physicalDerivativePath T hT Q Q₁ H c hc hQ hd K hK hH hsmall f t) (Icc (0 : ℝ) T) t := by |
| 118 | have h := (hd t).clm_apply |
| 119 | (velocityPath_hasDerivWithinAt T hT Q Q₁ H c hc hQ hd K hK hH hsmall Q₂ hd₁ hframe hTpos f t) |
| 120 | change HasDerivWithinAt |
| 121 | (fun s => extendPath T hT Q s |
| 122 | (extendPath T hT (velocityPath T hT Q Q₁ H c hc hQ hd K hK hH hsmall (pathLp T hT f)) s)) |
| 123 | (Q₁ t (velocityPath T hT Q Q₁ H c hc hQ hd K hK hH hsmall (pathLp T hT f) t)+ |
| 124 | Q t (classicalAcceleration T hT Q Q₁ H c hc hQ hd K hK hH hsmall f t)) (Icc (0 : ℝ) T) t |
| 125 | simpa only [extendPath,projIcc_of_mem hT t.property] using h |
| 126 | |
| 127 | end EulerTransverseFixedEvolution |