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.UniformBlockBounds |
| 2 | import NavierStokes.UniformHarmonicInteraction |
| 3 | |
| 4 | /-! |
| 5 | # Exact transport of mean bounds and residual coefficient classes |
| 6 | |
| 7 | Pullback along `e : D ≃ₗᵢ[ℝ] E` uses the actual state/context construction |
| 8 | from `StateReindex`. Every derivative norm and every scalar majorant is |
| 9 | unchanged. In particular, uniform constants are chosen before the label |
| 10 | both before and after reassociation. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | namespace NavierStokes.MeanBoundsReindex |
| 16 | |
| 17 | open Set Function Filter WeightedClasses LabelSumBounds |
| 18 | open scoped ContDiff Topology |
| 19 | |
| 20 | variable {D E : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 21 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 22 | |
| 23 | theorem strip_roundtrip (e : D ≃ₗᵢ[ℝ] E) (s : StripData D) : |
| 24 | ParticularWaveBounds.reindexStrip e (ParticularWaveBounds.reindexStrip e.symm s) = s := by |
| 25 | cases s |
| 26 | simp only [ParticularWaveBounds.reindexStrip, preimage_preimage, e.symm_apply_apply] |
| 27 | rfl |
| 28 | |
| 29 | theorem majorant_pull (e : D ≃ₗᵢ[ℝ] E) (s : StripData E) (w : ℕ → E → ℝ) |
| 30 | (α C : ℝ) (p n : ℕ) (x : D) : |
| 31 | majorant (ParticularWaveBounds.reindexStrip e s) (fun k y => w k (e y)) α C p n x = |
| 32 | majorant s w α C p n (e x) := rfl |
| 33 | |
| 34 | /-- The same numerical `C,p` works on both sides, including all derivatives |
| 35 | up to the supplied order. This is stronger than a fresh existence bound. -/ |
| 36 | theorem finiteJet_bound_pull_iff {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 37 | (e : D ≃ₗᵢ[ℝ] E) (s : StripData E) (w : ℕ → E → ℝ) |
| 38 | (f : ℕ → E → F) (α C : ℝ) (p m : ℕ) : |
| 39 | (∀ n x, x ∈ (ParticularWaveBounds.reindexStrip e s).domain → ∀ j ≤ m, |
| 40 | ‖iteratedFDeriv ℝ j (fun y => f n (e y)) x‖ ≤ |
| 41 | majorant (ParticularWaveBounds.reindexStrip e s) (fun k y => w k (e y)) α C p n x) ↔ |
| 42 | (∀ n x, x ∈ s.domain → ∀ j ≤ m, |
| 43 | ‖iteratedFDeriv ℝ j (f n) x‖ ≤ majorant s w α C p n x) := by |
| 44 | constructor |
| 45 | · intro h n x hx j hj |
| 46 | have hh := h n (e.symm x) (by change e (e.symm x) ∈ s.domain; simpa using hx) j hj |
| 47 | change ‖iteratedFDeriv ℝ j (f n ∘ e) (e.symm x)‖ ≤ _ at hh |
| 48 | rw [e.norm_iteratedFDeriv_comp_right] at hh |
| 49 | simpa only [majorant_pull, e.apply_symm_apply] using hh |
| 50 | · intro h n x hx j hj |
| 51 | change ‖iteratedFDeriv ℝ j (f n ∘ e) x‖ ≤ _ |
| 52 | rw [e.norm_iteratedFDeriv_comp_right, majorant_pull] |
| 53 | exact h n (e x) hx j hj |
| 54 | |
| 55 | theorem bandBound_pull_iff (e : D ≃ₗᵢ[ℝ] E) (s : StripData E) (β : ℝ) (a : ℕ → ℝ) : |
| 56 | BandBound (ParticularWaveBounds.reindexStrip e s) β a ↔ BandBound s β a := Iff.rfl |
| 57 | |
| 58 | theorem meanClass_pull (e : D ≃ₗᵢ[ℝ] E) {s : StripData E} {α : ℝ} |
| 59 | {f : MeanIncrementBounds.Field E} (hf : MeanClass s α f) : |
| 60 | MeanClass (ParticularWaveBounds.reindexStrip e s) α (StateReindex.field e f) := |
| 61 | ParticularWaveBounds.memClass_reindex e hf |
| 62 | |
| 63 | theorem unweightedClass_pull (e : D ≃ₗᵢ[ℝ] E) {s : StripData E} {α : ℝ} |
| 64 | {f : MeanIncrementBounds.Field E} (hf : UnweightedClass s α f) : |
| 65 | UnweightedClass (ParticularWaveBounds.reindexStrip e s) α (StateReindex.field e f) := |
| 66 | ParticularWaveBounds.memClass_reindex e hf |
| 67 | |
| 68 | theorem operatorBounds_pull (e : D ≃ₗᵢ[ℝ] E) {s : StripData E} |
| 69 | {o : MeanIncrementBounds.Operators E} {κ : ℝ} |
| 70 | (ho : MeanIncrementBounds.OperatorBounds s o κ) : |
| 71 | MeanIncrementBounds.OperatorBounds (ParticularWaveBounds.reindexStrip e s) |
| 72 | (StateReindex.operators e o) κ := by |
| 73 | refine ⟨ho.epsilon_eq, ?_, ?_, ho.radialFrequency, ho.fastCoefficient, |
| 74 | ho.kappa_nonneg, fun x hx => ho.weight_le_one (e x) hx⟩ |
| 75 | · exact unweightedClass_pull e ho.radialProfile |
| 76 | · exact unweightedClass_pull e ho.invRadius |
| 77 | |
| 78 | theorem baseBounds_pull (e : D ≃ₗᵢ[ℝ] E) {s : StripData E} |
| 79 | {b : MeanIncrementBounds.Triple E} (hb : MeanIncrementBounds.BaseBounds s b) : |
| 80 | MeanIncrementBounds.BaseBounds (ParticularWaveBounds.reindexStrip e s) |
| 81 | (StateReindex.triple e b) := |
| 82 | ⟨unweightedClass_pull e hb.radial, unweightedClass_pull e hb.angular, |
| 83 | unweightedClass_pull e hb.axial⟩ |
| 84 | |
| 85 | theorem meanCumulativeBounds_pull (e : D ≃ₗᵢ[ℝ] E) {s : StripData E} |
| 86 | {b : MeanIncrementBounds.Triple E} (hb : MeanIncrementBounds.CumulativeBounds s b) : |
| 87 | MeanIncrementBounds.CumulativeBounds (ParticularWaveBounds.reindexStrip e s) |
| 88 | (StateReindex.triple e b) := |
| 89 | ⟨meanClass_pull e hb.radial, meanClass_pull e hb.angular, meanClass_pull e hb.axial⟩ |
| 90 | |
| 91 | theorem incrementBounds_pull (e : D ≃ₗᵢ[ℝ] E) {s : StripData E} {H : ℝ} |
| 92 | {b : MeanIncrementBounds.Triple E} (hb : MeanIncrementBounds.IncrementBounds s H b) : |
| 93 | MeanIncrementBounds.IncrementBounds (ParticularWaveBounds.reindexStrip e s) H |
| 94 | (StateReindex.triple e b) := |
| 95 | ⟨meanClass_pull e hb.radial, meanClass_pull e hb.angular, meanClass_pull e hb.axial⟩ |
| 96 | |
| 97 | theorem context_operatorBounds_pull (e : D ≃ₗᵢ[ℝ] E) {s : StripData E} |
| 98 | {c : CorrectionState.Context E} {κ : ℝ} |
| 99 | (ho : MeanIncrementBounds.OperatorBounds s c.operators κ) : |
| 100 | MeanIncrementBounds.OperatorBounds (ParticularWaveBounds.reindexStrip e s) |
| 101 | (StateReindex.context e c).operators κ := operatorBounds_pull e ho |
| 102 | |
| 103 | theorem context_baseBounds_pull (e : D ≃ₗᵢ[ℝ] E) {s : StripData E} |
| 104 | {c : CorrectionState.Context E} (hb : MeanIncrementBounds.BaseBounds s c.base) : |
| 105 | MeanIncrementBounds.BaseBounds (ParticularWaveBounds.reindexStrip e s) |
| 106 | (StateReindex.context e c).base := baseBounds_pull e hb |
| 107 | |
| 108 | theorem cumulativeBounds_pull (e : D ≃ₗᵢ[ℝ] E) {s : StripData E} |
| 109 | {u : CorrectionState.State E} (hu : CorrectionState.CumulativeBounds s u) : |
| 110 | CorrectionState.CumulativeBounds (ParticularWaveBounds.reindexStrip e s) |
| 111 | (StateReindex.state e u) := |
| 112 | ⟨meanCumulativeBounds_pull e hu.velocity, meanClass_pull e hu.pressure⟩ |
| 113 | |
| 114 | theorem meanResidualBounds_pull (e : D ≃ₗᵢ[ℝ] E) {s : StripData E} |
| 115 | {σ : ℝ} {c : CorrectionState.Context E} {u : CorrectionState.State E} |
| 116 | (hu : CorrectionState.MeanResidualBounds s σ c u) : |
| 117 | CorrectionState.MeanResidualBounds (ParticularWaveBounds.reindexStrip e s) σ |
| 118 | (StateReindex.context e c) (StateReindex.state e u) := by |
| 119 | constructor |
| 120 | · simp only [StateReindex.meanGoodResidual_pull] |
| 121 | exact meanClass_pull e hu.angular |
| 122 | · simp only [StateReindex.meanGoodResidual_pull] |
| 123 | exact meanClass_pull e hu.axial |
| 124 | |
| 125 | /-! ## Returning solver classes to the original chart -/ |
| 126 | |
| 127 | theorem memClass_return {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 128 | (e : D ≃ₗᵢ[ℝ] E) {s : StripData D} {w : ℕ → D → ℝ} {α : ℝ} {f : ℕ → E → F} |
| 129 | (hf : MemClass (ParticularWaveBounds.reindexStrip e.symm s) |
| 130 | (fun n y => w n (e.symm y)) α f) : |
| 131 | MemClass s w α (fun n x => f n (e x)) := by |
| 132 | have hh := ParticularWaveBounds.memClass_reindex e hf |
| 133 | simpa only [strip_roundtrip, e.symm_apply_apply] using hh |
| 134 | |
| 135 | /-- Returning a uniform class retains the same constants chosen before |
| 136 | both the label and the band. -/ |
| 137 | theorem uniformClass_return {F ι : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 138 | (e : D ≃ₗᵢ[ℝ] E) {s : StripData D} {w : ι → ℕ → D → ℝ} {α : ℝ} |
| 139 | {f : ι → ℕ → E → F} |
| 140 | (hf : UniformClass (ParticularWaveBounds.reindexStrip e.symm s) |
| 141 | (fun l n y => w l n (e.symm y)) α f) : |
| 142 | UniformClass s w α (fun l n x => f l n (e x)) := by |
| 143 | have hh := UniformBlockBounds.uniform_reindex e hf |
| 144 | simpa only [strip_roundtrip, e.symm_apply_apply] using hh |
| 145 | |
| 146 | theorem context_operatorBounds_return (e : D ≃ₗᵢ[ℝ] E) {s : StripData D} |
| 147 | {c : CorrectionState.Context D} {κ : ℝ} |
| 148 | (ho : MeanIncrementBounds.OperatorBounds (ParticularWaveBounds.reindexStrip e.symm s) |
| 149 | (StateReindex.context e.symm c).operators κ) : |
| 150 | MeanIncrementBounds.OperatorBounds s c.operators κ := by |
| 151 | have hh := context_operatorBounds_pull e ho |
| 152 | simpa only [strip_roundtrip, StateReindex.context_roundtrip] using hh |
| 153 | |
| 154 | theorem context_baseBounds_return (e : D ≃ₗᵢ[ℝ] E) {s : StripData D} |
| 155 | {c : CorrectionState.Context D} |
| 156 | (hb : MeanIncrementBounds.BaseBounds (ParticularWaveBounds.reindexStrip e.symm s) |
| 157 | (StateReindex.context e.symm c).base) : MeanIncrementBounds.BaseBounds s c.base := by |
| 158 | have hh := context_baseBounds_pull e hb |
| 159 | simpa only [strip_roundtrip, StateReindex.context_roundtrip] using hh |
| 160 | |
| 161 | theorem cumulativeBounds_return (e : D ≃ₗᵢ[ℝ] E) {s : StripData D} |
| 162 | {u : CorrectionState.State D} |
| 163 | (hu : CorrectionState.CumulativeBounds (ParticularWaveBounds.reindexStrip e.symm s) |
| 164 | (StateReindex.state e.symm u)) : CorrectionState.CumulativeBounds s u := by |
| 165 | have hh := cumulativeBounds_pull e hu |
| 166 | simpa only [strip_roundtrip, StateReindex.state_roundtrip] using hh |
| 167 | |
| 168 | /-! ## Uniform classes of the actual harmonic residual -/ |
| 169 | |
| 170 | theorem residualBlock_return (e : D ≃ₗᵢ[ℝ] E) |
| 171 | (c : CorrectionState.Context D) (u : CorrectionState.State D) |
| 172 | (b : CorrectionState.HarmonicBlock D) (G A : HarmonicResidual.BlockCoefficients D) : |
| 173 | StateReindex.block e |
| 174 | (HarmonicResidual.residualBlock (StateReindex.context e.symm c) (StateReindex.state e.symm u) |
| 175 | (StateReindex.block e.symm b) (StateReindex.blockCoefficients e.symm G) |
| 176 | (StateReindex.blockCoefficients e.symm A)) = |
| 177 | HarmonicResidual.residualBlock c u b G A := by |
| 178 | rw [StateReindex.residualBlock_pull, StateReindex.block_roundtrip] |
| 179 | |
| 180 | /-- Arbitrary solver block families return with their original common |
| 181 | weight and exponent. Uniformity over labels is retained. -/ |
| 182 | theorem uniformVelocity_return {ι : Type*} (e : D ≃ₗᵢ[ℝ] E) {s : StripData D} |
| 183 | {P : ι → ℕ → D → ℝ} {α : ℝ} {b : ι → CorrectionState.HarmonicBlock E} |
| 184 | (hb : UniformHarmonicInteraction.UniformVelocity |
| 185 | (ParticularWaveBounds.reindexStrip e.symm s) (fun l n y => P l n (e.symm y)) α b) : |
| 186 | UniformHarmonicInteraction.UniformVelocity s P α (fun l => StateReindex.block e (b l)) := by |
| 187 | intro i j hj |
| 188 | exact uniformClass_return e (hb i j hj) |
| 189 | |
| 190 | theorem uniformVelocity_pull {ι : Type*} (e : D ≃ₗᵢ[ℝ] E) {s : StripData E} |
| 191 | {P : ι → ℕ → E → ℝ} {α : ℝ} {b : ι → CorrectionState.HarmonicBlock E} |
| 192 | (hb : UniformHarmonicInteraction.UniformVelocity s P α b) : |
| 193 | UniformHarmonicInteraction.UniformVelocity (ParticularWaveBounds.reindexStrip e s) |
| 194 | (fun l n x => P l n (e x)) α (fun l => StateReindex.block e (b l)) := by |
| 195 | intro i j hj |
| 196 | exact UniformBlockBounds.block_velocity_reindex e i j (hb i j hj) |
| 197 | |
| 198 | theorem residualBlock_velocity_uniform_pull {ι : Type*} (e : D ≃ₗᵢ[ℝ] E) |
| 199 | {s : StripData E} {w : ι → ℕ → E → ℝ} {α : ℝ} |
| 200 | (c : CorrectionState.Context E) (u : CorrectionState.State E) |
| 201 | (b : ι → CorrectionState.HarmonicBlock E) (G A : ι → HarmonicResidual.BlockCoefficients E) |
| 202 | (i : Fin 3) (j : ℤ) |
| 203 | (hb : UniformClass s w α |
| 204 | (fun l n x => (HarmonicResidual.residualBlock c u (b l) (G l) (A l)).velocity n i j x)) : |
| 205 | UniformClass (ParticularWaveBounds.reindexStrip e s) (fun l n x => w l n (e x)) α |
| 206 | (fun l n x => (HarmonicResidual.residualBlock (StateReindex.context e c) |
| 207 | (StateReindex.state e u) (StateReindex.block e (b l)) |
| 208 | (StateReindex.blockCoefficients e (G l)) (StateReindex.blockCoefficients e (A l))).velocity n i j x) := by |
| 209 | simpa only [StateReindex.residualBlock_pull, StateReindex.strip] using |
| 210 | UniformBlockBounds.block_velocity_reindex e i j hb |
| 211 | |
| 212 | /-- The actual residual is sent to the new chart along with its context, |
| 213 | state, carrier and both excluded error coefficient families. -/ |
| 214 | theorem residualBlock_uniform_pull {ι : Type*} (e : D ≃ₗᵢ[ℝ] E) |
| 215 | {s : StripData E} {P : ι → ℕ → E → ℝ} {α : ℝ} |
| 216 | (c : CorrectionState.Context E) (u : CorrectionState.State E) |
| 217 | (b : ι → CorrectionState.HarmonicBlock E) (G A : ι → HarmonicResidual.BlockCoefficients E) |
| 218 | (hb : UniformHarmonicInteraction.UniformVelocity s P α |
| 219 | (fun l => HarmonicResidual.residualBlock c u (b l) (G l) (A l))) : |
| 220 | UniformHarmonicInteraction.UniformVelocity (ParticularWaveBounds.reindexStrip e s) |
| 221 | (fun l n x => P l n (e x)) α |
| 222 | (fun l => HarmonicResidual.residualBlock (StateReindex.context e c) |
| 223 | (StateReindex.state e u) (StateReindex.block e (b l)) |
| 224 | (StateReindex.blockCoefficients e (G l)) (StateReindex.blockCoefficients e (A l))) := by |
| 225 | simpa only [StateReindex.residualBlock_pull] using uniformVelocity_pull e hb |
| 226 | |
| 227 | theorem residualBlock_velocity_uniform_return {ι : Type*} (e : D ≃ₗᵢ[ℝ] E) |
| 228 | {s : StripData D} {w : ι → ℕ → D → ℝ} {α : ℝ} |
| 229 | (c : CorrectionState.Context D) (u : CorrectionState.State D) |
| 230 | (b : ι → CorrectionState.HarmonicBlock D) (G A : ι → HarmonicResidual.BlockCoefficients D) |
| 231 | (i : Fin 3) (j : ℤ) |
| 232 | (hb : UniformClass (ParticularWaveBounds.reindexStrip e.symm s) |
| 233 | (fun l n y => w l n (e.symm y)) α |
| 234 | (fun l n y => (HarmonicResidual.residualBlock (StateReindex.context e.symm c) |
| 235 | (StateReindex.state e.symm u) (StateReindex.block e.symm (b l)) |
| 236 | (StateReindex.blockCoefficients e.symm (G l)) |
| 237 | (StateReindex.blockCoefficients e.symm (A l))).velocity n i j y)) : |
| 238 | UniformClass s w α |
| 239 | (fun l n x => (HarmonicResidual.residualBlock c u (b l) (G l) (A l)).velocity n i j x) := by |
| 240 | have hh := uniformClass_return e hb |
| 241 | apply hh.congr |
| 242 | intro l n x hx |
| 243 | exact congrArg (fun B : CorrectionState.HarmonicBlock D => B.velocity n i j x) |
| 244 | (residualBlock_return e c u (b l) (G l) (A l)) |
| 245 | |
| 246 | /-- Actual residual classes proved in the associated solver chart return |
| 247 | to the original state without an extra operator-bounds hypothesis. -/ |
| 248 | theorem residualBlock_uniform_return {ι : Type*} (e : D ≃ₗᵢ[ℝ] E) |
| 249 | {s : StripData D} {P : ι → ℕ → D → ℝ} {α : ℝ} |
| 250 | (c : CorrectionState.Context D) (u : CorrectionState.State D) |
| 251 | (b : ι → CorrectionState.HarmonicBlock D) (G A : ι → HarmonicResidual.BlockCoefficients D) |
| 252 | (hb : UniformHarmonicInteraction.UniformVelocity (ParticularWaveBounds.reindexStrip e.symm s) |
| 253 | (fun l n y => P l n (e.symm y)) α |
| 254 | (fun l => HarmonicResidual.residualBlock (StateReindex.context e.symm c) |
| 255 | (StateReindex.state e.symm u) (StateReindex.block e.symm (b l)) |
| 256 | (StateReindex.blockCoefficients e.symm (G l)) |
| 257 | (StateReindex.blockCoefficients e.symm (A l)))) : |
| 258 | UniformHarmonicInteraction.UniformVelocity s P α |
| 259 | (fun l => HarmonicResidual.residualBlock c u (b l) (G l) (A l)) := by |
| 260 | simpa only [residualBlock_return] using uniformVelocity_return e hb |
| 261 | |
| 262 | section Association |
| 263 | |
| 264 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 265 | |
| 266 | /-- The exact association used by `CyclePoint` and the particular solver. -/ |
| 267 | theorem residualBlock_liftAssoc_uniform_return {ι : Type*} |
| 268 | {s : StripData (PressureStream.Lift S)} {P : ι → ℕ → PressureStream.Lift S → ℝ} {α : ℝ} |
| 269 | (c : CorrectionState.Context (PressureStream.Lift S)) |
| 270 | (u : CorrectionState.State (PressureStream.Lift S)) |
| 271 | (b : ι → CorrectionState.HarmonicBlock (PressureStream.Lift S)) |
| 272 | (G A : ι → HarmonicResidual.BlockCoefficients (PressureStream.Lift S)) |
| 273 | (hb : UniformHarmonicInteraction.UniformVelocity |
| 274 | (ParticularWaveBounds.reindexStrip (ParticularWaveBounds.liftAssoc S).symm s) |
| 275 | (fun l n y => P l n ((ParticularWaveBounds.liftAssoc S).symm y)) α |
| 276 | (fun l => HarmonicResidual.residualBlock |
| 277 | (StateReindex.context (ParticularWaveBounds.liftAssoc S).symm c) |
| 278 | (StateReindex.state (ParticularWaveBounds.liftAssoc S).symm u) |
| 279 | (StateReindex.block (ParticularWaveBounds.liftAssoc S).symm (b l)) |
| 280 | (StateReindex.blockCoefficients (ParticularWaveBounds.liftAssoc S).symm (G l)) |
| 281 | (StateReindex.blockCoefficients (ParticularWaveBounds.liftAssoc S).symm (A l)))) : |
| 282 | UniformHarmonicInteraction.UniformVelocity s P α |
| 283 | (fun l => HarmonicResidual.residualBlock c u (b l) (G l) (A l)) := |
| 284 | residualBlock_uniform_return (ParticularWaveBounds.liftAssoc S) c u b G A hb |
| 285 | |
| 286 | end Association |
| 287 | |
| 288 | end NavierStokes.MeanBoundsReindex |