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

chore(NavierStokes/Comparator): delete 9 declarations nothing uses #148
Merged
+0 −70 NavierStokes/ComparatorBridge.lean View file
| @@ -61,31 +61,6 @@ theorem temporalDerivative_eq (v : VelocityField) {t : ℝ} (ht : 0 < t) (x : Sp | ||
| 61 | 61 | def rescale {V : Type*} [SMul ℝ V] (a c : ℝ) (f : SpaceTime → V) : SpaceTime → V := |
| 62 | 62 | fun z => a • f (c * z.1, z.2) |
| 63 | 63 | |
| 64 | -/-- The force for viscosity `ν`, starting with a force for viscosity one. -/ | |
| 65 | -def rescaledForce (ν : ℝ) (f : VelocityField) : VelocityField := rescale (ν ^ 2) ν f | |
| 66 | - | |
| 67 | -theorem rescale_smooth {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] | |
| 68 | - {f : SpaceTime → V} (hf : ContDiffOn ℝ ∞ f futureDomain) | |
| 69 | - (a : ℝ) {c : ℝ} (hc : 0 ≤ c) : | |
| 70 | - ContDiffOn ℝ ∞ (rescale a c f) futureDomain := by | |
| 71 | - apply (hf.comp ((contDiff_fst.const_smul c).prodMk contDiff_snd).contDiffOn ?_).const_smul a | |
| 72 | - intro z hz | |
| 73 | - exact ⟨mul_nonneg hc hz.1, mem_univ _⟩ | |
| 74 | - | |
| 75 | -theorem rescale_periodic {V : Type*} [SMul ℝ V] {f : SpaceTime → V} | |
| 76 | - (hf : UnitSpatialPeriodsOn (Ici 0) f) (a : ℝ) {c : ℝ} (hc : 0 ≤ c) : | |
| 77 | - UnitSpatialPeriodsOn (Ici 0) (rescale a c f) := by | |
| 78 | - intro t ht x i | |
| 79 | - exact congrArg (fun y => a • y) (hf (c * t) (mul_nonneg hc ht) x i) | |
| 80 | - | |
| 81 | -theorem rescale_support {f : VelocityField} (hf : CompactFutureTimeSupport f) | |
| 82 | - (a : ℝ) {c : ℝ} (hc : 0 < c) : CompactFutureTimeSupport (rescale a c f) := by | |
| 83 | - obtain ⟨T, hT, hz⟩ := hf | |
| 84 | - refine ⟨T / c, div_nonneg hT hc.le, ?_⟩ | |
| 85 | - intro t ht x | |
| 86 | - dsimp [rescale] | |
| 87 | - rw [hz (c * t) (by nlinarith [(div_le_iff₀ hc).mp ht]) x, smul_zero] | |
| 88 | - | |
| 89 | 64 | theorem fromComparator_smooth {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 90 | 65 | {f : Space → ℝ → V} (hf : ContDiffOn ℝ ∞ (↿f) (univ ×ˢ Ici 0)) : |
| 91 | 66 | ContDiffOn ℝ ∞ (fromComparator f) futureDomain := by |
| @@ -180,14 +155,6 @@ theorem smooth_space_slice {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V | ||
| 180 | 155 | exact hv.comp (contDiff_const.prodMk contDiff_id).contDiffOn |
| 181 | 156 | (fun _ _ => ⟨ht, mem_univ _⟩) |
| 182 | 157 | |
| 183 | -theorem differentiable_time_slice {v : VelocityField} | |
| 184 | - (hv : ContDiffOn ℝ ∞ v futureDomain) {t : ℝ} (ht : 0 < t) (x : Space) : | |
| 185 | - DifferentiableAt ℝ (fun s => v (s, x)) t := by | |
| 186 | - have h : ContDiffAt ℝ ∞ v (t, x) := | |
| 187 | - hv.contDiffAt (prod_mem_nhds (Ici_mem_nhds ht) Filter.univ_mem) | |
| 188 | - exact (h.comp t (contDiffAt_id.prodMk contDiffAt_const)).differentiableAt | |
| 189 | - (by simp) | |
| 190 | - | |
| 191 | 158 | /-- The original project conventions for a global viscosity-one solution. -/ |
| 192 | 159 | structure GlobalSolutionOne (f : VelocityField) (v : VelocityField) (p : PressureField) : Prop where |
| 193 | 160 | velocity_smooth : ContDiffOn ℝ ∞ v futureDomain |
| @@ -213,41 +180,4 @@ theorem comparator_equation {ν : ℝ} {u₀ : Space → Space} {f v : Space → | ||
| 213 | 180 | rw [h.navier_stokes x t ht.le] |
| 214 | 181 | abel |
| 215 | 182 | |
| 216 | -/-- Pull a hypothetical viscosity-`ν` solution back to viscosity one. -/ | |
| 217 | -theorem normalized_solution {ν : ℝ} (hν : 0 < ν) {f : VelocityField} | |
| 218 | - {v : Space → ℝ → Space} {p : Space → ℝ → ℝ} | |
| 219 | - (h : Comparator.NavierStokesExistenceAndSmoothnessPeriodic ν (fun _ => 0) | |
| 220 | - (toComparator (rescaledForce ν f)) v p) : | |
| 221 | - GlobalSolutionOne f (rescale ν⁻¹ ν⁻¹ (fromComparator v)) | |
| 222 | - (rescale (ν⁻¹ ^ 2) ν⁻¹ (fromComparator p)) := by | |
| 223 | - have hc : 0 < ν⁻¹ := inv_pos.mpr hν | |
| 224 | - have hv := fromComparator_smooth h.velocity_smooth | |
| 225 | - have hp := fromComparator_smooth h.pressure_smooth | |
| 226 | - refine ⟨rescale_smooth hv _ hc.le, rescale_smooth hp _ hc.le, ?_, ?_, ?_, ?_, ?_⟩ | |
| 227 | - · apply rescale_periodic (a := ν⁻¹) (c := ν⁻¹) ?_ hc.le | |
| 228 | - intro t ht x i | |
| 229 | - exact h.isOnePeriodic_velocity t ht x i | |
| 230 | - · apply rescale_periodic (a := ν⁻¹ ^ 2) (c := ν⁻¹) ?_ hc.le | |
| 231 | - intro t ht x i | |
| 232 | - exact h.isOnePeriodic_pressure t ht x i | |
| 233 | - · intro x | |
| 234 | - simp [rescale, fromComparator, h.initial_condition] | |
| 235 | - · intro t ht x | |
| 236 | - rw [rescale_divergence, divergence_eq] | |
| 237 | - change ν⁻¹ * Comparator.divergence (v · (ν⁻¹ * t)) x = 0 | |
| 238 | - rw [h.div_free x (ν⁻¹ * t) (mul_nonneg hc.le ht), mul_zero] | |
| 239 | - · intro t ht x | |
| 240 | - rw [navierStokesResidual, rescale_temporalDerivative _ _ _ _ _ | |
| 241 | - (differentiable_time_slice hv (mul_pos hc ht) x), | |
| 242 | - rescale_advection, rescale_laplacian, rescale_gradient] | |
| 243 | - have he := congrArg (fun z : Space => ν⁻¹ ^ 2 • z) | |
| 244 | - (comparator_equation h (mul_pos hc ht) x) | |
| 245 | - have hcoef : ν⁻¹ ^ 2 * ν = ν⁻¹ := by field_simp | |
| 246 | - have hforce : ν⁻¹ ^ 2 • toComparator (rescaledForce ν f) x (ν⁻¹ * t) = f (t, x) := by | |
| 247 | - simp [toComparator, rescaledForce, rescale, smul_smul, hν.ne'] | |
| 248 | - rw [hforce] at he | |
| 249 | - simp only [smul_add, smul_sub, smul_smul] at he | |
| 250 | - rw [hcoef] at he | |
| 251 | - simpa only [pow_two] using he | |
| 252 | - | |
| 253 | 183 | end NavierStokes.ComparatorBridge |
+0 −40 NavierStokes/ComparatorR3Bridge.lean View file
| @@ -46,44 +46,4 @@ theorem comparator_equation_Rn {ν : ℝ} {u₀ : Space → Space} {f v : Space | ||
| 46 | 46 | rw [h.navier_stokes x t ht.le] |
| 47 | 47 | abel |
| 48 | 48 | |
| 49 | -/-- Normalize an arbitrary global finite-energy comparison solution to viscosity one. -/ | |
| 50 | -theorem normalized_solution_Rn {ν : ℝ} (hν : 0 < ν) {f : VelocityField} | |
| 51 | - {v : Space → ℝ → Space} {p : Space → ℝ → ℝ} | |
| 52 | - (h : Comparator.NavierStokesExistenceAndSmoothnessRn ν (fun _ => 0) | |
| 53 | - (toComparator (rescaledForce ν f)) v p) : | |
| 54 | - GlobalSolutionRn f (rescale ν⁻¹ ν⁻¹ (fromComparator v)) | |
| 55 | - (rescale (ν⁻¹ ^ 2) ν⁻¹ (fromComparator p)) := by | |
| 56 | - have hc : 0 < ν⁻¹ := inv_pos.mpr hν | |
| 57 | - have hv := fromComparator_smooth h.velocity_smooth | |
| 58 | - have hp := fromComparator_smooth h.pressure_smooth | |
| 59 | - refine ⟨rescale_smooth hv _ hc.le, rescale_smooth hp _ hc.le, ?_, ?_, ?_, ?_, ?_⟩ | |
| 60 | - · intro x | |
| 61 | - simp [rescale, fromComparator, h.initial_condition] | |
| 62 | - · intro t ht x | |
| 63 | - rw [rescale_divergence, divergence_eq] | |
| 64 | - change ν⁻¹ * Comparator.divergence (v · (ν⁻¹ * t)) x = 0 | |
| 65 | - rw [h.div_free x (ν⁻¹ * t) (mul_nonneg hc.le ht), mul_zero] | |
| 66 | - · intro t ht x | |
| 67 | - rw [navierStokesResidual, rescale_temporalDerivative _ _ _ _ _ | |
| 68 | - (differentiable_time_slice hv (mul_pos hc ht) x), | |
| 69 | - rescale_advection, rescale_laplacian, rescale_gradient] | |
| 70 | - have he := congrArg (fun z : Space => ν⁻¹ ^ 2 • z) | |
| 71 | - (comparator_equation_Rn h (mul_pos hc ht) x) | |
| 72 | - have hcoef : ν⁻¹ ^ 2 * ν = ν⁻¹ := by field_simp | |
| 73 | - have hforce : ν⁻¹ ^ 2 • toComparator (rescaledForce ν f) x (ν⁻¹ * t) = f (t, x) := by | |
| 74 | - simp [toComparator, rescaledForce, rescale, smul_smul, hν.ne'] | |
| 75 | - rw [hforce] at he | |
| 76 | - simp only [smul_add, smul_sub, smul_smul] at he | |
| 77 | - rw [hcoef] at he | |
| 78 | - simpa only [pow_two] using he | |
| 79 | - · intro t ht | |
| 80 | - simpa only [rescale, fromComparator, norm_smul] using | |
| 81 | - (h.integrable (ν⁻¹ * t) (mul_nonneg hc.le ht)).const_mul ‖ν⁻¹‖ | |
| 82 | - · obtain ⟨E, hE⟩ := h.globally_bounded_energy | |
| 83 | - refine ⟨ν⁻¹ ^ 2 * E, ?_⟩ | |
| 84 | - intro t ht | |
| 85 | - simp only [rescale, fromComparator, norm_smul, Real.norm_eq_abs, | |
| 86 | - abs_of_pos hc, mul_pow, integral_const_mul] | |
| 87 | - exact mul_lt_mul_of_pos_left (hE (ν⁻¹ * t) (mul_nonneg hc.le ht)) (sq_pos_of_pos hc) | |
| 88 | - | |
| 89 | 49 | end NavierStokes.ComparatorBridge |
+0 −16 NavierStokes/ComparatorR3Theorem.lean View file
| @@ -18,22 +18,6 @@ namespace NavierStokes.ComparatorBridge | ||
| 18 | 18 | open Set ProblemStatement |
| 19 | 19 | open scoped ContDiff |
| 20 | 20 | |
| 21 | -theorem option_C_of_compact_candidate | |
| 22 | - {u : VelocityField} {p : PressureField} {f : VelocityField} | |
| 23 | - (h : R3CompactCandidate.Properties u p f) (ν : ℝ) (hν : 0 < ν) : | |
| 24 | - ∃ (u₀ : Space → Space) (f : Space → ℝ → Space), | |
| 25 | - Comparator.InitialVelocityConditionDecay u₀ ∧ Comparator.ForceConditionDecay f ∧ | |
| 26 | - ¬ (∃ v p, Comparator.NavierStokesExistenceAndSmoothnessRn ν u₀ f v p) := by | |
| 27 | - obtain ⟨K, hK, hs⟩ := h.force_support | |
| 28 | - have hFd := CompactSpatialForceDecay.forceConditionDecay hK | |
| 29 | - (rescale_smooth h.force_smooth (ν ^ 2) hν.le) | |
| 30 | - (CompactSpatialForceDecay.rescale_supported hs (ν ^ 2) hν.le) | |
| 31 | - (rescale_support h.force_time_support (ν ^ 2) hν) | |
| 32 | - refine ⟨fun _ => 0, toComparator (rescaledForce ν f), | |
| 33 | - zero_initial_condition_decay, hFd, ?_⟩ | |
| 34 | - rintro ⟨v, q, hv⟩ | |
| 35 | - exact compact_candidate_excludes_global_solution h (normalized_solution_Rn hν hv) | |
| 36 | - | |
| 37 | 21 | /-- Option (C) with exactly the comparator's quantifiers. -/ |
| 38 | 22 | theorem navier_stokes_breakdown_R3 (ν : ℝ) (hν : ν > 0) : |
| 39 | 23 | ∃ (u₀ : EuclideanSpace ℝ (Fin 3) → EuclideanSpace ℝ (Fin 3)) |
+0 −22 NavierStokes/ComparatorTheorem.lean View file
| @@ -20,28 +20,6 @@ namespace NavierStokes.ComparatorBridge | ||
| 20 | 20 | open Set ProblemStatement |
| 21 | 21 | open scoped ContDiff |
| 22 | 22 | |
| 23 | -/-- Any witness of the original candidate statement implies option (D), for | |
| 24 | -every positive viscosity, with all comparator hypotheses discharged. -/ | |
| 25 | -theorem option_D_of_candidate {u : VelocityField} {p : PressureField} {f : VelocityField} | |
| 26 | - (h : CandidateProperties u p f) (ν : ℝ) (hν : 0 < ν) : | |
| 27 | - ∃ (u₀ : Space → Space) (f : Space → ℝ → Space), | |
| 28 | - Comparator.InitialVelocityConditionPeriodic u₀ ∧ Comparator.ForceConditionPeriodic f ∧ | |
| 29 | - ¬ (∃ v p, Comparator.NavierStokesExistenceAndSmoothnessPeriodic ν u₀ f v p) := by | |
| 30 | - have hFs : ContDiffOn ℝ ∞ (rescaledForce ν f) futureDomain := | |
| 31 | - rescale_smooth h.force_smooth (ν ^ 2) hν.le | |
| 32 | - have hFp : UnitSpatialPeriodsOn (Ici 0) (rescaledForce ν f) := | |
| 33 | - rescale_periodic h.force_periodic (ν ^ 2) hν.le | |
| 34 | - have hFt : CompactFutureTimeSupport (rescaledForce ν f) := | |
| 35 | - rescale_support h.force_time_support (ν ^ 2) hν | |
| 36 | - have hFd := CandidateConsequences.futureJet_decay hFs hFp hFt | |
| 37 | - refine ⟨fun _ => 0, toComparator (rescaledForce ν f), zero_initial_condition, | |
| 38 | - forceConditionPeriodic_of_decay hFs hFp hFd, ?_⟩ | |
| 39 | - rintro ⟨v, q, hv⟩ | |
| 40 | - have hn := normalized_solution hν hv | |
| 41 | - exact MaximalLifespan.candidate_excludes_global_solution h | |
| 42 | - hn.velocity_smooth hn.pressure_smooth hn.velocity_periodic hn.pressure_periodic | |
| 43 | - hn.initial_velocity hn.divergence_free hn.navier_stokes | |
| 44 | - | |
| 45 | 23 | /-- Option (D), with exactly the comparator's quantifiers, from the project's |
| 46 | 24 | closed candidate construction. -/ |
| 47 | 25 | theorem navier_stokes_breakdown_periodic (ν : ℝ) (hν : ν > 0) : |
+48 −0 routes/s1-ns-comparator-1/README.md added View file
| @@ -0,0 +1,48 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-comparator-1 | |
| 6 | + | |
| 7 | +One unit of S-1 (issue #10), the declarations: the family `NavierStokes/Comparator*`. It deletes 9 | |
| 8 | +declarations that nothing uses, 148 lines in four files, and nothing else: | |
| 9 | + | |
| 10 | +- `NavierStokes.ComparatorBridge.rescaledForce` (`NavierStokes/ComparatorBridge.lean`) | |
| 11 | +- `NavierStokes.ComparatorBridge.rescale_smooth` (`NavierStokes/ComparatorBridge.lean`) | |
| 12 | +- `NavierStokes.ComparatorBridge.rescale_periodic` (`NavierStokes/ComparatorBridge.lean`) | |
| 13 | +- `NavierStokes.ComparatorBridge.rescale_support` (`NavierStokes/ComparatorBridge.lean`) | |
| 14 | +- `NavierStokes.ComparatorBridge.differentiable_time_slice` (`NavierStokes/ComparatorBridge.lean`) | |
| 15 | +- `NavierStokes.ComparatorBridge.normalized_solution` (`NavierStokes/ComparatorBridge.lean`) | |
| 16 | +- `NavierStokes.ComparatorBridge.normalized_solution_Rn` (`NavierStokes/ComparatorR3Bridge.lean`) | |
| 17 | +- `NavierStokes.ComparatorBridge.option_C_of_compact_candidate` (`NavierStokes/ComparatorR3Theorem.lean`) | |
| 18 | +- `NavierStokes.ComparatorBridge.option_D_of_candidate` (`NavierStokes/ComparatorTheorem.lean`) | |
| 19 | + | |
| 20 | +`rescale`, `fromComparator_smooth`, `comparator_equation`, `comparator_equation_Rn`, | |
| 21 | +`navier_stokes_breakdown_R3` and `navier_stokes_breakdown_periodic` stay: they are the context of the diff, not | |
| 22 | +its deletions. | |
| 23 | + | |
| 24 | +Checked as a reviewer, after the deletion. `git grep -n -w` finds no hit for `rescaledForce`, | |
| 25 | +`rescale_periodic`, `rescale_support`, `differentiable_time_slice`, `normalized_solution`, | |
| 26 | +`normalized_solution_Rn`, `option_C_of_compact_candidate` or `option_D_of_candidate`. The remaining hits for | |
| 27 | +`rescale_smooth` are other declarations of the same short name (`NavierStokes.ActivationBounds.rescale_smooth`, | |
| 28 | +`NavierStokesR3.ViscosityScaling.rescale_smooth`). `NavierStokes/ComparatorDefinitions.lean` is untouched: it is | |
| 29 | +the file `ns-meaning-guard` keeps as the frozen challenge's definitions, word for word, so `divergence_add` and | |
| 30 | +`divergence_smul` stay. No deleted docstring cites the paper: they are one-line descriptions ("The force for viscosity `ν` …", "Pull a | |
| 31 | +hypothetical viscosity-`ν` solution back to viscosity one", "Normalize an arbitrary global finite-energy | |
| 32 | +comparison solution …"), and the one that names "option (D)" names Clay's (D), not a numbered result of the | |
| 33 | +paper. `NavierStokes/PaperResults.lean` and `NavierStokes/PeriodicPaperTheorem.lean` are untouched. | |
| 34 | + | |
| 35 | +The deletions match Treant's run of 2026-12-03 (TitiSkywalker/NavierStokesAndEuler), which found these | |
| 36 | +unreachable from the four Comparator theorems. Read again on this project's main under this project's rule (a | |
| 37 | +declaration stays when one of the paper's results reaches it, when its docstring cites the paper, or when the | |
| 38 | +text of a declaration that stays names it), they stay deleted; the 640 of Treant's deletions that fail that rule | |
| 39 | +are not in this pull request. | |
| 40 | + | |
| 41 | +`python3 checks/challenge.py .` ends with | |
| 42 | +`ok: 4 challenge files and the build configuration as approved; 2589 Lean files, 605012 lines, toolchain | |
| 43 | +leanprover/lean4:v4.34.0-rc2`. | |
| 44 | + | |
| 45 | +## Next | |
| 46 | + | |
| 47 | +The maintainer's review after `challenge` and `build`; `build` is left to the site's check. What this does not | |
| 48 | +show: that every remaining declaration in these files is needed. | |