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.PhysicalSignedWave |
| 2 | import NavierStokes.PeriodizedWaveBounds |
| 3 | |
| 4 | /-! |
| 5 | # Actual native-copy realization of the signed reference wave |
| 6 | |
| 7 | The primary pulse and signed quotient are fixed. A periodic reference |
| 8 | coordinate and mask are constructed from the native layout. The native |
| 9 | copies are summed before curl, and equality with the same reference output |
| 10 | is proved from the periodic-clock identity on their compact supports. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | namespace NavierStokes.ActualPeriodizedSignedRealization |
| 16 | |
| 17 | open Set Function Filter |
| 18 | open HarmonicCalculus LinearWaveBounds WeightedClasses |
| 19 | open ProblemStatement |
| 20 | open scoped Topology ContDiff BigOperators InnerProductSpace |
| 21 | |
| 22 | abbrev Cylinder := PhysicalResidualBridge.Cylinder |
| 23 | abbrev Plane := TorusInverse.Plane |
| 24 | abbrev Frequency := TorusInverse.Frequency |
| 25 | abbrev Space := ProblemStatement.Space |
| 26 | abbrev Mat2 := SmoothCovariance.Mat2 |
| 27 | abbrev Vec2 := SmoothCovariance.Vec2 |
| 28 | |
| 29 | /-- Primitive native geometry and its actual compact mask. No summed |
| 30 | coefficient or solved-wave identity is a field of this record. -/ |
| 31 | structure Layout where |
| 32 | geometry : ℕ → CommonCoverSolve.Geometry |
| 33 | window : ℕ → PeriodicPhaseAssembly.ClockWindow |
| 34 | length : ℕ → ℝ |
| 35 | length_pos : ∀ n, 0 < length n |
| 36 | cutoff : ℕ → Plane → ℝ |
| 37 | cutoff_smooth : ∀ n, ContDiff ℝ ∞ (cutoff n) |
| 38 | cutoff_support : ∀ n, support (cutoff n) ⊆ (window n).core |
| 39 | injective : ∀ n, InjOn TorusAverages.quotientPoint |
| 40 | ((fun z => (geometry n).center + (geometry n).basis z) '' (window n).outer) |
| 41 | |
| 42 | namespace Layout |
| 43 | |
| 44 | variable (l : Layout) |
| 45 | |
| 46 | noncomputable def nativeMask (n : ℕ) (k : Frequency) (Y : Plane) : ℝ := |
| 47 | l.cutoff n ((l.geometry n).coordinates k Y) |
| 48 | |
| 49 | noncomputable def mask (n : ℕ) (Y : Plane) : ℝ := ∑' k, l.nativeMask n k Y |
| 50 | |
| 51 | noncomputable def clock (n : ℕ) (Y : Plane) : ℝ := |
| 52 | PeriodicPhaseAssembly.periodicClock (l.geometry n) (l.window n).cutoff Y / l.length n |
| 53 | |
| 54 | noncomputable def nativeClock (n : ℕ) (k : Frequency) (Y : Plane) : ℝ := |
| 55 | ((l.geometry n).coordinates k Y).2 / l.length n |
| 56 | |
| 57 | noncomputable def gaussian (n : ℕ) (Y : Plane) : ℝ := GaussianTailFlat.profile (l.clock n Y) |
| 58 | |
| 59 | noncomputable def nativeGaussian (n : ℕ) (k : Frequency) (Y : Plane) : ℝ := |
| 60 | GaussianTailFlat.profile (l.nativeClock n k Y) |
| 61 | |
| 62 | theorem cutoff_compact (n : ℕ) : HasCompactSupport (l.cutoff n) := |
| 63 | HasCompactSupport.of_support_subset_isCompact (l.window n).core_compact (l.cutoff_support n) |
| 64 | |
| 65 | theorem mask_summable (n : ℕ) (Y : Plane) : Summable (fun k => l.nativeMask n k Y) := by |
| 66 | obtain ⟨J, hJ⟩ := (l.geometry n).finite_copy_cutoffs (l.cutoff_compact n) ‖Y‖ |
| 67 | exact summable_of_ne_finset_zero (s := J) (hJ Y le_rfl) |
| 68 | |
| 69 | theorem clock_eq_native (n : ℕ) (k : Frequency) (Y : Plane) (hk : l.nativeMask n k Y ≠ 0) : |
| 70 | l.clock n Y = l.nativeClock n k Y := by |
| 71 | have h := PeriodicPhaseAssembly.periodicClock_germ (P := Unit) |
| 72 | (l.geometry n) (l.window n) (l.injective n) k (z := ((), Y)) (l.cutoff_support n hk) |
| 73 | exact congrArg (fun t => t / l.length n) h.self_of_nhds |
| 74 | |
| 75 | theorem gaussian_eq_native (n : ℕ) (k : Frequency) (Y : Plane) (hk : l.nativeMask n k Y ≠ 0) : |
| 76 | l.gaussian n Y = l.nativeGaussian n k Y := |
| 77 | congrArg GaussianTailFlat.profile (l.clock_eq_native n k Y hk) |
| 78 | |
| 79 | /-- Actual finite native support justifies the scalar/vector infinite sum. |
| 80 | The Gaussian is inserted once, on each native copy. -/ |
| 81 | theorem gaussian_mask_sum {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 82 | (n : ℕ) (Y : Plane) (a : E) : |
| 83 | (∑' k, l.nativeGaussian n k Y • (l.nativeMask n k Y • a)) = |
| 84 | l.gaussian n Y • (l.mask n Y • a) := by |
| 85 | calc |
| 86 | _ = ∑' k, l.nativeMask n k Y • (l.gaussian n Y • a) := by |
| 87 | apply tsum_congr |
| 88 | intro k |
| 89 | by_cases hk : l.nativeMask n k Y = 0 |
| 90 | · simp only [hk, zero_smul, smul_zero] |
| 91 | · rw [l.gaussian_eq_native n k Y hk] |
| 92 | exact smul_comm _ _ _ |
| 93 | _ = l.mask n Y • (l.gaussian n Y • a) := (l.mask_summable n Y).tsum_smul_const _ |
| 94 | _ = _ := smul_comm _ _ _ |
| 95 | |
| 96 | end Layout |
| 97 | |
| 98 | /-! ## The primitive homogeneous pressure is linear in its velocity -/ |
| 99 | |
| 100 | noncomputable def homogeneousPressure (K : ℝ) (N Ndot : Space) (A : Space →L[ℝ] Space) |
| 101 | (u : Space) : ℂ := |
| 102 | Complex.I * (TangentProjection.pressureCoefficient N Ndot u (A u) 0 : ℂ) / (K : ℂ) |
| 103 | |
| 104 | theorem homogeneousPressure_smul (K c : ℝ) (N Ndot : Space) (A : Space →L[ℝ] Space) (u : Space) : |
| 105 | homogeneousPressure K N Ndot A (c • u) = c • homogeneousPressure K N Ndot A u := by |
| 106 | simp only [homogeneousPressure, TangentProjection.pressureCoefficient, map_smul, |
| 107 | inner_smul_right, inner_zero_right, add_zero, Complex.real_smul] |
| 108 | push_cast |
| 109 | ring |
| 110 | |
| 111 | theorem coefficients_amplitude_at {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 112 | (a : WaveCoefficients D) (s : StripData D) (d : GraphDirections D) |
| 113 | (H : ℕ → D → Mat2) (T R : ℕ → D → Vec2) (mask : ℕ → D → ℝ) |
| 114 | (unit Ndot : ℕ → D → Space) (A : ℕ → D → Space →L[ℝ] Space) |
| 115 | (j : Fin 2) (n : ℕ) (x : D) : |
| 116 | (SignedWaveUpdate.coefficients a s d H T R mask unit Ndot A j).amplitude n x = |
| 117 | SignedWaveUpdate.signedScalar (D := D) s H T R mask j n x • CurlClassBounds.complexify (unit n x) := by |
| 118 | simp only [SignedWaveUpdate.coefficients, SignedWaveUpdate.homogeneousCoefficients, |
| 119 | SignedWaveUpdate.signedVector, map_smul] |
| 120 | |
| 121 | theorem coefficients_pressure_at {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 122 | (a : WaveCoefficients D) (s : StripData D) (d : GraphDirections D) |
| 123 | (H : ℕ → D → Mat2) (T R : ℕ → D → Vec2) (mask : ℕ → D → ℝ) |
| 124 | (unit Ndot : ℕ → D → Space) (A : ℕ → D → Space →L[ℝ] Space) |
| 125 | (j : Fin 2) (n : ℕ) (x : D) : |
| 126 | (SignedWaveUpdate.coefficients a s d H T R mask unit Ndot A j).pressure n x = |
| 127 | SignedWaveUpdate.signedScalar (D := D) s H T R mask j n x • |
| 128 | homogeneousPressure (a.frequency n) (a.normal s d n x) (Ndot n x) (A n x) (unit n x) := |
| 129 | homogeneousPressure_smul _ _ _ _ _ _ |
| 130 | |
| 131 | theorem signedScalar_mul_mask {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 132 | (s : StripData D) (H : ℕ → D → Mat2) (T R : ℕ → D → Vec2) |
| 133 | (mask factor : ℕ → D → ℝ) (j : Fin 2) (n : ℕ) (x : D) : |
| 134 | SignedWaveUpdate.signedScalar (D := D) s H T R (fun n x => mask n x * factor n x) j n x = |
| 135 | factor n x * SignedWaveUpdate.signedScalar (D := D) s H T R mask j n x := by |
| 136 | unfold SignedWaveUpdate.signedScalar |
| 137 | ring |
| 138 | |
| 139 | /-! ## Periodic reference constructed from the same primary data -/ |
| 140 | |
| 141 | section Reference |
| 142 | |
| 143 | variable {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} |
| 144 | (B : PhysicalSignedWave.PrimaryData U) (l : Layout) |
| 145 | |
| 146 | noncomputable def periodizedPrimary : PhysicalSignedWave.PrimaryData U := |
| 147 | {B with |
| 148 | coordinate := fun n x => ((B.coordinate n x).1, l.clock n x.1.2.2) |
| 149 | mask := fun n x => B.mask n x * l.mask n x.1.2.2} |
| 150 | |
| 151 | @[simp] theorem periodizedPrimary_pulse : (periodizedPrimary B l).pulse = B.pulse := rfl |
| 152 | @[simp] theorem periodizedPrimary_target : (periodizedPrimary B l).target = B.target := rfl |
| 153 | @[simp] theorem periodizedPrimary_matrix : (periodizedPrimary B l).matrix = B.matrix := rfl |
| 154 | |
| 155 | /-- All view scales, integer covers, backgrounds, and operators are retained. -/ |
| 156 | noncomputable def views {reference : ℕ} (V : B.Views reference) : |
| 157 | (periodizedPrimary B l).Views reference where |
| 158 | exponent := V.exponent |
| 159 | referenceScale := V.referenceScale |
| 160 | referenceScale_pos := V.referenceScale_pos |
| 161 | referenceCover := V.referenceCover |
| 162 | scale := V.scale |
| 163 | scale_pos := V.scale_pos |
| 164 | cover := V.cover |
| 165 | cover_le := V.cover_le |
| 166 | frequency := V.frequency |
| 167 | frequency_ne := V.frequency_ne |
| 168 | strip := V.strip |
| 169 | directions := V.directions |
| 170 | background := V.background |
| 171 | |
| 172 | @[simp] theorem views_map {reference : ℕ} (V : B.Views reference) : |
| 173 | (views B l V).map = V.map := rfl |
| 174 | |
| 175 | /-- Reuse the actual current state, reference state, and their full-fiber |
| 176 | coherence. There is no second signed choice or request. -/ |
| 177 | noncomputable def stateData {reference : ℕ} {V : B.Views reference} (D : V.StateData) : |
| 178 | (views B l V).StateData where |
| 179 | patch := D.patch |
| 180 | context := D.context |
| 181 | referenceContext := D.referenceContext |
| 182 | current := D.current |
| 183 | referenceState := D.referenceState |
| 184 | exponent_pos := D.exponent_pos |
| 185 | exponent_lt_half := D.exponent_lt_half |
| 186 | domain := D.domain |
| 187 | domain_open := D.domain_open |
| 188 | state_coherent := D.state_coherent |
| 189 | context_coherent := D.context_coherent |
| 190 | time_pos := D.time_pos |
| 191 | fibers := D.fibers |
| 192 | referenceSlow := D.referenceSlow |
| 193 | referenceSlow_open := D.referenceSlow_open |
| 194 | referenceSlow_mem := D.referenceSlow_mem |
| 195 | reference_theta_smooth := D.reference_theta_smooth |
| 196 | reference_axial_smooth := D.reference_axial_smooth |
| 197 | reference_theta_periodic := D.reference_theta_periodic |
| 198 | reference_axial_periodic := D.reference_axial_periodic |
| 199 | |
| 200 | @[simp] theorem stateData_request {reference : ℕ} {V : B.Views reference} (D : V.StateData) : |
| 201 | (stateData B l D).request = D.request := rfl |
| 202 | |
| 203 | @[simp] theorem stateData_referenceRequest {reference : ℕ} {V : B.Views reference} (D : V.StateData) : |
| 204 | (stateData B l D).referenceRequest = D.referenceRequest := rfl |
| 205 | |
| 206 | variable {reference : ℕ} (V : B.Views reference) |
| 207 | |
| 208 | noncomputable def sharedMask (n : ℕ) (x : Cylinder) : ℝ := B.mask reference (V.map n x) |
| 209 | |
| 210 | noncomputable def nativeUnit (j : Fin 2) (k : Frequency) (n : ℕ) (x : Cylinder) : Space := |
| 211 | PrimaryPulseBounds.normalizedPulse ((B.pulse j).frame reference) |
| 212 | ((B.pulse j).lam reference) ((B.pulse j).u reference) ((B.pulse j).L reference) |
| 213 | ((B.coordinate reference (V.map n x)).1, l.nativeClock reference k (V.map n x).1.2.2) |
| 214 | |
| 215 | /-- One call to the original homogeneous signed quotient constructor. -/ |
| 216 | noncomputable def coefficientsWith (request : ℕ → Cylinder → Vec2) (j : Fin 2) |
| 217 | (mask : ℕ → Cylinder → ℝ) (unit : ℕ → Cylinder → Space) : WaveCoefficients Cylinder := |
| 218 | SignedWaveUpdate.coefficients ((periodizedPrimary B l).viewBase V.background V.frequency (fun n => V.map n) reference) |
| 219 | V.strip V.directions (fun n x => (periodizedPrimary B l).matrix reference (V.map n x)) |
| 220 | ((periodizedPrimary B l).viewTarget V.strip V.velocity (fun n => V.map n) reference) request mask unit |
| 221 | (fun n x => (V.normal n * V.clock n) • B.normalMotion reference (V.map n x)) |
| 222 | (fun n x => V.clock n • B.action reference (V.map n x)) j |
| 223 | |
| 224 | /-! ## The literal current-state request and one physical reference -/ |
| 225 | |
| 226 | end Reference |
| 227 | |
| 228 | /-! ## Support-local primitive regularity on the complete reference strip -/ |
| 229 | |
| 230 | section SupportLocal |
| 231 | |
| 232 | variable {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} |
| 233 | (B : PhysicalSignedWave.PrimaryData U) (l : Layout) |
| 234 | |
| 235 | noncomputable def referenceNativeUnit (j : Fin 2) (n : ℕ) (k : Frequency) (x : Cylinder) : Space := |
| 236 | PrimaryPulseBounds.normalizedPulse ((B.pulse j).frame n) |
| 237 | ((B.pulse j).lam n) ((B.pulse j).u n) ((B.pulse j).L n) |
| 238 | ((B.coordinate n x).1, l.nativeClock n k x.1.2.2) |
| 239 | |
| 240 | theorem referenceUnit_eq_native (j : Fin 2) (n : ℕ) (k : Frequency) (x : Cylinder) |
| 241 | (hk : l.nativeMask n k x.1.2.2 ≠ 0) : |
| 242 | (periodizedPrimary B l).fundamental j n x = referenceNativeUnit B l j n k x := by |
| 243 | change PrimaryPulseBounds.normalizedPulse _ _ _ _ (_, l.clock n x.1.2.2) = _ |
| 244 | rw [l.clock_eq_native n k x.1.2.2 hk] |
| 245 | rfl |
| 246 | |
| 247 | noncomputable def referenceScalar (request : ℕ → Cylinder → Vec2) (j : Fin 2) |
| 248 | (n : ℕ) (x : Cylinder) : ℝ := |
| 249 | SignedWaveUpdate.signedScalar B.strip B.matrix B.target request B.mask j n x |
| 250 | |
| 251 | theorem reference_raw_formula (request : ℕ → Cylinder → Vec2) (j : Fin 2) (n : ℕ) (x : Cylinder) : |
| 252 | (periodizedPrimary B l).raw request j n x = |
| 253 | l.gaussian n x.1.2.2 • (l.mask n x.1.2.2 • |
| 254 | (referenceScalar B request j n x • |
| 255 | CurlClassBounds.complexify ((periodizedPrimary B l).fundamental j n x))) := by |
| 256 | change l.gaussian n x.1.2.2 • ((periodizedPrimary B l).coefficients request j).amplitude n x = _ |
| 257 | rw [PhysicalSignedWave.PrimaryData.coefficients, coefficients_amplitude_at] |
| 258 | have hs : SignedWaveUpdate.signedScalar (periodizedPrimary B l).strip |
| 259 | (periodizedPrimary B l).matrix (periodizedPrimary B l).target request |
| 260 | (periodizedPrimary B l).mask j n x = l.mask n x.1.2.2 * referenceScalar B request j n x := by |
| 261 | change SignedWaveUpdate.signedScalar B.strip B.matrix B.target request |
| 262 | (fun n x => B.mask n x * l.mask n x.1.2.2) j n x = _ |
| 263 | exact signedScalar_mul_mask _ _ _ _ _ _ _ _ _ |
| 264 | rw [hs, mul_smul] |
| 265 | |
| 266 | theorem reference_raw_eq_sum (request : ℕ → Cylinder → Vec2) (j : Fin 2) (n : ℕ) : |
| 267 | (periodizedPrimary B l).raw request j n = fun x => |
| 268 | ∑' k, l.nativeMask n k x.1.2.2 • (l.nativeGaussian n k x.1.2.2 • |
| 269 | (referenceScalar B request j n x • CurlClassBounds.complexify (referenceNativeUnit B l j n k x))) := by |
| 270 | funext x |
| 271 | rw [reference_raw_formula, ← l.gaussian_mask_sum] |
| 272 | apply tsum_congr |
| 273 | intro k |
| 274 | by_cases hk : l.nativeMask n k x.1.2.2 = 0 |
| 275 | · simp only [hk, zero_smul, smul_zero] |
| 276 | · rw [referenceUnit_eq_native B l j n k x hk] |
| 277 | exact smul_comm _ _ _ |
| 278 | |
| 279 | /-- Every condition is on the original slow data, native pulse, or |
| 280 | native support. Inactive gaps need no uncut pulse-time hypothesis. -/ |
| 281 | structure SupportedRegular (request : ℕ → Cylinder → Vec2) (reference : ℕ) (column : Fin 2) : Prop where |
| 282 | coordinate : ContDiffOn ℝ ∞ (fun x => (B.coordinate reference x).1) B.strip.domain |
| 283 | coordinate_mem : ∀ x ∈ B.strip.domain, (B.coordinate reference x).1 ∈ U.carrier reference |
| 284 | native_time : ∀ k x, x ∈ B.strip.domain → |
| 285 | (l.geometry reference).coordinates k x.1.2.2 ∈ tsupport (l.cutoff reference) → |
| 286 | l.nativeClock reference k x.1.2.2 ∈ Ioo (0 : ℝ) 1 |
| 287 | prefactor : ∀ j, PhaseJetBounds.PolynomialJets U (fun n _ => B.prefactor j n) |
| 288 | target : ∀ j, ContDiffOn ℝ ∞ (fun x => B.target reference x j) B.strip.domain |
| 289 | request : ∀ j, ContDiffOn ℝ ∞ (fun x => request reference x j) B.strip.domain |
| 290 | mask : ContDiffOn ℝ ∞ (B.mask reference) B.strip.domain |
| 291 | cone : ∀ x ∈ B.strip.domain, SmoothCovariance.StrictCone (B.matrix reference x) (B.target reference x) |
| 292 | phase : ContDiffOn ℝ ∞ (B.base.phase reference) B.strip.domain |
| 293 | normal_ne : ∀ x ∈ B.strip.domain, B.base.normal B.strip B.directions reference x ≠ 0 |
| 294 | normal_frame : ∀ k x, x ∈ B.strip.domain → l.nativeMask reference k x.1.2.2 ≠ 0 → |
| 295 | B.base.normal B.strip B.directions reference x = |
| 296 | ((B.pulse column).frame reference).normal ((B.coordinate reference x).1, |
| 297 | (B.pulse column).L reference * l.nativeClock reference k x.1.2.2) |
| 298 | |
| 299 | namespace SupportedRegular |
| 300 | |
| 301 | variable {B l} {request : ℕ → Cylinder → Vec2} {reference : ℕ} {column : Fin 2} |
| 302 | (R : SupportedRegular B l request reference column) |
| 303 | |
| 304 | include R |
| 305 | |
| 306 | end SupportedRegular |
| 307 | |
| 308 | variable {reference : ℕ} (V : B.Views reference) (D : V.StateData) |
| 309 | |
| 310 | end SupportLocal |
| 311 | |
| 312 | end NavierStokes.ActualPeriodizedSignedRealization |