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 NavierStokes.ClosedIntervalCkOperators |
| 2 | import NavierStokes.MomentRepairPicard |
| 3 | import NavierStokes.QuadraticLinearization |
| 4 | import NavierStokes.SmoothQuadraticBranch |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace NavierStokes.ClosedIntervalMomentRepair |
| 9 | |
| 10 | open Set Filter ClosedIntervalCk |
| 11 | open scoped Topology ContDiff |
| 12 | |
| 13 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 14 | |
| 15 | /-- The printed smooth matrix, bilinear coefficient, and moment discrepancy. -/ |
| 16 | structure Data (E : Type*) [NormedAddCommGroup E] [NormedSpace ℝ E] where |
| 17 | B : ℝ → E →L[ℝ] E |
| 18 | A : ℝ → E →L[ℝ] E →L[ℝ] E |
| 19 | d : ℝ → E |
| 20 | hB : ContDiffOn ℝ ∞ B I |
| 21 | hA : ContDiffOn ℝ ∞ A I |
| 22 | hd : ContDiffOn ℝ ∞ d I |
| 23 | invertible : ∀ x ∈ I, (B x).IsInvertible |
| 24 | |
| 25 | namespace Data |
| 26 | |
| 27 | variable (D : Data E) |
| 28 | |
| 29 | def matrix (k : ℕ) : CK (E := E) k ≃L[ℝ] CK (E := E) k := |
| 30 | coefficientEquiv k D.B (D.hB.of_le (by simp)) D.invertible |
| 31 | |
| 32 | def bilinearMap (k : ℕ) : CK (E := E) k →L[ℝ] CK (E := E) k →L[ℝ] CK (E := E) k := |
| 33 | quadraticOperator k D.A (D.hA.of_le (by simp)) |
| 34 | |
| 35 | def debt (k : ℕ) : CK (E := E) k := ofContDiffOn D.d (D.hd.of_le (by simp)) |
| 36 | |
| 37 | /-- The exact norm of multiplication by the inverse matrix on `C^k`. -/ |
| 38 | def inverseNorm (k : ℕ) : ℝ := ‖(D.matrix k).symm.toContinuousLinearMap‖ |
| 39 | |
| 40 | /-- The exact norm of the actual bilinear coefficient operator on `C^k`. -/ |
| 41 | def quadraticNorm (k : ℕ) : ℝ := ‖D.bilinearMap k‖ |
| 42 | |
| 43 | def debtNorm (k : ℕ) : ℝ := ‖D.debt k‖ |
| 44 | |
| 45 | def Small (k : ℕ) : Prop := 8 * D.inverseNorm k ^ 2 * D.quadraticNorm k * D.debtNorm k ≤ 1 |
| 46 | |
| 47 | /-- The C⁰ constants coincide with the pointwise suprema printed in the appendix. -/ |
| 48 | theorem inverseNorm_zero : D.inverseNorm 0 = ⨆ x : I, ‖(D.B x).inverse‖ := |
| 49 | norm_coefficientOperator_zero (fun x => (D.B x).inverse) |
| 50 | (inverse_coefficient_smooth D.B (D.hB.of_le (by simp)) D.invertible) |
| 51 | |
| 52 | theorem quadraticNorm_zero : D.quadraticNorm 0 = ⨆ x : I, ‖D.A x‖ := |
| 53 | norm_quadraticOperator_zero D.A (D.hA.of_le (by simp)) |
| 54 | |
| 55 | theorem debtNorm_zero : D.debtNorm 0 = ⨆ x : I, ‖D.d x‖ := by |
| 56 | rw [debtNorm, norm_zero_eq_value] |
| 57 | exact (value 0 (D.debt 0)).norm_eq_iSup_norm |
| 58 | |
| 59 | @[simp] theorem matrix_value (k : ℕ) (f : CK (E := E) k) (x : I) : |
| 60 | value k (D.matrix k f) x = D.B x (value k f x) := |
| 61 | coefficientOperator_value k D.B _ f x |
| 62 | |
| 63 | @[simp] theorem bilinearMap_value (k : ℕ) (f g : CK (E := E) k) (x : I) : |
| 64 | value k (D.bilinearMap k f g) x = D.A x (value k f x) (value k g x) := |
| 65 | quadraticOperator_value k D.A _ f g x |
| 66 | |
| 67 | @[simp] theorem debt_value (k : ℕ) (x : I) : value k (D.debt k) x = D.d x := rfl |
| 68 | |
| 69 | theorem matrix_compatible (k : ℕ) (f : CK (E := E) k) : |
| 70 | lower (Nat.zero_le k) (D.matrix k f) = D.matrix 0 (lower (Nat.zero_le k) f) := by |
| 71 | apply value_injective 0 |
| 72 | ext x |
| 73 | simp only [lower_apply, lowerValue_value, matrix_value] |
| 74 | |
| 75 | theorem bilinearMap_compatible (k : ℕ) (f g : CK (E := E) k) : |
| 76 | lower (Nat.zero_le k) (D.bilinearMap k f g) = |
| 77 | D.bilinearMap 0 (lower (Nat.zero_le k) f) (lower (Nat.zero_le k) g) := by |
| 78 | apply value_injective 0 |
| 79 | ext x |
| 80 | simp only [lower_apply, lowerValue_value, bilinearMap_value] |
| 81 | |
| 82 | theorem debt_compatible (k : ℕ) : lower (Nat.zero_le k) (D.debt k) = D.debt 0 := by |
| 83 | apply value_injective 0 |
| 84 | ext x |
| 85 | simp only [lower_apply, lowerValue_value, debt_value] |
| 86 | |
| 87 | /-- One zero-started continuous branch, selected before any stronger norm test. -/ |
| 88 | theorem exists_continuous_branch (hsmall : D.Small 0) : |
| 89 | ∃ c₀ : CK (E := E) 0, |
| 90 | ‖c₀‖ ≤ 2 * D.inverseNorm 0 * D.debtNorm 0 ∧ |
| 91 | D.matrix 0 c₀ + D.bilinearMap 0 c₀ c₀ = D.debt 0 ∧ |
| 92 | Tendsto (fun n : ℕ => |
| 93 | (MomentRepair.correctionIteration (D.matrix 0) (fun c => D.bilinearMap 0 c c) (D.debt 0))^[n] 0) |
| 94 | atTop (𝓝 c₀) ∧ |
| 95 | ∀ k : ℕ, D.Small k → ∃ cₖ : CK (E := E) k, |
| 96 | lower (Nat.zero_le k) cₖ = c₀ ∧ |
| 97 | ‖cₖ‖ ≤ 2 * D.inverseNorm k * D.debtNorm k := by |
| 98 | obtain ⟨c₀, hc₀, he₀, ht₀⟩ := MomentRepairPicardConvergence.exists_small_solution_with_iterates |
| 99 | (D.matrix 0) (D.bilinearMap 0) (D.debt 0) hsmall |
| 100 | refine ⟨c₀, hc₀, he₀, ht₀, ?_⟩ |
| 101 | intro k hk |
| 102 | obtain ⟨cₖ, he, hnorm, _⟩ := MomentRepairPicard.existing_branch_has_stronger_lift |
| 103 | (lower (Nat.zero_le k)) (D.matrix 0) (D.matrix k) |
| 104 | (D.bilinearMap 0) (D.bilinearMap k) (D.debt 0) (D.debt k) |
| 105 | (D.matrix_compatible k) (D.bilinearMap_compatible k) (D.debt_compatible k) ht₀ hk |
| 106 | exact ⟨cₖ, he, hnorm⟩ |
| 107 | |
| 108 | theorem pointwise_equation (c₀ : CK (E := E) 0) |
| 109 | (heq : D.matrix 0 c₀ + D.bilinearMap 0 c₀ c₀ = D.debt 0) : |
| 110 | ∀ x ∈ I, D.B x (extend (value 0 c₀) x) + |
| 111 | D.A x (extend (value 0 c₀) x) (extend (value 0 c₀) x) = D.d x := by |
| 112 | intro x hx |
| 113 | have he := congrArg (fun f : CK (E := E) 0 => value 0 f ⟨x,hx⟩) heq |
| 114 | simpa only [map_add, ContinuousMap.add_apply, matrix_value, bilinearMap_value, debt_value, |
| 115 | extend_of_mem _ hx] using he |
| 116 | |
| 117 | theorem pointwise_inverse_bound (x : I) : ‖(D.B x).inverse‖ ≤ D.inverseNorm 0 := by |
| 118 | exact norm_coefficient_le (fun x => (D.B x).inverse) |
| 119 | (inverse_coefficient_smooth D.B (D.hB.of_le (by simp)) D.invertible) x |
| 120 | |
| 121 | theorem pointwise_bilinear_bound (x : I) : ‖D.A x‖ ≤ D.quadraticNorm 0 := |
| 122 | norm_quadratic_coefficient_le D.A (D.hA.of_le (by simp)) x |
| 123 | |
| 124 | /-- The C⁰ contraction condition alone gives all one-sided derivatives. |
| 125 | No higher-order smallness assumptions are used for smoothness. -/ |
| 126 | theorem continuous_branch_smooth (hsmall : D.Small 0) (c₀ : CK (E := E) 0) |
| 127 | (hbound : ‖c₀‖ ≤ 2 * D.inverseNorm 0 * D.debtNorm 0) |
| 128 | (heq : D.matrix 0 c₀ + D.bilinearMap 0 c₀ c₀ = D.debt 0) : |
| 129 | ContDiffOn ℝ ∞ (extend (value 0 c₀)) I := by |
| 130 | apply SmoothQuadraticBranch.continuous_quadratic_branch_contDiffOn |
| 131 | D.B D.A D.d (extend (value 0 c₀)) D.hB D.hA D.hd |
| 132 | (extend_continuous _).continuousOn (D.pointwise_equation c₀ heq) |
| 133 | intro x hx |
| 134 | obtain ⟨e, he⟩ := D.invertible x hx |
| 135 | have hb : ‖e.symm.toContinuousLinearMap‖ ≤ D.inverseNorm 0 := by |
| 136 | have hb := D.pointwise_inverse_bound ⟨x,hx⟩ |
| 137 | rwa [← he, ContinuousLinearMap.inverse_equiv] at hb |
| 138 | have hc : ‖extend (value 0 c₀) x‖ ≤ 2 * D.inverseNorm 0 * D.debtNorm 0 := by |
| 139 | rw [extend_of_mem _ hx] |
| 140 | exact ((value 0 c₀).norm_coe_le_norm ⟨x,hx⟩).trans ((norm_value_le c₀).trans hbound) |
| 141 | rw [← he] |
| 142 | exact QuadraticLinearization.isInvertible e (D.A x) (extend (value 0 c₀) x) |
| 143 | (D.inverseNorm 0) (D.quadraticNorm 0) (D.debtNorm 0) |
| 144 | (norm_nonneg (D.matrix 0).symm.toContinuousLinearMap) |
| 145 | (norm_nonneg (D.bilinearMap 0)) hb |
| 146 | (D.pointwise_bilinear_bound ⟨x,hx⟩) hc hsmall |
| 147 | |
| 148 | /-- The full quadratic correction assertion: smoothness follows from C⁰ |
| 149 | smallness; every additional finite-order estimate applies to this same branch. |
| 150 | Uniqueness is among continuous functions in the printed C⁰ ball. -/ |
| 151 | theorem exists_smooth_same_branch (hsmall : D.Small 0) : |
| 152 | ∃ c : ℝ → E, ∃ hc : ContDiffOn ℝ ∞ c I, |
| 153 | ‖ofContDiffOn c (hc.of_le (by simp : (0 : ℕ∞ω) ≤ ∞))‖ ≤ |
| 154 | 2 * D.inverseNorm 0 * D.debtNorm 0 ∧ |
| 155 | (∀ x ∈ I, D.B x (c x) + D.A x (c x) (c x) = D.d x) ∧ |
| 156 | (∀ k : ℕ, D.Small k → |
| 157 | ‖ofContDiffOn c (hc.of_le (by simp : (k : ℕ∞ω) ≤ ∞))‖ ≤ |
| 158 | 2 * D.inverseNorm k * D.debtNorm k) ∧ |
| 159 | (∀ e : ℝ → E, ∀ he : ContinuousOn e I, |
| 160 | ‖ofContDiffOn e (contDiffOn_zero.mpr he)‖ ≤ 2 * D.inverseNorm 0 * D.debtNorm 0 → |
| 161 | (∀ x ∈ I, D.B x (e x) + D.A x (e x) (e x) = D.d x) → EqOn e c I) ∧ |
| 162 | Tendsto (fun n : ℕ => |
| 163 | (MomentRepair.correctionIteration (D.matrix 0) (fun f => D.bilinearMap 0 f f) (D.debt 0))^[n] 0) |
| 164 | atTop (𝓝 (ofContDiffOn c (hc.of_le (by simp : (0 : ℕ∞ω) ≤ ∞)))) := by |
| 165 | obtain ⟨c₀, hbound, heq, ht, hlift⟩ := D.exists_continuous_branch hsmall |
| 166 | let c := extend (value 0 c₀) |
| 167 | have hc : ContDiffOn ℝ ∞ c I := D.continuous_branch_smooth hsmall c₀ hbound heq |
| 168 | have hembed : ofContDiffOn c (hc.of_le (by simp : (0 : ℕ∞ω) ≤ ∞)) = c₀ := by |
| 169 | apply value_injective 0 |
| 170 | ext x |
| 171 | exact extend_apply _ x |
| 172 | refine ⟨c, hc, ?_, D.pointwise_equation c₀ heq, ?_, ?_, ?_⟩ |
| 173 | · rwa [hembed] |
| 174 | · intro k hk |
| 175 | obtain ⟨cₖ, heₖ, hbₖ⟩ := hlift k hk |
| 176 | have hembedk : ofContDiffOn c (hc.of_le (by simp : (k : ℕ∞ω) ≤ ∞)) = cₖ := by |
| 177 | apply value_injective k |
| 178 | ext x |
| 179 | have hv := congrArg (fun f : CK (E := E) 0 => value 0 f x) heₖ |
| 180 | simp only [lower_apply, lowerValue_value] at hv |
| 181 | change extend (value 0 c₀) x = value k cₖ x |
| 182 | rw [extend_apply, hv] |
| 183 | rwa [hembedk] |
| 184 | · intro e he heb hee |
| 185 | let e₀ : CK (E := E) 0 := ofContDiffOn e (contDiffOn_zero.mpr he) |
| 186 | have heeq : D.matrix 0 e₀ + D.bilinearMap 0 e₀ e₀ = D.debt 0 := by |
| 187 | apply value_injective 0 |
| 188 | ext x |
| 189 | simp only [map_add, ContinuousMap.add_apply, matrix_value, bilinearMap_value, debt_value] |
| 190 | exact hee x x.property |
| 191 | have hs : 4 * ‖(D.matrix 0).symm.toContinuousLinearMap‖ * ‖D.bilinearMap 0‖ * |
| 192 | (2 * D.inverseNorm 0 * D.debtNorm 0) ≤ 1 := by |
| 193 | change 4 * D.inverseNorm 0 * D.quadraticNorm 0 * |
| 194 | (2 * D.inverseNorm 0 * D.debtNorm 0) ≤ 1 |
| 195 | calc |
| 196 | _ = 8 * D.inverseNorm 0 ^ 2 * D.quadraticNorm 0 * D.debtNorm 0 := by ring |
| 197 | _ ≤ 1 := hsmall |
| 198 | obtain ⟨u, hu, huniq⟩ := SmoothMomentRepair.exists_unique_quadratic_correction |
| 199 | (D.matrix 0) (D.bilinearMap 0) (D.debt 0) |
| 200 | (2 * D.inverseNorm 0 * D.debtNorm 0) (by unfold inverseNorm debtNorm; positivity) hs le_rfl |
| 201 | have hec : e₀ = c₀ := (huniq e₀ ⟨heb, heeq⟩).trans (huniq c₀ ⟨hbound, heq⟩).symm |
| 202 | intro x hx |
| 203 | have hv := congrArg (fun f : CK (E := E) 0 => value 0 f ⟨x,hx⟩) hec |
| 204 | change e x = extend (value 0 c₀) x |
| 205 | rw [extend_of_mem _ hx] |
| 206 | exact hv |
| 207 | · rwa [hembed] |
| 208 | |
| 209 | /-- In the linear case the exact solution needs no smallness condition. -/ |
| 210 | theorem linear_solution (hA : ∀ x ∈ I, D.A x = 0) : |
| 211 | ∃ hc : ContDiffOn ℝ ∞ (fun x => (D.B x).inverse (D.d x)) I, |
| 212 | (∀ x ∈ I, D.B x ((D.B x).inverse (D.d x)) + |
| 213 | D.A x ((D.B x).inverse (D.d x)) ((D.B x).inverse (D.d x)) = D.d x) ∧ |
| 214 | ∀ k : ℕ, ‖ofContDiffOn (fun x => (D.B x).inverse (D.d x)) |
| 215 | (hc.of_le (by simp : (k : ℕ∞ω) ≤ ∞))‖ ≤ D.inverseNorm k * D.debtNorm k := by |
| 216 | have hi : ContDiffOn ℝ ∞ (fun x => (D.B x).inverse) I := by |
| 217 | intro x hx |
| 218 | exact ((D.invertible x hx).contDiffAt_map_inverse (𝕜 := ℝ) (n := ∞)).comp_contDiffWithinAt x |
| 219 | (D.hB x hx) |
| 220 | refine ⟨hi.clm_apply D.hd, ?_, ?_⟩ |
| 221 | · intro x hx |
| 222 | simp only [hA x hx, zero_apply, add_zero] |
| 223 | exact (D.invertible x hx).self_apply_inverse _ |
| 224 | intro k |
| 225 | have he : ofContDiffOn (fun x => (D.B x).inverse (D.d x)) |
| 226 | ((hi.clm_apply D.hd).of_le (by simp : (k : ℕ∞ω) ≤ ∞)) = (D.matrix k).symm (D.debt k) := by |
| 227 | apply value_injective k |
| 228 | ext x |
| 229 | change (D.B x).inverse (D.d x) = |
| 230 | value k (coefficientOperator k (fun x => (D.B x).inverse) _ (D.debt k)) x |
| 231 | rw [coefficientOperator_value, debt_value] |
| 232 | rw [he] |
| 233 | exact (D.matrix k).symm.toContinuousLinearMap.le_opNorm (D.debt k) |
| 234 | |
| 235 | end Data |
| 236 | end NavierStokes.ClosedIntervalMomentRepair |