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.TransverseFixedEndpoint |
| 2 | import Euler.TransverseParameterRegularity |
| 3 | |
| 4 | /-! |
| 5 | Actual parameter regularity of the nonzero-terminal transverse inverse. |
| 6 | The initial-zero energy and fixed-coordinate correction depend smoothly on |
| 7 | the coefficient paths. An explicit affine coordinate trial implements the |
| 8 | same terminal coordinate at neighboring labels. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | |
| 14 | namespace EulerTransverseEndpointParameter |
| 15 | |
| 16 | open Set InnerProductSpace ContinuousLinearMap |
| 17 | EulerTimeLp EulerTerminalTimePrimitive EulerInitialTimePrimitive |
| 18 | EulerVolterraConvolution EulerTimeH1OperatorProduct EulerTimeH1FrameTransport |
| 19 | EulerTimeLpCoefficientMap EulerTransverseVariationalInverse EulerTransverseGramInverse |
| 20 | EulerTransverseFixedSpaceInverse EulerTransverseParameterRegularity |
| 21 | EulerTransverseEndpointEnergy EulerTransverseFixedEndpoint |
| 22 | EulerCoerciveProjection EulerHilbertCoerciveParameter |
| 23 | open scoped ContDiff |
| 24 | |
| 25 | variable {P U E V : Type*} |
| 26 | [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 27 | [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 28 | [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] |
| 29 | [NormedAddCommGroup V] [InnerProductSpace ℝ V] |
| 30 | |
| 31 | variable (T : ℝ) (hT : 0 ≤ T) |
| 32 | (Q Q₁ : P → C(Icc (0 : ℝ) T, U →L[ℝ] E)) |
| 33 | (H : P → C(Icc (0 : ℝ) T, E →L[ℝ] E)) |
| 34 | {n : ℕ∞ω} |
| 35 | |
| 36 | theorem contDiff_initialEnergy (hH : ContDiff ℝ n H) : |
| 37 | ContDiff ℝ n (fun x => energyOperator T hT (H x)) := |
| 38 | contDiff_const.sub |
| 39 | (contDiff_const.clm_comp ((contDiff_timeMultiplier T hT H hH).clm_comp contDiff_const)) |
| 40 | |
| 41 | omit [CompleteSpace U] [CompleteSpace E] in |
| 42 | theorem contDiff_initialProductDerivative (hQ : ContDiff ℝ n Q) (hQ₁ : ContDiff ℝ n Q₁) : |
| 43 | ContDiff ℝ n (fun x => initialProductDerivative T hT (Q x) (Q₁ x)) := |
| 44 | ((contDiff_timeMultiplier T hT Q₁ hQ₁).clm_comp contDiff_const).add |
| 45 | (contDiff_timeMultiplier T hT Q hQ) |
| 46 | |
| 47 | variable (c : ℝ) (hc : 0 < c) (hLower : ∀ x t v, c * ‖v‖ ^ 2 ≤ ‖Q x t v‖ ^ 2) |
| 48 | (hd : ∀ x (t : Icc (0 : ℝ) T), |
| 49 | HasDerivWithinAt (extendPath T hT (Q x)) (Q₁ x t) (Icc (0 : ℝ) T) t) |
| 50 | (K : ℝ) (hK : 0 ≤ K) (hPotential : ∀ x t v, ⟪H x t v, v⟫_ℝ ≤ K * ‖v‖ ^ 2) |
| 51 | (hsmall : K * (T ^ 2 / 2) ≤ 1 / 2) |
| 52 | |
| 53 | theorem contDiff_fixedEndpointCorrection |
| 54 | (hQ : ContDiff ℝ n Q) (hQ₁ : ContDiff ℝ n Q₁) (hH : ContDiff ℝ n H) |
| 55 | (L : P → V →L[ℝ] TimeLp T E) (hL : ContDiff ℝ n L) : |
| 56 | ContDiff ℝ n (fun x => fixedEndpointCorrection T hT (Q x) (Q₁ x) (H x) |
| 57 | c hc (hLower x) (hd x) K hK (hPotential x) hsmall (L x)) := by |
| 58 | have hA := contDiff_fixedFrameOperator T hT Q Q₁ H hQ hQ₁ hH |
| 59 | have hi := contDiff_coerciveInverse_variable |
| 60 | (fun x => fixedFrameOperator T hT (Q x) (Q₁ x) (H x)) |
| 61 | (fun x => fixedCoercivity T (Q x) (Q₁ x) c) |
| 62 | (fun x => fixedCoercivity_pos T hT (Q x) (Q₁ x) c hc) |
| 63 | (fun x => fixedFrameOperator_coercive T hT (Q x) (Q₁ x) (H x) |
| 64 | c hc (hLower x) (hd x) K hK (hPotential x) hsmall) hA |
| 65 | have hD := contDiff_fixedFrameDerivative T hT Q Q₁ hQ hQ₁ |
| 66 | have hE := contDiff_initialEnergy T hT H hH |
| 67 | exact hi.clm_comp ((contDiff_adjoint hD).clm_comp (hE.clm_comp hL)) |
| 68 | |
| 69 | theorem contDiff_fixedEndpointDerivative |
| 70 | (hQ : ContDiff ℝ n Q) (hQ₁ : ContDiff ℝ n Q₁) (hH : ContDiff ℝ n H) |
| 71 | (L : P → V →L[ℝ] TimeLp T E) (hL : ContDiff ℝ n L) : |
| 72 | ContDiff ℝ n (fun x => fixedEndpointDerivative T hT (Q x) (Q₁ x) (H x) |
| 73 | c hc (hLower x) (hd x) K hK (hPotential x) hsmall (L x)) := |
| 74 | hL.sub ((contDiff_fixedFrameDerivative T hT Q Q₁ hQ hQ₁).clm_comp |
| 75 | (contDiff_fixedEndpointCorrection T hT Q Q₁ H c hc hLower hd K hK hPotential hsmall |
| 76 | hQ hQ₁ hH L hL)) |
| 77 | |
| 78 | include c hc hLower hd in |
| 79 | /-- The physical endpoint solution inherits the proved parameter regularity. -/ |
| 80 | theorem contDiff_endpointDerivative |
| 81 | (hQ : ContDiff ℝ n Q) (hQ₁ : ContDiff ℝ n Q₁) (hH : ContDiff ℝ n H) |
| 82 | (L : P → V →L[ℝ] TimeLp T E) (hL : ContDiff ℝ n L) |
| 83 | (m : P → Icc (0 : ℝ) T → E) (hm : ∀ x t v, ⟪m x t, Q x t v⟫_ℝ = 0) |
| 84 | (hRange : ∀ x t η, ⟪m x t, η⟫_ℝ = 0 → ∃ v : U, Q x t v = η) : |
| 85 | ContDiff ℝ n (fun x => endpointDerivative T hT (m x) (H x) |
| 86 | K hK (hPotential x) hsmall (L x)) := by |
| 87 | have he : (fun x => endpointDerivative T hT (m x) (H x) |
| 88 | K hK (hPotential x) hsmall (L x)) = |
| 89 | (fun x => fixedEndpointDerivative T hT (Q x) (Q₁ x) (H x) |
| 90 | c hc (hLower x) (hd x) K hK (hPotential x) hsmall (L x)) := by |
| 91 | funext x |
| 92 | exact (fixedEndpointDerivative_eq_endpoint T hT (Q x) (Q₁ x) (H x) |
| 93 | c hc (hLower x) (hd x) K hK (hPotential x) hsmall (m x) (hm x) (hRange x) (L x)).symm |
| 94 | rw [he] |
| 95 | exact contDiff_fixedEndpointDerivative T hT Q Q₁ H c hc hLower hd K hK hPotential hsmall |
| 96 | hQ hQ₁ hH L hL |
| 97 | |
| 98 | section AffineTrial |
| 99 | |
| 100 | variable (A A₁ : C(Icc (0 : ℝ) T, U →L[ℝ] E)) |
| 101 | |
| 102 | /-- The exact derivative of `(t/T) Q(t) ξT`. -/ |
| 103 | def affineTrial : U →L[ℝ] TimeLp T E := |
| 104 | (initialProductDerivative T hT A A₁).comp |
| 105 | ((constantFieldOperator T hT).comp (T⁻¹ • ContinuousLinearMap.id ℝ U)) |
| 106 | |
| 107 | theorem affineTrial_primitive |
| 108 | (hA : ∀ t : Icc (0 : ℝ) T, |
| 109 | HasDerivWithinAt (extendPath T hT A) (A₁ t) (Icc (0 : ℝ) T) t) |
| 110 | (ξT : U) (t : Icc (0 : ℝ) T) : |
| 111 | initialPrimitive T hT (affineTrial T hT A A₁ ξT) t = |
| 112 | A t (((t : ℝ) / T) • ξT) := by |
| 113 | change initialPrimitive T hT |
| 114 | (initialProductDerivative T hT A A₁ (constantFieldOperator T hT (T⁻¹ • ξT))) t = _ |
| 115 | rw [initialPrimitive_initialProductDerivative T hT A A₁ hA, |
| 116 | initialPrimitive_constantFieldOperator, smul_smul, div_eq_mul_inv] |
| 117 | |
| 118 | theorem affineTrial_terminal (hTpos : 0 < T) |
| 119 | (hA : ∀ t : Icc (0 : ℝ) T, |
| 120 | HasDerivWithinAt (extendPath T hT A) (A₁ t) (Icc (0 : ℝ) T) t) |
| 121 | (ξT : U) : |
| 122 | initialPrimitive T hT (affineTrial T hT A A₁ ξT) ⟨T, hT, le_rfl⟩ = |
| 123 | A ⟨T, hT, le_rfl⟩ ξT := by |
| 124 | rw [affineTrial_primitive T hT A A₁ hA, div_self hTpos.ne', one_smul] |
| 125 | |
| 126 | theorem affineTrial_tangent |
| 127 | (hA : ∀ t : Icc (0 : ℝ) T, |
| 128 | HasDerivWithinAt (extendPath T hT A) (A₁ t) (Icc (0 : ℝ) T) t) |
| 129 | (m : Icc (0 : ℝ) T → E) (hm : ∀ t v, ⟪m t, A t v⟫_ℝ = 0) |
| 130 | (ξT : U) (t : Icc (0 : ℝ) T) : |
| 131 | ⟪m t, initialPrimitive T hT (affineTrial T hT A A₁ ξT) t⟫_ℝ = 0 := by |
| 132 | rw [affineTrial_primitive T hT A A₁ hA] |
| 133 | exact hm t _ |
| 134 | |
| 135 | end AffineTrial |
| 136 | |
| 137 | omit [CompleteSpace U] [CompleteSpace E] in |
| 138 | theorem contDiff_affineTrial (hQ : ContDiff ℝ n Q) (hQ₁ : ContDiff ℝ n Q₁) : |
| 139 | ContDiff ℝ n (fun x => affineTrial T hT (Q x) (Q₁ x)) := |
| 140 | (contDiff_initialProductDerivative T hT Q Q₁ hQ hQ₁).clm_comp contDiff_const |
| 141 | |
| 142 | include c hc hLower hd in |
| 143 | /-- Neighboring labels use precisely the same terminal coordinate, and the |
| 144 | resulting physical derivatives have the coefficient parameter regularity. -/ |
| 145 | theorem contDiff_affineEndpoint |
| 146 | (hQ : ContDiff ℝ n Q) (hQ₁ : ContDiff ℝ n Q₁) (hH : ContDiff ℝ n H) |
| 147 | (m : P → Icc (0 : ℝ) T → E) (hm : ∀ x t v, ⟪m x t, Q x t v⟫_ℝ = 0) |
| 148 | (hRange : ∀ x t η, ⟪m x t, η⟫_ℝ = 0 → ∃ v : U, Q x t v = η) (ξT : U) : |
| 149 | ContDiff ℝ n (fun x => endpointDerivative T hT (m x) (H x) |
| 150 | K hK (hPotential x) hsmall (affineTrial T hT (Q x) (Q₁ x)) ξT) := |
| 151 | (contDiff_endpointDerivative T hT Q Q₁ H c hc hLower hd K hK hPotential hsmall |
| 152 | hQ hQ₁ hH (fun x => affineTrial T hT (Q x) (Q₁ x)) |
| 153 | (contDiff_affineTrial T hT Q Q₁ hQ hQ₁) m hm hRange).clm_apply contDiff_const |
| 154 | |
| 155 | end EulerTransverseEndpointParameter |