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.EulerProof |
| 2 | import Mathlib.Analysis.InnerProductSpace.Positive |
| 3 | |
| 4 | /-! |
| 5 | The endpoint Schur complement of a coercive quadratic form. The stationary |
| 6 | extension is constructed by the inverse of the form on the closed zero-trace |
| 7 | space. No stationary extension or Dirichlet-to-Neumann map is an input. |
| 8 | -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace EulerDirichletEndpointReduction |
| 13 | |
| 14 | open InnerProductSpace ContinuousLinearMap EulerCoerciveProjection |
| 15 | |
| 16 | variable {E U : Type*} |
| 17 | [NormedAddCommGroup E] [InnerProductSpace ℝ E] |
| 18 | [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 19 | |
| 20 | variable (S : Submodule ℝ E) [CompleteSpace S] |
| 21 | (A : E →L[ℝ] E) (c : ℝ) (hc : 0 < c) |
| 22 | (hA : ∀ x, c * ‖x‖ ^ 2 ≤ ⟪A x, x⟫_ℝ) |
| 23 | |
| 24 | /-- The zero-trace correction obtained by a genuine coercive inverse. -/ |
| 25 | def correction : E →L[ℝ] S := |
| 26 | (projectedInverse S A c hc hA).comp (S.orthogonalProjectionOnto.comp A) |
| 27 | |
| 28 | /-- Subtract the solved zero-trace correction from any trial extension. -/ |
| 29 | def stationaryPart : E →L[ℝ] E := |
| 30 | ContinuousLinearMap.id ℝ E - S.subtypeL.comp (correction S A c hc hA) |
| 31 | |
| 32 | theorem stationaryPart_eq (x : E) : |
| 33 | stationaryPart S A c hc hA x = x - (correction S A c hc hA x : E) := rfl |
| 34 | |
| 35 | theorem correction_equation (x : E) (v : S) : |
| 36 | ⟪A (correction S A c hc hA x : E), (v : E)⟫_ℝ = ⟪A x, (v : E)⟫_ℝ := by |
| 37 | rw [← projectedOperator_inner S A] |
| 38 | change ⟪projectedOperator S A |
| 39 | (projectedInverse S A c hc hA (S.orthogonalProjectionOnto (A x))), v⟫_ℝ = _ |
| 40 | rw [projectedOperator_inverse_apply] |
| 41 | exact S.inner_orthogonalProjectionOnto_eq_of_mem_right v (A x) |
| 42 | |
| 43 | /-- The constructed extension satisfies all zero-trace stationary equations. -/ |
| 44 | theorem stationaryPart_orthogonal (x : E) (v : S) : |
| 45 | ⟪A (stationaryPart S A c hc hA x), (v : E)⟫_ℝ = 0 := by |
| 46 | rw [stationaryPart_eq, map_sub, inner_sub_left, correction_equation, sub_self] |
| 47 | |
| 48 | theorem stationaryPart_sub_mem (x : E) : stationaryPart S A c hc hA x - x ∈ S := by |
| 49 | rw [stationaryPart_eq] |
| 50 | have he : x - (correction S A c hc hA x : E) - x = |
| 51 | -(correction S A c hc hA x : E) := by abel |
| 52 | rw [he] |
| 53 | exact S.neg_mem (correction S A c hc hA x).property |
| 54 | |
| 55 | theorem stationaryPart_subspace (v : S) : stationaryPart S A c hc hA (v : E) = 0 := by |
| 56 | have hcorr : correction S A c hc hA (v : E) = v := by |
| 57 | change coerciveInverse (projectedOperator S A) c hc |
| 58 | (projectedOperator_coercive S A c hA) (projectedOperator S A v) = v |
| 59 | exact inverse_operator_apply _ _ _ _ v |
| 60 | rw [stationaryPart_eq, hcorr, sub_self] |
| 61 | |
| 62 | /-- The actual extension depends only on the terminal class of the trial. -/ |
| 63 | theorem stationaryPart_eq_of_sub_mem (x y : E) (hxy : x - y ∈ S) : |
| 64 | stationaryPart S A c hc hA x = stationaryPart S A c hc hA y := by |
| 65 | have he := stationaryPart_subspace S A c hc hA ⟨x - y, hxy⟩ |
| 66 | change stationaryPart S A c hc hA (x - y) = 0 at he |
| 67 | rw [map_sub] at he |
| 68 | exact sub_eq_zero.mp he |
| 69 | |
| 70 | /-- Energy splits orthogonally along the stationary extension and zero-trace variations. -/ |
| 71 | theorem energy_split (hAs : A.IsSymmetric) (x : E) (v : S) : |
| 72 | ⟪A (stationaryPart S A c hc hA x + (v : E)), |
| 73 | stationaryPart S A c hc hA x + (v : E)⟫_ℝ = |
| 74 | ⟪A (stationaryPart S A c hc hA x), stationaryPart S A c hc hA x⟫_ℝ + |
| 75 | ⟪A (v : E), (v : E)⟫_ℝ := by |
| 76 | have hz := stationaryPart_orthogonal S A c hc hA x v |
| 77 | have hz' : ⟪A (v : E), stationaryPart S A c hc hA x⟫_ℝ = 0 := by |
| 78 | have hs := hAs (v : E) (stationaryPart S A c hc hA x) |
| 79 | change ⟪A (v : E), stationaryPart S A c hc hA x⟫_ℝ = |
| 80 | ⟪(v : E), A (stationaryPart S A c hc hA x)⟫_ℝ at hs |
| 81 | rw [hs, real_inner_comm] |
| 82 | exact hz |
| 83 | simp only [map_add, inner_add_left, inner_add_right, hz, hz', add_zero, zero_add] |
| 84 | |
| 85 | /-- The solved extension minimizes the actual quadratic form in its trace class. -/ |
| 86 | theorem stationaryPart_minimizes (hAs : A.IsSymmetric) (x : E) : |
| 87 | ⟪A (stationaryPart S A c hc hA x), stationaryPart S A c hc hA x⟫_ℝ ≤ |
| 88 | ⟪A x, x⟫_ℝ := by |
| 89 | have he := energy_split S A c hc hA hAs x (correction S A c hc hA x) |
| 90 | rw [stationaryPart_eq, sub_add_cancel] at he |
| 91 | have hp := hA (correction S A c hc hA x : E) |
| 92 | have hc0 := mul_nonneg hc.le (sq_nonneg ‖(correction S A c hc hA x : E)‖) |
| 93 | rw [stationaryPart_eq] |
| 94 | linarith |
| 95 | |
| 96 | variable [CompleteSpace E] |
| 97 | |
| 98 | /-- A prescribed bounded trial lift followed by the actual stationary projection. -/ |
| 99 | def endpointExtension (L : U →L[ℝ] E) : U →L[ℝ] E := |
| 100 | (stationaryPart S A c hc hA).comp L |
| 101 | |
| 102 | /-- The operator representing the actual stationary endpoint energy. -/ |
| 103 | def endpointOperator (L : U →L[ℝ] E) : U →L[ℝ] U := |
| 104 | (endpointExtension S A c hc hA L).adjoint.comp |
| 105 | (A.comp (endpointExtension S A c hc hA L)) |
| 106 | |
| 107 | theorem endpointOperator_inner (L : U →L[ℝ] E) (x y : U) : |
| 108 | ⟪endpointOperator S A c hc hA L x, y⟫_ℝ = |
| 109 | ⟪A (endpointExtension S A c hc hA L x), endpointExtension S A c hc hA L y⟫_ℝ := by |
| 110 | simp only [endpointOperator, comp_apply, adjoint_inner_left] |
| 111 | |
| 112 | /-- Positivity is inherited from the actual displacement form. -/ |
| 113 | theorem endpointOperator_positive (hAs : A.IsSymmetric) (L : U →L[ℝ] E) : |
| 114 | (endpointOperator S A c hc hA L).IsPositive := by |
| 115 | have hp : A.IsPositive := (ContinuousLinearMap.isPositive_iff A).2 |
| 116 | ⟨hAs, fun x => (mul_nonneg hc.le (sq_nonneg ‖x‖)).trans (hA x)⟩ |
| 117 | exact hp.adjoint_conj (endpointExtension S A c hc hA L) |
| 118 | |
| 119 | /-- Any explicit admissible trial controls the endpoint quadratic form. -/ |
| 120 | theorem endpointOperator_trial_bound (hAs : A.IsSymmetric) (L : U →L[ℝ] E) (x : U) : |
| 121 | ⟪endpointOperator S A c hc hA L x, x⟫_ℝ ≤ ⟪A (L x), L x⟫_ℝ := by |
| 122 | rw [endpointOperator_inner] |
| 123 | exact stationaryPart_minimizes S A c hc hA hAs (L x) |
| 124 | |
| 125 | omit [CompleteSpace E] in |
| 126 | /-- A nonnegative quadratic-form bound gives the same operator-norm bound. -/ |
| 127 | theorem positive_norm_le_of_quadratic (B : E →L[ℝ] E) (hB : B.IsPositive) |
| 128 | (C : ℝ) (hC : 0 ≤ C) (hb : ∀ x, ⟪B x, x⟫_ℝ ≤ C * ‖x‖ ^ 2) : ‖B‖ ≤ C := by |
| 129 | apply ContinuousLinearMap.opNorm_le_of_re_inner_le hC |
| 130 | intro x y hx hy |
| 131 | have hx' : ⟪B x, x⟫_ℝ ≤ C := by simpa only [hx, one_pow, mul_one] using hb x |
| 132 | have hy' : ⟪B y, y⟫_ℝ ≤ C := by simpa only [hy, one_pow, mul_one] using hb y |
| 133 | have hcross := EulerDNSelection.positive_cross_sq_le B hB x y |
| 134 | have hprod := mul_le_mul hx' hy' (hB.inner_nonneg_left y) hC |
| 135 | have hs : |⟪B x, y⟫_ℝ| ^ 2 ≤ C ^ 2 := by |
| 136 | rw [sq_abs] |
| 137 | nlinarith only [hcross, hprod] |
| 138 | have habs := (sq_le_sq₀ (abs_nonneg _) hC).1 hs |
| 139 | exact (le_abs_self _).trans habs |
| 140 | |
| 141 | /-- The endpoint norm is controlled by the energy of the trial, without an inverse norm loss. -/ |
| 142 | theorem endpointOperator_norm_le (hAs : A.IsSymmetric) (L : U →L[ℝ] E) |
| 143 | (C : ℝ) (hC : 0 ≤ C) (hL : ∀ x, ⟪A (L x), L x⟫_ℝ ≤ C * ‖x‖ ^ 2) : |
| 144 | ‖endpointOperator S A c hc hA L‖ ≤ C := by |
| 145 | apply positive_norm_le_of_quadratic _ (endpointOperator_positive S A c hc hA hAs L) C hC |
| 146 | intro x |
| 147 | exact (endpointOperator_trial_bound S A c hc hA hAs L x).trans (hL x) |
| 148 | |
| 149 | end EulerDirichletEndpointReduction |