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.ActualCandidateAssembly |
| 2 | |
| 3 | /-! |
| 4 | # All quantitative residual orders for one actual diagonal schedule |
| 5 | |
| 6 | The schedule is chosen once from the genuine finite-stage estimates, retaining |
| 7 | the three cut bounds. Those same bounds imply every derivative and every |
| 8 | nonnegative power of the physical scale for the raw mixed residual. The |
| 9 | existential choice is outside both derivative-order and decay-order quantifiers. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | namespace NavierStokes.LocalResidualFlatness |
| 15 | |
| 16 | open Set Filter ProblemStatement DiagonalResidual MixedCandidateAssembly |
| 17 | open scoped Topology ContDiff |
| 18 | |
| 19 | /-- All orders of quantitative flatness of the actual unlocalized mixed |
| 20 | Navier--Stokes residual at the singular spacetime point. -/ |
| 21 | def AllResidualJetRates (h : ℝ) (A B : ℕ → VelocityField) (P : ℕ → PressureField) |
| 22 | (a : ℕ → ℕ) : Prop := |
| 23 | ∀ m : ℕ, ∀ r : ℝ, 0 ≤ r → |
| 24 | JetRate (𝓝[SpacetimeEndpoint.openPast 1] (1, (0 : Space))) |
| 25 | (PhysicalWaveSum.physicalQ h) |
| 26 | (MixedDiagonalResidual.residual (fun j => (a j : ℝ)) |
| 27 | (PhysicalWaveSum.physicalQ h) A B P) m r |
| 28 | |
| 29 | theorem allResidualJetRates_of_cutBounds {h qbig : ℝ} |
| 30 | {A B : ℕ → VelocityField} {P : ℕ → PressureField} |
| 31 | (E : StageEstimates h qbig A B P) (hh : 0 < h) (hh1 : h < 1 / 2) |
| 32 | (hqbig : 0 < qbig) {a : ℕ → ℕ} (ha : Tendsto (fun j => (a j : ℝ)) atTop atTop) |
| 33 | (hb : MixedDiagonalSchedule.ThreeCutBounds a h A B P (fun j => E.gain j / 2) |
| 34 | (MixedDiagonalSchedule.commonLoss E.potentialLoss E.directLoss E.pressureLoss) |
| 35 | PhysicalWaveSum.preterminal) : AllResidualJetRates h A B P a := by |
| 36 | let U := PhysicalWaveSum.preterminal ∩ CutStageEstimates.physicalSublevel h qbig |
| 37 | have hU : IsOpen U := PhysicalWaveSum.preterminal_open.inter |
| 38 | (CutStageEstimates.physicalSublevel_open hh hh1 qbig) |
| 39 | have hUp : U ⊆ PhysicalWaveSum.preterminal := inter_subset_left |
| 40 | have hqzero := AnnularEndpoint.physicalQ_tendsto_zero hh hh1 (x := (0 : Space)) rfl |
| 41 | have hlU : ∀ᶠ z in 𝓝[SpacetimeEndpoint.openPast 1] (1, (0 : Space)), z ∈ U := by |
| 42 | filter_upwards [self_mem_nhdsWithin, hqzero.eventually (gt_mem_nhds hqbig)] with z hz hqz |
| 43 | exact ⟨hz.1, hz.1, hqz⟩ |
| 44 | have hlq : ∀ᶠ z in 𝓝[SpacetimeEndpoint.openPast 1] (1, (0 : Space)), |
| 45 | 0 < PhysicalWaveSum.physicalQ h z ∧ PhysicalWaveSum.physicalQ h z ≤ 1 := by |
| 46 | filter_upwards [self_mem_nhdsWithin, |
| 47 | hqzero.eventually (gt_mem_nhds (show (0 : ℝ) < 1 by norm_num))] with z hz hqz |
| 48 | exact ⟨PhysicalWaveSum.physicalQ_pos hh hh1 hz.1, hqz.le⟩ |
| 49 | have hhalfmono : Monotone (fun j => E.gain j / 2) := by |
| 50 | intro i j hij |
| 51 | exact div_le_div_of_nonneg_right (E.gain_mono hij) (by norm_num) |
| 52 | have hhalftop : Tendsto (fun j => E.gain j / 2) atTop atTop := by |
| 53 | apply tendsto_atTop.2 |
| 54 | intro r |
| 55 | filter_upwards [E.gain_top.eventually (eventually_ge_atTop (2 * r))] with j hj |
| 56 | linarith |
| 57 | have hqpos : ∀ z ∈ U, 0 < PhysicalWaveSum.physicalQ h z := |
| 58 | fun z hz => PhysicalWaveSum.physicalQ_pos hh hh1 (hUp hz) |
| 59 | have hq : ContDiffOn ℝ ∞ (PhysicalWaveSum.physicalQ h) U := |
| 60 | fun z hz => (PhysicalWaveSum.physicalQ_smoothAt hh hh1 (hUp hz)).contDiffWithinAt |
| 61 | have hres (J m : ℕ) : |
| 62 | JetRate (𝓝[SpacetimeEndpoint.openPast 1] (1, (0 : Space))) (PhysicalWaveSum.physicalQ h) |
| 63 | (fun z => navierStokesResidual (MixedDiagonalResidual.uncutVelocity A B J) |
| 64 | (DiagonalJetBounds.uncutPrefix P (J + 1)) z.1 z.2) |
| 65 | m (E.gain J / 2 - E.residualLoss m) := by |
| 66 | have hn : 0 ≤ E.gain J := E.gain_zero.trans (E.gain_mono (Nat.zero_le J)) |
| 67 | exact (E.finite_residual J m).weaken hlq (by linarith) |
| 68 | intro m r hr |
| 69 | exact MixedDiagonalResidual.residual_jetRate ha hU hqpos hq |
| 70 | (fun j => (E.potential_smooth j).mono inter_subset_right) |
| 71 | (fun j => (E.direct_smooth j).mono inter_subset_right) |
| 72 | (fun j => (E.pressure_smooth j).mono inter_subset_right) hhalfmono hhalftop |
| 73 | (fun j hj m hm z hz => hb.potential j hj m hm z hz.1) |
| 74 | (fun j hj m hm z hz => hb.direct j hj m hm z hz.1) |
| 75 | (fun j hj m hm z hz => hb.pressure j hj m hm z hz.1) |
| 76 | hlU hqzero E.finite_background hres m r hr |
| 77 | |
| 78 | /-- One schedule simultaneously has smooth sums, all three cut bounds, |
| 79 | vanishing endpoint jets, and every quantitative residual rate. -/ |
| 80 | theorem exists_schedule_all_jetRates {h qbig : ℝ} |
| 81 | {A B : ℕ → VelocityField} {P : ℕ → PressureField} |
| 82 | (E : StageEstimates h qbig A B P) (hh : 0 < h) (hh1 : h < 1 / 2) |
| 83 | (hqbig : 0 < qbig) : |
| 84 | ∃ a : ℕ → ℕ, |
| 85 | MixedCandidateWitness.SelectedSchedule h qbig A B P a ∧ |
| 86 | MixedDiagonalSchedule.ThreeCutBounds a h A B P (fun j => E.gain j / 2) |
| 87 | (MixedDiagonalSchedule.commonLoss E.potentialLoss E.directLoss E.pressureLoss) |
| 88 | PhysicalWaveSum.preterminal ∧ |
| 89 | AllResidualJetRates h A B P a := by |
| 90 | have hS : ∀ᶠ z in 𝓝[SpacetimeEndpoint.openPast 1] (1, (0 : Space)), |
| 91 | z ∈ PhysicalWaveSum.preterminal := by |
| 92 | filter_upwards [self_mem_nhdsWithin] with z hz |
| 93 | exact hz.1 |
| 94 | obtain ⟨a, hal, hap, had, ham, hat, hrecip, hb, hs, hz⟩ := |
| 95 | MixedDiagonalResidual.exists_physical_schedule_residual_zero hh hh1 hqbig |
| 96 | PhysicalWaveSum.preterminal_open (Subset.refl _) hS |
| 97 | E.potential_smooth E.direct_smooth E.pressure_smooth |
| 98 | E.gain E.potentialLoss E.directLoss E.pressureLoss E.backgroundLoss E.residualLoss |
| 99 | E.potentialConstant E.directConstant E.pressureConstant E.potentialLog E.directLog E.pressureLog |
| 100 | E.potential_bound E.direct_bound E.pressure_bound |
| 101 | E.gain_zero E.gain_pos E.gain_mono E.gain_top E.finite_background E.finite_residual 1 |
| 102 | exact ⟨a, ⟨hal, hap, had, ham, hat, hrecip, hs, hz⟩, hb, |
| 103 | allResidualJetRates_of_cutBounds E hh hh1 hqbig hat hb⟩ |
| 104 | |
| 105 | /-- The actual finite-stage estimates with the repository's fixed budget and |
| 106 | geometric threshold, before any schedule information is discarded. -/ |
| 107 | def selectedEstimates := |
| 108 | ActualCandidateAssembly.estimates ActualCandidateConstruction.selectedBudget |
| 109 | ActualCandidateConstruction.selectedThreshold ActualCandidateConstruction.selectedThreshold_geometry |
| 110 | |
| 111 | /-- Closed all-order flatness for one common actual schedule. No raw-stage, |
| 112 | finite-stage, smoothness, or rate assumption remains. -/ |
| 113 | theorem selected_schedule : |
| 114 | ∃ a : ℕ → ℕ, |
| 115 | MixedCandidateWitness.SelectedSchedule CorrectionInitialization.ActualPrimary.h |
| 116 | ActualCandidateConstruction.selectedQbig ActualCandidateAssembly.selectedPotentialStages |
| 117 | ActualCandidateAssembly.selectedDirectStages ActualCandidateAssembly.selectedPressureStages a ∧ |
| 118 | MixedDiagonalSchedule.ThreeCutBounds a CorrectionInitialization.ActualPrimary.h |
| 119 | ActualCandidateAssembly.selectedPotentialStages ActualCandidateAssembly.selectedDirectStages |
| 120 | ActualCandidateAssembly.selectedPressureStages (fun j => selectedEstimates.gain j / 2) |
| 121 | (MixedDiagonalSchedule.commonLoss selectedEstimates.potentialLoss selectedEstimates.directLoss |
| 122 | selectedEstimates.pressureLoss) PhysicalWaveSum.preterminal ∧ |
| 123 | AllResidualJetRates CorrectionInitialization.ActualPrimary.h |
| 124 | ActualCandidateAssembly.selectedPotentialStages ActualCandidateAssembly.selectedDirectStages |
| 125 | ActualCandidateAssembly.selectedPressureStages a := |
| 126 | exists_schedule_all_jetRates selectedEstimates |
| 127 | CorrectionInitialization.ActualPrimary.outgoing.data.h_pos |
| 128 | CorrectionInitialization.ActualPrimary.outgoing.data.h_lt_half |
| 129 | (ActualCandidateConstruction.qbig_pos _ _) |
| 130 | |
| 131 | end NavierStokes.LocalResidualFlatness |