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.ContinuousGramPath |
| 2 | import Euler.BoundedInverseGevrey |
| 3 | import Euler.TimeLpGramGevrey |
| 4 | |
| 5 | /-! |
| 6 | # Uniform-time factorial bounds for the actual Gram inverse |
| 7 | |
| 8 | The inverse is a genuinely smooth continuous operator path. Applying the |
| 9 | frozen-coefficient recurrence in the uniform norm gives actual inverse-path |
| 10 | and solution estimates, without a Hilbert structure on the path space. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | namespace EulerContinuousGramGevrey |
| 16 | |
| 17 | open Set ContinuousLinearMap EulerContinuousTimeIntegral EulerContinuousPathCalculus |
| 18 | EulerContinuousPathComposition EulerContinuousGramPath EulerTransverseGramInverse |
| 19 | EulerTransverseGramPath EulerTransverseStrongEstimates EulerOperatorGevreyCalculus |
| 20 | EulerTimeLpGramGevrey EulerGevrey |
| 21 | open scoped ContDiff |
| 22 | |
| 23 | private theorem cost_bounds (c C D : ℝ) (hc : 0 < c) (hD : 0 ≤ D) : |
| 24 | 1 ≤ gramCost c C D ∧ c⁻¹*(3*C^2) ≤ gramCost c C D ∧ c⁻¹*D ≤ gramCost c C D := by |
| 25 | have hi : 0 ≤ c⁻¹ := inv_nonneg.mpr hc.le |
| 26 | unfold gramCost |
| 27 | constructor |
| 28 | · have h : 0 ≤ c⁻¹*(3*C^2+D+1) := by positivity |
| 29 | linarith |
| 30 | constructor <;> nlinarith [sq_nonneg C] |
| 31 | |
| 32 | variable {U E : Type*} |
| 33 | [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 34 | [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] |
| 35 | |
| 36 | private local instance : NormedAddCommGroup (U →L[ℝ] U) := inferInstance |
| 37 | private local instance : NormedSpace ℝ (U →L[ℝ] U) := inferInstance |
| 38 | private local instance (T : ℝ) : NormedAddCommGroup C(Icc (0 : ℝ) T,U →L[ℝ] U) := inferInstance |
| 39 | private local instance (T : ℝ) : NormedSpace ℝ C(Icc (0 : ℝ) T,U →L[ℝ] U) := inferInstance |
| 40 | private local instance (T : ℝ) : NormedAddCommGroup |
| 41 | (C(Icc (0 : ℝ) T,U →L[ℝ] U) →L[ℝ] C(Icc (0 : ℝ) T,U →L[ℝ] U)) := inferInstance |
| 42 | private local instance (T : ℝ) : NormedSpace ℝ |
| 43 | (C(Icc (0 : ℝ) T,U →L[ℝ] U) →L[ℝ] C(Icc (0 : ℝ) T,U →L[ℝ] U)) := inferInstance |
| 44 | |
| 45 | /-- Bounded left multiplication on continuous endomorphism paths, as a |
| 46 | bounded linear function of the actual coefficient path. -/ |
| 47 | def leftMultiplicationMap (T : ℝ) : |
| 48 | C(Icc (0 : ℝ) T,U →L[ℝ] U) →L[ℝ] |
| 49 | C(Icc (0 : ℝ) T,U →L[ℝ] U) →L[ℝ] C(Icc (0 : ℝ) T,U →L[ℝ] U) := |
| 50 | (coefficientMap (K := Icc (0 : ℝ) T) (E := U →L[ℝ] U) (F := U →L[ℝ] U)).comp |
| 51 | (compositionLift (K := Icc (0 : ℝ) T) (U := U) (E := U) (F := U)) |
| 52 | |
| 53 | omit [CompleteSpace U] in |
| 54 | theorem leftMultiplicationMap_norm (T : ℝ) : ‖leftMultiplicationMap (U := U) T‖ ≤ 1 := by |
| 55 | apply opNorm_le_bound _ zero_le_one |
| 56 | intro A |
| 57 | simp only [one_mul] |
| 58 | apply opNorm_le_bound _ (norm_nonneg A) |
| 59 | intro B |
| 60 | apply (ContinuousMap.norm_le _ (mul_nonneg (norm_nonneg A) (norm_nonneg B))).2 |
| 61 | intro t |
| 62 | exact (opNorm_comp_le (A t) (B t)).trans |
| 63 | (mul_le_mul (A.norm_coe_le_norm t) (B.norm_coe_le_norm t) (norm_nonneg (B t)) (norm_nonneg A)) |
| 64 | |
| 65 | variable {P : Type*} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 66 | (T : ℝ) (Q : P → C(Icc (0 : ℝ) T,U →L[ℝ] E)) |
| 67 | (c : ℝ) (hc : 0 < c) (hLower : ∀ x t v, c*‖v‖^2 ≤ ‖Q x t v‖^2) |
| 68 | (hQ : ContDiff ℝ ∞ Q) |
| 69 | (Rc C : ℝ) (hRc : 0 ≤ Rc) (hC : 0 ≤ C) |
| 70 | (hbQ : ∀ n x, ‖iteratedFDeriv ℝ n Q x‖ ≤ C*majorant Rc 0 n) |
| 71 | |
| 72 | include hQ hRc hC hbQ |
| 73 | |
| 74 | /-- The actual continuous inverse path has one factorial shift, uniformly in time. -/ |
| 75 | theorem inversePath_gevrey (R : ℝ) (hR : 2*gramCost c C 1*(Rc+1) ≤ R) (n : ℕ) (x : P) : |
| 76 | ‖iteratedFDeriv ℝ n (fun y => gramInversePath T (Q y) c hc (hLower y)) x‖ ≤ |
| 77 | majorant R 1 n := by |
| 78 | let B := fun y => gramPath T (Q y) |
| 79 | let V := fun y => gramInversePath T (Q y) c hc (hLower y) |
| 80 | let A := fun y => leftMultiplicationMap (U := U) T (B y) |
| 81 | let I := fun y => leftMultiplicationMap (U := U) T (V y) |
| 82 | let onePath : C(Icc (0 : ℝ) T,U →L[ℝ] U) := ⟨fun _ => ContinuousLinearMap.id ℝ U, continuous_const⟩ |
| 83 | have hB : ContDiff ℝ ∞ B := gramPath_contDiff T Q hQ |
| 84 | have hV : ContDiff ℝ ∞ V := gramInversePath_contDiff T c hc Q hLower hQ |
| 85 | have hA : ContDiff ℝ ∞ A := |
| 86 | ContDiff.comp (g := leftMultiplicationMap (U := U) T) (f := B) |
| 87 | (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) |
| 88 | (E := C(Icc (0 : ℝ) T,U →L[ℝ] U)) |
| 89 | (F := C(Icc (0 : ℝ) T,U →L[ℝ] U) →L[ℝ] C(Icc (0 : ℝ) T,U →L[ℝ] U)) |
| 90 | (leftMultiplicationMap (U := U) T)) hB |
| 91 | have hsolve (y : P) : A y (V y) = onePath := by |
| 92 | apply ContinuousMap.ext |
| 93 | intro t |
| 94 | apply ContinuousLinearMap.ext |
| 95 | intro v |
| 96 | exact gram_inverse_apply (Q y t) c hc (hLower y t) v |
| 97 | have hleft (y : P) (p : C(Icc (0 : ℝ) T,U →L[ℝ] U)) : I y (A y p) = p := by |
| 98 | apply ContinuousMap.ext |
| 99 | intro t |
| 100 | apply ContinuousLinearMap.ext |
| 101 | intro v |
| 102 | exact inverse_gram_apply (Q y t) c hc (hLower y t) (p t v) |
| 103 | have hI (y : P) : ‖I y‖ ≤ c⁻¹ := by |
| 104 | have h := ((leftMultiplicationMap (U := U) T).le_opNorm (V y)).trans |
| 105 | (mul_le_mul_of_nonneg_right (leftMultiplicationMap_norm T) (norm_nonneg (V y))) |
| 106 | exact (h.trans_eq (one_mul _)).trans (gramInversePath_norm T (Q y) c hc (hLower y)) |
| 107 | have hAall := contraction_bound (leftMultiplicationMap (U := U) T) (leftMultiplicationMap_norm T) |
| 108 | B hB Rc (3*C^2) hRc (by positivity) 0 (gramPath_bound T Q hQ Rc C hRc hC hbQ) |
| 109 | have hApos (j : ℕ) (y : P) : ‖iteratedFDeriv ℝ (j+1) A y‖ ≤ |
| 110 | (3*C^2)*(Rc^(j+1)*((j+1).factorial : ℝ)^2) := by |
| 111 | simpa only [majorant, Nat.add_zero] using hAall (j+1) y |
| 112 | obtain ⟨hM, hMC, hMD⟩ := cost_bounds c C 1 hc zero_le_one |
| 113 | have hR0 : 0 ≤ R := by nlinarith |
| 114 | have hone : ‖onePath‖ ≤ 1 := by |
| 115 | apply (ContinuousMap.norm_le _ zero_le_one).2 |
| 116 | intro t |
| 117 | exact norm_id_le |
| 118 | exact EulerBoundedInverseGevrey.solution_gevrey A V (fun _ : P => onePath) |
| 119 | hA hV contDiff_const hsolve I hleft c⁻¹ (3*C^2) 1 (gramCost c C 1) Rc R |
| 120 | (by positivity) zero_le_one hM hMC hMD hRc hR hI hApos 0 |
| 121 | (const_bound onePath R 1 hR0 hone) n x |
| 122 | |
| 123 | /-- The actual continuous solution has the same one-shift inverse estimate. -/ |
| 124 | theorem solution_gevrey (f : P → C(Icc (0 : ℝ) T,U)) (hf : ContDiff ℝ ∞ f) |
| 125 | (D R : ℝ) (hD : 0 ≤ D) (hR : 2*gramCost c C D*(Rc+1) ≤ R) |
| 126 | (d : ℕ) (hbf : ∀ n x, ‖iteratedFDeriv ℝ n f x‖ ≤ D*majorant R d n) |
| 127 | (n : ℕ) (x : P) : |
| 128 | ‖iteratedFDeriv ℝ n (fun y => solve T (Q y) c hc (hLower y) (f y)) x‖ ≤ |
| 129 | majorant R (d+1) n := by |
| 130 | let A := fun y => multiplier (gramPath T (Q y)) |
| 131 | let V := fun y => solve T (Q y) c hc (hLower y) (f y) |
| 132 | let I := fun y => solve T (Q y) c hc (hLower y) |
| 133 | have hB := gramPath_contDiff T Q hQ |
| 134 | have hA : ContDiff ℝ ∞ A := contDiff_multiplier (fun y => gramPath T (Q y)) hB |
| 135 | have hV : ContDiff ℝ ∞ V := solve_contDiff T c hc Q hLower f hQ hf |
| 136 | have hAall := multiplier_bound (fun y => gramPath T (Q y)) hB Rc (3*C^2) hRc |
| 137 | (by positivity) 0 (gramPath_bound T Q hQ Rc C hRc hC hbQ) |
| 138 | have hApos (j : ℕ) (y : P) : ‖iteratedFDeriv ℝ (j+1) A y‖ ≤ |
| 139 | (3*C^2)*(Rc^(j+1)*((j+1).factorial : ℝ)^2) := by |
| 140 | simpa only [majorant, Nat.add_zero] using hAall (j+1) y |
| 141 | obtain ⟨hM, hMC, hMD⟩ := cost_bounds c C D hc hD |
| 142 | exact EulerBoundedInverseGevrey.solution_gevrey A V f hA hV hf |
| 143 | (fun y => solve_equation T (Q y) c hc (hLower y) (f y)) I |
| 144 | (fun y => solve_left_inverse T (Q y) c hc (hLower y)) |
| 145 | c⁻¹ (3*C^2) D (gramCost c C D) Rc R (by positivity) hD hM hMC hMD hRc hR |
| 146 | (fun y => solve_norm T (Q y) c hc (hLower y)) hApos d hbf n x |
| 147 | |
| 148 | end EulerContinuousGramGevrey |