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.ActualPrimaryBounds |
| 2 | import NavierStokes.ParticularWaveAssembly |
| 3 | |
| 4 | /-! |
| 5 | # Local background bounds for the actual particular harmonics |
| 6 | |
| 7 | The fixed harmonic changes the frequency. Its phase is the same primary |
| 8 | phase, including the free angular variable. All primitive bounds are pulled |
| 9 | from the actual primary inputs on the same closed support cells. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | namespace NavierStokes.ActualParticularBackground |
| 15 | |
| 16 | open Set Function Filter WeightedClasses LinearWaveBounds LocalizedWaveBounds |
| 17 | open CorrectionState CorrectionStep CorrectionInitialization |
| 18 | open scoped Topology ContDiff |
| 19 | |
| 20 | section Isometry |
| 21 | |
| 22 | variable {D E V I : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 23 | [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 24 | |
| 25 | /-- The same jet constants work after the native coordinate isometry. -/ |
| 26 | theorem localClass_reindex (e : D ≃ₗᵢ[ℝ] E) {s : StripData E} |
| 27 | {K : ℕ → I → Set E} {w : ℕ → I → E → ℝ} {α : ℝ} |
| 28 | {f : ℕ → I → E → V} (hf : LocalClass s K w α f) : |
| 29 | LocalClass (ParticularWaveBounds.reindexStrip e s) (fun n i => e ⁻¹' K n i) |
| 30 | (fun n i x => w n i (e x)) α (fun n i x => f n i (e x)) := by |
| 31 | refine ⟨fun n i x hx => hf.weight_nonneg n i (e x) hx, |
| 32 | fun n i x hx hi => (hf.smooth n i (e x) hx hi).comp x e.contDiff.contDiffAt, ?_⟩ |
| 33 | intro m |
| 34 | obtain ⟨C, hC, p, hb⟩ := hf.bounds m |
| 35 | refine ⟨C, hC, p, ?_⟩ |
| 36 | intro n i x hx hi j hj |
| 37 | rw [StateReindex.norm_iteratedFDeriv_pull] |
| 38 | exact hb n i (e x) hx hi j hj |
| 39 | |
| 40 | noncomputable def reindexFamily (e : D ≃ₗᵢ[ℝ] E) (a : WaveFamily E I) : WaveFamily D I := |
| 41 | WaveFamily.ofCoefficients (fun i => ParticularWaveBounds.reindexCoefficients e (a.coefficients i)) |
| 42 | |
| 43 | theorem normal_reindex (e : D ≃ₗᵢ[ℝ] E) (a : WaveCoefficients E) |
| 44 | (s : StripData E) (d : GraphDirections E) (n : ℕ) (x : D) : |
| 45 | (ParticularWaveBounds.reindexCoefficients e a).normal |
| 46 | (ParticularWaveBounds.reindexStrip e s) (ParticularWaveBounds.reindexDirections e d) n x = |
| 47 | a.normal s d n (e x) := by |
| 48 | simp only [WaveCoefficients.normal, HarmonicCalculus.phaseNormal, HarmonicCalculus.along, |
| 49 | ParticularWaveBounds.reindexCoefficients, ParticularWaveBounds.reindexDirections, |
| 50 | ParticularWaveBounds.reindexStrip, GraphDirections.radialField, GraphDirections.axialField, |
| 51 | StateReindex.fderiv_pull, map_add, map_smul, e.apply_symm_apply] |
| 52 | |
| 53 | theorem defect_reindex (e : D ≃ₗᵢ[ℝ] E) (a : WaveCoefficients E) |
| 54 | (s : StripData E) (d : GraphDirections E) (n : ℕ) (x : D) : |
| 55 | (ParticularWaveBounds.reindexCoefficients e a).defect |
| 56 | (ParticularWaveBounds.reindexStrip e s) (ParticularWaveBounds.reindexDirections e d) n x = |
| 57 | a.defect s d n (e x) := by |
| 58 | simp only [WaveCoefficients.defect, LinearWaveResidual.materialPhaseDefect, |
| 59 | LinearWaveResidual.timeDirection, HarmonicCalculus.along, |
| 60 | ParticularWaveBounds.reindexCoefficients, ParticularWaveBounds.reindexDirections, |
| 61 | ParticularWaveBounds.reindexStrip, GraphDirections.radialField, GraphDirections.axialField, |
| 62 | GraphDirections.fastField, StateReindex.fderiv_pull, map_add, map_sub, map_smul, |
| 63 | e.apply_symm_apply] |
| 64 | |
| 65 | theorem auxiliary_reindex (e : D ≃ₗᵢ[ℝ] E) {f : E → ℝ} (d : E) {x : D} |
| 66 | (h : (fun y => fderiv ℝ f y d) =ᶠ[𝓝 (e x)] fun _ => 0) : |
| 67 | (fun y => fderiv ℝ (fun z => f (e z)) y (e.symm d)) =ᶠ[𝓝 x] fun _ => 0 := by |
| 68 | filter_upwards [h.comp_tendsto e.continuous.continuousAt] with y hy |
| 69 | simpa only [StateReindex.fderiv_pull, e.apply_symm_apply, Function.comp_def] using hy |
| 70 | |
| 71 | theorem inputBounds_reindex (e : D ≃ₗᵢ[ℝ] E) {s : StripData E} |
| 72 | {K : ℕ → I → Set E} {P : ℕ → I → E → ℝ} {α κ : ℝ} |
| 73 | {d : GraphDirections E} {a : WaveFamily E I} (h : InputBounds s K P α κ d a) : |
| 74 | InputBounds (ParticularWaveBounds.reindexStrip e s) (fun n i => e ⁻¹' K n i) |
| 75 | (fun n i x => P n i (e x)) α κ (ParticularWaveBounds.reindexDirections e d) |
| 76 | (reindexFamily e a) := by |
| 77 | refine { |
| 78 | loss_nonneg := h.loss_nonneg |
| 79 | radial_profile := localClass_reindex e h.radial_profile |
| 80 | radial_scale := h.radial_scale |
| 81 | fast_scale := h.fast_scale |
| 82 | frequency_scale := localClass_reindex e h.frequency_scale |
| 83 | radius := localClass_reindex e h.radius |
| 84 | inverse_radius := localClass_reindex e h.inverse_radius |
| 85 | radial_base := localClass_reindex e h.radial_base |
| 86 | frequency_base := localClass_reindex e h.frequency_base |
| 87 | axial_base := localClass_reindex e h.axial_base |
| 88 | radial_base_aux := fun n i x hx hi => auxiliary_reindex e d.auxiliary (h.radial_base_aux n i (e x) hx hi) |
| 89 | frequency_base_aux := fun n i x hx hi => auxiliary_reindex e d.auxiliary (h.frequency_base_aux n i (e x) hx hi) |
| 90 | axial_base_aux := fun n i x hx hi => auxiliary_reindex e d.auxiliary (h.axial_base_aux n i (e x) hx hi) |
| 91 | normal := ?_ |
| 92 | defect := ?_ |
| 93 | amplitude := fun j => localClass_reindex e (h.amplitude j) |
| 94 | pressure := localClass_reindex e h.pressure } |
| 95 | · exact (localClass_reindex e h.normal).congr (fun n i x => |
| 96 | (normal_reindex e (a.coefficients i) s d n x).symm) |
| 97 | · exact (localClass_reindex e h.defect).congr (fun n i x => |
| 98 | (defect_reindex e (a.coefficients i) s d n x).symm) |
| 99 | |
| 100 | /-- This operation changes only the harmonic frequency and sets the two |
| 101 | unknown coefficients to zero. In particular its actual normal and defect |
| 102 | are unchanged. -/ |
| 103 | noncomputable def zeroRescale (q : ℝ) (a : WaveFamily D I) : WaveFamily D I := |
| 104 | { a with |
| 105 | amplitude := fun _ _ _ => 0 |
| 106 | pressure := fun _ _ _ => 0 |
| 107 | frequency := fun n i => q * a.frequency n i } |
| 108 | |
| 109 | theorem zeroRescale_normal (q : ℝ) (a : WaveFamily D I) |
| 110 | (s : StripData D) (d : GraphDirections D) : |
| 111 | (zeroRescale q a).normal s d = a.normal s d := rfl |
| 112 | |
| 113 | theorem zeroRescale_defect (q : ℝ) (a : WaveFamily D I) |
| 114 | (s : StripData D) (d : GraphDirections D) : |
| 115 | (zeroRescale q a).defect s d = a.defect s d := rfl |
| 116 | |
| 117 | end Isometry |
| 118 | |
| 119 | theorem coefficients_ext {D : Type} {a b : WaveCoefficients D} |
| 120 | (hR : a.radius = b.radius) (hr : a.radialBase = b.radialBase) |
| 121 | (hF : a.frequencyBase = b.frequencyBase) (hG : a.axialBase = b.axialBase) |
| 122 | (hΦ : a.phase = b.phase) (hA : a.amplitude = b.amplitude) |
| 123 | (hp : a.pressure = b.pressure) (hk : a.frequency = b.frequency) : a = b := by |
| 124 | cases a |
| 125 | cases b |
| 126 | congr |
| 127 | |
| 128 | /-! ## The same primary choice in native/free-angle coordinates -/ |
| 129 | |
| 130 | abbrev Label (B N0 : ℕ) := ActualPrimaryBounds.SignedLabel B N0 |
| 131 | abbrev CopyIndex (B N0 : ℕ) := ActualPrimaryBounds.CopyIndex B N0 |
| 132 | abbrev Parameter := CorrectionStep.CycleSlow |
| 133 | abbrev Native := (Parameter × ℝ) × TorusInverse.Plane |
| 134 | |
| 135 | noncomputable def nativeToFull : Native ≃ₗᵢ[ℝ] ActualPrimary.FullPoint := |
| 136 | ParticularWaveAssembly.angleShuffle.symm.trans (StateReindex.cylinder cycleAssoc.symm) |
| 137 | |
| 138 | noncomputable def nativeStrip : StripData Native := |
| 139 | ParticularWaveBounds.reindexStrip nativeToFull ActualPrimaryBounds.fullStrip |
| 140 | |
| 141 | noncomputable def directions (B : ℕ) : GraphDirections Native := |
| 142 | ParticularWaveBounds.reindexDirections nativeToFull (ActualPrimaryBounds.directions B) |
| 143 | |
| 144 | noncomputable def primaryBlock {B N0 : ℕ} (l : Label B N0) : HarmonicBlock CyclePoint := |
| 145 | (ActualPrimary.piece ActualPrimary.standardRegion l.1 l.2).tangentBlock |
| 146 | (fun n z => (ActualPrimary.chartCoefficients l.1 l.2).phase n (z, 0)) |
| 147 | (fun _ => PrimaryGeometryAssembly.angularMode ActualPrimary.certificate ActualPrimary.modulation |
| 148 | (ActualPrimary.choice B N0).prepared l.1 l.2) |
| 149 | |
| 150 | noncomputable def carrier {B N0 : ℕ} (b : Label B N0 → HarmonicBlock CyclePoint) |
| 151 | (j : ℤ) (l : Label B N0) : WaveCoefficients Native := |
| 152 | ParticularWaveAssembly.actualCarrier |
| 153 | (ParticularWaveBounds.reindexCoefficients nativeToFull (ActualPrimary.chartCoefficients l.1 l.2)) |
| 154 | (StateReindex.block cycleAssoc.symm (b l)) j |
| 155 | |
| 156 | noncomputable def backgroundFamily {B N0 : ℕ} |
| 157 | (b : Label B N0 → HarmonicBlock CyclePoint) (j : ℤ) : WaveFamily Native (CopyIndex B N0) := |
| 158 | WaveFamily.ofCoefficients (fun i => ParticularWaveBounds.zeroAmplitudes (carrier b j i.1)) |
| 159 | |
| 160 | theorem primary_phase_affine {B N0 : ℕ} (l : Label B N0) (n : ℕ) |
| 161 | (x : CyclePoint) (θ : ℝ) : |
| 162 | (ActualPrimary.chartCoefficients l.1 l.2).phase n (x, θ) = |
| 163 | (primaryBlock l).phase n x + |
| 164 | ((primaryBlock l).angularFrequency n : ℝ) / (primaryBlock l).frequency n * θ := by |
| 165 | change (ActualPrimary.absolutePhase l.1 l.2 (ActualPrimary.toAbsolute n x, θ)) / |
| 166 | (ChartScales.carrier ActualPrimary.h n : ℝ) = |
| 167 | (ActualPrimary.absolutePhase l.1 l.2 (ActualPrimary.toAbsolute n x, 0)) / |
| 168 | (ChartScales.carrier ActualPrimary.h n : ℝ) + |
| 169 | (PrimaryGeometryAssembly.angularMode ActualPrimary.certificate ActualPrimary.modulation |
| 170 | (ActualPrimary.choice B N0).prepared l.1 l.2 : ℝ) / |
| 171 | (ChartScales.carrier ActualPrimary.h n : ℝ) * θ |
| 172 | simp only [ActualPrimary.absolutePhase, mul_zero, zero_add] |
| 173 | ring |
| 174 | |
| 175 | theorem carrier_phase {B N0 : ℕ} (b : Label B N0 → HarmonicBlock CyclePoint) |
| 176 | (hb : ∀ l, SameCarrier (b l) (primaryBlock l)) (j : ℤ) (l : Label B N0) : |
| 177 | (carrier b j l).phase = |
| 178 | fun n z => (ActualPrimary.chartCoefficients l.1 l.2).phase n (nativeToFull z) := by |
| 179 | funext n z |
| 180 | change (b l).phase n (cycleAssoc.symm (z.1.1, z.2)) + |
| 181 | ((b l).angularFrequency n : ℝ) / (b l).frequency n * z.1.2 = _ |
| 182 | rw [← (hb l).phase, ← (hb l).angular, ← (hb l).frequency] |
| 183 | exact (primary_phase_affine l n (cycleAssoc.symm (z.1.1, z.2)) z.1.2).symm |
| 184 | |
| 185 | theorem carrier_frequency {B N0 : ℕ} (b : Label B N0 → HarmonicBlock CyclePoint) |
| 186 | (hb : ∀ l, SameCarrier (b l) (primaryBlock l)) (j : ℤ) (l : Label B N0) : |
| 187 | (carrier b j l).frequency = fun n => (j : ℝ) * (ChartScales.carrier ActualPrimary.h n : ℝ) := by |
| 188 | funext n |
| 189 | change (j : ℝ) * (b l).frequency n = _ |
| 190 | rw [← (hb l).frequency] |
| 191 | rfl |
| 192 | |
| 193 | theorem backgroundFamily_eq {B N0 : ℕ} (b : Label B N0 → HarmonicBlock CyclePoint) |
| 194 | (hb : ∀ l, SameCarrier (b l) (primaryBlock l)) (j : ℤ) : |
| 195 | backgroundFamily b j = reindexFamily nativeToFull |
| 196 | (zeroRescale (j : ℝ) (ActualPrimaryBounds.actualFamily (B := B) (N0 := N0))) := by |
| 197 | unfold backgroundFamily reindexFamily |
| 198 | apply congrArg WaveFamily.ofCoefficients |
| 199 | funext i |
| 200 | apply coefficients_ext |
| 201 | · rfl |
| 202 | · rfl |
| 203 | · rfl |
| 204 | · rfl |
| 205 | · exact carrier_phase b hb j i.1 |
| 206 | · rfl |
| 207 | · rfl |
| 208 | · exact carrier_frequency b hb j i.1 |
| 209 | |
| 210 | theorem background_normal {B N0 : ℕ} (b : Label B N0 → HarmonicBlock CyclePoint) |
| 211 | (hb : ∀ l, SameCarrier (b l) (primaryBlock l)) (j : ℤ) (n : ℕ) |
| 212 | (i : CopyIndex B N0) (x : Native) : |
| 213 | (backgroundFamily b j).normal nativeStrip (directions B) n i x = |
| 214 | ActualPrimaryBounds.chartNormal i.1 n (nativeToFull x) := by |
| 215 | rw [backgroundFamily_eq b hb j] |
| 216 | change (ParticularWaveBounds.reindexCoefficients nativeToFull |
| 217 | ((zeroRescale (j : ℝ) ActualPrimaryBounds.actualFamily).coefficients i)).normal |
| 218 | _ _ n x = _ |
| 219 | unfold nativeStrip directions |
| 220 | rw [normal_reindex] |
| 221 | change (zeroRescale (j : ℝ) ActualPrimaryBounds.actualFamily).normal |
| 222 | _ _ n i (nativeToFull x) = _ |
| 223 | rw [zeroRescale_normal, ActualPrimaryBounds.actualFamily_normal_eq] |
| 224 | |
| 225 | end NavierStokes.ActualParticularBackground |