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.CorrectionStep |
| 2 | |
| 3 | /-! |
| 4 | # Naturality of the actual Gaussian cutoff error |
| 5 | |
| 6 | The error is the sum of differentiated-cutoff terms and the uncovered |
| 7 | source. Both terms are transported from their primitive data before the |
| 8 | copy sum is taken. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | namespace NavierStokes.GaussianErrorNaturality |
| 14 | |
| 15 | open Set Filter Function HarmonicCalculus LinearWaveBounds |
| 16 | open scoped Topology ContDiff |
| 17 | |
| 18 | section CopyTransport |
| 19 | |
| 20 | variable {D E I : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 21 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 22 | |
| 23 | theorem fast_cutoff_transport (Γ : D →L[ℝ] E) |
| 24 | (d : GraphDirections D) (dr : GraphDirections E) |
| 25 | (a : PeriodizedWaveBounds.CopyData D I) (b : PeriodizedWaveBounds.CopyData E I) |
| 26 | (n nr : ℕ) (rate : ℝ) (i : I) (x : D) |
| 27 | (hcutoff : a.cutoff n i = fun y => b.cutoff nr i (Γ y)) |
| 28 | (hfast : Γ (d.fastField n x) = rate • dr.fastField nr (Γ x)) |
| 29 | (hdiff : DifferentiableAt ℝ (b.cutoff nr i) (Γ x)) : |
| 30 | d.Dfast (fun m => a.cutoff m i) n x = |
| 31 | rate * dr.Dfast (fun m => b.cutoff m i) nr (Γ x) := by |
| 32 | have hc := hdiff.hasFDerivAt.comp x Γ.hasFDerivAt |
| 33 | simp only [Function.comp_def] at hc |
| 34 | simp only [GraphDirections.Dfast, along, hcutoff, hc.fderiv, |
| 35 | ContinuousLinearMap.comp_apply, hfast, map_smul, smul_eq_mul] |
| 36 | |
| 37 | theorem cutoffSum_transport (Γ : D →L[ℝ] E) |
| 38 | (a : PeriodizedWaveBounds.CopyData D I) (b : PeriodizedWaveBounds.CopyData E I) |
| 39 | (n nr : ℕ) (x : D) |
| 40 | (hcutoff : ∀ i, a.cutoff n i x = b.cutoff nr i (Γ x)) : |
| 41 | a.cutoffSum n x = b.cutoffSum nr (Γ x) := by |
| 42 | exact tsum_congr hcutoff |
| 43 | |
| 44 | theorem localTail_transport (Γ : D →L[ℝ] E) |
| 45 | (d : GraphDirections D) (dr : GraphDirections E) |
| 46 | (a : PeriodizedWaveBounds.CopyData D I) (b : PeriodizedWaveBounds.CopyData E I) |
| 47 | (n nr : ℕ) (rate c : ℝ) (i : I) (x : D) |
| 48 | (hcutoff : a.cutoff n i = fun y => b.cutoff nr i (Γ y)) |
| 49 | (hfast : Γ (d.fastField n x) = rate • dr.fastField nr (Γ x)) |
| 50 | (hdiff : DifferentiableAt ℝ (b.cutoff nr i) (Γ x)) |
| 51 | (hamplitude : dr.Dfast (fun m => b.cutoff m i) nr (Γ x) ≠ 0 → |
| 52 | a.amplitude n i x = c • b.amplitude nr i (Γ x)) : |
| 53 | a.localTail d n i x = (rate * c) • b.localTail dr nr i (Γ x) := by |
| 54 | unfold PeriodizedWaveBounds.CopyData.localTail |
| 55 | rw [fast_cutoff_transport Γ d dr a b n nr rate i x hcutoff hfast hdiff] |
| 56 | by_cases hz : dr.Dfast (fun m => b.cutoff m i) nr (Γ x) = 0 |
| 57 | · simp [hz] |
| 58 | · rw [hamplitude hz, smul_smul, smul_smul] |
| 59 | congr 1 |
| 60 | ring |
| 61 | |
| 62 | /-- Only copies with a nonzero differentiated reference cutoff need an |
| 63 | amplitude comparison. No exterior continuation of a Volterra solve is assumed. -/ |
| 64 | theorem globalTail_transport (Γ : D →L[ℝ] E) |
| 65 | (d : GraphDirections D) (dr : GraphDirections E) |
| 66 | (a : PeriodizedWaveBounds.CopyData D I) (b : PeriodizedWaveBounds.CopyData E I) |
| 67 | (n nr : ℕ) (rate c : ℝ) (x : D) |
| 68 | (hcutoff : ∀ i, a.cutoff n i = fun y => b.cutoff nr i (Γ y)) |
| 69 | (hfast : Γ (d.fastField n x) = rate • dr.fastField nr (Γ x)) |
| 70 | (hdiff : ∀ i, DifferentiableAt ℝ (b.cutoff nr i) (Γ x)) |
| 71 | (hamplitude : ∀ i, dr.Dfast (fun m => b.cutoff m i) nr (Γ x) ≠ 0 → |
| 72 | a.amplitude n i x = c • b.amplitude nr i (Γ x)) : |
| 73 | a.globalTail d n x = (rate * c) • b.globalTail dr nr (Γ x) := by |
| 74 | change (∑' i, a.localTail d n i x) = (rate * c) • ∑' i, b.localTail dr nr i (Γ x) |
| 75 | calc |
| 76 | _ = ∑' i, (rate * c) • b.localTail dr nr i (Γ x) := tsum_congr fun i => |
| 77 | localTail_transport Γ d dr a b n nr rate c i x (hcutoff i) hfast (hdiff i) (hamplitude i) |
| 78 | _ = _ := tsum_const_smul'' (rate * c) |
| 79 | |
| 80 | /-- Full transport of the actual Gaussian error, including the source |
| 81 | on the part of the domain uncovered by native cutoffs. -/ |
| 82 | theorem globalGaussian_transport (Γ : D →L[ℝ] E) |
| 83 | (d : GraphDirections D) (dr : GraphDirections E) |
| 84 | (a : PeriodizedWaveBounds.CopyData D I) (b : PeriodizedWaveBounds.CopyData E I) |
| 85 | (n nr : ℕ) (rate c : ℝ) (x : D) |
| 86 | (hcutoff : ∀ i, a.cutoff n i = fun y => b.cutoff nr i (Γ y)) |
| 87 | (hfast : Γ (d.fastField n x) = rate • dr.fastField nr (Γ x)) |
| 88 | (hdiff : ∀ i, DifferentiableAt ℝ (b.cutoff nr i) (Γ x)) |
| 89 | (hamplitude : ∀ i, dr.Dfast (fun m => b.cutoff m i) nr (Γ x) ≠ 0 → |
| 90 | a.amplitude n i x = c • b.amplitude nr i (Γ x)) |
| 91 | (hsource : a.source n x = (rate * c) • b.source nr (Γ x)) : |
| 92 | a.globalGaussian d n x = (rate * c) • b.globalGaussian dr nr (Γ x) := by |
| 93 | rw [PeriodizedWaveBounds.CopyData.globalGaussian, |
| 94 | globalTail_transport Γ d dr a b n nr rate c x hcutoff hfast hdiff hamplitude, |
| 95 | cutoffSum_transport Γ a b n nr x (fun i => congrFun (hcutoff i) x), hsource] |
| 96 | simp only [PeriodizedWaveBounds.CopyData.globalGaussian, smul_add, smul_smul] |
| 97 | congr 1 |
| 98 | congr 1 |
| 99 | ring |
| 100 | |
| 101 | end CopyTransport |
| 102 | |
| 103 | section ReferenceData |
| 104 | |
| 105 | open CommonCoverSolve TorusInverse ParticularWaveAssembly ParticularWaveBounds |
| 106 | open CorrectionState |
| 107 | |
| 108 | abbrev Parameter := PhysicalParticularWave.Parameter |
| 109 | abbrev WaveSpace := PhysicalParticularWave.WaveSpace |
| 110 | abbrev Cylinder := PhysicalParticularWave.Cylinder |
| 111 | |
| 112 | /-- The full native change of variables, conjugate to the actual |
| 113 | cylindrical change of band and common cover. -/ |
| 114 | noncomputable def waveChange (h Q Qr : ℝ) (gap : ℕ) : WaveSpace →L[ℝ] WaveSpace := |
| 115 | PhysicalParticularWave.waveEquiv.toContinuousLinearEquiv.toContinuousLinearMap.comp |
| 116 | ((PhysicalParticularWave.cylinderChange h Q Qr gap).comp |
| 117 | PhysicalParticularWave.waveEquiv.symm.toContinuousLinearEquiv.toContinuousLinearMap) |
| 118 | |
| 119 | @[simp] theorem waveChange_apply (h Q Qr : ℝ) (gap : ℕ) (x : WaveSpace) : |
| 120 | waveChange h Q Qr gap x = |
| 121 | ((PhysicalParticularWave.parameterChange h Q Qr x.1.1, x.1.2), coverPower gap x.2) := rfl |
| 122 | |
| 123 | noncomputable def nativeData (D : AssemblyData Parameter) (h : ℝ) (gap : ℕ → ℕ) (j : ℤ) : |
| 124 | PeriodizedWaveBounds.CopyData WaveSpace Frequency := |
| 125 | (CorrectionStep.ParticularParameters.fromReference D h gap).copyData |
| 126 | D.context D.state D.carrierBlock D.gaussianInput D.aliasInput j |
| 127 | |
| 128 | theorem copyData_amplitude (p : CorrectionStep.ParticularParameters Parameter) |
| 129 | (C : Context (Parameter × Plane)) (u : State (Parameter × Plane)) |
| 130 | (b : HarmonicBlock (Parameter × Plane)) |
| 131 | (G A : HarmonicResidual.BlockCoefficients (Parameter × Plane)) |
| 132 | (j : ℤ) (n : ℕ) (copy : Frequency) (x : WaveSpace) : |
| 133 | (p.copyData C u b G A j).amplitude n copy x = |
| 134 | complexCopyVelocity (p.tangent j n) (residualSource C u b G A j n) |
| 135 | (p.geometry n) (p.length_pos n).le copy (x.1.1, x.2) := |
| 136 | complexCopyVelocity_angle (p.tangent j n) (residualSource C u b G A j n) |
| 137 | (p.geometry n) (p.length_pos n).le copy x.1.1 x.1.2 x.2 |
| 138 | |
| 139 | /-- A nonzero actual directional derivative is supported in any closed |
| 140 | set supporting the original cutoff. -/ |
| 141 | theorem along_ne_zero_mem_closed {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 142 | {f : E → ℝ} {K : Set E} (hK : IsClosed K) (hf : support f ⊆ K) |
| 143 | (V : E → E) {x : E} (hx : along V f x ≠ 0) : x ∈ K := by |
| 144 | have hd : x ∈ support (fderiv ℝ f) := by |
| 145 | intro hz |
| 146 | apply hx |
| 147 | simp only [along, hz, _root_.zero_apply] |
| 148 | exact (closure_minimal hf hK) (support_fderiv_subset ℝ hd) |
| 149 | |
| 150 | theorem interval_congr {E : Type} (F : (a b : ℝ) → a ≤ b → E) |
| 151 | {a b c d : ℝ} (hab : a ≤ b) (hcd : c ≤ d) (ha : a = c) (hb : b = d) : |
| 152 | F a b hab = F c d hcd := by |
| 153 | subst c |
| 154 | subst d |
| 155 | rfl |
| 156 | |
| 157 | end ReferenceData |
| 158 | |
| 159 | section ActualReference |
| 160 | |
| 161 | open CommonCoverSolve TorusInverse ParticularWaveAssembly ParticularWaveBounds |
| 162 | open CorrectionState PhysicalParticularWave |
| 163 | |
| 164 | end ActualReference |
| 165 | |
| 166 | section HarmonicAssembly |
| 167 | |
| 168 | open CommonCoverSolve TorusInverse ParticularWaveAssembly ParticularWaveBounds |
| 169 | open CorrectionState PhysicalParticularWave |
| 170 | open scoped BigOperators |
| 171 | |
| 172 | end HarmonicAssembly |
| 173 | |
| 174 | end NavierStokes.GaussianErrorNaturality |