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_ne_zero_iff (f : CopyFamily H K) (k : K) (I : WaveIndex H) |
| 46 | (x : LiftPoint) : |
| 47 | (gate f).amplitude k I x ≠ 0 ↔ x ∈ liftPast ∧ f.amplitude k I x ≠ 0 := by |
| 48 | classical |
| 49 | by_cases hx : x ∈ liftPast <;> simp [gate, hx] |
| 50 | |
| 51 | theorem gate_amplitude_support_subset (f : CopyFamily H K) (k : K) (I : WaveIndex H) : |
| 52 | support ((gate f).amplitude k I) ⊆ support (f.amplitude k I) := |
| 53 | fun x hx => ((gate_amplitude_ne_zero_iff f k I x).mp hx).2 |
| 54 | |
| 55 | /-- The original closed copy cells still contain the gated amplitude. -/ |
| 56 | noncomputable def gateCells {f : CopyFamily H K} (hc : SupportCells f) : SupportCells (gate f) where |
| 57 | cells := hc.cells |
| 58 | support I k := (gate_amplitude_support_subset f k I).trans (hc.support I k) |
| 59 | |
| 60 | @[simp] theorem gateCells_cells {f : CopyFamily H K} (hc : SupportCells f) : |
| 61 | (gateCells hc).cells = hc.cells := rfl |
| 62 | |
| 63 | /-- Carrier bounds refer to the same carrier and the same cells. -/ |
| 64 | noncomputable def gateCarrier {f : CopyFamily H K} (hc : SupportCells f) {a b h r0 : ℝ} |
| 65 | (hb : CarrierBounds f hc a b h r0) : CarrierBounds (gate f) (gateCells hc) a b h r0 where |
| 66 | region := hb.region |
| 67 | open_region := hb.open_region |
| 68 | jets := hb.jets |
| 69 | contains := hb.contains |
| 70 | |
| 71 | @[simp] theorem gateCarrier_region {f : CopyFamily H K} (hc : SupportCells f) {a b h r0 : ℝ} |
| 72 | (hb : CarrierBounds f hc a b h r0) : (gateCarrier hc hb).region = hb.region := rfl |
| 73 | |
| 74 | theorem commonLift_time (h : ℝ) (n d : ℕ) (w : SpaceTime) : |
| 75 | (commonLift h n d w).1.1 = (1 - w.1) / ChartScales.Q n := |
| 76 | PhysicalGraphBounds.physicalChart_time h n w |
| 77 | |
| 78 | /-- This identity also holds on the axis and for arbitrary cover gap. -/ |
| 79 | theorem commonLift_mem_liftPast_iff (h : ℝ) (n d : ℕ) (w : SpaceTime) : |
| 80 | commonLift h n d w ∈ liftPast ↔ w ∈ preterminal := by |
| 81 | change 0 < (commonLift h n d w).1.1 ↔ w.1 < 1 |
| 82 | rw [commonLift_time, div_pos_iff_of_pos_right (ChartScales.Q_pos n), sub_pos] |
| 83 | |
| 84 | theorem commonLift_mem_liftPast (h : ℝ) (n d : ℕ) {w : SpaceTime} (hw : w ∈ preterminal) : |
| 85 | commonLift h n d w ∈ liftPast := (commonLift_mem_liftPast_iff h n d w).mpr hw |
| 86 | |
| 87 | section PhysicalFields |
| 88 | |
| 89 | variable (f : CopyFamily H K) (a h r0 : ℝ) |
| 90 | |
| 91 | theorem term_eq (I : WaveIndex H) (k : K) {w : SpaceTime} (hw : w ∈ preterminal) : |
| 92 | (gate f).term a h r0 I k w = f.term a h r0 I k w := by |
| 93 | have hl := commonLift_mem_liftPast h I.1.val.1 (f.gap I.1) hw |
| 94 | simp only [CopyFamily.term, CopyFamily.copy, PhysicalWaveSum.WaveFamily.term, |
| 95 | PhysicalWaveSum.globalWave, PhysicalWaveSum.commonWave, gate, ite_eq_left hl] |
| 96 | |
| 97 | theorem periodized_eq (I : WaveIndex H) {w : SpaceTime} (hw : w ∈ preterminal) : |
| 98 | (gate f).periodized a h r0 I w = f.periodized a h r0 I w := by |
| 99 | apply tsum_congr |
| 100 | intro k |
| 101 | exact term_eq f a h r0 I k hw |
| 102 | |
| 103 | theorem sum_eq {w : SpaceTime} (hw : w ∈ preterminal) : |
| 104 | (gate f).sum a h r0 w = f.sum a h r0 w := by |
| 105 | exact congrArg (fun g : WaveIndex H → ℂ => ∑ᶠ I, g I) |
| 106 | (funext (fun I => periodized_eq f a h r0 I hw)) |
| 107 | |
| 108 | theorem sum_germ {w : SpaceTime} (hw : w ∈ preterminal) : |
| 109 | (gate f).sum a h r0 =ᶠ[𝓝 w] f.sum a h r0 := by |
| 110 | filter_upwards [PhysicalWaveSum.preterminal_open.mem_nhds hw] with y hy |
| 111 | exact sum_eq f a h r0 hy |
| 112 | |
| 113 | end PhysicalFields |
| 114 | |
| 115 | section VectorFields |
| 116 | |
| 117 | variable (f : Fin 3 → CopyFamily H K) (a h r0 : ℝ) |
| 118 | |
| 119 | theorem vectorSum_eq {w : SpaceTime} (hw : w ∈ preterminal) : |
| 120 | PhysicalCopyBounds.vectorSum (fun i => gate (f i)) a h r0 w = |
| 121 | PhysicalCopyBounds.vectorSum f a h r0 w := by |
| 122 | simp only [PhysicalCopyBounds.vectorSum, sum_eq (f _) a h r0 hw] |
| 123 | |
| 124 | theorem vectorSum_germ {w : SpaceTime} (hw : w ∈ preterminal) : |
| 125 | PhysicalCopyBounds.vectorSum (fun i => gate (f i)) a h r0 =ᶠ[𝓝 w] |
| 126 | PhysicalCopyBounds.vectorSum f a h r0 := by |
| 127 | filter_upwards [PhysicalWaveSum.preterminal_open.mem_nhds hw] with y hy |
| 128 | exact vectorSum_eq f a h r0 hy |
| 129 | |
| 130 | end VectorFields |
| 131 | |
| 132 | end NavierStokes.PositiveTimeCopyFamily |