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

Comparing changes
Choose two branches to see what changed, then open a pull request to bring the work across.
Able to merge. These branches can be merged automatically.
A pull request is already open: #282 chore(NavierStokes/Valid): delete 17 declarations nothing uses
1 commit
+0 −85 NavierStokes/ValidBandGluing.lean View file
| @@ -31,11 +31,6 @@ noncomputable def representative [Zero E] (U : ι → Set D) (f : ι → D → E | ||
| 31 | 31 | theorem mem_domain_iff {U : ι → Set D} {x : D} : x ∈ domain U ↔ ∃ i, x ∈ U i := |
| 32 | 32 | mem_iUnion |
| 33 | 33 | |
| 34 | -theorem representative_zero [Zero E] {U : ι → Set D} {f : ι → D → E} | |
| 35 | - {x : D} (hx : x ∉ domain U) : representative U f x = 0 := by | |
| 36 | - have hn : ¬ ∃ i, x ∈ U i := fun h => hx (mem_domain_iff.mpr h) | |
| 37 | - simp only [representative, dite_eq_right hn] | |
| 38 | - | |
| 39 | 34 | theorem representative_eq_of_mem [Zero E] {U : ι → Set D} {f : ι → D → E} |
| 40 | 35 | (hf : Compatible U f) {i : ι} {x : D} (hx : x ∈ U i) : |
| 41 | 36 | representative U f x = f i x := by |
| @@ -44,44 +39,15 @@ theorem representative_eq_of_mem [Zero E] {U : ι → Set D} {f : ι → D → E | ||
| 44 | 39 | simp only [representative, dite_eq_left h] |
| 45 | 40 | exact hf (Classical.choose h) i ⟨Classical.choose_spec h, hx⟩ |
| 46 | 41 | |
| 47 | -theorem representative_eqOn [Zero E] {U : ι → Set D} {f : ι → D → E} | |
| 48 | - (hf : Compatible U f) (i : ι) : EqOn (representative U f) (f i) (U i) := | |
| 49 | - fun _ hx => representative_eq_of_mem hf hx | |
| 50 | - | |
| 51 | -theorem representative_unique_on_domain [Zero E] {U : ι → Set D} {f : ι → D → E} | |
| 52 | - (hf : Compatible U f) {g : D → E} (hg : ∀ i, EqOn g (f i) (U i)) : | |
| 53 | - EqOn (representative U f) g (domain U) := by | |
| 54 | - intro x hx | |
| 55 | - obtain ⟨i, hi⟩ := mem_domain_iff.mp hx | |
| 56 | - exact (representative_eq_of_mem hf hi).trans (hg i hi).symm | |
| 57 | - | |
| 58 | 42 | section Topology |
| 59 | 43 | |
| 60 | 44 | variable [TopologicalSpace D] |
| 61 | 45 | |
| 62 | -theorem domain_open {U : ι → Set D} (hU : ∀ i, IsOpen (U i)) : IsOpen (domain U) := | |
| 63 | - isOpen_iUnion hU | |
| 64 | - | |
| 65 | 46 | theorem representative_germ [Zero E] {U : ι → Set D} {f : ι → D → E} |
| 66 | 47 | (hU : ∀ i, IsOpen (U i)) (hf : Compatible U f) {i : ι} {x : D} (hx : x ∈ U i) : |
| 67 | 48 | representative U f =ᶠ[𝓝 x] f i := |
| 68 | 49 | eventually_of_mem ((hU i).mem_nhds hx) (fun _ hy => representative_eq_of_mem hf hy) |
| 69 | 50 | |
| 70 | -/-- The zero totalization has a zero germ off the closure. No such claim | |
| 71 | -is made at an excluded face in the closure of the valid union. -/ | |
| 72 | -theorem representative_zero_germ [Zero E] {U : ι → Set D} {f : ι → D → E} | |
| 73 | - {x : D} (hx : x ∉ closure (domain U)) : representative U f =ᶠ[𝓝 x] fun _ => 0 := by | |
| 74 | - filter_upwards [isClosed_closure.isOpen_compl.mem_nhds hx] with y hy | |
| 75 | - exact representative_zero (fun h => hy (subset_closure h)) | |
| 76 | - | |
| 77 | -theorem representative_continuousOn [TopologicalSpace E] [Zero E] | |
| 78 | - {U : ι → Set D} {f : ι → D → E} (hU : ∀ i, IsOpen (U i)) (hf : Compatible U f) | |
| 79 | - (hs : ∀ i, ContinuousOn (f i) (U i)) : ContinuousOn (representative U f) (domain U) := by | |
| 80 | - intro x hx | |
| 81 | - obtain ⟨i, hi⟩ := mem_domain_iff.mp hx | |
| 82 | - exact ((hs i).continuousAt ((hU i).mem_nhds hi)).congr | |
| 83 | - (representative_germ hU hf hi).symm |>.continuousWithinAt | |
| 84 | - | |
| 85 | 51 | end Topology |
| 86 | 52 | |
| 87 | 53 | section Derivatives |
| @@ -102,11 +68,6 @@ theorem representative_contDiffOn {n : WithTop ℕ∞} | ||
| 102 | 68 | obtain ⟨i, hi⟩ := mem_domain_iff.mp hx |
| 103 | 69 | exact (representative_contDiffAt hU hf hi (hs i)).contDiffWithinAt |
| 104 | 70 | |
| 105 | -theorem representative_fderiv_eq (hU : ∀ i, IsOpen (U i)) (hf : Compatible U f) | |
| 106 | - {i : ι} {x : D} (hx : x ∈ U i) : | |
| 107 | - fderiv ℝ (representative U f) x = fderiv ℝ (f i) x := | |
| 108 | - (representative_germ hU hf hx).fderiv_eq | |
| 109 | - | |
| 110 | 71 | /-- The actual multilinear derivative tensors agree as functions near |
| 111 | 72 | each valid point. No differentiability premise is needed for germ locality. -/ |
| 112 | 73 | theorem representative_iteratedFDeriv_germ (hU : ∀ i, IsOpen (U i)) (hf : Compatible U f) |
| @@ -122,58 +83,12 @@ theorem representative_iteratedFDeriv_eq (hU : ∀ i, IsOpen (U i)) (hf : Compat | ||
| 122 | 83 | iteratedFDeriv ℝ m (representative U f) x = iteratedFDeriv ℝ m (f i) x := |
| 123 | 84 | (representative_iteratedFDeriv_germ hU hf hx m).self_of_nhds |
| 124 | 85 | |
| 125 | -theorem representative_jet_bound (hU : ∀ i, IsOpen (U i)) (hf : Compatible U f) | |
| 126 | - {i : ι} {x : D} (hx : x ∈ U i) (m : ℕ) {B : ℝ} | |
| 127 | - (hb : ‖iteratedFDeriv ℝ m (f i) x‖ ≤ B) : | |
| 128 | - ‖iteratedFDeriv ℝ m (representative U f) x‖ ≤ B := by | |
| 129 | - rw [representative_iteratedFDeriv_eq hU hf hx m] | |
| 130 | - exact hb | |
| 131 | - | |
| 132 | -/-- The same pointwise majorant transfers on the entire union. There is | |
| 133 | -no multiplicity factor, regardless of the number of overlapping charts. -/ | |
| 134 | -theorem representative_jet_bound_on_union (hU : ∀ i, IsOpen (U i)) (hf : Compatible U f) | |
| 135 | - (m : ℕ) {B : D → ℝ} (hb : ∀ i, ∀ x ∈ U i, ‖iteratedFDeriv ℝ m (f i) x‖ ≤ B x) : | |
| 136 | - ∀ x ∈ domain U, ‖iteratedFDeriv ℝ m (representative U f) x‖ ≤ B x := by | |
| 137 | - intro x hx | |
| 138 | - obtain ⟨i, hi⟩ := mem_domain_iff.mp hx | |
| 139 | - exact representative_jet_bound hU hf hi m (hb i x hi) | |
| 140 | - | |
| 141 | -theorem representative_finite_jets_bound (hU : ∀ i, IsOpen (U i)) (hf : Compatible U f) | |
| 142 | - (N : ℕ) {B : ℕ → D → ℝ} | |
| 143 | - (hb : ∀ i, ∀ m ≤ N, ∀ x ∈ U i, ‖iteratedFDeriv ℝ m (f i) x‖ ≤ B m x) : | |
| 144 | - ∀ m ≤ N, ∀ x ∈ domain U, ‖iteratedFDeriv ℝ m (representative U f) x‖ ≤ B m x := by | |
| 145 | - intro m hm | |
| 146 | - exact representative_jet_bound_on_union hU hf m (fun i x hx => hb i m hm x hx) | |
| 147 | - | |
| 148 | -theorem representative_jet_apply_eq (hU : ∀ i, IsOpen (U i)) (hf : Compatible U f) | |
| 149 | - {i : ι} {x : D} (hx : x ∈ U i) (m : ℕ) (v : Fin m → D) : | |
| 150 | - iteratedFDeriv ℝ m (representative U f) x v = iteratedFDeriv ℝ m (f i) x v := by | |
| 151 | - rw [representative_iteratedFDeriv_eq hU hf hx m] | |
| 152 | - | |
| 153 | 86 | end Derivatives |
| 154 | 87 | |
| 155 | 88 | section PhysicalCurl |
| 156 | 89 | |
| 157 | 90 | open ProblemStatement |
| 158 | 91 | |
| 159 | -theorem spatialCurl_eq_of_germ {A B : VelocityField} {x : SpaceTime} | |
| 160 | - (h : A =ᶠ[𝓝 x] B) : SpatialCurl.spatialCurl A x = SpatialCurl.spatialCurl B x := by | |
| 161 | - have hs : (fun y : Space => A (x.1, y)) =ᶠ[𝓝 x.2] fun y => B (x.1, y) := | |
| 162 | - h.comp_tendsto (by | |
| 163 | - change Tendsto (fun y : Space => (x.1, y)) (𝓝 x.2) (𝓝 (x.1, x.2)) | |
| 164 | - exact continuousAt_const.prodMk continuousAt_id) | |
| 165 | - exact congrArg SpatialCurl.curlLinear hs.fderiv_eq | |
| 166 | - | |
| 167 | -theorem representative_spatialCurl_eq {U : ι → Set SpaceTime} {A : ι → VelocityField} | |
| 168 | - (hU : ∀ i, IsOpen (U i)) (hA : Compatible U A) {i : ι} {x : SpaceTime} (hx : x ∈ U i) : | |
| 169 | - SpatialCurl.spatialCurl (representative U A) x = SpatialCurl.spatialCurl (A i) x := | |
| 170 | - spatialCurl_eq_of_germ (representative_germ hU hA hx) | |
| 171 | - | |
| 172 | -theorem representative_spatialCurl_germ {U : ι → Set SpaceTime} {A : ι → VelocityField} | |
| 173 | - (hU : ∀ i, IsOpen (U i)) (hA : Compatible U A) {i : ι} {x : SpaceTime} (hx : x ∈ U i) : | |
| 174 | - SpatialCurl.spatialCurl (representative U A) =ᶠ[𝓝 x] SpatialCurl.spatialCurl (A i) := | |
| 175 | - eventually_of_mem ((hU i).mem_nhds hx) (fun _ hy => representative_spatialCurl_eq hU hA hy) | |
| 176 | - | |
| 177 | 92 | end PhysicalCurl |
| 178 | 93 | |
| 179 | 94 | end NavierStokes.ValidBandGluing |
+0 −50 NavierStokes/ValidDyadicBandCover.lean View file
| @@ -117,19 +117,6 @@ theorem field_jet_bound_at {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) | ||
| 117 | 117 | rw [field_jet_eq hh hh1 hf hn hband m] |
| 118 | 118 | exact hb n hn hband hcomp |
| 119 | 119 | |
| 120 | -/-- Select a comparable chart for the bound, independently of the chart | |
| 121 | -chosen internally by `field`. No chart-count factor is incurred. -/ | |
| 122 | -theorem field_jet_bound {h qbig : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) | |
| 123 | - {N : ℕ} {f : ℕ → SpaceTime → E} (hf : Compatible h N f) | |
| 124 | - (hqbig : qbig ≤ ChartScales.Q N) (m : ℕ) (B : SpaceTime → ℝ) | |
| 125 | - (hb : ∀ n, N ≤ n → ∀ w ∈ band h n, physicalQ h w ≤ ChartScales.Q n → | |
| 126 | - ‖iteratedFDeriv ℝ m (f n) w‖ ≤ B w) : | |
| 127 | - ∀ w ∈ CutStageEstimates.physicalSublevel h qbig, | |
| 128 | - ‖iteratedFDeriv ℝ m (field h N f) w‖ ≤ B w := by | |
| 129 | - intro w hw | |
| 130 | - exact field_jet_bound_at hh hh1 hf hw.1 (hw.2.le.trans hqbig) m | |
| 131 | - (fun n hn hband hcomp => hb n hn w hband hcomp) | |
| 132 | - | |
| 133 | 120 | omit [NormedSpace ℝ E] in |
| 134 | 121 | /-- A local support proof in any valid chart supplies the actual zero |
| 135 | 122 | germ of the representative, including at the physical axis. -/ |
| @@ -142,41 +129,4 @@ theorem field_zero_germ {h qbig : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) | ||
| 142 | 129 | obtain ⟨n, hn, hband, _⟩ := exists_band hh hh1 N hw.1 (hw.2.le.trans hqbig) |
| 143 | 130 | exact (field_germ hh hh1 hf hn hband).trans (hz n hn hband) |
| 144 | 131 | |
| 145 | -/-- Endpoint selection concerns only the positive limiting scale. The | |
| 146 | -endpoint itself is not inserted into any preterminal formula. -/ | |
| 147 | -theorem endpoint_band {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) (N : ℕ) | |
| 148 | - {x : Space} (hx : x 2 ≠ 0) | |
| 149 | - (hq : EndpointCoordinates.endpointRoot (2 * h) (x 2) ≤ ChartScales.Q N) : | |
| 150 | - ∃ n : ℕ, N ≤ n ∧ | |
| 151 | - ChartScales.Q n / 2 < EndpointCoordinates.endpointRoot (2 * h) (x 2) ∧ | |
| 152 | - EndpointCoordinates.endpointRoot (2 * h) (x 2) < 2 * ChartScales.Q n ∧ | |
| 153 | - ∀ᶠ w in 𝓝[SpacetimeEndpoint.openPast 1] (1, x), w ∈ band h n := by | |
| 154 | - obtain ⟨n, hn, hlo, hhi⟩ := PhysicalMeanJetBounds.exists_comparable_band N | |
| 155 | - (EndpointCoordinates.endpointRoot_pos (2 * h) hx) hq | |
| 156 | - have hl : ChartScales.Q n / 2 < EndpointCoordinates.endpointRoot (2 * h) (x 2) := by | |
| 157 | - linarith | |
| 158 | - have hr : EndpointCoordinates.endpointRoot (2 * h) (x 2) < 2 * ChartScales.Q n := by | |
| 159 | - have := ChartScales.Q_pos n | |
| 160 | - linarith | |
| 161 | - refine ⟨n, hn, hl, hr, ?_⟩ | |
| 162 | - have ht := MixedDiagonalExtensions.physicalQ_tendsto_endpoint hh hh1 hx | |
| 163 | - filter_upwards [self_mem_nhdsWithin, ht.eventually (isOpen_Ioo.mem_nhds ⟨hl, hr⟩)] with w hw hq | |
| 164 | - exact ⟨hw.1, hq⟩ | |
| 165 | - | |
| 166 | -/-- A proved continuation of the selected current-chart formula transfers | |
| 167 | -to the representative. Local continuation remains a necessary premise. -/ | |
| 168 | -theorem field_endpoint_extension {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) | |
| 169 | - {N : ℕ} {f : ℕ → SpaceTime → E} (hf : Compatible h N f) | |
| 170 | - {x : Space} (hx : x 2 ≠ 0) | |
| 171 | - (hq : EndpointCoordinates.endpointRoot (2 * h) (x 2) ≤ ChartScales.Q N) | |
| 172 | - (he : ∀ n, N ≤ n → | |
| 173 | - ChartScales.Q n / 2 < EndpointCoordinates.endpointRoot (2 * h) (x 2) → | |
| 174 | - EndpointCoordinates.endpointRoot (2 * h) (x 2) < 2 * ChartScales.Q n → | |
| 175 | - Nonempty (JointResidualLimits.OneSidedExtension (f n) x)) : | |
| 176 | - Nonempty (JointResidualLimits.OneSidedExtension (field h N f) x) := by | |
| 177 | - obtain ⟨n, hn, hl, hr, hg⟩ := endpoint_band hh hh1 N hx hq | |
| 178 | - apply MixedDiagonalExtensions.extension_of_eventuallyEq _ (Classical.choice (he n hn hl hr)) | |
| 179 | - filter_upwards [hg] with w hw | |
| 180 | - exact field_eq hf hn hw | |
| 181 | - | |
| 182 | 132 | end NavierStokes.ValidDyadicBandCover |
+19 −0 routes/s1-ns-valid-1/README.md added View file
| @@ -0,0 +1,19 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-valid-1 | |
| 6 | + | |
| 7 | +One unit of S-1: the family `NavierStokes/Valid*` (`NavierStokes/ValidBandGluing.lean`, | |
| 8 | +`NavierStokes/ValidDyadicBandCover.lean`). Deletes 17 declarations that nothing uses, 135 lines | |
| 9 | +in those two files, taken from Treant's declaration graph (TitiSkywalker/NavierStokesAndEuler, | |
| 10 | +2026-12-03) and re-read under this project's rule: a declaration that Treant deleted stays when a | |
| 11 | +paper result reaches it, when its docstring cites the paper, or when a declaration that stays names | |
| 12 | +it. Nothing that stays changes; the diff is deletions only. No deleted docstring cites a numbered | |
| 13 | +result of the paper. | |
| 14 | + | |
| 15 | +## Next | |
| 16 | + | |
| 17 | +Read the review: `challenge` passed on the pushed head; wait for `build`. If the maintainer asks for | |
| 18 | +the same kind of deletion in the rest of the family, open the next unit's pull request only after | |
| 19 | +this one is answered. | |