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.PacketScaledVelocitySystem |
| 2 | import Euler.ClosedIntervalDerivativeExtension |
| 3 | |
| 4 | /-! |
| 5 | The actual closed-interval packet equations feed the checked scalar |
| 6 | amplification theorem. Endpoint derivatives are extended explicitly; only |
| 7 | the first two physical transport rows enter the comparison. |
| 8 | -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | |
| 13 | namespace EulerPacketMovingFrame |
| 14 | |
| 15 | open Set EulerPacketRay EulerPacketStage EulerPacketPerturbation |
| 16 | EulerClosedIntervalDerivativeExtension |
| 17 | |
| 18 | /-- Relative amplification for paths with their genuine within-interval |
| 19 | equations. The ideal reference solutions are constructed by the scalar ODE |
| 20 | existence theorem, not supplied as extra assumptions. -/ |
| 21 | theorem controlled_stage_references_within |
| 22 | {σ Θ T e ε lam : ℝ} {U V P Q N : ℝ → ℝ} {R A C : ℝ → Fin 3 → Fin 3 → ℝ} |
| 23 | (hσ : 0 < σ) (hσsmall : σ ≤ 1 / 4) (hΘ : 1 ≤ Θ) |
| 24 | (hT0 : 0 < T) (hT : T ≤ Θ) (he : 0 ≤ e) (hε : 0 ≤ ε) (hεe : ε ≤ e) |
| 25 | (hlam : 0 ≤ lam) (hsmall : 1000000 * stabilityConstant * e * Θ ^ 40 ≤ 1) |
| 26 | (hRc : ∀ i j, ContinuousOn (fun t => R t i j) (Icc 0 T)) |
| 27 | (hAc : ∀ i j, ContinuousOn (fun t => A t i j) (Icc 0 T)) |
| 28 | (hCc : ∀ i j, ContinuousOn (fun t => C t i j) (Icc 0 T)) |
| 29 | (hP : ∀ t ∈ Icc 0 T, HasDerivWithinAt P |
| 30 | (R t 0 0 * P t + R t 0 1 * Q t + R t 0 2 * N t) (Icc 0 T) t) |
| 31 | (hQ : ∀ t ∈ Icc 0 T, HasDerivWithinAt Q |
| 32 | (R t 1 0 * P t + R t 1 1 * Q t + R t 1 2 * N t) (Icc 0 T) t) |
| 33 | (hN : ∀ t ∈ Icc 0 T, HasDerivWithinAt N |
| 34 | (R t 2 0 * P t + R t 2 1 * Q t + R t 2 2 * N t) (Icc 0 T) t) |
| 35 | (hU : ∀ t ∈ Icc 0 T, HasDerivWithinAt U |
| 36 | (velocityFirstRhs (A t) (C t) ε (P t) (Q t) (N t) (U t) (V t)) (Icc 0 T) t) |
| 37 | (hV : ∀ t ∈ Icc 0 T, HasDerivWithinAt V |
| 38 | (velocitySecondRhs (A t) (C t) ε (P t) (Q t) (N t) (U t) (V t)) (Icc 0 T) t) |
| 39 | (hRclose : ∀ t ∈ Icc 0 T, ∀ i j, |R t i j - idealRayEntry (σ ^ 2) i j| ≤ 4 * e) |
| 40 | (hAclose : ∀ t ∈ Icc 0 T, ∀ i j, |A t i j - idealVelocityEntry (σ ^ 2) i j| ≤ 3 * e) |
| 41 | (hCclose : ∀ t ∈ Icc 0 T, ∀ j, |
| 42 | |C t 0 j - idealUnprojectedEntry 0 j| ≤ 5 * e ∧ |
| 43 | |C t 1 j - idealUnprojectedEntry 1 j| ≤ 5 * e) |
| 44 | (hrayInitial : norm3 (P 0) (Q 0) (N 0 - 1) ≤ e) |
| 45 | (hU0 : U 0 = -lam) (hV0 : V 0 = 1) : |
| 46 | ∃ F F₁ Z Z₁ : ℝ → ℝ, |
| 47 | F 0 = 1 ∧ F₁ 0 = 0 ∧ Z 0 = 1 ∧ Z₁ 0 = lam ∧ |
| 48 | (∀ t, HasDerivAt F (F₁ t) t) ∧ (∀ t, HasDerivAt Z (Z₁ t) t) ∧ |
| 49 | (∀ t, HasDerivAt (fun s => (1 + (σ ^ 2 * s ^ 2) ^ 2) * F₁ s) |
| 50 | (2 * (1 - σ ^ 2 * (σ ^ 2 * t ^ 2)) * F t) t) ∧ |
| 51 | (∀ t, HasDerivAt (fun s => (1 + (σ ^ 2 * s ^ 2) ^ 2) * Z₁ s) |
| 52 | (2 * (1 - σ ^ 2 * (σ ^ 2 * t ^ 2)) * Z t) t) ∧ |
| 53 | (∀ t ∈ Icc 0 T, |V t - Z t| + |U t + Z₁ t| ≤ |
| 54 | 160000000 * e * Θ ^ 29 * (1 + lam) * F t) ∧ |
| 55 | (∀ t ∈ Icc 1 T, 0 < V t ∧ |
| 56 | |V t / Z t - 1| ≤ stabilityConstant * e * Θ ^ 29 ∧ |
| 57 | |U t / V t + Z₁ t / Z t| ≤ 10 * (stabilityConstant * e * Θ ^ 29)) := by |
| 58 | obtain ⟨P', hPeq, hP'⟩ := exists_extension hT0 hP |
| 59 | obtain ⟨Q', hQeq, hQ'⟩ := exists_extension hT0 hQ |
| 60 | obtain ⟨N', hNeq, hN'⟩ := exists_extension hT0 hN |
| 61 | obtain ⟨U', hUeq, hU'⟩ := exists_extension hT0 hU |
| 62 | obtain ⟨V', hVeq, hV'⟩ := exists_extension hT0 hV |
| 63 | have h0 : (0:ℝ) ∈ Icc 0 T := ⟨le_rfl, hT0.le⟩ |
| 64 | have hC'c : ∀ i j, ContinuousOn (fun t => firstTwoRows (C t) i j) (Icc 0 T) := by |
| 65 | intro i j |
| 66 | by_cases hi : i = 0 |
| 67 | · simpa only [firstTwoRows, hi, ite_true] using hCc 0 j |
| 68 | · simpa only [firstTwoRows, hi, ite_false] using hCc 1 j |
| 69 | have hC'close : ∀ t ∈ Icc 0 T, ∀ i j, |
| 70 | |firstTwoRows (C t) i j - idealUnprojectedEntry i j| ≤ 5*e := by |
| 71 | intro t ht i j |
| 72 | fin_cases i |
| 73 | · simpa [firstTwoRows] using (hCclose t ht j).1 |
| 74 | · simpa [firstTwoRows] using (hCclose t ht j).2 |
| 75 | · simpa [firstTwoRows, idealUnprojectedEntry] using (hCclose t ht j).2 |
| 76 | have hPe : ∀ t ∈ Icc 0 T, HasDerivAt P' |
| 77 | (R t 0 0*P' t+R t 0 1*Q' t+R t 0 2*N' t) t := by |
| 78 | intro t ht |
| 79 | simpa only [hPeq ht, hQeq ht, hNeq ht] using hP' t ht |
| 80 | have hQe : ∀ t ∈ Icc 0 T, HasDerivAt Q' |
| 81 | (R t 1 0*P' t+R t 1 1*Q' t+R t 1 2*N' t) t := by |
| 82 | intro t ht |
| 83 | simpa only [hPeq ht, hQeq ht, hNeq ht] using hQ' t ht |
| 84 | have hNe : ∀ t ∈ Icc 0 T, HasDerivAt N' |
| 85 | (R t 2 0*P' t+R t 2 1*Q' t+R t 2 2*N' t) t := by |
| 86 | intro t ht |
| 87 | simpa only [hPeq ht, hQeq ht, hNeq ht] using hN' t ht |
| 88 | have hUe : ∀ t ∈ Icc 0 T, HasDerivAt U' |
| 89 | (velocityFirstRhs (A t) (firstTwoRows (C t)) ε (P' t) (Q' t) (N' t) (U' t) (V' t)) t := by |
| 90 | intro t ht |
| 91 | simpa only [velocityFirstRhs_firstTwoRows, hPeq ht, hQeq ht, hNeq ht, hUeq ht, hVeq ht] using hU' t ht |
| 92 | have hVe : ∀ t ∈ Icc 0 T, HasDerivAt V' |
| 93 | (velocitySecondRhs (A t) (firstTwoRows (C t)) ε (P' t) (Q' t) (N' t) (U' t) (V' t)) t := by |
| 94 | intro t ht |
| 95 | simpa only [velocitySecondRhs_firstTwoRows, hPeq ht, hQeq ht, hNeq ht, hUeq ht, hVeq ht] using hV' t ht |
| 96 | have hri : norm3 (P' 0) (Q' 0) (N' 0-1) ≤ e := by |
| 97 | simpa only [hPeq h0, hQeq h0, hNeq h0] using hrayInitial |
| 98 | have hui : U' 0 = -lam := (hUeq h0).trans hU0 |
| 99 | have hvi : V' 0 = 1 := (hVeq h0).trans hV0 |
| 100 | obtain ⟨F, F₁, Z, Z₁, hF0, hF₁0, hZ0, hZ₁0, hF, hZ, hfF, hfZ, herr, hrel⟩ := |
| 101 | controlled_stage_references hσ hσsmall hΘ hT0.le hT he hε hεe hlam hsmall |
| 102 | hRc hAc hC'c hPe hQe hNe hUe hVe hRclose hAclose hC'close hri hui hvi |
| 103 | refine ⟨F, F₁, Z, Z₁, hF0, hF₁0, hZ0, hZ₁0, hF, hZ, hfF, hfZ, ?_, ?_⟩ |
| 104 | · intro t ht |
| 105 | simpa only [hUeq ht, hVeq ht] using herr t ht |
| 106 | · intro t ht |
| 107 | have ht' : t ∈ Icc 0 T := ⟨le_trans (by norm_num) ht.1, ht.2⟩ |
| 108 | simpa only [hUeq ht', hVeq ht'] using hrel t ht |
| 109 | |
| 110 | end EulerPacketMovingFrame |