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.LocalPhysicalCopyBounds |
| 2 | |
| 3 | /-! |
| 4 | # Positive lift-time localization of actual copy amplitudes |
| 5 | |
| 6 | The gate changes only the amplitude outside positive lift time. The physical |
| 7 | common lift has positive time exactly before terminal time, so all physical |
| 8 | copy fields and their ambient jets agree there with the original fields. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | namespace NavierStokes.PositiveTimeCopyFamily |
| 14 | |
| 15 | open Set Function Filter ProblemStatement PhysicalCopyBounds |
| 16 | open PhysicalWaveSum (WaveIndex commonLift preterminal) |
| 17 | open scoped Topology ContDiff BigOperators |
| 18 | |
| 19 | abbrev LiftPoint := PhysicalGraphBounds.LiftPoint |
| 20 | |
| 21 | def liftPast : Set LiftPoint := {x | 0 < x.1.1} |
| 22 | |
| 23 | theorem liftPast_open : IsOpen liftPast := |
| 24 | isOpen_lt continuous_const continuous_fst.fst |
| 25 | |
| 26 | /-- The carrier and gap are unchanged. Only the amplitude is extended by |
| 27 | zero outside positive native lift time. -/ |
| 28 | noncomputable def gate {H : ℕ} {K : Type*} (f : CopyFamily H K) : CopyFamily H K := by |
| 29 | classical |
| 30 | exact { |
| 31 | gap := f.gap |
| 32 | carrier := f.carrier |
| 33 | amplitude k I x := if x ∈ liftPast then f.amplitude k I x else 0 } |
| 34 | |
| 35 | variable {H : ℕ} {K : Type*} |
| 36 | |
| 37 | @[simp] theorem gate_gap (f : CopyFamily H K) : (gate f).gap = f.gap := rfl |
| 38 | |
| 39 | @[simp] theorem gate_carrier (f : CopyFamily H K) : (gate f).carrier = f.carrier := rfl |
| 40 | |
| 41 | theorem gate_amplitude_eq (f : CopyFamily H K) (k : K) (I : WaveIndex H) |
| 42 | {x : LiftPoint} (hx : x ∈ liftPast) : (gate f).amplitude k I x = f.amplitude k I x := by |
| 43 | simp only [gate, ite_eq_left hx] |
| 44 | |
| 45 | theorem gate_amplitude_zero (f : CopyFamily H K) (k : K) (I : WaveIndex H) |
| 46 | {x : LiftPoint} (hx : x ∉ liftPast) : (gate f).amplitude k I x = 0 := by |
| 47 | simp only [gate, ite_eq_right hx] |
| 48 | |
| 49 | theorem gate_amplitude_ne_zero_iff (f : CopyFamily H K) (k : K) (I : WaveIndex H) |
| 50 | (x : LiftPoint) : |
| 51 | (gate f).amplitude k I x ≠ 0 ↔ x ∈ liftPast ∧ f.amplitude k I x ≠ 0 := by |
| 52 | classical |
| 53 | by_cases hx : x ∈ liftPast <;> simp [gate, hx] |
| 54 | |
| 55 | theorem gate_amplitude_germ (f : CopyFamily H K) (k : K) (I : WaveIndex H) |
| 56 | {x : LiftPoint} (hx : x ∈ liftPast) : |
| 57 | (gate f).amplitude k I =ᶠ[𝓝 x] f.amplitude k I := by |
| 58 | filter_upwards [liftPast_open.mem_nhds hx] with y hy |
| 59 | exact gate_amplitude_eq f k I hy |
| 60 | |
| 61 | theorem gate_amplitude_jets (f : CopyFamily H K) (k : K) (I : WaveIndex H) |
| 62 | {x : LiftPoint} (hx : x ∈ liftPast) (m : ℕ) : |
| 63 | iteratedFDeriv ℝ m ((gate f).amplitude k I) x = |
| 64 | iteratedFDeriv ℝ m (f.amplitude k I) x := |
| 65 | PhysicalWaveSum.iteratedFDeriv_eq_of_eventuallyEq (gate_amplitude_germ f k I hx) m |
| 66 | |
| 67 | theorem gate_amplitude_support_subset (f : CopyFamily H K) (k : K) (I : WaveIndex H) : |
| 68 | support ((gate f).amplitude k I) ⊆ support (f.amplitude k I) := |
| 69 | fun x hx => ((gate_amplitude_ne_zero_iff f k I x).mp hx).2 |
| 70 | |
| 71 | /-- The original closed copy cells still contain the gated amplitude. -/ |
| 72 | noncomputable def gateCells {f : CopyFamily H K} (hc : SupportCells f) : SupportCells (gate f) where |
| 73 | cells := hc.cells |
| 74 | support I k := (gate_amplitude_support_subset f k I).trans (hc.support I k) |
| 75 | |
| 76 | @[simp] theorem gateCells_cells {f : CopyFamily H K} (hc : SupportCells f) : |
| 77 | (gateCells hc).cells = hc.cells := rfl |
| 78 | |
| 79 | /-- Carrier bounds refer to the same carrier and the same cells. -/ |
| 80 | noncomputable def gateCarrier {f : CopyFamily H K} (hc : SupportCells f) {a b h r0 : ℝ} |
| 81 | (hb : CarrierBounds f hc a b h r0) : CarrierBounds (gate f) (gateCells hc) a b h r0 where |
| 82 | region := hb.region |
| 83 | open_region := hb.open_region |
| 84 | jets := hb.jets |
| 85 | contains := hb.contains |
| 86 | |
| 87 | @[simp] theorem gateCarrier_region {f : CopyFamily H K} (hc : SupportCells f) {a b h r0 : ℝ} |
| 88 | (hb : CarrierBounds f hc a b h r0) : (gateCarrier hc hb).region = hb.region := rfl |
| 89 | |
| 90 | theorem commonLift_time (h : ℝ) (n d : ℕ) (w : SpaceTime) : |
| 91 | (commonLift h n d w).1.1 = (1 - w.1) / ChartScales.Q n := |
| 92 | PhysicalGraphBounds.physicalChart_time h n w |
| 93 | |
| 94 | /-- This identity also holds on the axis and for arbitrary cover gap. -/ |
| 95 | theorem commonLift_mem_liftPast_iff (h : ℝ) (n d : ℕ) (w : SpaceTime) : |
| 96 | commonLift h n d w ∈ liftPast ↔ w ∈ preterminal := by |
| 97 | change 0 < (commonLift h n d w).1.1 ↔ w.1 < 1 |
| 98 | rw [commonLift_time, div_pos_iff_of_pos_right (ChartScales.Q_pos n), sub_pos] |
| 99 | |
| 100 | theorem commonLift_mem_liftPast (h : ℝ) (n d : ℕ) {w : SpaceTime} (hw : w ∈ preterminal) : |
| 101 | commonLift h n d w ∈ liftPast := (commonLift_mem_liftPast_iff h n d w).mpr hw |
| 102 | |
| 103 | section PhysicalFields |
| 104 | |
| 105 | variable (f : CopyFamily H K) (a h r0 : ℝ) |
| 106 | |
| 107 | theorem term_eq (I : WaveIndex H) (k : K) {w : SpaceTime} (hw : w ∈ preterminal) : |
| 108 | (gate f).term a h r0 I k w = f.term a h r0 I k w := by |
| 109 | have hl := commonLift_mem_liftPast h I.1.val.1 (f.gap I.1) hw |
| 110 | simp only [CopyFamily.term, CopyFamily.copy, PhysicalWaveSum.WaveFamily.term, |
| 111 | PhysicalWaveSum.globalWave, PhysicalWaveSum.commonWave, gate, ite_eq_left hl] |
| 112 | |
| 113 | theorem term_zero (I : WaveIndex H) (k : K) {w : SpaceTime} (hw : w ∉ preterminal) : |
| 114 | (gate f).term a h r0 I k w = 0 := by |
| 115 | apply PhysicalWaveSum.globalWave_eq_zero |
| 116 | exact gate_amplitude_zero f k I (fun hl => hw ((commonLift_mem_liftPast_iff h |
| 117 | I.1.val.1 (f.gap I.1) w).mp hl)) |
| 118 | |
| 119 | theorem term_germ (I : WaveIndex H) (k : K) {w : SpaceTime} (hw : w ∈ preterminal) : |
| 120 | (gate f).term a h r0 I k =ᶠ[𝓝 w] f.term a h r0 I k := by |
| 121 | filter_upwards [PhysicalWaveSum.preterminal_open.mem_nhds hw] with y hy |
| 122 | exact term_eq f a h r0 I k hy |
| 123 | |
| 124 | theorem term_jets (I : WaveIndex H) (k : K) {w : SpaceTime} (hw : w ∈ preterminal) (m : ℕ) : |
| 125 | iteratedFDeriv ℝ m ((gate f).term a h r0 I k) w = |
| 126 | iteratedFDeriv ℝ m (f.term a h r0 I k) w := |
| 127 | PhysicalWaveSum.iteratedFDeriv_eq_of_eventuallyEq (term_germ f a h r0 I k hw) m |
| 128 | |
| 129 | theorem term_support_subset (I : WaveIndex H) (k : K) : |
| 130 | support ((gate f).term a h r0 I k) ⊆ support (f.term a h r0 I k) := by |
| 131 | intro w hw |
| 132 | by_cases ht : w ∈ preterminal |
| 133 | · simpa only [mem_support, term_eq f a h r0 I k ht] using hw |
| 134 | · exact (hw (term_zero f a h r0 I k ht)).elim |
| 135 | |
| 136 | theorem term_tsupport_subset (I : WaveIndex H) (k : K) : |
| 137 | tsupport ((gate f).term a h r0 I k) ⊆ tsupport (f.term a h r0 I k) := |
| 138 | closure_mono (term_support_subset f a h r0 I k) |
| 139 | |
| 140 | theorem periodized_eq (I : WaveIndex H) {w : SpaceTime} (hw : w ∈ preterminal) : |
| 141 | (gate f).periodized a h r0 I w = f.periodized a h r0 I w := by |
| 142 | apply tsum_congr |
| 143 | intro k |
| 144 | exact term_eq f a h r0 I k hw |
| 145 | |
| 146 | theorem periodized_zero (I : WaveIndex H) {w : SpaceTime} (hw : w ∉ preterminal) : |
| 147 | (gate f).periodized a h r0 I w = 0 := by |
| 148 | simp only [CopyFamily.periodized, term_zero f a h r0 I _ hw, tsum_zero] |
| 149 | |
| 150 | theorem periodized_germ (I : WaveIndex H) {w : SpaceTime} (hw : w ∈ preterminal) : |
| 151 | (gate f).periodized a h r0 I =ᶠ[𝓝 w] f.periodized a h r0 I := by |
| 152 | filter_upwards [PhysicalWaveSum.preterminal_open.mem_nhds hw] with y hy |
| 153 | exact periodized_eq f a h r0 I hy |
| 154 | |
| 155 | theorem periodized_jets (I : WaveIndex H) {w : SpaceTime} (hw : w ∈ preterminal) (m : ℕ) : |
| 156 | iteratedFDeriv ℝ m ((gate f).periodized a h r0 I) w = |
| 157 | iteratedFDeriv ℝ m (f.periodized a h r0 I) w := |
| 158 | PhysicalWaveSum.iteratedFDeriv_eq_of_eventuallyEq (periodized_germ f a h r0 I hw) m |
| 159 | |
| 160 | theorem sum_eq {w : SpaceTime} (hw : w ∈ preterminal) : |
| 161 | (gate f).sum a h r0 w = f.sum a h r0 w := by |
| 162 | exact congrArg (fun g : WaveIndex H → ℂ => ∑ᶠ I, g I) |
| 163 | (funext (fun I => periodized_eq f a h r0 I hw)) |
| 164 | |
| 165 | theorem sum_zero {w : SpaceTime} (hw : w ∉ preterminal) : (gate f).sum a h r0 w = 0 := by |
| 166 | simp only [CopyFamily.sum, periodized_zero f a h r0 _ hw, finsum_zero] |
| 167 | |
| 168 | theorem sum_germ {w : SpaceTime} (hw : w ∈ preterminal) : |
| 169 | (gate f).sum a h r0 =ᶠ[𝓝 w] f.sum a h r0 := by |
| 170 | filter_upwards [PhysicalWaveSum.preterminal_open.mem_nhds hw] with y hy |
| 171 | exact sum_eq f a h r0 hy |
| 172 | |
| 173 | theorem sum_jets {w : SpaceTime} (hw : w ∈ preterminal) (m : ℕ) : |
| 174 | iteratedFDeriv ℝ m ((gate f).sum a h r0) w = iteratedFDeriv ℝ m (f.sum a h r0) w := |
| 175 | PhysicalWaveSum.iteratedFDeriv_eq_of_eventuallyEq (sum_germ f a h r0 hw) m |
| 176 | |
| 177 | end PhysicalFields |
| 178 | |
| 179 | section VectorFields |
| 180 | |
| 181 | variable (f : Fin 3 → CopyFamily H K) (a h r0 : ℝ) |
| 182 | |
| 183 | theorem vectorSum_eq {w : SpaceTime} (hw : w ∈ preterminal) : |
| 184 | PhysicalCopyBounds.vectorSum (fun i => gate (f i)) a h r0 w = |
| 185 | PhysicalCopyBounds.vectorSum f a h r0 w := by |
| 186 | simp only [PhysicalCopyBounds.vectorSum, sum_eq (f _) a h r0 hw] |
| 187 | |
| 188 | theorem vectorSum_zero {w : SpaceTime} (hw : w ∉ preterminal) : |
| 189 | PhysicalCopyBounds.vectorSum (fun i => gate (f i)) a h r0 w = 0 := by |
| 190 | simp only [PhysicalCopyBounds.vectorSum, sum_zero (f _) a h r0 hw, map_zero, Finset.sum_const_zero] |
| 191 | |
| 192 | theorem vectorSum_germ {w : SpaceTime} (hw : w ∈ preterminal) : |
| 193 | PhysicalCopyBounds.vectorSum (fun i => gate (f i)) a h r0 =ᶠ[𝓝 w] |
| 194 | PhysicalCopyBounds.vectorSum f a h r0 := by |
| 195 | filter_upwards [PhysicalWaveSum.preterminal_open.mem_nhds hw] with y hy |
| 196 | exact vectorSum_eq f a h r0 hy |
| 197 | |
| 198 | theorem vectorSum_jets {w : SpaceTime} (hw : w ∈ preterminal) (m : ℕ) : |
| 199 | iteratedFDeriv ℝ m (PhysicalCopyBounds.vectorSum (fun i => gate (f i)) a h r0) w = |
| 200 | iteratedFDeriv ℝ m (PhysicalCopyBounds.vectorSum f a h r0) w := |
| 201 | PhysicalWaveSum.iteratedFDeriv_eq_of_eventuallyEq (vectorSum_germ f a h r0 hw) m |
| 202 | |
| 203 | end VectorFields |
| 204 | |
| 205 | end NavierStokes.PositiveTimeCopyFamily |