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

Merge pull request #339 from s1-ns-closed-2
Browse fileschore(NavierStokes/Closed): delete 15 declarations nothing uses
main maintainer-statement p1-ns-physical p2-correction-temporal-mean s1-euler-all-3 s1-euler-angle-9 s1-euler-canonical-8 s1-euler-correction-3 s1-euler-correction-9 s1-euler-cylinder-3 s1-euler-cylinder-8 s1-euler-dirichlet-6 s1-euler-euler-2 s1-euler-euler-6 s1-euler-exact-3 s1-euler-finite-3 s1-euler-hilbert-6 s1-euler-inviscid-8 s1-euler-lp-3 s1-euler-mean-8 s1-euler-ordinary-6 s1-euler-packet-3 s1-euler-packet-8 s1-euler-source-6 s1-euler-transverse-2 s1-euler-transverse-6 s1-euler-transverse-9 s1-euler-volume-3 s1-ns-actual-3 s1-ns-actual-8 s1-ns-annular-6 s1-ns-annular-8 s1-ns-assembled-7 s1-ns-axisymmetric-8 s1-ns-base-2 s1-ns-base-6 s1-ns-base-8 s1-ns-borel-3 s1-ns-common-6 s1-ns-common-8 s1-ns-common-9 s1-ns-constructed-3 s1-ns-constructed-8 s1-ns-copy-6 s1-ns-copy-8 s1-ns-correction-3 s1-ns-curl-6 s1-ns-curl-9 s1-ns-current-3 s1-ns-cycle-3 s1-ns-edge-6 s1-ns-error-3 s1-ns-error-9 s1-ns-even-3 s1-ns-final-6 s1-ns-first-3 s1-ns-five-8 s1-ns-flat-3 s1-ns-flat-8 s1-ns-fourier-3 s1-ns-graph-6 s1-ns-graph-9 s1-ns-harmonic-11 s1-ns-harmonic-6 s1-ns-harmonic-7 s1-ns-heat-3 s1-ns-joint-3 s1-ns-joint-8 s1-ns-label-6 s1-ns-linear-6 s1-ns-linear-7 s1-ns-localized-1 s1-ns-localized-6 s1-ns-mean-1 s1-ns-mean-8 s1-ns-modulated-3 s1-ns-moment-6 s1-ns-offplane-2 s1-ns-offplane-6 s1-ns-parametric-6 s1-ns-particular-10 s1-ns-particular-2 s1-ns-particular-6 s1-ns-particular-8 s1-ns-partitioned-6 s1-ns-partitioned-8 s1-ns-periodic-3 s1-ns-periodic-8 s1-ns-periodic-9 s1-ns-periodized-6 s1-ns-periodized-8 s1-ns-periodized-9 s1-ns-physical-3 s1-ns-physical-8 s1-ns-positive-8 s1-ns-prepared-6 s1-ns-pressure-9 s1-ns-primary-2 s1-ns-primary-6 s1-ns-primary-8 s1-ns-radial-9 s1-ns-reserved-8 s1-ns-residual-3 s1-ns-scaled-3 s1-ns-signed-3 s1-ns-signed-8 s1-ns-slow-6 s1-ns-smooth-3 s1-ns-smooth-8 s1-ns-spacetime-3 s1-ns-state-8 s1-ns-temporal-3 s1-ns-temporal-8 s1-ns-terminal-6 s1-ns-torus-3 s1-ns-uniform-8 s1-ns-variable-3 s1-ns-viscous-6 s1-ns-wave-11 s1-ns-wave-3 s1-ns-wave-8 s1-ns-weighted-10 s1-ns-weighted-12 s1-ns-weighted-3 s1-ns-weighted-8 s1-ns-weighted-9 s1-ns-whole-3 s1-ns-within-6 s2-build-profile-files s2-euler-all-1 s2-euler-base-1 s2-euler-bounded-1 s2-euler-child-1 s2-euler-coefficient-1 s2-euler-correction-1 s2-euler-cylinder-1 s2-euler-dirichlet-1 s2-euler-div-1 s2-euler-drift-1 s2-euler-euler-1 s2-euler-field-1 s2-euler-finite-1 s2-euler-flow-1 s2-euler-gaussian-1 s2-euler-gevrey-1 s2-euler-h6-1 s2-euler-heat-1 s2-euler-initial-1 s2-euler-integral-1 s2-euler-linear-1 s2-euler-local-1 s2-euler-logarithmic-1 s2-euler-mean-1 s2-euler-metric-1 s2-euler-mixed-1 s2-euler-operator-1 s2-euler-ordinary-1 s2-euler-ordinary-2 s2-euler-packet-1 s2-euler-parameter-1 s2-euler-parent-1 s2-euler-radial-1 s2-euler-small-1 s2-euler-sobolev-1 s2-euler-squared-1 s2-euler-static-1 s2-euler-terminal-1 s2-euler-time-1 s2-euler-transport-1 s2-euler-transverse-1 s2-euler-unshifted-1 s2-euler-vorticity-1 s2-euler-weighted-1 s2-instances-1 s2-ns-activation-1 s2-ns-actual-1 s2-ns-aligned-1 s2-ns-angular-1 s2-ns-annular-1 s2-ns-axis-1 s2-ns-base-1 s2-ns-chart-1 s2-ns-closed-1 s2-ns-common-1 s2-ns-cone-1 s2-ns-coordinate-1 s2-ns-corrected-1 s2-ns-correction-1 s2-ns-covariance-1 s2-ns-current-1 s2-ns-cylindrical-1 s2-ns-diophantine-1 s2-ns-direct-1 s2-ns-extended-1 s2-ns-five-1 s2-ns-flat-1 s2-ns-future-1 s2-ns-gauge-1 s2-ns-gaussian-1 s2-ns-global-1 s2-ns-glued-1 s2-ns-growing-1 s2-ns-heat-1 s2-ns-initial-1 s2-ns-label-1 s2-ns-local-1 s2-ns-loop-1 s2-ns-matching-1 s2-ns-mean-1 s2-ns-modulated-1 s2-ns-moment-1 s2-ns-moving-1 s2-ns-native-1 s2-ns-natural-1 s2-ns-normal-1 s2-ns-outgoing-1 s2-ns-outgoing-2 s2-ns-parametric-1 s2-ns-periodic-1 s2-ns-periodized-1 s2-ns-phase-1 s2-ns-physical-1 s2-ns-polar-1 s2-ns-positive-1 s2-ns-pressure-1 s2-ns-primary-1 s2-ns-profile-1 s2-ns-pulse-1 s2-ns-r3-1 s2-ns-r3-folder-1 s2-ns-reference-1 s2-ns-renormalized-1 s2-ns-repair-1 s2-ns-reserved-1 s2-ns-reset-1 s2-ns-residual-1 s2-ns-scaled-1 s2-ns-scaled-2 s2-ns-scaling-1 s2-ns-shape-1 s2-ns-shaped-1 s2-ns-signed-1 s2-ns-similarity-1 s2-ns-slot-1 s2-ns-slow-1 s2-ns-smooth-1 s2-ns-spatial-1 s2-ns-squared-1 s2-ns-stress-1 s2-ns-tail-1 s2-ns-temporal-1 s2-ns-terminal-1 s2-ns-transition-1 s2-ns-uniform-1 s2-ns-variable-1 s2-ns-viscous-1 s2-ns-volterra-1 s2-ns-volterra-2 s5-cap-1 s5-euler-all-1 s5-euler-base-1 s5-euler-bounded-1 s5-euler-canonical-1 s5-euler-coefficient-1 s5-euler-compact-1 s5-euler-continuous-1 s5-euler-correction-1 s5-euler-cylinder-1 s5-euler-drift-1 s5-euler-duhamel-1 s5-euler-elapsed-1 s5-euler-elapsed-2 s5-euler-euler-1 s5-euler-external-1 s5-euler-field-1 s5-euler-fixed-1 s5-euler-gained-1 s5-euler-gaussian-1 s5-euler-gevrey-1 s5-euler-graph-1 s5-euler-h5-1 s5-euler-h6-1 s5-euler-heat-1 s5-euler-inviscid-1 s5-euler-lifted-1 s5-euler-linear-1 s5-euler-lp-1 s5-euler-mean-1 s5-euler-mixed-1 s5-euler-ordinary-1 s5-euler-packet-1 s5-euler-parameter-1 s5-euler-parent-1 s5-euler-physical-1 s5-euler-projected-1 s5-euler-quadratic-1 s5-euler-regularized-1 s5-euler-small-1 s5-euler-smooth-1 s5-euler-sobolev-1 s5-euler-source-1 s5-euler-stage-1 s5-euler-static-1 s5-euler-terminal-1 s5-euler-time-1 s5-euler-top-1 s5-euler-transverse-1 s5-euler-weighted-1 s5-euler-whole-1 s5-ns-actual-1 s5-ns-axis-1 s5-ns-generic-1 s5-ns-label-1 s5-ns-local-1 s5-ns-mean-1 s5-ns-moment-1 s5-ns-particular-1 s5-ns-periodic-1 s5-ns-periodize-1 s5-ns-positive-1 s5-ns-r3-folder-1 s5-ns-reference-1 s5-ns-sharp-1 s5-ns-smooth-1 s5-ns-torus-1 s5-ns-valid-1 s5-ns-whole-1 s5-ns-within-1
Checks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+0 −152 NavierStokes/ClosedIntervalJetAlgebra.lean View file
| @@ -29,14 +29,6 @@ theorem Bound.const (k : ℕ) (c : ℝ) : Bound k (fun _ => c) |c| := by | ||
| 29 | 29 | · rw [iteratedFDerivWithin_const_of_ne hn0] |
| 30 | 30 | simpa only [Pi.zero_apply, norm_zero] using abs_nonneg c |
| 31 | 31 | |
| 32 | -theorem Bound.add {k : ℕ} {f g : ℝ → ℝ} {A B : ℝ} | |
| 33 | - (hf : ContDiffOn ℝ ∞ f J) (hg : ContDiffOn ℝ ∞ g J) | |
| 34 | - (ha : Bound k f A) (hb : Bound k g B) : Bound k (fun η => f η + g η) (A + B) := by | |
| 35 | - intro n hn η hη | |
| 36 | - rw [fun_iteratedFDerivWithin_add_apply ((hf η hη).of_le (WeightedQuotients.nat_le_infty n)) | |
| 37 | - ((hg η hη).of_le (WeightedQuotients.nat_le_infty n)) uniqueDiff hη] | |
| 38 | - exact (norm_add_le _ _).trans (add_le_add (ha n hn η hη) (hb n hn η hη)) | |
| 39 | - | |
| 40 | 32 | theorem Bound.sub {k : ℕ} {f g : ℝ → ℝ} {A B : ℝ} |
| 41 | 33 | (hf : ContDiffOn ℝ ∞ f J) (hg : ContDiffOn ℝ ∞ g J) |
| 42 | 34 | (ha : Bound k f A) (hb : Bound k g B) : Bound k (fun η => f η - g η) (A + B) := by |
| @@ -74,45 +66,6 @@ theorem Bound.mul {k : ℕ} {f g : ℝ → ℝ} {A B : ℝ} | ||
| 74 | 66 | mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right |
| 75 | 67 | (pow_le_pow_right₀ (by norm_num) hn) ha.nonneg) hb.nonneg |
| 76 | 68 | |
| 77 | -/-- The inverse bound depends only on the positive lower bound and the input jet bound. -/ | |
| 78 | -theorem inverse_bound (k : ℕ) (μ B : ℝ) (hμ : 0 < μ) : | |
| 79 | - ∃ C : ℝ, 0 ≤ C ∧ ∀ f : ℝ → ℝ, ContDiffOn ℝ ∞ f J → | |
| 80 | - (∀ η ∈ J, μ ≤ f η) → Bound k f B → Bound k (fun η => (f η)⁻¹) C := by | |
| 81 | - let R := max 1 (max B μ⁻¹) | |
| 82 | - have hR : 1 ≤ R := le_max_left _ _ | |
| 83 | - have hR0 : 0 ≤ R := zero_le_one.trans hR | |
| 84 | - let C := (k.factorial : ℝ) * WeightedQuotients.coeffBound (-1) k * R^(2*k+1) | |
| 85 | - have hcoef := WeightedQuotients.coeffBound_nonneg (-1) k | |
| 86 | - refine ⟨C, mul_nonneg (mul_nonneg (Nat.cast_nonneg _) hcoef) (pow_nonneg hR0 _), ?_⟩ | |
| 87 | - intro f hf hp hb n hn η hη | |
| 88 | - have hfpos : ∀ η ∈ J, 0 < f η := fun η hη => hμ.trans_le (hp η hη) | |
| 89 | - have hg : ContDiffOn ℝ ∞ (fun t : ℝ => t ^ (-1 : ℝ)) (Ioi 0) := by | |
| 90 | - intro t ht | |
| 91 | - exact (Real.contDiffAt_rpow_const_of_ne (show 0 < t from ht).ne').contDiffWithinAt | |
| 92 | - have hinv : (f η)⁻¹ ≤ R := (inv_anti₀ hμ (hp η hη)).trans | |
| 93 | - ((le_max_right _ _).trans (le_max_right _ _)) | |
| 94 | - have hc := norm_iteratedFDerivWithin_comp_le hg hf (WeightedQuotients.nat_le_infty n) | |
| 95 | - isOpen_Ioi.uniqueDiffOn uniqueDiff hfpos hη (C := WeightedQuotients.coeffBound (-1) k * R^(k+1)) | |
| 96 | - (D := R) (by | |
| 97 | - intro i hi | |
| 98 | - rw [iteratedFDerivWithin_of_isOpen i isOpen_Ioi (hfpos η hη)] | |
| 99 | - apply WeightedQuotients.rpow_jet_bound (-1) hR (hfpos η hη) _ hinv (hi.trans hn) | |
| 100 | - simpa only [Real.rpow_neg_one] using hinv) (by | |
| 101 | - intro i hi hik | |
| 102 | - exact (hb i (hik.trans hn) η hη).trans | |
| 103 | - (((le_max_left _ _).trans (le_max_right _ _)).trans | |
| 104 | - (by simpa only [pow_one] using pow_le_pow_right₀ hR hi))) | |
| 105 | - simp only [Function.comp_def, Real.rpow_neg_one] at hc | |
| 106 | - refine hc.trans ?_ | |
| 107 | - dsimp [C] | |
| 108 | - calc | |
| 109 | - (n.factorial : ℝ) * (WeightedQuotients.coeffBound (-1) k * R^(k+1)) * R^n | |
| 110 | - = n.factorial * WeightedQuotients.coeffBound (-1) k * R^(k+1+n) := by rw [pow_add]; ring | |
| 111 | - _ ≤ k.factorial * WeightedQuotients.coeffBound (-1) k * R^(2*k+1) := by | |
| 112 | - exact mul_le_mul (mul_le_mul_of_nonneg_right (by exact_mod_cast Nat.factorial_le hn) hcoef) | |
| 113 | - (pow_le_pow_right₀ hR (by omega)) (pow_nonneg hR0 _) | |
| 114 | - (mul_nonneg (Nat.cast_nonneg _) hcoef) | |
| 115 | - | |
| 116 | 69 | /-- Uniform algebraic control of a pair and a linear bound for its difference. -/ |
| 117 | 70 | structure PairBound (k : ℕ) (f g : ℝ → ℝ) (B C ε : ℝ) : Prop where |
| 118 | 71 | smooth_left : ContDiffOn ℝ ∞ f J |
| @@ -127,52 +80,11 @@ namespace PairBound | ||
| 127 | 80 | |
| 128 | 81 | variable {k : ℕ} {f g u v : ℝ → ℝ} {A B C D ε : ℝ} |
| 129 | 82 | |
| 130 | -theorem mono (h : PairBound k f g A C ε) {A' C' : ℝ} | |
| 131 | - (ha : A ≤ A') (hc : C ≤ C') (hε : 0 ≤ ε) : PairBound k f g A' C' ε := | |
| 132 | - ⟨h.smooth_left, h.smooth_right, h.left.mono ha, h.right.mono ha, | |
| 133 | - h.difference.mono (mul_le_mul_of_nonneg_right hc hε)⟩ | |
| 134 | - | |
| 135 | 83 | theorem same (hf : ContDiffOn ℝ ∞ f J) (hb : Bound k f A) (ε : ℝ) : |
| 136 | 84 | PairBound k f f A 0 ε := by |
| 137 | 85 | refine ⟨hf, hf, hb, hb, ?_⟩ |
| 138 | 86 | simpa only [sub_self, zero_mul, abs_zero] using Bound.const k 0 |
| 139 | 87 | |
| 140 | -theorem const (k : ℕ) (c ε : ℝ) : PairBound k (fun _ => c) (fun _ => c) |c| 0 ε := | |
| 141 | - same contDiffOn_const (Bound.const k c) ε | |
| 142 | - | |
| 143 | -theorem add (h : PairBound k f g A C ε) (i : PairBound k u v B D ε) : | |
| 144 | - PairBound k (fun η => f η + u η) (fun η => g η + v η) (A+B) (C+D) ε := by | |
| 145 | - refine ⟨h.smooth_left.add i.smooth_left, h.smooth_right.add i.smooth_right, | |
| 146 | - h.left.add h.smooth_left i.smooth_left i.left, | |
| 147 | - h.right.add h.smooth_right i.smooth_right i.right, ?_⟩ | |
| 148 | - have hd := h.difference.add (h.smooth_right.sub h.smooth_left) | |
| 149 | - (i.smooth_right.sub i.smooth_left) i.difference | |
| 150 | - rw [← add_mul] at hd | |
| 151 | - exact hd.congr (fun η _ => by ring) | |
| 152 | - | |
| 153 | -theorem sub (h : PairBound k f g A C ε) (i : PairBound k u v B D ε) : | |
| 154 | - PairBound k (fun η => f η - u η) (fun η => g η - v η) (A+B) (C+D) ε := by | |
| 155 | - refine ⟨h.smooth_left.sub i.smooth_left, h.smooth_right.sub i.smooth_right, | |
| 156 | - h.left.sub h.smooth_left i.smooth_left i.left, | |
| 157 | - h.right.sub h.smooth_right i.smooth_right i.right, ?_⟩ | |
| 158 | - have hd := h.difference.sub (h.smooth_right.sub h.smooth_left) | |
| 159 | - (i.smooth_right.sub i.smooth_left) i.difference | |
| 160 | - rw [← add_mul] at hd | |
| 161 | - exact hd.congr (fun η _ => by ring) | |
| 162 | - | |
| 163 | -theorem mul (h : PairBound k f g A C ε) (i : PairBound k u v B D ε) : | |
| 164 | - PairBound k (fun η => f η * u η) (fun η => g η * v η) | |
| 165 | - ((2 : ℝ)^k*A*B) ((2 : ℝ)^k*(C*B+A*D)) ε := by | |
| 166 | - refine ⟨h.smooth_left.mul i.smooth_left, h.smooth_right.mul i.smooth_right, | |
| 167 | - h.left.mul h.smooth_left i.smooth_left i.left, | |
| 168 | - h.right.mul h.smooth_right i.smooth_right i.right, ?_⟩ | |
| 169 | - have h₁ := h.difference.mul (h.smooth_right.sub h.smooth_left) i.smooth_right i.right | |
| 170 | - have h₂ := h.left.mul h.smooth_left (i.smooth_right.sub i.smooth_left) i.difference | |
| 171 | - have hd := h₁.add ((h.smooth_right.sub h.smooth_left).mul i.smooth_right) | |
| 172 | - (h.smooth_left.mul (i.smooth_right.sub i.smooth_left)) h₂ | |
| 173 | - convert hd.congr (fun η _ => show g η * v η - f η * u η = | |
| 174 | - (g η-f η)*v η+f η*(v η-u η) by ring) using 1; ring | |
| 175 | - | |
| 176 | 88 | theorem inverse (h : PairBound k f g A C ε) {μ T : ℝ} (hμ : 0 < μ) |
| 177 | 89 | (hf : ∀ η ∈ J, μ ≤ f η) (hg : ∀ η ∈ J, μ ≤ g η) |
| 178 | 90 | (hb : ∀ z : ℝ → ℝ, ContDiffOn ℝ ∞ z J → |
| @@ -197,25 +109,6 @@ theorem inverse (h : PairBound k f g A C ε) {μ T : ℝ} (hμ : 0 < μ) | ||
| 197 | 109 | |
| 198 | 110 | end PairBound |
| 199 | 111 | |
| 200 | -theorem Bound.derivWithin {k : ℕ} {f : ℝ → ℝ} {B : ℝ} | |
| 201 | - (hf : Bound (k+1) f B) : Bound k (derivWithin f J) B := by | |
| 202 | - intro n hn η hη | |
| 203 | - rw [norm_iteratedFDerivWithin_eq_norm_iteratedDerivWithin, | |
| 204 | - ← iteratedDerivWithin_succ', ← norm_iteratedFDerivWithin_eq_norm_iteratedDerivWithin] | |
| 205 | - exact hf (n+1) (by omega) η hη | |
| 206 | - | |
| 207 | -theorem PairBound.derivWithin {k : ℕ} {f g : ℝ → ℝ} {B C ε : ℝ} | |
| 208 | - (h : PairBound (k+1) f g B C ε) : | |
| 209 | - PairBound k (derivWithin f J) (derivWithin g J) B C ε := by | |
| 210 | - refine ⟨h.smooth_left.derivWithin uniqueDiff (by simp), | |
| 211 | - h.smooth_right.derivWithin uniqueDiff (by simp), h.left.derivWithin, | |
| 212 | - h.right.derivWithin, ?_⟩ | |
| 213 | - apply h.difference.derivWithin.congr | |
| 214 | - intro η hη | |
| 215 | - symm | |
| 216 | - exact derivWithin_sub ((h.smooth_right.differentiableOn (by simp)) η hη) | |
| 217 | - ((h.smooth_left.differentiableOn (by simp)) η hη) | |
| 218 | - | |
| 219 | 112 | |
| 220 | 113 | |
| 221 | 114 | theorem Bound.id (k : ℕ) : Bound k (fun η => η) 1 := by |
| @@ -227,15 +120,6 @@ theorem Bound.id (k : ℕ) : Bound k (fun η => η) 1 := by | ||
| 227 | 120 | · exact le_rfl |
| 228 | 121 | · norm_num |
| 229 | 122 | |
| 230 | -theorem Bound.of_le {k l : ℕ} {f : ℝ → ℝ} {B : ℝ} | |
| 231 | - (hf : Bound l f B) (hkl : k ≤ l) : Bound k f B := | |
| 232 | - fun n hn η hη => hf n (hn.trans hkl) η hη | |
| 233 | - | |
| 234 | -theorem PairBound.of_le {k l : ℕ} {f g : ℝ → ℝ} {B C ε : ℝ} | |
| 235 | - (hf : PairBound l f g B C ε) (hkl : k ≤ l) : PairBound k f g B C ε := | |
| 236 | - ⟨hf.smooth_left, hf.smooth_right, hf.left.of_le hkl, hf.right.of_le hkl, | |
| 237 | - hf.difference.of_le hkl⟩ | |
| 238 | - | |
| 239 | 123 | /-- A finite expression made from the exact scalar additions and products. -/ |
| 240 | 124 | inductive PolynomialExpression (ι : Type) |
| 241 | 125 | | input : ι → PolynomialExpression ι |
| @@ -248,42 +132,6 @@ namespace PolynomialExpression | ||
| 248 | 132 | |
| 249 | 133 | variable {ι : Type} |
| 250 | 134 | |
| 251 | -def eval (x : ι → ℝ → ℝ) : PolynomialExpression ι → ℝ → ℝ | |
| 252 | - | input i => x i | |
| 253 | - | constant c => fun _ => c | |
| 254 | - | add p q => fun η => eval x p η + eval x q η | |
| 255 | - | sub p q => fun η => eval x p η - eval x q η | |
| 256 | - | mul p q => fun η => eval x p η * eval x q η | |
| 257 | - | |
| 258 | -def bounds (k : ℕ) (B C : ι → ℝ) : PolynomialExpression ι → ℝ × ℝ | |
| 259 | - | input i => (B i, C i) | |
| 260 | - | constant c => (|c|, 0) | |
| 261 | - | add p q | sub p q => ((bounds k B C p).1+(bounds k B C q).1, | |
| 262 | - (bounds k B C p).2+(bounds k B C q).2) | |
| 263 | - | mul p q => ((2 : ℝ)^k*(bounds k B C p).1*(bounds k B C q).1, | |
| 264 | - (2 : ℝ)^k*((bounds k B C p).2*(bounds k B C q).1+ | |
| 265 | - (bounds k B C p).1*(bounds k B C q).2)) | |
| 266 | - | |
| 267 | -theorem bounds_nonneg (k : ℕ) {B C : ι → ℝ} (hB : ∀ i, 0 ≤ B i) | |
| 268 | - (hC : ∀ i, 0 ≤ C i) (p : PolynomialExpression ι) : | |
| 269 | - 0 ≤ (bounds k B C p).1 ∧ 0 ≤ (bounds k B C p).2 := by | |
| 270 | - induction p with | |
| 271 | - | input i => exact ⟨hB i, hC i⟩ | |
| 272 | - | constant c => exact ⟨abs_nonneg c, le_rfl⟩ | |
| 273 | - | add p q hp hq | sub p q hp hq => exact ⟨add_nonneg hp.1 hq.1, add_nonneg hp.2 hq.2⟩ | |
| 274 | - | mul p q hp hq => exact ⟨mul_nonneg (mul_nonneg (by positivity) hp.1) hq.1, | |
| 275 | - mul_nonneg (by positivity) (add_nonneg (mul_nonneg hp.2 hq.1) (mul_nonneg hp.1 hq.2))⟩ | |
| 276 | - | |
| 277 | -theorem eval_pairBound {k : ℕ} {f g : ι → ℝ → ℝ} {B C : ι → ℝ} {ε : ℝ} | |
| 278 | - (h : ∀ i, PairBound k (f i) (g i) (B i) (C i) ε) (p : PolynomialExpression ι) : | |
| 279 | - PairBound k (p.eval f) (p.eval g) (bounds k B C p).1 (bounds k B C p).2 ε := by | |
| 280 | - induction p with | |
| 281 | - | input i => exact h i | |
| 282 | - | constant c => exact PairBound.const k c ε | |
| 283 | - | add p q hp hq => exact hp.add hq | |
| 284 | - | sub p q hp hq => exact hp.sub hq | |
| 285 | - | mul p q hp hq => exact hp.mul hq | |
| 286 | - | |
| 287 | 135 | end PolynomialExpression |
| 288 | 136 | |
| 289 | 137 | end NavierStokes.ClosedIntervalJetAlgebra |
+26 −0 routes/s1-ns-closed-2/README.md added View file
| @@ -0,0 +1,26 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-closed-2 | |
| 6 | + | |
| 7 | +Wave-2 unit of S-1 (#10) for the family `NavierStokes/Closed*`: deletes the 15 | |
| 8 | +declarations `unit.json` lists from `NavierStokes/ClosedIntervalJetAlgebra.lean` | |
| 9 | +— `Bound.add`, `inverse_bound`, `PairBound.mono`, `PairBound.const`, | |
| 10 | +`PairBound.add`, `PairBound.sub`, `PairBound.mul`, `Bound.derivWithin`, | |
| 11 | +`PairBound.derivWithin`, `Bound.of_le`, `PairBound.of_le`, | |
| 12 | +`PolynomialExpression.eval`, `PolynomialExpression.bounds`, | |
| 13 | +`PolynomialExpression.bounds_nonneg`, `PolynomialExpression.eval_pairBound` — | |
| 14 | +152 lines in one file, nothing else. Treant's run of 2026-12-03 found them | |
| 15 | +unreachable from the four Comparator theorems; the wave was cut again on main | |
| 16 | +at `4385cbe` under the keep rule in `docs/s1-dead-code/README.md`. | |
| 17 | + | |
| 18 | +Checked before opening the pull request: `git grep` finds no file left in the | |
| 19 | +tree that names any of the 15 (the `inverse_bound` and `eval` hits elsewhere | |
| 20 | +are other declarations' own names); no deleted docstring cites the paper; the | |
| 21 | +diff is deletions only, and `python3 checks/challenge.py .` ends with `ok:`. | |
| 22 | + | |
| 23 | +## Next | |
| 24 | + | |
| 25 | +Open the pull request into main. If a later wave re-cuts this family from main, | |
| 26 | +start from the declarations still there. | |