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.TransverseVariationalOperator |
| 2 | |
| 3 | /-! |
| 4 | # The genuine transverse Gram inverse |
| 5 | |
| 6 | The inverse of `Q*Q`, for `Q = F R⊥`, is constructed from the lower frame |
| 7 | bound. Its inverse identities and derivative follow from the already proved |
| 8 | coercive operator inverse, not from an assumed matrix inverse. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | namespace EulerTransverseGramInverse |
| 14 | |
| 15 | open InnerProductSpace ContinuousLinearMap EulerCoerciveProjection EulerInverseRegularity |
| 16 | |
| 17 | variable {U E : Type*} |
| 18 | [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 19 | [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] |
| 20 | |
| 21 | /-- Taking an adjoint is an actual bounded real-linear map. -/ |
| 22 | def realAdjoint : (U →L[ℝ] E) →L[ℝ] (E →L[ℝ] U) := |
| 23 | ({ toFun := fun Q => Q.adjoint |
| 24 | map_add' := fun A B => map_add ContinuousLinearMap.adjoint A B |
| 25 | map_smul' := fun a A => by simp } : |
| 26 | (U →L[ℝ] E) →ₗ[ℝ] (E →L[ℝ] U)).mkContinuous 1 |
| 27 | (fun Q => by |
| 28 | change ‖Q.adjoint‖ ≤ (1 : ℝ) * ‖Q‖ |
| 29 | rw [LinearIsometryEquiv.norm_map, one_mul]) |
| 30 | |
| 31 | /-- The transverse Gram matrix as a genuine bounded operator. -/ |
| 32 | def gram (Q : U →L[ℝ] E) : U →L[ℝ] U := Q.adjoint.comp Q |
| 33 | |
| 34 | /-- The Gram quadratic form is precisely the squared physical-frame norm. -/ |
| 35 | theorem gram_inner (Q : U →L[ℝ] E) (x : U) : |
| 36 | ⟪gram Q x, x⟫_ℝ = ‖Q x‖ ^ 2 := by |
| 37 | simp only [gram, comp_apply, adjoint_inner_left, real_inner_self_eq_norm_sq] |
| 38 | |
| 39 | /-- A lower frame bound is a coercivity bound for the actual Gram matrix. -/ |
| 40 | theorem gram_coercive (Q : U →L[ℝ] E) (c : ℝ) |
| 41 | (hQ : ∀ x, c * ‖x‖ ^ 2 ≤ ‖Q x‖ ^ 2) (x : U) : |
| 42 | c * ‖x‖ ^ 2 ≤ ⟪gram Q x, x⟫_ℝ := by |
| 43 | rw [gram_inner] |
| 44 | exact hQ x |
| 45 | |
| 46 | /-- The Gram inverse is constructed by the actual coercive solver. -/ |
| 47 | def gramInverse (Q : U →L[ℝ] E) (c : ℝ) (hc : 0 < c) |
| 48 | (hQ : ∀ x, c * ‖x‖ ^ 2 ≤ ‖Q x‖ ^ 2) : U →L[ℝ] U := |
| 49 | coerciveInverse (gram Q) c hc (gram_coercive Q c hQ) |
| 50 | |
| 51 | /-- The constructed Gram inverse is a right inverse. -/ |
| 52 | theorem gram_inverse_apply (Q : U →L[ℝ] E) (c : ℝ) (hc : 0 < c) |
| 53 | (hQ : ∀ x, c * ‖x‖ ^ 2 ≤ ‖Q x‖ ^ 2) (x : U) : |
| 54 | gram Q (gramInverse Q c hc hQ x) = x := |
| 55 | operator_inverse_apply (gram Q) c hc (gram_coercive Q c hQ) x |
| 56 | |
| 57 | /-- The constructed Gram inverse is a left inverse. -/ |
| 58 | theorem inverse_gram_apply (Q : U →L[ℝ] E) (c : ℝ) (hc : 0 < c) |
| 59 | (hQ : ∀ x, c * ‖x‖ ^ 2 ≤ ‖Q x‖ ^ 2) (x : U) : |
| 60 | gramInverse Q c hc hQ (gram Q x) = x := |
| 61 | inverse_operator_apply (gram Q) c hc (gram_coercive Q c hQ) x |
| 62 | |
| 63 | /-- The inverse norm retains the quantitative lower frame bound. -/ |
| 64 | theorem gramInverse_norm (Q : U →L[ℝ] E) (c : ℝ) (hc : 0 < c) |
| 65 | (hQ : ∀ x, c * ‖x‖ ^ 2 ≤ ‖Q x‖ ^ 2) : |
| 66 | ‖gramInverse Q c hc hQ‖ ≤ c⁻¹ := |
| 67 | coerciveInverse_norm_le (gram Q) c hc (gram_coercive Q c hQ) |
| 68 | |
| 69 | /-- A canonical bounded left inverse for the physical transverse frame. -/ |
| 70 | def frameLeftInverse (Q : U →L[ℝ] E) (c : ℝ) (hc : 0 < c) |
| 71 | (hQ : ∀ x, c * ‖x‖ ^ 2 ≤ ‖Q x‖ ^ 2) : E →L[ℝ] U := |
| 72 | (gramInverse Q c hc hQ).comp Q.adjoint |
| 73 | |
| 74 | /-- The canonical left inverse recovers every transverse coordinate. -/ |
| 75 | theorem frameLeftInverse_apply (Q : U →L[ℝ] E) (c : ℝ) (hc : 0 < c) |
| 76 | (hQ : ∀ x, c * ‖x‖ ^ 2 ≤ ‖Q x‖ ^ 2) (x : U) : |
| 77 | frameLeftInverse Q c hc hQ (Q x) = x := |
| 78 | inverse_gram_apply Q c hc hQ x |
| 79 | |
| 80 | /-- Differentiating the actual adjoint commutes with the real derivative. -/ |
| 81 | theorem hasDerivAt_adjoint (Q : ℝ → U →L[ℝ] E) (Q₁ : U →L[ℝ] E) (t : ℝ) |
| 82 | (hQ : HasDerivAt Q Q₁ t) : |
| 83 | HasDerivAt (fun s => (Q s).adjoint) Q₁.adjoint t := by |
| 84 | exact ((realAdjoint (U := U) (E := E)).hasFDerivAt).comp_hasDerivAt t hQ |
| 85 | |
| 86 | /-- The Gram derivative is the literal product rule. -/ |
| 87 | theorem hasDerivAt_gram (Q : ℝ → U →L[ℝ] E) (Q₁ : U →L[ℝ] E) (t : ℝ) |
| 88 | (hQ : HasDerivAt Q Q₁ t) : |
| 89 | HasDerivAt (fun s => gram (Q s)) |
| 90 | (Q₁.adjoint.comp (Q t) + (Q t).adjoint.comp Q₁) t := |
| 91 | (hasDerivAt_adjoint Q Q₁ t hQ).clm_comp hQ |
| 92 | |
| 93 | /-- The constructed Gram inverse has the actual inverse derivative. -/ |
| 94 | theorem hasDerivAt_gramInverse (Q : ℝ → U →L[ℝ] E) (c : ℝ) (hc : 0 < c) |
| 95 | (hQ : ∀ s x, c * ‖x‖ ^ 2 ≤ ‖Q s x‖ ^ 2) |
| 96 | (Q₁ : U →L[ℝ] E) (t : ℝ) (hd : HasDerivAt Q Q₁ t) : |
| 97 | HasDerivAt (fun s => gramInverse (Q s) c hc (hQ s)) |
| 98 | (-(gramInverse (Q t) c hc (hQ t)).comp |
| 99 | ((Q₁.adjoint.comp (Q t) + (Q t).adjoint.comp Q₁).comp |
| 100 | (gramInverse (Q t) c hc (hQ t)))) t := |
| 101 | hasDerivAt_coerciveInverse (fun s => gram (Q s)) c hc |
| 102 | (fun s => gram_coercive (Q s) c (hQ s)) t _ (hasDerivAt_gram Q Q₁ t hd) |
| 103 | |
| 104 | open MeasureTheory Set EulerTimeLp EulerVolterraConvolution |
| 105 | |
| 106 | /-- The adjoint of a continuous coefficient path is a continuous coefficient path. -/ |
| 107 | def adjointPath (T : ℝ) (Q : C(Icc (0 : ℝ) T, U →L[ℝ] E)) : |
| 108 | C(Icc (0 : ℝ) T, E →L[ℝ] U) := |
| 109 | ⟨fun t => (Q t).adjoint, (realAdjoint (U := U) (E := E)).continuous.comp Q.continuous⟩ |
| 110 | |
| 111 | /-- The actual Bochner multiplier adjoint is pointwise transposition of the coefficient. -/ |
| 112 | theorem timeMultiplier_adjoint (T : ℝ) (hT : 0 ≤ T) |
| 113 | (Q : C(Icc (0 : ℝ) T, U →L[ℝ] E)) : |
| 114 | (timeMultiplier T hT Q).adjoint = timeMultiplier T hT (adjointPath T Q) := by |
| 115 | apply ContinuousLinearMap.ext |
| 116 | intro u |
| 117 | apply ext_inner_right ℝ |
| 118 | intro v |
| 119 | rw [adjoint_inner_left, L2.inner_def, L2.inner_def] |
| 120 | apply integral_congr_ae |
| 121 | filter_upwards [timeMultiplier_ae T hT Q v, |
| 122 | timeMultiplier_ae T hT (adjointPath T Q) u] with t hQ hQT |
| 123 | rw [hQ, hQT] |
| 124 | exact (adjoint_inner_left (Q (projIcc 0 T hT t)) (v t) (u t)).symm |
| 125 | |
| 126 | end EulerTransverseGramInverse |