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.SmoothPowerMomentMatrix |
| 2 | import NavierStokes.ExponentialMomentMatrix |
| 3 | |
| 4 | /-! |
| 5 | # Smooth parameter families of exponential bump moments |
| 6 | |
| 7 | This is the logarithmic-coordinate clause of `outgoing:moment-rank`. Exponents, |
| 8 | bumps and support intervals may vary with the parameter. The actual integrated |
| 9 | matrix and its nonsingular inverse are smooth, with all fixed inverse jets |
| 10 | bounded on compact parameter sets. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | open Set Filter Function MeasureTheory |
| 16 | open scoped Topology ContDiff Interval BigOperators Matrix.Norms.Elementwise |
| 17 | |
| 18 | namespace NavierStokes.SmoothExponentialMomentMatrix |
| 19 | |
| 20 | /-- Primitive data on an open parameter domain. Logarithmic-coordinate support |
| 21 | intervals may lie anywhere on the real line. -/ |
| 22 | structure Family (E : Type*) [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 23 | (n : ℕ) (U : Set E) where |
| 24 | exponent : E → Fin n → ℝ |
| 25 | lower : E → Fin n → ℝ |
| 26 | upper : E → Fin n → ℝ |
| 27 | bump : E → Fin n → ℝ → ℝ |
| 28 | exponent_smooth : ∀ i, ContDiffOn ℝ ∞ (fun p => exponent p i) U |
| 29 | lower_continuous : ∀ j, ContinuousOn (fun p => lower p j) U |
| 30 | upper_continuous : ∀ j, ContinuousOn (fun p => upper p j) U |
| 31 | bump_smooth : ∀ j, ContDiffOn ℝ ∞ (fun z : E × ℝ => bump z.1 j z.2) (U ×ˢ univ) |
| 32 | exponent_injective : ∀ p ∈ U, Injective (exponent p) |
| 33 | separated : ∀ p ∈ U, ∀ i j, i < j → upper p i < lower p j |
| 34 | bump_nonnegative : ∀ p ∈ U, ∀ j t, 0 ≤ bump p j t |
| 35 | bump_nonzero : ∀ p ∈ U, ∀ j, ∃ t, bump p j t ≠ 0 |
| 36 | bump_support : ∀ p ∈ U, ∀ j, support (bump p j) ⊆ Icc (lower p j) (upper p j) |
| 37 | |
| 38 | namespace Family |
| 39 | |
| 40 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 41 | {n : ℕ} {U : Set E} (D : Family E n U) |
| 42 | |
| 43 | /-- Actual integrated exponential weights against the given bump profiles. -/ |
| 44 | def matrix (p : E) : Matrix (Fin n) (Fin n) ℝ := |
| 45 | ExponentialMomentMatrix.expBumpMomentMatrix (D.exponent p) (D.bump p) |
| 46 | |
| 47 | theorem integrand_contDiffOn (i j : Fin n) : |
| 48 | ContDiffOn ℝ ∞ |
| 49 | (fun z : E × ℝ => Real.exp (D.exponent z.1 i * z.2) * D.bump z.1 j z.2) |
| 50 | (U ×ˢ univ) := by |
| 51 | have he : ContDiffOn ℝ ∞ (fun z : E × ℝ => D.exponent z.1 i) (U ×ˢ univ) := |
| 52 | (D.exponent_smooth i).comp contDiffOn_fst (fun z hz => hz.1) |
| 53 | exact (he.mul contDiffOn_snd).exp.mul (D.bump_smooth j) |
| 54 | |
| 55 | theorem matrix_contDiffOn [ProperSpace E] (hU : IsOpen U) : |
| 56 | ContDiffOn ℝ ∞ D.matrix U := by |
| 57 | apply contDiffOn_pi.mpr |
| 58 | intro i |
| 59 | apply contDiffOn_pi.mpr |
| 60 | intro j |
| 61 | apply SmoothPowerMomentMatrix.integral_contDiffOn_of_moving_support U hU _ |
| 62 | (D.integrand_contDiffOn i j) (fun p => D.lower p j) (fun p => D.upper p j) |
| 63 | (D.lower_continuous j) (D.upper_continuous j) |
| 64 | intro p hp t ht |
| 65 | apply D.bump_support p hp j |
| 66 | intro hb |
| 67 | exact ht (by dsimp only; rw [hb, mul_zero]) |
| 68 | |
| 69 | theorem matrix_det_ne_zero (p : E) (hp : p ∈ U) : (D.matrix p).det ≠ 0 := by |
| 70 | apply ExponentialMomentMatrix.expBumpMomentMatrix_det_ne_zero |
| 71 | (D.exponent p) (D.lower p) (D.upper p) (D.bump p) |
| 72 | (D.exponent_injective p hp) (D.separated p hp) |
| 73 | · intro j |
| 74 | exact contDiffOn_univ.mp ((D.bump_smooth j).comp |
| 75 | (contDiff_const.prodMk contDiff_id).contDiffOn (fun t _ => ⟨hp, mem_univ t⟩)) |>.continuous |
| 76 | · exact D.bump_nonnegative p hp |
| 77 | · exact D.bump_nonzero p hp |
| 78 | · exact D.bump_support p hp |
| 79 | |
| 80 | theorem matrix_inverse_contDiffOn [ProperSpace E] (hU : IsOpen U) : |
| 81 | ContDiffOn ℝ ∞ (fun p => (D.matrix p)⁻¹) U := |
| 82 | SmoothPowerMomentMatrix.inverse_contDiffOn D.matrix |
| 83 | (D.matrix_contDiffOn hU) D.matrix_det_ne_zero |
| 84 | |
| 85 | /-- Every full parameter jet of the actual inverse has a uniform compact bound. -/ |
| 86 | theorem compact_inverse_jet_bound [ProperSpace E] (hU : IsOpen U) |
| 87 | (K : Set E) (hK : IsCompact K) (hKU : K ⊆ U) (m : ℕ) : |
| 88 | ∃ C ≥ 0, ∀ p ∈ K, |
| 89 | ‖iteratedFDeriv ℝ m (fun q => (D.matrix q)⁻¹) p‖ ≤ C := by |
| 90 | have hj : ContinuousOn (iteratedFDeriv ℝ m (fun q => (D.matrix q)⁻¹)) U := by |
| 91 | intro p hp |
| 92 | exact (((D.matrix_inverse_contDiffOn hU).contDiffAt (hU.mem_nhds hp)).iteratedFDeriv_right |
| 93 | (m := 0) (by simp)).continuousAt.continuousWithinAt |
| 94 | obtain ⟨C, hC⟩ := hK.exists_bound_of_continuousOn (hj.mono hKU) |
| 95 | exact ⟨max C 0, le_max_right _ _, fun p hp => (hC p hp).trans (le_max_left _ _)⟩ |
| 96 | |
| 97 | /-- One common constant controls all inverse derivatives up to a fixed order. -/ |
| 98 | theorem compact_inverse_jets_bound [ProperSpace E] (hU : IsOpen U) |
| 99 | (K : Set E) (hK : IsCompact K) (hKU : K ⊆ U) (m : ℕ) : |
| 100 | ∃ C ≥ 0, ∀ k ≤ m, ∀ p ∈ K, |
| 101 | ‖iteratedFDeriv ℝ k (fun q => (D.matrix q)⁻¹) p‖ ≤ C := by |
| 102 | choose C hC hbound using fun k : Fin (m + 1) => |
| 103 | D.compact_inverse_jet_bound hU K hK hKU k.val |
| 104 | refine ⟨∑ k, C k, Finset.sum_nonneg (fun k _ => hC k), ?_⟩ |
| 105 | intro k hk p hp |
| 106 | exact (hbound ⟨k, by omega⟩ p hp).trans |
| 107 | (Finset.single_le_sum (fun t _ => hC t) |
| 108 | (Finset.mem_univ (⟨k, by omega⟩ : Fin (m + 1)))) |
| 109 | |
| 110 | end Family |
| 111 | end NavierStokes.SmoothExponentialMomentMatrix |