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.ExtendedHeatedOutgoing |
| 2 | import NavierStokes.TerminalCone |
| 3 | |
| 4 | /-! |
| 5 | # A common scheduled profile below caller-supplied parameter bounds |
| 6 | |
| 7 | The reset coefficient bound is selected before lambda. The caller's lambda |
| 8 | cap is intersected with the existing reset and energy thresholds before any |
| 9 | profile is constructed. The actual core is then fixed before choosing h. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | namespace NavierStokes.ScheduledProfileChoice |
| 15 | |
| 16 | open OutgoingProfile (Profile) |
| 17 | open ExtendedHeatedOutgoing (ScheduleBounds) |
| 18 | |
| 19 | /-- The actual core and reset bound precede every subsequent height choice. -/ |
| 20 | theorem exists_scheduled_core_below (P m : ℝ) (hP : 0 < P) (hm : 0 < m) |
| 21 | (cap : ℝ → ℝ) (hcap : ∀ K : ℝ, 0 < K → 0 < cap K) : |
| 22 | ∃ (K B : ℝ) (core : OutgoingSchedule.Parameters), |
| 23 | 0 < K ∧ 0 < B ∧ core.P = P ∧ core.m = m ∧ |
| 24 | core.wait = 60 * Real.log (1 / core.lam) ∧ |
| 25 | core.lam < cap K ∧ core.lam < 1 / 120 ∧ |
| 26 | ∀ h : ℝ, 0 < h → 2 * h < core.lam → |
| 27 | ∃ F : Profile, F.data.core = core ∧ F.data.h = h ∧ F.coefficientBound = K ∧ |
| 28 | ScheduleBounds F ∧ OutgoingProfile.Specification F B := by |
| 29 | obtain ⟨resetLam, K, hresetLam, hK, hreset⟩ := UniformAngularReset.exists_scheduled_reset |
| 30 | obtain ⟨delta, hdelta, hrate⟩ := PulseAmplitude.exists_rate_threshold |
| 31 | (CorrectedPulseAmplitude.combinedConstant P m K) |
| 32 | let lam₀ := min (cap K) (min resetLam (min delta (1 / 120 : ℝ))) |
| 33 | have hlam₀ : 0 < lam₀ := lt_min (hcap K hK) (lt_min hresetLam (lt_min hdelta (by norm_num))) |
| 34 | let lam := lam₀ / 2 |
| 35 | have hlam : 0 < lam := half_pos hlam₀ |
| 36 | have hlam₀' : lam < lam₀ := half_lt_self hlam₀ |
| 37 | have hcaller : lam < cap K := hlam₀'.trans_le (min_le_left _ _) |
| 38 | have hrest : lam < min resetLam (min delta (1 / 120 : ℝ)) := |
| 39 | hlam₀'.trans_le (min_le_right _ _) |
| 40 | have hreset' : lam < resetLam := hrest.trans_le (min_le_left _ _) |
| 41 | have hdelta' : lam < delta := hrest.trans_le ((min_le_right _ _).trans (min_le_left _ _)) |
| 42 | have hsmall : lam < 1 / 120 := hrest.trans_le ((min_le_right _ _).trans (min_le_right _ _)) |
| 43 | let core := OutgoingSchedule.paperParameters P m lam hP hm hlam (by linarith) |
| 44 | refine ⟨K, 128 * CorrectedPulseAmplitude.combinedConstant P m K, core, hK, |
| 45 | mul_pos (by norm_num) (CorrectedPulseAmplitude.combinedConstant_pos hP m K hK), |
| 46 | rfl, rfl, rfl, hcaller, hsmall, ?_⟩ |
| 47 | intro h hh htail |
| 48 | let d : OutgoingTail.TailData := ⟨core, h, hh, htail⟩ |
| 49 | obtain ⟨r⟩ := hreset d hreset' |
| 50 | let F : Profile := ⟨d, K, r⟩ |
| 51 | have b : ScheduleBounds F := { |
| 52 | coefficient_pos := hK |
| 53 | lambda_small := hsmall.le |
| 54 | wait_eq := rfl |
| 55 | scale_small := hrate lam hlam hdelta' } |
| 56 | exact ⟨F, rfl, rfl, rfl, b, b.specification⟩ |
| 57 | |
| 58 | /-- A scalar-parameter form of the same construction, with the reset bound |
| 59 | retained as an explicit preceding existential. -/ |
| 60 | theorem exists_scheduled_profile_below (P m : ℝ) (hP : 0 < P) (hm : 0 < m) |
| 61 | (cap : ℝ → ℝ) (hcap : ∀ K : ℝ, 0 < K → 0 < cap K) : |
| 62 | ∃ K lam B : ℝ, |
| 63 | 0 < K ∧ 0 < lam ∧ lam < cap K ∧ lam < 1 / 120 ∧ 0 < B ∧ |
| 64 | ∀ h : ℝ, 0 < h → 2 * h < lam → |
| 65 | ∃ F : Profile, F.data.core.P = P ∧ F.data.core.m = m ∧ |
| 66 | F.data.core.lam = lam ∧ F.data.h = h ∧ F.coefficientBound = K ∧ |
| 67 | ScheduleBounds F ∧ OutgoingProfile.Specification F B := by |
| 68 | obtain ⟨K, B, core, hK, hB, hcP, hcm, _hwait, hcaller, hsmall, hf⟩ := |
| 69 | exists_scheduled_core_below P m hP hm cap hcap |
| 70 | refine ⟨K, core.lam, B, hK, core.lam_pos, hcaller, hsmall, hB, ?_⟩ |
| 71 | intro h hh ht |
| 72 | obtain ⟨F, hcore, hh', hK', hb, hF⟩ := hf h hh ht |
| 73 | refine ⟨F, ?_, ?_, ?_, hh', hK', hb, hF⟩ |
| 74 | · rw [hcore, hcP] |
| 75 | · rw [hcore, hcm] |
| 76 | · rw [hcore] |
| 77 | |
| 78 | /-- This number depends on the already fixed core and an additional caller |
| 79 | height bound. It is chosen before the terminal exponent h. -/ |
| 80 | noncomputable def heightCap (core : OutgoingSchedule.Parameters) (extra : ℝ) : ℝ := |
| 81 | min (core.lam / 4) |
| 82 | (min extra (min (1 / 1000) (min (1 / 4) (1 / (1 + TerminalCone.releaseBudget core))))) |
| 83 | |
| 84 | theorem heightCap_pos (core : OutgoingSchedule.Parameters) {extra : ℝ} (he : 0 < extra) : |
| 85 | 0 < heightCap core extra := by |
| 86 | have hb := TerminalCone.releaseBudget_nonneg core |
| 87 | exact lt_min (div_pos core.lam_pos (by norm_num)) |
| 88 | (lt_min he (lt_min (by norm_num) (lt_min (by norm_num) (by positivity)))) |
| 89 | |
| 90 | theorem heightCap_bounds (core : OutgoingSchedule.Parameters) (extra : ℝ) : |
| 91 | 2 * heightCap core extra < core.lam ∧ heightCap core extra ≤ extra ∧ |
| 92 | heightCap core extra ≤ 1 / 1000 ∧ heightCap core extra ≤ 1 / 4 ∧ |
| 93 | heightCap core extra ≤ 1 / (1 + TerminalCone.releaseBudget core) := by |
| 94 | have hl : heightCap core extra ≤ core.lam / 4 := min_le_left _ _ |
| 95 | have hr : heightCap core extra ≤ |
| 96 | min extra (min (1 / 1000) (min (1 / 4) (1 / (1 + TerminalCone.releaseBudget core)))) := min_le_right _ _ |
| 97 | have hrest := hr.trans (min_le_right _ _) |
| 98 | have hlast := hrest.trans (min_le_right _ _) |
| 99 | exact ⟨by linarith [core.lam_pos], hr.trans (min_le_left _ _), |
| 100 | hrest.trans (min_le_left _ _), hlast.trans (min_le_left _ _), hlast.trans (min_le_right _ _)⟩ |
| 101 | |
| 102 | /-- The common lambda and all height caps are fixed before h and before the |
| 103 | actual reset/Profile. The additional cap may impose the outgoing-cone height |
| 104 | bound; the built-in caps also give the axis and terminal requirements. -/ |
| 105 | theorem exists_scheduled_family_below (P m : ℝ) (hP : 0 < P) (hm : 0 < m) |
| 106 | (cap : ℝ → ℝ) (hcap : ∀ K : ℝ, 0 < K → 0 < cap K) |
| 107 | (extraHeight : OutgoingSchedule.Parameters → ℝ) |
| 108 | (hextra : ∀ core : OutgoingSchedule.Parameters, 0 < extraHeight core) : |
| 109 | ∃ (K B H : ℝ) (core : OutgoingSchedule.Parameters), |
| 110 | 0 < K ∧ 0 < B ∧ 0 < H ∧ core.P = P ∧ core.m = m ∧ |
| 111 | core.wait = 60 * Real.log (1 / core.lam) ∧ |
| 112 | core.lam < cap K ∧ core.lam < 1 / 120 ∧ |
| 113 | 2 * H < core.lam ∧ H ≤ extraHeight core ∧ H ≤ 1 / 1000 ∧ |
| 114 | ∀ h : ℝ, 0 < h → h ≤ H → |
| 115 | ∃ F : Profile, F.data.core = core ∧ F.data.h = h ∧ F.coefficientBound = K ∧ |
| 116 | ScheduleBounds F ∧ OutgoingProfile.Specification F B ∧ TerminalCone.SmallTail F.data := by |
| 117 | obtain ⟨K, B, core, hK, hB, hcP, hcm, hwait, hcaller, hsmall, hf⟩ := |
| 118 | exists_scheduled_core_below P m hP hm cap hcap |
| 119 | have hb := heightCap_bounds core (extraHeight core) |
| 120 | refine ⟨K, B, heightCap core (extraHeight core), core, hK, hB, |
| 121 | heightCap_pos core (hextra core), hcP, hcm, hwait, hcaller, hsmall, |
| 122 | hb.1, hb.2.1, hb.2.2.1, ?_⟩ |
| 123 | intro h hh hH |
| 124 | have ht : 2 * h < core.lam := (mul_le_mul_of_nonneg_left hH (by norm_num)).trans_lt hb.1 |
| 125 | obtain ⟨F, hcore, hh', hK', hs, hF⟩ := hf h hh ht |
| 126 | refine ⟨F, hcore, hh', hK', hs, hF, ?_⟩ |
| 127 | unfold TerminalCone.SmallTail |
| 128 | rw [hcore, hh'] |
| 129 | exact ⟨hH.trans hb.2.2.2.1, hH.trans hb.2.2.2.2⟩ |
| 130 | |
| 131 | end NavierStokes.ScheduledProfileChoice |