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.LinearDuhamelOperator |
| 2 | import Euler.TransverseGramPath |
| 3 | import Euler.TransverseNormalResidual |
| 4 | |
| 5 | /-! |
| 6 | # The actual forward transverse initial value problem |
| 7 | |
| 8 | The matrix coefficient in source equation (12) is formed using the genuinely |
| 9 | constructed Gram inverse. Given the homogeneous evolution assumed in (H3), |
| 10 | Duhamel's integral constructs the forced coordinate and physical velocity. |
| 11 | The coordinate equation, tangency, initial trace and physical pressure balance |
| 12 | are proved at every time, including within-interval endpoint derivatives. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | |
| 18 | namespace EulerTransverseForwardInverse |
| 19 | |
| 20 | open Set InnerProductSpace ContinuousLinearMap EulerVolterraConvolution |
| 21 | EulerTransverseGramInverse EulerTransverseGramPath EulerTransverseNormalResidual |
| 22 | EulerContinuousTimeIntegral EulerLinearDuhamel |
| 23 | |
| 24 | variable {V E : Type*} |
| 25 | [NormedAddCommGroup V] [InnerProductSpace ℝ V] [CompleteSpace V] |
| 26 | [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] |
| 27 | variable (T : ℝ) (hT : 0 ≤ T) |
| 28 | (Q Q₁ : C(Icc (0 : ℝ) T,V →L[ℝ] E)) |
| 29 | (c : ℝ) (hc : 0 < c) (hQ : ∀ t v, c*‖v‖^2 ≤ ‖Q t v‖^2) |
| 30 | |
| 31 | /-- The actual ordinary coefficient `-2 K⁻¹ Q* Q₁` in equation (12). -/ |
| 32 | def generator : C(Icc (0 : ℝ) T,V →L[ℝ] V) := |
| 33 | ⟨fun t => (-2 : ℝ) • (gramInversePath T Q c hc hQ t).comp ((Q t).adjoint.comp (Q₁ t)), |
| 34 | ((gramInversePath T Q c hc hQ).continuous.clm_comp |
| 35 | ((adjointPath T Q).continuous.clm_comp Q₁.continuous)).const_smul (-2 : ℝ)⟩ |
| 36 | |
| 37 | /-- The actual projected forcing `K⁻¹ Q* f`, as a bounded continuous-path map. -/ |
| 38 | def forcingOperator : C(Icc (0 : ℝ) T,E) →L[ℝ] C(Icc (0 : ℝ) T,V) := |
| 39 | multiplier (frameLeftInversePath T Q c hc hQ) |
| 40 | |
| 41 | variable (U : Evolution T hT (generator T Q Q₁ c hc hQ)) |
| 42 | |
| 43 | /-- The forward coordinate is the actual forced Duhamel path. -/ |
| 44 | def coordinates (f : C(Icc (0 : ℝ) T,E)) (a₀ : V) : C(Icc (0 : ℝ) T,V) := |
| 45 | U.solution (forcingOperator T Q c hc hQ f) a₀ |
| 46 | |
| 47 | /-- Its derivative is the literal ordinary right hand side. -/ |
| 48 | def coordinateDerivative (f : C(Icc (0 : ℝ) T,E)) (a₀ : V) : C(Icc (0 : ℝ) T,V) := |
| 49 | multiplier (generator T Q Q₁ c hc hQ) (coordinates T hT Q Q₁ c hc hQ U f a₀) + |
| 50 | forcingOperator T Q c hc hQ f |
| 51 | |
| 52 | /-- The physical velocity `A=Qa` is an actual continuous path. -/ |
| 53 | def velocity (f : C(Icc (0 : ℝ) T,E)) (a₀ : V) : C(Icc (0 : ℝ) T,E) := |
| 54 | multiplier Q (coordinates T hT Q Q₁ c hc hQ U f a₀) |
| 55 | |
| 56 | /-- The physical time derivative, with the literal product-rule expression. -/ |
| 57 | def velocityDerivative (f : C(Icc (0 : ℝ) T,E)) (a₀ : V) : C(Icc (0 : ℝ) T,E) := |
| 58 | multiplier Q₁ (coordinates T hT Q Q₁ c hc hQ U f a₀) + |
| 59 | multiplier Q (coordinateDerivative T hT Q Q₁ c hc hQ U f a₀) |
| 60 | |
| 61 | /-- The constructed coordinate attains the prescribed initial datum. -/ |
| 62 | @[simp] theorem coordinates_initial (f : C(Icc (0 : ℝ) T,E)) (a₀ : V) : |
| 63 | coordinates T hT Q Q₁ c hc hQ U f a₀ ⟨0,le_rfl,hT⟩ = a₀ := |
| 64 | U.solution_initial _ _ |
| 65 | |
| 66 | /-- The actual initial physical velocity is `Q(0)a₀`. -/ |
| 67 | @[simp] theorem velocity_initial (f : C(Icc (0 : ℝ) T,E)) (a₀ : V) : |
| 68 | velocity T hT Q Q₁ c hc hQ U f a₀ ⟨0,le_rfl,hT⟩ = Q ⟨0,le_rfl,hT⟩ a₀ := by |
| 69 | change Q ⟨0,le_rfl,hT⟩ (coordinates T hT Q Q₁ c hc hQ U f a₀ ⟨0,le_rfl,hT⟩) = _ |
| 70 | rw [coordinates_initial] |
| 71 | |
| 72 | /-- Every-time coordinate differentiability follows from the actual integral, |
| 73 | not from an assumed derivative representative. -/ |
| 74 | theorem coordinates_hasDerivWithinAt (f : C(Icc (0 : ℝ) T,E)) (a₀ : V) (t : Icc (0 : ℝ) T) : |
| 75 | HasDerivWithinAt (extendPath T hT (coordinates T hT Q Q₁ c hc hQ U f a₀)) |
| 76 | (coordinateDerivative T hT Q Q₁ c hc hQ U f a₀ t) (Icc (0 : ℝ) T) t := by |
| 77 | have hd := U.solution_derivative (forcingOperator T Q c hc hQ f) a₀ t |
| 78 | apply hd.congr_of_mem _ t.property |
| 79 | intro s hs |
| 80 | simp only [extendPath, projIcc_of_mem hT hs] |
| 81 | rfl |
| 82 | |
| 83 | /-- The constructed derivative satisfies the literal projected equation (12). -/ |
| 84 | theorem coordinate_equation (f : C(Icc (0 : ℝ) T,E)) (a₀ : V) (t : Icc (0 : ℝ) T) : |
| 85 | gram (Q t) (coordinateDerivative T hT Q Q₁ c hc hQ U f a₀ t) = |
| 86 | (Q t).adjoint (f t - (2 : ℝ) • Q₁ t (coordinates T hT Q Q₁ c hc hQ U f a₀ t)) := by |
| 87 | change gram (Q t) ((-2 : ℝ) • gramInverse (Q t) c hc (hQ t) |
| 88 | ((Q t).adjoint (Q₁ t (coordinates T hT Q Q₁ c hc hQ U f a₀ t))) + |
| 89 | gramInverse (Q t) c hc (hQ t) ((Q t).adjoint (f t))) = _ |
| 90 | rw [map_add, map_smul, gram_inverse_apply, gram_inverse_apply, map_sub, map_smul] |
| 91 | module |
| 92 | |
| 93 | /-- Physical velocity is tangent at every time because it lies in the frame range. -/ |
| 94 | theorem velocity_tangent (m : Icc (0 : ℝ) T → E) |
| 95 | (hTangent : ∀ t v, ⟪m t,Q t v⟫_ℝ = 0) |
| 96 | (f : C(Icc (0 : ℝ) T,E)) (a₀ : V) (t : Icc (0 : ℝ) T) : |
| 97 | ⟪m t,velocity T hT Q Q₁ c hc hQ U f a₀ t⟫_ℝ = 0 := |
| 98 | hTangent t _ |
| 99 | |
| 100 | /-- The physical product-rule expression is its actual every-time derivative. -/ |
| 101 | theorem velocity_hasDerivWithinAt |
| 102 | (hQd : ∀ t : Icc (0 : ℝ) T, |
| 103 | HasDerivWithinAt (extendPath T hT Q) (Q₁ t) (Icc (0 : ℝ) T) t) |
| 104 | (f : C(Icc (0 : ℝ) T,E)) (a₀ : V) (t : Icc (0 : ℝ) T) : |
| 105 | HasDerivWithinAt (extendPath T hT (velocity T hT Q Q₁ c hc hQ U f a₀)) |
| 106 | (velocityDerivative T hT Q Q₁ c hc hQ U f a₀ t) (Icc (0 : ℝ) T) t := by |
| 107 | have hd := (hQd t).clm_apply (coordinates_hasDerivWithinAt T hT Q Q₁ c hc hQ U f a₀ t) |
| 108 | convert hd using 1 |
| 109 | · rfl |
| 110 | · simp only [extendPath, projIcc_of_mem hT t.property] |
| 111 | rfl |
| 112 | |
| 113 | /-- The literal normal pressure coefficient in source equation (11). -/ |
| 114 | def pressureCoefficient (M : Icc (0 : ℝ) T → E →L[ℝ] E) (m : Icc (0 : ℝ) T → E) |
| 115 | (f : C(Icc (0 : ℝ) T,E)) (a₀ : V) (t : Icc (0 : ℝ) T) : ℝ := |
| 116 | (⟪m t,f t⟫_ℝ - 2*⟪m t,M t (velocity T hT Q Q₁ c hc hQ U f a₀ t)⟫_ℝ) / ‖m t‖^2 |
| 117 | |
| 118 | /-- The actual forward velocity and explicit normal pressure residual satisfy |
| 119 | source equation (11) at every time. -/ |
| 120 | theorem velocity_balance (M : Icc (0 : ℝ) T → E →L[ℝ] E) (m : Icc (0 : ℝ) T → E) |
| 121 | (hm : ∀ t, m t ≠ 0) (hTangent : ∀ t v, ⟪m t,Q t v⟫_ℝ = 0) |
| 122 | (hRange : ∀ t η, ⟪m t,η⟫_ℝ = 0 → ∃ v, Q t v = η) |
| 123 | (hflow : ∀ t, Q₁ t = (M t).comp (Q t)) |
| 124 | (f : C(Icc (0 : ℝ) T,E)) (a₀ : V) (t : Icc (0 : ℝ) T) : |
| 125 | velocityDerivative T hT Q Q₁ c hc hQ U f a₀ t + |
| 126 | M t (velocity T hT Q Q₁ c hc hQ U f a₀ t) + |
| 127 | pressureCoefficient T hT Q Q₁ c hc hQ U M m f a₀ t • m t = f t := |
| 128 | physical_velocity_balance (Q t) (Q₁ t) (M t) (m t) (hm t) (hTangent t) (hRange t) |
| 129 | (hflow t) _ _ (f t) (coordinate_equation T hT Q Q₁ c hc hQ U f a₀ t) |
| 130 | |
| 131 | /-- The full coordinate solution depends bounded-linearly on initial datum and forcing. -/ |
| 132 | def coordinatesOperator : (V × C(Icc (0 : ℝ) T,E)) →L[ℝ] C(Icc (0 : ℝ) T,V) := |
| 133 | U.initialOperator.comp (ContinuousLinearMap.fst ℝ V C(Icc (0 : ℝ) T,E)) + |
| 134 | U.forcingOperator.comp ((forcingOperator T Q c hc hQ).comp |
| 135 | (ContinuousLinearMap.snd ℝ V C(Icc (0 : ℝ) T,E))) |
| 136 | |
| 137 | /-- The bounded linear data map is exactly the constructed coordinate path. -/ |
| 138 | theorem coordinatesOperator_apply (f : C(Icc (0 : ℝ) T,E)) (a₀ : V) : |
| 139 | coordinatesOperator T hT Q Q₁ c hc hQ U (a₀,f) = coordinates T hT Q Q₁ c hc hQ U f a₀ := |
| 140 | (U.solution_eq_operators _ _).symm |
| 141 | |
| 142 | /-- The physical forward inverse is an actual bounded linear map in its data. -/ |
| 143 | def velocityOperator : (V × C(Icc (0 : ℝ) T,E)) →L[ℝ] C(Icc (0 : ℝ) T,E) := |
| 144 | (multiplier Q).comp (coordinatesOperator T hT Q Q₁ c hc hQ U) |
| 145 | |
| 146 | /-- Zero data give the zero path; this is the pointwise support-preservation mechanism. -/ |
| 147 | theorem velocity_zero : velocity T hT Q Q₁ c hc hQ U 0 0 = 0 := by |
| 148 | have hz := (coordinatesOperator T hT Q Q₁ c hc hQ U).map_zero |
| 149 | rw [show (0 : V × C(Icc (0 : ℝ) T,E)) = (0,0) from rfl, coordinatesOperator_apply] at hz |
| 150 | change multiplier Q (coordinates T hT Q Q₁ c hc hQ U 0 0) = 0 |
| 151 | rw [hz, map_zero] |
| 152 | |
| 153 | end EulerTransverseForwardInverse |