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 #262 from s1-ns-similarity-1
Browse fileschore(NavierStokes/Similarity): delete 31 declarations nothing uses
main maintainer-statement p1-ns-physical s1-euler-all-2 s1-euler-all-3 s1-euler-angle-9 s1-euler-base-2 s1-euler-bounded-2 s1-euler-canonical-8 s1-euler-child-2 s1-euler-common-2 s1-euler-constant-2 s1-euler-continuous-2 s1-euler-correction-2 s1-euler-correction-3 s1-euler-correction-9 s1-euler-cylinder-2 s1-euler-cylinder-3 s1-euler-cylinder-8 s1-euler-dirichlet-6 s1-euler-euler-1 s1-euler-euler-2 s1-euler-euler-6 s1-euler-exact-3 s1-euler-field-2 s1-euler-finite-3 s1-euler-flow-2 s1-euler-frozen-2 s1-euler-general-2 s1-euler-heat-2 s1-euler-hilbert-6 s1-euler-inviscid-8 s1-euler-isometric-2 s1-euler-lp-2 s1-euler-lp-3 s1-euler-mean-2 s1-euler-mean-8 s1-euler-ordinary-6 s1-euler-packet-2 s1-euler-packet-3 s1-euler-packet-8 s1-euler-parent-2 s1-euler-quadratic-2 s1-euler-resolvent-2 s1-euler-separating-2 s1-euler-smooth-2 s1-euler-sobolev-2 s1-euler-source-6 s1-euler-time-2 s1-euler-transverse-2 s1-euler-transverse-6 s1-euler-transverse-9 s1-euler-volume-3 s1-euler-vorticity-2 s1-euler-weighted-2 s1-ns-activation-2 s1-ns-active-2 s1-ns-actual-2 s1-ns-actual-3 s1-ns-actual-8 s1-ns-aligned-2 s1-ns-angular-2 s1-ns-annular-6 s1-ns-annular-8 s1-ns-assembled-2 s1-ns-assembled-7 s1-ns-axis-2 s1-ns-axisymmetric-2 s1-ns-axisymmetric-8 s1-ns-band-2 s1-ns-base-1 s1-ns-base-2 s1-ns-base-6 s1-ns-base-8 s1-ns-borel-2 s1-ns-borel-3 s1-ns-boundary-2 s1-ns-cauchy-2 s1-ns-closed-2 s1-ns-common-2 s1-ns-common-6 s1-ns-common-8 s1-ns-common-9 s1-ns-compact-2 s1-ns-constructed-2 s1-ns-constructed-3 s1-ns-constructed-8 s1-ns-copy-6 s1-ns-copy-8 s1-ns-correction-2 s1-ns-correction-3 s1-ns-curl-2 s1-ns-curl-6 s1-ns-curl-9 s1-ns-current-3 s1-ns-cycle-2 s1-ns-cycle-3 s1-ns-defect-2 s1-ns-direct-2 s1-ns-edge-6 s1-ns-entrance-2 s1-ns-error-2 s1-ns-error-3 s1-ns-error-9 s1-ns-even-2 s1-ns-even-3 s1-ns-exponent-2 s1-ns-final-2 s1-ns-final-6 s1-ns-first-2 s1-ns-first-3 s1-ns-five-8 s1-ns-flat-2 s1-ns-flat-3 s1-ns-flat-8 s1-ns-flatness-2 s1-ns-fourier-2 s1-ns-fourier-3 s1-ns-future-2 s1-ns-gauge-2 s1-ns-gaussian-2 s1-ns-global-2 s1-ns-graph-6 s1-ns-graph-9 s1-ns-harmonic-11 s1-ns-harmonic-6 s1-ns-harmonic-7 s1-ns-heat-2 s1-ns-heat-3 s1-ns-initialized-2 s1-ns-joint-2 s1-ns-joint-3 s1-ns-joint-8 s1-ns-label-6 s1-ns-linear-2 s1-ns-linear-6 s1-ns-linear-7 s1-ns-local-2 s1-ns-localized-1 s1-ns-localized-2 s1-ns-localized-6 s1-ns-maximal-2 s1-ns-mean-1 s1-ns-mean-2 s1-ns-mean-8 s1-ns-mixed-2 s1-ns-modulated-3 s1-ns-moment-6 s1-ns-native-2 s1-ns-natural-1 s1-ns-natural-2 s1-ns-nilpotent-2 s1-ns-offplane-1 s1-ns-offplane-2 s1-ns-offplane-6 s1-ns-oscillatory-2 s1-ns-parametric-2 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-past-2 s1-ns-periodic-2 s1-ns-periodic-3 s1-ns-periodic-8 s1-ns-periodic-9 s1-ns-periodized-2 s1-ns-periodized-6 s1-ns-periodized-8 s1-ns-periodized-9 s1-ns-phase-2 s1-ns-physical-2 s1-ns-physical-3 s1-ns-physical-8 s1-ns-positive-2 s1-ns-positive-8 s1-ns-prepared-6 s1-ns-pressure-2 s1-ns-pressure-9 s1-ns-primary-2 s1-ns-primary-6 s1-ns-primary-8 s1-ns-pulse-2 s1-ns-r3-2 s1-ns-radial-2 s1-ns-radial-9 s1-ns-reference-2 s1-ns-regular-2 s1-ns-renormalized-2 s1-ns-reserved-8 s1-ns-residual-2 s1-ns-residual-3 s1-ns-scaled-3 s1-ns-scaling-2 s1-ns-schedule-2 s1-ns-sharp-2 s1-ns-signed-2 s1-ns-signed-3 s1-ns-signed-8 s1-ns-similarity-2 s1-ns-slot-2 s1-ns-slow-2 s1-ns-slow-6 s1-ns-smooth-2 s1-ns-smooth-3 s1-ns-smooth-8 s1-ns-solenoidal-2 s1-ns-spacetime-3 s1-ns-spatial-2 s1-ns-squared-2 s1-ns-state-2 s1-ns-state-8 s1-ns-subcover-2 s1-ns-tail-2 s1-ns-temporal-2 s1-ns-temporal-3 s1-ns-temporal-8 s1-ns-terminal-1 s1-ns-terminal-6 s1-ns-time-2 s1-ns-torus-2 s1-ns-torus-3 s1-ns-transition-2 s1-ns-transport-2 s1-ns-true-1 s1-ns-uniform-2 s1-ns-uniform-8 s1-ns-variable-2 s1-ns-variable-3 s1-ns-viscous-6 s1-ns-volterra-2 s1-ns-wave-11 s1-ns-wave-2 s1-ns-wave-3 s1-ns-wave-8 s1-ns-weighted-10 s1-ns-weighted-12 s1-ns-weighted-2 s1-ns-weighted-3 s1-ns-weighted-8 s1-ns-weighted-9 s1-ns-whole-3 s1-ns-within-2 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 −6 NavierStokes/SimilarityApproach.lean View file
| @@ -70,12 +70,6 @@ theorem coordinateQ_tendsto_zero {α : Type*} {l : Filter α} {tau z : α → | ||
| 70 | 70 | · filter_upwards [hpos] with i hi |
| 71 | 71 | exact coordinateQ_le_upperScale ha ha1 hi |
| 72 | 72 | |
| 73 | -theorem physical_q_bound {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) | |
| 74 | - {p : SimilarityProfile.PhysicalPoint} (ht : p.1 < 1) : | |
| 75 | - SimilarityProfile.q h p ≤ | |
| 76 | - 2 * (1 - p.1) + (2 * p.2.2 ^ 2) ^ (1 - 2 * h)⁻¹ := | |
| 77 | - coordinateQ_le_upperScale (by linarith) (by linarith) (sub_pos.mpr ht) | |
| 78 | - | |
| 79 | 73 | theorem physical_q_tendsto_zero {α : Type*} {l : Filter α} |
| 80 | 74 | {p : α → SimilarityProfile.PhysicalPoint} {h : ℝ} |
| 81 | 75 | (hh : 0 < h) (hh1 : h < 1 / 2) |
+0 −42 NavierStokes/SimilarityCoordinates.lean View file
| @@ -285,11 +285,6 @@ theorem coordinateQ_smooth {a : ℝ} (ha : 0 < a) (ha1 : a < 1) | ||
| 285 | 285 | rw [himage] at hsm |
| 286 | 286 | exact hsm.fst |
| 287 | 287 | |
| 288 | -theorem coordinateQ_smoothOn {a : ℝ} (ha : 0 < a) (ha1 : a < 1) : | |
| 289 | - ContDiffOn ℝ ∞ (coordinateQ a) {p : ℝ × ℝ | 0 < p.1} := by | |
| 290 | - intro p hp | |
| 291 | - exact (coordinateQ_smooth ha ha1 hp).contDiffWithinAt | |
| 292 | - | |
| 293 | 288 | /-- Full Fréchet derivative of the actual implicitly defined coordinate. -/ |
| 294 | 289 | theorem coordinateQ_fderiv_apply {a : ℝ} (ha : 0 < a) (ha1 : a < 1) |
| 295 | 290 | {p : ℝ × ℝ} (hp : 0 < p.1) (v : ℝ × ℝ) : |
| @@ -371,20 +366,6 @@ theorem coordinateEta_abs_lt_one {a : ℝ} (ha : 0 < a) (ha1 : a < 1) | ||
| 371 | 366 | apply abs_lt.mpr |
| 372 | 367 | constructor <;> nlinarith |
| 373 | 368 | |
| 374 | -/-- The branch lies strictly beyond the manuscript's threshold | |
| 375 | -`|z|^(1/D)`, where `D=(1-a)/2`. -/ | |
| 376 | -theorem coordinateQ_above_threshold {a : ℝ} (ha : 0 < a) (ha1 : a < 1) | |
| 377 | - {p : ℝ × ℝ} (hp : 0 < p.1) : | |
| 378 | - |p.2| ^ (((1 - a) / 2)⁻¹) < coordinateQ a p := by | |
| 379 | - have hq := (coordinateQ_spec ha ha1 hp).1 | |
| 380 | - have hd : 0 < (1 - a) / 2 := by linarith | |
| 381 | - have hpow : 0 < coordinateQ a p ^ ((1 - a) / 2) := Real.rpow_pos_of_pos hq _ | |
| 382 | - have hη := coordinateEta_abs_lt_one ha ha1 hp | |
| 383 | - unfold coordinateEta at hη | |
| 384 | - rw [abs_div, abs_of_pos hpow] at hη | |
| 385 | - exact (Real.rpow_inv_lt_iff_of_pos (abs_nonneg p.2) hq.le hd).mpr | |
| 386 | - ((div_lt_one hpow).mp hη) | |
| 387 | - | |
| 388 | 369 | /-- Both implicit descriptions in equation (3) agree for the constructed |
| 389 | 370 | coordinates: `τ=q(1-η²)`. -/ |
| 390 | 371 | theorem tau_coordinate_identity {a : ℝ} (ha : 0 < a) (ha1 : a < 1) |
| @@ -406,13 +387,6 @@ theorem scalarSlope_eq_L {a : ℝ} (ha : 0 < a) (ha1 : a < 1) | ||
| 406 | 387 | rw [Real.rpow_sub_one hq.ne', coordinateEta_sq ha ha1 hp] |
| 407 | 388 | ring |
| 408 | 389 | |
| 409 | -theorem coordinateQ_hasDerivAt_tau_L {a τ z : ℝ} | |
| 410 | - (ha : 0 < a) (ha1 : a < 1) (hτ : 0 < τ) : | |
| 411 | - HasDerivAt (fun t => coordinateQ a (t, z)) | |
| 412 | - (1 / (1 - a * coordinateEta a (τ, z) ^ 2)) τ := by | |
| 413 | - have hc := coordinateQ_hasDerivAt_tau (z := z) ha ha1 hτ | |
| 414 | - rwa [scalarSlope_eq_L ha ha1 (p := (τ, z)) hτ] at hc | |
| 415 | - | |
| 416 | 390 | theorem coordinateQ_hasDerivAt_time_L {a t z : ℝ} |
| 417 | 391 | (ha : 0 < a) (ha1 : a < 1) (ht : t < 1) : |
| 418 | 392 | HasDerivAt (fun s => coordinateQ a (1 - s, z)) |
| @@ -499,11 +473,6 @@ theorem coordinateQ_hasDerivAt_z_L {a τ z : ℝ} | ||
| 499 | 473 | |
| 500 | 474 | def coordinateX (a s : ℝ) (p : ℝ × ℝ) : ℝ := s / coordinateQ a p |
| 501 | 475 | |
| 502 | -theorem coordinateX_smooth {a s : ℝ} (ha : 0 < a) (ha1 : a < 1) | |
| 503 | - {p : ℝ × ℝ} (hp : 0 < p.1) : ContDiffAt ℝ ∞ (coordinateX a s) p := by | |
| 504 | - exact contDiffAt_const.div (coordinateQ_smooth ha ha1 hp) | |
| 505 | - (coordinateQ_spec ha ha1 hp).1.ne' | |
| 506 | - | |
| 507 | 476 | theorem coordinateX_hasDerivAt_time {a s t z : ℝ} |
| 508 | 477 | (ha : 0 < a) (ha1 : a < 1) (ht : t < 1) : |
| 509 | 478 | HasDerivAt (fun u => coordinateX a s (1 - u, z)) |
| @@ -539,17 +508,6 @@ theorem coordinateX_hasDerivAt_z {a s τ z : ℝ} | ||
| 539 | 508 | unfold coordinateX |
| 540 | 509 | field_simp [hq.1.ne', hpow, hm]; ring |
| 541 | 510 | |
| 542 | -/-- Joint physical `(t,z)` smoothness of the actual coordinate functions. -/ | |
| 543 | -theorem physical_coordinates_smooth {a : ℝ} (ha : 0 < a) (ha1 : a < 1) | |
| 544 | - {p : ℝ × ℝ} (hp : p.1 < 1) : | |
| 545 | - ContDiffAt ℝ ∞ | |
| 546 | - (fun x : ℝ × ℝ => | |
| 547 | - (coordinateQ a (1 - x.1, x.2), coordinateEta a (1 - x.1, x.2))) p := by | |
| 548 | - have hm : ContDiffAt ℝ ∞ (fun x : ℝ × ℝ => (1 - x.1, x.2)) p := | |
| 549 | - (contDiffAt_const.sub contDiffAt_fst).prodMk contDiffAt_snd | |
| 550 | - exact ((coordinateQ_smooth ha ha1 (p := (1 - p.1, p.2)) (sub_pos.mpr hp)).prodMk | |
| 551 | - (coordinateEta_smooth ha ha1 (p := (1 - p.1, p.2)) (sub_pos.mpr hp))).comp p hm | |
| 552 | - | |
| 553 | 511 | /-- Equation (3), with exactly the manuscript's exponent `2h`. -/ |
| 554 | 512 | theorem manuscript_coordinate_existsUnique {h τ : ℝ} (hh : 0 < h) |
| 555 | 513 | (hh1 : h < 1 / 2) (hτ : 0 < τ) (z : ℝ) : |
+1 −172 NavierStokes/SimilarityHomogeneity.lean View file
| @@ -91,17 +91,6 @@ noncomputable def physicalScale (h Q : ℝ) (p : SimilarityProfile.PhysicalPoint | ||
| 91 | 91 | SimilarityProfile.PhysicalPoint := |
| 92 | 92 | (1 - Q * (1 - p.1), (Q * p.2.1, Q ^ D h * p.2.2)) |
| 93 | 93 | |
| 94 | -theorem physicalScale_smooth (h Q : ℝ) : ContDiff ℝ ∞ (physicalScale h Q) := | |
| 95 | - (contDiff_const.sub (contDiff_const.mul (contDiff_const.sub contDiff_fst))).prodMk | |
| 96 | - ((contDiff_const.mul contDiff_snd.fst).prodMk | |
| 97 | - (contDiff_const.mul contDiff_snd.snd)) | |
| 98 | - | |
| 99 | -theorem physicalScale_time_lt_one {h Q : ℝ} (hQ : 0 < Q) | |
| 100 | - {p : SimilarityProfile.PhysicalPoint} (hp : p.1 < 1) : | |
| 101 | - (physicalScale h Q p).1 < 1 := by | |
| 102 | - change 1 - Q * (1 - p.1) < 1 | |
| 103 | - linarith [mul_pos hQ (sub_pos.mpr hp)] | |
| 104 | - | |
| 105 | 94 | theorem q_physicalScale {h Q : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 106 | 95 | (hQ : 0 < Q) {p : SimilarityProfile.PhysicalPoint} (hp : p.1 < 1) : |
| 107 | 96 | SimilarityProfile.q h (physicalScale h Q p) = Q * SimilarityProfile.q h p := by |
| @@ -129,17 +118,6 @@ theorem inner_physicalScale {h Q : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) | ||
| 129 | 118 | SimilarityProfile.inner h (physicalScale h Q p) = SimilarityProfile.inner h p := |
| 130 | 119 | Prod.ext (X_physicalScale hh hh1 hQ hp) (eta_physicalScale hh hh1 hQ hp) |
| 131 | 120 | |
| 132 | -/-- Homogeneity holds for every profile, without assuming its smoothness. -/ | |
| 133 | -theorem pullback_physicalScale {h Q b : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) | |
| 134 | - (hQ : 0 < Q) {p : SimilarityProfile.PhysicalPoint} (hp : p.1 < 1) | |
| 135 | - (f : SimilarityProfile.InnerProfile) : | |
| 136 | - SimilarityProfile.pullback h b f (physicalScale h Q p) = | |
| 137 | - Q ^ b * SimilarityProfile.pullback h b f p := by | |
| 138 | - unfold SimilarityProfile.pullback | |
| 139 | - rw [q_physicalScale hh hh1 hQ hp, inner_physicalScale hh hh1 hQ hp, | |
| 140 | - Real.mul_rpow hQ.le (SimilarityProfile.q_pos hh hh1 hp).le] | |
| 141 | - ring | |
| 142 | - | |
| 143 | 121 | abbrev ChartPoint := ℝ × (ℝ × ℝ) |
| 144 | 122 | |
| 145 | 123 | /-- A band chart is ordered `(R,(Z,T))`. -/ |
| @@ -160,16 +138,6 @@ noncomputable def chartTransition (h Q Q' : ℝ) (p : ChartPoint) : ChartPoint : | ||
| 160 | 138 | ((Q / Q') ^ (1 / 2 : ℝ) * p.1, |
| 161 | 139 | ((Q / Q') ^ D h * p.2.1, (Q / Q') * p.2.2)) |
| 162 | 140 | |
| 163 | -theorem chartTransition_smooth (h Q Q' : ℝ) : | |
| 164 | - ContDiff ℝ ∞ (chartTransition h Q Q') := | |
| 165 | - (contDiff_const.mul contDiff_fst).prodMk | |
| 166 | - ((contDiff_const.mul contDiff_snd.fst).prodMk | |
| 167 | - (contDiff_const.mul contDiff_snd.snd)) | |
| 168 | - | |
| 169 | -theorem chartTransition_time_pos {h Q Q' : ℝ} (hQ : 0 < Q) (hQ' : 0 < Q') | |
| 170 | - {p : ChartPoint} (hp : 0 < p.2.2) : 0 < (chartTransition h Q Q' p).2.2 := | |
| 171 | - mul_pos (div_pos hQ hQ') hp | |
| 172 | - | |
| 173 | 141 | theorem chartQ_transition {h Q Q' : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 174 | 142 | (hQ : 0 < Q) (hQ' : 0 < Q') {p : ChartPoint} (hp : 0 < p.2.2) : |
| 175 | 143 | chartQ h (chartTransition h Q Q' p) = (Q / Q') * chartQ h p := |
| @@ -199,106 +167,7 @@ theorem chartInner_transition {h Q Q' : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) | ||
| 199 | 167 | chartInner h (chartTransition h Q Q' p) = chartInner h p := |
| 200 | 168 | Prod.ext (chartX_transition hh hh1 hQ hQ' hp) (chartEta_transition hh hh1 hQ hQ' hp) |
| 201 | 169 | |
| 202 | -/-- The genuine chart-to-physical map, with radial variable `s=r²/2`. -/ | |
| 203 | -noncomputable def chartToPhysical (h Q : ℝ) (p : ChartPoint) : | |
| 204 | - SimilarityProfile.PhysicalPoint := | |
| 205 | - (1 - Q * p.2.2, (Q * (p.1 ^ 2 / 2), Q ^ D h * p.2.1)) | |
| 206 | - | |
| 207 | -theorem chartToPhysical_smooth (h Q : ℝ) : ContDiff ℝ ∞ (chartToPhysical h Q) := | |
| 208 | - (contDiff_const.sub (contDiff_const.mul contDiff_snd.snd)).prodMk | |
| 209 | - ((contDiff_const.mul ((contDiff_fst.pow 2).div_const 2)).prodMk | |
| 210 | - (contDiff_const.mul contDiff_snd.fst)) | |
| 211 | - | |
| 212 | -theorem chartToPhysical_time_lt_one {h Q : ℝ} (hQ : 0 < Q) | |
| 213 | - {p : ChartPoint} (hp : 0 < p.2.2) : (chartToPhysical h Q p).1 < 1 := by | |
| 214 | - change 1 - Q * p.2.2 < 1 | |
| 215 | - linarith [mul_pos hQ hp] | |
| 216 | - | |
| 217 | -/-- The radial component really is obtained from `r = sqrt(Q) R`. -/ | |
| 218 | -theorem chartToPhysical_radial {Q : ℝ} (hQ : 0 < Q) (h : ℝ) (p : ChartPoint) : | |
| 219 | - (chartToPhysical h Q p).2.1 = (Scaling.radialLength Q * p.1) ^ 2 / 2 := by | |
| 220 | - unfold chartToPhysical Scaling.radialLength | |
| 221 | - dsimp only | |
| 222 | - rw [mul_pow, ← Real.rpow_mul_natCast hQ.le] | |
| 223 | - norm_num | |
| 224 | - ring | |
| 225 | - | |
| 226 | -theorem q_chartToPhysical {h Q : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) | |
| 227 | - (hQ : 0 < Q) {p : ChartPoint} (hp : 0 < p.2.2) : | |
| 228 | - SimilarityProfile.q h (chartToPhysical h Q p) = Q * chartQ h p := by | |
| 229 | - change coordinateQ (2 * h) (1 - (1 - Q * p.2.2), Q ^ D h * p.2.1) = _ | |
| 230 | - rw [show 1 - (1 - Q * p.2.2) = Q * p.2.2 by ring] | |
| 231 | - exact coordinateQ_scale_h hh hh1 hQ hp | |
| 232 | - | |
| 233 | -theorem eta_chartToPhysical {h Q : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) | |
| 234 | - (hQ : 0 < Q) {p : ChartPoint} (hp : 0 < p.2.2) : | |
| 235 | - SimilarityProfile.eta h (chartToPhysical h Q p) = chartEta h p := by | |
| 236 | - change coordinateEta (2 * h) (1 - (1 - Q * p.2.2), Q ^ D h * p.2.1) = _ | |
| 237 | - rw [show 1 - (1 - Q * p.2.2) = Q * p.2.2 by ring] | |
| 238 | - exact coordinateEta_scale_h hh hh1 hQ hp | |
| 239 | - | |
| 240 | -theorem X_chartToPhysical {h Q : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) | |
| 241 | - (hQ : 0 < Q) {p : ChartPoint} (hp : 0 < p.2.2) : | |
| 242 | - SimilarityProfile.X h (chartToPhysical h Q p) = chartX h p := by | |
| 243 | - unfold SimilarityProfile.X | |
| 244 | - rw [q_chartToPhysical hh hh1 hQ hp] | |
| 245 | - change (Q * (p.1 ^ 2 / 2)) / (Q * chartQ h p) = (p.1 ^ 2 / 2) / chartQ h p | |
| 246 | - exact mul_div_mul_left _ _ hQ.ne' | |
| 247 | - | |
| 248 | -theorem inner_chartToPhysical {h Q : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) | |
| 249 | - (hQ : 0 < Q) {p : ChartPoint} (hp : 0 < p.2.2) : | |
| 250 | - SimilarityProfile.inner h (chartToPhysical h Q p) = chartInner h p := | |
| 251 | - Prod.ext (X_chartToPhysical hh hh1 hQ hp) (eta_chartToPhysical hh hh1 hQ hp) | |
| 252 | - | |
| 253 | -/-- Two band descriptions of the same physical point agree exactly. -/ | |
| 254 | -theorem chartToPhysical_transition {h Q Q' : ℝ} (hQ : 0 < Q) (hQ' : 0 < Q') | |
| 255 | - (p : ChartPoint) : | |
| 256 | - chartToPhysical h Q' (chartTransition h Q Q' p) = chartToPhysical h Q p := by | |
| 257 | - have hr : 0 < Q / Q' := div_pos hQ hQ' | |
| 258 | - have hs : ((Q / Q') ^ (1 / 2 : ℝ)) ^ 2 = Q / Q' := by | |
| 259 | - rw [← Real.rpow_mul_natCast hr.le] | |
| 260 | - norm_num | |
| 261 | - have hz : Q' ^ D h * (Q / Q') ^ D h = Q ^ D h := by | |
| 262 | - rw [← Real.mul_rpow hQ'.le hr.le] | |
| 263 | - congr 1 | |
| 264 | - field_simp | |
| 265 | - apply Prod.ext | |
| 266 | - · dsimp [chartToPhysical, chartTransition] | |
| 267 | - field_simp | |
| 268 | - · apply Prod.ext | |
| 269 | - · dsimp [chartToPhysical, chartTransition] | |
| 270 | - rw [mul_pow, hs] | |
| 271 | - field_simp | |
| 272 | - · dsimp [chartToPhysical, chartTransition] | |
| 273 | - rw [← mul_assoc, hz] | |
| 274 | - | |
| 275 | -theorem chartTransition_refl {Q : ℝ} (hQ : 0 < Q) (h : ℝ) (p : ChartPoint) : | |
| 276 | - chartTransition h Q Q p = p := by | |
| 277 | - simp [chartTransition, hQ.ne'] | |
| 278 | - | |
| 279 | -theorem chartTransition_comp {h Q Q' Q'' : ℝ} | |
| 280 | - (hQ : 0 < Q) (hQ' : 0 < Q') (hQ'' : 0 < Q'') (p : ChartPoint) : | |
| 281 | - chartTransition h Q' Q'' (chartTransition h Q Q' p) = | |
| 282 | - chartTransition h Q Q'' p := by | |
| 283 | - have hr : Q' / Q'' * (Q / Q') = Q / Q'' := by field_simp | |
| 284 | - have hpow (a : ℝ) : (Q' / Q'') ^ a * (Q / Q') ^ a = (Q / Q'') ^ a := by | |
| 285 | - rw [← Real.mul_rpow (div_pos hQ' hQ'').le (div_pos hQ hQ').le, hr] | |
| 286 | - apply Prod.ext | |
| 287 | - · dsimp [chartTransition] | |
| 288 | - rw [← mul_assoc, hpow] | |
| 289 | - · apply Prod.ext | |
| 290 | - · dsimp [chartTransition] | |
| 291 | - rw [← mul_assoc, hpow] | |
| 292 | - · dsimp [chartTransition] | |
| 293 | - rw [← mul_assoc, hr] | |
| 294 | - | |
| 295 | -theorem chartTransition_inverse {h Q Q' : ℝ} (hQ : 0 < Q) (hQ' : 0 < Q') | |
| 296 | - (p : ChartPoint) : | |
| 297 | - chartTransition h Q' Q (chartTransition h Q Q' p) = p := by | |
| 298 | - rw [chartTransition_comp hQ hQ' hQ, chartTransition_refl hQ] | |
| 299 | - | |
| 300 | -/-- The usual open annular-chart domain; profile annulus restrictions can | |
| 301 | -be added using `chartX_mem_transition`. -/ | |
| 170 | +/-- The usual open annular-chart domain. -/ | |
| 302 | 171 | noncomputable def chartDomain : Set ChartPoint := {p | 0 < p.1 ∧ 0 < p.2.2} |
| 303 | 172 | |
| 304 | 173 | theorem isOpen_chartDomain : IsOpen chartDomain := |
| @@ -324,28 +193,6 @@ theorem chartInner_smoothAt {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) | ||
| 324 | 193 | (coordinateQ_spec (by linarith) (by linarith) (p := (p.2.2, p.2.1)) hp).1 |
| 325 | 194 | exact (((contDiffAt_fst.pow 2).div_const 2).div hq hqp.ne').prodMk he |
| 326 | 195 | |
| 327 | -theorem chartX_mem_transition {h Q Q' : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) | |
| 328 | - (hQ : 0 < Q) (hQ' : 0 < Q') {p : ChartPoint} (hp : 0 < p.2.2) (I : Set ℝ) : | |
| 329 | - chartX h (chartTransition h Q Q' p) ∈ I ↔ chartX h p ∈ I := by | |
| 330 | - rw [chartX_transition hh hh1 hQ hQ' hp] | |
| 331 | - | |
| 332 | -/-- Every profile depending on both actual inner coordinates is unchanged. -/ | |
| 333 | -theorem chartProfile_transition {E : Type*} {h Q Q' : ℝ} | |
| 334 | - (hh : 0 < h) (hh1 : h < 1 / 2) (hQ : 0 < Q) (hQ' : 0 < Q') | |
| 335 | - {p : ChartPoint} (hp : 0 < p.2.2) (F : (ℝ × ℝ) → E) : | |
| 336 | - F (chartInner h (chartTransition h Q Q' p)) = F (chartInner h p) := by | |
| 337 | - rw [chartInner_transition hh hh1 hQ hQ' hp] | |
| 338 | - | |
| 339 | -noncomputable def chartWeight {E : Type*} (h : ℝ) (ζ : ℝ → E) (p : ChartPoint) : E := | |
| 340 | - ζ (chartX h p) | |
| 341 | - | |
| 342 | -/-- In particular an arbitrarily flat weight is transported with factor one. -/ | |
| 343 | -theorem chartWeight_transition {E : Type*} {h Q Q' : ℝ} | |
| 344 | - (hh : 0 < h) (hh1 : h < 1 / 2) (hQ : 0 < Q) (hQ' : 0 < Q') | |
| 345 | - {p : ChartPoint} (hp : 0 < p.2.2) (ζ : ℝ → E) : | |
| 346 | - chartWeight h ζ (chartTransition h Q Q' p) = chartWeight h ζ p := | |
| 347 | - congrArg ζ (chartX_transition hh hh1 hQ hQ' hp) | |
| 348 | - | |
| 349 | 196 | /-- The lesser of one and the two logarithmic distances to fixed profile |
| 350 | 197 | edges. Positivity is asserted only inside a positive profile interval. -/ |
| 351 | 198 | noncomputable def profileLogDistance (left right X : ℝ) : ℝ := |
| @@ -359,22 +206,4 @@ theorem profileLogDistance_pos {left right X : ℝ} (hl : 0 < left) | ||
| 359 | 206 | noncomputable def chartLogDistance (h left right : ℝ) (p : ChartPoint) : ℝ := |
| 360 | 207 | profileLogDistance left right (chartX h p) |
| 361 | 208 | |
| 362 | -theorem chartLogDistance_transition {h Q Q' : ℝ} | |
| 363 | - (hh : 0 < h) (hh1 : h < 1 / 2) (hQ : 0 < Q) (hQ' : 0 < Q') | |
| 364 | - {p : ChartPoint} (hp : 0 < p.2.2) (left right : ℝ) : | |
| 365 | - chartLogDistance h left right (chartTransition h Q Q' p) = | |
| 366 | - chartLogDistance h left right p := | |
| 367 | - congrArg (profileLogDistance left right) (chartX_transition hh hh1 hQ hQ' hp) | |
| 368 | - | |
| 369 | -/-- Exact transport includes square-root flat weights and every real edge | |
| 370 | -power, including the negative powers used for derivative losses. -/ | |
| 371 | -theorem chartWeightedFactor_transition {h Q Q' : ℝ} | |
| 372 | - (hh : 0 < h) (hh1 : h < 1 / 2) (hQ : 0 < Q) (hQ' : 0 < Q') | |
| 373 | - {p : ChartPoint} (hp : 0 < p.2.2) (ζ : ℝ → ℝ) (left right exponent : ℝ) : | |
| 374 | - Real.sqrt (chartWeight h ζ (chartTransition h Q Q' p)) * | |
| 375 | - chartLogDistance h left right (chartTransition h Q Q' p) ^ exponent = | |
| 376 | - Real.sqrt (chartWeight h ζ p) * chartLogDistance h left right p ^ exponent := by | |
| 377 | - rw [chartWeight_transition hh hh1 hQ hQ' hp, | |
| 378 | - chartLogDistance_transition hh hh1 hQ hQ' hp] | |
| 379 | - | |
| 380 | 209 | end NavierStokes.SimilarityHomogeneity |
+0 −18 NavierStokes/SimilarityProfile.lean View file
| @@ -260,16 +260,6 @@ theorem Z_smoothAt {h b : ℝ} {f : InnerProfile} {w : InnerPoint} | ||
| 260 | 260 | (((contDiffAt_const.mul contDiffAt_snd).mul contDiffAt_fst).mul hx)).div |
| 261 | 261 | (contDiffAt_const.sub (contDiffAt_const.mul (contDiffAt_snd.pow 2))) hL |
| 262 | 262 | |
| 263 | -theorem T_smoothAt {h b : ℝ} {f : InnerProfile} {w : InnerPoint} | |
| 264 | - (hf : ContDiffAt ℝ 2 f w) (hL : L h w.2 ≠ 0) : | |
| 265 | - ContDiffAt ℝ 1 (T h b f) w := by | |
| 266 | - have hf₁ : ContDiffAt ℝ 1 f w := hf.of_le (by norm_num) | |
| 267 | - have hx : ContDiffAt ℝ 1 (partialX f) w := partialX_smoothAt hf (by norm_num) | |
| 268 | - have hη : ContDiffAt ℝ 1 (partialEta f) w := partialEta_smoothAt hf (by norm_num) | |
| 269 | - exact (((contDiffAt_const.mul hf₁).add ((contDiffAt_const.mul contDiffAt_snd).mul hη)).add | |
| 270 | - (contDiffAt_fst.mul hx)).div | |
| 271 | - (contDiffAt_const.sub (contDiffAt_const.mul (contDiffAt_snd.pow 2))) hL | |
| 272 | - | |
| 273 | 263 | theorem eventually_C2_inner {h : ℝ} {f : InnerProfile} |
| 274 | 264 | (hh : 0 < h) (hh1 : h < 1 / 2) {p : PhysicalPoint} (hp : p.1 < 1) |
| 275 | 265 | (hf : ContDiffAt ℝ 2 f (inner h p)) : |
| @@ -322,12 +312,4 @@ theorem isOpen_physicalDomain {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) | ||
| 322 | 312 | filter_upwards [continuousAt_fst.eventually (Iio_mem_nhds hp.1), hi] with y hy hyU |
| 323 | 313 | exact ⟨hy, hyU⟩ |
| 324 | 314 | |
| 325 | -/-- Joint smoothness in `(t,s,z)` on the open coordinate domain; no global | |
| 326 | -smooth extension through the singular time or the edge of the profile is assumed. -/ | |
| 327 | -theorem pullback_smoothOn {h b : ℝ} {f : InnerProfile} {n : ℕ∞} | |
| 328 | - (hh : 0 < h) (hh1 : h < 1 / 2) {U : Set InnerPoint} (hU : IsOpen U) | |
| 329 | - (hf : ContDiffOn ℝ n f U) : ContDiffOn ℝ n (pullback h b f) (physicalDomain h U) := by | |
| 330 | - intro p hp | |
| 331 | - exact (pullback_smoothAt hh hh1 hp.1 (hf.contDiffAt (hU.mem_nhds hp.2))).contDiffWithinAt | |
| 332 | - | |
| 333 | 315 | end NavierStokes.SimilarityProfile |
+17 −0 routes/s1-ns-similarity-1/README.md added View file
| @@ -0,0 +1,17 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-similarity-1 | |
| 6 | + | |
| 7 | +S-1, one family: `NavierStokes/Similarity*` (`SimilarityApproach.lean`, | |
| 8 | +`SimilarityCoordinates.lean`, `SimilarityHomogeneity.lean`, `SimilarityProfile.lean`). | |
| 9 | +I delete 31 declarations of that family that nothing uses — 236 lines, the set | |
| 10 | +this unit carries — and trim the one remaining docstring that named a deleted | |
| 11 | +declaration (`chartDomain`'s mention of `chartX_mem_transition`). No statement or | |
| 12 | +proof that stays is changed. | |
| 13 | + | |
| 14 | +## Next | |
| 15 | + | |
| 16 | +Open the pull request and let `challenge` and `build` judge it; if a deleted name | |
| 17 | +still has a user after other waves merge, restore that declaration in a later unit. | |