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: #236 chore(NavierStokes/Loop): delete 38 declarations nothing uses
1 commit
+6 −235 NavierStokes/LoopMoments.lean View file
| @@ -7,14 +7,13 @@ import Mathlib.Tactic.Ring | ||
| 7 | 7 | /-! |
| 8 | 8 | # Exact moment algebra for the true-cone loop construction |
| 9 | 9 | |
| 10 | -This file proves the finite-distribution form of the averaging and rephasing | |
| 11 | -identities in Lemma 6.1 of the candidate manuscript. The formulas are algebraic; | |
| 12 | -no existence, smoothness, or invertibility of a circle reparametrization is | |
| 13 | -asserted here. The hypotheses of `rephased_moments` are ordinary mass, mean, | |
| 14 | -and variance constraints, not an assumption that a desired loop exists. | |
| 10 | +This file collects the algebraic ingredients of the true-cone loop construction | |
| 11 | +in Lemma 6.1 of the candidate manuscript: the averaging operator, the loop shear | |
| 12 | +and the rephasing density, with their elementary identities. The formulas are | |
| 13 | +algebraic; no existence, smoothness, or invertibility of a circle | |
| 14 | +reparametrization is asserted here. | |
| 15 | 15 | |
| 16 | -The final lemmas give explicit two-point distributions with prescribed variance. | |
| 17 | -They establish finite moment feasibility, including a one-sided support bound. | |
| 16 | +It also defines a two-point probability law and its mean. | |
| 18 | 17 | -/ |
| 19 | 18 | |
| 20 | 19 | namespace NavierStokes.LoopMoments |
| @@ -34,68 +33,6 @@ theorem avg_add (s : Finset ι) (w f g : ι → ℝ) : | ||
| 34 | 33 | avg s w (fun i => f i + g i) = avg s w f + avg s w g := by |
| 35 | 34 | simp only [avg, mul_add, Finset.sum_add_distrib] |
| 36 | 35 | |
| 37 | -theorem avg_sub (s : Finset ι) (w f g : ι → ℝ) : | |
| 38 | - avg s w (fun i => f i - g i) = avg s w f - avg s w g := by | |
| 39 | - simp only [avg, mul_sub, Finset.sum_sub_distrib] | |
| 40 | - | |
| 41 | -theorem avg_const_mul (s : Finset ι) (w f : ι → ℝ) (c : ℝ) : | |
| 42 | - avg s w (fun i => c * f i) = c * avg s w f := by | |
| 43 | - simp only [avg, Finset.mul_sum] | |
| 44 | - apply Finset.sum_congr rfl | |
| 45 | - intro i hi | |
| 46 | - ring | |
| 47 | - | |
| 48 | -theorem avg_const (s : Finset ι) (w : ι → ℝ) (c : ℝ) | |
| 49 | - (hmass : ∑ i ∈ s, w i = 1) : | |
| 50 | - avg s w (fun _ => c) = c := by | |
| 51 | - simp only [avg, ← Finset.sum_mul, hmass, one_mul] | |
| 52 | - | |
| 53 | -theorem avg_nonneg (s : Finset ι) (w f : ι → ℝ) | |
| 54 | - (hw : ∀ i ∈ s, 0 ≤ w i) (hf : ∀ i ∈ s, 0 ≤ f i) : | |
| 55 | - 0 ≤ avg s w f := by | |
| 56 | - exact Finset.sum_nonneg (fun i hi => mul_nonneg (hw i hi) (hf i hi)) | |
| 57 | - | |
| 58 | -/-- The standard variance expansion, with mass and first moment explicit. -/ | |
| 59 | -theorem variance_identity (s : Finset ι) (w t : ι → ℝ) (m : ℝ) | |
| 60 | - (hmass : ∑ i ∈ s, w i = 1) (hmean : avg s w t = m) : | |
| 61 | - avg s w (fun i => (t i - m) ^ 2) = avg s w (fun i => t i ^ 2) - m ^ 2 := by | |
| 62 | - calc | |
| 63 | - avg s w (fun i => (t i - m) ^ 2) = | |
| 64 | - avg s w (fun i => t i ^ 2 - (2 * m) * t i + m ^ 2) := by | |
| 65 | - congr 1 | |
| 66 | - funext i | |
| 67 | - ring | |
| 68 | - _ = avg s w (fun i => t i ^ 2) - (2 * m) * avg s w t + m ^ 2 := by | |
| 69 | - rw [avg_add, avg_sub, avg_const_mul, avg_const s w (m ^ 2) hmass] | |
| 70 | - _ = avg s w (fun i => t i ^ 2) - m ^ 2 := by rw [hmean]; ring | |
| 71 | - | |
| 72 | -/-- This is `a ⟨1+t²⟩ = a(1+m²) + ρ` from the manuscript. -/ | |
| 73 | -theorem energy_moment (s : Finset ι) (w t : ι → ℝ) (a m ρ : ℝ) | |
| 74 | - (ha : a ≠ 0) (hmass : ∑ i ∈ s, w i = 1) | |
| 75 | - (hmean : avg s w t = m) | |
| 76 | - (hvar : avg s w (fun i => (t i - m) ^ 2) = ρ / a) : | |
| 77 | - a * avg s w (fun i => 1 + t i ^ 2) = a * (1 + m ^ 2) + ρ := by | |
| 78 | - have hsecond : avg s w (fun i => t i ^ 2) = m ^ 2 + ρ / a := by | |
| 79 | - have := variance_identity s w t m hmass hmean | |
| 80 | - linarith | |
| 81 | - rw [avg_add, avg_const s w 1 hmass, hsecond] | |
| 82 | - field_simp; ring | |
| 83 | - | |
| 84 | -/-- A nonnegative weighted variance cannot decrease the nominal speed. -/ | |
| 85 | -theorem variance_nonneg (s : Finset ι) (w t : ι → ℝ) (m : ℝ) | |
| 86 | - (hw : ∀ i ∈ s, 0 ≤ w i) : | |
| 87 | - 0 ≤ avg s w (fun i => (t i - m) ^ 2) := by | |
| 88 | - exact avg_nonneg s w _ hw (fun i _ => sq_nonneg (t i - m)) | |
| 89 | - | |
| 90 | -theorem required_variance_nonneg (s : Finset ι) (w t : ι → ℝ) (a m ρ : ℝ) | |
| 91 | - (ha : 0 < a) (hw : ∀ i ∈ s, 0 ≤ w i) | |
| 92 | - (hvar : avg s w (fun i => (t i - m) ^ 2) = ρ / a) : | |
| 93 | - 0 ≤ ρ := by | |
| 94 | - have h := variance_nonneg s w t m hw | |
| 95 | - rw [hvar] at h | |
| 96 | - have hmul := mul_nonneg h (le_of_lt ha) | |
| 97 | - simpa only [div_mul_cancel₀ _ (ne_of_gt ha)] using hmul | |
| 98 | - | |
| 99 | 36 | /-- The rephasing density relative to the old averaging parameter. -/ |
| 100 | 37 | def phaseDensity (a v t : ℝ) : ℝ := a * (1 + t ^ 2) / v |
| 101 | 38 | |
| @@ -133,68 +70,6 @@ theorem density_times_loopC (a v t : ℝ) (hv : v ≠ 0) : | ||
| 133 | 70 | unfold phaseDensity loopC |
| 134 | 71 | field_simp |
| 135 | 72 | |
| 136 | -/-- Reweighting by the manuscript's density has total mass one. -/ | |
| 137 | -theorem rephased_mass (s : Finset ι) (w t : ι → ℝ) (a m ρ v : ℝ) | |
| 138 | - (ha : a ≠ 0) (hv : v ≠ 0) (hmass : ∑ i ∈ s, w i = 1) | |
| 139 | - (hmean : avg s w t = m) | |
| 140 | - (hvar : avg s w (fun i => (t i - m) ^ 2) = ρ / a) | |
| 141 | - (hspeed : v = a * (1 + m ^ 2) + ρ) : | |
| 142 | - ∑ i ∈ s, w i * phaseDensity a v (t i) = 1 := by | |
| 143 | - have he := energy_moment s w t a m ρ ha hmass hmean hvar | |
| 144 | - rw [← hspeed] at he | |
| 145 | - calc | |
| 146 | - (∑ i ∈ s, w i * phaseDensity a v (t i)) = | |
| 147 | - (a * avg s w (fun i => 1 + t i ^ 2)) / v := by | |
| 148 | - simp only [phaseDensity, avg, div_eq_mul_inv, Finset.mul_sum, Finset.sum_mul] | |
| 149 | - apply Finset.sum_congr rfl | |
| 150 | - intro i hi | |
| 151 | - ring | |
| 152 | - _ = 1 := by rw [he, div_self hv] | |
| 153 | - | |
| 154 | -/-- The radial shear has the original mean after rephasing. -/ | |
| 155 | -theorem rephased_meanA (s : Finset ι) (w t : ι → ℝ) (a v : ℝ) | |
| 156 | - (hv : v ≠ 0) (hmass : ∑ i ∈ s, w i = 1) : | |
| 157 | - avg s (fun i => w i * phaseDensity a v (t i)) (fun i => loopA v (t i)) = a := by | |
| 158 | - calc | |
| 159 | - avg s (fun i => w i * phaseDensity a v (t i)) (fun i => loopA v (t i)) = | |
| 160 | - avg s w (fun _ => a) := by | |
| 161 | - unfold avg | |
| 162 | - apply Finset.sum_congr rfl | |
| 163 | - intro i hi | |
| 164 | - rw [mul_assoc, density_times_loopA a v (t i) hv] | |
| 165 | - _ = a := avg_const s w a hmass | |
| 166 | - | |
| 167 | -/-- The signed axial shear has the original mean after rephasing. -/ | |
| 168 | -theorem rephased_meanC (s : Finset ι) (w t : ι → ℝ) (a v m : ℝ) | |
| 169 | - (hv : v ≠ 0) (hmean : avg s w t = m) : | |
| 170 | - avg s (fun i => w i * phaseDensity a v (t i)) (fun i => loopC v (t i)) = a * m := by | |
| 171 | - calc | |
| 172 | - avg s (fun i => w i * phaseDensity a v (t i)) (fun i => loopC v (t i)) = | |
| 173 | - avg s w (fun i => a * t i) := by | |
| 174 | - unfold avg | |
| 175 | - apply Finset.sum_congr rfl | |
| 176 | - intro i hi | |
| 177 | - rw [mul_assoc, density_times_loopC a v (t i) hv] | |
| 178 | - _ = a * m := by rw [avg_const_mul, hmean] | |
| 179 | - | |
| 180 | -/-- With `m = -b/a`, the two rephased means are exactly `(a,-b)`. -/ | |
| 181 | -theorem rephased_moments (s : Finset ι) (w t : ι → ℝ) (a b ρ v : ℝ) | |
| 182 | - (ha : 0 < a) (hρ : 0 ≤ ρ) (hmass : ∑ i ∈ s, w i = 1) | |
| 183 | - (hmean : avg s w t = -b / a) | |
| 184 | - (hvar : avg s w (fun i => (t i - (-b / a)) ^ 2) = ρ / a) | |
| 185 | - (hspeed : v = a * (1 + (-b / a) ^ 2) + ρ) : | |
| 186 | - (∑ i ∈ s, w i * phaseDensity a v (t i) = 1) ∧ | |
| 187 | - avg s (fun i => w i * phaseDensity a v (t i)) (fun i => loopA v (t i)) = a ∧ | |
| 188 | - avg s (fun i => w i * phaseDensity a v (t i)) (fun i => loopC v (t i)) = -b := by | |
| 189 | - have hvpos : 0 < v := by | |
| 190 | - rw [hspeed] | |
| 191 | - exact add_pos_of_pos_of_nonneg (mul_pos ha (one_add_sq_pos (-b / a))) hρ | |
| 192 | - have hv := ne_of_gt hvpos | |
| 193 | - refine ⟨rephased_mass s w t a (-b / a) ρ v (ne_of_gt ha) hv hmass hmean hvar hspeed, | |
| 194 | - rephased_meanA s w t a v hv hmass, ?_⟩ | |
| 195 | - rw [rephased_meanC s w t a v (-b / a) hv hmean] | |
| 196 | - field_simp | |
| 197 | - | |
| 198 | 73 | /-- A two-point probability law. This is a concrete finite object, without |
| 199 | 74 | any hypothesis asserting the existence of the manuscript's smooth loop. -/ |
| 200 | 75 | structure TwoPoint where |
| @@ -206,110 +81,6 @@ structure TwoPoint where | ||
| 206 | 81 | def TwoPoint.mean (q : TwoPoint) : ℝ := |
| 207 | 82 | q.leftWeight * q.leftValue + q.rightWeight * q.rightValue |
| 208 | 83 | |
| 209 | -def TwoPoint.centeredSecond (q : TwoPoint) (m : ℝ) : ℝ := | |
| 210 | - q.leftWeight * (q.leftValue - m) ^ 2 + q.rightWeight * (q.rightValue - m) ^ 2 | |
| 211 | - | |
| 212 | -def TwoPoint.IsProbability (q : TwoPoint) : Prop := | |
| 213 | - 0 ≤ q.leftWeight ∧ 0 ≤ q.rightWeight ∧ q.leftWeight + q.rightWeight = 1 | |
| 214 | - | |
| 215 | -/-- For any nonnegative variance, equal masses at `m ± √V` realize it. -/ | |
| 216 | -def symmetricPair (m V : ℝ) : TwoPoint := | |
| 217 | - ⟨1 / 2, 1 / 2, m - Real.sqrt V, m + Real.sqrt V⟩ | |
| 218 | - | |
| 219 | -theorem symmetricPair_probability (m V : ℝ) : (symmetricPair m V).IsProbability := by | |
| 220 | - norm_num [TwoPoint.IsProbability, symmetricPair] | |
| 221 | - | |
| 222 | -theorem symmetricPair_mean (m V : ℝ) : (symmetricPair m V).mean = m := by | |
| 223 | - dsimp [TwoPoint.mean, symmetricPair] | |
| 224 | - ring | |
| 225 | - | |
| 226 | -theorem symmetricPair_variance (m V : ℝ) (hV : 0 ≤ V) : | |
| 227 | - (symmetricPair m V).centeredSecond m = V := by | |
| 228 | - dsimp [TwoPoint.centeredSecond, symmetricPair] | |
| 229 | - have hsq := Real.sq_sqrt hV | |
| 230 | - nlinarith | |
| 231 | - | |
| 232 | -/-- An asymmetric law preserves a lower bound on the projection `p*t`, | |
| 233 | -while allowing any nonnegative variance. For `p = 0`, use `symmetricPair`. | |
| 234 | -The lower projected deviation is `-d`, and the upper one is `V*p²/d`. -/ | |
| 235 | -def oneSidedPair (m p d V : ℝ) : TwoPoint := | |
| 236 | - ⟨V * p ^ 2 / (d ^ 2 + V * p ^ 2), d ^ 2 / (d ^ 2 + V * p ^ 2), | |
| 237 | - m - d / p, m + V * p / d⟩ | |
| 238 | - | |
| 239 | -theorem oneSidedPair_denom_pos (p d V : ℝ) (hd : 0 < d) (hV : 0 ≤ V) : | |
| 240 | - 0 < d ^ 2 + V * p ^ 2 := by | |
| 241 | - have hprod := mul_nonneg hV (sq_nonneg p) | |
| 242 | - nlinarith | |
| 243 | - | |
| 244 | -theorem oneSidedPair_probability (m p d V : ℝ) (hd : 0 < d) (hV : 0 ≤ V) : | |
| 245 | - (oneSidedPair m p d V).IsProbability := by | |
| 246 | - have hden := oneSidedPair_denom_pos p d V hd hV | |
| 247 | - dsimp [TwoPoint.IsProbability, oneSidedPair] | |
| 248 | - refine ⟨div_nonneg (mul_nonneg hV (sq_nonneg p)) (le_of_lt hden), | |
| 249 | - div_nonneg (sq_nonneg d) (le_of_lt hden), ?_⟩ | |
| 250 | - field_simp; ring | |
| 251 | - | |
| 252 | -theorem oneSidedPair_mean (m p d V : ℝ) (hp : p ≠ 0) (hd : 0 < d) (hV : 0 ≤ V) : | |
| 253 | - (oneSidedPair m p d V).mean = m := by | |
| 254 | - have hden := ne_of_gt (oneSidedPair_denom_pos p d V hd hV) | |
| 255 | - have hdne := ne_of_gt hd | |
| 256 | - dsimp [TwoPoint.mean, oneSidedPair] | |
| 257 | - field_simp; ring | |
| 258 | - | |
| 259 | -theorem oneSidedPair_variance (m p d V : ℝ) | |
| 260 | - (hp : p ≠ 0) (hd : 0 < d) (hV : 0 ≤ V) : | |
| 261 | - (oneSidedPair m p d V).centeredSecond m = V := by | |
| 262 | - have hden := ne_of_gt (oneSidedPair_denom_pos p d V hd hV) | |
| 263 | - have hdne := ne_of_gt hd | |
| 264 | - dsimp [TwoPoint.centeredSecond, oneSidedPair] | |
| 265 | - field_simp; ring | |
| 266 | - | |
| 267 | -theorem oneSidedPair_lower_projection (m p d V : ℝ) (hp : p ≠ 0) : | |
| 268 | - p * ((oneSidedPair m p d V).leftValue - m) = -d := by | |
| 269 | - dsimp [oneSidedPair] | |
| 270 | - field_simp; ring | |
| 271 | - | |
| 272 | -theorem oneSidedPair_upper_projection (m p d V : ℝ) : | |
| 273 | - p * ((oneSidedPair m p d V).rightValue - m) = V * p ^ 2 / d := by | |
| 274 | - dsimp [oneSidedPair] | |
| 275 | - ring | |
| 276 | - | |
| 277 | -/-- Every mean whose stress projection is strictly above `2` has a finite | |
| 278 | -two-point distribution with any prescribed nonnegative variance, with both | |
| 279 | -support points still strictly above that same projection threshold. This is | |
| 280 | -a feasibility statement for the tilt moments, not the full true-cone test. -/ | |
| 281 | -theorem exists_projected_twoPoint (p₁ p₂ m V : ℝ) | |
| 282 | - (hP : 2 < p₁ + p₂ * m) (hV : 0 ≤ V) : | |
| 283 | - ∃ q : TwoPoint, q.IsProbability ∧ q.mean = m ∧ q.centeredSecond m = V ∧ | |
| 284 | - 2 < p₁ + p₂ * q.leftValue ∧ 2 < p₁ + p₂ * q.rightValue := by | |
| 285 | - by_cases hp : p₂ = 0 | |
| 286 | - · refine ⟨symmetricPair m V, symmetricPair_probability m V, | |
| 287 | - symmetricPair_mean m V, symmetricPair_variance m V hV, ?_, ?_⟩ <;> | |
| 288 | - simpa only [hp, zero_mul, add_zero] using hP | |
| 289 | - · let d := (p₁ + p₂ * m - 2) / 2 | |
| 290 | - have hd : 0 < d := by dsimp [d]; linarith | |
| 291 | - refine ⟨oneSidedPair m p₂ d V, oneSidedPair_probability m p₂ d V hd hV, | |
| 292 | - oneSidedPair_mean m p₂ d V hp hd hV, | |
| 293 | - oneSidedPair_variance m p₂ d V hp hd hV, ?_, ?_⟩ | |
| 294 | - · have hleft := oneSidedPair_lower_projection m p₂ d V hp | |
| 295 | - dsimp [d] at hleft | |
| 296 | - linarith | |
| 297 | - · have hright := oneSidedPair_upper_projection m p₂ d V | |
| 298 | - have hinc : 0 ≤ V * p₂ ^ 2 / d := | |
| 299 | - div_nonneg (mul_nonneg hV (sq_nonneg p₂)) (le_of_lt hd) | |
| 300 | - linarith | |
| 301 | - | |
| 302 | -/-- The cutoff correction used by the manuscript remains between the old | |
| 303 | -speed and the target speed whenever the old speed is below that target. -/ | |
| 304 | -theorem corrected_speed_bounds (v₀ vstar ζ : ℝ) | |
| 305 | - (hz₀ : 0 ≤ ζ) (hz₁ : ζ ≤ 1) (hv : v₀ ≤ vstar) : | |
| 306 | - v₀ ≤ v₀ + ζ ^ 2 * (vstar - v₀) ∧ | |
| 307 | - v₀ + ζ ^ 2 * (vstar - v₀) ≤ vstar := by | |
| 308 | - have hs : ζ ^ 2 ≤ 1 := by nlinarith | |
| 309 | - have hlow := mul_nonneg (sq_nonneg ζ) (sub_nonneg.mpr hv) | |
| 310 | - have hupp := mul_nonneg (sub_nonneg.mpr hs) (sub_nonneg.mpr hv) | |
| 311 | - constructor <;> nlinarith | |
| 312 | - | |
| 313 | 84 | end |
| 314 | 85 | |
| 315 | 86 | end NavierStokes.LoopMoments |
+0 −71 NavierStokes/LoopVariance.lean View file
| @@ -68,17 +68,11 @@ theorem moment_analyticAt (n : ℕ) (s : ℝ) : AnalyticAt ℝ (moment n) s := b | ||
| 68 | 68 | exact (analyticAt_iteratedDeriv_mgf (mem_interior_integrableExpSet s) n).div |
| 69 | 69 | analyticAt_const period_ne_zero |
| 70 | 70 | |
| 71 | -theorem moment_contDiff (n : ℕ) : ContDiff ℝ (∞ : WithTop ℕ∞) (moment n) := | |
| 72 | - contDiff_iff_contDiffAt.mpr (fun s => (moment_analyticAt n s).contDiffAt) | |
| 73 | - | |
| 74 | 71 | theorem normalizer_analyticAt (s : ℝ) : AnalyticAt ℝ expNormalizer s := by |
| 75 | 72 | have heq : expNormalizer = moment 0 := funext normalizer_eq_moment |
| 76 | 73 | rw [heq] |
| 77 | 74 | exact moment_analyticAt 0 s |
| 78 | 75 | |
| 79 | -theorem normalizer_contDiff : ContDiff ℝ (∞ : WithTop ℕ∞) expNormalizer := | |
| 80 | - contDiff_iff_contDiffAt.mpr (fun s => (normalizer_analyticAt s).contDiffAt) | |
| 81 | - | |
| 82 | 76 | theorem normalizer_hasDerivAt (s : ℝ) : HasDerivAt expNormalizer (moment 1 s) s := by |
| 83 | 77 | have heq : expNormalizer = moment 0 := funext normalizer_eq_moment |
| 84 | 78 | rw [heq] |
| @@ -151,17 +145,9 @@ theorem logSlope_strictMono : StrictMono logSlope := by | ||
| 151 | 145 | tilt variance is obtained by multiplication and the substitution `s=μp`. -/ |
| 152 | 146 | def baseVariance (s : ℝ) : ℝ := expNormalizer (2 * s) / expNormalizer s ^ 2 - 1 |
| 153 | 147 | |
| 154 | -theorem baseVariance_eq_integral (s : ℝ) : | |
| 155 | - baseVariance s = angularMean (fun θ => (normalizedExp s θ - 1) ^ 2) := | |
| 156 | - (normalizedExp_variance s).symm | |
| 157 | - | |
| 158 | 148 | theorem baseVariance_zero : baseVariance 0 = 0 := by |
| 159 | 149 | simp [baseVariance, expNormalizer_zero] |
| 160 | 150 | |
| 161 | -theorem baseVariance_nonneg (s : ℝ) : 0 ≤ baseVariance s := by | |
| 162 | - rw [baseVariance_eq_integral] | |
| 163 | - exact angularMean_nonneg _ (fun θ => sq_nonneg _) | |
| 164 | - | |
| 165 | 151 | theorem baseVariance_add_one_pos (s : ℝ) : 0 < baseVariance s + 1 := by |
| 166 | 152 | have hp := div_pos (expNormalizer_pos (2 * s)) (sq_pos_of_pos (expNormalizer_pos s)) |
| 167 | 153 | dsimp [baseVariance] |
| @@ -499,13 +485,6 @@ theorem baseVariance_unbounded (B : ℝ) : ∃ s : ℝ, 0 ≤ s ∧ B ≤ baseVa | ||
| 499 | 485 | have hg := baseVariance_square_growth t ht |
| 500 | 486 | linarith |
| 501 | 487 | |
| 502 | -theorem baseVariance_tendsto_atTop : Filter.Tendsto baseVariance Filter.atTop Filter.atTop := by | |
| 503 | - rw [Filter.tendsto_atTop_atTop] | |
| 504 | - intro B | |
| 505 | - obtain ⟨s, hs, hB⟩ := baseVariance_unbounded B | |
| 506 | - refine ⟨s, fun t ht => hB.trans ?_⟩ | |
| 507 | - exact baseVariance_strictMonoOn.monotoneOn hs (le_trans hs ht) ht | |
| 508 | - | |
| 509 | 488 | theorem baseVariance_deriv_neg {s : ℝ} (hs : s < 0) : deriv baseVariance s < 0 := by |
| 510 | 489 | rw [(baseVariance_hasDerivAt s).deriv] |
| 511 | 490 | have hlog := logSlope_strictMono (show 2 * s < s by linarith) |
| @@ -568,10 +547,6 @@ theorem inverseRoot_contDiff : ContDiff ℝ ω inverseRoot := by | ||
| 568 | 547 | theorem inverseRoot_zero : inverseRoot 0 = 0 := by |
| 569 | 548 | simpa only [signedRoot_zero] using inverseRoot_left 0 |
| 570 | 549 | |
| 571 | -theorem inverseRoot_odd (s : ℝ) : inverseRoot (-s) = -inverseRoot s := by | |
| 572 | - apply signedRoot_strictMono.injective | |
| 573 | - rw [inverseRoot_right, signedRoot_odd, inverseRoot_right] | |
| 574 | - | |
| 575 | 550 | theorem inverseRoot_deriv_zero : deriv inverseRoot 0 = 1 / Real.sqrt (1 / 2) := by |
| 576 | 551 | have hinv := (inverseRoot_contDiff.differentiable (by simp) 0).hasDerivAt |
| 577 | 552 | have hout : HasDerivAt signedRoot (Real.sqrt (1 / 2)) (inverseRoot 0) := by |
| @@ -665,11 +640,6 @@ theorem solveScale_nonneg (d p r : ℝ) (hd : 0 < d) (hr : 0 ≤ r) : 0 ≤ solv | ||
| 665 | 640 | rw [scaledRoot_zero, solveScale_spec d p r (ne_of_gt hd)] |
| 666 | 641 | exact hr |
| 667 | 642 | |
| 668 | -theorem solveScale_unique (d p r μ : ℝ) (hd : 0 < d) | |
| 669 | - (hμ : scaledRoot d p μ = r) : μ = solveScale d p r := by | |
| 670 | - apply (scaledRoot_strictMono d p hd).injective | |
| 671 | - rw [hμ, solveScale_spec d p r (ne_of_gt hd)] | |
| 672 | - | |
| 673 | 643 | /-- Smooth dependence on the prescribed *signed square root* of variance, |
| 674 | 644 | including at `p=0` and `r=0`. -/ |
| 675 | 645 | theorem solveScale_joint_contDiff (d : ℝ) : |
| @@ -702,25 +672,10 @@ theorem tiltVariance_zero_parameter (d μ : ℝ) : tiltVariance d 0 μ = d ^ 2 * | ||
| 702 | 672 | simp only [tiltVariance, mul_zero, quadraticFactor_zero] |
| 703 | 673 | ring |
| 704 | 674 | |
| 705 | -theorem tiltVariance_zero_amplitude (d p : ℝ) : tiltVariance d p 0 = 0 := by | |
| 706 | - simp [tiltVariance] | |
| 707 | - | |
| 708 | 675 | theorem solveScale_variance (d p r : ℝ) (hd : d ≠ 0) : |
| 709 | 676 | tiltVariance d p (solveScale d p r) = r ^ 2 := by |
| 710 | 677 | rw [← scaledRoot_sq, solveScale_spec d p r hd] |
| 711 | 678 | |
| 712 | -theorem exists_unique_nonneg_variance_parameter (d p V : ℝ) (hd : 0 < d) (hV : 0 ≤ V) : | |
| 713 | - ∃! μ : ℝ, 0 ≤ μ ∧ tiltVariance d p μ = V := by | |
| 714 | - refine ⟨solveScale d p (Real.sqrt V), | |
| 715 | - ⟨solveScale_nonneg d p _ hd (Real.sqrt_nonneg V), ?_⟩, ?_⟩ | |
| 716 | - · rw [solveScale_variance d p _ (ne_of_gt hd), Real.sq_sqrt hV] | |
| 717 | - · intro μ hμ | |
| 718 | - apply solveScale_unique d p (Real.sqrt V) μ hd | |
| 719 | - have hnonneg : 0 ≤ scaledRoot d p μ := by | |
| 720 | - exact mul_nonneg (mul_nonneg hd.le hμ.1) (Real.sqrt_nonneg _) | |
| 721 | - have hsquare : scaledRoot d p μ ^ 2 = V := by rw [scaledRoot_sq, hμ.2] | |
| 722 | - nlinarith [Real.sq_sqrt hV, Real.sqrt_nonneg V] | |
| 723 | - | |
| 724 | 679 | theorem tiltVariance_strictMonoOn (d p : ℝ) (hd : 0 < d) : |
| 725 | 680 | StrictMonoOn (tiltVariance d p) (Ici 0) := by |
| 726 | 681 | intro μ hμ ν hν hlt |
| @@ -731,15 +686,6 @@ theorem tiltVariance_strictMonoOn (d p : ℝ) (hd : 0 < d) : | ||
| 731 | 686 | rw [← scaledRoot_sq, ← scaledRoot_sq] |
| 732 | 687 | nlinarith |
| 733 | 688 | |
| 734 | -theorem tiltVariance_tendsto_atTop (d p : ℝ) (hd : 0 < d) : | |
| 735 | - Filter.Tendsto (tiltVariance d p) Filter.atTop Filter.atTop := by | |
| 736 | - rw [Filter.tendsto_atTop_atTop] | |
| 737 | - intro B | |
| 738 | - obtain ⟨μ, hμ, _⟩ := exists_unique_nonneg_variance_parameter d p (max 0 B) hd (le_max_left _ _) | |
| 739 | - refine ⟨μ, fun ν hν => (le_max_right 0 B).trans ?_⟩ | |
| 740 | - rw [← hμ.2] | |
| 741 | - exact (tiltVariance_strictMonoOn d p hd).monotoneOn hμ.1 (le_trans hμ.1 hν) hν | |
| 742 | - | |
| 743 | 689 | theorem tiltVariance_eq_extended_integral (m d p μ : ℝ) : |
| 744 | 690 | tiltVariance d p μ = angularMean (fun θ => (extendedExpTilt m d μ p θ - m) ^ 2) := by |
| 745 | 691 | by_cases hp : p = 0 |
| @@ -879,23 +825,6 @@ theorem solvedTilt_zero_target (m d p θ : ℝ) : solvedTilt m d p 0 θ = m := b | ||
| 879 | 825 | simp [solvedTilt, solveScale, extendedExpTilt, hp, cosineTilt, expTilt, |
| 880 | 826 | normalizedExp, expNormalizer_zero] |
| 881 | 827 | |
| 882 | -/-- The actual periodic analogue of `LoopMoments.exists_projected_twoPoint`: | |
| 883 | -all prescribed nonnegative variances are realized, with no cosine-amplitude | |
| 884 | -restriction. -/ | |
| 885 | -theorem exists_smooth_projected_tilt (p₁ p₂ m V : ℝ) | |
| 886 | - (hP : 2 < p₁ + p₂ * m) (hV : 0 ≤ V) : | |
| 887 | - ∃ t : ℝ → ℝ, ContDiff ℝ (∞ : WithTop ℕ∞) t ∧ | |
| 888 | - Function.Periodic t (2 * Real.pi) ∧ angularMean t = m ∧ | |
| 889 | - angularMean (fun θ => (t θ - m) ^ 2) = V ∧ | |
| 890 | - ∀ θ, 2 < p₁ + p₂ * t θ := by | |
| 891 | - let d := (p₁ + p₂ * m - 2) / 2 | |
| 892 | - have hd : 0 < d := by dsimp [d]; linarith | |
| 893 | - have hm : 2 ≤ p₁ + p₂ * m - d := by dsimp [d]; linarith | |
| 894 | - refine ⟨solvedTilt m d p₂ (Real.sqrt V), solvedTilt_contDiff _ _ _ _, | |
| 895 | - solvedTilt_periodic _ _ _ _, solvedTilt_mean _ _ _ _, ?_, | |
| 896 | - solvedTilt_projection p₁ m d p₂ _ hd hm⟩ | |
| 897 | - rw [solvedTilt_variance _ _ _ _ (ne_of_gt hd), Real.sq_sqrt hV] | |
| 898 | - | |
| 899 | 828 | /-- Compact transverse-stress data have one amplitude that exceeds a |
| 900 | 829 | prescribed variance target everywhere, as required before choosing the |
| 901 | 830 | uniform cone margin in the manuscript. -/ |
+19 −0 routes/s1-ns-loop-1/README.md added View file
| @@ -0,0 +1,19 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-loop-1 | |
| 6 | + | |
| 7 | +The declarations unit of #10 for the family `NavierStokes/Loop*`: delete the 38 | |
| 8 | +declarations of `NavierStokes/LoopMoments.lean` and `NavierStokes/LoopVariance.lean` | |
| 9 | +that nothing uses (299 lines), keeping every declaration that a paper result | |
| 10 | +reaches, that cites the paper, or that a surviving declaration names. | |
| 11 | + | |
| 12 | +The one change that is not a deletion: the module docstring of | |
| 13 | +`NavierStokes/LoopMoments.lean` named the deleted `rephased_moments` and | |
| 14 | +described the deleted two-point feasibility lemmas, so it now describes what the | |
| 15 | +file still contains. | |
| 16 | + | |
| 17 | +## Next | |
| 18 | + | |
| 19 | +Not wait for `challenge` and `build` here; say on #10 what was pushed and stop. | |