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: #235 chore(NavierStokes/Phase): delete 20 declarations nothing uses
1 commit
+0 −46 NavierStokes/PhaseCalculus.lean View file
| @@ -215,14 +215,6 @@ theorem harmonic_theta_periodic (k : ℝ) (j m : ℤ) (ε p pz x0 : ℝ) | ||
| 215 | 215 | intro θ |
| 216 | 216 | exact harmonic_angularShift_two_pi k j m ε p pz x0 F G (s, (θ, v)) hkp |
| 217 | 217 | |
| 218 | -/-- The complex harmonic is jointly smooth whenever the base frequencies are. -/ | |
| 219 | -theorem contDiff_harmonic {n : WithTop ℕ∞} (k : ℝ) (j : ℤ) (ε p pz x0 : ℝ) | |
| 220 | - (F G : Slow → ℝ) (hF : ContDiff ℝ n F) (hG : ContDiff ℝ n G) : | |
| 221 | - ContDiff ℝ n (harmonic k j ε p pz x0 F G) := by | |
| 222 | - unfold harmonic | |
| 223 | - exact ((Complex.ofRealCLM.contDiff.comp | |
| 224 | - (contDiff_const.mul (contDiff_phase ε p pz x0 F G hF hG))).mul contDiff_const).cexp | |
| 225 | - | |
| 226 | 218 | /-- The actual cylindrical normal is jointly `C∞` away from the axis. -/ |
| 227 | 219 | theorem contDiffAt_phaseNormal (ε p pz x0 : ℝ) (F G : Slow → ℝ) (q : Slot) |
| 228 | 220 | (hR : q.1.1 ≠ 0) (hF : ContDiff ℝ ∞ F) (hG : ContDiff ℝ ∞ G) : |
| @@ -269,42 +261,4 @@ theorem vec3_norm_sq (w : Vec3) : | ||
| 269 | 261 | ‖w‖ ^ 2 = (w 0) ^ 2 + (w 1) ^ 2 + (w 2) ^ 2 := by |
| 270 | 262 | simp only [EuclideanSpace.real_norm_sq_eq, Fin.sum_univ_three] |
| 271 | 263 | |
| 272 | -/-- A unit tangential direction forces the reference vector to have norm at least `B`. -/ | |
| 273 | -theorem referenceNormal_norm_ge (B s Kθ Kz : ℝ) | |
| 274 | - (hK : Kθ ^ 2 + Kz ^ 2 = 1) : | |
| 275 | - B ≤ ‖referenceNormal B s Kθ Kz‖ := by | |
| 276 | - have hn : ‖referenceNormal B s Kθ Kz‖ ^ 2 = | |
| 277 | - (B * s) ^ 2 + (B * Kθ) ^ 2 + (B * Kz) ^ 2 := by | |
| 278 | - simpa [referenceNormal] using vec3_norm_sq (referenceNormal B s Kθ Kz) | |
| 279 | - have htan : (B * Kθ) ^ 2 + (B * Kz) ^ 2 = B ^ 2 := by | |
| 280 | - calc | |
| 281 | - (B * Kθ) ^ 2 + (B * Kz) ^ 2 = B ^ 2 * (Kθ ^ 2 + Kz ^ 2) := by ring | |
| 282 | - _ = B ^ 2 := by rw [hK, mul_one] | |
| 283 | - have hsq : B ^ 2 ≤ ‖referenceNormal B s Kθ Kz‖ ^ 2 := by | |
| 284 | - nlinarith [sq_nonneg (B * s)] | |
| 285 | - nlinarith [norm_nonneg (referenceNormal B s Kθ Kz)] | |
| 286 | - | |
| 287 | -/-- An explicit reference-vector error bound gives a quantitative lower bound | |
| 288 | -for the actual phase normal. The comparison estimate itself is a hypothesis. -/ | |
| 289 | -theorem phaseNormal_norm_lower (ε p pz x0 B s Kθ Kz δ : ℝ) | |
| 290 | - (F G : Slow → ℝ) (q : Slot) (hK : Kθ ^ 2 + Kz ^ 2 = 1) | |
| 291 | - (hclose : ‖phaseNormal ε p pz x0 F G q - referenceNormal B s Kθ Kz‖ ≤ δ) : | |
| 292 | - B - δ ≤ ‖phaseNormal ε p pz x0 F G q‖ := by | |
| 293 | - have href := referenceNormal_norm_ge B s Kθ Kz hK | |
| 294 | - have htriangle := norm_sub_norm_le (referenceNormal B s Kθ Kz) | |
| 295 | - (phaseNormal ε p pz x0 F G q) | |
| 296 | - rw [norm_sub_rev] at htriangle | |
| 297 | - linarith | |
| 298 | - | |
| 299 | -/-- Half-scale closeness ensures the denominator in the projected pulse | |
| 300 | -equation is nonzero for this actual phase normal. -/ | |
| 301 | -theorem phaseNormal_ne_zero_of_close (ε p pz x0 B s Kθ Kz : ℝ) | |
| 302 | - (F G : Slow → ℝ) (q : Slot) (hB : 0 < B) (hK : Kθ ^ 2 + Kz ^ 2 = 1) | |
| 303 | - (hclose : ‖phaseNormal ε p pz x0 F G q - referenceNormal B s Kθ Kz‖ ≤ B / 2) : | |
| 304 | - phaseNormal ε p pz x0 F G q ≠ 0 := by | |
| 305 | - have hlow := phaseNormal_norm_lower ε p pz x0 B s Kθ Kz (B / 2) F G q hK hclose | |
| 306 | - intro hz | |
| 307 | - rw [hz, norm_zero] at hlow | |
| 308 | - linarith | |
| 309 | - | |
| 310 | 264 | end NavierStokes.PhaseCalculus |
+0 −113 NavierStokes/PhaseEstimates.lean View file
| @@ -47,15 +47,6 @@ theorem roundedFrequency_integer {k : ℝ} (hk : k ≠ 0) (target : ℝ) : | ||
| 47 | 47 | unfold roundedFrequency |
| 48 | 48 | field_simp |
| 49 | 49 | |
| 50 | -theorem roundedFrequency_nonzero {k : ℝ} (hk : k ≠ 0) (target : ℝ) : | |
| 51 | - ∃ m : ℤ, m ≠ 0 ∧ k * roundedFrequency k target = (m : ℝ) := | |
| 52 | - ⟨nonzeroRound (k * target), nonzeroRound_ne_zero _, roundedFrequency_integer hk target⟩ | |
| 53 | - | |
| 54 | -theorem roundedFrequency_ne_zero {k : ℝ} (hk : k ≠ 0) (target : ℝ) : | |
| 55 | - roundedFrequency k target ≠ 0 := by | |
| 56 | - apply div_ne_zero _ hk | |
| 57 | - exact_mod_cast nonzeroRound_ne_zero (k * target) | |
| 58 | - | |
| 59 | 50 | theorem roundedFrequency_error {k : ℝ} (hk : 0 < k) (target : ℝ) : |
| 60 | 51 | |roundedFrequency k target - target| ≤ 1 / k := by |
| 61 | 52 | have heq : roundedFrequency k target - target = |
| @@ -109,13 +100,6 @@ theorem representative_frequency_bound (B sigma u L : ℝ) (K g : Plane) | ||
| 109 | 100 | |
| 110 | 101 | noncomputable def signedSlot (sigma u L v : ℝ) : ℝ := sigma * (u / 2 + u * v / L) |
| 111 | 102 | |
| 112 | -/-- The cancellation producing the intended radial slope is exact for the | |
| 113 | -unrounded representative data. -/ | |
| 114 | -theorem radial_reference_identity (B sigma u L v : ℝ) : | |
| 115 | - sigma * B * u / 2 - v * (-sigma * B * u / L) = B * signedSlot sigma u L v := by | |
| 116 | - unfold signedSlot | |
| 117 | - ring | |
| 118 | - | |
| 119 | 103 | /-! ## Local C2 control implies the derivative comparison at the representative -/ |
| 120 | 104 | |
| 121 | 105 | section LocalBase |
| @@ -908,80 +892,6 @@ theorem actual_phase_estimates | ||
| 908 | 892 | F G (q, (θ, v)) hε.ne' (hbase.actualF q hq) (hbase.actualG q hq)] |
| 909 | 893 | exact h |
| 910 | 894 | |
| 911 | -/-- Punctured-lattice rounding itself already excludes exact zeros of the | |
| 912 | -tangential normal; the comparison estimate supplies the uniform lower bound. -/ | |
| 913 | -theorem phase_normal_nonvanishing {ε k target pz x0 : ℝ} {F G : Slow → ℝ} | |
| 914 | - {q : PhaseCalculus.Slot} (hε : ε ≠ 0) (hk : k ≠ 0) (hR : q.1.1 ≠ 0) | |
| 915 | - (hF : DifferentiableAt ℝ F q.1) (hG : DifferentiableAt ℝ G q.1) : | |
| 916 | - MovingFrameODE.tail (PhaseCalculus.phaseNormal ε (roundedFrequency k target) pz x0 F G q) ≠ 0 ∧ | |
| 917 | - PhaseCalculus.phaseNormal ε (roundedFrequency k target) pz x0 F G q ≠ 0 := by | |
| 918 | - rw [phaseNormal_eq_explicit ε (roundedFrequency k target) pz x0 F G q hε hF hG] | |
| 919 | - have hp := div_ne_zero (roundedFrequency_ne_zero hk target) hR | |
| 920 | - constructor | |
| 921 | - · intro hz | |
| 922 | - have h := congrArg (fun w : Plane => w 0) hz | |
| 923 | - exact hp h | |
| 924 | - · intro hz | |
| 925 | - have h := congrArg (fun w : Space => w 1) hz | |
| 926 | - exact hp h | |
| 927 | - | |
| 928 | -/-- The phase's actual derivative, uniform lower bounds and every changing | |
| 929 | -frame quantity needed in `MovingFrameODE`, from local base and band data. -/ | |
| 930 | -theorem actual_phase_geometry | |
| 931 | - {F G F0 G0 : Slow → ℝ} {U : Set Slow} {q q0 : Slow} | |
| 932 | - {ε target pz v θ B sigma u L M S k : ℝ} {K : Plane} | |
| 933 | - (hbase : LocalBaseBounds F G F0 G0 U M ε) | |
| 934 | - (hq : q ∈ U) (hq0 : q0 ∈ U) (hdiameter : ‖q - q0‖ ≤ 1 / S ^ 3) | |
| 935 | - (hR : q.1 ≠ 0) (hR0 : q0.1 ≠ 0) | |
| 936 | - (hg : shearVector F0 G0 q0 ≠ 0) (horth : ⟪K, shearVector F0 G0 q0⟫_ℝ = 0) | |
| 937 | - (hfreq : (!₂[target / q0.1, pz] : Plane) = | |
| 938 | - representativeFrequency B sigma u L K (shearVector F0 G0 q0)) | |
| 939 | - (hM : 1 ≤ M) (hS : 1 ≤ S) (hk : 1 ≤ k) (hε : 0 < ε) | |
| 940 | - (htarget : |target| ≤ M) (hpz : |pz| ≤ M) (hB : |B| ≤ M) | |
| 941 | - (hsigma : |sigma| = 1) (hu : |u| ≤ M) (hgi : 1 / ‖shearVector F0 G0 q0‖ ≤ M) | |
| 942 | - (hL : 1 / |L| ≤ M / S) (hv : |v| ≤ M * S) | |
| 943 | - (hRi : |1 / q.1| ≤ M) (hR0i : |1 / q0.1| ≤ M) | |
| 944 | - (hBpos : 0 < B) (hK : ‖K‖ = 1) | |
| 945 | - (hsmall : phaseConstant M * phaseError S ε k ≤ B / 2) : | |
| 946 | - let N : ℝ → Space := fun w => PhaseCalculus.phaseNormal ε (roundedFrequency k target) pz | |
| 947 | - (sigma * B * u / 2) F G (q, (θ, w)) | |
| 948 | - let n' := PhaseCalculus.normalSlotDerivative ε (roundedFrequency k target) pz F G q | |
| 949 | - let δ := phaseConstant M * phaseError S ε k | |
| 950 | - HasDerivAt N n' v ∧ | |
| 951 | - B / 2 ≤ MovingFrameODE.normalScale (N v) ∧ B / 2 ≤ ‖N v‖ ∧ | |
| 952 | - MovingFrameODE.tail (N v) ≠ 0 ∧ N v ≠ 0 ∧ | |
| 953 | - |MovingFrameODE.radialSlope (N v) - signedSlot sigma u L v| ≤ | |
| 954 | - 2 * (1 + |signedSlot sigma u L v|) * δ / B ∧ | |
| 955 | - ‖MovingFrameODE.normalDirection (N v) - K‖ ≤ 4 * δ / B ∧ | |
| 956 | - ‖MovingFrameODE.quarterTurn (MovingFrameODE.normalDirection (N v)) - MovingFrameODE.quarterTurn K‖ ≤ | |
| 957 | - 4 * δ / B ∧ | |
| 958 | - |slopeDerivative (N v) n'| ≤ 2 * (1 + |MovingFrameODE.radialSlope (N v)|) * δ / B ∧ | |
| 959 | - |angularVelocity (N v) n'| ≤ 4 * δ / B := by | |
| 960 | - dsimp only | |
| 961 | - obtain ⟨hc, hd⟩ := actual_phase_estimates (v := v) (θ := θ) hbase hq hq0 hdiameter | |
| 962 | - hR hR0 hg horth hfreq hM hS hk hε htarget hpz hB hsigma hu hgi hL hv hRi hR0i | |
| 963 | - have hl := normal_lower_bounds (s := signedSlot sigma u L v) hBpos hK hsmall hc | |
| 964 | - refine ⟨?_, hl.1, hl.2.1, hl.2.2.1, hl.2.2.2, ?_, ?_, ?_, ?_, ?_⟩ | |
| 965 | - · exact PhaseCalculus.hasDerivAt_phaseNormal_slot ε (roundedFrequency k target) pz | |
| 966 | - (sigma * B * u / 2) θ v F G q hε.ne' (hbase.actualF q hq) (hbase.actualG q hq) | |
| 967 | - · exact radialSlope_close hBpos hK hsmall hc | |
| 968 | - · exact normalDirection_close hBpos hK hsmall hc | |
| 969 | - · exact transverseDirection_close hBpos hK hsmall hc | |
| 970 | - · exact slopeDerivative_bound hBpos hl.1 hd | |
| 971 | - · exact angularVelocity_bound hBpos hl.1 hd | |
| 972 | - | |
| 973 | -theorem signedSlot_bound {sigma u L v : ℝ} | |
| 974 | - (hsigma : |sigma| = 1) (hu : 0 ≤ u) (hL : 0 < L) (hv : 0 ≤ v) (hvL : v ≤ L) : | |
| 975 | - |signedSlot sigma u L v| ≤ 3 * u / 2 := by | |
| 976 | - have hvdiv : v / L ≤ 1 := (div_le_one hL).2 hvL | |
| 977 | - have hnonneg : 0 ≤ u / 2 + u * v / L := by positivity | |
| 978 | - unfold signedSlot | |
| 979 | - rw [abs_mul, hsigma, one_mul, abs_of_nonneg hnonneg] | |
| 980 | - have h := mul_le_mul_of_nonneg_left hvdiv hu | |
| 981 | - simp only [mul_one] at h | |
| 982 | - rw [mul_div_assoc] | |
| 983 | - nlinarith only [h] | |
| 984 | - | |
| 985 | 895 | theorem radialSlope_uniform_bound {n : Space} {K : Plane} {B s δ A : ℝ} |
| 986 | 896 | (hB : 0 < B) (hK : ‖K‖ = 1) (hδ : δ ≤ B / 2) |
| 987 | 897 | (hclose : ‖n - MovingFrameODE.pack (B * s) (B • K)‖ ≤ δ) (hs : |s| ≤ A) : |
| @@ -1051,27 +961,4 @@ theorem eventually_band_conditions (h : ℝ) (hh : 0 < h) : | ||
| 1051 | 961 | · simpa only [Real.rpow_two] using hnk.le |
| 1052 | 962 | · simpa only [Real.rpow_two, Real.rpow_one, mul_comm] using hn1.le |
| 1053 | 963 | |
| 1054 | -theorem eventually_phaseError_le (h : ℝ) (hh : 0 < h) : | |
| 1055 | - ∀ᶠ n : ℕ in atTop, | |
| 1056 | - phaseError (ChartScales.S n) (ChartScales.epsilon h n) (ChartScales.carrier h n) ≤ | |
| 1057 | - 4 / ChartScales.S n := by | |
| 1058 | - filter_upwards [eventually_band_conditions h hh] with n hn | |
| 1059 | - exact phaseError_le_four_div (lt_of_lt_of_le zero_lt_one hn.1) hn.2.1 hn.2.2.1 hn.2.2.2 | |
| 1060 | - | |
| 1061 | -/-- Any fixed positive representative lower bound eventually dominates the | |
| 1062 | -derived normal error. This is a cutoff conclusion, not an assumed comparison. -/ | |
| 1063 | -theorem eventually_error_small (h : ℝ) (hh : 0 < h) {C B : ℝ} (hC : 0 ≤ C) (hB : 0 < B) : | |
| 1064 | - ∀ᶠ n : ℕ in atTop, | |
| 1065 | - C * phaseError (ChartScales.S n) (ChartScales.epsilon h n) (ChartScales.carrier h n) ≤ B / 2 := by | |
| 1066 | - have hS := chart_S_tendsto_atTop.eventually (eventually_ge_atTop (max 1 (8 * C / B))) | |
| 1067 | - filter_upwards [hS, eventually_phaseError_le h hh] with n hn he | |
| 1068 | - have hS1 : 1 ≤ ChartScales.S n := (le_max_left _ _).trans hn | |
| 1069 | - have hS0 : 0 < ChartScales.S n := lt_of_lt_of_le zero_lt_one hS1 | |
| 1070 | - have hthreshold : 8 * C / B ≤ ChartScales.S n := (le_max_right _ _).trans hn | |
| 1071 | - have hb := (div_le_iff₀ hB).mp hthreshold | |
| 1072 | - calc | |
| 1073 | - _ ≤ C * (4 / ChartScales.S n) := mul_le_mul_of_nonneg_left he hC | |
| 1074 | - _ = (4 * C) / ChartScales.S n := by ring | |
| 1075 | - _ ≤ B / 2 := (div_le_iff₀ hS0).mpr (by nlinarith only [hb]) | |
| 1076 | - | |
| 1077 | 964 | end NavierStokes.PhaseEstimates |
+0 −94 NavierStokes/PhaseJetBounds.lean View file
| @@ -462,19 +462,6 @@ section Phase | ||
| 462 | 462 | |
| 463 | 463 | variable {ι : Type*} |
| 464 | 464 | |
| 465 | -/-- Uniform normalized base-field jets are a sufficient input. The bound is | |
| 466 | -on the base field itself, before any normal or frame is constructed. -/ | |
| 467 | -theorem polynomialJets_of_uniform {E F : Type*} | |
| 468 | - [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] | |
| 469 | - {D : Domain ι E} {f : ι → E → F} | |
| 470 | - (hf : ∀ i, ContDiffOn ℝ ∞ (f i) (D.carrier i)) | |
| 471 | - (hbound : ∀ N : ℕ, ∃ C : ℝ, 1 ≤ C ∧ | |
| 472 | - ∀ i, JetBounds.FiniteJetBound N (f i) (D.carrier i) C) : PolynomialJets D f := by | |
| 473 | - refine ⟨hf, ?_⟩ | |
| 474 | - intro N | |
| 475 | - obtain ⟨C, hC, hc⟩ := hbound N | |
| 476 | - exact ⟨C, hC, 0, by simpa only [pow_zero, mul_one] using hc⟩ | |
| 477 | - | |
| 478 | 465 | noncomputable def Domain.slot (D : Domain ι Slow) (V : ι → Set ℝ) (hV : ∀ i, IsOpen (V i)) : |
| 479 | 466 | Domain ι (Slow × ℝ) where |
| 480 | 467 | scale := D.scale |
| @@ -952,17 +939,6 @@ theorem PhaseFamily.frameData_jets_of_phase_comparison | ||
| 952 | 939 | exact frameJets_ofNormalLocal hn hd (hF.lift_slot V hV) hg hl hh hq hνj |
| 953 | 940 | hb hb hnlow hnup hhlow hhup |
| 954 | 941 | |
| 955 | -/-- Direct output in the fixed-slot format used by the ODE jet theorem. | |
| 956 | -The coefficient is the actual `FrameData.coefficient`, not a comparison ODE. -/ | |
| 957 | -theorem FrameJets.coefficient_parameter_bounds | |
| 958 | - {Q : Type} [NormedAddCommGroup Q] [NormedSpace ℝ Q] | |
| 959 | - {D : Domain ι (Q × ℝ)} {d : ι → PrimaryODE.FrameData Q} | |
| 960 | - (hd : FrameJets D d) (j : ℤ) (N : ℕ) : | |
| 961 | - ∃ C : ℝ, 1 ≤ C ∧ ∃ m : ℕ, ∀ i p v, (p, v) ∈ D.carrier i → | |
| 962 | - ∀ k ≤ N, ‖iteratedFDeriv ℝ k (fun q => (d i).coefficient j (q, v)) p‖ ≤ | |
| 963 | - C * D.scale i ^ m := | |
| 964 | - (hd.coefficient j).parameter_bound N | |
| 965 | - | |
| 966 | 942 | end Assembly |
| 967 | 943 | |
| 968 | 944 | section BandChoices |
| @@ -970,76 +946,6 @@ section BandChoices | ||
| 970 | 946 | variable {ι E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 971 | 947 | variable {D : Domain ι E} |
| 972 | 948 | |
| 973 | -/-- The genuine nonzero angular rounding preserves uniform boundedness. | |
| 974 | -It is constant in the chart variables even when it jumps across labels. -/ | |
| 975 | -theorem rounded_frequency_jets (k target : ι → ℝ) {M : ℝ} (hM : 1 ≤ M) | |
| 976 | - (hk : ∀ i, 1 ≤ k i) (ht : ∀ i, |target i| ≤ M) : | |
| 977 | - PolynomialJets D (fun i _ => PhaseEstimates.roundedFrequency (k i) (target i)) := by | |
| 978 | - apply PolynomialJets.const_uniform _ (show 1 ≤ M + 1 by linarith) | |
| 979 | - intro i | |
| 980 | - have hkpos : 0 < k i := lt_of_lt_of_le zero_lt_one (hk i) | |
| 981 | - have herr := PhaseEstimates.roundedFrequency_error hkpos (target i) | |
| 982 | - have hinv : 1 / k i ≤ 1 := (div_le_one hkpos).mpr (hk i) | |
| 983 | - have hsum := abs_add_le (PhaseEstimates.roundedFrequency (k i) (target i) - target i) (target i) | |
| 984 | - rw [sub_add_cancel] at hsum | |
| 985 | - rw [Real.norm_eq_abs] | |
| 986 | - linarith [ht i] | |
| 987 | - | |
| 988 | -/-- With the actual carrier choice, the fundamental viscosity factor is a | |
| 989 | -uniformly bounded label constant. Thus no factor k is lost in slow jets. -/ | |
| 990 | -theorem band_viscosity_jets (band : ι → ℕ) (h : ℝ) (hh : 0 ≤ h) : | |
| 991 | - PolynomialJets D (fun i _ => ChartScales.epsilon h (band i) * | |
| 992 | - (ChartScales.carrier h (band i) : ℝ) ^ 2) := by | |
| 993 | - apply PolynomialJets.const_uniform _ (by norm_num : (1 : ℝ) ≤ 4) | |
| 994 | - intro i | |
| 995 | - obtain ⟨hl, hu⟩ := ChartScales.carrier_viscosity_bounds h hh (band i) | |
| 996 | - rw [Real.norm_eq_abs, abs_of_nonneg (le_trans zero_le_one hl)] | |
| 997 | - exact hu | |
| 998 | - | |
| 999 | -theorem band_epsilon_jets (band : ι → ℕ) (h : ℝ) (hh : 0 ≤ h) : | |
| 1000 | - PolynomialJets D (fun i _ => ChartScales.epsilon h (band i)) := by | |
| 1001 | - apply PolynomialJets.const_uniform _ (le_refl (1 : ℝ)) | |
| 1002 | - intro i | |
| 1003 | - rw [Real.norm_eq_abs, abs_of_pos (ChartScales.epsilon_pos h (band i))] | |
| 1004 | - exact ChartScales.epsilon_le_one h hh (band i) | |
| 1005 | - | |
| 1006 | -theorem band_rounded_frequency_jets (band : ι → ℕ) (h : ℝ) (target : ι → ℝ) | |
| 1007 | - {M : ℝ} (hM : 1 ≤ M) (ht : ∀ i, |target i| ≤ M) : | |
| 1008 | - PolynomialJets D (fun i _ => PhaseEstimates.roundedFrequency | |
| 1009 | - (ChartScales.carrier h (band i) : ℝ) (target i)) := by | |
| 1010 | - apply rounded_frequency_jets _ target hM _ ht | |
| 1011 | - intro i | |
| 1012 | - have hp : 0 < (ChartScales.carrier h (band i) : ℝ) := | |
| 1013 | - Scaling.carrier_frequency_pos (ChartScales.epsilon_pos h (band i)) | |
| 1014 | - have hp' : 0 < ChartScales.carrier h (band i) := by exact_mod_cast hp | |
| 1015 | - exact_mod_cast hp' | |
| 1016 | - | |
| 1017 | -/-- A direct domain constructor with the manuscript's S(n)=n². -/ | |
| 1018 | -noncomputable def Domain.ofBands (band : ι → ℕ) (hband : ∀ i, 1 ≤ band i) | |
| 1019 | - (U : ι → Set E) (hU : ∀ i, IsOpen (U i)) : Domain ι E where | |
| 1020 | - scale i := ChartScales.S (band i) | |
| 1021 | - carrier := U | |
| 1022 | - isOpen := hU | |
| 1023 | - one_le_scale i := by | |
| 1024 | - have h : (1 : ℝ) ≤ band i := by exact_mod_cast hband i | |
| 1025 | - dsimp [ChartScales.S] | |
| 1026 | - nlinarith | |
| 1027 | - | |
| 1028 | -omit [NormedSpace ℝ E] in | |
| 1029 | -/-- The reference logarithmic-rate input follows from a lower slot-length | |
| 1030 | -bound. In particular `ChartScales.slotLength_bounds` gives c=2r₀. -/ | |
| 1031 | -theorem normalized_slot_rate_le {S ell u c M : ℝ} (hS : 0 < S) (hc : 0 < c) | |
| 1032 | - (hell : c * S ≤ ell) (hu : |u| ≤ M) : |u / ell| * S ≤ M / c := by | |
| 1033 | - have hellpos : 0 < ell := lt_of_lt_of_le (mul_pos hc hS) hell | |
| 1034 | - have hM : 0 ≤ M := (abs_nonneg u).trans hu | |
| 1035 | - rw [abs_div, abs_of_pos hellpos] | |
| 1036 | - apply (le_div_iff₀ hc).mpr | |
| 1037 | - rw [div_mul_eq_mul_div, div_mul_eq_mul_div] | |
| 1038 | - apply (div_le_iff₀ hellpos).mpr | |
| 1039 | - have h1 := mul_le_mul_of_nonneg_right hu (mul_nonneg hS.le hc.le) | |
| 1040 | - have h2 := mul_le_mul_of_nonneg_left hell hM | |
| 1041 | - nlinarith | |
| 1042 | - | |
| 1043 | 949 | end BandChoices |
| 1044 | 950 | |
| 1045 | 951 | end NavierStokes.PhaseJetBounds |
+24 −0 routes/s1-ns-phase-1/README.md added View file
| @@ -0,0 +1,24 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-phase-1 | |
| 6 | + | |
| 7 | +One declaration unit of S-1 (issue #10), family `NavierStokes/Phase*`. It deletes 20 declarations that | |
| 8 | +nothing on this main uses, 253 lines in three files: `NavierStokes/PhaseCalculus.lean`, | |
| 9 | +`NavierStokes/PhaseEstimates.lean` and `NavierStokes/PhaseJetBounds.lean`. | |
| 10 | + | |
| 11 | +The unit cut 21. `NavierStokes.PhaseCalculus.referenceNormal` stays: its docstring says "The comparison | |
| 12 | +vector `B (s,K)` used after equation (26)", and equation (26) is the paper's, so the keep rule in | |
| 13 | +`docs/s1-dead-code/README.md` (§"Where the list comes from", item 2) keeps it. It is left out of the | |
| 14 | +pull request; nothing else the unit cut cites the paper by a numbered result. | |
| 15 | + | |
| 16 | +For each deleted name, `git grep -n -w <name> -- '*.lean'` finds nothing in the tree, except | |
| 17 | +`referenceNormal`, where the hits are `PhaseEstimates.referenceNormal`, a different declaration of the | |
| 18 | +same short name. The diff is deletions only. `python3 checks/challenge.py .` ends with | |
| 19 | +`ok: 4 challenge files and the build configuration as approved; …`. | |
| 20 | + | |
| 21 | +## Next | |
| 22 | + | |
| 23 | +The maintainer's review after `challenge` and `build`. The rest of the family is `s1-ns-phase-2` | |
| 24 | +(1 declaration, 19 lines) in wave 2. | |