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.WholeDomainHeatBounds |
| 2 | import NavierStokes.ActualBaseVelocityBounds |
| 3 | import NavierStokes.ActualBasePressureBounds |
| 4 | |
| 5 | /-! # Whole-domain bounds for the uncut, actual slow base -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | open Set Filter Function |
| 10 | open scoped Topology ContDiff BigOperators |
| 11 | |
| 12 | namespace NavierStokes.WholeDomainBaseBounds |
| 13 | |
| 14 | open ProblemStatement PhysicalWaveSum WholeDomainStageBounds |
| 15 | |
| 16 | def unitDomain (h : ℝ) : Set SpaceTime := |
| 17 | {w | w ∈ preterminal ∧ physicalQ h w ≤ 1} |
| 18 | |
| 19 | theorem unitDomain_past (h : ℝ) : unitDomain h ⊆ SpacetimeEndpoint.openPast 1 := |
| 20 | fun _ hw => ⟨hw.1,mem_univ _⟩ |
| 21 | |
| 22 | variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 23 | |
| 24 | theorem rate_of_jet_limit_of_small_scale {h L : ℝ} (hh : 0 < h) (hh1 : h < 1/2) |
| 25 | (hL : 0 ≤ L) {f : SpaceTime → V} {m : ℕ} {w : SpaceTime} |
| 26 | {J : SpaceTime [×m]→L[ℝ] V} |
| 27 | (hJ : Tendsto (iteratedFDeriv ℝ m f) (𝓝[unitDomain h] w) (𝓝 J)) : |
| 28 | DiagonalResidual.JetRate (𝓝[unitDomain h] w) (physicalQ h) f m (-L) := by |
| 29 | refine ⟨‖J‖+1,by positivity,?_⟩ |
| 30 | have hb := hJ.norm.eventually (gt_mem_nhds (lt_add_one ‖J‖)) |
| 31 | filter_upwards [hb,self_mem_nhdsWithin] with y hy hyS |
| 32 | have hq := physicalQ_pos hh hh1 hyS.1 |
| 33 | have hp : 1 ≤ physicalQ h y ^ (-L) := by |
| 34 | simpa only [Real.rpow_zero] using |
| 35 | Real.rpow_le_rpow_of_exponent_ge hq hyS.2 (neg_nonpos.mpr hL) |
| 36 | exact hy.le.trans (le_mul_of_one_le_right (by positivity) hp) |
| 37 | |
| 38 | theorem local_rate {h L : ℝ} (hh : 0 < h) (hh1 : h < 1/2) (hL : 0 ≤ L) |
| 39 | {f : SpaceTime → V} (hf : ContDiffOn ℝ ∞ f (SpacetimeEndpoint.openPast 1)) |
| 40 | (ha : JointResidualLimits.AwayExtensions f) (m : ℕ) |
| 41 | (ho : DiagonalResidual.JetRate ActualBaseVelocityBounds.endpoint (physicalQ h) f m (-L)) |
| 42 | (w : SpaceTime) : |
| 43 | DiagonalResidual.JetRate (𝓝[unitDomain h] w) (physicalQ h) f m (-L) := by |
| 44 | rcases w with ⟨t,x⟩ |
| 45 | rcases lt_trichotomy t 1 with ht | ht | ht |
| 46 | · have hs := hf.contDiffAt ((SpacetimeEndpoint.openPast_isOpen 1).mem_nhds |
| 47 | (show (t,x) ∈ SpacetimeEndpoint.openPast 1 from ⟨ht,mem_univ _⟩)) |
| 48 | have hj : ContDiffAt ℝ 0 (iteratedFDeriv ℝ m f) (t,x) := |
| 49 | hs.iteratedFDeriv_right (by exact_mod_cast (le_top : 0 + (m : ℕ∞) ≤ ⊤)) |
| 50 | exact rate_of_jet_limit_of_small_scale hh hh1 hL |
| 51 | (hj.continuousAt.tendsto.mono_left nhdsWithin_le_nhds) |
| 52 | · subst t |
| 53 | have hl : 𝓝[unitDomain h] (1,x) ≤ 𝓝[SpacetimeEndpoint.openPast 1] (1,x) := |
| 54 | nhdsWithin_mono _ (unitDomain_past h) |
| 55 | by_cases hx : x = 0 |
| 56 | · subst x |
| 57 | obtain ⟨C,hC,hb⟩ := ho |
| 58 | exact ⟨C,hC,hb.filter_mono hl⟩ |
| 59 | · obtain ⟨U⟩ := ha x hx |
| 60 | exact rate_of_jet_limit_of_small_scale hh hh1 hL ((U.jet_tendsto m).mono_left hl) |
| 61 | · refine ⟨0,le_rfl,?_⟩ |
| 62 | have hn : {y : SpaceTime | 1 < y.1} ∈ 𝓝 (t,x) := |
| 63 | (isOpen_lt continuous_const continuous_fst).mem_nhds ht |
| 64 | filter_upwards [nhdsWithin_le_nhds hn,self_mem_nhdsWithin] with y hy hyS |
| 65 | exact False.elim (not_lt_of_ge hy.le hyS.1) |
| 66 | |
| 67 | theorem bound_of_origin_and_exterior {h L R : ℝ} (hh : 0 < h) (hh1 : h < 1/2) |
| 68 | (hL : 0 ≤ L) (hR : 0 ≤ R) {f : SpaceTime → V} |
| 69 | (hf : ContDiffOn ℝ ∞ f (SpacetimeEndpoint.openPast 1)) |
| 70 | (ha : JointResidualLimits.AwayExtensions f) (m : ℕ) |
| 71 | (ho : DiagonalResidual.JetRate ActualBaseVelocityBounds.endpoint (physicalQ h) f m (-L)) |
| 72 | (he : ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ preterminal, physicalQ h w ≤ 1 → |
| 73 | R < (SlowBorelBase.cartesianChart h w).2.1 → |
| 74 | ‖iteratedFDeriv ℝ m f w‖ ≤ C * physicalQ h w ^ (-L)) : |
| 75 | ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ preterminal, physicalQ h w ≤ 1 → |
| 76 | ‖iteratedFDeriv ℝ m f w‖ ≤ C * physicalQ h w ^ (-L) := by |
| 77 | let K := Metric.closedBall (0 : SpaceTime) (R+2) |
| 78 | obtain ⟨A,hA,hAb⟩ := compact_bound_of_local_rates (S := unitDomain h) |
| 79 | (isCompact_closedBall (0 : SpaceTime) (R+2)) |
| 80 | (fun _ hw => physicalQ_pos hh hh1 hw.1) |
| 81 | (fun _ _ => local_rate hh hh1 hL hf ha m ho _) |
| 82 | obtain ⟨B,hB,hBb⟩ := he |
| 83 | refine ⟨A+B,add_nonneg hA hB,?_⟩ |
| 84 | intro w hw hq |
| 85 | by_cases hk : w ∈ K |
| 86 | · exact (hAb w ⟨hk,hw,hq⟩).trans |
| 87 | (mul_le_mul_of_nonneg_right (le_add_of_nonneg_right hB) |
| 88 | (Real.rpow_nonneg (physicalQ_pos hh hh1 hw).le _)) |
| 89 | · have hX : R < (SlowBorelBase.cartesianChart h w).2.1 := by |
| 90 | by_contra hX |
| 91 | exact hk (in_compact_of_radial_bound hh hh1 hR hw hq (le_of_not_gt hX)) |
| 92 | exact (hBb w hw hq hX).trans |
| 93 | (mul_le_mul_of_nonneg_right (le_add_of_nonneg_left hA) |
| 94 | (Real.rpow_nonneg (physicalQ_pos hh hh1 hw).le _)) |
| 95 | |
| 96 | section Actual |
| 97 | |
| 98 | variable {F : OutgoingProfile.Profile} {W : NominalProfile.Witness F} |
| 99 | (H : NominalConeAssembly.Certificate W) {ld : ModulatedProfileAssembly.LoopData W} |
| 100 | (v : ModulatedProfileAssembly.Witness ld) |
| 101 | |
| 102 | theorem velocity_bound (upper : ℝ) (B m : ℕ) : |
| 103 | ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ preterminal, physicalQ F.data.h w ≤ 1 → |
| 104 | ‖iteratedFDeriv ℝ m (FinalSlowBase.velocity H v upper B) w‖ ≤ |
| 105 | C * physicalQ F.data.h w ^ (-ActualBaseVelocityBounds.heatLoss m) := by |
| 106 | apply bound_of_origin_and_exterior F.data.h_pos F.data.h_lt_half |
| 107 | (ActualBaseVelocityBounds.heatLoss_nonneg m) (BaseExterior.nominalExteriorRadius_pos W).le |
| 108 | (FinalSlowBase.velocity_smooth H v upper B) |
| 109 | (SlowBaseEndpoint.final_fields_awayExtensions H v upper B).1 m |
| 110 | (ActualBaseVelocityBounds.velocity_rate H v upper B m) |
| 111 | obtain ⟨C,hC,hb⟩ := WholeDomainHeatBounds.heat_velocity_bound |
| 112 | (BaseExterior.nominalHeatNormalization W) F.data.h_pos F.data.h_lt_half |
| 113 | (BaseExterior.nominalExteriorRadius_pos W) m |
| 114 | refine ⟨C,hC,?_⟩ |
| 115 | intro w hw hq hX |
| 116 | have he : FinalSlowBase.velocity H v upper B =ᶠ[𝓝 w] |
| 117 | BaseExterior.heatVelocity (BaseExterior.nominalHeatNormalization W) F.data.h := |
| 118 | Filter.eventuallyEq_of_mem |
| 119 | ((BaseExterior.cartesianExterior_isOpen F.data.h_pos F.data.h_lt_half _).mem_nhds ⟨hw,hX⟩) |
| 120 | (FinalSlowBase.exterior_fields_eq_heat H v upper B).1 |
| 121 | rw [iteratedFDeriv_eq_of_eventuallyEq he m] |
| 122 | refine (hb w hw hq hX).trans (mul_le_mul_of_nonneg_left |
| 123 | (Real.rpow_le_rpow_of_exponent_ge (physicalQ_pos F.data.h_pos F.data.h_lt_half hw) hq ?_) hC) |
| 124 | rw [ActualBaseVelocityBounds.heatLoss_eq] |
| 125 | unfold WholeDomainHeatBounds.heatLoss |
| 126 | have hm : 0 ≤ (m : ℝ) := by positivity |
| 127 | nlinarith [sq_nonneg (m : ℝ)] |
| 128 | |
| 129 | theorem pressure_bound (upper : ℝ) (B m : ℕ) : |
| 130 | ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ preterminal, physicalQ F.data.h w ≤ 1 → |
| 131 | ‖iteratedFDeriv ℝ m (FinalSlowBase.pressure H v upper B) w‖ ≤ |
| 132 | C * physicalQ F.data.h w ^ (-ActualBasePressureBounds.pressureLoss m) := by |
| 133 | apply bound_of_origin_and_exterior F.data.h_pos F.data.h_lt_half |
| 134 | (ActualBasePressureBounds.pressureLoss_nonneg m) (BaseExterior.nominalExteriorRadius_pos W).le |
| 135 | (FinalSlowBase.pressure_smooth H v upper B) |
| 136 | (SlowBaseEndpoint.final_fields_awayExtensions H v upper B).2 m |
| 137 | (ActualBasePressureBounds.pressure_rate H v upper B m) |
| 138 | obtain ⟨C,hC,hb⟩ := WholeDomainHeatBounds.heat_pressure_bound |
| 139 | (BaseExterior.nominalHeatNormalization W) F.data.h_pos F.data.h_lt_half |
| 140 | (BaseExterior.nominalExteriorRadius_pos W) m |
| 141 | refine ⟨C,hC,?_⟩ |
| 142 | intro w hw hq hX |
| 143 | have he : FinalSlowBase.pressure H v upper B =ᶠ[𝓝 w] |
| 144 | BaseExterior.heatPressureField (BaseExterior.nominalHeatNormalization W) F.data.h := |
| 145 | Filter.eventuallyEq_of_mem |
| 146 | ((BaseExterior.cartesianExterior_isOpen F.data.h_pos F.data.h_lt_half _).mem_nhds ⟨hw,hX⟩) |
| 147 | (FinalSlowBase.exterior_fields_eq_heat H v upper B).2 |
| 148 | rw [iteratedFDeriv_eq_of_eventuallyEq he m] |
| 149 | refine (hb w hw hq hX).trans (mul_le_mul_of_nonneg_left |
| 150 | (Real.rpow_le_rpow_of_exponent_ge (physicalQ_pos F.data.h_pos F.data.h_lt_half hw) hq ?_) hC) |
| 151 | unfold WholeDomainHeatBounds.heatLoss ActualBasePressureBounds.pressureLoss |
| 152 | have hm : 0 ≤ (m : ℝ) := by positivity |
| 153 | linarith |
| 154 | |
| 155 | def baseLoss (m : ℕ) : ℝ := |
| 156 | ActualBaseVelocityBounds.heatLoss m + ActualBasePressureBounds.pressureLoss m |
| 157 | |
| 158 | theorem baseLoss_nonneg (m : ℕ) : 0 ≤ baseLoss m := |
| 159 | add_nonneg (ActualBaseVelocityBounds.heatLoss_nonneg m) |
| 160 | (ActualBasePressureBounds.pressureLoss_nonneg m) |
| 161 | |
| 162 | /-- One derivative-order loss controls both actual base fields throughout |
| 163 | the same unbounded physical domain, independently of the Borel index. -/ |
| 164 | theorem velocity_pressure_bound (upper : ℝ) (B m : ℕ) : |
| 165 | ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ preterminal, physicalQ F.data.h w ≤ 1 → |
| 166 | ‖iteratedFDeriv ℝ m (FinalSlowBase.velocity H v upper B) w‖ + |
| 167 | ‖iteratedFDeriv ℝ m (FinalSlowBase.pressure H v upper B) w‖ ≤ |
| 168 | C * physicalQ F.data.h w ^ (-baseLoss m) := by |
| 169 | obtain ⟨A,hA,hAb⟩ := velocity_bound H v upper B m |
| 170 | obtain ⟨C,hC,hCb⟩ := pressure_bound H v upper B m |
| 171 | refine ⟨A+C,add_nonneg hA hC,?_⟩ |
| 172 | intro w hw hq |
| 173 | have hq0 := physicalQ_pos F.data.h_pos F.data.h_lt_half hw |
| 174 | have hv : ‖iteratedFDeriv ℝ m (FinalSlowBase.velocity H v upper B) w‖ ≤ |
| 175 | A * physicalQ F.data.h w ^ (-baseLoss m) := |
| 176 | (hAb w hw hq).trans (mul_le_mul_of_nonneg_left |
| 177 | (Real.rpow_le_rpow_of_exponent_ge hq0 hq (by |
| 178 | unfold baseLoss |
| 179 | linarith [ActualBasePressureBounds.pressureLoss_nonneg m])) hA) |
| 180 | have hp : ‖iteratedFDeriv ℝ m (FinalSlowBase.pressure H v upper B) w‖ ≤ |
| 181 | C * physicalQ F.data.h w ^ (-baseLoss m) := |
| 182 | (hCb w hw hq).trans (mul_le_mul_of_nonneg_left |
| 183 | (Real.rpow_le_rpow_of_exponent_ge hq0 hq (by |
| 184 | unfold baseLoss |
| 185 | linarith [ActualBaseVelocityBounds.heatLoss_nonneg m])) hC) |
| 186 | simpa only [add_mul] using add_le_add hv hp |
| 187 | |
| 188 | end Actual |
| 189 | |
| 190 | end NavierStokes.WholeDomainBaseBounds |