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.TransverseEndpointVelocity |
| 2 | import Euler.TransverseActivationTrial |
| 3 | |
| 4 | /-! |
| 5 | Source (26) for the actual stationary transverse solution. The endpoint |
| 6 | matrix is the constructed Dirichlet-to-Neumann operator and its norm is |
| 7 | derived from the explicit moving-projection trial. The selected velocity is |
| 8 | the genuine derivative η_t minus Mη, not a separately prescribed matrix output. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | |
| 14 | namespace EulerTransverseActivationSelection |
| 15 | |
| 16 | open MeasureTheory Set InnerProductSpace ContinuousLinearMap |
| 17 | EulerTimeLp EulerInitialTimePrimitive EulerVolterraConvolution |
| 18 | EulerTransverseEndpointEnergy EulerTransverseEndpointVelocity |
| 19 | EulerTransverseActivationTrial EulerDNSelection |
| 20 | |
| 21 | variable {U E V : Type*} |
| 22 | [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 23 | [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] |
| 24 | [NormedAddCommGroup V] [InnerProductSpace ℝ V] [CompleteSpace V] |
| 25 | |
| 26 | def activationConstant (CM CH : ℝ) : ℝ := 4 + 64 * CM ^ 2 + 2 * CH |
| 27 | |
| 28 | /-- The actual terminal matrix after subtracting the prescribed shear. -/ |
| 29 | def terminalPerturbation (T : ℝ) (hT : 0 ≤ T) (R : V →ₗᵢ[ℝ] E) |
| 30 | (M : C(Icc (0 : ℝ) T, E →L[ℝ] E)) (p q : V) (h : ℝ) : V →L[ℝ] V := |
| 31 | R.toContinuousLinearMap.adjoint.comp |
| 32 | ((M ⟨T, hT, le_rfl⟩).comp R.toContinuousLinearMap) - h • rankOne ℝ q p |
| 33 | |
| 34 | /-- Differentiating the actual moving tangency constraint makes η_t−Mη tangent. -/ |
| 35 | theorem corrected_velocity_tangent (T : ℝ) (hT : 0 < T) |
| 36 | (m m₁ : C(Icc (0 : ℝ) T, E)) |
| 37 | (M : C(Icc (0 : ℝ) T, E →L[ℝ] E)) |
| 38 | (hdm : ∀ t : Icc (0 : ℝ) T, |
| 39 | HasDerivWithinAt (extendPath T hT.le m) (m₁ t) (Icc (0 : ℝ) T) t) |
| 40 | (hRay : ∀ t, m₁ t = -(M t).adjoint (m t)) |
| 41 | (η v : ℝ → E) |
| 42 | (hdη : ∀ t : Icc (0 : ℝ) T, HasDerivWithinAt η (v t) (Icc (0 : ℝ) T) t) |
| 43 | (htan : ∀ t : Icc (0 : ℝ) T, ⟪m t, η t⟫_ℝ = 0) |
| 44 | (t : Icc (0 : ℝ) T) : ⟪m t, v t - M t (η t)⟫_ℝ = 0 := by |
| 45 | have hd := (hdm t).inner ℝ (hdη t) |
| 46 | have hz : HasDerivWithinAt (fun s => ⟪extendPath T hT.le m s, η s⟫_ℝ) |
| 47 | (0 : ℝ) (Icc (0 : ℝ) T) t := by |
| 48 | apply (hasDerivWithinAt_const (t : ℝ) (Icc (0 : ℝ) T) (0 : ℝ)).congr_of_mem _ t.property |
| 49 | intro s hs |
| 50 | simpa only [extendPath, projIcc_of_mem hT.le hs] using htan ⟨s, hs⟩ |
| 51 | have he := (hd.derivWithin ((uniqueDiffOn_Icc hT) t t.property)).symm.trans |
| 52 | (hz.derivWithin ((uniqueDiffOn_Icc hT) t t.property)) |
| 53 | simp only [extendPath, projIcc_of_mem hT.le t.property, hRay, |
| 54 | inner_neg_left, adjoint_inner_left, inner_sub_right] at he ⊢ |
| 55 | linarith only [he] |
| 56 | |
| 57 | /-- The activation choice is attached to the actual weak inverse, its continuous |
| 58 | physical derivative, and the derived endpoint energy bound. -/ |
| 59 | theorem select_actual_activation |
| 60 | (T : ℝ) (hT : 0 < T) |
| 61 | (Q Q₁ : C(Icc (0 : ℝ) T, U →L[ℝ] E)) |
| 62 | (c : ℝ) (hc : 0 < c) (hQ : ∀ t x, c * ‖x‖ ^ 2 ≤ ‖Q t x‖ ^ 2) |
| 63 | (hdQ : ∀ t : Icc (0 : ℝ) T, |
| 64 | HasDerivWithinAt (extendPath T hT.le Q) (Q₁ t) (Icc (0 : ℝ) T) t) |
| 65 | (m m₁ : C(Icc (0 : ℝ) T, E)) (hne : ∀ t, m t ≠ 0) |
| 66 | (hdm : ∀ t : Icc (0 : ℝ) T, |
| 67 | HasDerivWithinAt (extendPath T hT.le m) (m₁ t) (Icc (0 : ℝ) T) t) |
| 68 | (hm : ∀ t x, ⟪m t, Q t x⟫_ℝ = 0) |
| 69 | (hRange : ∀ t η, ⟪m t, η⟫_ℝ = 0 → ∃ x : U, Q t x = η) |
| 70 | (R : V →ₗᵢ[ℝ] E) (hR : ∀ Y, ⟪m ⟨T, hT.le, le_rfl⟩, R Y⟫_ℝ = 0) |
| 71 | (H : C(Icc (0 : ℝ) T, E →L[ℝ] E)) (hHs : ∀ t, (H t).IsSymmetric) |
| 72 | (K : ℝ) (hK : 0 ≤ K) (hH : ∀ t x, ⟪H t x, x⟫_ℝ ≤ K * ‖x‖ ^ 2) |
| 73 | (hsmall : K * (T ^ 2 / 2) ≤ 1 / 2) |
| 74 | (M : C(Icc (0 : ℝ) T, E →L[ℝ] E)) |
| 75 | (hRay : ∀ t, m₁ t = -(M t).adjoint (m t)) |
| 76 | (h CM CH ε : ℝ) (hh : 0 < h) (hLayer : 1 ≤ h * T) |
| 77 | (hCM : 0 ≤ CM) (hCH : 0 ≤ CH) (hε : 0 ≤ ε) |
| 78 | (hM : ∀ t, ‖M t‖ ≤ CM * h) (hHnorm : ‖H‖ ≤ CH * h ^ 2) |
| 79 | (p q : V) (hp : ‖p‖ = 1) (hq : ‖q‖ = 1) (hpq : ⟪p, q⟫_ℝ = 0) |
| 80 | (hεsmall : 16 * (activationConstant CM CH + 1) * ε ≤ 1) |
| 81 | (hB : ‖terminalPerturbation T hT.le R M p q h‖ ≤ ε * h) |
| 82 | (hBpp : ⟪terminalPerturbation T hT.le R M p q h p, p⟫_ℝ < 0) : |
| 83 | ∃ Y : V, |
| 84 | let L := activationTrial T hT.le m m₁ hne R.toContinuousLinearMap h |
| 85 | let u := endpointDerivative T hT.le (fun t => m t) H K hK hH hsmall L Y |
| 86 | let η := initialRealPrimitive T u |
| 87 | let v := physicalVelocityPath T hT.le Q Q₁ c hc hQ H u |
| 88 | let w := fun t => v t - extendPath T hT.le M t (η t) |
| 89 | η 0 = 0 ∧ η T = R Y ∧ Continuous v ∧ |
| 90 | (∀ t : Icc (0 : ℝ) T, HasDerivWithinAt η (v t) (Icc (0 : ℝ) T) t) ∧ |
| 91 | (∀ t : Icc (0 : ℝ) T, ⟪m t, w t⟫_ℝ = 0) ∧ |
| 92 | ⟪w T, R q⟫_ℝ = 1 ∧ |
| 93 | -8 * (activationConstant CM CH + 1) ≤ ⟪w T, R p⟫_ℝ ∧ |
| 94 | ⟪w T, R p⟫_ℝ ≤ 0 ∧ |
| 95 | ‖Y‖ ≤ 8 * (activationConstant CM CH + 1) / h := by |
| 96 | let L := activationTrial T hT.le m m₁ hne R.toContinuousLinearMap h |
| 97 | let Λ := dirichletToNeumann T hT.le (fun t => m t) H K hK hH hsmall L |
| 98 | let B := terminalPerturbation T hT.le R M p q h |
| 99 | have hΛ : Λ.IsPositive := |
| 100 | dirichletToNeumann_positive T hT.le (fun t => m t) H K hK hH hsmall hHs L |
| 101 | have hΛnorm : ‖Λ‖ ≤ activationConstant CM CH * h := |
| 102 | activation_endpoint_norm T hT.le m m₁ hne R.toContinuousLinearMap hdm h hh hLayer |
| 103 | R.norm_toContinuousLinearMap_le CM CH hCM hCH M hRay hM H hHs hHnorm K hK hH hsmall |
| 104 | have hC : 1 ≤ activationConstant CM CH := by |
| 105 | unfold activationConstant |
| 106 | nlinarith only [sq_nonneg CM, hCH] |
| 107 | obtain ⟨yp, yq, hwq, hwpl, hwpu, hY⟩ := |
| 108 | select_endpoint_hilbert Λ B p q (activationConstant CM CH) ε h hΛ hp hq hpq |
| 109 | hC hε hh hεsmall hΛnorm hB hBpp |
| 110 | let Y := yp • p + yq • q |
| 111 | let u := endpointDerivative T hT.le (fun t => m t) H K hK hH hsmall L Y |
| 112 | let η := initialRealPrimitive T u |
| 113 | let v := physicalVelocityPath T hT.le Q Q₁ c hc hQ H u |
| 114 | let w := fun t => v t - extendPath T hT.le M t (η t) |
| 115 | have hLt : ∀ Z t, ⟪m t, initialPrimitive T hT.le (L Z) t⟫_ℝ = 0 := |
| 116 | activationTrial_tangent T hT.le m m₁ hne R.toContinuousLinearMap hdm h |
| 117 | have hLT : ∀ Z, initialPrimitive T hT.le (L Z) ⟨T, hT.le, le_rfl⟩ = R Z := |
| 118 | activationTrial_terminal T hT.le m m₁ hne R.toContinuousLinearMap hdm h hLayer hR |
| 119 | have hηT : η T = R Y := |
| 120 | (endpointDisplacement_terminal T hT.le (fun t => m t) H K hK hH hsmall L Y).trans (hLT Y) |
| 121 | have hdη : ∀ t : Icc (0 : ℝ) T, HasDerivWithinAt η (v t) (Icc (0 : ℝ) T) t := |
| 122 | endpointDisplacement_hasDerivWithinAt T hT.le Q Q₁ c hc hQ H hdQ hT |
| 123 | (fun t => m t) hm hRange K hK hH hsmall L hLt Y |
| 124 | have hηtan : ∀ t : Icc (0 : ℝ) T, ⟪m t, η t⟫_ℝ = 0 := |
| 125 | endpointDisplacement_tangent T hT.le (fun t => m t) H K hK hH hsmall L hLt Y |
| 126 | have hvt : R.toContinuousLinearMap.adjoint (v T) = Λ Y := |
| 127 | (dirichletToNeumann_eq_terminal_velocity T hT.le Q Q₁ c hc hQ H hdQ hT |
| 128 | (fun t => m t) hm hRange K hK hH hsmall L R.toContinuousLinearMap hLt hLT Y).symm |
| 129 | have hwt : R.toContinuousLinearMap.adjoint (w T) = |
| 130 | Λ Y - B Y - (h * ⟪p, Y⟫_ℝ) • q := by |
| 131 | dsimp only [w] |
| 132 | rw [map_sub, hvt, hηT] |
| 133 | simp only [B, terminalPerturbation, sub_apply, comp_apply, smul_apply, rankOne_apply, |
| 134 | smul_smul, extendPath, projIcc_of_mem hT.le (show T ∈ Icc (0 : ℝ) T from ⟨hT.le, le_rfl⟩)] |
| 135 | abel |
| 136 | have hwcoord (z : V) : ⟪w T, R z⟫_ℝ = |
| 137 | ⟪Λ Y - B Y - (h * ⟪p, Y⟫_ℝ) • q, z⟫_ℝ := by |
| 138 | change ⟪w T, R.toContinuousLinearMap z⟫_ℝ = _ |
| 139 | rw [← R.toContinuousLinearMap.adjoint_inner_left, hwt] |
| 140 | refine ⟨Y, initialRealPrimitive_initial T u, hηT, |
| 141 | physicalVelocityPath_continuous T hT.le Q Q₁ c hc hQ H u, hdη, ?_, ?_, ?_, ?_, hY⟩ |
| 142 | · intro t |
| 143 | simpa only [w, extendPath, projIcc_of_mem hT.le t.property] using |
| 144 | corrected_velocity_tangent T hT m m₁ M hdm hRay η v hdη hηtan t |
| 145 | · exact (hwcoord q).trans hwq |
| 146 | · exact (hwcoord p).symm ▸ hwpl |
| 147 | · exact (hwcoord p).symm ▸ hwpu |
| 148 | |
| 149 | end EulerTransverseActivationSelection |