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.FixedEndpointStrong |
| 2 | import Euler.FrameEndpointUniqueness |
| 3 | import Euler.TimeH1ContinuousDerivative |
| 4 | |
| 5 | /-! |
| 6 | The constructed affine-terminal inverse as a classical coordinate path, |
| 7 | and its uniqueness among actual twice differentiable coordinate paths. |
| 8 | -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace EulerFixedEndpointClassical |
| 13 | |
| 14 | open Set MeasureTheory ContinuousLinearMap InnerProductSpace |
| 15 | EulerTimeLp EulerTerminalTimePrimitive EulerInitialTimePrimitive |
| 16 | EulerVolterraConvolution EulerTransverseEndpointCoordinates |
| 17 | EulerTransverseEndpointParameter EulerTransverseFixedEndpoint |
| 18 | EulerTransverseForwardInverse EulerTransverseGramInverse |
| 19 | EulerTransverseEndpointVelocity EulerTimeH1FrameTransport |
| 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)) |
| 26 | (H : C(Icc (0 : ℝ) T,E →L[ℝ] E)) |
| 27 | (c : ℝ) (hc : 0 < c) (hQ : ∀ t v, c*‖v‖^2 ≤ ‖Q t v‖^2) |
| 28 | (hd : ∀ t : Icc (0 : ℝ) T, |
| 29 | HasDerivWithinAt (extendPath T hT Q) (Q₁ t) (Icc (0 : ℝ) T) t) |
| 30 | (K : ℝ) (hK : 0 ≤ K) (hH : ∀ t v, ⟪H t v,v⟫_ℝ ≤ K*‖v‖^2) |
| 31 | (hsmall : K*(T^2/2) ≤ 1/2) |
| 32 | |
| 33 | def displacement : U →L[ℝ] C(Icc (0 : ℝ) T,U) := |
| 34 | (initialPrimitive T hT).comp (coordinateSlope T hT Q Q₁ H c hc hQ hd K hK hH hsmall) |
| 35 | |
| 36 | def acceleration : U →L[ℝ] C(Icc (0 : ℝ) T,U) := |
| 37 | (EulerContinuousTimeIntegral.multiplier (generator T Q Q₁ c hc hQ)).comp |
| 38 | (continuousCoordinateVelocity T hT Q Q₁ H c hc hQ hd K hK hH hsmall) |
| 39 | |
| 40 | theorem displacement_initial (Y : U) : |
| 41 | displacement T hT Q Q₁ H c hc hQ hd K hK hH hsmall Y ⟨0,le_rfl,hT⟩ = 0 := |
| 42 | initialPrimitive_initial T hT _ |
| 43 | |
| 44 | theorem displacement_terminal (hTpos : 0 < T) (Y : U) : |
| 45 | displacement T hT Q Q₁ H c hc hQ hd K hK hH hsmall Y ⟨T,hT,le_rfl⟩ = Y := by |
| 46 | let r := fixedEndpointCorrection T hT Q Q₁ H c hc hQ hd K hK hH hsmall |
| 47 | (affineTrial T hT Q Q₁) Y |
| 48 | have hr : initialTrace T hT (r : TimeLp T U) = 0 := r.property |
| 49 | change initialPrimitive T hT (constantFieldOperator T hT (T⁻¹ • Y)-(r : TimeLp T U)) _ = Y |
| 50 | rw [map_sub,ContinuousMap.sub_apply,initialPrimitive_constantFieldOperator, |
| 51 | initialPrimitive_eq_terminal_sub,terminalPrimitive_terminal] |
| 52 | change T • (T⁻¹ • Y)-(0-initialTrace T hT (r : TimeLp T U)) = Y |
| 53 | rw [hr,sub_self,sub_zero,smul_smul,mul_inv_cancel₀ hTpos.ne',one_smul] |
| 54 | |
| 55 | variable (Q₂ : C(Icc (0 : ℝ) T,U →L[ℝ] E)) (hTpos : 0 < T) |
| 56 | (hd₁ : ∀ t : Icc (0 : ℝ) T, |
| 57 | HasDerivWithinAt (extendPath T hT Q₁) (Q₂ t) (Icc (0 : ℝ) T) t) |
| 58 | (hframe : ∀ t, Q₂ t = -((H t).comp (Q t))) |
| 59 | |
| 60 | include Q₂ hTpos hd₁ hframe in |
| 61 | theorem velocity_ae (Y : U) : |
| 62 | (coordinateSlope T hT Q Q₁ H c hc hQ hd K hK hH hsmall Y : ℝ → U) =ᵐ[timeMeasure T] |
| 63 | extendPath T hT (continuousCoordinateVelocity T hT Q Q₁ H c hc hQ hd K hK hH hsmall Y) := by |
| 64 | have ha := EulerFixedEndpointStrong.coordinateSlope_ae T hT Q Q₁ H c hc hQ hd K hK hH hsmall hTpos Y |
| 65 | filter_upwards [ha,ae_restrict_mem measurableSet_Icc] with t ht hm |
| 66 | rw [ht] |
| 67 | change _ = continuousCoordinateVelocity T hT Q Q₁ H c hc hQ hd K hK hH hsmall Y (projIcc 0 T hT t) |
| 68 | rw [projIcc_of_mem hT hm] |
| 69 | exact (EulerFixedEndpointStrong.continuousCoordinateVelocity_eq T hT Q Q₁ H c hc hQ hd K hK hH |
| 70 | hsmall Q₂ hTpos hd₁ hframe Y ⟨t,hm⟩).symm |
| 71 | |
| 72 | include Q₂ hTpos hd₁ hframe in |
| 73 | theorem displacement_hasDerivWithinAt (Y : U) (t : Icc (0 : ℝ) T) : |
| 74 | HasDerivWithinAt (extendPath T hT (displacement T hT Q Q₁ H c hc hQ hd K hK hH hsmall Y)) |
| 75 | (continuousCoordinateVelocity T hT Q Q₁ H c hc hQ hd K hK hH hsmall Y t) |
| 76 | (Icc (0 : ℝ) T) t := by |
| 77 | have hh := EulerTimeH1ContinuousDerivative.hasDerivWithinAt_of_continuous_representative |
| 78 | T hT (coordinateSlope T hT Q Q₁ H c hc hQ hd K hK hH hsmall Y) |
| 79 | (continuousCoordinateVelocity T hT Q Q₁ H c hc hQ hd K hK hH hsmall Y) |
| 80 | (velocity_ae T hT Q Q₁ H c hc hQ hd K hK hH hsmall Q₂ hTpos hd₁ hframe Y) |
| 81 | (initialRealPrimitive T (coordinateSlope T hT Q Q₁ H c hc hQ hd K hK hH hsmall Y)) |
| 82 | (initialRealPrimitive_absolutelyContinuous T _) (initialRealPrimitive_hasDerivAt_ae T _) t |
| 83 | apply hh.congr_of_mem _ t.property |
| 84 | intro s hs |
| 85 | change initialRealPrimitive T _ (projIcc 0 T hT s) = initialRealPrimitive T _ s |
| 86 | rw [projIcc_of_mem hT hs] |
| 87 | rfl |
| 88 | |
| 89 | include Q₂ hTpos hd₁ hframe in |
| 90 | theorem velocity_hasDerivWithinAt (Y : U) (t : Icc (0 : ℝ) T) : |
| 91 | HasDerivWithinAt |
| 92 | (extendPath T hT (continuousCoordinateVelocity T hT Q Q₁ H c hc hQ hd K hK hH hsmall Y)) |
| 93 | (acceleration T hT Q Q₁ H c hc hQ hd K hK hH hsmall Y t) (Icc (0 : ℝ) T) t := |
| 94 | EulerFixedEndpointStrong.continuousCoordinateVelocity_hasDerivWithinAt_generator |
| 95 | T hT Q Q₁ H c hc hQ hd K hK hH hsmall Q₂ hTpos hd₁ hframe Y t |
| 96 | |
| 97 | theorem projected_equation (Y : U) (t : Icc (0 : ℝ) T) : |
| 98 | gram (Q t) (acceleration T hT Q Q₁ H c hc hQ hd K hK hH hsmall Y t) = |
| 99 | (Q t).adjoint ((-2 : ℝ) • Q₁ t |
| 100 | (continuousCoordinateVelocity T hT Q Q₁ H c hc hQ hd K hK hH hsmall Y t)) := by |
| 101 | change gram (Q t) ((-2 : ℝ) • gramInverse (Q t) c hc (hQ t) ((Q t).adjoint |
| 102 | (Q₁ t (continuousCoordinateVelocity T hT Q Q₁ H c hc hQ hd K hK hH hsmall Y t)))) = _ |
| 103 | rw [map_smul,gram_inverse_apply,map_smul] |
| 104 | |
| 105 | include Q₂ hTpos hd₁ hframe in |
| 106 | theorem unique (Y : U) (z v a : C(Icc (0 : ℝ) T,U)) |
| 107 | (hz : ∀ t : Icc (0 : ℝ) T, |
| 108 | HasDerivWithinAt (extendPath T hT z) (v t) (Icc (0 : ℝ) T) t) |
| 109 | (hv : ∀ t : Icc (0 : ℝ) T, |
| 110 | HasDerivWithinAt (extendPath T hT v) (a t) (Icc (0 : ℝ) T) t) |
| 111 | (hz0 : z ⟨0,le_rfl,hT⟩ = 0) (hzT : z ⟨T,hT,le_rfl⟩ = Y) |
| 112 | (heq : ∀ t, gram (Q t) (a t) = (Q t).adjoint ((-2 : ℝ) • Q₁ t (v t))) : |
| 113 | z = displacement T hT Q Q₁ H c hc hQ hd K hK hH hsmall Y ∧ |
| 114 | v = continuousCoordinateVelocity T hT Q Q₁ H c hc hQ hd K hK hH hsmall Y := by |
| 115 | apply EulerFrameEndpointUniqueness.unique_of_projected_equation T hT hTpos |
| 116 | Q Q₁ Q₂ H c hc hQ hd hd₁ hframe K hK hH hsmall z v a |
| 117 | (displacement T hT Q Q₁ H c hc hQ hd K hK hH hsmall Y) |
| 118 | (continuousCoordinateVelocity T hT Q Q₁ H c hc hQ hd K hK hH hsmall Y) |
| 119 | (acceleration T hT Q Q₁ H c hc hQ hd K hK hH hsmall Y) hz hv |
| 120 | (displacement_hasDerivWithinAt T hT Q Q₁ H c hc hQ hd K hK hH hsmall Q₂ hTpos hd₁ hframe Y) |
| 121 | (velocity_hasDerivWithinAt T hT Q Q₁ H c hc hQ hd K hK hH hsmall Q₂ hTpos hd₁ hframe Y) |
| 122 | (hz0.trans (displacement_initial T hT Q Q₁ H c hc hQ hd K hK hH hsmall Y).symm) |
| 123 | (hzT.trans (displacement_terminal T hT Q Q₁ H c hc hQ hd K hK hH hsmall hTpos Y).symm) |
| 124 | heq (projected_equation T hT Q Q₁ H c hc hQ hd K hK hH hsmall Y) |
| 125 | |
| 126 | end EulerFixedEndpointClassical |