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.PacketCofactorOperator |
| 2 | |
| 3 | /-! Polynomial Gevrey bounds for the actual inverse, strain and curvature |
| 4 | recovered from a determinant-one deformation and its first two time jets. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerPacketCofactor |
| 9 | |
| 10 | open Set ContinuousLinearMap InnerProductSpace EulerSmoothLimit EulerPacketPiola |
| 11 | EulerOperatorGevreyCalculus EulerGevrey |
| 12 | open scoped ContDiff |
| 13 | |
| 14 | private local instance : NormedAddCommGroup EndSpace := inferInstance |
| 15 | private local instance : NormedSpace ℝ EndSpace := inferInstance |
| 16 | private local instance : NormedAddCommGroup (EndSpace →L[ℝ] EndSpace) := inferInstance |
| 17 | private local instance : NormedSpace ℝ (EndSpace →L[ℝ] EndSpace) := inferInstance |
| 18 | private local instance : NormedAddCommGroup (EndSpace →L[ℝ] EndSpace →L[ℝ] EndSpace) := inferInstance |
| 19 | private local instance : NormedSpace ℝ (EndSpace →L[ℝ] EndSpace →L[ℝ] EndSpace) := inferInstance |
| 20 | |
| 21 | variable {P : Type*} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 22 | |
| 23 | theorem adjugate_contDiff (F : P → EndSpace) (hF : ContDiff ℝ ∞ F) : |
| 24 | ContDiff ℝ ∞ (fun x => adjugate (F x)) := |
| 25 | (cofactorBilinear.contDiff.comp hF).clm_apply hF |
| 26 | |
| 27 | theorem adjugate_bound (F : P → EndSpace) (hF : ContDiff ℝ ∞ F) |
| 28 | (R C : ℝ) (hR : 0 ≤ R) (hC : 0 ≤ C) |
| 29 | (hFb : ∀ n x, ‖iteratedFDeriv ℝ n F x‖ ≤ C*majorant R 0 n) (n : ℕ) (x : P) : |
| 30 | ‖iteratedFDeriv ℝ n (fun y => adjugate (F y)) x‖ ≤ (9*C^2)*majorant R 0 n := by |
| 31 | have hp := sequence_product_majorant R C C hR hC hC 0 0 |
| 32 | (fun k => ‖iteratedFDeriv ℝ k F x‖) (fun k => ‖iteratedFDeriv ℝ k F x‖) |
| 33 | (fun k => by simpa only [abs_norm] using hFb k x) |
| 34 | (fun k => by simpa only [abs_norm] using hFb k x) n |
| 35 | have hs : (∑ i ∈ Finset.range (n+1), (n.choose i : ℝ)* |
| 36 | ‖iteratedFDeriv ℝ i F x‖*‖iteratedFDeriv ℝ (n-i) F x‖) ≤ |
| 37 | (3*C*C)*majorant R 0 n := (le_abs_self _).trans (by simpa only [zero_add] using hp) |
| 38 | calc |
| 39 | _ ≤ ‖cofactorBilinear‖*(∑ i ∈ Finset.range (n+1), (n.choose i : ℝ)* |
| 40 | ‖iteratedFDeriv ℝ i F x‖*‖iteratedFDeriv ℝ (n-i) F x‖) := |
| 41 | cofactorBilinear.norm_iteratedFDeriv_le_of_bilinear hF hF x (by simp) |
| 42 | _ ≤ ‖cofactorBilinear‖*((3*C*C)*majorant R 0 n) := |
| 43 | mul_le_mul_of_nonneg_left hs (norm_nonneg _) |
| 44 | _ ≤ 3*((3*C*C)*majorant R 0 n) := |
| 45 | mul_le_mul_of_nonneg_right cofactorBilinear_norm |
| 46 | (mul_nonneg (by positivity) (majorant_nonneg R hR 0 n)) |
| 47 | _ = (9*C^2)*majorant R 0 n := by ring |
| 48 | |
| 49 | theorem inverse_contDiff (F I : P → EndSpace) (hF : ContDiff ℝ ∞ F) |
| 50 | (hdet : ∀ x, (operatorMatrix (F x)).det = 1) |
| 51 | (hI : ∀ x v, I x (F x v) = v) : ContDiff ℝ ∞ I := by |
| 52 | have he : I = fun x => adjugate (F x) := |
| 53 | funext (fun x => inverse_eq_adjugate (F x) (I x) (hdet x) (hI x)) |
| 54 | rw [he] |
| 55 | exact adjugate_contDiff F hF |
| 56 | |
| 57 | theorem inverse_bound (F I : P → EndSpace) (hF : ContDiff ℝ ∞ F) |
| 58 | (hdet : ∀ x, (operatorMatrix (F x)).det = 1) |
| 59 | (hI : ∀ x v, I x (F x v) = v) |
| 60 | (R C : ℝ) (hR : 0 ≤ R) (hC : 0 ≤ C) |
| 61 | (hFb : ∀ n x, ‖iteratedFDeriv ℝ n F x‖ ≤ C*majorant R 0 n) (n : ℕ) (x : P) : |
| 62 | ‖iteratedFDeriv ℝ n I x‖ ≤ (9*C^2)*majorant R 0 n := by |
| 63 | have he : I = fun x => adjugate (F x) := |
| 64 | funext (fun x => inverse_eq_adjugate (F x) (I x) (hdet x) (hI x)) |
| 65 | rw [he] |
| 66 | exact adjugate_bound F hF R C hR hC hFb n x |
| 67 | |
| 68 | omit [NormedAddCommGroup P] [NormedSpace ℝ P] in |
| 69 | theorem recovered_strain_eq (F F₁ M : P → EndSpace) |
| 70 | (hdet : ∀ x, (operatorMatrix (F x)).det = 1) |
| 71 | (h₁ : ∀ x v, F₁ x v = M x (F x v)) : |
| 72 | M = fun x => (F₁ x).comp (adjugate (F x)) := by |
| 73 | funext x |
| 74 | apply ContinuousLinearMap.ext |
| 75 | intro v |
| 76 | have hv : F x (adjugate (F x) v) = v := |
| 77 | congrArg (fun L : EndSpace => L v) (comp_adjugate (F x) (hdet x)) |
| 78 | change M x v = F₁ x (adjugate (F x) v) |
| 79 | rw [h₁,hv] |
| 80 | |
| 81 | omit [NormedAddCommGroup P] [NormedSpace ℝ P] in |
| 82 | theorem recovered_curvature_eq (F F₂ H : P → EndSpace) |
| 83 | (hdet : ∀ x, (operatorMatrix (F x)).det = 1) |
| 84 | (h₂ : ∀ x v, F₂ x v = -(H x (F x v))) : |
| 85 | H = fun x => -((F₂ x).comp (adjugate (F x))) := by |
| 86 | funext x |
| 87 | apply ContinuousLinearMap.ext |
| 88 | intro v |
| 89 | have hv : F x (adjugate (F x) v) = v := |
| 90 | congrArg (fun L : EndSpace => L v) (comp_adjugate (F x) (hdet x)) |
| 91 | change H x v = -(F₂ x (adjugate (F x) v)) |
| 92 | rw [h₂,hv,neg_neg] |
| 93 | |
| 94 | theorem strain_bound (F F₁ M : P → EndSpace) |
| 95 | (hF : ContDiff ℝ ∞ F) (hF₁ : ContDiff ℝ ∞ F₁) |
| 96 | (hdet : ∀ x, (operatorMatrix (F x)).det = 1) |
| 97 | (h₁ : ∀ x v, F₁ x v = M x (F x v)) |
| 98 | (R C C₁ : ℝ) (hR : 0 ≤ R) (hC : 0 ≤ C) (hC₁ : 0 ≤ C₁) |
| 99 | (hFb : ∀ n x, ‖iteratedFDeriv ℝ n F x‖ ≤ C*majorant R 0 n) |
| 100 | (hF₁b : ∀ n x, ‖iteratedFDeriv ℝ n F₁ x‖ ≤ C₁*majorant R 0 n) |
| 101 | (n : ℕ) (x : P) : |
| 102 | ‖iteratedFDeriv ℝ n M x‖ ≤ (27*C^2*C₁)*majorant R 0 n := by |
| 103 | rw [recovered_strain_eq F F₁ M hdet h₁] |
| 104 | have h := clm_comp_bound F₁ (fun y => adjugate (F y)) hF₁ (adjugate_contDiff F hF) |
| 105 | R C₁ (9*C^2) hR hC₁ (by positivity) 0 0 hF₁b |
| 106 | (adjugate_bound F hF R C hR hC hFb) n x |
| 107 | exact h.trans_eq (by rw [zero_add]; ring) |
| 108 | |
| 109 | theorem curvature_bound (F F₂ H : P → EndSpace) |
| 110 | (hF : ContDiff ℝ ∞ F) (hF₂ : ContDiff ℝ ∞ F₂) |
| 111 | (hdet : ∀ x, (operatorMatrix (F x)).det = 1) |
| 112 | (h₂ : ∀ x v, F₂ x v = -(H x (F x v))) |
| 113 | (R C C₂ : ℝ) (hR : 0 ≤ R) (hC : 0 ≤ C) (hC₂ : 0 ≤ C₂) |
| 114 | (hFb : ∀ n x, ‖iteratedFDeriv ℝ n F x‖ ≤ C*majorant R 0 n) |
| 115 | (hF₂b : ∀ n x, ‖iteratedFDeriv ℝ n F₂ x‖ ≤ C₂*majorant R 0 n) |
| 116 | (n : ℕ) (x : P) : |
| 117 | ‖iteratedFDeriv ℝ n H x‖ ≤ (27*C^2*C₂)*majorant R 0 n := by |
| 118 | rw [recovered_curvature_eq F F₂ H hdet h₂] |
| 119 | have h := neg_bound (fun y => (F₂ y).comp (adjugate (F y))) R (3*C₂*(9*C^2)) 0 |
| 120 | (fun n x => by |
| 121 | simpa only [zero_add] using clm_comp_bound F₂ (fun y => adjugate (F y)) |
| 122 | hF₂ (adjugate_contDiff F hF) R C₂ (9*C^2) hR hC₂ (by positivity) 0 0 hF₂b |
| 123 | (adjugate_bound F hF R C hR hC hFb) n x) n x |
| 124 | exact h.trans_eq (by ring) |
| 125 | |
| 126 | end EulerPacketCofactor |