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 remote-tracking branch 'origin/main' into s2-ns-smooth-1
Browse files main p1-ns-physical s2-instances-1 s2-ns-smooth-1 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
+7 −30 Euler/AnglePrimitiveBounds.lean View file
| @@ -1,6 +1,12 @@ | ||
| 1 | 1 | import Euler.AngleMeanZeroPrimitive |
| 2 | 2 | |
| 3 | -/-! Uniform bounds for the actual mean-zero angular primitive. -/ | |
| 3 | +/-! | |
| 4 | +# Angle primitive bounds | |
| 5 | + | |
| 6 | +Import-only module. Its two bounds, `rawPrimitive_bound` and `primitive_bound`, | |
| 7 | +were deleted as unused in S-1 (#10); the module is kept because | |
| 8 | +`Euler.PacketAngularPotential` imports it. | |
| 9 | +-/ | |
| 4 | 10 | |
| 5 | 11 | noncomputable section |
| 6 | 12 | |
| @@ -10,33 +16,4 @@ open Set MeasureTheory | ||
| 10 | 16 | |
| 11 | 17 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 12 | 18 | |
| 13 | -omit [CompleteSpace E] in | |
| 14 | -theorem rawPrimitive_bound (P M : ℝ) (hM : 0 ≤ M) (f : ℝ → E) | |
| 15 | - (hf : ∀ θ ∈ Icc 0 P, ‖f θ‖ ≤ M) (θ : ℝ) (hθ : θ ∈ Icc 0 P) : | |
| 16 | - ‖rawPrimitive f θ‖ ≤ M*P := by | |
| 17 | - have h := intervalIntegral.norm_integral_le_of_norm_le_const | |
| 18 | - (a := (0 : ℝ)) (b := θ) (f := f) (C := M) (fun x hx => hf x (by | |
| 19 | - rw [uIoc_of_le hθ.1] at hx | |
| 20 | - exact ⟨hx.1.le, hx.2.trans hθ.2⟩)) | |
| 21 | - simp only [sub_zero, abs_of_nonneg hθ.1] at h | |
| 22 | - exact h.trans (mul_le_mul_of_nonneg_left hθ.2 hM) | |
| 23 | - | |
| 24 | -omit [CompleteSpace E] in | |
| 25 | -theorem primitive_bound (P M : ℝ) (hP : 0 < P) (hM : 0 ≤ M) (f : ℝ → E) | |
| 26 | - (hf : ∀ θ ∈ Icc 0 P, ‖f θ‖ ≤ M) (θ : ℝ) (hθ : θ ∈ Icc 0 P) : | |
| 27 | - ‖primitive P f θ‖ ≤ 2*P*M := by | |
| 28 | - have hraw := rawPrimitive_bound P M hM f hf | |
| 29 | - have hint : ‖∫ s in 0..P, rawPrimitive f s‖ ≤ (M*P)*P := by | |
| 30 | - have h := intervalIntegral.norm_integral_le_of_norm_le_const | |
| 31 | - (a := (0 : ℝ)) (b := P) (f := rawPrimitive f) (C := M*P) (fun x hx => hraw x (by | |
| 32 | - rw [uIoc_of_le hP.le] at hx | |
| 33 | - exact ⟨hx.1.le, hx.2⟩)) | |
| 34 | - simpa only [sub_zero, abs_of_pos hP] using h | |
| 35 | - have hmean : ‖P⁻¹ • (∫ s in 0..P, rawPrimitive f s)‖ ≤ M*P := by | |
| 36 | - rw [norm_smul, Real.norm_eq_abs, abs_of_pos (inv_pos.mpr hP)] | |
| 37 | - calc | |
| 38 | - _ ≤ P⁻¹*((M*P)*P) := mul_le_mul_of_nonneg_left hint (inv_nonneg.mpr hP.le) | |
| 39 | - _ = M*P := by field_simp | |
| 40 | - exact (norm_sub_le _ _).trans (by linarith [hraw θ hθ, hmean]) | |
| 41 | - | |
| 42 | 19 | end EulerAngleMeanZeroPrimitive |
+2 −2 Euler/CorrectionDifferenceMetric.lean View file
| @@ -62,7 +62,7 @@ theorem difference_metric_deriv_bound {q : ℕ} {T : Type*} [TopologicalSpace T] | ||
| 62 | 62 | have hkt0 := (norm_nonneg K').trans hKt |
| 63 | 63 | have heq : differenceRhs period D hq ν μ τ u v+top+(D.metric.coefficient τ).operator p = |
| 64 | 64 | F+ν • laplacianEvaluation period (q+1) (by omega) d := by |
| 65 | - dsimp only [differenceRhs,top,p,F,d] | |
| 65 | + dsimp only [differenceRhs,p,F,d] | |
| 66 | 66 | abel |
| 67 | 67 | have hdiv : value period d ∈ divergenceFreeSpace period D.κ D.direction := |
| 68 | 68 | (divergenceFreeSpace period D.κ D.direction).sub_mem hud hvd |
| @@ -113,7 +113,7 @@ theorem difference_metric_deriv_bound {q : ℕ} {T : Type*} [TopologicalSpace T] | ||
| 113 | 113 | _ = _ := one_mul _ |
| 114 | 114 | have hk : 2*‖K t‖*L ≤ 2*Kb*L := by |
| 115 | 115 | have h := mul_le_mul_of_nonneg_right hkn (mul_nonneg (by norm_num : (0 : ℝ) ≤ 2) hL) |
| 116 | - nlinarith only [h] | |
| 116 | + linarith only [h] | |
| 117 | 117 | have hsum := add_le_add (add_le_add (add_le_add hKt (le_refl (2*(Kx*V)))) hh) hk |
| 118 | 118 | exact (add_le_add hsum (le_refl 1)).trans_eq (by ring) |
| 119 | 119 | have hd : (‖K t‖*(4*R))^2 ≤ defectConstant Kb R := by |
+1 −1 Euler/CorrectionEnergyBootstrap.lean View file
| @@ -19,7 +19,7 @@ theorem raise_energy_constant (C0 C X Y r b R B : ℝ) (hC : C0 ≤ C) | ||
| 19 | 19 | C0*(X+X^2+r)+(b+C0*R*(B+X))*Y ≤ C*(X+X^2+r)+(b+C*R*(B+X))*Y := by |
| 20 | 20 | have h1 := mul_le_mul_of_nonneg_right hC (add_nonneg (add_nonneg hX (sq_nonneg X)) hr) |
| 21 | 21 | have h2 := mul_le_mul_of_nonneg_right hC (mul_nonneg (mul_nonneg hR (add_nonneg hB hX)) hY) |
| 22 | - nlinarith only [h1,h2] | |
| 22 | + linarith only [h1,h2] | |
| 23 | 23 | |
| 24 | 24 | variable (period : ℝ) [Fact (0 < period)] |
| 25 | 25 | |
+1 −1 Euler/CorrectionStabilityConstants.lean View file
| @@ -62,7 +62,7 @@ theorem differenceRemainder_uniform {q : ℕ} {T : Type*} [TopologicalSpace T] | ||
| 62 | 62 | (add_le_add hzu hzv) (add_nonneg (norm_nonneg _) (norm_nonneg _)) |
| 63 | 63 | (mul_nonneg ha20 (sobolevEmbeddingConstant_nonneg period q)) |
| 64 | 64 | unfold lowerConstant |
| 65 | - nlinarith | |
| 65 | + linarith | |
| 66 | 66 | |
| 67 | 67 | omit [Fact (0 < period)] in |
| 68 | 68 | /-- The actual fixed growth coefficient is nonnegative. -/ |
+2 −2 Euler/CorrectionViscosityStability.lean View file
| @@ -50,7 +50,7 @@ theorem correction_viscosity_pointwise {q : ℕ} (hq : 6 ≤ q) (T : ℝ) (hT : | ||
| 50 | 50 | have hu0 := hu ⟨0,le_rfl,hT⟩ |
| 51 | 51 | have hv0 := hv ⟨0,le_rfl,hT⟩ |
| 52 | 52 | simp only [quadraticDuhamel,mul_zero,Real.toNNReal_zero,heatOperator_zero, |
| 53 | - intervalIntegral.integral_same,add_zero] at hu0 hv0 | |
| 53 | + intervalIntegral.integral_same] at hu0 hv0 | |
| 54 | 54 | have he0 : e 0=0 := by rw [hev ⟨0,le_rfl,hT⟩,hu0,hv0,sub_self]; rfl |
| 55 | 55 | simp only [E,he0,map_zero,inner_zero_left,le_refl] |
| 56 | 56 | have hder (t : ℝ) (ht : t ∈ Ioo 0 T) : HasDerivAt E (deriv E t) t := by |
| @@ -95,7 +95,7 @@ theorem correction_viscosity_pointwise {q : ℕ} (hq : 6 ≤ q) (T : ℝ) (hT : | ||
| 95 | 95 | nlinarith |
| 96 | 96 | change ‖value period (u t-v t)‖ ≤ B.comparisonConstant period R*|ν-μ| |
| 97 | 97 | have hdiv : ‖value period (u t-v t)‖ ≤ (Real.sqrt P*|ν-μ|)/B.c := |
| 98 | - (le_div_iff₀ B.c_pos).mpr (by nlinarith only [hn]) | |
| 98 | + (le_div_iff₀ B.c_pos).mpr (by linarith only [hn]) | |
| 99 | 99 | exact hdiv.trans_eq (by unfold StabilityBudget.comparisonConstant; dsimp [P]; ring) |
| 100 | 100 | |
| 101 | 101 | end EulerCorrectionViscosityStability |
+1 −1 Euler/CylinderPhysicalTensor.lean View file
| @@ -38,7 +38,7 @@ theorem graphMap_norm_le (k : ℝ) (m : Vector3) : ‖graphMap k m‖ ≤ 1+|k| | ||
| 38 | 38 | rw [norm_mul,Real.norm_eq_abs] |
| 39 | 39 | calc |
| 40 | 40 | |k| * ‖inner ℝ m x‖ ≤ |k| * (‖m‖*‖x‖) := mul_le_mul_of_nonneg_left hi (abs_nonneg k) |
| 41 | - _ ≤ (1+|k| * ‖m‖)*‖x‖ := by nlinarith [norm_nonneg x] | |
| 41 | + _ ≤ (1+|k| * ‖m‖)*‖x‖ := by linarith [norm_nonneg x] | |
| 42 | 42 | |
| 43 | 43 | theorem graphCoordinates_norm_le (k : ℝ) (m : Vector3) : |
| 44 | 44 | ‖graphCoordinates k m‖ ≤ frequencyFactor k m := |
+1 −1 Euler/CylinderPotentialTime.lean View file
| @@ -28,7 +28,7 @@ def potentialDerivative : C(Icc (0 : ℝ) T,LiftL2 P) := | ||
| 28 | 28 | include hB hB₁ hp hf in |
| 29 | 29 | theorem potentialDerivative_orbit : |
| 30 | 30 | ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a (potentialDerivative P T B B₁ p f)) := by |
| 31 | - simp only [potentialDerivative, map_add] | |
| 31 | + simp only [potentialDerivative] | |
| 32 | 32 | exact (potentialPath_orbit P B₁ hB₁ p hp).add (potentialPath_orbit P B hB f hf) |
| 33 | 33 | |
| 34 | 34 | private local instance : NormedAddCommGroup (Space →L[ℝ] Space) := inferInstance |
+1 −1 Euler/CylinderSpatialEmbedding.lean View file
| @@ -105,7 +105,7 @@ theorem embedding_inner (u v : SpatialL2 V) : | ||
| 105 | 105 | have h := lift_norm_sq P (u+v) |
| 106 | 106 | rw [lift_add, norm_add_sq_real, norm_add_sq_real, lift_norm_sq, lift_norm_sq] at h |
| 107 | 107 | change inner ℝ (lift P u) (lift P v) = _ |
| 108 | - nlinarith | |
| 108 | + linarith | |
| 109 | 109 | |
| 110 | 110 | end Inner |
| 111 | 111 | end EulerCylinderSpatialEmbedding |
+1 −1 Euler/DirichletEndpointReduction.lean View file
| @@ -119,7 +119,7 @@ theorem positive_norm_le_of_quadratic (B : E →L[ℝ] E) (hB : B.IsPositive) | ||
| 119 | 119 | have hprod := mul_le_mul hx' hy' (hB.inner_nonneg_left y) hC |
| 120 | 120 | have hs : |⟪B x, y⟫_ℝ| ^ 2 ≤ C ^ 2 := by |
| 121 | 121 | rw [sq_abs] |
| 122 | - nlinarith only [hcross, hprod] | |
| 122 | + linarith only [hcross, hprod] | |
| 123 | 123 | have habs := (sq_le_sq₀ (abs_nonneg _) hC).1 hs |
| 124 | 124 | exact (le_abs_self _).trans habs |
| 125 | 125 | |
+38 −38 Euler/EulerProof.lean View file
| @@ -7495,7 +7495,7 @@ theorem select_endpoint | ||
| 7495 | 7495 | (a - cpp) * yp + (b - cpq) * yq ≤ 0 ∧ |
| 7496 | 7496 | |yp| + |yq| ≤ 8 * (C + 1) := by |
| 7497 | 7497 | have hεsmall : ε ≤ 1 / 16 := by |
| 7498 | - nlinarith [mul_nonneg (show 0 ≤ C by linarith) hε] | |
| 7498 | + linarith [mul_nonneg (show 0 ≤ C by linarith) hε] | |
| 7499 | 7499 | have hu : 0 < a - cpp := by linarith |
| 7500 | 7500 | have huC : a - cpp ≤ C + ε := by |
| 7501 | 7501 | have := (abs_le.mp hppε).1 |
| @@ -7529,18 +7529,18 @@ theorem select_endpoint | ||
| 7529 | 7529 | have hbpos : 0 ≤ b := by linarith |
| 7530 | 7530 | have hb_bound : b ≤ C := (abs_le.mp hbC).2 |
| 7531 | 7531 | have hud : b ^ 2 ≤ (a - cpp) * d := by |
| 7532 | - nlinarith [mul_nonneg (show 0 ≤ -cpp by linarith) hd] | |
| 7532 | + linarith [mul_nonneg (show 0 ≤ -cpp by linarith) hd] | |
| 7533 | 7533 | have hucqq : (a - cpp) * cqq ≤ (C + ε) * ε := |
| 7534 | 7534 | (mul_le_mul_of_nonneg_left (abs_le.mp hqq).2 hu.le).trans |
| 7535 | 7535 | (mul_le_mul_of_nonneg_right huC hε) |
| 7536 | 7536 | have hbpq : -(C * ε) ≤ b * cpq := by |
| 7537 | 7537 | have h₁ := mul_le_mul_of_nonneg_left (abs_le.mp hpq).1 hbpos |
| 7538 | 7538 | have h₂ := mul_le_mul_of_nonneg_right hb_bound hε |
| 7539 | - nlinarith | |
| 7539 | + linarith | |
| 7540 | 7540 | have hbqp : -(C * ε) ≤ b * cqp := by |
| 7541 | 7541 | have h₁ := mul_le_mul_of_nonneg_left (abs_le.mp hqp).1 hbpos |
| 7542 | 7542 | have h₂ := mul_le_mul_of_nonneg_right hb_bound hε |
| 7543 | - nlinarith | |
| 7543 | + linarith | |
| 7544 | 7544 | have hprod : cqp * cpq ≤ ε ^ 2 := by |
| 7545 | 7545 | calc |
| 7546 | 7546 | cqp * cpq ≤ |cqp * cpq| := le_abs_self _ |
| @@ -7551,7 +7551,7 @@ theorem select_endpoint | ||
| 7551 | 7551 | have hpq_upper := (abs_le.mp hpq).2 |
| 7552 | 7552 | have hεsq : ε ^ 2 ≤ ε := by nlinarith |
| 7553 | 7553 | dsimp [Δ] |
| 7554 | - nlinarith | |
| 7554 | + linarith | |
| 7555 | 7555 | have hΔpos : 0 < Δ := by linarith |
| 7556 | 7556 | have hΔne : Δ ≠ 0 := ne_of_gt hΔpos |
| 7557 | 7557 | have hnum : |b - cpq| ≤ C + ε := |
| @@ -9556,7 +9556,7 @@ theorem shifted_weighted_inverse (ρ Rc M : ℝ) (hρ : 0 < ρ) (hRc : 0 ≤ Rc) | ||
| 9556 | 9556 | M * ((∑ n ∈ range (N + 1), v n * F n) + |
| 9557 | 9557 | ∑ n ∈ range (N + 1), v n * ∑ l ∈ range n, |
| 9558 | 9558 | (n.choose (l + 1) : ℝ) * A (l + 1) * Z (n - (l + 1))) := by |
| 9559 | - simp only [mul_add, sum_add_distrib, mul_sum, mul_assoc, mul_left_comm, mul_comm] | |
| 9559 | + simp only [mul_add, sum_add_distrib, mul_sum, mul_assoc, mul_left_comm] | |
| 9560 | 9560 | rw [hsumid] at hs |
| 9561 | 9561 | have hzsum : 0 ≤ ∑ n ∈ range (N + 1), v n * Z n := |
| 9562 | 9562 | sum_nonneg (fun n _ => mul_nonneg (hv n) (hZ n)) |
| @@ -10082,7 +10082,7 @@ theorem equation30_log_derivative_upper | ||
| 10082 | 10082 | have hcoef : 0 ≤ 4 * β ^ 2 * t ^ 3 / (1 + (β * t ^ 2) ^ 2) := by positivity |
| 10083 | 10083 | have hlog : 0 ≤ V₁ t / V t := div_nonneg (hp t hti).2 (hp t hti).1.le |
| 10084 | 10084 | dsimp [dl] |
| 10085 | - nlinarith [mul_nonneg hcoef hlog] | |
| 10085 | + linarith [mul_nonneg hcoef hlog] | |
| 10086 | 10086 | |
| 10087 | 10087 | /-- A coarse Riccati upper barrier for the inverted equation. -/ |
| 10088 | 10088 | theorem riccati_le_four |
| @@ -10318,7 +10318,7 @@ theorem inverted_riccati_squared_error | ||
| 10318 | 10318 | have hmulupper : |
| 10319 | 10319 | (4 * ε * (1 - ε * t) ^ 3 / (1 + (1 - ε * t) ^ 4)) * z t ≤ 16 * ε := by |
| 10320 | 10320 | have hm := mul_le_mul hbu (hzfour t hti) (hzn t hti) (show 0 ≤ 4 * ε by positivity) |
| 10321 | - nlinarith | |
| 10321 | + linarith | |
| 10322 | 10322 | have hsquare : (riccatiRoot ε t) ^ 2 = 2 / (1 + (1 - ε * t) ^ 4) := |
| 10323 | 10323 | sq_sqrt (by positivity) |
| 10324 | 10324 | have heq : invertedRiccati ε t (z t) - ((riccatiRoot ε t) ^ 2 - (z t) ^ 2) = |
| @@ -10670,7 +10670,7 @@ theorem equation30_post_inversion_lower | ||
| 10670 | 10670 | rw [hid, hid1] at hp |
| 10671 | 10671 | constructor |
| 10672 | 10672 | · apply (div_le_iff₀ hxpos).mpr |
| 10673 | - nlinarith [hp.1] | |
| 10673 | + linarith [hp.1] | |
| 10674 | 10674 | · exact pos_of_mul_pos_right hp.2.1 hxpos.le |
| 10675 | 10675 | |
| 10676 | 10676 | /-- A solution with the source's initial conditions stays positive for every |
| @@ -10761,7 +10761,7 @@ theorem equation30_zero_slope_prefix_upper | ||
| 10761 | 10761 | nlinarith [mul_nonneg (sq_nonneg ε) (mul_nonneg (sq_nonneg ε) (sq_nonneg t))] |
| 10762 | 10762 | have hsecond := mul_le_mul_of_nonneg_right hc hpt.1.le |
| 10763 | 10763 | have hFn : 0 ≤ (1 + (ε ^ 2 * t ^ 2) ^ 2) * U₁ t := mul_nonneg (by positivity) hpt.2 |
| 10764 | - nlinarith [exp_pos (3 * t)] | |
| 10764 | + linarith [exp_pos (3 * t)] | |
| 10765 | 10765 | intro t ht |
| 10766 | 10766 | have hpt := hp t ht |
| 10767 | 10767 | have hFn : 0 ≤ (1 + (ε ^ 2 * t ^ 2) ^ 2) * U₁ t := mul_nonneg (by positivity) hpt.2 |
| @@ -10882,7 +10882,7 @@ theorem equation30_slope_uniform_lower | ||
| 10882 | 10882 | have hm := mul_le_mul_of_nonneg_left hI hlam |
| 10883 | 10883 | simp only [div_eq_mul_inv] at hc hm ⊢ |
| 10884 | 10884 | nlinarith |
| 10885 | - nlinarith [mul_le_mul_of_nonneg_right hi (hpos t ht0).le] | |
| 10885 | + linarith [mul_le_mul_of_nonneg_right hi (hpos t ht0).le] | |
| 10886 | 10886 | |
| 10887 | 10887 | /-- Before `x=1`, the original scalar solution is nondecreasing. -/ |
| 10888 | 10888 | theorem equation30_prefix_monotone |
| @@ -11077,7 +11077,7 @@ theorem equation30_zero_slope_logderivative_bound | ||
| 11077 | 11077 | nlinarith [mul_nonneg (sq_nonneg ε) (mul_nonneg (sq_nonneg ε) (sq_nonneg t))] |
| 11078 | 11078 | have hcoef : 0 ≤ 4 * (ε ^ 2) ^ 2 * t ^ 3 / (1 + (ε ^ 2 * t ^ 2) ^ 2) := by positivity |
| 11079 | 11079 | rw [hboundary] |
| 11080 | - nlinarith) | |
| 11080 | + linarith) | |
| 11081 | 11081 | exact hfence ⟨hT, le_rfl⟩ |
| 11082 | 11082 | intro t ht |
| 11083 | 11083 | apply abs_le.mpr |
| @@ -11226,7 +11226,7 @@ theorem relative_propagator_bound | ||
| 11226 | 11226 | have hm := mul_le_mul |
| 11227 | 11227 | (mul_le_mul (hD a haI).2 hE (abs_nonneg _) (by positivity)) hJ.2 hJ.1 (by positivity) |
| 11228 | 11228 | have hp := mul_le_mul_of_nonneg_right hpow78 (show 0 ≤ 4 * N by positivity) |
| 11229 | - nlinarith | |
| 11229 | + linarith | |
| 11230 | 11230 | have hval := reduction_of_order_relative hu hv hfu hfv hDc hDne |
| 11231 | 11231 | (fun t ht => ne_of_gt (hupos t ht)) b hbI |
| 11232 | 11232 | change v b = R * (v a + D a * E * J) at hval |
| @@ -11238,7 +11238,7 @@ theorem relative_propagator_bound | ||
| 11238 | 11238 | rw [abs_mul, abs_mul, abs_of_nonneg hDan, abs_of_nonneg hJ.1] at htri |
| 11239 | 11239 | have hn : |v a| ≤ N := by dsimp [N]; linarith [abs_nonneg (v₁ a)] |
| 11240 | 11240 | have hp := mul_le_mul_of_nonneg_right hpow8 hN |
| 11241 | - nlinarith | |
| 11241 | + linarith | |
| 11242 | 11242 | have hq0 : 0 ≤ u a / u b := div_nonneg (hupos a haI).le (hupos b hbI).le |
| 11243 | 11243 | have hq : u a / u b ≤ Θ := (div_le_iff₀ (hupos b hbI)).mpr (hratio b hbI) |
| 11244 | 11244 | have hq2 : (u a / u b) ^ 2 ≤ Θ ^ 2 := (sq_le_sq₀ hq0 hΘ0).mpr hq |
| @@ -11248,10 +11248,10 @@ theorem relative_propagator_bound | ||
| 11248 | 11248 | (mul_le_mul hq2 (hD a haI).2 (le_trans zero_le_one (hD a haI).1) (sq_nonneg Θ)) |
| 11249 | 11249 | hE (abs_nonneg _) (by positivity) |
| 11250 | 11250 | have hp := mul_le_mul_of_nonneg_right hpow68 (show 0 ≤ 4 * N by positivity) |
| 11251 | - nlinarith | |
| 11251 | + linarith | |
| 11252 | 11252 | apply (div_le_iff₀ (lt_of_lt_of_le zero_lt_one (hD b hbI).1)).mpr |
| 11253 | 11253 | have hm := mul_le_mul_of_nonneg_left (hD b hbI).1 (show 0 ≤ 4 * Θ ^ 8 * N by positivity) |
| 11254 | - nlinarith | |
| 11254 | + linarith | |
| 11255 | 11255 | have hder := reduction_of_order_derivative_relative hu hv hfu hfv hDne |
| 11256 | 11256 | (fun t ht => ne_of_gt (hupos t ht)) b hbI |
| 11257 | 11257 | have heq : (u a / u b) * D a * E / D b = R * ((u a / u b) ^ 2 * D a * E / D b) := by |
| @@ -11274,7 +11274,7 @@ theorem relative_propagator_bound | ||
| 11274 | 11274 | (mul_le_mul_of_nonneg_left hsecond hR.le) |
| 11275 | 11275 | change |v b| + |v₁ b| ≤ 20 * Θ ^ 8 * R * N |
| 11276 | 11276 | have hRN : 0 ≤ Θ ^ 8 * R * N := by positivity |
| 11277 | - nlinarith | |
| 11277 | + linarith | |
| 11278 | 11278 | |
| 11279 | 11279 | /-- The ideal scalar propagator has only a polynomial loss relative to the |
| 11280 | 11280 | zero-slope growing solution. This proves the reference propagator estimate |
| @@ -11307,7 +11307,7 @@ theorem equation30_relative_propagator | ||
| 11307 | 11307 | have ht4 : t ^ 4 ≤ Θ ^ 4 := pow_le_pow_left₀ ht0 htΘ 4 |
| 11308 | 11308 | have hΘ4 : 1 ≤ Θ ^ 4 := one_le_pow₀ hΘ |
| 11309 | 11309 | have hm := mul_le_mul heps4 ht4 (by positivity : 0 ≤ t ^ 4) (by norm_num : (0 : ℝ) ≤ 1) |
| 11310 | - constructor <;> nlinarith [sq_nonneg (ε ^ 2 * t ^ 2)] | |
| 11310 | + constructor <;> linarith [sq_nonneg (ε ^ 2 * t ^ 2)] | |
| 11311 | 11311 | · intro t ht |
| 11312 | 11312 | exact hp t (ha.trans ht.1) |
| 11313 | 11313 | · intro t ht |
| @@ -11454,10 +11454,10 @@ theorem ideal_frame_bounds | ||
| 11454 | 11454 | have hUn : 0 ≤ 2 * ε * z * y ^ 3 := by positivity |
| 11455 | 11455 | have hUlocal : 2 * ε * z * y ^ 3 ≤ 8 * ε * y ^ 3 := by |
| 11456 | 11456 | have hm := mul_le_mul_of_nonneg_right hzupper (show 0 ≤ 2 * ε * y ^ 3 by positivity) |
| 11457 | - nlinarith | |
| 11457 | + linarith | |
| 11458 | 11458 | have hUε : 2 * ε * z * y ^ 3 ≤ 8 * ε := by |
| 11459 | 11459 | have hm := mul_le_mul_of_nonneg_left hy3 (show 0 ≤ 8 * ε by positivity) |
| 11460 | - nlinarith | |
| 11460 | + linarith | |
| 11461 | 11461 | have hB : 1 / 2 ≤ idealFrameDenominator ε y z := by |
| 11462 | 11462 | unfold idealFrameDenominator |
| 11463 | 11463 | nlinarith only [hTsmall, hUn] |
| @@ -11480,7 +11480,7 @@ theorem ideal_frame_bounds | ||
| 11480 | 11480 | rw [hNrewrite] |
| 11481 | 11481 | obtain ⟨hl, hu⟩ := abs_le.mp hDerr |
| 11482 | 11482 | apply abs_le.mpr |
| 11483 | - constructor <;> nlinarith only [hl, hu, hTn, hTε, hUn, hUε, hε] | |
| 11483 | + constructor <;> linarith only [hl, hu, hTn, hTε, hUn, hUε, hε] | |
| 11484 | 11484 | have hA : |idealFrameDenominator ε y z / sqrt (1 + y ^ 4) - 1| ≤ |
| 11485 | 11485 | y ^ 4 + ε ^ 2 * y ^ 2 + 8 * ε * y ^ 3 := by |
| 11486 | 11486 | have heq : idealFrameDenominator ε y z / sqrt (1 + y ^ 4) - 1 = |
| @@ -11669,8 +11669,8 @@ theorem forced_variation_of_constants | ||
| 11669 | 11669 | dsimp only |
| 11670 | 11670 | rw [← hWu, ← hWv] |
| 11671 | 11671 | constructor |
| 11672 | - · nlinarith [congrArg (fun r : ℝ => r * Y t) hW] | |
| 11673 | - · nlinarith [congrArg (fun r : ℝ => r * Y₁ t) hW] | |
| 11672 | + · linarith [congrArg (fun r : ℝ => r * Y t) hW] | |
| 11673 | + · linarith [congrArg (fun r : ℝ => r * Y₁ t) hW] | |
| 11674 | 11674 | |
| 11675 | 11675 | /-- First displacement component of the scalar fundamental propagator. -/ |
| 11676 | 11676 | def kernel11 (D u u₁ v v₁ : ℝ → ℝ) (t s : ℝ) : ℝ := |
| @@ -11799,7 +11799,7 @@ theorem equation30_kernel_bound | ||
| 11799 | 11799 | (hfluxU r (hs.trans hr.1)) (hfluxV r (hs.trans hr.1))).2) |
| 11800 | 11800 | constructor |
| 11801 | 11801 | · have hb := hlin (D s * V₁ s) (-(D s * U₁ s)) |
| 11802 | - have hfirst : D s * V₁ s * U s + -(D s * U₁ s) * V s = 1 := by nlinarith [hW] | |
| 11802 | + have hfirst : D s * V₁ s * U s + -(D s * U₁ s) * V s = 1 := by linarith [hW] | |
| 11803 | 11803 | have hsecond : D s * V₁ s * U₁ s + -(D s * U₁ s) * V₁ s = 0 := by ring |
| 11804 | 11804 | rw [hfirst, hsecond] at hb |
| 11805 | 11805 | norm_num at hb |
| @@ -11807,7 +11807,7 @@ theorem equation30_kernel_bound | ||
| 11807 | 11807 | congr 2 <;> dsimp [kernel11, kernel21, D] <;> ring |
| 11808 | 11808 | · have hb := hlin (-(D s * V s)) (D s * U s) |
| 11809 | 11809 | have hfirst : -(D s * V s) * U s + D s * U s * V s = 0 := by ring |
| 11810 | - have hsecond : -(D s * V s) * U₁ s + D s * U s * V₁ s = 1 := by nlinarith [hW] | |
| 11810 | + have hsecond : -(D s * V s) * U₁ s + D s * U s * V₁ s = 1 := by linarith [hW] | |
| 11811 | 11811 | rw [hfirst, hsecond] at hb |
| 11812 | 11812 | norm_num at hb |
| 11813 | 11813 | convert! hb using 1 |
| @@ -12260,7 +12260,7 @@ theorem triangular_ray_kernel_bound | ||
| 12260 | 12260 | have hq := mul_le_mul_of_nonneg_right hcol2 (abs_nonneg q) |
| 12261 | 12261 | have hn := mul_le_mul_of_nonneg_right hcol3 (abs_nonneg n) |
| 12262 | 12262 | unfold norm3 |
| 12263 | - nlinarith | |
| 12263 | + linarith | |
| 12264 | 12264 | |
| 12265 | 12265 | /-- The exact triangular ray equations imply a polynomial Duhamel bound. -/ |
| 12266 | 12266 | theorem triangular_ray_forced_bound |
| @@ -12433,7 +12433,7 @@ theorem triangular_ray_difference_bound | ||
| 12433 | 12433 | have hinit := mul_le_mul_of_nonneg_left hinitial (show 0 ≤ 4 * Θ ^ 2 by positivity) |
| 12434 | 12434 | have herr := herror t ht |
| 12435 | 12435 | simp only [zero_pow (by decide : 2 ≠ 0), mul_zero, sub_zero, add_zero] at herr |
| 12436 | - nlinarith | |
| 12436 | + linarith | |
| 12437 | 12437 | |
| 12438 | 12438 | /-- Entries of the triangular ideal ray generator. -/ |
| 12439 | 12439 | def idealRayEntry (β : ℝ) (i j : Fin 3) : ℝ := |
| @@ -12520,7 +12520,7 @@ theorem ray_closeness_of_coefficient_error | ||
| 12520 | 12520 | have hsm : 4 * Θ ^ 2 * (3 * e) * T ≤ 1 / 2 := by |
| 12521 | 12521 | have ht := mul_le_mul_of_nonneg_left hT (show 0 ≤ 12 * e * Θ ^ 2 by positivity) |
| 12522 | 12522 | have hp := mul_le_mul_of_nonneg_left hpow35 (show 0 ≤ 12 * e by positivity) |
| 12523 | - nlinarith | |
| 12523 | + linarith | |
| 12524 | 12524 | have hdiff := triangular_ray_difference_bound hβ hβupper hΘ hT0 hT |
| 12525 | 12525 | (by positivity : 0 ≤ 3 * e) he hsm hPf hQg hNh hfc hgc hhc hforcing hinitial |
| 12526 | 12526 | intro t ht |
| @@ -12529,13 +12529,13 @@ theorem ray_closeness_of_coefficient_error | ||
| 12529 | 12529 | have h2 := mul_le_mul_of_nonneg_left (show 1 + e ≤ 2 by linarith) |
| 12530 | 12530 | (show 0 ≤ 96 * e * Θ ^ 5 by positivity) |
| 12531 | 12531 | have hp : 0 ≤ e * Θ ^ 5 := by positivity |
| 12532 | - nlinarith [hdiff t ht] | |
| 12532 | + linarith [hdiff t ht] | |
| 12533 | 12533 | refine ⟨hbound, ?_⟩ |
| 12534 | 12534 | have hNabs : |N t - 1| ≤ 200 * e * Θ ^ 5 := by |
| 12535 | 12535 | unfold norm3 at hbound |
| 12536 | 12536 | linarith [abs_nonneg (P t - β * t ^ 2), abs_nonneg (Q t + 2 * β * t)] |
| 12537 | 12537 | have hn := (abs_le.mp hNabs).1 |
| 12538 | - nlinarith | |
| 12538 | + linarith | |
| 12539 | 12539 | |
| 12540 | 12540 | /-- The skew matrix of the moving orthonormal frame in the source. -/ |
| 12541 | 12541 | def frameSkew (B : Fin 3 → Fin 3 → ℝ) (i j : Fin 3) : ℝ := |
| @@ -13132,7 +13132,7 @@ theorem velocity_rhs_error | ||
| 13132 | 13132 | (show |(0 : ℝ)| ≤ 2 * Θ ^ 2 by simp; positivity) |
| 13133 | 13133 | dsimp [J₀] |
| 13134 | 13134 | simpa only [zero_mul, add_zero, norm3, abs_zero, add_comm] using hh |
| 13135 | - have hD₀ : 1 ≤ D₀ := by dsimp [D₀]; nlinarith [sq_nonneg P₀] | |
| 13135 | + have hD₀ : 1 ≤ D₀ := by dsimp [D₀]; linarith [sq_nonneg P₀] | |
| 13136 | 13136 | have hproj := velocity_projection_error (ε := ε) hΘ hρ hd hj hjupper hD hD₀ hP hP₀ hp hq hDD hJ hJ₀ |
| 13137 | 13137 | have hL : 0 ≤ |U| + |V| := add_nonneg (abs_nonneg _) (abs_nonneg _) |
| 13138 | 13138 | have hnorm : norm3 U V W ≤ 7 * Θ ^ 2 * (|U| + |V|) := by |
| @@ -13185,7 +13185,7 @@ theorem velocity_rhs_error | ||
| 13185 | 13185 | nlinarith only [he2, he4, he6, he7, he8, he11, hε4, hε8, |
| 13186 | 13186 | mul_nonneg he (pow_nonneg hΘ0 12)] |
| 13187 | 13187 | have hm := mul_le_mul_of_nonneg_right hcoefficient hL |
| 13188 | - nlinarith only [htU, htV, hu, hv, hproj, hm] | |
| 13188 | + linarith only [htU, htV, hu, hv, hproj, hm] | |
| 13189 | 13189 | |
| 13190 | 13190 | end EulerPacketRay |
| 13191 | 13191 | |
| @@ -13857,7 +13857,7 @@ theorem frame_cross_numerator_error | ||
| 13857 | 13857 | have hmε := mul_le_mul_of_nonneg_left h24 (by positivity : 0 ≤ 54 * ε ^ 2) |
| 13858 | 13858 | have hpρ : 0 ≤ 86 * ρ * Θ ^ 4 := by positivity |
| 13859 | 13859 | have hpε : 0 ≤ 86 * ε ^ 2 * Θ ^ 4 := by positivity |
| 13860 | - nlinarith only [hsum, hsum', hS₀, hS₁, hS₂, hmρ, hmσ, hmσ2, hmε, hpρ, hpε] | |
| 13860 | + linarith only [hsum, hsum', hS₀, hS₁, hS₂, hmρ, hmσ, hmσ2, hmε, hpρ, hpε] | |
| 13861 | 13861 | |
| 13862 | 13862 | /-- The cross numerator bound with every velocity-ratio and parent-action |
| 13863 | 13863 | estimate derived from ray, state, and matrix coefficient errors. -/ |
| @@ -14211,7 +14211,7 @@ theorem perturbed_target_compression | ||
| 14211 | 14211 | have hscale2 : 1 ≤ (β * t ^ 2) ^ 2 := by nlinarith only [hscale] |
| 14212 | 14212 | have hDupper : rayDenominator ε P Q N ≤ 5 * β ^ 2 * t ^ 4 := by |
| 14213 | 14213 | unfold rayDenominator |
| 14214 | - nlinarith only [hPsq, hNsq, hεQsq, hscale2] | |
| 14214 | + linarith only [hPsq, hNsq, hεQsq, hscale2] | |
| 14215 | 14215 | have hDpos : 0 < rayDenominator ε P Q N := by |
| 14216 | 14216 | unfold rayDenominator |
| 14217 | 14217 | have hh : 0 < P ^ 2 := sq_pos_of_pos hPpos |
| @@ -14258,10 +14258,10 @@ theorem quadratic_form_bound | ||
| 14258 | 14258 | have hq := sq_abs q |
| 14259 | 14259 | have hn := sq_abs n |
| 14260 | 14260 | unfold norm3 |
| 14261 | - nlinarith only [h₁, h₂, h₃, hp, hq, hn] | |
| 14261 | + linarith only [h₁, h₂, h₃, hp, hq, hn] | |
| 14262 | 14262 | have hm := mul_le_mul_of_nonneg_left hnorm hG |
| 14263 | 14263 | unfold quadraticForm3 norm3 at * |
| 14264 | - nlinarith only [h₀, h₁, h₂, ht0, ht1, hm] | |
| 14264 | + linarith only [h₀, h₁, h₂, ht0, ht1, hm] | |
| 14265 | 14265 | |
| 14266 | 14266 | /-- The full normalized compression is the negative shear term plus a |
| 14267 | 14267 | controlled contribution from the older gradient and the packet error. -/ |
| @@ -14334,7 +14334,7 @@ theorem equation30_target_frame_renewal | ||
| 14334 | 14334 | have hJ₀abs : |J₀| ≤ 2 * P₀ := by |
| 14335 | 14335 | rw [abs_of_pos hJ₀pos] |
| 14336 | 14336 | exact (div_le_iff₀ hP₀pos).mp hJ₀upper |
| 14337 | - have hD₀ : 1 ≤ 1 + P₀ ^ 2 := by nlinarith [sq_nonneg P₀] | |
| 14337 | + have hD₀ : 1 ≤ 1 + P₀ ^ 2 := by linarith [sq_nonneg P₀] | |
| 14338 | 14338 | have hroot : sqrt (1 + P₀ ^ 2) ≤ 2 * P₀ := by |
| 14339 | 14339 | have hh := sq_sqrt (by positivity : 0 ≤ 1 + P₀ ^ 2) |
| 14340 | 14340 | have hn := sqrt_nonneg (1 + P₀ ^ 2) |
| @@ -14583,7 +14583,7 @@ theorem frame_renewal_order40 | ||
| 14583 | 14583 | constructor |
| 14584 | 14584 | · have hh := hrenew.1 |
| 14585 | 14585 | dsimp [P₀] at hAbound |
| 14586 | - nlinarith only [hh, hAbound] | |
| 14586 | + linarith only [hh, hAbound] | |
| 14587 | 14587 | · have hh := hrenew.2 |
| 14588 | 14588 | exact hh.trans (by dsimp [P₀] at hBbound; nlinarith only [hBbound]) |
| 14589 | 14589 | |
+6 −7 Euler/FiniteEnergyTruncation.lean View file
| @@ -151,8 +151,7 @@ theorem radialAverage_radial_identity | ||
| 151 | 151 | have hd2 : Continuous (fun t : ℝ => t ^ 2 • fderiv ℝ u (t • x) x) := by |
| 152 | 152 | simpa only [smul_apply] using hd |
| 153 | 153 | have hcont : Continuous (fun t : ℝ => |
| 154 | - (2 * t) • u (t • x) + t ^ 2 • fderiv ℝ u (t • x) x) := by | |
| 155 | - exact hv2.add hd2 | |
| 154 | + (2 * t) • u (t • x) + t ^ 2 • fderiv ℝ u (t • x) x) := hv2.add hd2 | |
| 156 | 155 | have ht : (∫ t in (0 : ℝ)..1, |
| 157 | 156 | (2 * t) • u (t • x) + t ^ 2 • fderiv ℝ u (t • x) x) = |
| 158 | 157 | (1 : ℝ) ^ 2 • u ((1 : ℝ) • x) - (0 : ℝ) ^ 2 • u ((0 : ℝ) • x) := |
| @@ -249,7 +248,7 @@ theorem norm_radialPotential_le (u : Space → Space) (i : Fin 3) (x : Space) : | ||
| 249 | 248 | (norm_nonneg _) (norm_nonneg _) |
| 250 | 249 | exact (norm_sub_le _ _).trans (by |
| 251 | 250 | dsimp only [radialPotential, negativeCrossPotential] |
| 252 | - nlinarith [hprod (i + 2) (i + 1), hprod (i + 1) (i + 2)]) | |
| 251 | + linarith [hprod (i + 2) (i + 1), hprod (i + 1) (i + 2)]) | |
| 253 | 252 | |
| 254 | 253 | /-- Cutting off the potential introduces only a zeroth-order error in the |
| 255 | 254 | radial average, with no derivative of the original velocity in the bound. -/ |
| @@ -282,7 +281,7 @@ theorem potentialTruncation_error_bound | ||
| 282 | 281 | intro i _ |
| 283 | 282 | rw [he] |
| 284 | 283 | exact (norm_sub_le _ _).trans (by |
| 285 | - nlinarith [hp (i + 1) (i + 2), hp (i + 2) (i + 1)]) | |
| 284 | + linarith [hp (i + 1) (i + 2), hp (i + 2) (i + 1)]) | |
| 286 | 285 | _ = _ := by simp; ring |
| 287 | 286 | |
| 288 | 287 | theorem potentialTruncation_norm_bound |
| @@ -297,7 +296,7 @@ theorem potentialTruncation_norm_bound | ||
| 297 | 296 | exact (mul_le_mul_of_nonneg_right (hχbound x) (norm_nonneg _)).trans_eq (one_mul _) |
| 298 | 297 | have hsplit := norm_le_norm_sub_add (potentialTruncation u χ x) (χ x • u x) |
| 299 | 298 | have hscale := mul_le_mul_of_nonneg_right (hderiv x) (norm_nonneg (radialAverage u x)) |
| 300 | - nlinarith | |
| 299 | + linarith | |
| 301 | 300 | |
| 302 | 301 | /-- A cutoff controlled in the scale-invariant derivative norm gives a |
| 303 | 302 | uniform finite-energy truncation. The numerical constant is inessential. -/ |
| @@ -326,7 +325,7 @@ theorem potentialTruncation_energy_bound | ||
| 326 | 325 | 2 * ‖u x‖ ^ 2 + 288 * C ^ 2 * ‖radialAverage u x‖ ^ 2 := by |
| 327 | 326 | have hh := pow_le_pow_left₀ (norm_nonneg _) (potentialTruncation_norm_bound |
| 328 | 327 | u hu hdiv χ hχ C hχbound hderiv x) 2 |
| 329 | - nlinarith [sq_nonneg (‖u x‖ - 12 * C * ‖radialAverage u x‖)] | |
| 328 | + linarith [sq_nonneg (‖u x‖ - 12 * C * ‖radialAverage u x‖)] | |
| 330 | 329 | refine ⟨hw, ?_⟩ |
| 331 | 330 | calc |
| 332 | 331 | (∫ x : Space, ‖potentialTruncation u χ x‖ ^ 2) ≤ |
| @@ -337,7 +336,7 @@ theorem potentialTruncation_energy_bound | ||
| 337 | 336 | rw [integral_add (hui.const_mul 2) (hBi.const_mul (288 * C ^ 2)), |
| 338 | 337 | integral_const_mul, integral_const_mul] |
| 339 | 338 | _ ≤ (2 + 1152 * C ^ 2) * (∫ x : Space, ‖u x‖ ^ 2) := by |
| 340 | - nlinarith [mul_le_mul_of_nonneg_left hBE (by positivity : 0 ≤ 288 * C ^ 2)] | |
| 339 | + linarith [mul_le_mul_of_nonneg_left hBE (by positivity : 0 ≤ 288 * C ^ 2)] | |
| 341 | 340 | |
| 342 | 341 | /-- A fixed bump is dilated, so its weighted derivative bound is independent |
| 343 | 342 | of the truncation radius. -/ |
+1 −1 Euler/FiniteGradeAssembly.lean View file
| @@ -46,7 +46,7 @@ theorem evaluate_assemble_from_one (M : ℕ) (κ : ℝ) (u c : ℕ → V) | ||
| 46 | 46 | smul_sum, ← sum_add_distrib] |
| 47 | 47 | apply sum_congr rfl |
| 48 | 48 | intro i _ |
| 49 | - simp only [smul_smul, show i+2=(i+1)+1 by omega, pow_succ'] | |
| 49 | + simp only [smul_smul, pow_succ'] | |
| 50 | 50 | |
| 51 | 51 | omit [Module ℝ V] in |
| 52 | 52 | theorem assemble_zero (M : ℕ) (u c : ℕ → V) (hu : u 0=0) : |
+3 −3 Euler/FiniteMetricEnergy.lean View file
| @@ -105,13 +105,13 @@ theorem family_energy_derivative_bound (K K' : H →L[ℝ] H) | ||
| 105 | 105 | have hb := energy_derivative_bound K K' (e i) (transport i) (forcing i) B hB (ht i) |
| 106 | 106 | have hh := mul_le_mul_of_nonneg_left (hheat i) (mul_nonneg (by norm_num : (0 : ℝ) ≤ 2) hν) |
| 107 | 107 | rw [inner_add_right, real_inner_smul_right] |
| 108 | - nlinarith | |
| 108 | + linarith | |
| 109 | 109 | have hs := Finset.sum_le_sum (fun i (_ : i ∈ (Finset.univ : Finset ι)) => hcomp i) |
| 110 | 110 | simp only [Finset.sum_add_distrib, ← Finset.mul_sum] at hs |
| 111 | 111 | have hcs := mul_le_mul_of_nonneg_left (family_cauchy_schwarz e forcing) |
| 112 | 112 | (show 0 ≤ 2 * ‖K‖ by positivity) |
| 113 | 113 | change _ ≤ _ * familySquaredNorm e + _ at hs |
| 114 | - exact hs.trans (by dsimp [familySquaredNorm]; nlinarith) | |
| 114 | + exact hs.trans (by dsimp [familySquaredNorm]; linarith) | |
| 115 | 115 | |
| 116 | 116 | /-- Regularized root energy for a finite family, with constants independent of its cardinality. -/ |
| 117 | 117 | theorem family_regularized_energy_evolution (K : ℝ → H →L[ℝ] H) (e : ι → ℝ → H) |
| @@ -158,7 +158,7 @@ theorem family_regularized_energy_evolution (K : ℝ → H →L[ℝ] H) (e : ι | ||
| 158 | 158 | _ ≤ (‖K'‖ + 2 * B + 2 * ν * C) * familySquaredNorm v + |
| 159 | 159 | 2 * ‖K t‖ * familyNorm v * familyNorm forcing := hb |
| 160 | 160 | _ ≤ (‖K'‖ + 2 * B + 2 * ν * C) * (E ^ 2 / c ^ 2) + |
| 161 | - 2 * ‖K t‖ * (E / c) * familyNorm forcing := by nlinarith | |
| 161 | + 2 * ‖K t‖ * (E / c) * familyNorm forcing := by linarith | |
| 162 | 162 | _ = _ := by dsimp [E, v]; field_simp |
| 163 | 163 | |
| 164 | 164 | end EulerFiniteMetricEnergy |
+1 −1 Euler/MeanBoundaryCoercivity.lean View file
| @@ -31,7 +31,7 @@ theorem mean_boundary_lower_bound (χ : Cutoff) (R : ℝ) (hR : 0 < R) | ||
| 31 | 31 | have hloc := mul_le_mul_of_nonneg_left |
| 32 | 32 | (boundary_localization_form χ R hR z hz hχ r hr hrquarter) hBc |
| 33 | 33 | have hcomp := mul_le_mul_of_nonneg_right hL (boundaryOperator_positive χ z) |
| 34 | - nlinarith only [hcoeff, hloc, hcomp] | |
| 34 | + linarith only [hcoeff, hloc, hcomp] | |
| 35 | 35 | |
| 36 | 36 | /-- The exact cutoff and physical-label core from source (7)–(8). -/ |
| 37 | 37 | theorem scaled_mean_boundary_lower_bound (ℓ : ℝ) (hℓ : 0 < ℓ) |
+1 −1 Euler/MeanBoundaryGevrey.lean View file
| @@ -30,7 +30,7 @@ theorem majorant_next_four_radius (R : ℝ) (hR : 0 ≤ R) (n : ℕ) : | ||
| 30 | 30 | unfold majorant |
| 31 | 31 | simp only [Nat.add_zero, Nat.factorial_succ, Nat.cast_mul, Nat.cast_add, Nat.cast_one, |
| 32 | 32 | pow_succ, mul_pow] |
| 33 | - nlinarith only [H] | |
| 33 | + linarith only [H] | |
| 34 | 34 | |
| 35 | 35 | def cutoffGevreyAmplitude (supportRadius coefficientRadius coefficientSize : ℝ) : ℝ := |
| 36 | 36 | 3 * cutoffCurlConstant * coefficientSize * |
+1 −1 Euler/MeanCutoffCurlBound.lean View file
| @@ -178,6 +178,6 @@ theorem cutoff_curl_bound (ψ : Space → ℝ) (φ : Space → Space) | ||
| 178 | 178 | have hb : 0 ≤ lpNorm (fderiv ℝ ψ) 3 volume := lpNorm_nonneg |
| 179 | 179 | have hc : 0 ≤ (sobolevConstant : ℝ) := NNReal.coe_nonneg _ |
| 180 | 180 | unfold cutoffCurlConstant |
| 181 | - nlinarith [mul_nonneg hc ha] | |
| 181 | + linarith [mul_nonneg hc ha] | |
| 182 | 182 | |
| 183 | 183 | end EulerMeanCutoffCurl |
+2 −2 Euler/MeanFormGevrey.lean View file
| @@ -95,7 +95,7 @@ theorem pullbackMeanOperator_bound | ||
| 95 | 95 | ‖iteratedFDeriv ℝ k (fun p => (meanOperator J R (H p) (C p)).comp (D p)) y‖ ≤ |
| 96 | 96 | (3*baseAmplitude J R CH CC*CD) * majorant r 0 k := by |
| 97 | 97 | intro k y |
| 98 | - simpa only [Nat.zero_add] using clm_comp_bound | |
| 98 | + simpa only using clm_comp_bound | |
| 99 | 99 | (fun p => meanOperator J R (H p) (C p)) D hB hD r (baseAmplitude J R CH CC) CD |
| 100 | 100 | hr hB0 hCD 0 0 hBb hDb k y |
| 101 | 101 | have hDa := (realAdjoint (U := V) (E := W)).contDiff.comp hD |
| @@ -105,7 +105,7 @@ theorem pullbackMeanOperator_bound | ||
| 105 | 105 | r CD (3*baseAmplitude J R CH CC*CD) hr hCD (by positivity) 0 0 hDab hBD n x |
| 106 | 106 | calc |
| 107 | 107 | _ ≤ (3*CD*(3*baseAmplitude J R CH CC*CD)) * majorant r 0 n := by |
| 108 | - simpa only [transportedOperator, Nat.zero_add] using h | |
| 108 | + simpa only [transportedOperator] using h | |
| 109 | 109 | _ = _ := by ring |
| 110 | 110 | |
| 111 | 111 | end EulerMeanFormGevrey |
+1 −1 Euler/MeanFrameCoefficients.lean View file
| @@ -44,7 +44,7 @@ theorem solenoidalFrame_lower | ||
| 44 | 44 | ring |
| 45 | 45 | _ ≤ ‖solenoidalFrame T F t z‖^2 := by |
| 46 | 46 | apply (div_le_iff₀ (sq_pos_of_pos hd)).2 |
| 47 | - nlinarith only [hs] | |
| 47 | + linarith only [hs] | |
| 48 | 48 | |
| 49 | 49 | /-- The actual mean constraint and right inversion place every physical |
| 50 | 50 | primitive in the range of the solenoidal frame, at every time. -/ |
+1 −1 Euler/MeanGradientTestSpace.lean View file
| @@ -108,7 +108,7 @@ theorem lpNorm_fderiv_le_gradient (f : Test) : | ||
| 108 | 108 | calc |
| 109 | 109 | lpNorm (fderiv ℝ (f : Space → Space)) 2 volume ≤ lpNorm (∑ i : Fin 3, a i) 2 volume := |
| 110 | 110 | lpNorm_mono_real hsum (fun x => by |
| 111 | - simpa [a] using (opNorm_le_sum_columns (fderiv ℝ (f : Space → Space) x))) | |
| 111 | + simpa using (opNorm_le_sum_columns (fderiv ℝ (f : Space → Space) x))) | |
| 112 | 112 | _ ≤ ∑ i : Fin 3, lpNorm (a i) 2 volume := lpNorm_sum_le (fun i _ => ha i) (by norm_num) |
| 113 | 113 | _ = ∑ i : Fin 3, ‖derivativeColumn f i‖ := by |
| 114 | 114 | apply Finset.sum_congr rfl |
+2 −2 Euler/MeanHarmonicCutoffEnergy.lean View file
| @@ -77,8 +77,8 @@ theorem caccioppoli_weighted_bound (η ρ h : Space → ℝ) (C : ℝ) | ||
| 77 | 77 | apply integral_mono (integrable_square_gradient_cutoff η h hcη hη hh.continuous) |
| 78 | 78 | (hi.const_mul (C ^ 2)) |
| 79 | 79 | intro x |
| 80 | - nlinarith [mul_le_mul_of_nonneg_left (hbound x) (sq_nonneg (h x))] | |
| 80 | + linarith [mul_le_mul_of_nonneg_left (hbound x) (sq_nonneg (h x))] | |
| 81 | 81 | have hc := caccioppoli_bound η h hcη hη hh hharmonic |
| 82 | - nlinarith | |
| 82 | + linarith | |
| 83 | 83 | |
| 84 | 84 | end EulerMeanHarmonic |
+4 −4 Euler/MeanHarmonicH2.lean View file
| @@ -32,23 +32,23 @@ theorem localized_second_pointwise (h : Space → ℝ) (hh : ContDiff ℝ ∞ h) | ||
| 32 | 32 | (fun _ hx => middle_one_on_inner_support hx) x |
| 33 | 33 | have ha : (h x * partialDerivative (partialDerivative innerCutoff i) i x) ^ 2 ≤ |
| 34 | 34 | innerSecondBound ^ 2 * h x ^ 2 := by |
| 35 | - nlinarith [mul_le_mul_of_nonneg_left hη₂ (sq_nonneg (h x))] | |
| 35 | + linarith [mul_le_mul_of_nonneg_left hη₂ (sq_nonneg (h x))] | |
| 36 | 36 | have hb : (2 * partialDerivative innerCutoff i x * partialDerivative h i x) ^ 2 ≤ |
| 37 | 37 | 4 * innerDerivativeBound ^ 2 * (outerCutoff x ^ 2 * ‖gradient h x‖ ^ 2) := by |
| 38 | 38 | have H := mul_le_mul hη₁ (partialDerivative_sq_le_gradient_sq h i x) |
| 39 | 39 | (sq_nonneg (partialDerivative h i x)) (by positivity) |
| 40 | - nlinarith | |
| 40 | + linarith | |
| 41 | 41 | have hc : (innerCutoff x * partialDerivative (partialDerivative h i) i x) ^ 2 ≤ |
| 42 | 42 | middleCutoff x ^ 2 * ‖gradient (partialDerivative h i) x‖ ^ 2 := by |
| 43 | 43 | have H := mul_le_mul hη₀ (partialDerivative_sq_le_gradient_sq (partialDerivative h i) i x) |
| 44 | 44 | (sq_nonneg _) (sq_nonneg _) |
| 45 | - nlinarith | |
| 45 | + linarith | |
| 46 | 46 | rw [secondPartial_mul innerCutoff h inner_smooth hh i x] |
| 47 | 47 | have H := sq_add_three_le |
| 48 | 48 | (h x * partialDerivative (partialDerivative innerCutoff i) i x) |
| 49 | 49 | (2 * partialDerivative innerCutoff i x * partialDerivative h i x) |
| 50 | 50 | (innerCutoff x * partialDerivative (partialDerivative h i) i x) |
| 51 | - nlinarith | |
| 51 | + linarith | |
| 52 | 52 | |
| 53 | 53 | def interiorSecondEnergyConstant : ℝ := |
| 54 | 54 | 3 * (innerSecondBound ^ 2 + 16 * innerDerivativeBound ^ 2 * outerDerivativeBound ^ 2 + |
+2 −3 Euler/MeanHarmonicScaling.lean View file
| @@ -20,8 +20,7 @@ theorem laplacian_comp_const_smul (f : Space → ℝ) (hf : ContDiff ℝ ∞ f) | ||
| 20 | 20 | def halfScale (f : Space → ℝ) : Space → ℝ := fun x => f ((1/2 : ℝ) • x) |
| 21 | 21 | |
| 22 | 22 | theorem halfScale_smooth (f : Space → ℝ) (hf : ContDiff ℝ ∞ f) : |
| 23 | - ContDiff ℝ ∞ (halfScale f) := by | |
| 24 | - exact hf.comp (contDiff_id.const_smul (1/2 : ℝ)) | |
| 23 | + ContDiff ℝ ∞ (halfScale f) := hf.comp (contDiff_id.const_smul (1/2 : ℝ)) | |
| 25 | 24 | |
| 26 | 25 | theorem halfScale_memLp (f : Space → ℝ) (hf : ContDiff ℝ ∞ f) |
| 27 | 26 | (hLp : MemLp f 2 volume) : MemLp (halfScale f) 2 volume := by |
| @@ -73,6 +72,6 @@ theorem harmonic_pointwise_quarterBall_sq (f : Space → ℝ) (hf : ContDiff ℝ | ||
| 73 | 72 | have H2 := pow_le_pow_left₀ (abs_nonneg (f x)) H 2 |
| 74 | 73 | rw [sq_abs, mul_pow, halfScale_energy f hf hLp] at H2 |
| 75 | 74 | unfold harmonicQuarterBallConstant |
| 76 | - nlinarith | |
| 75 | + linarith | |
| 77 | 76 | |
| 78 | 77 | end EulerMeanHarmonic |
+1 −1 Euler/MeanLocalizedQuadraticBound.lean View file
| @@ -34,7 +34,7 @@ theorem localized_coefficient_lower (M : Space → Space →L[ℝ] Space) | ||
| 34 | 34 | by_cases hxs : x ∈ s |
| 35 | 35 | · rw [Set.indicator_of_mem hxs] |
| 36 | 36 | have H := hcore x hxs (z x) |
| 37 | - nlinarith only [H, mul_nonneg hBe (sq_nonneg ‖z x‖)] | |
| 37 | + linarith only [H, mul_nonneg hBe (sq_nonneg ‖z x‖)] | |
| 38 | 38 | · rw [Set.indicator_of_notMem hxs, mul_zero, sub_zero] |
| 39 | 39 | exact hext x hxs (z x) |
| 40 | 40 | |
+2 −2 Euler/MeanPacketPathEnvelope.lean View file
| @@ -39,10 +39,10 @@ theorem path_envelope_bounds (E : SobolevData D ι q R) | ||
| 39 | 39 | (mul_le_mul_of_nonneg_left (hb n a) (Real.sqrt_nonneg D.T)) |
| 40 | 40 | have hm := mul_nonneg hA (majorant_nonneg R E.radius_nonneg d n) |
| 41 | 41 | have hc := mul_le_mul_of_nonneg_right hCfT hm |
| 42 | - exact h.trans (by nlinarith) | |
| 42 | + exact h.trans (by linarith) | |
| 43 | 43 | · intro n a |
| 44 | 44 | have hm := mul_nonneg hA (majorant_nonneg R E.radius_nonneg d n) |
| 45 | 45 | have hc := mul_le_mul_of_nonneg_right hCf1 hm |
| 46 | - exact (hb n a).trans (by nlinarith) | |
| 46 | + exact (hb n a).trans (by linarith) | |
| 47 | 47 | |
| 48 | 48 | end EulerMeanPacketProvider.SobolevData |
+2 −2 Euler/MeanPressureSobolev.lean View file
| @@ -71,7 +71,7 @@ theorem pressure_time_block_bounds {ι : Type*} [Fintype ι] | ||
| 71 | 71 | refine (congrArg (fun v : TimeLp T solenoidalSpace => |
| 72 | 72 | block directions q (fun b : Space => timeSolenoidalTranslation T b v) n a) |
| 73 | 73 | (s.acceleration_eq_meanAcceleration c hc hLower)).trans_le ?_ |
| 74 | - simpa only [Nat.add_assoc] using meanAcceleration_translation_block_gevrey directions hd q | |
| 74 | + simpa only using meanAcceleration_translation_block_gevrey directions hd q | |
| 75 | 75 | T hT F F₁ c hc hLower s.velocityLp f hF hF₁ hv hf Rc R CF CF₁ Cf 1 |
| 76 | 76 | hRc hRcR hCF hCF₁ hCf zero_le_one hstrong hFb hF₁b (d+1) hf1 hv1 n a |
| 77 | 77 | have ha := s.acceleration_orbit_contDiff c hc hLower hF hF₁ hv hf |
| @@ -91,7 +91,7 @@ theorem pressure_time_block_bounds {ι : Type*} [Fintype ι] | ||
| 91 | 91 | have hac (n a) : block directions q |
| 92 | 92 | (fun b : Space => coordinatePathTranslation T b (s.classicalAcceleration c hc hLower fC)) n a ≤ |
| 93 | 93 | majorant R (d+3) n := by |
| 94 | - simpa only [Nat.add_assoc, meanAccelerationPath, classicalAcceleration] using meanAccelerationPath_translation_block_gevrey | |
| 94 | + simpa only [meanAccelerationPath, classicalAcceleration] using meanAccelerationPath_translation_block_gevrey | |
| 95 | 95 | T F F₁ c hc hLower s.coordinateVelocityPath fC directions hd q hF hF₁ hvc hfC |
| 96 | 96 | Rc R CF CF₁ Cf (coordinateTraceCost T) hRc hRcR hCF hCF₁ hCf htrace |
| 97 | 97 | hstrongC hFb hF₁b (d+2) hfc2 hvcb n a |
+2 −2 Euler/MeanScalarMollification.lean View file
| @@ -42,13 +42,13 @@ theorem scalarMollification_sq_le (φ : ContDiffBump (0 : Space)) | ||
| 42 | 42 | m^2 * φ.normed volume y ≤ φ.normed volume y * f (x-y)^2 |
| 43 | 43 | have h := mul_nonneg (φ.nonneg_normed (μ := (volume : Measure Space)) y) |
| 44 | 44 | (sq_nonneg (f (x-y)-m)) |
| 45 | - nlinarith | |
| 45 | + linarith | |
| 46 | 46 | rw [integral_sub (hi.const_mul (2*m)) (hi0.const_mul (m^2)), |
| 47 | 47 | integral_const_mul, integral_const_mul, φ.integral_normed] at H |
| 48 | 48 | have hm : (∫ y, φ.normed volume y * f (x-y)) = m := rfl |
| 49 | 49 | rw [hm] at H |
| 50 | 50 | change m^2 ≤ ∫ y, φ.normed volume y * f (x-y)^2 |
| 51 | - nlinarith | |
| 51 | + linarith | |
| 52 | 52 | |
| 53 | 53 | theorem scalarMollification_sq_integrable (φ : ContDiffBump (0 : Space)) |
| 54 | 54 | (f : Space → ℝ) (hf : MemLp f 2 volume) : |
+1 −1 Euler/MeanScalarProductDerivatives.lean View file
| @@ -49,6 +49,6 @@ theorem secondPartial_mul (f g : Space → ℝ) (hf : ContDiff ℝ ∞ f) | ||
| 49 | 49 | ring |
| 50 | 50 | |
| 51 | 51 | theorem sq_add_three_le (a b c : ℝ) : (a + b + c) ^ 2 ≤ 3 * (a ^ 2 + b ^ 2 + c ^ 2) := by |
| 52 | - nlinarith [sq_nonneg (a - b), sq_nonneg (a - c), sq_nonneg (b - c)] | |
| 52 | + linarith [sq_nonneg (a - b), sq_nonneg (a - c), sq_nonneg (b - c)] | |
| 53 | 53 | |
| 54 | 54 | end EulerMeanHarmonic |
+1 −1 Euler/MeanScaledBoundaryGevrey.lean View file
| @@ -43,7 +43,7 @@ theorem scaledCutoff_scaledRadiusGevrey (ℓ : ℝ) (hℓ : 0 < ℓ) (n : ℕ) ( | ||
| 43 | 43 | (pow_nonneg hℓ.le n) |
| 44 | 44 | apply H.trans_eq |
| 45 | 45 | unfold scaledCutoffGevreySize majorant |
| 46 | - simp only [Nat.add_zero, mul_pow] | |
| 46 | + simp only [Nat.add_zero] | |
| 47 | 47 | ring |
| 48 | 48 | |
| 49 | 49 | theorem scaledCutoff_support_ball (ℓ : ℝ) (hℓ : 0 < ℓ) : |
+2 −2 Euler/MeanStrongSobolev.lean View file
| @@ -76,7 +76,7 @@ theorem strong_time_block_bounds {ι : Type*} [Fintype ι] | ||
| 76 | 76 | refine (congrArg (fun v : TimeLp T solenoidalSpace => |
| 77 | 77 | block directions q (fun b : Space => timeSolenoidalTranslation T b v) n a) |
| 78 | 78 | (s.acceleration_eq_meanAcceleration c hc hLower)).trans_le ?_ |
| 79 | - simpa only [Nat.add_assoc] using meanAcceleration_translation_block_gevrey directions hd q | |
| 79 | + simpa only using meanAcceleration_translation_block_gevrey directions hd q | |
| 80 | 80 | T hT F F₁ c hc hLower s.velocityLp f hF hF₁ hv hf Rc R CF CF₁ Cf 1 |
| 81 | 81 | hRc hRcR hCF hCF₁ hCf zero_le_one hstrong hFb hF₁b (d+1) hf1 hv1 n a |
| 82 | 82 | have ha := s.acceleration_orbit_contDiff c hc hLower hF hF₁ hv hf |
| @@ -96,7 +96,7 @@ theorem strong_time_block_bounds {ι : Type*} [Fintype ι] | ||
| 96 | 96 | have hac (n a) : block directions q |
| 97 | 97 | (fun b : Space => coordinatePathTranslation T b (s.classicalAcceleration c hc hLower fC)) n a ≤ |
| 98 | 98 | majorant R (d+3) n := by |
| 99 | - simpa only [Nat.add_assoc, meanAccelerationPath, classicalAcceleration] using meanAccelerationPath_translation_block_gevrey | |
| 99 | + simpa only [meanAccelerationPath, classicalAcceleration] using meanAccelerationPath_translation_block_gevrey | |
| 100 | 100 | T F F₁ c hc hLower s.coordinateVelocityPath fC directions hd q hF hF₁ hvc hfC |
| 101 | 101 | Rc R CF CF₁ Cf (coordinateTraceCost T) hRc hRcR hCF hCF₁ hCf htrace |
| 102 | 102 | hstrongC hFb hF₁b (d+2) hfc2 hvcb n a |
+1 −1 Euler/MeanVariationalOperator.lean View file
| @@ -50,7 +50,7 @@ theorem meanOperator_coercive (u : V) : | ||
| 50 | 50 | have hj := mul_le_mul_of_nonneg_left (hJ u) hK |
| 51 | 51 | have hr := mul_le_mul_of_nonneg_left (hR u) hB |
| 52 | 52 | have hs := mul_le_mul_of_nonneg_right hsmall (sq_nonneg ‖u‖) |
| 53 | - nlinarith only [hH (J u), hC u, hj, hr, hs] | |
| 53 | + linarith only [hH (J u), hC u, hj, hr, hs] | |
| 54 | 54 | |
| 55 | 55 | /-- The forcing-to-derivative map constructed from the coercive mean form. -/ |
| 56 | 56 | def meanSolver : W →L[ℝ] V := |
+3 −3 Euler/OrdinaryQuadraticControl.lean View file
| @@ -26,10 +26,10 @@ theorem quadratic_energy_bound (T C : ℝ) (hT : 0 ≤ T) | ||
| 26 | 26 | have hfd (r : ℝ) (hr : r ∈ Icc 0 T) : HasDerivWithinAt f (f' r) (Icc 0 T) r := by |
| 27 | 27 | have hi := ((hd r hr).const_add 1).inv (hp r hr).ne' |
| 28 | 28 | have hl := ((hasDerivAt_id r).const_mul C).hasDerivWithinAt (s := Icc 0 T) |
| 29 | - simpa only [f,f',id_eq,mul_one,Pi.inv_apply] using hi.fun_add hl | |
| 29 | + simpa only [f,id_eq,mul_one,Pi.inv_apply] using hi.fun_add hl | |
| 30 | 30 | have hfn (r : ℝ) (hr : r ∈ Icc 0 T) : 0 ≤ f' r := by |
| 31 | 31 | have hdv : X' r/(1+X r)^2 ≤ C := (div_le_iff₀ (sq_pos_of_pos (hp r hr))).mpr (by |
| 32 | - simpa only [mul_comm C] using hb r hr) | |
| 32 | + simpa only using hb r hr) | |
| 33 | 33 | dsimp [f'] |
| 34 | 34 | rw [neg_div] |
| 35 | 35 | linarith |
| @@ -47,6 +47,6 @@ theorem quadratic_energy_bound (T C : ℝ) (hT : 0 ≤ T) | ||
| 47 | 47 | rw [he,one_div] |
| 48 | 48 | linarith |
| 49 | 49 | have hcross := (div_le_div_iff₀ (mul_pos (by norm_num) (hp 0 hz)) (hp t ht)).mp hi |
| 50 | - nlinarith | |
| 50 | + linarith | |
| 51 | 51 | |
| 52 | 52 | end EulerOrdinarySobolev |
+1 −1 Euler/PacketActualFrameEstimates.lean View file
| @@ -52,7 +52,7 @@ theorem physical_frame_renewal_order40 (M : Space →L[ℝ] Space) (m v r w : | ||
| 52 | 52 | let R := scaledRay m v r s₀ t₀ a ε (y⁻¹/σ) |
| 53 | 53 | let V := scaledVelocity m v w t₀ a ε (y⁻¹/σ) |
| 54 | 54 | have hp := scaled_power_le hΘ hK he (by decide : 5 ≤ 40) |
| 55 | - have hρ : 800*e*Θ^5 ≤ 1/2 := by nlinarith only [hsmall, hp] | |
| 55 | + have hρ : 800*e*Θ^5 ≤ 1/2 := by linarith only [hsmall, hp] | |
| 56 | 56 | have hNne : R 2 ≠ 0 := by |
| 57 | 57 | have hh := (abs_le.mp hN).1 |
| 58 | 58 | change -(800*e*Θ^5) ≤ R 2-1 at hh |
+3 −3 Euler/PacketAmplitudeBounds.lean View file
| @@ -56,9 +56,9 @@ theorem primaryAmplitude_profile_bound (r w : ℝ → Space) | ||
| 56 | 56 | have hl : s₀*A*idealPrimarySize σ Z T ≤ 4*δ*hchild := by |
| 57 | 57 | have hb := mul_le_mul_of_nonneg_left hlower hA |
| 58 | 58 | rw [hid] at hb |
| 59 | - nlinarith only [hb] | |
| 59 | + linarith only [hb] | |
| 60 | 60 | intro τ hτ |
| 61 | - have hroot : 1 ≤ sqrt (1+(σ^2*τ^2)^2) := one_le_sqrt.mpr (by nlinarith [sq_nonneg (σ^2*τ^2)]) | |
| 61 | + have hroot : 1 ≤ sqrt (1+(σ^2*τ^2)^2) := one_le_sqrt.mpr (by linarith [sq_nonneg (σ^2*τ^2)]) | |
| 62 | 62 | have hz : Z τ ≤ idealPrimarySize σ Z τ := by |
| 63 | 63 | have hb := mul_le_mul_of_nonneg_right hroot (hZpos τ hτ.1).le |
| 64 | 64 | simpa only [one_mul, idealPrimarySize] using hb |
| @@ -68,6 +68,6 @@ theorem primaryAmplitude_profile_bound (r w : ℝ → Space) | ||
| 68 | 68 | have h2 := mul_le_mul_of_nonneg_left hl (show 0 ≤ 2*exp (6:ℝ) by positivity) |
| 69 | 69 | apply (le_div_iff₀ hs₀).mpr |
| 70 | 70 | change A*Z τ*s₀ ≤ 8*exp 6*δ*hchild |
| 71 | - nlinarith only [h1, h2] | |
| 71 | + linarith only [h1, h2] | |
| 72 | 72 | |
| 73 | 73 | end EulerPacketMovingFrame |
+3 −3 Euler/PacketBeforeTargetSize.lean View file
| @@ -44,7 +44,7 @@ theorem physical_ideal_size_comparison_order40 (m v r w : ℝ → Space) | ||
| 44 | 44 | rw [abs_mul, abs_mul, abs_of_nonneg (sq_nonneg σ), abs_of_nonneg hτ0] |
| 45 | 45 | norm_num only [abs_neg, abs_of_nonneg (by norm_num : (0:ℝ) ≤ 2)] |
| 46 | 46 | have hh := mul_le_mul_of_nonneg_right hσ2 hτ0 |
| 47 | - nlinarith only [hh, hτΘ, sq_nonneg (Θ-1), hΘ] | |
| 47 | + linarith only [hh, hτΘ, sq_nonneg (Θ-1), hΘ] | |
| 48 | 48 | have hzpos := equation30_global_positive hσ hσsmall hZ hfluxZ hZ0 hZ₁0 τ hτ0 |
| 49 | 49 | have hslope := equation30_primary_logderivative_bound hσ hσsmall hZ hfluxZ hZ0 hZ₁0 τ hτ |
| 50 | 50 | have hr₀ : |-Z₁ τ/Z τ| ≤ 4 := by simpa only [neg_div, abs_neg] using hslope |
| @@ -52,7 +52,7 @@ theorem physical_ideal_size_comparison_order40 (m v r w : ℝ → Space) | ||
| 52 | 52 | ≤ 10*(K*e*Θ^29) := by simpa only [neg_div, sub_neg_eq_add] using hratio |
| 53 | 53 | obtain ⟨hl, hu⟩ := physical_size_comparison_order40 m v r w hs₀ hε hm hv hmv hrw |
| 54 | 54 | hΘ hK he hεe hsmall hP₀ hQ₀ hr₀ hzpos hP hQ hN hVrel hr' |
| 55 | - constructor <;> dsimp only [idealPrimarySize] <;> nlinarith only [hl, hu] | |
| 55 | + constructor <;> dsimp only [idealPrimarySize] <;> linarith only [hl, hu] | |
| 56 | 56 | |
| 57 | 57 | /-- Every controlled neighboring primary before target is bounded by a |
| 58 | 58 | fixed multiple of the center's actual target size. All comparisons use |
| @@ -97,6 +97,6 @@ theorem physical_before_target_size_bound {α : Type*} (center : α) | ||
| 97 | 97 | have hideal := equation30_ideal_size_comparison hσ hσsmall hZ hfluxZ hZ0 hZ₁0 |
| 98 | 98 | (by linarith only [hτ.1] : 0 ≤ τ) hτ.2 |
| 99 | 99 | have hh := mul_le_mul_of_nonneg_left hideal hs₀.le |
| 100 | - nlinarith only [htarget, hcurrent, hh] | |
| 100 | + linarith only [htarget, hcurrent, hh] | |
| 101 | 101 | |
| 102 | 102 | end EulerPacketMovingFrame |
+6 −6 Euler/PacketChildLowBounds.lean View file
| @@ -204,16 +204,16 @@ theorem exactPacket_whole_horizon_low_bounds | ||
| 204 | 204 | · obtain ⟨hv,hp,hq⟩ := E.exactPacket_good_low_bounds m hm J support hSupport B residual k hk |
| 205 | 205 | G hball hs hδ hδ1 ev ep CM CH Kupper herr t ht x (hCM t x) (hCH t x) (hupper t x) |
| 206 | 206 | refine ⟨hv.trans ?_,hp.trans ?_,fun z => (hq z).trans ?_⟩ |
| 207 | - · nlinarith only [mul_nonneg hchild hbad] | |
| 208 | - · nlinarith only [mul_nonneg (mul_nonneg hCM0 hchild) hbad] | |
| 207 | + · linarith only [mul_nonneg hchild hbad] | |
| 208 | + · linarith only [mul_nonneg (mul_nonneg hCM0 hchild) hbad] | |
| 209 | 209 | · apply mul_le_mul_of_nonneg_right _ (sq_nonneg _) |
| 210 | - nlinarith only [mul_nonneg (mul_nonneg hCM0 hchild) hbad] | |
| 210 | + linarith only [mul_nonneg (mul_nonneg hCM0 hchild) hbad] | |
| 211 | 211 | · obtain ⟨hv,hp,hq⟩ := E.exactPacket_bad_low_bounds m hm J support hSupport B residual k hk |
| 212 | 212 | G hball hs hδ hδ1 ev ep CM CH Kupper herr t (le_of_not_ge ht) x (hCM t x) (hCH t x) (hupper t x) |
| 213 | 213 | refine ⟨hv.trans ?_,hp.trans ?_,fun z => (hq z).trans ?_⟩ |
| 214 | - · nlinarith only [mul_nonneg hchild hgood] | |
| 215 | - · nlinarith only [mul_nonneg (mul_nonneg hCM0 hchild) hgood] | |
| 214 | + · linarith only [mul_nonneg hchild hgood] | |
| 215 | + · linarith only [mul_nonneg (mul_nonneg hCM0 hchild) hgood] | |
| 216 | 216 | · apply mul_le_mul_of_nonneg_right _ (sq_nonneg _) |
| 217 | - nlinarith only [mul_nonneg (mul_nonneg (mul_nonneg hCM0 hchild) G.delta_nonneg) hgood] | |
| 217 | + linarith only [mul_nonneg (mul_nonneg (mul_nonneg hCM0 hchild) G.delta_nonneg) hgood] | |
| 218 | 218 | |
| 219 | 219 | end EulerParentPacketFrames.Evolution |
+2 −2 Euler/PacketCofactorGevrey.lean View file
| @@ -34,7 +34,7 @@ theorem adjugate_bound (F : P → EndSpace) (hF : ContDiff ℝ ∞ F) | ||
| 34 | 34 | (fun k => by simpa only [abs_norm] using hFb k x) n |
| 35 | 35 | have hs : (∑ i ∈ Finset.range (n+1), (n.choose i : ℝ)* |
| 36 | 36 | ‖iteratedFDeriv ℝ i F x‖*‖iteratedFDeriv ℝ (n-i) F x‖) ≤ |
| 37 | - (3*C*C)*majorant R 0 n := (le_abs_self _).trans (by simpa only [zero_add] using hp) | |
| 37 | + (3*C*C)*majorant R 0 n := (le_abs_self _).trans (by simpa only using hp) | |
| 38 | 38 | calc |
| 39 | 39 | _ ≤ ‖cofactorBilinear‖*(∑ i ∈ Finset.range (n+1), (n.choose i : ℝ)* |
| 40 | 40 | ‖iteratedFDeriv ℝ i F x‖*‖iteratedFDeriv ℝ (n-i) F x‖) := |
| @@ -110,7 +110,7 @@ theorem curvature_bound (F F₂ H : P → EndSpace) | ||
| 110 | 110 | rw [recovered_curvature_eq F F₂ H hdet h₂] |
| 111 | 111 | have h := neg_bound (fun y => (F₂ y).comp (adjugate (F y))) R (3*C₂*(9*C^2)) 0 |
| 112 | 112 | (fun n x => by |
| 113 | - simpa only [zero_add] using clm_comp_bound F₂ (fun y => adjugate (F y)) | |
| 113 | + simpa only using clm_comp_bound F₂ (fun y => adjugate (F y)) | |
| 114 | 114 | hF₂ (adjugate_contDiff F hF) R C₂ (9*C^2) hR hC₂ (by positivity) 0 0 hF₂b |
| 115 | 115 | (adjugate_bound F hF R C hR hC hFb) n x) n x |
| 116 | 116 | exact h.trans_eq (by ring) |
+2 −2 Euler/PacketCofactorOperator.lean View file
| @@ -96,7 +96,7 @@ theorem cofactorValue_norm (A B : EndSpace) : ‖cofactorValue A B‖ ≤ 3*‖A | ||
| 96 | 96 | ‖rowOperator 0 (crossOperator (A (basis 1)) (B (basis 2)))‖+ |
| 97 | 97 | ‖rowOperator 1 (crossOperator (A (basis 2)) (B (basis 0)))‖+ |
| 98 | 98 | ‖rowOperator 2 (crossOperator (A (basis 0)) (B (basis 1)))‖ := norm_add₃_le |
| 99 | - _ ≤ 3*‖A‖*‖B‖ := by nlinarith [h 0 1 2,h 1 2 0,h 2 0 1] | |
| 99 | + _ ≤ 3*‖A‖*‖B‖ := by linarith [h 0 1 2,h 1 2 0,h 2 0 1] | |
| 100 | 100 | |
| 101 | 101 | def cofactorBilinear : EndSpace →L[ℝ] EndSpace →L[ℝ] EndSpace := |
| 102 | 102 | cofactorLinear.mkContinuous₂ 3 cofactorValue_norm |
| @@ -118,7 +118,7 @@ theorem operatorMatrix_adjugate (A : EndSpace) : | ||
| 118 | 118 | fin_cases i <;> fin_cases j <;> |
| 119 | 119 | simp [operatorMatrix,adjugate,cofactorValue,rowOperator_apply, |
| 120 | 120 | crossLeft_apply,cross,basis,EuclideanSpace.inner_single_right, |
| 121 | - cross_apply,Matrix.adjugate_fin_three,Matrix.cons_val_two] <;> ring | |
| 121 | + cross_apply,Matrix.adjugate_fin_three] <;> ring | |
| 122 | 122 | |
| 123 | 123 | theorem operatorMatrix_injective : Function.Injective operatorMatrix := by |
| 124 | 124 | intro A B h |
+1 −1 Euler/PacketCommonScaleChoice.lean View file
| @@ -45,7 +45,7 @@ theorem exists_common_guards {ι : Type*} [Fintype ι] (s : ι → CostSpec) | ||
| 45 | 45 | have hδK : 1000000*K*δ ≤ 1 := by |
| 46 | 46 | have hh : δ ≤ 1/(1000000*K) := (min_le_right _ _).trans (min_le_right _ _) |
| 47 | 47 | have hm := (le_div_iff₀ (show 0 < 1000000*K by positivity)).mp hh |
| 48 | - nlinarith only [hm] | |
| 48 | + linarith only [hm] | |
| 49 | 49 | obtain ⟨Y,hY,hbounds⟩ := hchoice (δ/96) (by positivity) |
| 50 | 50 | obtain ⟨Z,hZ⟩ := eventually_atTop.mp |
| 51 | 51 | ((baseErrorCost_tendsto_zero J D (by omega) hD C hC1).eventually_le_const |
+2 −2 Euler/PacketControlledPropagator.lean View file
| @@ -50,7 +50,7 @@ theorem controlled_velocity_propagator_within | ||
| 50 | 50 | have hΘ0 : 0 ≤ Θ := by linarith only [hΘ] |
| 51 | 51 | have hgeom : 10000*e*Θ^5 ≤ 1 := by |
| 52 | 52 | have hh := mul_le_mul_of_nonneg_left (pow_le_pow_right₀ hΘ (by decide : 5 ≤ 21)) he |
| 53 | - nlinarith only [hsmall, hh, mul_nonneg he (pow_nonneg hΘ0 21)] | |
| 53 | + linarith only [hsmall, hh, mul_nonneg he (pow_nonneg hΘ0 21)] | |
| 54 | 54 | have hcontrol := ray_controlled_velocity_error_within (sq_nonneg σ) hσ2 hΘ hT0 hT |
| 55 | 55 | he hε hεe hgeom hRc hP hQ hN hRclose hAclose hCclose hrayInitial |
| 56 | 56 | have hPc : ContinuousOn P (Icc 0 T) := fun t ht => (hP t ht).continuousWithinAt |
| @@ -62,7 +62,7 @@ theorem controlled_velocity_propagator_within | ||
| 62 | 62 | intro t ht |
| 63 | 63 | linarith only [(hcontrol t ht).1.2] |
| 64 | 64 | obtain ⟨hU₁c, hV₁c⟩ := continuousOn_velocity_rhs (ε := ε) hAc hCc hPc hQc hNc hUc hVc hNne |
| 65 | - have hs : 40*(200000*e)*Θ^21 ≤ 1 := by nlinarith only [hsmall] | |
| 65 | + have hs : 40*(200000*e)*Θ^21 ≤ 1 := by linarith only [hsmall] | |
| 66 | 66 | have hprop := velocity_propagator_bound_within hσ hσsmall hΘ hT0 hT |
| 67 | 67 | (show 0 ≤ 200000*e by positivity) hs (fun t _ => hF t) (fun t _ => hG t) |
| 68 | 68 | (fun t _ => hfluxF t) (fun t _ => hfluxG t) hF0 hF₁0 hG₁0 hU hV hU₁c hV₁c |
+3 −3 Euler/PacketCoordinateResidual.lean View file
| @@ -68,7 +68,7 @@ theorem normalized_pressure (k : ℝ) (p : ScalarField) (z : Domain) : | ||
| 68 | 68 | k • ((pressureJet p z).2 angleDirection • (rawInverse D z).adjoint D.m₀)) = |
| 69 | 69 | rawInverse D z ((rawInverse D z).adjoint |
| 70 | 70 | (k • pressureGradient p z + k^2 • ((pressureJet p z).2 angleDirection • D.m₀))) |
| 71 | - simp only [map_add,map_smul,smul_add,smul_smul,pow_two] | |
| 71 | + simp only [map_add,map_smul,smul_add,pow_two] | |
| 72 | 72 | module |
| 73 | 73 | |
| 74 | 74 | section Fields |
| @@ -90,7 +90,7 @@ theorem normalized_linear (k : ℝ) (hW : TimeDerivative D.T_pos.le G Gt) | ||
| 90 | 90 | D.strain (t,(x,θ)) (W (t,(x,θ)))) = _ |
| 91 | 91 | rw [G.slicedJet_temporal D.T_pos Gt hW,coordinateTime_formula] |
| 92 | 92 | simp only [rawInverse,rawLinear,rawFrameTime,coordinate,Data.strain,Data.clamp_coe, |
| 93 | - smul_apply,comp_apply,map_smul,hf,map_add,smul_add,smul_smul,smul_sub] | |
| 93 | + smul_apply,comp_apply,map_smul,hf,map_add,smul_smul,smul_sub] | |
| 94 | 94 | module |
| 95 | 95 | |
| 96 | 96 | include G in |
| @@ -157,7 +157,7 @@ theorem normalized_residual (k : ℝ) (hk : k ≠ 0) (hW : TimeDerivative D.T_po | ||
| 157 | 157 | have hl := normalized_linear D G Gt k hW t x θ |
| 158 | 158 | have hn := normalized_nonlinear D G k hk t x θ |
| 159 | 159 | have hp := normalized_pressure D k p (t,(x,θ)) |
| 160 | - simp only [map_add,smul_add] at hl hn hp | |
| 160 | + simp only [map_add] at hl hn hp | |
| 161 | 161 | simp only [slicedMomentumResidual,inv_inv,map_add,smul_add] |
| 162 | 162 | rw [hl] |
| 163 | 163 | linear_combination (norm := module) hn + hp |
+1 −1 Euler/PacketCorrectionCoefficientBudget.lean View file
| @@ -70,7 +70,7 @@ private theorem series_radius_small (ρ Rc M B : ℝ) (hρ : 0 ≤ ρ) (hB : 0 | ||
| 70 | 70 | have hp : 0 ≤ ρ*Rc := mul_nonneg hρ hR |
| 71 | 71 | have hm := mul_le_mul_of_nonneg_right hM hp |
| 72 | 72 | have hb := mul_le_mul_of_nonneg_left hBR hρ |
| 73 | - nlinarith | |
| 73 | + linarith | |
| 74 | 74 | |
| 75 | 75 | variable (D : EulerTransversePacketProvider.Data U) (P : ℝ) [Fact (0 < P)] |
| 76 | 76 | (R C0 C1 CI : ℝ) (hR : 0 ≤ R) (hC0 : 0 ≤ C0) (hC1 : 0 ≤ C1) (hCI : 0 ≤ CI) |
+1 −1 Euler/PacketCorrectionOutputPolynomial.lean View file
| @@ -94,7 +94,7 @@ theorem correction_output_bound (R H C X : ℝ) (hR : 0 ≤ R) (hH : 0 ≤ H) (h | ||
| 94 | 94 | simp only [initialRadius,one_div,inv_inv] |
| 95 | 95 | unfold inverseRadiusEnvelope |
| 96 | 96 | have hp := mul_le_mul hM hRc Kc.Rc_nonneg hX |
| 97 | - nlinarith | |
| 97 | + linarith | |
| 98 | 98 | have hiX : 0 ≤ inverseRadiusEnvelope X := by unfold inverseRadiusEnvelope; positivity |
| 99 | 99 | have hder : 12*velocity R H C*(4*R) ≤ 48*velocity X X X*X := by |
| 100 | 100 | calc |
+1 −1 Euler/PacketCorrectionPrimitiveBounds.lean View file
| @@ -42,7 +42,7 @@ theorem correction_envelopes (c R C0 C1 CI X : ℝ) | ||
| 42 | 42 | have hr : sobolevCoefficientRadius (Fin 4) (4*R) ≤ 64*X := by |
| 43 | 43 | simp only [sobolevCoefficientRadius,Fintype.card_fin,Nat.cast_ofNat, |
| 44 | 44 | max_eq_right (by norm_num : (1 : ℝ) ≤ 4)] |
| 45 | - nlinarith | |
| 45 | + linarith | |
| 46 | 46 | have hr0 : 0 ≤ sobolevCoefficientRadius (Fin 4) (4*R) := |
| 47 | 47 | sobolevCoefficientRadius_nonneg (4*R) (by positivity) |
| 48 | 48 | have hn : normalizedCoefficientRadius 6 (4*R) (3*CI*CI) ≤ |
+6 −6 Euler/PacketCorrectionScalar.lean View file
| @@ -31,12 +31,12 @@ theorem initialRadius_bounds (R M Rc : ℝ) (hR : 0 ≤ R) (hM : 0 ≤ M) (hRc : | ||
| 31 | 31 | unfold initialRadius |
| 32 | 32 | refine ⟨one_div_pos.mpr hd, ?_, ?_, ?_⟩ |
| 33 | 33 | · rw [div_mul_eq_mul_div,one_mul,div_le_iff₀ hd] |
| 34 | - nlinarith | |
| 34 | + linarith | |
| 35 | 35 | · rw [show 4*M*(1/(1+8*R+4*M*Rc+Rc)*Rc) = |
| 36 | 36 | (4*M*Rc)/(1+8*R+4*M*Rc+Rc) by ring, div_le_iff₀ hd] |
| 37 | - nlinarith | |
| 37 | + linarith | |
| 38 | 38 | · rw [div_mul_eq_mul_div,one_mul,div_le_iff₀ hd] |
| 39 | - nlinarith | |
| 39 | + linarith | |
| 40 | 40 | |
| 41 | 41 | /-- The actual residual envelope wins over the Gronwall factor with an |
| 42 | 42 | explicit linear bound on the source growth cost. -/ |
| @@ -50,11 +50,11 @@ theorem residual_small (C T k X : ℝ) (hX : 64 ≤ X) (hk : 1 ≤ Real.log k) | ||
| 50 | 50 | (Real.log_le_sub_one_of_pos (by norm_num : (0 : ℝ) < 8)).trans (by linarith) |
| 51 | 51 | have hxlog : X ≤ X*Real.log k := le_mul_of_one_le_right hX0 hk |
| 52 | 52 | have he : Real.log 8 + (-(7/10)*X*Real.log k+3*C*T) ≤ -Real.sqrt X := by |
| 53 | - nlinarith only [hX0,hs,hl,hxlog,hgrowth] | |
| 53 | + linarith only [hX0,hs,hl,hxlog,hgrowth] | |
| 54 | 54 | have hh := Real.exp_le_exp.mpr he |
| 55 | 55 | rw [Real.exp_add,Real.exp_log (by norm_num : (0 : ℝ) < 8),Real.exp_add] at hh |
| 56 | 56 | unfold residual delta |
| 57 | - nlinarith only [hh] | |
| 57 | + linarith only [hh] | |
| 58 | 58 | |
| 59 | 59 | /-- The two elementary frequency guards control the radius loss caused |
| 60 | 60 | by the actual O(1/k) drift and the chosen error target. -/ |
| @@ -69,7 +69,7 @@ theorem radius_decay (C T D ρ0 k X : ℝ) (hk : 0 < k) | ||
| 69 | 69 | have he : 8*C*T*delta X ≤ ρ0 := by |
| 70 | 70 | rw [delta,Real.exp_neg,← div_eq_mul_inv] |
| 71 | 71 | exact (div_le_iff₀ (Real.exp_pos _)).mpr herror |
| 72 | - nlinarith only [hf,he] | |
| 72 | + linarith only [hf,he] | |
| 73 | 73 | |
| 74 | 74 | def radius (T C D ρ0 k X : ℝ) : C(Icc (0 : ℝ) T,ℝ) := |
| 75 | 75 | ⟨fun t => ρ0-2*C*(D/k+delta X)*t.val, |
+3 −3 Euler/PacketEarlyPhysical.lean View file
| @@ -102,12 +102,12 @@ theorem early_physical_size_suppression {α : Type*} (center : α) | ||
| 102 | 102 | have hP₀ : |σ^2*τ^2| ≤ Θ^2 := by |
| 103 | 103 | rw [abs_of_nonneg (by positivity : 0 ≤ σ^2*τ^2)] |
| 104 | 104 | have hh := mul_le_mul hσ2 hτ2 (sq_nonneg τ) (by norm_num : (0:ℝ) ≤ 1) |
| 105 | - nlinarith only [hh, hΘ2] | |
| 105 | + linarith only [hh, hΘ2] | |
| 106 | 106 | have hQ₀ : |-2*σ^2*τ| ≤ 2*Θ^2 := by |
| 107 | 107 | rw [abs_mul, abs_mul, abs_of_nonneg (sq_nonneg σ), abs_of_nonneg hτ.1] |
| 108 | 108 | norm_num only [abs_neg, abs_of_nonneg (by norm_num : (0:ℝ) ≤ 2)] |
| 109 | 109 | have hh := mul_le_mul hσ2 hτ.2 hτ.1 (by norm_num : (0:ℝ) ≤ 1) |
| 110 | - nlinarith only [hh, hΘ2] | |
| 110 | + linarith only [hh, hΘ2] | |
| 111 | 111 | have hupper := physical_size_le_scaled_state m v (r ξ) (w ξ) hs₀ hε hε1 |
| 112 | 112 | (hm τ hτT) (hv τ hτT) (hmv τ hτT) (hrw ξ τ hτT) hΘ hρ0 hρ hP₀ hQ₀ |
| 113 | 113 | (hP ξ τ hτT) (hQ ξ τ hτT) (hN ξ τ hτT) |
| @@ -116,6 +116,6 @@ theorem early_physical_size_suppression {α : Type*} (center : α) | ||
| 116 | 116 | have ht := mul_le_mul_of_nonneg_left htarget |
| 117 | 117 | (show 0 ≤ 8232*exp 9*Θ^5*exp (-(1/(4*σ))) by positivity) |
| 118 | 118 | apply (div_le_iff₀ htargetpos).mpr |
| 119 | - nlinarith only [hupper, hs, ht] | |
| 119 | + linarith only [hupper, hs, ht] | |
| 120 | 120 | |
| 121 | 121 | end EulerPacketMovingFrame |
+1 −1 Euler/PacketExactGlobalShear.lean View file
| @@ -53,7 +53,7 @@ theorem initializedPrimary_global_bound : | ||
| 53 | 53 | simp only [mul_one] at hb |
| 54 | 54 | have ha : S.H0^2 ≤ 3*S.H0^(2*1) := by |
| 55 | 55 | norm_num only [Nat.mul_one] |
| 56 | - nlinarith [sq_nonneg S.H0] | |
| 56 | + linarith [sq_nonneg S.H0] | |
| 57 | 57 | have hc := (hb.mono_amplitude (zero_le_one.trans L.radius_bounds.1) ha).fixed_velocity_grade |
| 58 | 58 | (n := 1) (zero_le_one.trans L.radius_bounds.1) S.H0_pos.le |
| 59 | 59 | exact (hc.changeTime hTime).of_raw_eq _ |
+1 −1 Euler/PacketFiniteAssemblyBounds.lean View file
| @@ -41,6 +41,6 @@ theorem wordBound_assembleFamily (M : ℕ) (f c : ℕ → VectorField) | ||
| 41 | 41 | have hp : A^(2*n) ≤ A^(2*(n+1)) := pow_le_pow_right₀ hA (by omega) |
| 42 | 42 | have hnext := (hh n).mono_shift hR (pow_nonneg hA0 _) hshift |
| 43 | 43 | have hs := (hg (n+1)).add hnext |
| 44 | - exact hs.mono_amplitude (zero_le_one.trans hR) (by nlinarith) | |
| 44 | + exact hs.mono_amplitude (zero_le_one.trans hR) (by linarith) | |
| 45 | 45 | |
| 46 | 46 | end EulerPacketCylinderField.Field |
+1 −1 Euler/PacketFiniteFrequencyBounds.lean View file
| @@ -29,7 +29,7 @@ theorem remainder_low_high_le (k B C₂ : ℝ) (hk : 0 < k) (hB4 : B^4 ≤ k) : | ||
| 29 | 29 | (k⁻¹)^2*C₂+2*B*(k⁻¹*B)^3 ≤ (C₂+2)/k^2 := by |
| 30 | 30 | have he : (k⁻¹)^2*C₂+2*B*(k⁻¹*B)^3 = (C₂+2*B^4/k)/k^2 := by |
| 31 | 31 | field_simp |
| 32 | - have ht : 2*B^4/k ≤ 2 := (div_le_iff₀ hk).mpr (by nlinarith) | |
| 32 | + have ht : 2*B^4/k ≤ 2 := (div_le_iff₀ hk).mpr (by linarith) | |
| 33 | 33 | rw [he] |
| 34 | 34 | exact div_le_div_of_nonneg_right (by linarith) (sq_nonneg k) |
| 35 | 35 | |
+1 −1 Euler/PacketFiveCostGuards.lean View file
| @@ -72,7 +72,7 @@ theorem five_costs_bound : | ||
| 72 | 72 | simp only [initialRadius,one_div,inv_inv] |
| 73 | 73 | unfold inverseRadiusEnvelope |
| 74 | 74 | have hprod := mul_le_mul hM hRc Kc.Rc_nonneg hX0 |
| 75 | - nlinarith | |
| 75 | + linarith | |
| 76 | 76 | have hp := fiveEnvelope_power P X hX |
| 77 | 77 | obtain ⟨hc₁,hc₂,hc₃,hc₄,hc₅⟩ := fiveEnvelope_components P X hX0 |
| 78 | 78 | refine ⟨?_,hCX.trans (hc₂.trans hp),?_,?_,?_⟩ |
+6 −6 Euler/PacketForwardChildLowBounds.lean View file
| @@ -162,16 +162,16 @@ theorem exactForwardPacket_whole_horizon_low_bounds | ||
| 162 | 162 | · obtain ⟨hv,hp,hq⟩ := E.exactForwardPacket_good_low_bounds m hm J support hSupport B residual k hk |
| 163 | 163 | G hball hδ hδ1 ev ep CM CH Kupper herr t ht x (hCM t x) (hCH t x) (hupper t x) |
| 164 | 164 | refine ⟨hv.trans ?_,hp.trans ?_,fun z => (hq z).trans ?_⟩ |
| 165 | - · nlinarith only [mul_nonneg hchild hbad] | |
| 166 | - · nlinarith only [mul_nonneg (mul_nonneg hCM0 hchild) hbad] | |
| 165 | + · linarith only [mul_nonneg hchild hbad] | |
| 166 | + · linarith only [mul_nonneg (mul_nonneg hCM0 hchild) hbad] | |
| 167 | 167 | · apply mul_le_mul_of_nonneg_right _ (sq_nonneg _) |
| 168 | - nlinarith only [mul_nonneg (mul_nonneg hCM0 hchild) hbad] | |
| 168 | + linarith only [mul_nonneg (mul_nonneg hCM0 hchild) hbad] | |
| 169 | 169 | · obtain ⟨hv,hp,hq⟩ := E.exactForwardPacket_early_low_bounds m hm J support hSupport B residual k hk |
| 170 | 170 | G hball hδ hδ1 ev ep CM CH Kupper herr t (le_of_not_ge ht) x (hCM t x) (hCH t x) (hupper t x) |
| 171 | 171 | refine ⟨hv.trans ?_,hp.trans ?_,fun z => (hq z).trans ?_⟩ |
| 172 | - · nlinarith only [mul_nonneg hchild hgood] | |
| 173 | - · nlinarith only [mul_nonneg (mul_nonneg hCM0 hchild) hgood] | |
| 172 | + · linarith only [mul_nonneg hchild hgood] | |
| 173 | + · linarith only [mul_nonneg (mul_nonneg hCM0 hchild) hgood] | |
| 174 | 174 | · apply mul_le_mul_of_nonneg_right _ (sq_nonneg _) |
| 175 | - nlinarith only [mul_nonneg (mul_nonneg (mul_nonneg hCM0 hchild) G.delta_nonneg) hgood] | |
| 175 | + linarith only [mul_nonneg (mul_nonneg (mul_nonneg hCM0 hchild) G.delta_nonneg) hgood] | |
| 176 | 176 | |
| 177 | 177 | end EulerParentPacketFrames.Evolution |
+1 −1 Euler/PacketForwardGlobalShear.lean View file
| @@ -52,7 +52,7 @@ theorem forwardInitializedPrimary_global_bound : | ||
| 52 | 52 | simp only [mul_one] at hb |
| 53 | 53 | have ha : S.H0^2 ≤ 3*S.H0^(2*1) := by |
| 54 | 54 | norm_num only [Nat.mul_one] |
| 55 | - nlinarith [sq_nonneg S.H0] | |
| 55 | + linarith [sq_nonneg S.H0] | |
| 56 | 56 | have hc := (hb.mono_amplitude (zero_le_one.trans L.radius_one) ha).fixed_velocity_grade |
| 57 | 57 | (n := 1) (zero_le_one.trans L.radius_one) S.H0_pos.le |
| 58 | 58 | exact (hc.changeTime hTime).of_raw_eq _ |
+2 −2 Euler/PacketForwardOutputCosts.lean View file
| @@ -66,14 +66,14 @@ theorem forward_output_costs (W H0 : ℝ) (hδ : 0 < δ) | ||
| 66 | 66 | have hm : Kc.M ≤ Z := hK.pressure |
| 67 | 67 | have hr : Kc.Rc ≤ Z := hK.radius |
| 68 | 68 | have hp := mul_le_mul hm hr Kc.Rc_nonneg hZ |
| 69 | - nlinarith only [hp,hRZ,hr] | |
| 69 | + linarith only [hp,hRZ,hr] | |
| 70 | 70 | have hρinv : ρ⁻¹ ≤ 4*inverseRadiusEnvelope Z := by |
| 71 | 71 | change (initialRadius R Kc.M Kc.Rc/4)⁻¹ ≤ _ |
| 72 | 72 | rw [inv_div,div_eq_mul_inv] |
| 73 | 73 | gcongr |
| 74 | 74 | have hiZ : 0 ≤ inverseRadiusEnvelope Z := by unfold inverseRadiusEnvelope; positivity |
| 75 | 75 | have hrf : physicalInputRadius (4*R) (4*R) ρ ≤ radiusEnvelope Z := by |
| 76 | - simp only [physicalInputRadius,max_self,liftedInputRadius] | |
| 76 | + simp only [physicalInputRadius,max_self] | |
| 77 | 77 | change 1+coordinateCost*(4*R+ρ⁻¹) ≤ 1+coordinateCost*(4*Z+4*inverseRadiusEnvelope Z) |
| 78 | 78 | have hc : 0 ≤ coordinateCost := norm_nonneg _ |
| 79 | 79 | gcongr |
+1 −1 Euler/PacketForwardPressureBudgets.lean View file
| @@ -166,7 +166,7 @@ theorem forwardInitializedPressureBudget_exists (p : ℕ) : | ||
| 166 | 166 | intro n |
| 167 | 167 | have hh := initialData_common_radius D δ hδ (α • ξ) hs standardDirection |
| 168 | 168 | (fun i => by cases i using Fin.cases <;> simp [Prod.norm_def]) 6 hδ1 L.R hR n |
| 169 | - simpa only [norm_smul,Real.norm_eq_abs,abs_of_pos hα,mul_assoc,mul_left_comm,mul_comm] using hh | |
| 169 | + simpa only [norm_smul,Real.norm_eq_abs,abs_of_pos hα,mul_assoc,mul_comm] using hh | |
| 170 | 170 | have hb := (L.primary_scalar_and_angular_grade_bound NB _ WP |
| 171 | 171 | (initialData D δ hδ (α • ξ) hs) α hα hYb).2 |
| 172 | 172 | have hb' := hb.normalized_changeTime D.T_pos.le (α • L.g) |
+1 −1 Euler/PacketForwardPressureRemainder.lean View file
| @@ -122,7 +122,7 @@ theorem forwardInitializedAngularPressure_bound : | ||
| 122 | 122 | simp only [mul_one] at hb |
| 123 | 123 | have ha : S.H0^2 ≤ 3*S.H0^(2*1) := by |
| 124 | 124 | norm_num only [Nat.mul_one] |
| 125 | - nlinarith [sq_nonneg S.H0] | |
| 125 | + linarith [sq_nonneg S.H0] | |
| 126 | 126 | have hc := (hb.mono_amplitude (zero_le_one.trans L.radius_one) ha).fixed_velocity_grade |
| 127 | 127 | (n := 1) (zero_le_one.trans L.radius_one) S.H0_pos.le |
| 128 | 128 | exact (hc.changeTime hTime).of_raw_eq _ |
+2 −2 Euler/PacketForwardPrimaryBounds.lean View file
| @@ -89,7 +89,7 @@ theorem forwardPrimary_profile_budget (O : Operators) (hcorrector : O.curlCorrec | ||
| 89 | 89 | apply L.primary_profile_budget N _ W (initialData D δ hδ (α • ξ) hs) α hα _ O hcorrector S hgrowth |
| 90 | 90 | intro n |
| 91 | 91 | have hh := initialData_common_radius D δ hδ (α • ξ) hs standardDirection |
| 92 | - (fun i => by cases i using Fin.cases <;> simp [Prod.norm_def]) 6 hδ1 L.R hR n | |
| 93 | - simpa only [norm_smul,Real.norm_eq_abs,abs_of_pos hα,mul_assoc,mul_left_comm,mul_comm] using hh | |
| 92 | + (fun i => by cases i using Fin.cases <;> simp) 6 hδ1 L.R hR n | |
| 93 | + simpa only [norm_smul,Real.norm_eq_abs,abs_of_pos hα,mul_assoc,mul_comm] using hh | |
| 94 | 94 | |
| 95 | 95 | end EulerPacketTerminalDatum |
+3 −3 Euler/PacketForwardRadiusPolynomial.lean View file
| @@ -55,7 +55,7 @@ theorem source_radius_le (T R C C1 Cp W : ℝ) (hW : 1 ≤ W) | ||
| 55 | 55 | _ ≤ 1+16*V+16*(4*V)+2*forwardEnvelope V*(16*(4*V)+1) := by gcongr |
| 56 | 56 | _ ≤ sourceRadiusEnvelope W := by |
| 57 | 57 | change _ ≤ 1+V+6*weakEnvelope V*(16*V+1)+64*V+2*forwardEnvelope V*(64*V+1) |
| 58 | - nlinarith only [hV0,mul_nonneg (sub_nonneg.mpr hw1) (by positivity : 0 ≤ 16*V+1)] | |
| 58 | + linarith only [hV0,mul_nonneg (sub_nonneg.mpr hw1) (by positivity : 0 ≤ 16*V+1)] | |
| 59 | 59 | |
| 60 | 60 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 61 | 61 | {D : Data U} (L : EulerTransversePacketForward.Budget D (Fin 4) 6) |
| @@ -78,7 +78,7 @@ theorem common_le (W : ℝ) (hW : 0 ≤ W) (hR : L.Rc ≤ W) | ||
| 78 | 78 | _ ≤ 3*coeff W W+physicalEnvelope W := add_le_add (by gcongr) hp |
| 79 | 79 | _ ≤ commonEnvelope W := by |
| 80 | 80 | unfold commonEnvelope |
| 81 | - nlinarith only [ha,mul_nonneg ha (by positivity : 0 ≤ 2*W+2)] | |
| 81 | + linarith only [ha,mul_nonneg ha (by positivity : 0 ≤ 2*W+2)] | |
| 82 | 82 | |
| 83 | 83 | theorem grade_sum_le (N : EulerTransversePacketJoin.NormalBudget D 6 L.R) |
| 84 | 84 | (W : ℝ) (hW : 0 ≤ W) (hNR : N.Rc ≤ W) (hNC : N.C ≤ W) (hNI : N.Ri ≤ W) |
| @@ -183,6 +183,6 @@ theorem canonicalRadius_le_envelope (W : ℝ) (hδ : 0 < δ) | ||
| 183 | 183 | rw [coefficientRadius_eq] |
| 184 | 184 | have hb : 16*BC.Rc ≤ 16*W := by gcongr; exact H.coefficient_radius |
| 185 | 185 | unfold radiusEnvelope |
| 186 | - nlinarith only [H.original_mean,H.original_forward,H.coefficient_cost,hb,hm,hg1,hgT,hextra,hreq,hjW] | |
| 186 | + linarith only [H.original_mean,H.original_forward,H.coefficient_cost,hb,hm,hg1,hgT,hextra,hreq,hjW] | |
| 187 | 187 | |
| 188 | 188 | end EulerPacketForwardRadius |
+2 −2 Euler/PacketForwardScalarPressureGrade.lean View file
| @@ -49,7 +49,7 @@ theorem scalar_grade_bound_pred (C : ℝ) (W : GradeGuards (P := P) L N C) | ||
| 49 | 49 | 6 L.R ((L.pressureAmplitude (P := P) N*C)*c) (d+1) := by |
| 50 | 50 | apply scalarEmbeddingField_normalized_bound _ _ _ _ D.T_pos.le L.g L.positive |
| 51 | 51 | intro n |
| 52 | - simpa only [mul_assoc,mul_left_comm,mul_comm] using | |
| 52 | + simpa only [mul_assoc,mul_left_comm] using | |
| 53 | 53 | L.pressure_bound N G I (c*C) (mul_nonneg hc.le W.data_nonneg) d hforce hinitial n |
| 54 | 54 | have hnonneg := mul_nonneg (L.pressureAmplitude_nonneg (P := P) N) W.data_nonneg |
| 55 | 55 | have hcost : L.pressureAmplitude (P := P) N*C ≤ L.R := by |
| @@ -70,7 +70,7 @@ theorem angular_grade_bound (C : ℝ) (W : GradeGuards (P := P) L N C) | ||
| 70 | 70 | (c • L.g) (smul_profile_pos L.g L.positive c hc) |
| 71 | 71 | D.m₀ D.m₀_unit.le (zero_le_one.trans L.radius_one) zero_le_one |
| 72 | 72 | (L.scalar_grade_bound_pred N C W G I c hc d e hroom hforce hinitial) |
| 73 | - simpa only [angularField,Field.WordBound,Field.normalized_path, | |
| 73 | + simpa only [angularField,Field.normalized_path, | |
| 74 | 74 | show e-1+1=e by omega] using hh |
| 75 | 75 | |
| 76 | 76 | theorem scalar_grade_bound (C : ℝ) (W : GradeGuards (P := P) L N C) |
+1 −1 Euler/PacketFrameCoefficients.lean View file
| @@ -117,7 +117,7 @@ theorem frameMatrixRate_abs_le (B B₁ : Space →L[ℝ] Space) (p q : Space) | ||
| 117 | 117 | have h5 := abs_add_le ⟪frameRate B p q i,B (frame p q j)⟫_ℝ |
| 118 | 118 | ⟪frame p q i,B₁ (frame p q j)+B (frameRate B p q j)⟫_ℝ |
| 119 | 119 | unfold frameMatrixRate |
| 120 | - nlinarith only [h1, h2, h3, h4, h5, hB₁j, hBr] | |
| 120 | + linarith only [h1, h2, h3, h4, h5, hB₁j, hBr] | |
| 121 | 121 | |
| 122 | 122 | def primaryShear (c : ℝ) (m v : ℝ → Space) (t : ℝ) : ℝ := c*(‖m t‖*‖v t‖) |
| 123 | 123 | |
+1 −1 Euler/PacketGeometryAssembly.lean View file
| @@ -200,7 +200,7 @@ theorem PhysicalGeometryData.exists_geometry {α : Type*} (D : PhysicalGeometryD | ||
| 200 | 200 | (hτ.2.trans D.horizon_le_Theta) D.small (fun t _ => hZ t) (fun t _ => hfluxZ t) hZ0 hZ₁pos |
| 201 | 201 | hp.1 hp.2.1 hp.2.2 hv.2.2 (D.action_error ξ (hsub hτ))).2 |
| 202 | 202 | · have hn := add_le_add (D.B_bound _ htframes) (D.E_bound D.center _ htframes) |
| 203 | - exact hcomp.1.trans (by nlinarith only [hn]) | |
| 203 | + exact hcomp.1.trans (by linarith only [hn]) | |
| 204 | 204 | · apply csSup_le |
| 205 | 205 | · exact ⟨D.amplitude*Z 0, 0, ⟨le_rfl, D.horizon_pos.le⟩, rfl⟩ |
| 206 | 206 | · rintro _ ⟨τ, hτ, rfl⟩ |
+13 −13 Euler/PacketGeometryGuards.lean View file
| @@ -34,14 +34,14 @@ theorem target_le_Theta : D.target ≤ D.Θ := D.target_le_horizon.trans D.horiz | ||
| 34 | 34 | |
| 35 | 35 | theorem sigma_Theta : 1 ≤ D.σ*D.Θ := by |
| 36 | 36 | have h := (div_le_iff₀ D.sigma_pos).mp (D.target_from_sigma.trans D.target_le_Theta) |
| 37 | - nlinarith only [h] | |
| 37 | + linarith only [h] | |
| 38 | 38 | |
| 39 | 39 | theorem target_scale : 1 ≤ D.σ^2*D.target^2 := by |
| 40 | 40 | have h : 1 ≤ D.σ*D.target := by |
| 41 | 41 | have hh := (div_le_iff₀ D.sigma_pos).mp D.target_from_sigma |
| 42 | - nlinarith only [hh] | |
| 42 | + linarith only [hh] | |
| 43 | 43 | have hh := mul_le_mul h h (by norm_num : (0:ℝ) ≤ 1) (by positivity : 0 ≤ D.σ*D.target) |
| 44 | - nlinarith only [hh] | |
| 44 | + linarith only [hh] | |
| 45 | 45 | |
| 46 | 46 | theorem time_mem {τ : ℝ} (hτ : τ ∈ Icc 0 D.H) : D.time τ ∈ D.S := |
| 47 | 47 | D.time_maps ⟨hτ.1, hτ.2.trans D.horizon_le_Theta⟩ |
| @@ -56,18 +56,18 @@ theorem error_le_half : D.error ≤ 1/2 := by | ||
| 56 | 56 | have hs := D.small |
| 57 | 57 | change 1000000*neighborStabilityConstant*D.error*D.Θ^40 ≤ 1 at hs |
| 58 | 58 | norm_num only [pow_zero, mul_one] at hp |
| 59 | - nlinarith only [hp, hs] | |
| 59 | + linarith only [hp, hs] | |
| 60 | 60 | |
| 61 | 61 | theorem error_le_one : D.error ≤ 1 := D.error_le_half.trans (by norm_num) |
| 62 | 62 | |
| 63 | 63 | theorem epsilon_le_error : D.ε ≤ D.error := by |
| 64 | - have hg : 1 ≤ (4*D.G)^2 := by nlinarith only [D.G_lower, sq_nonneg (D.G-1)] | |
| 64 | + have hg : 1 ≤ (4*D.G)^2 := by linarith only [D.G_lower, sq_nonneg (D.G-1)] | |
| 65 | 65 | have hc : 1 ≤ D.Θ*(4*D.G)^2 := by |
| 66 | 66 | simpa only [one_mul] using mul_le_mul D.Theta_lower hg |
| 67 | 67 | (by norm_num : (0:ℝ) ≤ 1) D.Theta_pos.le |
| 68 | 68 | have hh := mul_le_mul_of_nonneg_left hc D.epsilon_pos.le |
| 69 | 69 | unfold error |
| 70 | - nlinarith only [hh, D.d_nonneg, D.epsilon_pos] | |
| 70 | + linarith only [hh, D.d_nonneg, D.epsilon_pos] | |
| 71 | 71 | |
| 72 | 72 | theorem epsilon_le_one : D.ε ≤ 1 := D.epsilon_le_error.trans D.error_le_one |
| 73 | 73 | |
| @@ -77,7 +77,7 @@ theorem ray_error_small : 800*D.error*D.Θ^5 ≤ 1/2 := by | ||
| 77 | 77 | (by decide : 5 ≤ 40) |
| 78 | 78 | have hs := D.small |
| 79 | 79 | change 1000000*neighborStabilityConstant*D.error*D.Θ^40 ≤ 1 at hs |
| 80 | - nlinarith only [hp, hs] | |
| 80 | + linarith only [hp, hs] | |
| 81 | 81 | |
| 82 | 82 | theorem relative_error_small : neighborStabilityConstant*D.error*D.Θ^29 ≤ 1/2 := by |
| 83 | 83 | have hK : 0 ≤ neighborStabilityConstant := (by norm_num : (0:ℝ) ≤ 1000000000).trans neighborStabilityConstant_ge |
| @@ -85,7 +85,7 @@ theorem relative_error_small : neighborStabilityConstant*D.error*D.Θ^29 ≤ 1/2 | ||
| 85 | 85 | (mul_nonneg hK D.error_nonneg) |
| 86 | 86 | have hs := D.small |
| 87 | 87 | change 1000000*neighborStabilityConstant*D.error*D.Θ^40 ≤ 1 at hs |
| 88 | - nlinarith only [hp, hs] | |
| 88 | + linarith only [hp, hs] | |
| 89 | 89 | |
| 90 | 90 | theorem scalar_error_small : 4*exp 6*(400000000*D.error*D.Θ^29) ≤ 1 := by |
| 91 | 91 | have hr := D.relative_error_small |
| @@ -96,7 +96,7 @@ theorem scalar_error_small : 4*exp 6*(400000000*D.error*D.Θ^29) ≤ 1 := by | ||
| 96 | 96 | have hs := D.small |
| 97 | 97 | change 1000000*neighborStabilityConstant*D.error*D.Θ^40 ≤ 1 at hs |
| 98 | 98 | unfold neighborStabilityConstant at hp hs hr |
| 99 | - nlinarith only [hp, hs, hr] | |
| 99 | + linarith only [hp, hs, hr] | |
| 100 | 100 | |
| 101 | 101 | theorem propagator_small : 8000000*D.error*D.Θ^21 ≤ 1 := by |
| 102 | 102 | have hp := mul_le_mul_of_nonneg_left (pow_le_pow_right₀ D.Theta_lower (by decide : 21 ≤ 40)) D.error_nonneg |
| @@ -104,7 +104,7 @@ theorem propagator_small : 8000000*D.error*D.Θ^21 ≤ 1 := by | ||
| 104 | 104 | have hmul := mul_nonneg hk (mul_nonneg D.error_nonneg (pow_nonneg D.Theta_pos.le 40)) |
| 105 | 105 | have hs := D.small |
| 106 | 106 | change 1000000*neighborStabilityConstant*D.error*D.Θ^40 ≤ 1 at hs |
| 107 | - nlinarith only [hp, hmul, hs] | |
| 107 | + linarith only [hp, hmul, hs] | |
| 108 | 108 | |
| 109 | 109 | theorem action_error (ξ : α) {τ : ℝ} (hτ : τ ∈ Icc 0 D.H) : |
| 110 | 110 | ∀ i j, |scaledAction (D.M ξ (D.time τ)) D.m D.v D.a D.ε (D.time τ) i j- |
| @@ -126,7 +126,7 @@ theorem target_shear_lower : D.a/(2*D.ε^2) ≤ D.targetShear := by | ||
| 126 | 126 | linarith only [hb, D.error_le_half] |
| 127 | 127 | have hmul := (le_div_iff₀ D.a_pos).mp hratio |
| 128 | 128 | apply (div_le_iff₀ (show 0 < 2*D.ε^2 by positivity [D.epsilon_pos])).mpr |
| 129 | - nlinarith only [hmul] | |
| 129 | + linarith only [hmul] | |
| 130 | 130 | |
| 131 | 131 | theorem target_shear_pos : 0 < D.targetShear := |
| 132 | 132 | lt_of_lt_of_le (by positivity [D.a_pos, D.epsilon_pos]) D.target_shear_lower |
| @@ -140,11 +140,11 @@ theorem compression_domination : | ||
| 140 | 140 | field_simp [ne_of_gt D.epsilon_pos] |
| 141 | 141 | rw [heq] at hlower |
| 142 | 142 | have hsmall : 30*(D.G+D.d)*D.target < D.a/(2*D.ε) := |
| 143 | - (lt_div_iff₀ (show 0 < 2*D.ε by positivity [D.epsilon_pos])).mpr (by nlinarith only [hguard]) | |
| 143 | + (lt_div_iff₀ (show 0 < 2*D.ε by positivity [D.epsilon_pos])).mpr (by linarith only [hguard]) | |
| 144 | 144 | have hnorm := add_le_add (D.B_bound _ D.target_time_mem) (D.E_bound D.center _ D.target_time_mem) |
| 145 | 145 | have hm := mul_le_mul_of_nonneg_right hnorm (show 0 ≤ 30*D.target by positivity [D.target_pos]) |
| 146 | 146 | have hfirst : 30*(‖D.B D.targetTime‖+‖D.E D.center D.targetTime‖)*D.target ≤ |
| 147 | - 30*(D.G+D.d)*D.target := by nlinarith only [hm] | |
| 147 | + 30*(D.G+D.d)*D.target := by linarith only [hm] | |
| 148 | 148 | exact hfirst.trans_lt (hsmall.trans_le hlower) |
| 149 | 149 | |
| 150 | 150 | end EulerPacketMovingFrame.PhysicalGeometryData |
+1 −1 Euler/PacketGeometryInitialAmplitude.lean View file
| @@ -30,7 +30,7 @@ theorem horizon_le_cost (H ε : ℝ) (hH : 1 ≤ H) (hε : 0 < ε) (hε1 : ε | ||
| 30 | 30 | have hp : H ≤ H^10 := by simpa only [pow_one] using pow_le_pow_right₀ hH (by norm_num : 1 ≤ 10) |
| 31 | 31 | apply (le_div_iff₀ hε).mpr |
| 32 | 32 | have hm : H*ε ≤ H := (mul_le_mul_of_nonneg_left hε1 (zero_le_one.trans hH)).trans_eq (mul_one _) |
| 33 | - nlinarith only [hp,hm,pow_nonneg (zero_le_one.trans hH) 10] | |
| 33 | + linarith only [hp,hm,pow_nonneg (zero_le_one.trans hH) 10] | |
| 34 | 34 | |
| 35 | 35 | end EulerPacketInitialAmplitude |
| 36 | 36 | |
+2 −2 Euler/PacketGeometryPressureCosts.lean View file
| @@ -38,7 +38,7 @@ theorem joined_bad_pressure_cost_bound : | ||
| 38 | 38 | have hx := quadratic_growth_one_le J (by omega) (scaleSequence J X) hX (scaleSequence_succ J X) |
| 39 | 39 | have hs : 1 ≤ P.shear := by |
| 40 | 40 | have hh := mul_le_mul_of_nonneg_left hτ1 A.shear_pos.le |
| 41 | - nlinarith only [hh,A.history_layer] | |
| 41 | + linarith only [hh,A.history_layer] | |
| 42 | 42 | have hi : P.shear⁻¹ ≤ 1 := (inv_le_one₀ A.shear_pos).2 hs |
| 43 | 43 | have hQ := parameters_le_source_exponential J D hJ X c hX hc hbaseH hbaseK n |
| 44 | 44 | L.K Ti P.shear⁻¹ A.CM A.CH CMn CHn hK hTib hi hCMb hCHb hCMn hCHn |
| @@ -107,7 +107,7 @@ theorem bad_pressure_cost_bound : | ||
| 107 | 107 | have hz : 0 ≤ c*(scaleSequence J X n/((J-1+n : ℕ) : ℝ)^4) := by positivity [hx n] |
| 108 | 108 | have he := one_le_exp hz |
| 109 | 109 | have hQ : 1 ≤ (4+CMn+CHn)*exp (c*(scaleSequence J X n/((J-1+n : ℕ) : ℝ)^4)) := by |
| 110 | - nlinarith only [he,mul_nonneg hCMn (zero_le_one.trans he),mul_nonneg hCHn (zero_le_one.trans he)] | |
| 110 | + linarith only [he,mul_nonneg hCMn (zero_le_one.trans he),mul_nonneg hCHn (zero_le_one.trans he)] | |
| 111 | 111 | have hM' := hMb.trans (mul_le_mul_of_nonneg_left |
| 112 | 112 | (previousShear_le_normal J (by omega) X hbaseH n) hCM) |
| 113 | 113 | exact badCost_bound J hJ Cθ CM CMn CHn c hCθ hCM hCMn hCHn (scaleSequence J X) hx n |
+4 −4 Euler/PacketGraphFlowExplicitBounds.lean View file
| @@ -108,14 +108,14 @@ theorem data_sup_bounds_explicit (G : Data P T) (k : ℝ) | ||
| 108 | 108 | have hg0 := graphFactor_nonneg k m |
| 109 | 109 | have hdisp : G.B*T ≤ k^(-(1/4 : ℝ)) := by |
| 110 | 110 | apply (show G.B*T ≤ T*G.B*(1+flowRadius G.B G.R T G.R) by |
| 111 | - nlinarith [mul_nonneg (mul_nonneg hB0 hT0) hf0]).trans | |
| 111 | + linarith [mul_nonneg (mul_nonneg hB0 hT0) hf0]).trans | |
| 112 | 112 | simpa only [one_mul] using hn.1 |
| 113 | 113 | have hvel : G.B ≤ k^(-(1/4 : ℝ)) := by |
| 114 | - apply (show G.B ≤ G.B*(1+flowRadius G.B G.R T G.R) by nlinarith [mul_nonneg hB0 hf0]).trans | |
| 114 | + apply (show G.B ≤ G.B*(1+flowRadius G.B G.R T G.R) by linarith [mul_nonneg hB0 hf0]).trans | |
| 115 | 115 | simpa only [one_mul] using hn.2.1 |
| 116 | 116 | have hRflow : G.R ≤ flowRadius G.B G.R T G.R := by |
| 117 | 117 | have hleft : (1 : ℝ) ≤ 4*G.R+1 := by linarith |
| 118 | - have hright : G.R ≤ (1+G.B*T)*G.R+2 := by nlinarith [mul_nonneg (mul_nonneg hB0 hT0) hR0] | |
| 118 | + have hright : G.R ≤ (1+G.B*T)*G.R+2 := by linarith [mul_nonneg (mul_nonneg hB0 hT0) hR0] | |
| 119 | 119 | have h := mul_le_mul hleft hright hR0 (by positivity : 0 ≤ 4*G.R+1) |
| 120 | 120 | simpa only [one_mul,flowRadius] using h |
| 121 | 121 | constructor |
| @@ -127,6 +127,6 @@ theorem data_sup_bounds_explicit (G : Data P T) (k : ℝ) | ||
| 127 | 127 | rw [hgf] |
| 128 | 128 | apply le_trans _ hrad |
| 129 | 129 | gcongr |
| 130 | - nlinarith | |
| 130 | + linarith | |
| 131 | 131 | |
| 132 | 132 | end EulerPhysicalGraphFlowBounds |
+8 −8 Euler/PacketGraphFlowFrequency.lean View file
| @@ -20,19 +20,19 @@ private theorem flow_radius_polynomial (B R T w : ℝ) | ||
| 20 | 20 | have hleft : 4*R+1 ≤ 5*w := by linarith |
| 21 | 21 | have hright : (1+B*T)*(6*R)+2 ≤ 14*w := by |
| 22 | 22 | have h := mul_le_mul_of_nonneg_right (show 1+B*T ≤ 2 by linarith) (by positivity : 0 ≤ 6*R) |
| 23 | - nlinarith | |
| 23 | + linarith | |
| 24 | 24 | have hlarge : flowRadius B R T (6*R) ≤ 70*w^2 := by |
| 25 | 25 | have h := mul_le_mul hleft hright (by positivity : 0 ≤ (1+B*T)*(6*R)+2) (by positivity : 0 ≤ 5*w) |
| 26 | 26 | simpa only [flowRadius] using h.trans_eq (by ring) |
| 27 | 27 | have hsmallR : flowRadius B R T R ≤ flowRadius B R T (6*R) := by |
| 28 | 28 | unfold flowRadius |
| 29 | 29 | gcongr |
| 30 | - nlinarith | |
| 30 | + linarith | |
| 31 | 31 | have hsq : 1 ≤ w^2 := by nlinarith |
| 32 | 32 | have h71 : 71*w^2 ≤ w^3 := by |
| 33 | 33 | have h := mul_le_mul_of_nonneg_right hw (sq_nonneg w) |
| 34 | - nlinarith | |
| 35 | - have hb : 1+flowRadius B R T (6*R) ≤ w^3 := by nlinarith | |
| 34 | + linarith | |
| 35 | + have hb : 1+flowRadius B R T (6*R) ≤ w^3 := by linarith | |
| 36 | 36 | exact ⟨(add_le_add le_rfl hsmallR).trans hb,hb⟩ |
| 37 | 37 | |
| 38 | 38 | private theorem physical_polynomial_bounds (K B R T C1 k ell w : ℝ) |
| @@ -48,7 +48,7 @@ private theorem physical_polynomial_bounds (K B R T C1 k ell w : ℝ) | ||
| 48 | 48 | have hw0 : 0 ≤ w := by linarith |
| 49 | 49 | have hB1 : B ≤ 1 := by |
| 50 | 50 | have h := mul_le_mul_of_nonneg_left (show 1 ≤ w by linarith) hB |
| 51 | - nlinarith | |
| 51 | + linarith | |
| 52 | 52 | have hBT : 0 ≤ T*B := mul_nonneg hT hB |
| 53 | 53 | obtain ⟨hv,ha⟩ := flow_radius_polynomial B R T w hB hR hT hw hRw hTw hsmall |
| 54 | 54 | have hVr : 0 ≤ flowRadius B R T R := by unfold flowRadius; positivity |
| @@ -65,7 +65,7 @@ private theorem physical_polynomial_bounds (K B R T C1 k ell w : ℝ) | ||
| 65 | 65 | have hb2 : B^2 ≤ 1 := by nlinarith |
| 66 | 66 | have hac : C1+3*B^2*R ≤ 4*w := by |
| 67 | 67 | have h := mul_le_mul_of_nonneg_right hb2 hR |
| 68 | - nlinarith | |
| 68 | + linarith | |
| 69 | 69 | have hab : K*(C1+3*B^2*R)*(1+flowRadius B R T (6*R)) ≤ w^6 := by |
| 70 | 70 | calc |
| 71 | 71 | _ ≤ w*(4*w)*w^3 := by gcongr |
| @@ -112,7 +112,7 @@ theorem physical_bounds_of_power (ε η K k B R T C1 ell : ℝ) | ||
| 112 | 112 | hK hB hR hT hC1 hk hell hw hKw hRw hTw hCw hBw |
| 113 | 113 | have h6 : (k^η)^6 ≤ k^ε := by |
| 114 | 114 | rw [← Real.rpow_mul_natCast hk0.le] |
| 115 | - exact Real.rpow_le_rpow_of_exponent_le hk (by norm_num; nlinarith) | |
| 115 | + exact Real.rpow_le_rpow_of_exponent_le hk (by norm_num; linarith) | |
| 116 | 116 | have hdisp : B*(k^η)^5 ≤ k^(-(1/2 : ℝ)+ε) := by |
| 117 | 117 | calc |
| 118 | 118 | _ ≤ (2*k^(-(1/2 : ℝ)))*(k^η)^5 := |
| @@ -124,7 +124,7 @@ theorem physical_bounds_of_power (ε η K k B R T C1 ell : ℝ) | ||
| 124 | 124 | have hrad : ell⁻¹*k*(k^η)^4 ≤ ell⁻¹*k^(1+ε) := by |
| 125 | 125 | have h4 : (k^η)^4 ≤ k^ε := by |
| 126 | 126 | rw [← Real.rpow_mul_natCast hk0.le] |
| 127 | - exact Real.rpow_le_rpow_of_exponent_le hk (by norm_num; nlinarith) | |
| 127 | + exact Real.rpow_le_rpow_of_exponent_le hk (by norm_num; linarith) | |
| 128 | 128 | calc |
| 129 | 129 | _ ≤ ell⁻¹*k*k^ε := mul_le_mul_of_nonneg_left h4 (by positivity) |
| 130 | 130 | _ = ell⁻¹*(k^(1 : ℝ)*k^ε) := by rw [Real.rpow_one]; ring |
+1 −1 Euler/PacketGraphFlowSupBounds.lean View file
| @@ -15,7 +15,7 @@ open Set Filter EulerLiftedGradientSpace EulerSmoothFlowGevrey | ||
| 15 | 15 | private theorem radius_le_flowRadius (B R T : ℝ) (hB : 0 ≤ B) (hR : 0 ≤ R) (hT : 0 ≤ T) : |
| 16 | 16 | R ≤ flowRadius B R T R := by |
| 17 | 17 | have h₁ : (1 : ℝ) ≤ 4*R+1 := by linarith |
| 18 | - have h₂ : R ≤ (1+B*T)*R+2 := by nlinarith [mul_nonneg (mul_nonneg hB hT) hR] | |
| 18 | + have h₂ : R ≤ (1+B*T)*R+2 := by linarith [mul_nonneg (mul_nonneg hB hT) hR] | |
| 19 | 19 | have h := mul_le_mul h₁ h₂ hR (by positivity : 0 ≤ 4*R+1) |
| 20 | 20 | simpa only [one_mul,flowRadius] using h |
| 21 | 21 | |
+6 −6 Euler/PacketHorizonSize.lean View file
| @@ -25,7 +25,7 @@ theorem equation30_short_size_comparison {σ s t : ℝ} {Z Z₁ : ℝ → ℝ} | ||
| 25 | 25 | have hzpos := equation30_global_positive hσ hσsmall hZ hfluxZ hZ0 hZ₁0 |
| 26 | 26 | have hW (x : ℝ) (hx : 0 ≤ x) : HasDerivAt W (W₁ x) x := by |
| 27 | 27 | convert! (((((hasDerivAt_id x).pow 2).const_mul (σ^2)).const_add 1).mul (hZ x hx)) using 1 |
| 28 | - dsimp [W₁] | |
| 28 | + dsimp | |
| 29 | 29 | ring |
| 30 | 30 | have hWpos (x : ℝ) (hx : 0 ≤ x) : 0 < W x := mul_pos (by positivity) (hzpos x hx) |
| 31 | 31 | have hderivBound (x : ℝ) (hx : 1 ≤ x) : |W₁ x| ≤ 6*W x := by |
| @@ -39,8 +39,8 @@ theorem equation30_short_size_comparison {σ s t : ℝ} {Z Z₁ : ℝ → ℝ} | ||
| 39 | 39 | have hh := mul_le_mul_of_nonneg_left hlog (show 0 ≤ 1+σ^2*x^2 by positivity) |
| 40 | 40 | have hx2 : x ≤ x^2 := by nlinarith only [hx] |
| 41 | 41 | have hcoef := mul_le_mul_of_nonneg_right hx2 (show 0 ≤ 2*σ^2*Z x by positivity) |
| 42 | - dsimp [W₁, W] | |
| 43 | - nlinarith only [ht, hh, hcoef, hzx] | |
| 42 | + dsimp [W] | |
| 43 | + linarith only [ht, hh, hcoef, hzx] | |
| 44 | 44 | have hcont : ContinuousOn W (Icc s t) := fun x hx => |
| 45 | 45 | (hW x (by linarith only [hs, hx.1])).continuousAt.continuousWithinAt |
| 46 | 46 | have hright : ∀ x ∈ Ico s t, HasDerivWithinAt W (W₁ x) (Ici x) x := |
| @@ -64,7 +64,7 @@ theorem equation30_short_size_comparison {σ s t : ℝ} {Z Z₁ : ℝ → ℝ} | ||
| 64 | 64 | have hrightExp := mul_le_mul_of_nonneg_right hright' (exp_pos (6:ℝ)).le |
| 65 | 65 | dsimp [W] at hgrowth |
| 66 | 66 | dsimp [idealPrimarySize] |
| 67 | - nlinarith only [hleft, hgrowth, hrightExp] | |
| 67 | + linarith only [hleft, hgrowth, hrightExp] | |
| 68 | 68 | |
| 69 | 69 | theorem equation30_horizon_size_comparison {σ T H τ : ℝ} {Z Z₁ : ℝ → ℝ} |
| 70 | 70 | (hσ : 0 < σ) (hσsmall : σ ≤ 1/4) |
| @@ -80,7 +80,7 @@ theorem equation30_horizon_size_comparison {σ T H τ : ℝ} {Z Z₁ : ℝ → | ||
| 80 | 80 | (equation30_global_positive hσ hσsmall hZ hfluxZ hZ0 hZ₁0 T (by linarith only [hT])).le |
| 81 | 81 | have he : 1 ≤ exp (6:ℝ) := one_le_exp_iff.mpr (by norm_num) |
| 82 | 82 | have hh := mul_le_mul_of_nonneg_right he hpos |
| 83 | - nlinarith only [hbound, hh] | |
| 83 | + linarith only [hbound, hh] | |
| 84 | 84 | · exact equation30_short_size_comparison hσ hσsmall hZ hfluxZ hZ0 hZ₁0 hT |
| 85 | 85 | (le_of_not_ge hpre) (by linarith only [hshort, hτH]) |
| 86 | 86 | |
| @@ -126,6 +126,6 @@ theorem physical_horizon_size_bound {α : Type*} (center : α) | ||
| 126 | 126 | (by linarith only [hτ.1] : 0 ≤ τ) hτ.2 |
| 127 | 127 | have hh := mul_le_mul_of_nonneg_left hideal hs₀.le |
| 128 | 128 | have ht := mul_le_mul_of_nonneg_left htarget (exp_pos (6:ℝ)).le |
| 129 | - nlinarith only [ht, hcurrent, hh] | |
| 129 | + linarith only [ht, hcurrent, hh] | |
| 130 | 130 | |
| 131 | 131 | end EulerPacketMovingFrame |
+9 −9 Euler/PacketIdealSize.lean View file
| @@ -18,8 +18,8 @@ def idealPrimarySize (σ : ℝ) (Z : ℝ → ℝ) (t : ℝ) : ℝ := | ||
| 18 | 18 | theorem quadratic_weight_sqrt {p : ℝ} (hp : 0 ≤ p) : |
| 19 | 19 | Real.sqrt (1+p^2) ≤ 1+p ∧ 1+p ≤ 2*Real.sqrt (1+p^2) := by |
| 20 | 20 | constructor |
| 21 | - · exact Real.sqrt_le_iff.mpr ⟨by positivity, by nlinarith only [hp]⟩ | |
| 22 | - · have h1 : 1 ≤ Real.sqrt (1+p^2) := Real.one_le_sqrt.mpr (by nlinarith [sq_nonneg p]) | |
| 21 | + · exact Real.sqrt_le_iff.mpr ⟨by positivity, by linarith only [hp]⟩ | |
| 22 | + · have h1 : 1 ≤ Real.sqrt (1+p^2) := Real.one_le_sqrt.mpr (by linarith [sq_nonneg p]) | |
| 23 | 23 | have hp' : p ≤ Real.sqrt (1+p^2) := Real.le_sqrt_of_sq_le (by linarith) |
| 24 | 24 | linarith only [h1, hp'] |
| 25 | 25 | |
| @@ -40,7 +40,7 @@ theorem equation30_polynomial_size_monotone {σ : ℝ} {Z Z₁ : ℝ → ℝ} | ||
| 40 | 40 | have hz := hpre ⟨hs, hst.trans ht⟩ ⟨ht0, ht⟩ hst |
| 41 | 41 | have hpow : s^2 ≤ t^2 := (sq_le_sq₀ hs ht0).mpr hst |
| 42 | 42 | have hcoef : 1+σ^2*s^2 ≤ 1+σ^2*t^2 := by |
| 43 | - nlinarith only [mul_le_mul_of_nonneg_left hpow (sq_nonneg σ)] | |
| 43 | + linarith only [mul_le_mul_of_nonneg_left hpow (sq_nonneg σ)] | |
| 44 | 44 | exact (mul_le_mul_of_nonneg_left hz (by positivity)).trans |
| 45 | 45 | (mul_le_mul_of_nonneg_right hcoef (hpos t ht0).le) |
| 46 | 46 | have hpostW : ∀ s t, 1/σ ≤ s → s ≤ t → (1+σ^2*s^2)*Z s ≤ (1+σ^2*t^2)*Z t := by |
| @@ -49,17 +49,17 @@ theorem equation30_polynomial_size_monotone {σ : ℝ} {Z Z₁ : ℝ → ℝ} | ||
| 49 | 49 | have ht := hs.trans hst |
| 50 | 50 | have ht0 := hs0.le.trans hst |
| 51 | 51 | have hz := hpost hs ht hst |
| 52 | - have hss : 1 ≤ σ*s := by have hh := (div_le_iff₀ hσ).mp hs; nlinarith only [hh] | |
| 53 | - have hst' : 1 ≤ σ*t := by have hh := (div_le_iff₀ hσ).mp ht; nlinarith only [hh] | |
| 52 | + have hss : 1 ≤ σ*s := by have hh := (div_le_iff₀ hσ).mp hs; linarith only [hh] | |
| 53 | + have hst' : 1 ≤ σ*t := by have hh := (div_le_iff₀ hσ).mp ht; linarith only [hh] | |
| 54 | 54 | have hproduct : 1 ≤ (σ*s)*(σ*t) := by |
| 55 | 55 | simpa only [one_mul] using mul_le_mul hss hst' zero_le_one (le_trans zero_le_one hss) |
| 56 | 56 | have hpositive : 0 ≤ (t-s)*(σ^2*s*t-1) := |
| 57 | - mul_nonneg (sub_nonneg.mpr hst) (by nlinarith only [hproduct]) | |
| 58 | - have hcoef : t*(1+σ^2*s^2) ≤ s*(1+σ^2*t^2) := by nlinarith only [hpositive] | |
| 57 | + mul_nonneg (sub_nonneg.mpr hst) (by linarith only [hproduct]) | |
| 58 | + have hcoef : t*(1+σ^2*s^2) ≤ s*(1+σ^2*t^2) := by linarith only [hpositive] | |
| 59 | 59 | have h1 := mul_le_mul_of_nonneg_left hz (show 0 ≤ 1+σ^2*s^2 by positivity) |
| 60 | 60 | have h2 := mul_le_mul_of_nonneg_right hcoef (hpos t ht0).le |
| 61 | 61 | apply (mul_le_mul_iff_right₀ hs0).mp |
| 62 | - nlinarith only [h1, h2] | |
| 62 | + linarith only [h1, h2] | |
| 63 | 63 | intro s hs t _ht hst |
| 64 | 64 | by_cases htpre : t ≤ 1/σ |
| 65 | 65 | · exact hpreW s t hs hst htpre |
| @@ -84,6 +84,6 @@ theorem equation30_ideal_size_comparison {σ s t : ℝ} {Z Z₁ : ℝ → ℝ} | ||
| 84 | 84 | have h1 := mul_le_mul_of_nonneg_right hws (hpos s hs).le |
| 85 | 85 | have h2 := mul_le_mul_of_nonneg_right hwt (hpos t (hs.trans hst)).le |
| 86 | 86 | unfold idealPrimarySize |
| 87 | - nlinarith only [h1, hmono, h2] | |
| 87 | + linarith only [h1, hmono, h2] | |
| 88 | 88 | |
| 89 | 89 | end EulerPacketMovingFrame |
+1 −1 Euler/PacketInductionScaleBounds.lean View file
| @@ -70,7 +70,7 @@ theorem olderShear_le (n : ℕ) : olderShear S.J S.X n ≤ previousShear S.J S.X | ||
| 70 | 70 | have hp := S.previousShear_one n |
| 71 | 71 | have hs := S.shear_separation n |
| 72 | 72 | change previousShear S.J S.X n ≤ shear S.J S.X n |
| 73 | - nlinarith only [hp,hs,sq_nonneg (previousShear S.J S.X n-1)] | |
| 73 | + linarith only [hp,hs,sq_nonneg (previousShear S.J S.X n-1)] | |
| 74 | 74 | |
| 75 | 75 | theorem frequency_cost (n : ℕ) : |
| 76 | 76 | (EulerNormalPacketParameters.frequencySpec 4).cost S.J (scaleSequence S.J S.X) n ≤ 1 := |
+2 −2 Euler/PacketInductionScales.lean View file
| @@ -141,12 +141,12 @@ theorem exists_scales (c B : ℝ) (hc : 0 ≤ c) : Nonempty (Scales c B) := by | ||
| 141 | 141 | have hδgeometry : 1000000*geometryConstant*δ ≤ 1 := by |
| 142 | 142 | have hg : 0 < 1000000*geometryConstant := by positivity [geometryConstant_one] |
| 143 | 143 | have hh := (le_div_iff₀ hg).mp (hδη.trans hηgeom) |
| 144 | - nlinarith only [hh] | |
| 144 | + linarith only [hh] | |
| 145 | 145 | have hδrenew : 2*(1+errorConstant frameConstant)*δ ≤ 1/4 := by |
| 146 | 146 | have hg : 0 < 8*(1+errorConstant frameConstant) := by |
| 147 | 147 | positivity [errorConstant_nonneg frameConstant] |
| 148 | 148 | have hh := (le_div_iff₀ hg).mp (hδη.trans hηrenew) |
| 149 | - nlinarith only [hh] | |
| 149 | + linarith only [hh] | |
| 150 | 150 | have hevent : ∀ᶠ X : ℝ in atTop, |
| 151 | 151 | X₀ ≤ X ∧ 48000 ≤ X ∧ FirstScaleGuards J D X ∧ |
| 152 | 152 | (∀ n, UniversalFrequency (frequency J X n)) ∧ |
+1 −1 Euler/PacketInductionStage.lean View file
| @@ -110,7 +110,7 @@ theorem normalized_sigma : P.frame.sigma*scaleSequence S.J S.X n ≤ 2 := by | ||
| 110 | 110 | have h := P.tilt_upper |
| 111 | 111 | have hx := S.sequence_one n |
| 112 | 112 | have hp := mul_nonneg P.sigma_nonneg (zero_le_one.trans hx) |
| 113 | - nlinarith only [h,hp,sq_nonneg (P.frame.sigma*scaleSequence S.J S.X n-1)] | |
| 113 | + linarith only [h,hp,sq_nonneg (P.frame.sigma*scaleSequence S.J S.X n-1)] | |
| 114 | 114 | |
| 115 | 115 | theorem strain_bound (t : Icc (0 : ℝ) P.parent.T) (x : Space) : |
| 116 | 116 | ‖P.parent.strain.field t x‖ ≤ gradientConstant*previousShear S.J S.X n := by |
+2 −2 Euler/PacketInitialBounds.lean View file
| @@ -108,7 +108,7 @@ theorem highGrade_bound (n : ℕ) : | ||
| 108 | 108 | have hp := mul_le_mul_of_nonneg_left (pow_le_pow_right₀ S.H0_one_le (by omega : 2*n ≤ 2*(n+1))) hγ |
| 109 | 109 | exact ((hf' (n+1)).add hh).mono_amplitude (zero_le_one.trans hR) (by |
| 110 | 110 | have := mul_nonneg hγ (pow_nonneg hH (2*(n+1))) |
| 111 | - nlinarith) | |
| 111 | + linarith) | |
| 112 | 112 | |
| 113 | 113 | theorem meanGrade_bound (n : ℕ) : |
| 114 | 114 | (meanGradeField G t n).WordBound 6 R (3*S.H0^(2*n)) (highShift n) := by |
| @@ -124,7 +124,7 @@ theorem meanGrade_bound (n : ℕ) : | ||
| 124 | 124 | apply h.mono_amplitude (zero_le_one.trans hR) |
| 125 | 125 | have hp := S.mean_le_coarse i t |
| 126 | 126 | have hH := pow_nonneg S.H0_pos.le (2*i) |
| 127 | - nlinarith | |
| 127 | + linarith | |
| 128 | 128 | |
| 129 | 129 | theorem high_bound (hN : 1 ≤ N) (C κ : ℝ) (hC : 1 ≤ C) (hκ : 0 ≤ κ) |
| 130 | 130 | (hsmall : κ*tailBase R S.H0 C N ≤ 1/2) : |
+2 −2 Euler/PacketInitialCostPolynomial.lean View file
| @@ -87,8 +87,8 @@ theorem costs_le_envelope (s : ℕ) (R H X : ℝ) (hR : 0 ≤ R) (hH : 0 ≤ H) | ||
| 87 | 87 | (physicalDerivativeCost_nonneg period (4*R) coordinateCost (by positivity) hc s) hm |
| 88 | 88 | unfold envelope |
| 89 | 89 | constructor |
| 90 | - · nlinarith only [hh,mul_nonneg hm hd] | |
| 91 | - · nlinarith only [hm',mul_nonneg hv hd] | |
| 90 | + · linarith only [hh,mul_nonneg hm hd] | |
| 91 | + · linarith only [hm',mul_nonneg hv hd] | |
| 92 | 92 | |
| 93 | 93 | def sourcePolynomial (s : ℕ) : Polynomial ℝ := |
| 94 | 94 | (polynomial s).comp ((1+Polynomial.X+EulerPacketRadiusPolynomial.radiusPolynomial+ |
+2 −2 Euler/PacketInitialScaleSummability.lean View file
| @@ -81,7 +81,7 @@ theorem high_summable (J : ℕ) (hJ : 2 ≤ J) (C c K : ℝ) | ||
| 81 | 81 | div_le_div_of_nonneg_left hx (by positivity) (pow_le_pow_right₀ hp (by decide)) |
| 82 | 82 | apply mul_le_mul_of_nonneg_left ?_ (by positivity) |
| 83 | 83 | apply exp_le_exp.mpr |
| 84 | - simp only [rpow_zero,div_one] | |
| 84 | + simp only [rpow_zero] | |
| 85 | 85 | nlinarith only [mul_le_mul_of_nonneg_left h1 (Nat.cast_nonneg m), |
| 86 | 86 | mul_le_mul_of_nonneg_left h2 (Nat.cast_nonneg m), |
| 87 | 87 | mul_le_mul_of_nonneg_left h3 (mul_nonneg (Nat.cast_nonneg N) hc)] |
| @@ -106,6 +106,6 @@ theorem mean_summable (J : ℕ) (hJ : 2 ≤ J) (C c K : ℝ) | ||
| 106 | 106 | apply mul_le_mul_of_nonneg_left ?_ (by positivity) |
| 107 | 107 | apply exp_le_exp.mpr |
| 108 | 108 | norm_num only [rpow_ofNat] |
| 109 | - nlinarith only [mul_le_mul_of_nonneg_left h1 (Nat.cast_nonneg m)] | |
| 109 | + linarith only [mul_le_mul_of_nonneg_left h1 (Nat.cast_nonneg m)] | |
| 110 | 110 | |
| 111 | 111 | end EulerPacketInitialScale |
+2 −2 Euler/PacketInitializedOutputCosts.lean View file
| @@ -103,14 +103,14 @@ theorem actual_output_costs (W H0 : ℝ) (hδ : 0 < δ) | ||
| 103 | 103 | have hm : Kc.M ≤ Z := hK.pressure |
| 104 | 104 | have hr : Kc.Rc ≤ Z := hK.radius |
| 105 | 105 | have hp := mul_le_mul hm hr Kc.Rc_nonneg hZ |
| 106 | - nlinarith only [hp,hRZ,hr] | |
| 106 | + linarith only [hp,hRZ,hr] | |
| 107 | 107 | have hρinv : ρ⁻¹ ≤ 4*inverseRadiusEnvelope Z := by |
| 108 | 108 | change (initialRadius R Kc.M Kc.Rc/4)⁻¹ ≤ _ |
| 109 | 109 | rw [inv_div,div_eq_mul_inv] |
| 110 | 110 | gcongr |
| 111 | 111 | have hiZ : 0 ≤ inverseRadiusEnvelope Z := by unfold inverseRadiusEnvelope; positivity |
| 112 | 112 | have hrf : physicalInputRadius (4*R) (4*R) ρ ≤ radiusEnvelope Z := by |
| 113 | - simp only [physicalInputRadius,max_self,liftedInputRadius] | |
| 113 | + simp only [physicalInputRadius,max_self] | |
| 114 | 114 | change 1+coordinateCost*(4*R+ρ⁻¹) ≤ 1+coordinateCost*(4*Z+4*inverseRadiusEnvelope Z) |
| 115 | 115 | have hc : 0 ≤ coordinateCost := norm_nonneg _ |
| 116 | 116 | gcongr |
+1 −1 Euler/PacketInitializedPressureRemainder.lean View file
| @@ -124,7 +124,7 @@ theorem initializedAngularPressure_bound : | ||
| 124 | 124 | simp only [mul_one] at hb |
| 125 | 125 | have ha : S.H0^2 ≤ 3*S.H0^(2*1) := by |
| 126 | 126 | norm_num only [Nat.mul_one] |
| 127 | - nlinarith [sq_nonneg S.H0] | |
| 127 | + linarith [sq_nonneg S.H0] | |
| 128 | 128 | have hc := (hb.mono_amplitude (zero_le_one.trans L.radius_bounds.1) ha).fixed_velocity_grade |
| 129 | 129 | (n := 1) (zero_le_one.trans L.radius_bounds.1) S.H0_pos.le |
| 130 | 130 | exact (hc.changeTime hTime).of_raw_eq _ |
+3 −3 Euler/PacketInitializedRadiusPolynomial.lean View file
| @@ -217,7 +217,7 @@ theorem requiredEnvelope_bounds (W : ℝ) (hW : 0 ≤ W) : | ||
| 217 | 217 | have hps : 0 ≤ strongEnvelope W*(16*W+1) := mul_nonneg hs (by positivity) |
| 218 | 218 | have hpf : 0 ≤ forwardEnvelope W*(64*W+1) := mul_nonneg hf (by positivity) |
| 219 | 219 | unfold requiredEnvelope |
| 220 | - exact ⟨by nlinarith,by nlinarith,by nlinarith,by nlinarith,by nlinarith⟩ | |
| 220 | + exact ⟨by linarith,by linarith,by linarith,by linarith,by linarith⟩ | |
| 221 | 221 | |
| 222 | 222 | theorem jetRadius_le (δ W : ℝ) (hδ : 0 < δ) (hi : δ⁻¹ ≤ W) : jetRadius δ ≤ jetEnvelope W := by |
| 223 | 223 | have hi0 := (inv_pos.mpr hδ).le |
| @@ -614,9 +614,9 @@ theorem initializedRadius_le_envelope (W : ℝ) (hδ : 0 < δ) | ||
| 614 | 614 | apply max_le |
| 615 | 615 | · apply hcommon.trans |
| 616 | 616 | unfold radiusEnvelope |
| 617 | - nlinarith only [hreq0,mul_nonneg hgrade0 hterminal0] | |
| 617 | + linarith only [hreq0,mul_nonneg hgrade0 hterminal0] | |
| 618 | 618 | · apply hgrade.trans |
| 619 | 619 | unfold radiusEnvelope |
| 620 | - nlinarith only [hW0,hreq0,hmean0,hgrade0] | |
| 620 | + linarith only [hW0,hreq0,hmean0,hgrade0] | |
| 621 | 621 | |
| 622 | 622 | end EulerPacketRadiusPolynomial |
+1 −1 Euler/PacketKnownPieces.lean View file
| @@ -63,7 +63,7 @@ theorem knownJets_eq_pieces (O : Operators) (p : ℕ) (hp : 2 ≤ p) | ||
| 63 | 63 | by_cases hi1 : i = 1 |
| 64 | 64 | · subst i |
| 65 | 65 | simp [knownJets, history, velocityJet, KnownPiece.jet, KnownPiece.raw, |
| 66 | - KnownPiece.active, slicedJet_zero', show 1 < p by omega, hc, hb] | |
| 66 | + KnownPiece.active, show 1 < p by omega, hc, hb] | |
| 67 | 67 | have hi2 : 2 ≤ i := by omega |
| 68 | 68 | by_cases hip : i < p |
| 69 | 69 | · simp [knownJets, history, velocityJet, KnownPiece.jet, KnownPiece.raw, |
+2 −2 Euler/PacketLiftedCoefficientBounds.lean View file
| @@ -42,13 +42,13 @@ theorem liftedInputRadius_packet (R ρ : ℝ) (_hR : 0 ≤ R) (hρ : 0 < ρ) : | ||
| 42 | 42 | ‖coordinateEquiv.symm.toContinuousLinearMap‖ * R ≤ liftedInputRadius R ρ := by |
| 43 | 43 | have h := mul_nonneg (norm_nonneg coordinateEquiv.symm.toContinuousLinearMap) (inv_nonneg.mpr hρ.le) |
| 44 | 44 | dsimp [liftedInputRadius] |
| 45 | - nlinarith | |
| 45 | + linarith | |
| 46 | 46 | |
| 47 | 47 | theorem liftedInputRadius_error (R ρ : ℝ) (hR : 0 ≤ R) : |
| 48 | 48 | ‖coordinateEquiv.symm.toContinuousLinearMap‖ * ρ⁻¹ ≤ liftedInputRadius R ρ := by |
| 49 | 49 | have h := mul_nonneg (norm_nonneg coordinateEquiv.symm.toContinuousLinearMap) hR |
| 50 | 50 | dsimp [liftedInputRadius] |
| 51 | - nlinarith | |
| 51 | + linarith | |
| 52 | 52 | |
| 53 | 53 | private theorem jet_envelope_mono {C D R S : ℝ} (hD : 0 ≤ D) (hR : 0 ≤ R) |
| 54 | 54 | (hCD : C ≤ D) (hRS : R ≤ S) (n : ℕ) : |
+3 −3 Euler/PacketLowBoundPropagation.lean View file
| @@ -15,11 +15,11 @@ theorem gradient_bound (CM hprev hchild g b e : ℝ) | ||
| 15 | 15 | (hbad : hchild*b+e ≤ 1) : |
| 16 | 16 | CM*hprev+hchild*(g+b)+e ≤ CM*hchild := by |
| 17 | 17 | have hCM0 : 0 ≤ CM := by linarith only [hCM] |
| 18 | - have hh : hprev ≤ hchild/4 := by nlinarith only [hp,hscale,sq_nonneg (hprev-1)] | |
| 18 | + have hh : hprev ≤ hchild/4 := by linarith only [hp,hscale,sq_nonneg (hprev-1)] | |
| 19 | 19 | have ho := mul_le_mul_of_nonneg_left hh hCM0 |
| 20 | 20 | have hgood := mul_le_mul_of_nonneg_right hg (zero_le_one.trans hc) |
| 21 | 21 | have hproduct : 4 ≤ CM*hchild := by nlinarith only [hCM,hc] |
| 22 | - nlinarith only [ho,hgood,hbad,hproduct] | |
| 22 | + linarith only [ho,hgood,hbad,hproduct] | |
| 23 | 23 | |
| 24 | 24 | theorem hessian_bound (CM CH hprev hold hchild g b e : ℝ) |
| 25 | 25 | (hCH : 4 ≤ CH) (hp : 1 ≤ hprev) (hc : 1 ≤ hchild) |
| @@ -36,7 +36,7 @@ theorem hessian_bound (CM CH hprev hold hchild g b e : ℝ) | ||
| 36 | 36 | have hgood := mul_le_mul_of_nonneg_right hg hprod0 |
| 37 | 37 | have hmon := mul_le_mul_of_nonneg_left hp (mul_nonneg hCH0 hc0) |
| 38 | 38 | have hproduct : 4 ≤ CH*(hchild*hprev) := by nlinarith only [hCH,hprod] |
| 39 | - nlinarith only [hh,hs,hgood,hmon,hbad,hproduct] | |
| 39 | + linarith only [hh,hs,hgood,hmon,hbad,hproduct] | |
| 40 | 40 | |
| 41 | 41 | theorem localized_cost_le (J : ℕ) (X K Be Bc Kcap Becap CM Cboundary T : ℝ) |
| 42 | 42 | (hK : 0 ≤ K) (hBe : 0 ≤ Be) (hBc : 0 ≤ Bc) (hT : 0 ≤ T) |
+2 −2 Euler/PacketLowConstants.lean View file
| @@ -38,7 +38,7 @@ theorem hessian_properties : 4 ≤ hessianConstant ∧ | ||
| 38 | 38 | have hff := mul_nonneg h0M h1.le |
| 39 | 39 | have hfg := mul_nonneg h0M h2.le |
| 40 | 40 | unfold hessianConstant |
| 41 | - exact ⟨by nlinarith,by nlinarith,by nlinarith⟩ | |
| 41 | + exact ⟨by linarith,by linarith,by linarith⟩ | |
| 42 | 42 | |
| 43 | 43 | theorem hessian_nonneg : 0 ≤ hessianConstant := (by norm_num : (0 : ℝ) ≤ 4).trans hessian_properties.1 |
| 44 | 44 | |
| @@ -56,6 +56,6 @@ theorem initial_bounds (h e : ℝ) (hh : 1 ≤ h) (he : e ≤ 1) : | ||
| 56 | 56 | have hc := mul_le_mul_of_nonneg_left hh h0 |
| 57 | 57 | have hm := mul_le_mul_of_nonneg_right gradient_properties.2.1 (zero_le_one.trans hh) |
| 58 | 58 | have hH := mul_le_mul_of_nonneg_right hessian_properties.2.1 (zero_le_one.trans hh) |
| 59 | - constructor <;> nlinarith only [hc,hm,hH,hh,he] | |
| 59 | + constructor <;> linarith only [hc,hm,hH,hh,he] | |
| 60 | 60 | |
| 61 | 61 | end EulerPacketLowConstants |
+2 −2 Euler/PacketMajorantShift.lean View file
| @@ -8,7 +8,7 @@ namespace EulerGevrey | ||
| 8 | 8 | theorem majorant_succ_identity (R : ℝ) (d n : ℕ) : |
| 9 | 9 | majorant R (d+1) n=R*((n+d+1 : ℕ) : ℝ)^2*majorant R d n := by |
| 10 | 10 | simp only [majorant, show n+(d+1)=n+d+1 by omega, Nat.factorial_succ, |
| 11 | - Nat.cast_mul, pow_succ] | |
| 11 | + Nat.cast_mul] | |
| 12 | 12 | ring |
| 13 | 13 | |
| 14 | 14 | theorem majorant_mono_shift (R : ℝ) (hR : 1 ≤ R) (d D n : ℕ) (h : d ≤ D) : |
| @@ -44,7 +44,7 @@ theorem majorant_coarse_split (R : ℝ) (hR : 0 ≤ R) (d n : ℕ) : | ||
| 44 | 44 | simp only [mul_pow, hpow] |
| 45 | 45 | ring |
| 46 | 46 | _ = _ := by |
| 47 | - simp only [majorant, Nat.add_zero, pow_add] | |
| 47 | + simp only [majorant, Nat.add_zero] | |
| 48 | 48 | ring |
| 49 | 49 | |
| 50 | 50 | end EulerGevrey |
+1 −1 Euler/PacketMatrixNormalization.lean View file
| @@ -35,6 +35,6 @@ theorem normalized_approximation_bound (Rc C : ℝ) (hRc : 0 ≤ Rc) (hC : 0 ≤ | ||
| 35 | 35 | mul_nonneg (by norm_num) (sobolevCoefficientAmplitude_nonneg 6 Rc C hRc hC) |
| 36 | 36 | have hb4 := fourth_power_le_frequency k B (by linarith) hB0 hB |
| 37 | 37 | have hs := mul_le_mul_of_nonneg_left (normalized_low_high_le k B C₁ C₂ (by linarith) hC₂ hb4) hc |
| 38 | - exact h.mono_amplitude hR (by simpa only [mul_assoc,mul_left_comm,mul_comm] using hs) | |
| 38 | + exact h.mono_amplitude hR (by simpa only [mul_assoc,mul_left_comm] using hs) | |
| 39 | 39 | |
| 40 | 40 | end EulerPacketCylinderField.MatrixCoefficient |
+2 −2 Euler/PacketMovingFrame.lean View file
| @@ -47,7 +47,7 @@ theorem inner_cross_second (p q : Space) : ⟪q,cross p q⟫_ℝ = 0 := by | ||
| 47 | 47 | |
| 48 | 48 | theorem inner_cross_cross (p q r s : Space) : |
| 49 | 49 | ⟪cross p q,cross r s⟫_ℝ = ⟪p,r⟫_ℝ*⟪q,s⟫_ℝ - ⟪p,s⟫_ℝ*⟪q,r⟫_ℝ := by |
| 50 | - simp only [← dot_eq_inner, cross] | |
| 50 | + simp only [← dot_eq_inner] | |
| 51 | 51 | exact cross_dot_cross (ofLp p) (ofLp q) (ofLp r) (ofLp s) |
| 52 | 52 | |
| 53 | 53 | theorem inner_cross_exchange_first (p q r : Space) : |
| @@ -151,7 +151,7 @@ theorem frameRate_skew (B : Space →L[ℝ] Space) (p q : Space) | ||
| 151 | 151 | ring |
| 152 | 152 | intro i j |
| 153 | 153 | fin_cases i <;> fin_cases j <;> |
| 154 | - dsimp [frame, frameRate, frameMatrix, EulerPacketRay.frameSkew] | |
| 154 | + dsimp [frame, frameRate, frameMatrix] | |
| 155 | 155 | · exact hpp |
| 156 | 156 | · exact hpq' |
| 157 | 157 | · exact hpn' |
+1 −1 Euler/PacketMovingVelocity.lean View file
| @@ -11,7 +11,7 @@ open EulerSmoothLimit EulerPacketNormalizedPrimary EulerPacketRay InnerProductSp | ||
| 11 | 11 | |
| 12 | 12 | theorem frameSkew_antisymm (B : Fin 3 → Fin 3 → ℝ) (i j : Fin 3) : |
| 13 | 13 | frameSkew B j i = -frameSkew B i j := by |
| 14 | - fin_cases i <;> fin_cases j <;> simp [frameSkew, Fin.ext_iff] | |
| 14 | + fin_cases i <;> fin_cases j <;> simp [frameSkew] | |
| 15 | 15 | |
| 16 | 16 | theorem frameMatrix_adjoint (B : Space →L[ℝ] Space) (p q : Space) (i j : Fin 3) : |
| 17 | 17 | frameMatrix B.adjoint p q i j = frameMatrix B p q j i := by |
+11 −11 Euler/PacketNeighborControlled.lean View file
| @@ -40,14 +40,14 @@ theorem ray_controlled_velocity_error_within | ||
| 40 | 40 | |velocitySecondRhs (A t) (C t) ε (P t) (Q t) (N t) U V+U| ≤ |
| 41 | 41 | 200000*e*Θ^12*(|U|+|V|) := by |
| 42 | 42 | have hΘ0 : 0 ≤ Θ := by linarith only [hΘ] |
| 43 | - have hs : 400*(4*e)*Θ^5 ≤ 1 := by nlinarith only [hsmall, mul_nonneg he (pow_nonneg hΘ0 5)] | |
| 43 | + have hs : 400*(4*e)*Θ^5 ≤ 1 := by linarith only [hsmall, mul_nonneg he (pow_nonneg hΘ0 5)] | |
| 44 | 44 | have hi : norm3 (P 0) (Q 0) (N 0-1) ≤ 4*e := hinitial.trans (by linarith only [he]) |
| 45 | 45 | have hnear := ray_closeness_within hβ hβupper hΘ hT0 hT |
| 46 | 46 | (show 0 ≤ 4*e by positivity) hs hRc hP hQ hN hRclose hi |
| 47 | 47 | intro t ht |
| 48 | 48 | obtain ⟨herr, hn⟩ := hnear t ht |
| 49 | 49 | have herr' : norm3 (P t-β*t^2) (Q t+2*β*t) (N t-1) ≤ 800*e*Θ^5 := by |
| 50 | - nlinarith only [herr] | |
| 50 | + linarith only [herr] | |
| 51 | 51 | refine ⟨⟨herr', hn⟩, ?_⟩ |
| 52 | 52 | intro U V |
| 53 | 53 | have herrorP : |P t-β*t^2| ≤ 800*e*Θ^5 := by |
| @@ -65,11 +65,11 @@ theorem ray_controlled_velocity_error_within | ||
| 65 | 65 | have ht2 : t^2 ≤ Θ^2 := (sq_le_sq₀ ht.1 hΘ0).mpr htΘ |
| 66 | 66 | have hP₀ : |β*t^2| ≤ Θ^2 := by |
| 67 | 67 | rw [abs_of_nonneg (mul_nonneg hβ (sq_nonneg t))] |
| 68 | - nlinarith only [mul_le_mul_of_nonneg_right hβupper (sq_nonneg t), ht2] | |
| 68 | + linarith only [mul_le_mul_of_nonneg_right hβupper (sq_nonneg t), ht2] | |
| 69 | 69 | have hQ₀ : |-2*β*t| ≤ 2*Θ^2 := by |
| 70 | 70 | rw [abs_mul, abs_mul, abs_of_nonneg hβ, abs_of_nonneg ht.1] |
| 71 | 71 | norm_num only [abs_neg, abs_of_nonneg (by norm_num : (0:ℝ) ≤ 2)] |
| 72 | - nlinarith only [mul_le_mul_of_nonneg_right hβupper ht.1, htΘ, hΘ, sq_nonneg (Θ-1)] | |
| 72 | + linarith only [mul_le_mul_of_nonneg_right hβupper ht.1, htΘ, hΘ, sq_nonneg (Θ-1)] | |
| 73 | 73 | have hb : |β| ≤ 1 := by rwa [abs_of_nonneg hβ] |
| 74 | 74 | exact velocity_rhs_error_firstTwo hΘ he hε hεe hsmall hb (hAclose t ht) |
| 75 | 75 | (hCclose t ht) hP₀ hQ₀ herrorP herrorQ herrorN |
| @@ -117,10 +117,10 @@ theorem controlled_neighbor_relative_error_within | ||
| 117 | 117 | have hσ2 : σ^2 ≤ 1 := by nlinarith only [hσ, hσsmall] |
| 118 | 118 | have hgeom : 10000*e*Θ^5 ≤ 1 := by |
| 119 | 119 | have hh := mul_le_mul_of_nonneg_left (pow_le_pow_right₀ hΘ (by decide : 5 ≤ 21)) he |
| 120 | - nlinarith only [hsmall, hh, mul_nonneg he (pow_nonneg hΘ0 21)] | |
| 120 | + linarith only [hsmall, hh, mul_nonneg he (pow_nonneg hΘ0 21)] | |
| 121 | 121 | have he1 : e ≤ 1 := by |
| 122 | 122 | have hh := mul_le_mul_of_nonneg_left (one_le_pow₀ hΘ : 1 ≤ Θ^21) he |
| 123 | - nlinarith only [hsmall, hh, he] | |
| 123 | + linarith only [hsmall, hh, he] | |
| 124 | 124 | have hcontrol := ray_controlled_velocity_error_within (sq_nonneg σ) hσ2 hΘ hT0 hT |
| 125 | 125 | he hε hεe hgeom hRc hP hQ hN hRclose hAclose hCclose hrayInitial |
| 126 | 126 | have hPc : ContinuousOn P (Icc 0 T) := fun t ht => (hP t ht).continuousWithinAt |
| @@ -132,7 +132,7 @@ theorem controlled_neighbor_relative_error_within | ||
| 132 | 132 | intro t ht |
| 133 | 133 | linarith only [(hcontrol t ht).1.2] |
| 134 | 134 | obtain ⟨hU₁c, hV₁c⟩ := continuousOn_velocity_rhs (ε := ε) hAc hCc hPc hQc hNc hUc hVc hNne |
| 135 | - have hs : 40*(200000*e)*Θ^21 ≤ 1 := by nlinarith only [hsmall] | |
| 135 | + have hs : 40*(200000*e)*Θ^21 ≤ 1 := by linarith only [hsmall] | |
| 136 | 136 | have herror := velocity_difference_bound_within hσ hσsmall hΘ hT0 hT |
| 137 | 137 | (show 0 ≤ 200000*e by positivity) hs hF hG hfluxF hfluxG hF0 hF₁0 hG₁0 |
| 138 | 138 | hU hV hU₁c hV₁c hZ hfluxZ (fun t ht => (hcontrol t ht).2 (U t) (V t)) |
| @@ -203,7 +203,7 @@ theorem controlled_neighbor_stage_references_within | ||
| 203 | 203 | have hm := mul_le_mul_of_nonneg_left (pow_le_pow_right₀ hΘ (by decide : 21 ≤ 40)) he |
| 204 | 204 | have hprod := mul_nonneg (show 0 ≤ neighborStabilityConstant-8 by linarith only [hK]) |
| 205 | 205 | (mul_nonneg he (pow_nonneg hΘ0 40)) |
| 206 | - nlinarith only [hsmall, hm, hprod] | |
| 206 | + linarith only [hsmall, hm, hprod] | |
| 207 | 207 | have herror := controlled_neighbor_relative_error_within hσ hσsmall hΘ hT0 hT he hε hεe |
| 208 | 208 | hlam hsmallODE (fun t _ => hF t) (fun t _ => hG t) (fun t _ => hfluxF t) (fun t _ => hfluxG t) |
| 209 | 209 | hF0 hF₁0 hG₁0 hRc hAc hCc hP hQ hN hU hV hRclose hAclose hCclose |
| @@ -218,7 +218,7 @@ theorem controlled_neighbor_stage_references_within | ||
| 218 | 218 | have hn : 0 ≤ neighborStabilityConstant*e*Θ^40 := by positivity [neighborStabilityConstant] |
| 219 | 219 | dsimp [δ] |
| 220 | 220 | unfold neighborStabilityConstant at hm hn hsmall |
| 221 | - nlinarith only [hm, hn, hsmall] | |
| 221 | + linarith only [hm, hn, hsmall] | |
| 222 | 222 | have herror' : |V t-Z t|+|U t+Z₁ t| ≤ δ*(1+lam)*F t := |
| 223 | 223 | herror t ⟨by linarith only [ht.1], ht.2⟩ |
| 224 | 224 | have hc := equation30_relative_state_consequences hσ hσsmall hlam ht.1 hδ hs |
| @@ -227,9 +227,9 @@ theorem controlled_neighbor_stage_references_within | ||
| 227 | 227 | refine ⟨hc.1, ?_, ?_⟩ |
| 228 | 228 | · dsimp [δ] at hc |
| 229 | 229 | unfold neighborStabilityConstant |
| 230 | - nlinarith only [hc.2.1, mul_nonneg (mul_nonneg (exp_pos (6:ℝ)).le he) (pow_nonneg hΘ0 29)] | |
| 230 | + linarith only [hc.2.1, mul_nonneg (mul_nonneg (exp_pos (6:ℝ)).le he) (pow_nonneg hΘ0 29)] | |
| 231 | 231 | · dsimp [δ] at hc |
| 232 | 232 | unfold neighborStabilityConstant |
| 233 | - nlinarith only [hc.2.2, mul_nonneg (mul_nonneg (exp_pos (6:ℝ)).le he) (pow_nonneg hΘ0 29)] | |
| 233 | + linarith only [hc.2.2, mul_nonneg (mul_nonneg (exp_pos (6:ℝ)).le he) (pow_nonneg hΘ0 29)] | |
| 234 | 234 | |
| 235 | 235 | end EulerPacketMovingFrame |
+2 −2 Euler/PacketNeighborStability.lean View file
| @@ -60,7 +60,7 @@ theorem velocity_difference_bound | ||
| 60 | 60 | have hδ : 0 ≤ e*Θ^12 := by positivity |
| 61 | 61 | have hs : 20*Θ^8*(e*Θ^12)*(T-0) ≤ 1/2 := by |
| 62 | 62 | have hm := mul_le_mul_of_nonneg_left hT (show 0 ≤ 20*e*Θ^20 by positivity) |
| 63 | - nlinarith only [hsmall, hm] | |
| 63 | + linarith only [hsmall, hm] | |
| 64 | 64 | have hh := equation30_perturbed_difference_bound hσ hσsmall hΘ (by norm_num : (0:ℝ) ≤ 0) |
| 65 | 65 | hT0 hT hδ hs hF hG hfluxF hfluxG hF0 hF₁0 hG₁0 hY hfluxY hZ hfluxZ hfc hgc hforcing |
| 66 | 66 | have habs (x y : ℝ) : |-x-y| = |x+y| := by rw [show -x-y = -(x+y) by ring, abs_neg] |
| @@ -119,6 +119,6 @@ theorem neighbor_initial_error_bound | ||
| 119 | 119 | have hnorm : |v₀|+|u₀| ≤ 1+lam+η := by linarith only [hv, hu, hi] |
| 120 | 120 | have h1 := mul_le_mul_of_nonneg_left hi (show 0 ≤ 20*Θ^8*Ft by positivity) |
| 121 | 121 | have h2 := mul_le_mul_of_nonneg_left hnorm (show 0 ≤ 800*e*Θ^29*Ft by positivity) |
| 122 | - nlinarith only [hb, h1, h2] | |
| 122 | + linarith only [hb, h1, h2] | |
| 123 | 123 | |
| 124 | 124 | end EulerPacketMovingFrame |
+3 −3 Euler/PacketNormalizedPrimary.lean View file
| @@ -52,7 +52,7 @@ theorem unit_hasDerivWithinAt {f : ℝ → E} {f' : E} {t : ℝ} {S : Set ℝ} | ||
| 52 | 52 | change HasDerivWithinAt (fun s => unit (f s)) |
| 53 | 53 | (‖f t‖⁻¹ • f' + (-(⟪f t,f'⟫_ℝ / ‖f t‖) / ‖f t‖^2) • f t) S t at h |
| 54 | 54 | rw [he] at h |
| 55 | - simpa only [neg_smul, sub_eq_add_neg, add_comm] using h | |
| 55 | + simpa only [neg_smul, sub_eq_add_neg] using h | |
| 56 | 56 | |
| 57 | 57 | variable [CompleteSpace E] |
| 58 | 58 | |
| @@ -69,7 +69,7 @@ theorem normalized_ray_hasDerivWithinAt (B : E →L[ℝ] E) {m : ℝ → E} {t : | ||
| 69 | 69 | unfold rayRate unit |
| 70 | 70 | rw [inner_neg_right, adjoint_inner_right, real_inner_comm (m t) (B (m t))] |
| 71 | 71 | simp only [map_smul, real_inner_smul_left, real_inner_smul_right, smul_smul, |
| 72 | - div_eq_mul_inv, neg_mul, neg_smul, smul_neg] | |
| 72 | + div_eq_mul_inv, neg_mul, smul_neg] | |
| 73 | 73 | module |
| 74 | 74 | |
| 75 | 75 | omit [CompleteSpace E] in |
| @@ -83,7 +83,7 @@ theorem normalized_velocity_hasDerivWithinAt (B : E →L[ℝ] E) | ||
| 83 | 83 | convert h using 1 |
| 84 | 84 | unfold velocityRate unit |
| 85 | 85 | simp only [inner_add_right, inner_neg_right, real_inner_smul_right, hvm, mul_zero, |
| 86 | - add_zero, map_smul, real_inner_smul_left, smul_smul, smul_add, div_eq_mul_inv, | |
| 86 | + add_zero, map_smul, real_inner_smul_left, smul_add, div_eq_mul_inv, | |
| 87 | 87 | neg_mul, neg_smul, smul_neg] |
| 88 | 88 | module |
| 89 | 89 | |
+3 −3 Euler/PacketParameterEnvelope.lean View file
| @@ -68,7 +68,7 @@ theorem source_size_le (J D : ℕ) (hJ : 2 ≤ J) (X : ℝ) (hX : 1 ≤ X) | ||
| 68 | 68 | apply (pow_le_pow_left₀ hK0 hKd R).trans |
| 69 | 69 | rw [← exp_nat_mul] |
| 70 | 70 | apply exp_le_exp.mpr |
| 71 | - nlinarith only [mul_le_mul_of_nonneg_right hRc hz] | |
| 71 | + linarith only [mul_le_mul_of_nonneg_right hRc hz] | |
| 72 | 72 | have hξF : ξ ≤ Cξ*(F*E) := hξE.trans (mul_le_mul_of_nonneg_left hEE hξC) |
| 73 | 73 | have hDF : (spike J X n)⁻¹ ≤ F*E := |
| 74 | 74 | (spike_inverse_le_exponential J hJ X hX n).trans (hExp.trans hEE) |
| @@ -87,7 +87,7 @@ theorem source_size_le (J D : ℕ) (hJ : 2 ≤ J) (X : ℝ) (hX : 1 ≤ X) | ||
| 87 | 87 | apply hCp.trans |
| 88 | 88 | gcongr |
| 89 | 89 | _ = (1120*(2*Cθ)^10)*(((J+n : ℕ) : ℝ)^20*(scaleSequence J X n)^20)*exp z := by |
| 90 | - simp only [mul_pow,← pow_mul] | |
| 90 | + simp only [mul_pow] | |
| 91 | 91 | ring |
| 92 | 92 | _ ≤ (1120*(2*Cθ)^10)*F*E := by |
| 93 | 93 | gcongr |
| @@ -95,7 +95,7 @@ theorem source_size_le (J D : ℕ) (hJ : 2 ≤ J) (X : ℝ) (hX : 1 ≤ X) | ||
| 95 | 95 | have hsum : parameterSize K Ti TiTotal Cp B (spike J X n) ξ+shear J X n ≤ |
| 96 | 96 | constant Cθ CB Cξ*(F*E) := by |
| 97 | 97 | unfold parameterSize constant |
| 98 | - nlinarith only [hFE,hKF,hTiF,hTiTotalF,hBF,hξF,hDF,hhF,hCpF] | |
| 98 | + linarith only [hFE,hKF,hTiF,hTiTotalF,hBF,hξF,hDF,hhF,hCpF] | |
| 99 | 99 | apply hsum.trans_eq |
| 100 | 100 | dsimp [F,E,z,parameterEnvelope,polynomialFactor,predecessorExponent] |
| 101 | 101 | ring |
+3 −3 Euler/PacketParentForwardBudget.lean View file
| @@ -34,10 +34,10 @@ theorem radius_guards (q : ℕ) (T R C C₁ Cp : ℝ) | ||
| 34 | 34 | have hfr := mul_nonneg hf (add_nonneg hi zero_le_one) |
| 35 | 35 | unfold radius |
| 36 | 36 | constructor |
| 37 | - · nlinarith | |
| 37 | + · linarith | |
| 38 | 38 | constructor |
| 39 | - · nlinarith | |
| 40 | - constructor <;> nlinarith | |
| 39 | + · linarith | |
| 40 | + constructor <;> linarith | |
| 41 | 41 | |
| 42 | 42 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 43 | 43 | |
+2 −2 Euler/PacketParentMeanBudget.lean View file
| @@ -85,8 +85,8 @@ theorem radius_guards (q : ℕ) (T Ti R C C₁ C₂ L : ℝ) | ||
| 85 | 85 | have hgc' := mul_nonneg hgc hr |
| 86 | 86 | unfold radius |
| 87 | 87 | constructor |
| 88 | - · nlinarith | |
| 89 | - constructor <;> nlinarith | |
| 88 | + · linarith | |
| 89 | + constructor <;> linarith | |
| 90 | 90 | |
| 91 | 91 | variable (D : EulerMeanPacketProvider.Data) (q : ℕ) (Ti R C C₁ C₂ : ℝ) |
| 92 | 92 | (hT : D.T ≤ 1) (hTi : D.T⁻¹ ≤ Ti) (hR : 1024 ≤ R) |
+5 −5 Euler/PacketParentTransverseCosts.lean View file
| @@ -131,7 +131,7 @@ theorem traceCost_le (T Ti : ℝ) (hT : 0 < T) (hT1 : T ≤ 1) (hi : T⁻¹ ≤ | ||
| 131 | 131 | have hs : Real.sqrt T ≤ 1 := by nlinarith [Real.sqrt_nonneg T,Real.sq_sqrt hT.le] |
| 132 | 132 | have hm := mul_le_mul hi hs (Real.sqrt_nonneg T) hTi |
| 133 | 133 | unfold traceCost |
| 134 | - nlinarith | |
| 134 | + linarith | |
| 135 | 135 | |
| 136 | 136 | theorem forwardCost_bound (q : ℕ) (S Ti R C C₁ Cp V : ℝ) |
| 137 | 137 | (hS : 0 ≤ S) (hR : 0 ≤ R) (hC : 0 ≤ C) (hC₁ : 0 ≤ C₁) (hCp : 0 ≤ Cp) |
| @@ -168,11 +168,11 @@ theorem radius_guards (q : ℕ) (T S Ti R C C₁ C₂ Cp : ℝ) | ||
| 168 | 168 | have hfr := mul_nonneg hf (add_nonneg hi zero_le_one) |
| 169 | 169 | unfold radius |
| 170 | 170 | constructor |
| 171 | - · nlinarith | |
| 171 | + · linarith | |
| 172 | 172 | constructor |
| 173 | - · nlinarith | |
| 173 | + · linarith | |
| 174 | 174 | constructor |
| 175 | - · nlinarith | |
| 176 | - constructor <;> nlinarith | |
| 175 | + · linarith | |
| 176 | + constructor <;> linarith | |
| 177 | 177 | |
| 178 | 178 | end EulerPacketParentTransverseCosts |
+3 −3 Euler/PacketPhysicalCoefficients.lean View file
| @@ -68,7 +68,7 @@ theorem physical_matrix_errors | ||
| 68 | 68 | have hG0 : 0 ≤ G := by linarith |
| 69 | 69 | have hscale : |ε/a| ≤ 2*ε := by |
| 70 | 70 | rw [abs_div, abs_of_pos hε, abs_of_pos ha0, div_le_iff₀ ha0] |
| 71 | - nlinarith only [mul_nonneg hε.le (sub_nonneg.mpr ha)] | |
| 71 | + linarith only [mul_nonneg hε.le (sub_nonneg.mpr ha)] | |
| 72 | 72 | have hBF : ∀ τ ∈ Icc 0 Θ, ∀ i j, |Bf τ i j| ≤ 4*G := by |
| 73 | 73 | intro τ hτ i j |
| 74 | 74 | have ht := hmap hτ |
| @@ -102,7 +102,7 @@ theorem physical_matrix_errors | ||
| 102 | 102 | rw [abs_mul] |
| 103 | 103 | calc |
| 104 | 104 | _ ≤ (13*G^2)*(2*ε) := mul_le_mul hrate' hscale (abs_nonneg _) (by positivity) |
| 105 | - _ ≤ 2*ε*(4*G)^2 := by nlinarith only [mul_nonneg hε.le (sq_nonneg G)] | |
| 105 | + _ ≤ 2*ε*(4*G)^2 := by linarith only [mul_nonneg hε.le (sq_nonneg G)] | |
| 106 | 106 | have hHF : ∀ τ ∈ Icc 0 Θ, HasDerivWithinAt Hf (H₁f τ) (Icc 0 Θ) τ := by |
| 107 | 107 | intro τ hτ |
| 108 | 108 | have ht := hmap hτ |
| @@ -122,7 +122,7 @@ theorem physical_matrix_errors | ||
| 122 | 122 | calc |
| 123 | 123 | _ ≤ (2*G*|Hf τ|)*(2*ε) := mul_le_mul hrate' hscale (abs_nonneg _) (by positivity) |
| 124 | 124 | _ ≤ (4*ε*(4*G))*|Hf τ| := by |
| 125 | - nlinarith only [mul_nonneg (mul_nonneg hε.le hG0) (abs_nonneg (Hf τ))] | |
| 125 | + linarith only [mul_nonneg (mul_nonneg hε.le hG0) (abs_nonneg (Hf τ))] | |
| 126 | 126 | have herr := normalized_motion_errors_within ha hε hΘ (show 1 ≤ 4*G by linarith) |
| 127 | 127 | hd hsmall hBF hEF (fun τ hτ => hDF τ hτ 0 1) (fun τ hτ => hDF τ hτ 2 1) |
| 128 | 128 | (fun τ hτ => hDFbound τ hτ 0 1) (fun τ hτ => hDFbound τ hτ 2 1) |
+1 −1 Euler/PacketPhysicalCompression.lean View file
| @@ -88,7 +88,7 @@ theorem physical_target_compression (B M E : Space →L[ℝ] Space) (h : ℝ) (m | ||
| 88 | 88 | refine ⟨hbound, ?_⟩ |
| 89 | 89 | intro hdom |
| 90 | 90 | have hd : 3*(‖B‖+‖E‖) < h*ε/(10*τ) := |
| 91 | - (lt_div_iff₀ (by positivity : 0 < 10*τ)).mpr (by nlinarith only [hdom]) | |
| 91 | + (lt_div_iff₀ (by positivity : 0 < 10*τ)).mpr (by linarith only [hdom]) | |
| 92 | 92 | rw [neg_div] at hbound |
| 93 | 93 | linarith only [hbound, hd] |
| 94 | 94 | |
+2 −2 Euler/PacketPhysicalFamily.lean View file
| @@ -108,13 +108,13 @@ theorem physical_family_amplification_and_size {α : Type*} (center : α) | ||
| 108 | 108 | (fun ξ => (hcommon ξ).1), (fun ξ => (hcommon ξ).2.1), (fun ξ => (hcommon ξ).2.2), ?_⟩ |
| 109 | 109 | have he : 0 ≤ e := by dsimp [e]; positivity |
| 110 | 110 | have hεe : ε ≤ e := by |
| 111 | - have hg : 1 ≤ (4*G)^2 := by nlinarith only [hG, sq_nonneg (G-1)] | |
| 111 | + have hg : 1 ≤ (4*G)^2 := by linarith only [hG, sq_nonneg (G-1)] | |
| 112 | 112 | have hc : 1 ≤ Θ*(4*G)^2 := by |
| 113 | 113 | simpa only [one_mul] using mul_le_mul hΘ hg |
| 114 | 114 | (by norm_num : (0:ℝ) ≤ 1) (by linarith only [hΘ] : 0 ≤ Θ) |
| 115 | 115 | have hh := mul_le_mul_of_nonneg_left hc hε.le |
| 116 | 116 | dsimp [e] |
| 117 | - nlinarith only [hh, hd, hε] | |
| 117 | + linarith only [hh, hd, hε] | |
| 118 | 118 | have hK : 1 ≤ neighborStabilityConstant := (by norm_num : (1:ℝ) ≤ 1000000000).trans neighborStabilityConstant_ge |
| 119 | 119 | have hsub : Icc (1:ℝ) T ⊆ Icc 0 T := fun _ ht => ⟨by linarith only [ht.1], ht.2⟩ |
| 120 | 120 | have htime {τ : ℝ} (hτ : τ ∈ Icc 1 T) : physicalTime t₀ a ε τ ∈ S := |
+3 −3 Euler/PacketPhysicalLowBounds.lean View file
| @@ -85,14 +85,14 @@ theorem normal_projection_quadratic_le (r z : Space) : | ||
| 85 | 85 | have h := norm_inner_le_norm (𝕜 := ℝ) r z |
| 86 | 86 | have hsq := pow_le_pow_left₀ (norm_nonneg ⟪r,z⟫_ℝ) h 2 |
| 87 | 87 | rw [Real.norm_eq_abs,sq_abs] at hsq |
| 88 | - exact (div_le_iff₀ hn).2 (by nlinarith only [hsq]) | |
| 88 | + exact (div_le_iff₀ hn).2 (by linarith only [hsq]) | |
| 89 | 89 | |
| 90 | 90 | theorem pressureTerm_upper_flux (amp slope : ℝ) (M : Matrix) (r w z : Space) |
| 91 | 91 | (hamp : 0 ≤ amp) (hslope : -1 ≤ slope) (hflux : 0 ≤ ⟪r,M w⟫_ℝ) : |
| 92 | 92 | ⟪pressureTerm amp slope M r w z,z⟫_ℝ ≤ 2*amp*⟪r,M w⟫_ℝ*‖z‖^2 := by |
| 93 | 93 | have hc : 0 ≤ 2*amp*⟪r,M w⟫_ℝ := by positivity |
| 94 | 94 | have hs : -2*amp*⟪r,M w⟫_ℝ*slope ≤ 2*amp*⟪r,M w⟫_ℝ := by |
| 95 | - nlinarith only [mul_le_mul_of_nonneg_left hslope hc] | |
| 95 | + linarith only [mul_le_mul_of_nonneg_left hslope hc] | |
| 96 | 96 | rw [pressureTerm_quadratic] |
| 97 | 97 | exact (mul_le_mul_of_nonneg_right hs (div_nonneg (sq_nonneg _) (sq_nonneg _))).trans |
| 98 | 98 | (mul_le_mul_of_nonneg_left (normal_projection_quadratic_le r z) hc) |
| @@ -177,7 +177,7 @@ theorem absolute_step_bounds (A B H J M : Matrix) (r w : Space) | ||
| 177 | 177 | have hV : 0 ≤ V := (norm_nonneg _).trans hM |
| 178 | 178 | have hv : ‖shearTerm amp (deriv (profile δ) θ) r w‖ ≤ size := |
| 179 | 179 | (shearTerm_norm_le amp _ δ r w hamp hslope).trans |
| 180 | - ((div_le_iff₀ hδ).2 (by nlinarith only [hsize])) | |
| 180 | + ((div_le_iff₀ hδ).2 (by linarith only [hsize])) | |
| 181 | 181 | have hp : ‖pressureTerm amp (deriv (profile δ) θ) M r w‖ ≤ 2*V*size := |
| 182 | 182 | (pressureTerm_norm_le amp _ δ M r w hamp hslope).trans |
| 183 | 183 | ((div_le_iff₀ hδ).2 (by nlinarith only [ |
+4 −4 Euler/PacketPhysicalNeighbor.lean View file
| @@ -79,14 +79,14 @@ theorem physical_neighbor_stage_references | ||
| 79 | 79 | have hbase : 1000000*e*Θ^40 ≤ 1 := by |
| 80 | 80 | have hnonneg := mul_nonneg (sub_nonneg.mpr hK) (mul_nonneg he (pow_nonneg hΘ0 40)) |
| 81 | 81 | change 1000000*neighborStabilityConstant*e*Θ^40 ≤ 1 at hsmall |
| 82 | - nlinarith only [hsmall, hnonneg] | |
| 82 | + linarith only [hsmall, hnonneg] | |
| 83 | 83 | have heΘ : e ≤ e*Θ^40 := by |
| 84 | 84 | simpa only [mul_one] using mul_le_mul_of_nonneg_left (one_le_pow₀ hΘ : 1 ≤ Θ^40) he |
| 85 | - have heSmall : e ≤ 1 := by nlinarith only [hbase, heΘ, he] | |
| 85 | + have heSmall : e ≤ 1 := by linarith only [hbase, heΘ, he] | |
| 86 | 86 | have hpow : e*Θ^5 ≤ e*Θ^40 := |
| 87 | 87 | mul_le_mul_of_nonneg_left (pow_le_pow_right₀ hΘ (by decide : 5 ≤ 40)) he |
| 88 | 88 | have hsmallRay : 400*(4*e)*Θ^5 ≤ 1 := by |
| 89 | - nlinarith only [hbase, hpow, mul_nonneg he (pow_nonneg hΘ0 5)] | |
| 89 | + linarith only [hbase, hpow, mul_nonneg he (pow_nonneg hΘ0 5)] | |
| 90 | 90 | have ha0 : 0 < a := by linarith |
| 91 | 91 | have hσsq : σ^2 ≤ 1 := by nlinarith only [hσ, hσsmall] |
| 92 | 92 | have herr := physical_matrix_errors ha hε hΘ hG hd heSmall hmap hBd hmd hvd hm0 hv0 hmv |
| @@ -150,7 +150,7 @@ theorem physical_neighbor_stage_references | ||
| 150 | 150 | refine ⟨?_, ?_⟩ |
| 151 | 151 | · intro τ hτ |
| 152 | 152 | refine ⟨?_, (hnear τ hτ).2, hpair τ hτ⟩ |
| 153 | - nlinarith only [(hnear τ hτ).1] | |
| 153 | + linarith only [(hnear τ hτ).1] | |
| 154 | 154 | · exact controlled_neighbor_stage_references_within hσ hσsmall hΘ hT0 hT he hε.le herr.1 hlam hsmall |
| 155 | 155 | hRmc hAmc hCmc hP hQ hN (fun τ hτ => (hUV τ hτ).1) (fun τ hτ => (hUV τ hτ).2) |
| 156 | 156 | hRclose (fun τ hτ => (herr.2 τ (hsub hτ)).2.1) (fun τ hτ => (herr.2 τ (hsub hτ)).2.2) |
+7 −7 Euler/PacketPhysicalNormBounds.lean View file
| @@ -46,7 +46,7 @@ theorem scaledRay_norm_le_norm3 (m v r : ℝ → Space) {s₀ t₀ a ε τ : ℝ | ||
| 46 | 46 | dsimp [norm3] |
| 47 | 47 | have hbound := mul_le_mul_of_nonneg_left hε1 |
| 48 | 48 | (show 0 ≤ s₀*|scaledRay m v r s₀ t₀ a ε τ 1| by positivity) |
| 49 | - nlinarith only [hh, hbound] | |
| 49 | + linarith only [hh, hbound] | |
| 50 | 50 | |
| 51 | 51 | theorem scaledVelocity_norm_le_norm3 (m v w : ℝ → Space) {t₀ a ε τ : ℝ} |
| 52 | 52 | (hε : 0 < ε) (hε1 : ε ≤ 1) |
| @@ -66,7 +66,7 @@ theorem scaledVelocity_norm_le_norm3 (m v w : ℝ → Space) {t₀ a ε τ : ℝ | ||
| 66 | 66 | dsimp [norm3] |
| 67 | 67 | have h0 := mul_le_mul_of_nonneg_right hε1 (abs_nonneg (scaledVelocity m v w t₀ a ε τ 0)) |
| 68 | 68 | have h2 := mul_le_mul_of_nonneg_right hε1 (abs_nonneg (scaledVelocity m v w t₀ a ε τ 2)) |
| 69 | - nlinarith only [hh, h0, h2] | |
| 69 | + linarith only [hh, h0, h2] | |
| 70 | 70 | |
| 71 | 71 | theorem physical_size_ge_second (m v r w : ℝ → Space) {s₀ t₀ a ε τ : ℝ} |
| 72 | 72 | (hs₀ : 0 < s₀) (hε : ε ≠ 0) |
| @@ -85,7 +85,7 @@ theorem physical_size_ge_second (m v r w : ℝ → Space) {s₀ t₀ a ε τ : | ||
| 85 | 85 | have hnpos : 0 ≤ scaledRay m v r s₀ t₀ a ε τ 2 := by linarith only [hN] |
| 86 | 86 | rw [abs_of_pos hs₀, abs_of_nonneg hnpos] at hn |
| 87 | 87 | have hr : s₀/2 ≤ ‖r (physicalTime t₀ a ε τ)‖ := by |
| 88 | - nlinarith only [hn, mul_le_mul_of_nonneg_left hN hs₀.le] | |
| 88 | + linarith only [hn, mul_le_mul_of_nonneg_left hN hs₀.le] | |
| 89 | 89 | have hw := frame_coordinate_abs_le_norm (unit (m (physicalTime t₀ a ε τ))) |
| 90 | 90 | (unit (v (physicalTime t₀ a ε τ))) (w (physicalTime t₀ a ε τ)) |
| 91 | 91 | (unit_inner_self hm) (unit_inner_self hv) (unit_inner_zero hmv) 1 |
| @@ -94,7 +94,7 @@ theorem physical_size_ge_second (m v r w : ℝ → Space) {s₀ t₀ a ε τ : | ||
| 94 | 94 | norm_num [velocityScale, Fin.ext_iff] at hw |
| 95 | 95 | rw [abs_of_nonneg hV] at hw |
| 96 | 96 | have hp := mul_le_mul hr hw hV (norm_nonneg _) |
| 97 | - nlinarith only [hp] | |
| 97 | + linarith only [hp] | |
| 98 | 98 | |
| 99 | 99 | theorem physical_size_le_scaled_state (m v r w : ℝ → Space) |
| 100 | 100 | {s₀ t₀ a ε τ Θ ρ P₀ Q₀ : ℝ} |
| @@ -124,13 +124,13 @@ theorem physical_size_le_scaled_state (m v r w : ℝ → Space) | ||
| 124 | 124 | have hV : norm3 (V 0) (V 1) (V 2) ≤ 7*Θ^2*(|V 0|+|V 1|) := by |
| 125 | 125 | dsimp [norm3] |
| 126 | 126 | have ht := mul_le_mul_of_nonneg_right hΘ2 (add_nonneg (abs_nonneg (V 0)) (abs_nonneg (V 1))) |
| 127 | - nlinarith only [hw, ht] | |
| 127 | + linarith only [hw, ht] | |
| 128 | 128 | have hrn := scaledRay_norm_le_norm3 m v r hs₀ hε hε1 hm hv hmv |
| 129 | 129 | have hwn := scaledVelocity_norm_le_norm3 m v w hε hε1 hm hv hmv |
| 130 | 130 | have hr' : ‖r (physicalTime t₀ a ε τ)‖ ≤ 7*s₀*Θ^2 := by |
| 131 | - nlinarith only [hrn, mul_le_mul_of_nonneg_left hR hs₀.le] | |
| 131 | + linarith only [hrn, mul_le_mul_of_nonneg_left hR hs₀.le] | |
| 132 | 132 | have hw' := hwn.trans hV |
| 133 | 133 | have hb := mul_le_mul hr' hw' (norm_nonneg _) (show 0 ≤ 7*s₀*Θ^2 by positivity) |
| 134 | - nlinarith only [hb] | |
| 134 | + linarith only [hb] | |
| 135 | 135 | |
| 136 | 136 | end EulerPacketMovingFrame |
+6 −6 Euler/PacketPhysicalPropagator.lean View file
| @@ -66,11 +66,11 @@ theorem physical_tangent_propagator | ||
| 66 | 66 | change 8000000*e*Θ^21 ≤ 1 at hsmall |
| 67 | 67 | have heΘ : e ≤ e*Θ^21 := by |
| 68 | 68 | simpa only [mul_one] using mul_le_mul_of_nonneg_left (one_le_pow₀ hΘ : 1 ≤ Θ^21) he |
| 69 | - have heSmall : e ≤ 1 := by nlinarith only [hsmall, heΘ, he] | |
| 69 | + have heSmall : e ≤ 1 := by linarith only [hsmall, heΘ, he] | |
| 70 | 70 | have hpow : e*Θ^5 ≤ e*Θ^21 := |
| 71 | 71 | mul_le_mul_of_nonneg_left (pow_le_pow_right₀ hΘ (by decide : 5 ≤ 21)) he |
| 72 | 72 | have hsmallRay : 400*(4*e)*Θ^5 ≤ 1 := by |
| 73 | - nlinarith only [hsmall, hpow, mul_nonneg he (pow_nonneg hΘ0 5)] | |
| 73 | + linarith only [hsmall, hpow, mul_nonneg he (pow_nonneg hΘ0 5)] | |
| 74 | 74 | have ha0 : 0 < a := by linarith |
| 75 | 75 | have hσsq : σ^2 ≤ 1 := by nlinarith only [hσ, hσsmall] |
| 76 | 76 | have herr := physical_matrix_errors ha hε hΘ hG hd heSmall hmap hBd hmd hvd hm0 hv0 hmv |
| @@ -146,9 +146,9 @@ theorem physical_tangent_propagator | ||
| 146 | 146 | have hε1 : ε ≤ 1 := herr.1.trans heSmall |
| 147 | 147 | have hρ0 : 0 ≤ 800*e*Θ^5 := by positivity |
| 148 | 148 | have hρ : 800*e*Θ^5 ≤ 1/2 := by |
| 149 | - nlinarith only [hsmall, hpow, mul_nonneg he (pow_nonneg hΘ0 5)] | |
| 149 | + linarith only [hsmall, hpow, mul_nonneg he (pow_nonneg hΘ0 5)] | |
| 150 | 150 | have hrt : norm3 (Rp t 0-σ^2*t^2) (Rp t 1+2*σ^2*t) (Rp t 2-1) ≤ 800*e*Θ^5 := by |
| 151 | - nlinarith only [(hnear t htT).1] | |
| 151 | + linarith only [(hnear t htT).1] | |
| 152 | 152 | have hPt : |Rp t 0-σ^2*t^2| ≤ 800*e*Θ^5 := by |
| 153 | 153 | dsimp [norm3] at hrt |
| 154 | 154 | linarith only [hrt, abs_nonneg (Rp t 1+2*σ^2*t), abs_nonneg (Rp t 2-1)] |
| @@ -163,11 +163,11 @@ theorem physical_tangent_propagator | ||
| 163 | 163 | have ht2 : t^2 ≤ Θ^2 := (sq_le_sq₀ htT.1 hΘ0).mpr htΘ |
| 164 | 164 | have hP₀ : |σ^2*t^2| ≤ Θ^2 := by |
| 165 | 165 | rw [abs_of_nonneg (by positivity : 0 ≤ σ^2*t^2)] |
| 166 | - nlinarith only [mul_le_mul_of_nonneg_right hσsq (sq_nonneg t), ht2] | |
| 166 | + linarith only [mul_le_mul_of_nonneg_right hσsq (sq_nonneg t), ht2] | |
| 167 | 167 | have hQ₀ : |-2*σ^2*t| ≤ 2*Θ^2 := by |
| 168 | 168 | rw [abs_mul, abs_mul, abs_of_nonneg (sq_nonneg σ), abs_of_nonneg htT.1] |
| 169 | 169 | norm_num only [abs_neg, abs_of_nonneg (by norm_num : (0:ℝ) ≤ 2)] |
| 170 | - nlinarith only [mul_le_mul_of_nonneg_right hσsq htT.1, htΘ, hΘ, sq_nonneg (Θ-1)] | |
| 170 | + linarith only [mul_le_mul_of_nonneg_right hσsq htT.1, htΘ, hΘ, sq_nonneg (Θ-1)] | |
| 171 | 171 | have hfinish := physical_velocity_le_scaled_state m v r w hs₀ hε hε1 |
| 172 | 172 | (hm0 _ htimeT) (hv0 _ htimeT) (hmv _ htimeT) (hpair t htT) hΘ hρ0 hρ hP₀ hQ₀ hPt hQt hNt |
| 173 | 173 | have hstart := scaled_pair_le_physical_norm m v w hε hε1 (hm0 _ htimeS) (hv0 _ htimeS) (hmv _ htimeS) |
+12 −12 Euler/PacketPhysicalSign.lean View file
| @@ -42,20 +42,20 @@ theorem controlled_pressure_ratio_lower | ||
| 42 | 42 | have hρ : ρ ≤ 1/2 := by |
| 43 | 43 | have hp := scaled_power_le hΘ hK he (by decide : 5 ≤ 40) |
| 44 | 44 | dsimp [ρ] |
| 45 | - nlinarith only [hp, hsmall] | |
| 45 | + linarith only [hp, hsmall] | |
| 46 | 46 | have hη : η ≤ 1/2 := by |
| 47 | 47 | have hp := mul_le_mul_of_nonneg_left (pow_le_pow_right₀ hΘ (by decide : 29 ≤ 40)) |
| 48 | 48 | (mul_nonneg hK0 he) |
| 49 | 49 | dsimp [η] |
| 50 | - nlinarith only [hp, hsmall] | |
| 50 | + linarith only [hp, hsmall] | |
| 51 | 51 | have ht2 : τ^2 ≤ Θ^2 := (sq_le_sq₀ hτ0 hΘ0).mpr hτΘ |
| 52 | 52 | have hP₀ : |σ^2*τ^2| ≤ Θ^2 := by |
| 53 | 53 | rw [abs_of_nonneg (mul_nonneg (sq_nonneg σ) (sq_nonneg τ))] |
| 54 | - nlinarith only [mul_le_mul_of_nonneg_right hσ2 (sq_nonneg τ), ht2] | |
| 54 | + linarith only [mul_le_mul_of_nonneg_right hσ2 (sq_nonneg τ), ht2] | |
| 55 | 55 | have hQ₀ : |-2*σ^2*τ| ≤ 2*Θ^2 := by |
| 56 | 56 | rw [abs_mul, abs_mul, abs_of_nonneg (sq_nonneg σ), abs_of_nonneg hτ0] |
| 57 | 57 | norm_num only [abs_neg, abs_of_nonneg (by norm_num : (0:ℝ) ≤ 2)] |
| 58 | - nlinarith only [mul_le_mul_of_nonneg_right hσ2 hτ0, hτΘ, hΘ, sq_nonneg (Θ-1)] | |
| 58 | + linarith only [mul_le_mul_of_nonneg_right hσ2 hτ0, hτΘ, hΘ, sq_nonneg (Θ-1)] | |
| 59 | 59 | obtain ⟨_, hp, hq, hn, hw, _, _⟩ := ray_geometric_bounds (ε := 0) (U := r) (V := 1) |
| 60 | 60 | hΘ hρ0 hρ hP₀ hQ₀ hP hQ hN |
| 61 | 61 | have hβ : |σ^2| ≤ 1 := by simpa only [abs_of_nonneg (sq_nonneg σ)] using hσ2 |
| @@ -63,8 +63,8 @@ theorem controlled_pressure_ratio_lower | ||
| 63 | 63 | ((σ^2*τ^2+σ^2)*1+(-2*σ^2*τ)*r)| ≤ j*(|r|+|1|) := by |
| 64 | 64 | have hh := velocity_numerator_error hΘ hρ0 (show 0 ≤ 3*e by positivity) |
| 65 | 65 | hβ hA hp hq hn hP hQ hN hw |
| 66 | - dsimp [j, ρ] at * | |
| 67 | - nlinarith only [hh] | |
| 66 | + dsimp [ρ] at * | |
| 67 | + linarith only [hh] | |
| 68 | 68 | have hslope := equation30_primary_logderivative_bound hσ hσsmall hZ hfluxZ hZ0 hZ₁0 τ hτ |
| 69 | 69 | have hr₀ : |-Z₁ τ/Z τ| ≤ 4 := by simpa only [neg_div, abs_neg] using hslope |
| 70 | 70 | have hr' : |r/1-(-Z₁ τ/Z τ)| ≤ 10*η := by |
| @@ -77,13 +77,13 @@ theorem controlled_pressure_ratio_lower | ||
| 77 | 77 | have hp33 := mul_le_mul_of_nonneg_left (pow_le_pow_right₀ hΘ (by decide : 33 ≤ 40)) |
| 78 | 78 | (mul_nonneg hK0 he) |
| 79 | 79 | have hs : (10*j+20*Θ^2*η)*Θ^2 ≤ 1/2 := by |
| 80 | - dsimp [j, η] | |
| 81 | - nlinarith only [hp6, hp7, hp33, hsmall] | |
| 80 | + dsimp [η] | |
| 81 | + linarith only [hp6, hp7, hp33, hsmall] | |
| 82 | 82 | have hστ : 1 ≤ σ^2*Θ^2 := by |
| 83 | 83 | have hh := mul_le_mul hσΘ hσΘ (by norm_num : (0:ℝ) ≤ 1) (by positivity : 0 ≤ σ*Θ) |
| 84 | - nlinarith only [hh] | |
| 84 | + linarith only [hh] | |
| 85 | 85 | apply (mul_le_mul_iff_right₀ (sq_pos_of_pos hΘpos)).mp |
| 86 | - nlinarith only [hs, hστ] | |
| 86 | + linarith only [hs, hστ] | |
| 87 | 87 | have hZpos := equation30_global_positive hσ hσsmall hZ hfluxZ hZ0 hZ₁0 τ hτ0 |
| 88 | 88 | have hnum := equation30_ideal_numerator_positive hσ hσsmall hZ hfluxZ hZ0 hZ₁0 τ hτ0 |
| 89 | 89 | have hideal : σ^2 ≤ σ^2*τ^2+σ^2+(-2*σ^2*τ)*(-Z₁ τ/Z τ) := by |
| @@ -91,7 +91,7 @@ theorem controlled_pressure_ratio_lower | ||
| 91 | 91 | have hz : Z τ ≠ 0 := ne_of_gt hZpos |
| 92 | 92 | have hid : (σ^2*τ^2+σ^2+(-2*σ^2*τ)*(-Z₁ τ/Z τ))*Z τ = |
| 93 | 93 | (σ^2*τ^2+σ^2)*Z τ+2*σ^2*τ*Z₁ τ := by field_simp |
| 94 | - nlinarith only [hid, hnum] | |
| 94 | + linarith only [hid, hnum] | |
| 95 | 95 | linarith only [(abs_le.mp herr).1, herrorSmall, hideal] |
| 96 | 96 | |
| 97 | 97 | /-- Source (33), stated for the actual physical ray and velocity. -/ |
| @@ -121,7 +121,7 @@ theorem physical_pressure_positive_order40 (M : Space →L[ℝ] Space) (m v r w | ||
| 121 | 121 | let R := scaledRay m v r s₀ t₀ a ε τ |
| 122 | 122 | let V := scaledVelocity m v w t₀ a ε τ |
| 123 | 123 | have hp := scaled_power_le hΘ hK he (by decide : 5 ≤ 40) |
| 124 | - have hρ : 800*e*Θ^5 ≤ 1/2 := by nlinarith only [hp, hsmall] | |
| 124 | + have hρ : 800*e*Θ^5 ≤ 1/2 := by linarith only [hp, hsmall] | |
| 125 | 125 | have hNne : R 2 ≠ 0 := by |
| 126 | 126 | have hh := (abs_le.mp hN).1 |
| 127 | 127 | change -(800*e*Θ^5) ≤ R 2-1 at hh |
+2 −2 Euler/PacketPhysicalSize.lean View file
| @@ -29,7 +29,7 @@ def normalizedTilt (M : Space →L[ℝ] Space) (r w : Space) : ℝ := | ||
| 29 | 29 | theorem normalizedCoupling_eq (M : Space →L[ℝ] Space) (r w : Space) : |
| 30 | 30 | normalizedCoupling M r w = ⟪r,M w⟫_ℝ/(‖r‖*‖w‖) := by |
| 31 | 31 | simp only [normalizedCoupling, unit, map_smul, real_inner_smul_left, |
| 32 | - real_inner_smul_right, div_eq_mul_inv, mul_inv_rev] | |
| 32 | + real_inner_smul_right, div_eq_mul_inv] | |
| 33 | 33 | ring |
| 34 | 34 | |
| 35 | 35 | theorem cross_smul_smul (a b : ℝ) (r w : Space) : |
| @@ -79,7 +79,7 @@ theorem scaledVelocity_norm_sq (m v w : ℝ → Space) {t₀ a ε τ : ℝ} | ||
| 79 | 79 | change (∑ j : Fin 3, (movingVelocity m v w (physicalTime t₀ a ε τ) j)^2) = _ at h |
| 80 | 80 | simp_rw [← scaledVelocity_restore m v w hε] at h |
| 81 | 81 | norm_num [Fin.sum_univ_three, velocityScale, Fin.ext_iff] at h |
| 82 | - nlinarith only [h] | |
| 82 | + linarith only [h] | |
| 83 | 83 | |
| 84 | 84 | theorem scaledVelocity_norm_ratio_sq (m v w : ℝ → Space) {t₀ a ε τ : ℝ} |
| 85 | 85 | (hε : ε ≠ 0) (hm : m (physicalTime t₀ a ε τ) ≠ 0) (hv : v (physicalTime t₀ a ε τ) ≠ 0) |
+4 −4 Euler/PacketPressureScaleCosts.lean View file
| @@ -46,7 +46,7 @@ def badCostSpec (Cθ CM CMn CHn c : ℝ) (hθ : 0 ≤ Cθ) | ||
| 46 | 46 | |
| 47 | 47 | theorem sigma_exponential_bound (σ x : ℝ) (hσ : 0 < σ) (hσx : σ*x ≤ 2) : |
| 48 | 48 | exp (-(1/(4*σ))) ≤ exp (-x/8) := by |
| 49 | - have hdiv : x/8 ≤ 1/(4*σ) := (le_div_iff₀ (by positivity : 0 < 4*σ)).2 (by nlinarith) | |
| 49 | + have hdiv : x/8 ≤ 1/(4*σ) := (le_div_iff₀ (by positivity : 0 < 4*σ)).2 (by linarith) | |
| 50 | 50 | apply exp_le_exp.mpr |
| 51 | 51 | linarith only [hdiv] |
| 52 | 52 | |
| @@ -110,7 +110,7 @@ theorem badCost_bound (J : ℕ) (hJ : 3 ≤ J) (Cθ CM CMn CHn c : ℝ) | ||
| 110 | 110 | (badConstant*((4+CMn+CHn)*exp (c*z))^degree*(2*Cθ*j^2*(x n)^2)^5*exp (-x n/8)) := hfirst |
| 111 | 111 | _ = B*j^10*(x n)^10*((exp z)^2*(exp (c*z))^degree*exp (-x n/8)) := by |
| 112 | 112 | dsimp [B] |
| 113 | - simp only [mul_pow,← pow_mul] | |
| 113 | + simp only [mul_pow] | |
| 114 | 114 | ring |
| 115 | 115 | _ = B*j^10*(x n)^10*exp (-(1/8)*(x n/j^0)+((degree : ℝ)*c+2)*z) := by rw [hexp] |
| 116 | 116 | _ ≤ badCoefficient Cθ CM CMn CHn*j^10*(x n)^10* |
| @@ -119,7 +119,7 @@ theorem badCost_bound (J : ℕ) (hJ : 3 ≤ J) (Cθ CM CMn CHn c : ℝ) | ||
| 119 | 119 | change B ≤ 1+B |
| 120 | 120 | linarith |
| 121 | 121 | _ = badCost J Cθ CM CMn CHn c x n := by |
| 122 | - simp only [badCost,monomialCost,j,z,p,rpow_zero,pow_zero,div_one] | |
| 122 | + simp only [badCost,monomialCost,j,z,p,rpow_zero,pow_zero] | |
| 123 | 123 | |
| 124 | 124 | theorem goodCost_bound (J : ℕ) (hJ : 1 ≤ J) (X CM M δ hchild : ℝ) |
| 125 | 125 | (hM : 0 ≤ CM) (hδ : 0 ≤ δ) (hh : 0 ≤ hchild) |
| @@ -166,7 +166,7 @@ theorem parameters_le_source_exponential (J D : ℕ) (hJ : 3 ≤ J) (X c : ℝ) | ||
| 166 | 166 | calc |
| 167 | 167 | _ ≤ z := div_le_div_of_nonneg_left hxp.le (by positivity) |
| 168 | 168 | (pow_le_pow_right₀ hp (by decide : 4 ≤ 7)) |
| 169 | - _ ≤ c*z := by nlinarith only [mul_le_mul_of_nonneg_right hc hz] | |
| 169 | + _ ≤ c*z := by linarith only [mul_le_mul_of_nonneg_right hc hz] | |
| 170 | 170 | exact parameter_sum_le K Ti Hi cm ch CMn CHn (exp (c*z)) |
| 171 | 171 | (one_le_exp (mul_nonneg (zero_le_one.trans hc) hz)) hK' hTi' hHi hcm hch hMn hHn |
| 172 | 172 | |
+6 −6 Euler/PacketPrimaryGradeBounds.lean View file
| @@ -54,23 +54,23 @@ theorem grade_fields : | ||
| 54 | 54 | have hv : ((vectorField τ hτ hτT B Y).normalized D.T_pos.le L.fullProfile |
| 55 | 55 | L.fullProfile_pos).WordBound 6 L.R ((H.commonCost*C)*α) 3 := by |
| 56 | 56 | intro n |
| 57 | - simpa only [Field.normalized_path,vectorField,Nat.zero_add,mul_assoc,mul_left_comm,mul_comm] using H.velocity_common_bound Y _ ha 0 hYb n | |
| 57 | + simpa only [Field.normalized_path,vectorField,Nat.zero_add,mul_assoc,mul_left_comm] using H.velocity_common_bound Y _ ha 0 hYb n | |
| 58 | 58 | have ht : ((vectorDerivativeField τ hτ hτT B Y).normalized D.T_pos.le L.fullProfile |
| 59 | 59 | L.fullProfile_pos).WordBound 6 L.R ((H.commonCost*C)*α) 3 := by |
| 60 | 60 | intro n |
| 61 | - simpa only [Field.normalized_path,vectorDerivativeField,Nat.zero_add,mul_assoc,mul_left_comm,mul_comm] using H.derivative_common_bound Y _ ha 0 hYb n | |
| 61 | + simpa only [Field.normalized_path,vectorDerivativeField,Nat.zero_add,mul_assoc,mul_left_comm] using H.derivative_common_bound Y _ ha 0 hYb n | |
| 62 | 62 | have hc : ((correctorField τ hτ hτT B Y).normalized D.T_pos.le L.fullProfile |
| 63 | 63 | L.fullProfile_pos).WordBound 6 L.R ((H.correctorAmplitude (P := P) N*C)*α) 4 := by |
| 64 | 64 | intro n |
| 65 | - simpa only [Field.normalized_path,correctorField,Nat.zero_add,mul_assoc,mul_left_comm,mul_comm] using H.corrector_bound N Y _ ha 0 hYb n | |
| 65 | + simpa only [Field.normalized_path,correctorField,Nat.zero_add,mul_assoc,mul_left_comm] using H.corrector_bound N Y _ ha 0 hYb n | |
| 66 | 66 | have hct : ((correctorDerivativeField τ hτ hτT B Y).normalized D.T_pos.le L.fullProfile |
| 67 | 67 | L.fullProfile_pos).WordBound 6 L.R ((H.correctorTimeAmplitude (P := P) N*C)*α) 4 := by |
| 68 | 68 | intro n |
| 69 | - simpa only [Field.normalized_path,correctorDerivativeField,Nat.zero_add,mul_assoc,mul_left_comm,mul_comm] using H.corrector_time_bound N Y _ ha 0 hYb n | |
| 69 | + simpa only [Field.normalized_path,correctorDerivativeField,Nat.zero_add,mul_assoc,mul_left_comm] using H.corrector_time_bound N Y _ ha 0 hYb n | |
| 70 | 70 | have hp : ((scalarGradientField τ hτ hτT B Y).normalized D.T_pos.le L.fullProfile |
| 71 | 71 | L.fullProfile_pos).WordBound 6 L.R ((3*H.pressureAmplitude (P := P) N*C)*α) 4 := by |
| 72 | 72 | intro n |
| 73 | - simpa only [Field.normalized_path,Nat.zero_add,mul_assoc,mul_left_comm,mul_comm] using H.pressure_gradient_bound N Y _ ha 0 hYb n | |
| 73 | + simpa only [Field.normalized_path,Nat.zero_add,mul_assoc,mul_left_comm] using H.pressure_gradient_bound N Y _ ha 0 hYb n | |
| 74 | 74 | refine ⟨?_,?_,?_,?_,?_⟩ |
| 75 | 75 | · exact (hv.scale_profile D.T_pos.le L.fullProfile L.fullProfile_pos α hα).absorb_amplitude_to |
| 76 | 76 | L.radius_bounds.1 (mul_nonneg H.commonCost_nonneg W.terminal_nonneg) W.common (by norm_num [highShift]) |
| @@ -143,7 +143,7 @@ theorem scaled_initialData_bound (n : ℕ) : | ||
| 143 | 143 | (α*(wordCost (Fin 4) 6 δ*‖ξ‖))*majorant L.R 0 n := by |
| 144 | 144 | have hh := initialData_common_radius D δ hδ (α • ξ) hs standardDirection |
| 145 | 145 | (fun i => by cases i using Fin.cases <;> simp [Prod.norm_def]) 6 hδ1 L.R hR n |
| 146 | - simpa only [norm_smul,Real.norm_eq_abs,abs_of_pos hα,mul_assoc,mul_left_comm,mul_comm] using hh | |
| 146 | + simpa only [norm_smul,Real.norm_eq_abs,abs_of_pos hα,mul_assoc,mul_comm] using hh | |
| 147 | 147 | |
| 148 | 148 | include W in |
| 149 | 149 | /-- The literal α χ₁ fδ ξT terminal datum supplies the required primary |
+1 −1 Euler/PacketRadiusCostPolynomial.lean View file
| @@ -131,7 +131,7 @@ def radiusPolynomial : Polynomial ℝ := | ||
| 131 | 131 | |
| 132 | 132 | theorem radiusPolynomial_eval (W : ℝ) : radiusPolynomial.eval W=radiusEnvelope W := by |
| 133 | 133 | simp only [radiusPolynomial,radiusEnvelope,requiredEnvelope,weakEnvelope,strongEnvelope, |
| 134 | - inverseEnvelope,formEnvelope,endpointEnvelope,forwardEnvelope,jetEnvelope,meanEnvelope, | |
| 134 | + formEnvelope,endpointEnvelope,forwardEnvelope,jetEnvelope,meanEnvelope, | |
| 135 | 135 | gradeEnvelope,commonEnvelope,physicalEnvelope,normalEnvelope,pressureEnvelope,terminalEnvelope, |
| 136 | 136 | coeffPoly,Polynomial.eval_add,Polynomial.eval_mul,Polynomial.eval_pow,Polynomial.eval_ofNat, |
| 137 | 137 | Polynomial.eval_one,Polynomial.eval_X,Polynomial.eval_C,inversePolynomial_eval, |
+1 −1 Euler/PacketReferenceRatio.lean View file
| @@ -45,6 +45,6 @@ theorem equation30_slope_ratio_dominates | ||
| 45 | 45 | have hr := hmono ⟨hs, hst⟩ ⟨ht, le_rfl⟩ hst |
| 46 | 46 | have hp := (div_le_div_iff₀ (hFp s hs) (hFp t ht)).mp hr |
| 47 | 47 | apply (div_le_div_iff₀ (hFp s hs) (hZp s hs)).mpr |
| 48 | - nlinarith only [hp] | |
| 48 | + linarith only [hp] | |
| 49 | 49 | |
| 50 | 50 | end EulerPacketMovingFrame |
+3 −4 Euler/PacketScalarPressureGrade.lean View file
| @@ -49,8 +49,7 @@ theorem angularGradientField_normalized_bound (hT : 0 ≤ T) | ||
| 49 | 49 | ((EulerPacketPressure.angularGradientField P raw p hp he m).normalized hT g hg).WordBound |
| 50 | 50 | q R A (d+1) := by |
| 51 | 51 | let L := (toSpanSingleton ℝ m).comp scalarProject |
| 52 | - have hL : ‖L‖ ≤ 1 := by | |
| 53 | - exact (opNorm_comp_le _ _).trans (by simpa only [norm_toSpanSingleton,scalarProject_norm,mul_one]) | |
| 52 | + have hL : ‖L‖ ≤ 1 := (opNorm_comp_le _ _).trans (by simpa only [norm_toSpanSingleton,scalarProject_norm,mul_one]) | |
| 54 | 53 | have hh := (hb.normalized_derivative hT 0).map L |
| 55 | 54 | have hh' := hh.mono_amplitude hR (by simpa only [one_mul] using mul_le_mul_of_nonneg_right hL hA) |
| 56 | 55 | apply hh'.of_path_eq |
| @@ -129,7 +128,7 @@ theorem Budget.angular_grade_bound (L : Budget D τ hτ hτT B (Fin 4) 6) | ||
| 129 | 128 | (c • L.fullProfile) (smul_profile_pos L.fullProfile L.fullProfile_pos c hc) |
| 130 | 129 | D.m₀ D.m₀_unit.le (zero_le_one.trans L.radius_bounds.1) zero_le_one |
| 131 | 130 | (L.scalar_grade_bound_pred N W G F c hc p hp hforce) |
| 132 | - simpa only [angularField,Field.WordBound,Field.normalized_path, | |
| 131 | + simpa only [angularField,Field.normalized_path, | |
| 133 | 132 | show highShift p-1+1=highShift p by unfold highShift; omega] using hh |
| 134 | 133 | |
| 135 | 134 | end EulerTransversePacketJoin |
| @@ -166,7 +165,7 @@ theorem Budget.scalar_grade_bound_pred | ||
| 166 | 165 | L.fullProfile_pos).WordBound 6 L.R ((H.pressureAmplitude (P := P) N*C)*α) 3 := by |
| 167 | 166 | apply scalarEmbeddingField_normalized_bound _ _ _ _ D.T_pos.le L.fullProfile L.fullProfile_pos |
| 168 | 167 | intro n |
| 169 | - simpa only [Nat.zero_add,mul_assoc,mul_left_comm,mul_comm] using | |
| 168 | + simpa only [Nat.zero_add,mul_assoc,mul_left_comm] using | |
| 170 | 169 | H.pressure_bound N Y (α*C) (mul_nonneg hα.le W.terminal_nonneg) 0 hYb n |
| 171 | 170 | have hnonneg := mul_nonneg (H.pressureAmplitude_nonneg (P := P) N) W.terminal_nonneg |
| 172 | 171 | have hcost : H.pressureAmplitude (P := P) N*C ≤ L.R := by |
+3 −3 Euler/PacketShearMotion.lean View file
| @@ -41,7 +41,7 @@ theorem physical_shear_motion_bound | ||
| 41 | 41 | have hG0 : 0 ≤ G := by linarith |
| 42 | 42 | have hscale : |ε/a| ≤ 2*ε := by |
| 43 | 43 | rw [abs_div, abs_of_pos hε, abs_of_pos ha0, div_le_iff₀ ha0] |
| 44 | - nlinarith only [mul_nonneg hε.le (sub_nonneg.mpr ha)] | |
| 44 | + linarith only [mul_nonneg hε.le (sub_nonneg.mpr ha)] | |
| 45 | 45 | have hBF : ∀ τ ∈ Icc 0 Θ, ∀ i j, |Bf τ i j| ≤ 4*G := by |
| 46 | 46 | intro τ hτ i j |
| 47 | 47 | have ht := hmap hτ |
| @@ -75,7 +75,7 @@ theorem physical_shear_motion_bound | ||
| 75 | 75 | rw [abs_mul] |
| 76 | 76 | calc |
| 77 | 77 | _ ≤ (13*G^2)*(2*ε) := mul_le_mul hrate' hscale (abs_nonneg _) (by positivity) |
| 78 | - _ ≤ 2*ε*(4*G)^2 := by nlinarith only [mul_nonneg hε.le (sq_nonneg G)] | |
| 78 | + _ ≤ 2*ε*(4*G)^2 := by linarith only [mul_nonneg hε.le (sq_nonneg G)] | |
| 79 | 79 | have hHF : ∀ τ ∈ Icc 0 Θ, HasDerivWithinAt Hf (H₁f τ) (Icc 0 Θ) τ := by |
| 80 | 80 | intro τ hτ |
| 81 | 81 | have ht := hmap hτ |
| @@ -95,7 +95,7 @@ theorem physical_shear_motion_bound | ||
| 95 | 95 | calc |
| 96 | 96 | _ ≤ (2*G*|Hf τ|)*(2*ε) := mul_le_mul hrate' hscale (abs_nonneg _) (by positivity) |
| 97 | 97 | _ ≤ (4*ε*(4*G))*|Hf τ| := by |
| 98 | - nlinarith only [mul_nonneg (mul_nonneg hε.le hG0) (abs_nonneg (Hf τ))] | |
| 98 | + linarith only [mul_nonneg (mul_nonneg hε.le hG0) (abs_nonneg (Hf τ))] | |
| 99 | 99 | have herr := normalized_motion_errors_within ha hε hΘ (show 1 ≤ 4*G by linarith) |
| 100 | 100 | hd hsmall hBF hEF (fun τ hτ => hDF τ hτ 0 1) (fun τ hτ => hDF τ hτ 2 1) |
| 101 | 101 | (fun τ hτ => hDFbound τ hτ 0 1) (fun τ hτ => hDFbound τ hτ 2 1) |
+7 −7 Euler/PacketSizeComparison.lean View file
| @@ -25,10 +25,10 @@ theorem scalar_size_comparison {s₀ D D₀ E V Z : ℝ} | ||
| 25 | 25 | have hVp : 0 ≤ V := by linarith only [hVlo, hZ] |
| 26 | 26 | have hrootD : Real.sqrt D₀/2 ≤ Real.sqrt D := by |
| 27 | 27 | have hh : Real.sqrt D₀ ≤ 2*Real.sqrt D := Real.sqrt_le_iff.mpr |
| 28 | - ⟨by positivity, by nlinarith only [Real.sq_sqrt hDp.le, hd.1, hD₀]⟩ | |
| 28 | + ⟨by positivity, by linarith only [Real.sq_sqrt hDp.le, hd.1, hD₀]⟩ | |
| 29 | 29 | linarith only [hh] |
| 30 | 30 | have hrootD' : Real.sqrt D ≤ 2*Real.sqrt D₀ := Real.sqrt_le_iff.mpr |
| 31 | - ⟨by positivity, by nlinarith only [Real.sq_sqrt hD₀p, hd.2, hD₀]⟩ | |
| 31 | + ⟨by positivity, by linarith only [Real.sq_sqrt hD₀p, hd.2, hD₀]⟩ | |
| 32 | 32 | have hrootE : 1 ≤ Real.sqrt E := Real.one_le_sqrt.mpr hElo |
| 33 | 33 | have hrootE' : Real.sqrt E ≤ 2 := Real.sqrt_le_iff.mpr ⟨by norm_num, by linarith only [hEup]⟩ |
| 34 | 34 | have hlower := mul_le_mul |
| @@ -37,7 +37,7 @@ theorem scalar_size_comparison {s₀ D D₀ E V Z : ℝ} | ||
| 37 | 37 | have hupper := mul_le_mul |
| 38 | 38 | (mul_le_mul (mul_le_mul_of_nonneg_left hrootD' hs₀) hVup hVp (by positivity)) |
| 39 | 39 | hrootE' (Real.sqrt_nonneg E) (by positivity) |
| 40 | - constructor <;> nlinarith only [hlower, hupper] | |
| 40 | + constructor <;> linarith only [hlower, hupper] | |
| 41 | 41 | |
| 42 | 42 | /-- The actual primary size lies between fixed multiples of its ideal |
| 43 | 43 | size under the same quantitative ray and relative-state estimates already |
| @@ -72,7 +72,7 @@ theorem physical_size_comparison_order40 (m v r w : ℝ → Space) | ||
| 72 | 72 | exact mul_le_mul_of_nonneg_left (pow_le_pow_right₀ hΘ (by decide : 29 ≤ 40)) |
| 73 | 73 | (mul_nonneg hK0 he) |
| 74 | 74 | have hρ0 : 0 ≤ ρ := by dsimp [ρ]; positivity |
| 75 | - have hρ : ρ ≤ 1/2 := by have hh := hp 5 (by decide); dsimp [ρ]; nlinarith only [hh, hA] | |
| 75 | + have hρ : ρ ≤ 1/2 := by have hh := hp 5 (by decide); dsimp [ρ]; linarith only [hh, hA] | |
| 76 | 76 | have hη0 : 0 ≤ η := by dsimp [η]; positivity |
| 77 | 77 | have hη : η ≤ 1/2 := by linarith only [hηA, hA] |
| 78 | 78 | have he1 : e ≤ 1 := by have hh := hp 0 (by decide); norm_num at hh; linarith only [hh, hA] |
| @@ -97,14 +97,14 @@ theorem physical_size_comparison_order40 (m v r w : ℝ → Space) | ||
| 97 | 97 | rw [← hthird] at hwabs |
| 98 | 98 | have hE := velocity_direction_norm_bound (ε := ε) hΘ hrabs hwabs |
| 99 | 99 | have hEup : velocityDirectionNormSq ε (V 0/V 1) (V 2/V 1) ≤ 2 := by |
| 100 | - nlinarith only [hE.2, hε4, hA] | |
| 100 | + linarith only [hE.2, hε4, hA] | |
| 101 | 101 | obtain ⟨_, _, _, _, _, _, hDD⟩ := ray_geometric_bounds (ε := ε) (U := V 0/V 1) (V := 1) |
| 102 | 102 | hΘ hρ0 hρ hP₀ hQ₀ hP hQ hN |
| 103 | 103 | have hDsmall : |rayDenominator ε (R 0) (R 1) (R 2)-(1+P₀^2)| ≤ 1/2 := by |
| 104 | 104 | have hp7 := hp 7 (by decide) |
| 105 | 105 | dsimp [ρ] at hDD |
| 106 | - nlinarith only [hDD, hp7, hε4, hA] | |
| 107 | - have hb := scalar_size_comparison hs₀.le (show 1 ≤ 1+P₀^2 by nlinarith [sq_nonneg P₀]) | |
| 106 | + linarith only [hDD, hp7, hε4, hA] | |
| 107 | + have hb := scalar_size_comparison hs₀.le (show 1 ≤ 1+P₀^2 by linarith [sq_nonneg P₀]) | |
| 108 | 108 | hDsmall hE.1 hEup hZ hVdiff |
| 109 | 109 | have hid := physical_primary_size m v r w hs₀ (ne_of_gt hε) hm hv hmv hVp |
| 110 | 110 | rw [hid] |
+3 −3 Euler/PacketSourceFrequency.lean View file
| @@ -65,7 +65,7 @@ theorem smallPower_le_exp_sqrt (k : ℝ) (hk : 0 < k) : | ||
| 65 | 65 | rw [Real.rpow_def_of_pos hk] |
| 66 | 66 | apply Real.exp_le_exp.mpr |
| 67 | 67 | rw [hlog] at hl |
| 68 | - nlinarith only [hl,hs] | |
| 68 | + linarith only [hl,hs] | |
| 69 | 69 | |
| 70 | 70 | theorem correction_guards (C T D ρ0 k : ℝ) (hk : 1 ≤ k) (hρ : 0 < ρ0) |
| 71 | 71 | (hX : 64 ≤ expansion k) (hlog : 1 ≤ Real.log k) |
| @@ -81,9 +81,9 @@ theorem correction_guards (C T D ρ0 k : ℝ) (hk : 1 ≤ k) (hρ : 0 < ρ0) | ||
| 81 | 81 | linarith |
| 82 | 82 | · apply radius_decay C T D ρ0 k (expansion k) hk0 |
| 83 | 83 | · have hh := (div_le_iff₀ hρ).mp (hdrift.trans (smallPower_le_frequency k hk)) |
| 84 | - nlinarith only [hh] | |
| 84 | + linarith only [hh] | |
| 85 | 85 | · have hh := (div_le_iff₀ hρ).mp (herror.trans (smallPower_le_exp_sqrt k hk0)) |
| 86 | - nlinarith only [hh] | |
| 86 | + linarith only [hh] | |
| 87 | 87 | |
| 88 | 88 | /-- Every finite list of fixed source costs fits the required very small |
| 89 | 89 | power after one sufficiently large frequency choice. -/ |
+12 −12 Euler/PacketSourceRadiusPolynomial.lean View file
| @@ -45,7 +45,7 @@ theorem primitiveLift_bounds (W : ℝ) (hW : 0 ≤ W) : | ||
| 45 | 45 | have hop : 0 ≤ operatorEnvelope W := by unfold operatorEnvelope; positivity |
| 46 | 46 | have hp : 0 ≤ projectedEnvelope W := by unfold projectedEnvelope; positivity |
| 47 | 47 | unfold primitiveLift |
| 48 | - exact ⟨by nlinarith,by nlinarith,by nlinarith,by nlinarith,by nlinarith,by nlinarith,by nlinarith,by nlinarith⟩ | |
| 48 | + exact ⟨by nlinarith,by nlinarith,by nlinarith,by nlinarith,by linarith,by nlinarith,by nlinarith,by nlinarith⟩ | |
| 49 | 49 | |
| 50 | 50 | theorem coeff_self_lower (W : ℝ) (hW : 0 ≤ W) : W ≤ coeff W W := by |
| 51 | 51 | have hr : 0 ≤ sobolevCoefficientRadius (Fin 4) W := sobolevCoefficientRadius_nonneg W hW |
| @@ -57,7 +57,7 @@ theorem coeff_self_lower (W : ℝ) (hW : 0 ≤ W) : W ≤ coeff W W := by | ||
| 57 | 57 | change W ≤ (2 : ℝ)^6*W*(∑ k ∈ Finset.range (6+1), sobolevCoefficientRadius (Fin 4) W^k*(k.factorial : ℝ)^2) |
| 58 | 58 | have hm := mul_le_mul_of_nonneg_left hs (by positivity : 0 ≤ (2 : ℝ)^6*W) |
| 59 | 59 | norm_num only [mul_one,pow_succ,pow_zero] at hm ⊢ |
| 60 | - nlinarith | |
| 60 | + linarith | |
| 61 | 61 | |
| 62 | 62 | theorem weakEnvelope_lower_inputs (V : ℝ) (hV : 1 ≤ V) : |
| 63 | 63 | V ≤ EulerPacketRadiusPolynomial.inverseEnvelope V ∧ V ≤ formEnvelope V ∧ |
| @@ -65,21 +65,21 @@ theorem weakEnvelope_lower_inputs (V : ℝ) (hV : 1 ≤ V) : | ||
| 65 | 65 | have hv0 := zero_le_one.trans hV |
| 66 | 66 | have hv2 : V ≤ V^2 := by nlinarith |
| 67 | 67 | have hv5 : 0 ≤ V^5 := pow_nonneg hv0 5 |
| 68 | - have hinner : V ≤ 1+2*V^5+2*V^2 := by nlinarith | |
| 69 | - have hinner1 : 1 ≤ 1+2*V^5+2*V^2 := by nlinarith only [hv5,sq_nonneg V] | |
| 68 | + have hinner : V ≤ 1+2*V^5+2*V^2 := by linarith | |
| 69 | + have hinner1 : 1 ≤ 1+2*V^5+2*V^2 := by linarith only [hv5,sq_nonneg V] | |
| 70 | 70 | have hi2 : 1+2*V^5+2*V^2 ≤ (1+2*V^5+2*V^2)^2 := by nlinarith |
| 71 | 71 | have ha := coeff_self_lower V hv0 |
| 72 | 72 | have hb : coeff V V ≤ coeff V (2*V) := sobolevCoefficientAmplitude_mono_all 6 hv0 hv0 le_rfl (by linarith) |
| 73 | 73 | have he : V ≤ endpointEnvelope V := by |
| 74 | 74 | unfold endpointEnvelope |
| 75 | 75 | nlinarith only [mul_le_mul_of_nonneg_right ha hv0,hv2] |
| 76 | - refine ⟨by unfold EulerPacketRadiusPolynomial.inverseEnvelope; nlinarith,?_,?_⟩ | |
| 76 | + refine ⟨by unfold EulerPacketRadiusPolynomial.inverseEnvelope; linarith,?_,?_⟩ | |
| 77 | 77 | · unfold formEnvelope |
| 78 | 78 | nlinarith only [mul_nonneg (sq_nonneg V) hv0,hv2] |
| 79 | 79 | · have hprod := mul_le_mul_of_nonneg_right (ha.trans hb) (show 0 ≤ endpointEnvelope V by |
| 80 | 80 | unfold endpointEnvelope |
| 81 | - exact mul_nonneg (by nlinarith : 0 ≤ 6*coeff V V) hv0) | |
| 82 | - nlinarith only [hprod,mul_nonneg (sub_nonneg.mpr hV) (by nlinarith only [he,hv0] : 0 ≤ endpointEnvelope V),he] | |
| 81 | + exact mul_nonneg (by linarith : 0 ≤ 6*coeff V V) hv0) | |
| 82 | + nlinarith only [hprod,mul_nonneg (sub_nonneg.mpr hV) (by linarith only [he,hv0] : 0 ≤ endpointEnvelope V),he] | |
| 83 | 83 | |
| 84 | 84 | theorem block_le_weak (V : ℝ) (hV : 1 ≤ V) (I R C D : ℝ) |
| 85 | 85 | (hI0 : 0 ≤ I) (hR0 : 0 ≤ R) (hC0 : 0 ≤ C) (hD0 : 0 ≤ D) |
| @@ -164,7 +164,7 @@ theorem forward_scalar_le (T C A D CB R V : ℝ) | ||
| 164 | 164 | have hc : C*A+C*T*D ≤ V*(2*V+2) := by |
| 165 | 165 | calc |
| 166 | 166 | _ ≤ V*V+V*1*V := by gcongr |
| 167 | - _ ≤ _ := by nlinarith | |
| 167 | + _ ≤ _ := by linarith | |
| 168 | 168 | unfold forwardSobolevCost forwardEnvelope |
| 169 | 169 | apply add_le_add le_rfl |
| 170 | 170 | apply mul_le_mul hsi _ (by positivity) hsiV |
| @@ -207,7 +207,7 @@ theorem joined_radius_le (T S Ti R C C1 C2 Cp W : ℝ) (hW : 1 ≤ W) | ||
| 207 | 207 | apply block_le_weak V hV _ _ _ _ (by unfold gramInverseEnvelope; positivity) hR0 |
| 208 | 208 | (by positivity) (accelerationBlockAmplitude_nonneg 6 R C C1 1 v hR0 hC0 hC10 zero_le_one hv0) |
| 209 | 209 | (hGram.trans hWV) (hR.trans hWV) |
| 210 | - · exact (by nlinarith only [pow_le_pow_left₀ hC0 hC 2] : 3*C^2 ≤ 3*W^2).trans hb.2.2.2.2.1 | |
| 210 | + · exact (by linarith only [pow_le_pow_left₀ hC0 hC 2] : 3*C^2 ≤ 3*W^2).trans hb.2.2.2.2.1 | |
| 211 | 211 | · exact (acceleration_scalar_le R C C1 v W hR0 hC0 hC10 hv0 hW0 hR hC hC1 hv).trans hb.2.2.2.2.2.1 |
| 212 | 212 | have ha1 := hacc 1 zero_le_one (by linarith) |
| 213 | 213 | have ha2 := hacc (Ti+2) (by positivity) (by linarith) |
| @@ -239,7 +239,7 @@ theorem joined_radius_le (T S Ti R C C1 C2 Cp W : ℝ) (hW : 1 ≤ W) | ||
| 239 | 239 | 16*(4*V)+2*forwardEnvelope V*(16*(4*V)+1) := by gcongr |
| 240 | 240 | _ ≤ sourceRadiusEnvelope W := by |
| 241 | 241 | change _ ≤ 1+V+6*weakEnvelope V*(16*V+1)+64*V+2*forwardEnvelope V*(64*V+1) |
| 242 | - nlinarith only [hV0] | |
| 242 | + linarith only [hV0] | |
| 243 | 243 | |
| 244 | 244 | theorem mean_radius_le (T Ti R C C1 C2 L W : ℝ) (hW : 1 ≤ W) |
| 245 | 245 | (hT0 : 0 ≤ T) (hT : T ≤ 1) |
| @@ -280,7 +280,7 @@ theorem mean_radius_le (T Ti R C C1 C2 L W : ℝ) (hW : 1 ≤ W) | ||
| 280 | 280 | apply block_le_weak V hV _ _ _ _ (by unfold gramInverseEnvelope; positivity) hR0 |
| 281 | 281 | (by positivity) (accelerationBlockAmplitude_nonneg 6 R C C1 1 v hR0 hC0 hC10 zero_le_one hv0) |
| 282 | 282 | (hGram.trans hWV) hRV |
| 283 | - · exact (by nlinarith only [pow_le_pow_left₀ hC0 hC 2] : 3*C^2 ≤ 3*W^2).trans hb.2.2.2.2.1 | |
| 283 | + · exact (by linarith only [pow_le_pow_left₀ hC0 hC 2] : 3*C^2 ≤ 3*W^2).trans hb.2.2.2.2.1 | |
| 284 | 284 | · exact (acceleration_scalar_le R C C1 v W hR0 hC0 hC10 hv0 hW0 hR hC hC1 hv).trans hb.2.2.2.2.2.1 |
| 285 | 285 | have ha1 := hgram 1 zero_le_one (by linarith) |
| 286 | 286 | have ha2 := hgram (Ti+2) (by positivity) (by linarith) |
| @@ -295,7 +295,7 @@ theorem mean_radius_le (T Ti R C C1 C2 L W : ℝ) (hW : 1 ≤ W) | ||
| 295 | 295 | _ ≤ 1+2*(weakEnvelope V+weakEnvelope V+weakEnvelope V)*(16*V+1) := by gcongr |
| 296 | 296 | _ ≤ sourceRadiusEnvelope W := by |
| 297 | 297 | change _ ≤ 1+V+6*weakEnvelope V*(16*V+1)+64*V+2*forwardEnvelope V*(64*V+1) |
| 298 | - nlinarith only [hV0,mul_nonneg hfw (by positivity : 0 ≤ 64*V+1)] | |
| 298 | + linarith only [hV0,mul_nonneg hfw (by positivity : 0 ≤ 64*V+1)] | |
| 299 | 299 | |
| 300 | 300 | theorem le_sourceRadiusEnvelope (W : ℝ) (hW : 0 ≤ W) : W ≤ sourceRadiusEnvelope W := by |
| 301 | 301 | have hv := (primitiveLift_bounds W hW).1 |
+4 −4 Euler/PacketSourceScaleActual.lean View file
| @@ -123,7 +123,7 @@ theorem geometryError_succ_le (J D : ℕ) (hJ : 3 ≤ J) (C c X : ℝ) (hC : 1 | ||
| 123 | 123 | have hn₀ : 0 ≤ sourceNeighborError J c (scaleSequence J X) (n+1) := (exp_pos _).le |
| 124 | 124 | unfold geometryError sourceCoefficientError |
| 125 | 125 | rw [priorError_succ_eq J D hJ1 X n] |
| 126 | - nlinarith only [hprod, hn, hp₀, hn₀] | |
| 126 | + linarith only [hprod, hn, hp₀, hn₀] | |
| 127 | 127 | |
| 128 | 128 | theorem geometryError_zero_le (J D : ℕ) (hJ : 3 ≤ J) (C c X : ℝ) (hC : 1 ≤ C) |
| 129 | 129 | (hX : 1 ≤ X) (hc : 0 ≤ c) (a : ℕ → ℝ) (ha : 0 ≤ a 0) (ha₂ : a 0 ≤ 2) |
| @@ -147,7 +147,7 @@ theorem geometryError_zero_le (J D : ℕ) (hJ : 3 ≤ J) (C c X : ℝ) (hC : 1 | ||
| 147 | 147 | unfold geometryError sourceCoefficientError |
| 148 | 148 | rw [priorError_zero_eq J D hXp] |
| 149 | 149 | norm_num only [olderShear] |
| 150 | - nlinarith only [he, hn, hp₀, hs₀] | |
| 150 | + linarith only [he, hn, hp₀, hs₀] | |
| 151 | 151 | |
| 152 | 152 | theorem geometryErrorCost_bound (J D : ℕ) (hJ : 3 ≤ J) (C c X : ℝ) (hC : 1 ≤ C) |
| 153 | 153 | (hX : 1 ≤ X) (hc : 0 ≤ c) (a : ℕ → ℝ) (ha : ∀ n, 0 ≤ a n) (ha₂ : ∀ n, a n ≤ 2) |
| @@ -169,7 +169,7 @@ theorem geometryErrorCost_bound (J D : ℕ) (hJ : 3 ≤ J) (C c X : ℝ) (hC : 1 | ||
| 169 | 169 | have hc₀ := mul_nonneg he₀ (pow_nonneg hθ 60) |
| 170 | 170 | simp only [ite_true] |
| 171 | 171 | unfold geometryErrorCost coefficientCost baseErrorCost |
| 172 | - nlinarith only [hh, hc₀] | |
| 172 | + linarith only [hh, hc₀] | |
| 173 | 173 | | succ n => |
| 174 | 174 | have hh := mul_le_mul_of_nonneg_right |
| 175 | 175 | (geometryError_succ_le J D hJ C c X hC hX hc a ha ha₂ hbaseH hbaseK n) |
| @@ -208,7 +208,7 @@ theorem baseErrorCost_tendsto_zero (J D : ℕ) (hJ : 1 ≤ J) (hD : 1000 ≤ D) | ||
| 208 | 208 | have hθ₀ : 0 ≤ sourceTheta J C (scaleSequence J X) 0 := |
| 209 | 209 | le_trans zero_le_one (sourceTheta_bounds hJ hC hx1 0).1 |
| 210 | 210 | have hθ : sourceTheta J C (scaleSequence J X) 0 ≤ T*X^2 := by |
| 211 | - simpa only [T, Nat.add_zero, scaleSequence_zero] using (sourceTheta_bounds hJ hC hx1 0).2 | |
| 211 | + simpa only [Nat.add_zero, scaleSequence_zero] using (sourceTheta_bounds hJ hC hx1 0).2 | |
| 212 | 212 | have hinner : 16*(128*X^(-500 : ℝ)*sourceTheta J C (scaleSequence J X) 0+X^(-(D:ℝ)/4)) ≤ |
| 213 | 213 | 16*(128*X^(-500 : ℝ)*(T*X^2)+X^(-(D:ℝ)/4)) := by |
| 214 | 214 | gcongr |
+6 −6 Euler/PacketSourceScaleBounds.lean View file
| @@ -44,7 +44,7 @@ theorem theta_weighted_monomial_bound | ||
| 44 | 44 | have hh := mul_le_mul_of_nonneg_left hθ |
| 45 | 45 | (monomialCost_nonneg J d B a b c D p q x n hD (le_trans zero_le_one (hx n))) |
| 46 | 46 | convert! hh using 1 |
| 47 | - simp only [monomialCost, mul_pow, pow_add, ← pow_mul] | |
| 47 | + simp only [monomialCost, mul_pow, ← pow_mul] | |
| 48 | 48 | ring |
| 49 | 49 | |
| 50 | 50 | theorem sourcePriorError_bound (J : ℕ) (hJ : 3 ≤ J) (x : ℕ → ℝ) (n : ℕ) |
| @@ -71,7 +71,7 @@ theorem sourceNeighborError_bound (J : ℕ) (hJ : 3 ≤ J) (c : ℝ) (hc : 0 ≤ | ||
| 71 | 71 | unfold sourceNeighborError |
| 72 | 72 | apply exp_le_exp.mpr |
| 73 | 73 | simp only [div_eq_mul_inv] at hd ⊢ |
| 74 | - nlinarith only [hd] | |
| 74 | + linarith only [hd] | |
| 75 | 75 | |
| 76 | 76 | /-- The complete coefficient error is controlled by three explicit costs, |
| 77 | 77 | with exactly the preceding-stage powers and the real support exponent 7/2. -/ |
| @@ -93,7 +93,7 @@ theorem sourceCoefficientError_bound (J : ℕ) (hJ : 3 ≤ J) (C c : ℝ) | ||
| 93 | 93 | sourceTheta J C x n^A ≤ |
| 94 | 94 | monomialCost J 2 9 7 (1/2) 2 (128*(2*C)^(A+1)) (2*(A+1)) (2*(A+1)) x n := by |
| 95 | 95 | apply le_trans _ (by simpa only [Nat.zero_add] using hsm) |
| 96 | - convert! hs16 using 1 <;> simp only [monomialCost, rpow_ofNat, pow_zero, mul_one, pow_succ] <;> ring | |
| 96 | + convert! hs16 using 1 <;> simp only [monomialCost, rpow_ofNat, pow_zero, pow_succ] <;> ring | |
| 97 | 97 | have hp := mul_le_mul_of_nonneg_right |
| 98 | 98 | (sourcePriorError_bound J hJ x n (hxp n)) (pow_nonneg hθ A) |
| 99 | 99 | have hp16 := mul_le_mul_of_nonneg_left hp (by norm_num : (0:ℝ) ≤ 16) |
| @@ -149,7 +149,7 @@ theorem sourceParentSquareRatio_eq (J : ℕ) (x : ℕ → ℝ) (n : ℕ) : | ||
| 149 | 149 | exp (2*x n/((J-1+n : ℕ) : ℝ)^7)/exp (x n/((J+n : ℕ) : ℝ)^5) = |
| 150 | 150 | monomialCost J 1 7 5 1 2 1 0 0 x n := by |
| 151 | 151 | rw [← exp_sub] |
| 152 | - simp only [monomialCost, pow_zero, mul_one, one_mul, neg_one_mul, rpow_ofNat] | |
| 152 | + simp only [monomialCost, pow_zero, mul_one, one_mul, rpow_ofNat] | |
| 153 | 153 | congr 1 |
| 154 | 154 | ring |
| 155 | 155 | |
| @@ -163,9 +163,9 @@ theorem sourceGoodCost_bound (J : ℕ) (hJ : 3 ≤ J) (x : ℕ → ℝ) (n : ℕ | ||
| 163 | 163 | have hd₂ := div_le_div_of_nonneg_left hx (by positivity : 0 < ((J-1+n : ℕ) : ℝ)^5) |
| 164 | 164 | (pow_le_pow_right₀ hp (by decide : 5 ≤ 7)) |
| 165 | 165 | rw [← exp_add, ← exp_add] |
| 166 | - simp only [monomialCost, pow_zero, mul_one, one_mul, neg_one_mul, rpow_ofNat] | |
| 166 | + simp only [monomialCost, pow_zero, one_mul, neg_one_mul, rpow_ofNat] | |
| 167 | 167 | apply exp_le_exp.mpr |
| 168 | 168 | simp only [div_eq_mul_inv] at hd₁ hd₂ ⊢ |
| 169 | - nlinarith only [hd₁, hd₂] | |
| 169 | + linarith only [hd₁, hd₂] | |
| 170 | 170 | |
| 171 | 171 | end EulerPacketSourceScaleBounds |
+1 −1 Euler/PacketSourceScaleFromCosts.lean View file
| @@ -80,7 +80,7 @@ theorem actualBounds_of_uniform (J D : ℕ) (hJ : 3 ≤ J) (C c X δ : ℝ) | ||
| 80 | 80 | hn.coefficient.summable.mul_left 16,?_⟩ |
| 81 | 81 | change (∑' n,16*coefficientCost J C c 60 (scaleSequence J X) n) ≤ δ/2 |
| 82 | 82 | rw [tsum_mul_left] |
| 83 | - nlinarith only [hn.coefficient.total_le] | |
| 83 | + linarith only [hn.coefficient.total_le] | |
| 84 | 84 | have hz : SmallSeries z (δ/2) := by |
| 85 | 85 | refine ⟨?_,(hasSum_ite_eq 0 (baseErrorCost J D C X)).summable,?_⟩ |
| 86 | 86 | · intro n |
+10 −10 Euler/PacketSourceScaleGuards.lean View file
| @@ -72,7 +72,7 @@ theorem actualWidths_contract (J D : ℕ) (hJ : 3 ≤ J) (C c X δ : ℝ) | ||
| 72 | 72 | have hh := (actualTimeRatio_le J (by omega) X (by linarith only [hX]) hb.initial_shear n).trans |
| 73 | 73 | ((hb.normal.width.term_le n).trans hδ) |
| 74 | 74 | have hmul := (div_le_iff₀ (timeWidth_pos J (by omega) (by linarith only [hX]) n)).mp hh |
| 75 | - nlinarith only [hmul] | |
| 75 | + linarith only [hmul] | |
| 76 | 76 | |
| 77 | 77 | theorem coefficient_small (J D : ℕ) (hJ : 3 ≤ J) (C c X δ : ℝ) |
| 78 | 78 | (hC : 1 ≤ C) (hX : 8 ≤ X) (hb : ActualBounds J D C c X δ) |
| @@ -93,13 +93,13 @@ theorem compression_of_error_small {a ε Θ target G d : ℝ} | ||
| 93 | 93 | (hG : 1 ≤ G) (hd : 0 ≤ d) |
| 94 | 94 | (herr : 16*(ε*Θ*(4*G)^2+d) ≤ 1) : 60*(G+d)*target*ε < a := by |
| 95 | 95 | have hprod : 0 ≤ ε*Θ*G^2 := mul_nonneg (mul_nonneg hε hΘ) (sq_nonneg G) |
| 96 | - have hd1 : d ≤ 1 := by nlinarith only [herr, hprod] | |
| 96 | + have hd1 : d ≤ 1 := by linarith only [herr, hprod] | |
| 97 | 97 | have hG₀ : 0 ≤ G := le_trans zero_le_one hG |
| 98 | - have hGsq : G+d ≤ 2*G^2 := by nlinarith only [hG, hd1, sq_nonneg (G-1)] | |
| 98 | + have hGsq : G+d ≤ 2*G^2 := by linarith only [hG, hd1, sq_nonneg (G-1)] | |
| 99 | 99 | have htargetmul := mul_le_mul_of_nonneg_right htarget hε |
| 100 | 100 | have hfull := mul_le_mul_of_nonneg_left htargetmul (show 0 ≤ 60*(G+d) by positivity) |
| 101 | 101 | have hscale := mul_le_mul_of_nonneg_right hGsq (mul_nonneg hΘ hε) |
| 102 | - nlinarith only [herr, hd, hfull, hscale, ha] | |
| 102 | + linarith only [herr, hd, hfull, hscale, ha] | |
| 103 | 103 | |
| 104 | 104 | theorem scaleSequence_ge_initial (J : ℕ) (hJ : 1 ≤ J) (X : ℝ) (hX : 0 ≤ X) (n : ℕ) : |
| 105 | 105 | X ≤ scaleSequence J X n := by |
| @@ -158,7 +158,7 @@ theorem stage_guards (J D : ℕ) (hJ : 3 ≤ J) (C c X K δ : ℝ) | ||
| 158 | 158 | have hextra := actualExtraTime_small J D hJ C c X δ hC1 hX hb n (a n) (ha₀ n) (ha₂ n) |
| 159 | 159 | have hextra1 : actualExtraTime J X (a n) n ≤ 1 := by |
| 160 | 160 | have hh := mul_le_mul_of_nonneg_left (one_le_pow₀ hθ : 1 ≤ sourceTheta J C (scaleSequence J X) n^60) hextra₀ |
| 161 | - nlinarith only [hh, hextra, hδ] | |
| 161 | + linarith only [hh, hextra, hδ] | |
| 162 | 162 | have hpow : 0 < sourceTheta J C (scaleSequence J X) n^60 := pow_pos hθp 60 |
| 163 | 163 | have hextraSharp : actualExtraTime J X (a n) n ≤ 1/sourceTheta J C (scaleSequence J X) n^60 := |
| 164 | 164 | (le_div_iff₀ hpow).mpr (hextra.trans (by linarith only [hδ])) |
| @@ -178,17 +178,17 @@ theorem stage_guards (J D : ℕ) (hJ : 3 ≤ J) (C c X K δ : ℝ) | ||
| 178 | 178 | norm_num only [pow_zero, mul_one] at hh |
| 179 | 179 | linarith only [hh, hδ] |
| 180 | 180 | have heps1 : epsilon J X (a n) n ≤ 1 := by |
| 181 | - have hG : 1 ≤ (4*(1+olderShear J X n))^2 := by nlinarith only [hg, sq_nonneg (1+olderShear J X n-1)] | |
| 181 | + have hG : 1 ≤ (4*(1+olderShear J X n))^2 := by linarith only [hg, sq_nonneg (1+olderShear J X n-1)] | |
| 182 | 182 | have htG : 1 ≤ sourceTheta J C (scaleSequence J X) n*(4*(1+olderShear J X n))^2 := |
| 183 | 183 | one_le_mul_of_one_le_of_one_le hθ hG |
| 184 | 184 | have hh := mul_le_mul_of_nonneg_left htG heps.le |
| 185 | 185 | unfold geometryError at he0 |
| 186 | - nlinarith only [he0, hh, hd] | |
| 186 | + linarith only [he0, hh, hd] | |
| 187 | 187 | have htθ : targetTime J X (β n) n ≤ sourceTheta J C (scaleSequence J X) n := by |
| 188 | 188 | have hnonneg : 0 ≤ ((J+n:ℕ):ℝ)^2*scaleSequence J X n^2 := by positivity |
| 189 | 189 | have hm := mul_le_mul_of_nonneg_right hC (by linarith only [hnonneg] : 0 ≤ 1+((J+n:ℕ):ℝ)^2*scaleSequence J X n^2) |
| 190 | 190 | unfold sourceTheta |
| 191 | - nlinarith only [hm, hnonneg, ht] | |
| 191 | + linarith only [hm, hnonneg, ht] | |
| 192 | 192 | refine ⟨heps, heps1, hact.2.2.1, hact.2.2.2.1, ?_, ?_, ?_, ?_, ?_, ?_, |
| 193 | 193 | actualWidths_contract J D hJ C c X δ hX hb hδ n, ?_, ?_⟩ |
| 194 | 194 | · simpa only [one_div, scaleSequence_succ] using hact.2.2.2.2.2.2.1 |
| @@ -198,12 +198,12 @@ theorem stage_guards (J D : ℕ) (hJ : 3 ≤ J) (C c X K δ : ℝ) | ||
| 198 | 198 | · have hnonneg : 0 ≤ ((J+n:ℕ):ℝ)^2*scaleSequence J X n^2 := by positivity |
| 199 | 199 | have hm := mul_le_mul_of_nonneg_right hC (by linarith only [hnonneg] : 0 ≤ 1+((J+n:ℕ):ℝ)^2*scaleSequence J X n^2) |
| 200 | 200 | unfold horizon sourceTheta |
| 201 | - nlinarith only [hm, hnonneg, ht, hextra1] | |
| 201 | + linarith only [hm, hnonneg, ht, hextra1] | |
| 202 | 202 | · simpa only [horizon, add_sub_cancel_left] using hextraSharp |
| 203 | 203 | · have hh := mul_le_mul_of_nonneg_left |
| 204 | 204 | (coefficient_small J D hJ C c X δ hC1 hX hb a ha₀ ha₂ 40 (by omega) n) |
| 205 | 205 | (show 0 ≤ 1000000*K by positivity) |
| 206 | - nlinarith only [hh, hδK] | |
| 206 | + linarith only [hh, hδK] | |
| 207 | 207 | · exact compression_of_error_small (ha n) heps.le hθp.le htθ hg hd |
| 208 | 208 | (by simpa only [geometryError, add_assoc] using he0) |
| 209 | 209 | |
+4 −4 Euler/PacketStageEstimates.lean View file
| @@ -51,11 +51,11 @@ theorem joined_initial_cost : | ||
| 51 | 51 | have hb := P.joined_bad_cost hn hq hB |
| 52 | 52 | have hm : 1 ≤ 2*(gradientConstant*previousShear S.J S.X n) := by |
| 53 | 53 | have h := mul_le_mul_of_nonneg_left (S.previousShear_one n) gradient_nonneg |
| 54 | - nlinarith only [gradient_properties.1,h] | |
| 54 | + linarith only [gradient_properties.1,h] | |
| 55 | 55 | have hn0 := mul_nonneg (G).child_nonneg (G).badRatio_nonneg |
| 56 | 56 | have hh := mul_le_mul_of_nonneg_right hm hn0 |
| 57 | 57 | unfold initialIncrement |
| 58 | - nlinarith only [hb,hh] | |
| 58 | + linarith only [hb,hh] | |
| 59 | 59 | |
| 60 | 60 | theorem joined_pressure_cost : |
| 61 | 61 | 2*(gradientConstant*previousShear S.J S.X n)*(G).hchild*((G).δ*goodRatio+(G).badRatio)+ |
| @@ -113,11 +113,11 @@ theorem forward_initial_cost : | ||
| 113 | 113 | have hb := P.forward_bad_cost hq hB |
| 114 | 114 | have hm : 1 ≤ 2*(gradientConstant*previousShear S.J S.X 0) := by |
| 115 | 115 | have h := mul_le_mul_of_nonneg_left (S.previousShear_one 0) gradient_nonneg |
| 116 | - nlinarith only [gradient_properties.1,h] | |
| 116 | + linarith only [gradient_properties.1,h] | |
| 117 | 117 | have hn0 := mul_nonneg (G).child_nonneg (G).earlyRatio_nonneg |
| 118 | 118 | have hh := mul_le_mul_of_nonneg_right hm hn0 |
| 119 | 119 | unfold initialIncrement |
| 120 | - nlinarith only [hb,hh] | |
| 120 | + linarith only [hb,hh] | |
| 121 | 121 | |
| 122 | 122 | theorem forward_pressure_cost : |
| 123 | 123 | 2*(gradientConstant*previousShear S.J S.X 0)*(G).hchild*((G).δ*goodRatio+(G).earlyRatio)+ |
+3 −3 Euler/PacketStageGeometry.lean View file
| @@ -64,7 +64,7 @@ theorem previousShear_monotone : Monotone (previousShear S.J S.X) := by | ||
| 64 | 64 | have hp := S.previousShear_one n |
| 65 | 65 | have hs := S.shear_separation n |
| 66 | 66 | change previousShear S.J S.X n ≤ shear S.J S.X n |
| 67 | - nlinarith only [hp,hs,sq_nonneg (previousShear S.J S.X n-1)] | |
| 67 | + linarith only [hp,hs,sq_nonneg (previousShear S.J S.X n-1)] | |
| 68 | 68 | |
| 69 | 69 | theorem previousShear_double_base {n : ℕ} (hn : n ≠ 0) : |
| 70 | 70 | 2*S.X^1000 ≤ previousShear S.J S.X n := by |
| @@ -74,7 +74,7 @@ theorem previousShear_double_base {n : ℕ} (hn : n ≠ 0) : | ||
| 74 | 74 | change shear S.J S.X 0 ≤ previousShear S.J S.X n at hm |
| 75 | 75 | change (S.X^1000)^2 ≤ shear S.J S.X 0/4 at hs |
| 76 | 76 | change 1 ≤ S.X^1000 at hp |
| 77 | - nlinarith only [hm,hs,hp,sq_nonneg (S.X^1000-1)] | |
| 77 | + linarith only [hm,hs,hp,sq_nonneg (S.X^1000-1)] | |
| 78 | 78 | |
| 79 | 79 | end EulerPacketInductionScales.Scales |
| 80 | 80 | |
| @@ -157,7 +157,7 @@ theorem joined_history_hessian (hn : n ≠ 0) : | ||
| 157 | 157 | (initialInclusion P.restrictedParent.T P.time P.time_lt_nextHorizon.le t) 0 |
| 158 | 158 | have hm := mul_le_mul_of_nonneg_left (S.olderShear_le n) |
| 159 | 159 | (mul_nonneg hessian_nonneg (zero_le_one.trans (S.previousShear_one n))) |
| 160 | - exact hp.trans (by nlinarith only [hm]) | |
| 160 | + exact hp.trans (by linarith only [hm]) | |
| 161 | 161 | |
| 162 | 162 | end General |
| 163 | 163 | |
+3 −4 Euler/PacketStageGrowth.lean View file
| @@ -31,7 +31,7 @@ theorem previousShear_ge_index {c B : ℝ} (S : Scales c B) (n : ℕ) : | ||
| 31 | 31 | have hp := S.previousShear_one n |
| 32 | 32 | change ((n+1 : ℕ) : ℝ)+1 ≤ shear S.J S.X n |
| 33 | 33 | push_cast |
| 34 | - nlinarith only [ih,h,hp,sq_nonneg (previousShear S.J S.X n-1)] | |
| 34 | + linarith only [ih,h,hp,sq_nonneg (previousShear S.J S.X n-1)] | |
| 35 | 35 | |
| 36 | 36 | end Scales |
| 37 | 37 | end EulerPacketInductionScales |
| @@ -74,9 +74,8 @@ theorem gradient_lower (hn : n ≠ 0) : previousShear S.J S.X n/2 ≤ P.activati | ||
| 74 | 74 | have he : P.frame.G+P.frame.error ≤ previousShear S.J S.X n/2 := by |
| 75 | 75 | have hc := (add_le_add P.frame_bound P.frame_error).trans (S.activation_small hn) |
| 76 | 76 | have hh := mul_le_mul_of_nonneg_right activationMargin_le_half (zero_le_one.trans hs) |
| 77 | - nlinarith only [hc,hh] | |
| 78 | - have heq : ‖M‖=P.activationGradient := by | |
| 79 | - exact congrArg norm (P.state.evolution.strain_origin P.state.odd t) | |
| 77 | + linarith only [hc,hh] | |
| 78 | + have heq : ‖M‖=P.activationGradient := congrArg norm (P.state.evolution.strain_origin P.state.odd t) | |
| 80 | 79 | rw [heq] at hM |
| 81 | 80 | linarith only [hM,he] |
| 82 | 81 | |
+3 −3 Euler/PacketStageLowPropagation.lean View file
| @@ -63,11 +63,11 @@ theorem ratio_absorption (r : ℝ) (hr : 0 ≤ r) | ||
| 63 | 63 | exact h.trans (by linarith only [S.delta_small]) |
| 64 | 64 | have hM : 1 ≤ 2*gradientConstant*previousShear S.J S.X n := by |
| 65 | 65 | have h := mul_le_mul_of_nonneg_left (S.previousShear_one n) gradient_nonneg |
| 66 | - nlinarith only [gradient_properties.1,h] | |
| 66 | + linarith only [gradient_properties.1,h] | |
| 67 | 67 | have hgrad : shear S.J S.X n*r ≤ |
| 68 | 68 | 2*gradientConstant*previousShear S.J S.X n*shear S.J S.X n*r := by |
| 69 | 69 | have h := mul_le_mul_of_nonneg_right hM (mul_nonneg (zero_le_one.trans (S.shear_one n)) hr) |
| 70 | - nlinarith only [h] | |
| 70 | + linarith only [h] | |
| 71 | 71 | have hg : shear S.J S.X n*r+(frequency S.J S.X n)^(-(1/4 : ℝ)) ≤ 1 := by |
| 72 | 72 | linarith only [hgrad,hbad,hsum] |
| 73 | 73 | have hh : 2*gradientConstant*previousShear S.J S.X n*shear S.J S.X n*r+ |
| @@ -97,7 +97,7 @@ theorem next_frame_bounds : | ||
| 97 | 97 | have h2 := mul_le_mul_of_nonneg_right hCH (sq_nonneg (previousShear S.J S.X n)) |
| 98 | 98 | have h3 := mul_nonneg (sq_nonneg frameConstant) |
| 99 | 99 | (show 0 ≤ 1+2*previousShear S.J S.X n by positivity) |
| 100 | - nlinarith only [h1,h2,h3] | |
| 100 | + linarith only [h1,h2,h3] | |
| 101 | 101 | |
| 102 | 102 | theorem coupling_step (a : ℝ) |
| 103 | 103 | (h : |a/P.frame.a-1| ≤ renewalCost S.J S.D 4 c frameConstant S.X n) : |
+3 −3 Euler/PacketTailBase.lean View file
| @@ -26,7 +26,7 @@ theorem tailBase_absorption (R H C : ℝ) (hC : 0 ≤ C) (N n : ℕ) : | ||
| 26 | 26 | linarith only [h] |
| 27 | 27 | have hf : (1+18*((N+2 : ℕ) : ℝ)^2)*C ≤ A^(n+1) := by |
| 28 | 28 | calc |
| 29 | - _ ≤ A := by dsimp [A]; nlinarith | |
| 29 | + _ ≤ A := by dsimp [A]; linarith | |
| 30 | 30 | _ ≤ A*A^n := le_mul_of_one_le_right (le_trans zero_le_one hA) (one_le_pow₀ hA) |
| 31 | 31 | _ = A^(n+1) := (pow_succ' A n).symm |
| 32 | 32 | have hH : H^(2*n+2) = (H^2)^(n+1) := by |
| @@ -67,10 +67,10 @@ theorem tailBase_polynomial_bound (R H C : ℝ) (hC : 0 ≤ C) (N : ℕ) (hN : 1 | ||
| 67 | 67 | have hp := pow_le_pow_left₀ (show (0 : ℝ) ≤ (N : ℝ)+2 by positivity) hnplus 2 |
| 68 | 68 | have hf : (1 : ℝ)+18*((N+2 : ℕ) : ℝ)^2 ≤ 163*(N : ℝ)^2 := by |
| 69 | 69 | push_cast |
| 70 | - nlinarith only [hp, hn2] | |
| 70 | + linarith only [hp, hn2] | |
| 71 | 71 | have hm := mul_le_mul_of_nonneg_left hf hC |
| 72 | 72 | have hfactor : (1 : ℝ)+C*(1+18*((N+2 : ℕ) : ℝ)^2) ≤ |
| 73 | - (1+163*C)*(N : ℝ)^2 := by nlinarith only [hm, hn2] | |
| 73 | + (1+163*C)*(N : ℝ)^2 := by linarith only [hm, hn2] | |
| 74 | 74 | calc |
| 75 | 75 | _ ≤ ((1+163*C)*(N : ℝ)^2)*H^2*gradeBase R N := |
| 76 | 76 | mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right hfactor (sq_nonneg H)) |
+2 −2 Euler/PacketTangentNorm.lean View file
| @@ -31,7 +31,7 @@ theorem scaled_pair_le_physical_norm (m v w : ℝ → Space) {t₀ a ε τ : ℝ | ||
| 31 | 31 | have hh : |scaledVelocity m v w t₀ a ε τ 0|+|scaledVelocity m v w t₀ a ε τ 1| ≤ |
| 32 | 32 | (2*‖w (physicalTime t₀ a ε τ)‖)/ε := by |
| 33 | 33 | apply (le_div_iff₀ hε).mpr |
| 34 | - nlinarith only [hU, hεV, hεnorm] | |
| 34 | + linarith only [hU, hεV, hεnorm] | |
| 35 | 35 | convert! hh using 1 |
| 36 | 36 | ring |
| 37 | 37 | |
| @@ -60,7 +60,7 @@ theorem physical_velocity_le_scaled_state (m v r w : ℝ → Space) | ||
| 60 | 60 | have hV : norm3 (V 0) (V 1) (V 2) ≤ 7*Θ^2*(|V 0|+|V 1|) := by |
| 61 | 61 | dsimp [norm3] |
| 62 | 62 | have ht := mul_le_mul_of_nonneg_right hΘ2 (add_nonneg (abs_nonneg (V 0)) (abs_nonneg (V 1))) |
| 63 | - nlinarith only [hw, ht] | |
| 63 | + linarith only [hw, ht] | |
| 64 | 64 | exact (scaledVelocity_norm_le_norm3 m v w hε hε1 hm hv hmv).trans hV |
| 65 | 65 | |
| 66 | 66 | end EulerPacketMovingFrame |
+5 −5 Euler/PacketTargetAmplification.lean View file
| @@ -22,7 +22,7 @@ theorem equation30_target_exp_le {σ T Θ : ℝ} {Z Z₁ : ℝ → ℝ} | ||
| 22 | 22 | have hTpos : 0 < T := lt_of_lt_of_le (by positivity : 0 < 1/σ) hTtarget |
| 23 | 23 | have hx : 1 ≤ σ*T := by |
| 24 | 24 | have hh := (div_le_iff₀ hσ).mp hTtarget |
| 25 | - nlinarith only [hh] | |
| 25 | + linarith only [hh] | |
| 26 | 26 | have hxpos : 0 < σ*T := by positivity |
| 27 | 27 | have hgrowth := equation30_endpoint_exponential (sq_pos_of_pos hσ) |
| 28 | 28 | (by nlinarith only [hσ, hσsmall] : σ^2 ≤ 1/16) |
| @@ -32,10 +32,10 @@ theorem equation30_target_exp_le {σ T Θ : ℝ} {Z Z₁ : ℝ → ℝ} | ||
| 32 | 32 | rw [mul_div_cancel_left₀ T (ne_of_gt hσ)] at hpost |
| 33 | 33 | have hraw : exp (1/(4*σ)) ≤ (σ*T)*Z T := by |
| 34 | 34 | have hh := (div_le_iff₀ hxpos).mp hpost.1 |
| 35 | - nlinarith only [hgrowth, hh] | |
| 35 | + linarith only [hgrowth, hh] | |
| 36 | 36 | have hcoeff : σ*T ≤ Θ := by |
| 37 | 37 | have hh := mul_le_mul_of_nonneg_right (show σ ≤ 1 by linarith only [hσsmall]) hTpos.le |
| 38 | - nlinarith only [hh, hTΘ] | |
| 38 | + linarith only [hh, hTΘ] | |
| 39 | 39 | exact hraw.trans (mul_le_mul_of_nonneg_right hcoeff hpost.2.le) |
| 40 | 40 | |
| 41 | 41 | theorem physical_target_exponential_lower (m v r w : ℝ → Space) |
| @@ -59,7 +59,7 @@ theorem physical_target_exponential_lower (m v r w : ℝ → Space) | ||
| 59 | 59 | have hh := (abs_le.mp hV).1 |
| 60 | 60 | have hr : 1/2 ≤ scaledVelocity m v w t₀ a ε T 1/Z T := by linarith only [hh] |
| 61 | 61 | have hb := (le_div_iff₀ hZpos).mp hr |
| 62 | - nlinarith only [hb] | |
| 62 | + linarith only [hb] | |
| 63 | 63 | have hVpos : 0 < scaledVelocity m v w t₀ a ε T 1 := by linarith only [hVlower, hZpos] |
| 64 | 64 | have hsize := physical_size_ge_second m v r w hs₀ hε hm hv hmv hN hVpos.le |
| 65 | 65 | have hsizepos : 0 < ‖r (physicalTime t₀ a ε T)‖*‖w (physicalTime t₀ a ε T)‖ := |
| @@ -68,7 +68,7 @@ theorem physical_target_exponential_lower (m v r w : ℝ → Space) | ||
| 68 | 68 | have h1 := mul_le_mul_of_nonneg_left hexp hs₀.le |
| 69 | 69 | have h2 := mul_le_mul_of_nonneg_left hVlower (show 0 ≤ 2*s₀*Θ by positivity) |
| 70 | 70 | have h3 := mul_le_mul_of_nonneg_left hsize (show 0 ≤ 4*Θ by positivity) |
| 71 | - exact ⟨hsizepos, by nlinarith only [h1, h2, h3]⟩ | |
| 71 | + exact ⟨hsizepos, by linarith only [h1, h2, h3]⟩ | |
| 72 | 72 | |
| 73 | 73 | /-- A bounded physical history size, or the numerator used to choose a |
| 74 | 74 | packet amplitude, gains the actual target's exponential factor. -/ |
+1 −1 Euler/PacketTimeProfileArithmetic.lean View file
| @@ -53,7 +53,7 @@ theorem slow_high_high_high (γ H : ℝ) (hγ : 0 ≤ γ) (hγH : γ ≤ H) (hH | ||
| 53 | 53 | highScale γ H i*highScale γ H j ≤ highScale γ H p := by |
| 54 | 54 | have hH0 : 0 ≤ H := le_trans zero_le_one hH |
| 55 | 55 | have hh : H ≤ H^2 := by nlinarith |
| 56 | - have hγ2 : γ^2 ≤ γ*H^2 := by nlinarith [mul_nonneg hγ (sub_nonneg.mpr (hγH.trans hh))] | |
| 56 | + have hγ2 : γ^2 ≤ γ*H^2 := by linarith [mul_nonneg hγ (sub_nonneg.mpr (hγH.trans hh))] | |
| 57 | 57 | calc |
| 58 | 58 | _ = γ^2*(meanScale H i*meanScale H j) := by unfold highScale; ring |
| 59 | 59 | _ ≤ (γ*H^2)*(meanScale H i*meanScale H j) := |
+2 −2 Euler/PacketUniformFrequencyScales.lean View file
| @@ -67,7 +67,7 @@ theorem frequency_monotone (J : ℕ) (hJ : 2 ≤ J) (X : ℝ) (hX : 0 ≤ X) : | ||
| 67 | 67 | rw [scaleSequence_succ] |
| 68 | 68 | exact mul_nonneg (sq_nonneg _) ih |
| 69 | 69 | have hbase : ((J+n : ℕ) : ℝ)+1 ≤ ((J+n : ℕ) : ℝ)^2 := by |
| 70 | - nlinarith only [hj,sq_nonneg (((J+n : ℕ) : ℝ)-2)] | |
| 70 | + linarith only [hj,sq_nonneg (((J+n : ℕ) : ℝ)-2)] | |
| 71 | 71 | have hp := pow_le_pow_left₀ (show 0 ≤ ((J+n : ℕ) : ℝ)+1 by positivity) hbase 2 |
| 72 | 72 | have hm := mul_le_mul_of_nonneg_left hp (hxall n) |
| 73 | 73 | unfold frequency |
| @@ -76,7 +76,7 @@ theorem frequency_monotone (J : ℕ) (hJ : 2 ≤ J) (X : ℝ) (hX : 0 ≤ X) : | ||
| 76 | 76 | have hcast : ((J+(n+1) : ℕ) : ℝ)=((J+n : ℕ) : ℝ)+1 := by push_cast; ring |
| 77 | 77 | rw [hcast] |
| 78 | 78 | apply (div_le_div_iff₀ (pow_pos hjp 2) (by positivity)).mpr |
| 79 | - nlinarith only [hm] | |
| 79 | + linarith only [hm] | |
| 80 | 80 | |
| 81 | 81 | theorem frequency_zero_tendsto_atTop (J : ℕ) (hJ : 1 ≤ J) : |
| 82 | 82 | Tendsto (fun X : ℝ => frequency J X 0) atTop atTop := by |
+1 −1 Euler/PacketVelocityPropagator.lean View file
| @@ -78,7 +78,7 @@ theorem velocity_propagator_bound_within | ||
| 78 | 78 | have hspan : t-s ≤ Θ := by linarith only [ht, hT, hs] |
| 79 | 79 | have hsmall' : 20*Θ^8*(e*Θ^12)*(t-s) ≤ 1/2 := by |
| 80 | 80 | have hh := mul_le_mul_of_nonneg_left hspan (show 0 ≤ 20*e*Θ^20 by positivity) |
| 81 | - nlinarith only [hh, hsmall] | |
| 81 | + linarith only [hh, hsmall] | |
| 82 | 82 | have he' : ∀ x ∈ Icc s t, |
| 83 | 83 | |U₁ x-idealVelocityFirst (σ^2) x (U' x) (V' x)|+|V₁ x+U' x| ≤ |
| 84 | 84 | (e*Θ^12)*(|U' x|+|V' x|) := by |
+3 −3 Euler/PacketVolumeDivergence.lean View file
| @@ -18,7 +18,7 @@ private local instance : NormedSpace ℝ (Space →L[ℝ] Space) := inferInstanc | ||
| 18 | 18 | theorem coordinateTrace_eq_matrix (A : Space →L[ℝ] Space) : |
| 19 | 19 | coordinateTrace A = (operatorMatrix A).trace := by |
| 20 | 20 | simp only [coordinateTrace,operatorMatrix,Matrix.trace,Matrix.diag, |
| 21 | - sum_apply,comp_apply,apply_apply] | |
| 21 | + sum_apply,comp_apply] | |
| 22 | 22 | rfl |
| 23 | 23 | |
| 24 | 24 | theorem operatorMatrix_det (A : Space →L[ℝ] Space) : |
| @@ -55,10 +55,10 @@ theorem determinant_derivative_trace_zero (F : Space → Space →L[ℝ] Space) | ||
| 55 | 55 | simpa only [zero_smul,add_zero] using hF.hasFDerivAt |
| 56 | 56 | have h := hF'.comp_hasDerivAt (0 : ℝ) |
| 57 | 57 | ((hasDerivAt_const (0 : ℝ) x).add ((hasDerivAt_id (0 : ℝ)).smul_const v)) |
| 58 | - simpa only [Function.comp_def,Pi.add_apply,Pi.smul_apply,id_eq, | |
| 58 | + simpa only [Function.comp_def,Pi.add_apply,id_eq, | |
| 59 | 59 | zero_smul,add_zero,one_smul,zero_add] using h |
| 60 | 60 | have hmat : M*L 0 = operatorMatrix (fderiv ℝ F x v) := by |
| 61 | - dsimp only [M,L] | |
| 61 | + dsimp only [L] | |
| 62 | 62 | rw [zero_smul,add_zero,← operatorMatrix_comp] |
| 63 | 63 | congr 1 |
| 64 | 64 | ext u |
+2 −2 Euler/PacketWeightedPhysicalErrors.lean View file
| @@ -77,13 +77,13 @@ theorem Budget.physical_gradient_hessian_of_weighted (k ρ Cw d : ℝ) | ||
| 77 | 77 | let H := (1+9*CF)*physicalFixedCost D R CF ρ⁻¹ 1 |
| 78 | 78 | have hc := physicalFixedCost_nonneg D R CF ρ⁻¹ 1 hR hCF (inv_nonneg.mpr hρ.le) |
| 79 | 79 | have hcv : physicalFixedCost D R CF ρ⁻¹ 1 ≤ H := by dsimp [H]; nlinarith |
| 80 | - have hcp : 9*CF*physicalFixedCost D R CF ρ⁻¹ 1 ≤ H := by dsimp [H]; nlinarith | |
| 80 | + have hcp : 9*CF*physicalFixedCost D R CF ρ⁻¹ 1 ≤ H := by dsimp [H]; linarith | |
| 81 | 81 | have absorb (v c : ℝ) (hvc : v ≤ c*(Cpt*d)*k) (hcH : c ≤ H) : |
| 82 | 82 | v ≤ weightedPhysicalGradientCost D P R CF ρ Cw*k*d := by |
| 83 | 83 | apply hvc.trans |
| 84 | 84 | apply (mul_le_mul_of_nonneg_right |
| 85 | 85 | (mul_le_mul_of_nonneg_right hcH (mul_nonneg hCpt hd)) hk0.le).trans_eq |
| 86 | - dsimp [weightedPhysicalGradientCost,H,Cpt] | |
| 86 | + dsimp [weightedPhysicalGradientCost,Cpt] | |
| 87 | 87 | ring |
| 88 | 88 | constructor |
| 89 | 89 | · apply absorb _ _ _ hcv |
+3 −3 Euler/TransverseActivationSelection.lean View file
| @@ -103,7 +103,7 @@ theorem select_actual_activation | ||
| 103 | 103 | R.norm_toContinuousLinearMap_le CM CH hCM hCH M hRay hM H hHs hHnorm K hK hH hsmall |
| 104 | 104 | have hC : 1 ≤ activationConstant CM CH := by |
| 105 | 105 | unfold activationConstant |
| 106 | - nlinarith only [sq_nonneg CM, hCH] | |
| 106 | + linarith only [sq_nonneg CM, hCH] | |
| 107 | 107 | obtain ⟨yp, yq, hwq, hwpl, hwpu, hY⟩ := |
| 108 | 108 | select_endpoint_hilbert Λ B p q (activationConstant CM CH) ε h hΛ hp hq hpq |
| 109 | 109 | hC hε hh hεsmall hΛnorm hB hBpp |
| @@ -130,7 +130,7 @@ theorem select_actual_activation | ||
| 130 | 130 | Λ Y - B Y - (h * ⟪p, Y⟫_ℝ) • q := by |
| 131 | 131 | dsimp only [w] |
| 132 | 132 | rw [map_sub, hvt, hηT] |
| 133 | - simp only [B, terminalPerturbation, sub_apply, comp_apply, smul_apply, rankOne_apply, | |
| 133 | + simp only [B, terminalPerturbation, sub_apply, smul_apply, rankOne_apply, | |
| 134 | 134 | smul_smul, extendPath, projIcc_of_mem hT.le (show T ∈ Icc (0 : ℝ) T from ⟨hT.le, le_rfl⟩)] |
| 135 | 135 | abel |
| 136 | 136 | have hwcoord (z : V) : ⟪w T, R z⟫_ℝ = |
| @@ -140,7 +140,7 @@ theorem select_actual_activation | ||
| 140 | 140 | refine ⟨Y, initialRealPrimitive_initial T u, hηT, |
| 141 | 141 | physicalVelocityPath_continuous T hT.le Q Q₁ c hc hQ H u, hdη, ?_, ?_, ?_, ?_, hY⟩ |
| 142 | 142 | · intro t |
| 143 | - simpa only [w, extendPath, projIcc_of_mem hT.le t.property] using | |
| 143 | + simpa only [extendPath, projIcc_of_mem hT.le t.property] using | |
| 144 | 144 | corrected_velocity_tangent T hT m m₁ M hdm hRay η v hdη hηtan t |
| 145 | 145 | · exact (hwcoord q).trans hwq |
| 146 | 146 | · exact (hwcoord p).symm ▸ hwpl |
+1 −1 Euler/TransverseForwardCoefficientGevrey.lean View file
| @@ -30,7 +30,7 @@ theorem inverseRadius_bounds (c C Rc R : ℝ) (hc : 0 < c) (hRc : 0 ≤ Rc) | ||
| 30 | 30 | nlinarith [sq_nonneg C] |
| 31 | 31 | have hp : 0 ≤ (gramCost c C 1-1)*(Rc+1) := |
| 32 | 32 | mul_nonneg (sub_nonneg.mpr hcost) (by linarith) |
| 33 | - constructor <;> nlinarith | |
| 33 | + constructor <;> linarith | |
| 34 | 34 | |
| 35 | 35 | variable {P V E : Type*} |
| 36 | 36 | [NormedAddCommGroup P] [NormedSpace ℝ P] |
+4 −4 Euler/TransversePacketCoefficientBounds.lean View file
| @@ -62,12 +62,12 @@ theorem corrector_coefficient_bounds (R C Ri : ℝ) (hR : 0 ≤ R) (hC : 0 ≤ C | ||
| 62 | 62 | have hD : 0 ≤ 3*C^2 := by positivity |
| 63 | 63 | have hDt : 0 ≤ 27*(3*Ri*C)^2*(3*C^2) := by positivity |
| 64 | 64 | have hCc : 0 ≤ Cc := by dsimp [Cc,correctorCoefficientAmplitude]; positivity |
| 65 | - have hC0 : C ≤ Cc := by dsimp [Cc,correctorCoefficientAmplitude]; nlinarith | |
| 66 | - have hC1 : 3*C^2 ≤ Cc := by dsimp [Cc,correctorCoefficientAmplitude]; nlinarith | |
| 67 | - have hCN : 3*Ri*C ≤ Cc := by dsimp [Cc,correctorCoefficientAmplitude]; nlinarith | |
| 65 | + have hC0 : C ≤ Cc := by dsimp [Cc,correctorCoefficientAmplitude]; linarith | |
| 66 | + have hC1 : 3*C^2 ≤ Cc := by dsimp [Cc,correctorCoefficientAmplitude]; linarith | |
| 67 | + have hCN : 3*Ri*C ≤ Cc := by dsimp [Cc,correctorCoefficientAmplitude]; linarith | |
| 68 | 68 | have hCT : 27*(3*Ri*C)^2*(3*C^2) ≤ Cc := by |
| 69 | 69 | dsimp [Cc,correctorCoefficientAmplitude] |
| 70 | - nlinarith | |
| 70 | + linarith | |
| 71 | 71 | have hIb (n : ℕ) (a : Space) : |
| 72 | 72 | ‖iteratedFDeriv ℝ n (translateCoefficientPath D.FInv.field) a‖ ≤ C*majorant Rc 0 n := |
| 73 | 73 | (D.FInv.norm_iteratedFDeriv_translation_le n (C*majorant R 0 n) |
+1 −1 Euler/TransversePacketCorrectorBounds.lean View file
| @@ -84,7 +84,7 @@ theorem correctorTimePath_normalized_bound (n : ℕ) : | ||
| 84 | 84 | have hn := mul_nonneg |
| 85 | 85 | (show 0 ≤ sobolevCoefficientAmplitude (Fin 4) q Rc C*(P*A) by positivity) |
| 86 | 86 | (majorant_nonneg R hRn d j) |
| 87 | - nlinarith | |
| 87 | + linarith | |
| 88 | 88 | have h := EulerCylinderSlowCurl.normalized_derivative_block_bound P D.T g hg |
| 89 | 89 | D.FInv.field D.inverseDerivative (G.potentialPath I) (G.potentialTimePath I) |
| 90 | 90 | (G.potentialPath_orbit I) (G.potentialTimePath_orbit I) D.FInv.translation_contDiff D.inverseDerivative_orbit |
+5 −5 Euler/TransversePacketForwardGradeBounds.lean View file
| @@ -80,27 +80,27 @@ theorem grade_fields : | ||
| 80 | 80 | have hv : ((G.vectorField I).normalized D.T_pos.le L.g L.positive).WordBound |
| 81 | 81 | 6 L.R ((L.commonCost*C)*c) (d+1) := by |
| 82 | 82 | intro n |
| 83 | - simpa only [Field.normalized_path,Forcing.vectorField,mul_assoc,mul_left_comm,mul_comm] using | |
| 83 | + simpa only [Field.normalized_path,Forcing.vectorField,mul_assoc,mul_left_comm] using | |
| 84 | 84 | L.velocity_common_bound G I standardDirection hd (c*C) ha d hforce hinitial n |
| 85 | 85 | have ht : ((G.vectorDerivativeField I).normalized D.T_pos.le L.g L.positive).WordBound |
| 86 | 86 | 6 L.R ((L.commonCost*C)*c) (d+1) := by |
| 87 | 87 | intro n |
| 88 | - simpa only [Field.normalized_path,Forcing.vectorDerivativeField,mul_assoc,mul_left_comm,mul_comm] using | |
| 88 | + simpa only [Field.normalized_path,Forcing.vectorDerivativeField,mul_assoc,mul_left_comm] using | |
| 89 | 89 | L.derivative_common_bound G I standardDirection hd (c*C) ha d hforce hinitial n |
| 90 | 90 | have hC : ((G.curlCorrectorField I).normalized D.T_pos.le L.g L.positive).WordBound |
| 91 | 91 | 6 L.R ((L.correctorAmplitude (P := P) N*C)*c) (d+2) := by |
| 92 | 92 | intro n |
| 93 | - simpa only [Field.normalized_path,Forcing.curlCorrectorField,mul_assoc,mul_left_comm,mul_comm] using | |
| 93 | + simpa only [Field.normalized_path,Forcing.curlCorrectorField,mul_assoc,mul_left_comm] using | |
| 94 | 94 | L.corrector_bound N G I (c*C) ha d hforce hinitial n |
| 95 | 95 | have hCt : ((G.correctorDerivativeField I).normalized D.T_pos.le L.g L.positive).WordBound |
| 96 | 96 | 6 L.R ((L.correctorTimeAmplitude (P := P) N*C)*c) (d+2) := by |
| 97 | 97 | intro n |
| 98 | - simpa only [Field.normalized_path,Forcing.correctorDerivativeField,mul_assoc,mul_left_comm,mul_comm] using | |
| 98 | + simpa only [Field.normalized_path,Forcing.correctorDerivativeField,mul_assoc,mul_left_comm] using | |
| 99 | 99 | L.corrector_time_bound N G I (c*C) ha d hforce hinitial n |
| 100 | 100 | have hπ : ((G.scalarGradientField I).normalized D.T_pos.le L.g L.positive).WordBound |
| 101 | 101 | 6 L.R ((3*L.pressureAmplitude (P := P) N*C)*c) (d+2) := by |
| 102 | 102 | intro n |
| 103 | - simpa only [Field.normalized_path,mul_assoc,mul_left_comm,mul_comm] using | |
| 103 | + simpa only [Field.normalized_path,mul_assoc,mul_left_comm] using | |
| 104 | 104 | L.pressure_gradient_bound N G I (c*C) ha d hforce hinitial n |
| 105 | 105 | refine ⟨?_,?_,?_,?_,?_⟩ |
| 106 | 106 | · exact (hv.scale_profile D.T_pos.le L.g L.positive c hc).absorb_amplitude_to |
+1 −1 Euler/TransversePacketJoinedCorrectorBounds.lean View file
| @@ -85,7 +85,7 @@ theorem correctorTimePath_normalized_bound (n : ℕ) : | ||
| 85 | 85 | have hn := mul_nonneg |
| 86 | 86 | (show 0 ≤ sobolevCoefficientAmplitude (Fin 4) q Rc C*(P*A) by positivity) |
| 87 | 87 | (majorant_nonneg R hRn d j) |
| 88 | - nlinarith | |
| 88 | + linarith | |
| 89 | 89 | have h := EulerCylinderSlowCurl.normalized_derivative_block_bound P D.T g hg |
| 90 | 90 | D.FInv.field D.inverseDerivative (potentialPath τ hτ hτT B G) (potentialTimePath τ hτ hτT B G) |
| 91 | 91 | (potentialPath_orbit τ hτ hτT B G) (potentialTimePath_orbit τ hτ hτT B G) D.FInv.translation_contDiff D.inverseDerivative_orbit |
+2 −2 Euler/TransversePacketPrimaryFullBounds.lean View file
| @@ -89,7 +89,7 @@ theorem correctorTimePath_normalized_bound (n : ℕ) : | ||
| 89 | 89 | have hn := mul_nonneg |
| 90 | 90 | (show 0 ≤ sobolevCoefficientAmplitude (Fin 4) q Rc C*(P*A) by positivity) |
| 91 | 91 | (majorant_nonneg R hRn d j) |
| 92 | - nlinarith | |
| 92 | + linarith | |
| 93 | 93 | have h := EulerCylinderSlowCurl.normalized_derivative_block_bound P D.T g hg |
| 94 | 94 | D.FInv.field D.inverseDerivative (potentialPath τ hτ hτT B Y) (potentialTimePath τ hτ hτT B Y) |
| 95 | 95 | (potentialPath_orbit τ hτ hτT B Y) (potentialTimePath_orbit τ hτ hτT B Y) D.FInv.translation_contDiff D.inverseDerivative_orbit |
| @@ -231,7 +231,7 @@ theorem pressure_gradient_bound (n : ℕ) : | ||
| 231 | 231 | (pressurePath τ hτ hτT B Y) (pressurePath_orbit τ hτ hτT B Y) |
| 232 | 232 | L.fullProfile L.fullProfile_pos q L.R (H.pressureAmplitude (P := P) N*A) (d+3) |
| 233 | 233 | (H.pressure_bound N Y A hA d hYb) n |
| 234 | - simpa only [show d+3+1=d+4 by omega,mul_assoc] using h | |
| 234 | + simpa only [mul_assoc] using h | |
| 235 | 235 | |
| 236 | 236 | theorem corrector_bound (n : ℕ) : |
| 237 | 237 | block standardDirection q (fun a => pathTranslate P a |
+2 −2 Euler/TransversePacketPrimaryUnitBounds.lean View file
| @@ -56,7 +56,7 @@ theorem future_velocity_bound (n : ℕ) : | ||
| 56 | 56 | have hf (j : ℕ) : block directions q (fun a => pathTranslate P a |
| 57 | 57 | (normalize L.g L.positive (HistoryData.forcingPath (zeroForcing (P := P) (D.tail τ hτ.le hτT))))) |
| 58 | 58 | j 0 ≤ 0*majorant L.R (d+2) j := by |
| 59 | - simp only [HistoryData.forcingPath,zeroForcing,map_zero,zero_mul] | |
| 59 | + simp only [HistoryData.forcingPath,zeroForcing,zero_mul] | |
| 60 | 60 | erw [map_zero] |
| 61 | 61 | simp only [map_zero,block_zero_function,le_refl] |
| 62 | 62 | dsimp only [futureVelocity] |
| @@ -80,7 +80,7 @@ theorem future_derivative_bound (n : ℕ) : | ||
| 80 | 80 | have hf (j : ℕ) : block directions q (fun a => pathTranslate P a |
| 81 | 81 | (normalize L.g L.positive (HistoryData.forcingPath (zeroForcing (P := P) (D.tail τ hτ.le hτT))))) |
| 82 | 82 | j 0 ≤ 0*majorant L.R (d+2) j := by |
| 83 | - simp only [HistoryData.forcingPath,zeroForcing,map_zero,zero_mul] | |
| 83 | + simp only [HistoryData.forcingPath,zeroForcing,zero_mul] | |
| 84 | 84 | erw [map_zero] |
| 85 | 85 | simp only [map_zero,block_zero_function,le_refl] |
| 86 | 86 | dsimp only [futureDerivative] |
+1 −1 Euler/TransverseVariationalOperator.lean View file
| @@ -41,7 +41,7 @@ theorem dirichletOperator_coercive (J : V →L[ℝ] W) (H : W →L[ℝ] W) | ||
| 41 | 41 | rw [dirichletOperator_inner, real_inner_self_eq_norm_sq] |
| 42 | 42 | have hj := mul_le_mul_of_nonneg_left (hJ u) hK |
| 43 | 43 | have hs := mul_le_mul_of_nonneg_right hsmall (sq_nonneg ‖u‖) |
| 44 | - nlinarith only [hH (J u), hj, hs] | |
| 44 | + linarith only [hH (J u), hj, hs] | |
| 45 | 45 | |
| 46 | 46 | /-- The actual forcing-to-derivative solution map constructed by Lax--Milgram. -/ |
| 47 | 47 | def dirichletSolver (J : V →L[ℝ] W) (H : W →L[ℝ] W) |
+6 −6 KNOWN.md View file
| @@ -16,14 +16,14 @@ What is established about this problem, one fact a line, each with where it come | ||
| 16 | 16 | |
| 17 | 17 | ## Mind |
| 18 | 18 | |
| 19 | -- Main's builds are no longer all immediate: 44 on main submitted 05:26–05:39 began within the minute, but six submitted 05:39–05:40 started 7–24 minutes later, while 30 `s1-*`/`s2-*` builds submitted 04:20–04:25 started 52–61 minutes late (job 5663, job 5762, job 5772, job 5655, job 5568). | |
| 20 | -- A build that starts at once can run more than an hour: 32 jobs submitted 01:58–02:59 started within a minute and were still running at 03:04, and the 50 submitted 04:12–04:22 were all still running at 05:31, the oldest 1h19m (job 5121, job 5418, job 5375). | |
| 19 | +- Build waits track the backlog, not the branch: 44 main builds submitted 05:26–05:39 began within a minute while six at 05:39–05:40 waited 7–24, and once the queue cleared 40 `s2-*` builds submitted 07:32–07:40 and four main builds 07:45–08:06 all started at once (job 5882, job 6003, job 6012). | |
| 20 | +- [mind, checked] A build that starts at once can run long: the 50 submitted 04:12–04:22 were still running at 05:31, the oldest 1h19m, and 22 `s2-*` build successes landed 08:28–08:38 while 16 `s2-*` builds started 07:33–07:40 were still running (job 5121, commit c9a0d18, job 5927). | |
| 21 | 21 | - Build queue waits follow the backlog: build jobs submitted 21:59–22:47 waited up to 43 minutes to start (job 4706, submitted 21:59, started 22:42), while those submitted 23:16–23:41 started within a minute (job 4795, job 4817). |
| 22 | -- Checks can arrive in one batch, so a burst reads as progress when the queue is only draining: 38 build successes on main landed 06:53–07:04, after 40 verdicts landed 05:37–06:06, 27 of them challenge successes (commit 7aedd61, commit 4c91414, commit 67c70f8). | |
| 23 | -- Main advances several commits a minute: builds passed on main at dad3bad 05:29, 705252a, e442887 and 45dea90 05:30, and challenge passed at 9313602, a2dbfea and 94e881f 05:31 (commit dad3bad, commit 705252a, commit 9313602). | |
| 22 | +- Checks can arrive in one batch, so a burst reads as progress while the queue is only draining: 38 main build successes landed 06:53–07:04, then 34 challenge successes on `s2-*` heads and five main builds landed 07:32–07:36 with 50 builds still running (commit 67c70f8, commit a7c957b). | |
| 23 | +- [mind, checked] Main advances several commits a minute: 27 main build successes landed in one run 07:37–07:58, and challenge passed on 18 main heads in 08:29–08:37, from 10112a5 to 795b4db (commit 874fb6b, commit 10112a5, commit 795b4db). | |
| 24 | 24 | - A pending build is a queue, not a failure: 50 main builds submitted 21:32–22:25 waited 21–43 minutes; the `s1-*`/`s2-*` builds submitted 04:20–04:25 waited 52–61 minutes and 15 build successes on those heads landed 06:29–06:34 (job 4751, job 5536, commit 57c33b5, commit 1136cd0). |
| 25 | -- A challenge verdict counts its own head's tree, so line counts drift: twelve main heads 02:16–02:21 read 500,728→499,461, and seventeen main heads at 06:29–06:35 read 496,641 to 497,273 at 2,588 files (commit 6383aee, commit 2c4e069, commit 0e394ac). | |
| 26 | -- A challenge pass says nothing about the build: 509d828 passed challenge at 17:35 and failed its build at 17:39 (`Invalid field angularContinuous`); c4c7f0b passed challenge at 22:50 and its build is still queued (commit 509d828, commit c4c7f0b, job 4792). | |
| 25 | +- [mind, checked] A challenge verdict counts its own head's tree, so line counts drift: twelve main heads 02:16–02:21 read 500,728→499,461, and main heads 10112a5 through 795b4db read 496,311→496,294 at 2,588 files, 08:29–08:37 (commit 6383aee, commit 10112a5, commit 795b4db). | |
| 26 | +- [mind, checked] A challenge pass says nothing about the build: 509d828 passed challenge at 17:35 and failed its build at 17:39 (`Invalid field angularContinuous`), and main's 18 challenge successes at 08:29–08:37 landed while its builds ran (commit 509d828, commit 795b4db, job 6064). | |
| 27 | 27 | - ~~Build has filed no verdict since 12-02 14:50, so a challenge success after that has no build behind it: six build jobs were submitted at 12-04 02:56, two each on main, p4-euler-section-6 and maintainer-statement, and all six are still pending (job 2168, job 2176, job 2181).~~ Build has since filed verdicts, on 12-04 03:09–03:52, for all six heads submitted at 02:56 (main 530a644 and 0bbf0b4, maintainer-statement 7131c8c, p4-euler-section-6 e86853a, plus p5-h3-approximation-doc 828caff, p2-correction-covariance 642c67e, p2-correction-full-residual d4072c4), so none is left pending (commit 530a644, commit 0bbf0b4, commit 7131c8c, commit 642c67e) |
| 28 | 28 | - Checks repeat for one head across rounds, not only at a submission: 7131c8c and e86853a got two challenge successes at 02:56, builds at 03:11–03:14 and builds again at 06:38, and 642c67e was re-challenged at 07:16 after 03:23 (commit 7131c8c, commit e86853a, commit 642c67e). |
| 29 | 29 | - A commit that changes no judged path is counted, not run: dc2f600 reads 'not run on this commit' for challenge and build. Main's later heads did run: 63e6439 passed both at 15:06, and 5d25935 at 15:23 and 15:24 (commit dc2f600, commit 63e6439, commit 5d25935). |
+4 −6 NavierStokes/ActualBaseVelocityBounds.lean View file
| @@ -118,8 +118,7 @@ theorem finiteRate_negative_power {D : Type} [NormedAddCommGroup D] [NormedSpace | ||
| 118 | 118 | have hpC : a ^ p ≤ C := by dsimp [C]; linarith |
| 119 | 119 | have hiC : a⁻¹ ≤ C := by dsimp [C]; linarith |
| 120 | 120 | have hU : IsOpen {z | 0 < f z} := isOpen_lt continuous_const hf.continuous |
| 121 | - refine ⟨WeightedQuotients.orderBound p m * C ^ (2 * m + 1), by | |
| 122 | - exact mul_nonneg (WeightedQuotients.orderBound_nonneg p m) (pow_nonneg (zero_le_one.trans hC) _), ?_⟩ | |
| 121 | + refine ⟨WeightedQuotients.orderBound p m * C ^ (2 * m + 1), mul_nonneg (WeightedQuotients.orderBound_nonneg p m) (pow_nonneg (zero_le_one.trans hC) _), ?_⟩ | |
| 123 | 122 | filter_upwards [hq, hlower, hd] with z hz hlo hdz |
| 124 | 123 | have hfp : 0 < f z := (mul_pos ha hz.1).trans_le hlo |
| 125 | 124 | have hqpow : 1 ≤ q z ^ (-2 : ℝ) := by |
| @@ -310,7 +309,7 @@ theorem heat_velocity_rate {l : Filter SpaceTime} (hl : l ≤ endpoint) | ||
| 310 | 309 | have hC := scalarConst_rate hpe positiveRadius_isOpen hlU hs C |
| 311 | 310 | have hlow2 : ∀ᶠ z in l, (2 * R) * q z ≤ 2 * physicalEnergy z := by |
| 312 | 311 | filter_upwards [hlow] with z hz |
| 313 | - nlinarith | |
| 312 | + linarith | |
| 314 | 313 | have hd := finiteRate_negative_power (contDiff_const.mul physicalEnergy_smooth) |
| 315 | 314 | (isCompact_closedBall _ _) hK hq (mul_pos (by norm_num) hR) hlow2 |
| 316 | 315 | (p := -(1 / 2 : ℝ)) (by constructor <;> norm_num) m |
| @@ -359,8 +358,7 @@ theorem leadingVelocity_eq (h C : ℝ) (d : Coefficients) (z : SpaceTime) : | ||
| 359 | 358 | ext i |
| 360 | 359 | fin_cases i <;> |
| 361 | 360 | simp [leadingVelocity, AxisymmetricResidual.velocity, AxisymmetricResidual.componentX, |
| 362 | - AxisymmetricResidual.componentY, AxisymmetricResidual.lift, AxisymmetricResidual.pack, | |
| 363 | - BaseExterior.leadingAngular, cartesianMonomial, angularVector, coordinateVector, Fin.ext_iff] <;> ring | |
| 361 | + AxisymmetricResidual.componentY, AxisymmetricResidual.lift, BaseExterior.leadingAngular, cartesianMonomial, angularVector, coordinateVector, Fin.ext_iff] <;> ring | |
| 364 | 362 | |
| 365 | 363 | theorem leadingVelocity_rate {l : Filter SpaceTime} {h C lo hi : ℝ} |
| 366 | 364 | (hh : 0 < h) (hh1 : h < 1 / 2) (A : PhysicalApproach l h lo hi) |
| @@ -387,7 +385,7 @@ theorem heatLoss_controls_core {h : ℝ} (hh1 : h < 1 / 2) (m : ℕ) : | ||
| 387 | 385 | -heatLoss m ≤ -CoordinateAlgebra.A h - 2 * ((m : ℝ) + 1) := by |
| 388 | 386 | unfold heatLoss powerLoss CoordinateAlgebra.A |
| 389 | 387 | have hm : 0 ≤ (m : ℝ) := by positivity |
| 390 | - nlinarith [sq_nonneg (m : ℝ)] | |
| 388 | + linarith [sq_nonneg (m : ℝ)] | |
| 391 | 389 | |
| 392 | 390 | theorem heatLoss_controls_middle {h : ℝ} (hh1 : h < 1 / 2) (m : ℕ) : |
| 393 | 391 | -heatLoss m ≤ -CoordinateAlgebra.A h - 1 / 2 - m := by |
+2 −2 NavierStokes/ActualCarrierGeometry.lean View file
| @@ -117,9 +117,9 @@ theorem logCoordinate_in_broad_band {q : ℝ} (hq : 0 < q) {n : ℕ} | ||
| 117 | 117 | -Real.log q / Real.log 2 < (n : ℝ) + 2 |
| 118 | 118 | constructor |
| 119 | 119 | · apply (lt_div_iff₀ h2).mpr |
| 120 | - nlinarith | |
| 120 | + linarith | |
| 121 | 121 | · apply (div_lt_iff₀ h2).mpr |
| 122 | - nlinarith | |
| 122 | + linarith | |
| 123 | 123 | |
| 124 | 124 | variable {B N0 : ℕ} |
| 125 | 125 | |
+2 −2 NavierStokes/ActualCurrentParticularPhysical.lean View file
| @@ -128,7 +128,7 @@ theorem localPotentialMode_eq (x : CycleState (Label B N0)) (l : Label B N0) | ||
| 128 | 128 | (nativePotential x l j n (nativePoint n w))) := by |
| 129 | 129 | ext i |
| 130 | 130 | fin_cases i <;> simp [localPotentialMode, cylindricalPotential, nativePoint, |
| 131 | - PhysicalCurlCovariance.realVector, Complex.real_smul] | |
| 131 | + Complex.real_smul] | |
| 132 | 132 | |
| 133 | 133 | /-! ## The polar angle is only a coordinate choice -/ |
| 134 | 134 | |
| @@ -179,7 +179,7 @@ theorem periodic_eq_of_cos_sin {E : Type*} {f : ℝ → E} | ||
| 179 | 179 | (hf : Function.Periodic f (2 * Real.pi)) {a b : ℝ} |
| 180 | 180 | (hc : Real.cos a = Real.cos b) (hs : Real.sin a = Real.sin b) : f a = f b := by |
| 181 | 181 | obtain ⟨k, hk⟩ := Real.Angle.angle_eq_iff_two_pi_dvd_sub.mp (Real.Angle.cos_sin_inj hc hs) |
| 182 | - have he : a = b + (k : ℝ) * (2 * Real.pi) := by nlinarith [hk] | |
| 182 | + have he : a = b + (k : ℝ) * (2 * Real.pi) := by linarith [hk] | |
| 183 | 183 | rw [he] |
| 184 | 184 | exact hf.int_mul k b |
| 185 | 185 | |
+4 −4 NavierStokes/ActualCurrentWaveSupport.lean View file
| @@ -83,13 +83,13 @@ theorem profileRadius_mem_iff_active {w : SpaceTime} (ht : w.1 < 1) : | ||
| 83 | 83 | · intro hs |
| 84 | 84 | have hl := (sq_le_sq₀ ha.le hr).mpr hs.1 |
| 85 | 85 | have hu := (sq_le_sq₀ hr hb.le).mpr hs.2 |
| 86 | - constructor <;> nlinarith | |
| 86 | + constructor <;> linarith | |
| 87 | 87 | · intro hs |
| 88 | 88 | constructor |
| 89 | 89 | · apply (sq_le_sq₀ ha.le hr).mp |
| 90 | - nlinarith [hs.1] | |
| 90 | + linarith [hs.1] | |
| 91 | 91 | · apply (sq_le_sq₀ hr hb.le).mp |
| 92 | - nlinarith [hs.2] | |
| 92 | + linarith [hs.2] | |
| 93 | 93 | |
| 94 | 94 | /-- The normalized radius of the actual scaled graph agrees with the |
| 95 | 95 | band-independent physical ratio, also at the axis. -/ |
| @@ -439,7 +439,7 @@ theorem modes_zero_of_native | ||
| 439 | 439 | constructor |
| 440 | 440 | · rw [ActualCurrentParticularPhysical.localPotentialMode_eq, ha] |
| 441 | 441 | ext i |
| 442 | - fin_cases i <;> simp [PhysicalCurlCovariance.realVector, AxisymmetricResidual.pack] | |
| 442 | + fin_cases i <;> simp [PhysicalCurlCovariance.realVector] | |
| 443 | 443 | · change (ChartScales.Q n) ^ (-2 * CoordinateAlgebra.A ActualPrimary.h) * |
| 444 | 444 | (ActualCurrentParticularPhysical.nativePressure x l j n |
| 445 | 445 | (ActualCurrentParticularPhysical.nativePoint n w)).re = 0 |
+5 −5 NavierStokes/ActualGaussianCoverage.lean View file
| @@ -99,7 +99,7 @@ theorem envelope_uniform_bound {lam0 u0 : ℝ} (_hlam0 : 0 < lam0) (hu0 : 0 < u0 | ||
| 99 | 99 | have hm := mul_le_mul_of_nonneg_right |
| 100 | 100 | (mul_le_mul_of_nonneg_right hcoeff (sq_nonneg (theta F clock l n v - 1 / 2))) |
| 101 | 101 | (ScaledActualParticularControl.length_pos F clock l n).le |
| 102 | - nlinarith | |
| 102 | + linarith | |
| 103 | 103 | |
| 104 | 104 | end ScaledEnvelope |
| 105 | 105 | |
| @@ -198,7 +198,7 @@ theorem nativeCutoff_central_germ {r L c : ℝ} (hr : 0 < r) (hL : 0 < L) (hc : | ||
| 198 | 198 | nativeCutoff r L hr hL c =ᶠ[𝓝 z] fun _ => 1 := by |
| 199 | 199 | have hm : CopySolveCompatibility.nativeTimeMap 0 c z ∈ (referenceWindow r L hr hL).core := by |
| 200 | 200 | simp only [referenceWindow, PeriodicPhaseAssembly.ClockWindow.core, |
| 201 | - CopySolveCompatibility.nativeTimeMap, zero_add, mem_prod] | |
| 201 | + CopySolveCompatibility.nativeTimeMap, zero_add] | |
| 202 | 202 | exact ⟨hz.1, mul_nonneg hc.le hz.2.1, |
| 203 | 203 | by simpa only [mul_comm] using (le_div_iff₀ hc).mp hz.2.2⟩ |
| 204 | 204 | have ho := ((referenceWindow r L hr hL).cutoff_germ hm).comp_tendsto |
| @@ -241,7 +241,7 @@ theorem coordinates_path_outer (g : Geometry) (k : Frequency) {Y : Plane} | ||
| 241 | 241 | g.coordinates k (g.path k Y v) ∈ outerCell r L c := by |
| 242 | 242 | rw [g.coordinates_path] |
| 243 | 243 | refine ⟨hY.1, ?_, ?_⟩ |
| 244 | - · exact (div_nonpos_of_nonpos_of_nonneg (by nlinarith [padding_pos hr hL]) hc.le).trans hv.1 | |
| 244 | + · exact (div_nonpos_of_nonpos_of_nonneg (by linarith [padding_pos hr hL]) hc.le).trans hv.1 | |
| 245 | 245 | · exact hv.2.trans (div_le_div_of_nonneg_right (by linarith [padding_pos hr hL]) hc.le) |
| 246 | 246 | |
| 247 | 247 | theorem other_sourceCell_excluded (g : Geometry) {r L c : ℝ} |
| @@ -484,7 +484,7 @@ theorem gaussian_clock_uniform_jets | ||
| 484 | 484 | mul_le_mul (inverse_length_bound F clock hu0 hu l n) (hcost l n) |
| 485 | 485 | (zero_le_one.trans (CommonCoverClass.one_le_argumentCost _)) hc |
| 486 | 486 | _ ≤ (1 + (clock.upper * F.M / u0) * K) * s.slow n ^ p := by |
| 487 | - nlinarith [pow_nonneg (zero_le_one.trans (s.one_le_slow n)) p] | |
| 487 | + linarith [pow_nonneg (zero_le_one.trans (s.one_le_slow n)) p] | |
| 488 | 488 | have hj := affine_profile_uniform_jets s C |
| 489 | 489 | (fun l n => normalizedLinear (P := P) (g l n) (ScaledActualParticularControl.length F clock l n)) |
| 490 | 490 | (fun l n k => ((g l n).coordinates k 0).2 / ScaledActualParticularControl.length F clock l n) hA |
| @@ -693,7 +693,7 @@ theorem indexed_gaussian_weighted_all_gains {s : StripData X} {K : ℕ → I → | ||
| 693 | 693 | have hPg : W n i x ≤ Real.exp (-(c * ell / 25) * ChartScales.S n) := by |
| 694 | 694 | apply (hW n i x hx hi).trans |
| 695 | 695 | apply (Real.exp_le_exp.2 ?_).trans (gaussian_length_comparison hc.le (hLell n i)) |
| 696 | - nlinarith [mul_le_mul_of_nonneg_left hsq (mul_nonneg hc.le (hL n i).le)] | |
| 696 | + linarith [mul_le_mul_of_nonneg_left hsq (mul_nonneg hc.le (hL n i).le)] | |
| 697 | 697 | have hweight : s.epsilon n ^ α * W n i x ≤ B * s.epsilon n ^ β := |
| 698 | 698 | (mul_le_mul_of_nonneg_left hPg (Real.rpow_pos_of_pos (s.epsilon_pos n) α).le).trans (hshift n) |
| 699 | 699 | calc |
+8 −9 NavierStokes/ActualInitialExcluded.lean View file
| @@ -258,13 +258,13 @@ theorem bandLinear_bound {h Q : ℝ} (hQ : 0 < Q) (hQone : Q ≤ 1) | ||
| 258 | 258 | change max ‖-Q * p.2.2‖ ‖AxisymmetricResidual.pack |
| 259 | 259 | (Real.sqrt Q * p.1) 0 (Q ^ CoordinateAlgebra.D h * p.2.1)‖ ≤ _ |
| 260 | 260 | apply max_le |
| 261 | - · have hn : ‖-Q * p.2.2‖ = |Q * p.2.2| := by simp [Real.norm_eq_abs, abs_mul] | |
| 261 | + · have hn : ‖-Q * p.2.2‖ = |Q * p.2.2| := by simp [abs_mul] | |
| 262 | 262 | rw [hn] |
| 263 | 263 | linarith [norm_nonneg p] |
| 264 | 264 | · have hh := PhaseEstimates.vec3_norm_le_sum |
| 265 | 265 | (AxisymmetricResidual.pack (Real.sqrt Q * p.1) 0 (Q ^ CoordinateAlgebra.D h * p.2.1)) |
| 266 | 266 | simp only [AxisymmetricResidual.pack_zero, AxisymmetricResidual.pack_one, |
| 267 | - AxisymmetricResidual.pack_two, abs_zero, add_zero] at hh | |
| 267 | + AxisymmetricResidual.pack_two, abs_zero] at hh | |
| 268 | 268 | linarith [norm_nonneg p] |
| 269 | 269 | |
| 270 | 270 | theorem Q_tendsto_zero : Tendsto ChartScales.Q atTop (𝓝 0) := by |
| @@ -504,7 +504,7 @@ theorem baseError_zero_angle (n : ℕ) (x : BaseContextAssembly.Point) (i : Fin | ||
| 504 | 504 | simp only [ActualBaseResidual.baseError, ActualBaseResidual.errorAtScale, neg_zero, |
| 505 | 505 | ActualBaseResidual.physicalPoint_zero_angle, CylindricalResidual.frame_apply, |
| 506 | 506 | Real.cos_zero, Real.sin_zero, one_mul, zero_mul, sub_zero, zero_add, normalizedBase, |
| 507 | - BaseContextAssembly.physicalPoint, PiLp.smul_apply, smul_eq_mul] | |
| 507 | + BaseContextAssembly.physicalPoint, PiLp.smul_apply] | |
| 508 | 508 | congr 1 |
| 509 | 509 | fin_cases i <;> simp |
| 510 | 510 | |
| @@ -541,8 +541,7 @@ theorem nativeGaussian_zero_plateau (l : SignedLabel B N0) {x : Native} | ||
| 541 | 541 | nativeGaussian l =ᶠ[𝓝 x] fun _ => 0 := by |
| 542 | 542 | have hc : ContinuousAt (fun z : Native => z.2.2 / ((ActualPrimary.phases B N0 0).L l.2)) x := |
| 543 | 543 | continuousAt_snd.snd.div_const _ |
| 544 | - have he : ActualPrimary.gaussian l.2 =ᶠ[𝓝 x] fun _ => 1 := by | |
| 545 | - exact (GaussianTailFlat.profile_eventually_one hx).comp_tendsto hc.tendsto | |
| 544 | + have he : ActualPrimary.gaussian l.2 =ᶠ[𝓝 x] fun _ => 1 := (GaussianTailFlat.profile_eventually_one hx).comp_tendsto hc.tendsto | |
| 546 | 545 | have hd : fderiv ℝ (ActualPrimary.gaussian l.2) =ᶠ[𝓝 x] |
| 547 | 546 | fderiv ℝ (fun _ : Native => (1 : ℝ)) := he.fderiv |
| 548 | 547 | filter_upwards [hd] with z hz |
| @@ -577,7 +576,7 @@ theorem gaussianLength_near (l : SignedLabel B N0) (n : ℕ) (hn : near l n) : | ||
| 577 | 576 | ChartScales.slotLength ActualPrimary.slots.radius ActualPrimary.h (BaseChartJets.cellBand l.2) at hl |
| 578 | 577 | change _ ≤ ChartScales.slotLength ActualPrimary.slots.radius ActualPrimary.h (BaseChartJets.cellBand l.2) |
| 579 | 578 | unfold gaussianLengthLower |
| 580 | - nlinarith [mul_le_mul_of_nonneg_left hs ActualPrimary.slots.radius_pos.le] | |
| 579 | + linarith [mul_le_mul_of_nonneg_left hs ActualPrimary.slots.radius_pos.le] | |
| 581 | 580 | |
| 582 | 581 | /-- Outside the active finite band window the copied field is identically |
| 583 | 582 | zero. The auxiliary length merely makes the global index bookkeeping total. -/ |
| @@ -757,7 +756,7 @@ theorem nativeGaussian_source_support (l : SignedLabel B N0) : | ||
| 757 | 756 | simpa only [div_eq_mul_inv, inv_one, mul_one, one_mul, mul_comm] using |
| 758 | 757 | (le_div_iff₀ hL).mp hlo |
| 759 | 758 | · change x.2.2 ≤ 5 * ((ActualPrimary.phases B N0 0).L l.2 / 1) / 6 |
| 760 | - simpa only [div_eq_mul_inv, inv_one, mul_one, one_mul, mul_comm, mul_assoc, mul_left_comm] using | |
| 759 | + simpa only [div_eq_mul_inv, inv_one, one_mul, mul_comm, mul_assoc, mul_left_comm] using | |
| 761 | 760 | (div_le_iff₀ hL).mp hhi |
| 762 | 761 | |
| 763 | 762 | end InitialLabelSupport |
| @@ -829,7 +828,7 @@ theorem chartGaussian_germ (l : SignedLabel B N0) (n : ℕ) (k : TorusInverse.Fr | ||
| 829 | 828 | (chartCutoff_germ l n k hc).fderiv |
| 830 | 829 | filter_upwards [hd, ActualPrimaryDynamics.amplitude_germ l.1 l.2 n k hc] with y hy ha |
| 831 | 830 | simp only [chartGaussian, LinearWaveBounds.excludedSlotError, LinearWaveBounds.GraphDirections.Dfast, |
| 832 | - LinearWaveBounds.GraphDirections.fastField, HarmonicCalculus.along, Pi.zero_apply, smul_zero, | |
| 831 | + HarmonicCalculus.along, Pi.zero_apply, smul_zero, | |
| 833 | 832 | add_zero, hy, ha] |
| 834 | 833 | change fderiv ℝ (fun y => ActualPrimary.gaussian l.2 (ActualPrimaryDynamics.copyPoint l.1 l.2 n k y)) y |
| 835 | 834 | ((PrimaryResidualClass.directions (ActualPrimary.commonContext B)).fastField n y) • |
| @@ -1041,7 +1040,7 @@ theorem pressureAlias_all_gains_of_cumulative (d : ActualInitialMean.PrimaryData | ||
| 1041 | 1040 | have hW : ∀ i j, MeanClass strip 1 ((ActualInitialMean.ranked B N0).covariance i j) := by |
| 1042 | 1041 | intro i j |
| 1043 | 1042 | simp only [CorrectionState.State.covariance, ActualInitialMean.ranked, |
| 1044 | - ActualInitialMean.temporal, ActualInitialMean.primary, VariableGaugeMean.rankStageState, | |
| 1043 | + ActualInitialMean.temporal, VariableGaugeMean.rankStageState, | |
| 1045 | 1044 | VariableGaugeMean.temporalStageState, VariableGaugeMean.reconstructState, |
| 1046 | 1045 | CorrectionState.State.addIncrement, add_zero] |
| 1047 | 1046 | exact d.covariance i j |
+1 −2 NavierStokes/ActualInitialMeanEquation.lean View file
| @@ -360,8 +360,7 @@ theorem piece_divergence {B N0 : ℕ} (l : Label B N0 × Fin 2) (n : ℕ) {x : F | ||
| 360 | 360 | LiftedMeanResidual.axialDirection (commonContext B) n := by |
| 361 | 361 | funext y |
| 362 | 362 | simp [PrimaryResidualClass.directions, LinearWaveBounds.GraphDirections.axialField, |
| 363 | - LiftedMeanResidual.axialDirection, LiftedMeanResidual.axialVector, | |
| 364 | - LiftedMeanResidual.liftDirection] | |
| 363 | + LiftedMeanResidual.axialDirection, LiftedMeanResidual.liftDirection] | |
| 365 | 364 | rfl |
| 366 | 365 | rw [hr, hzz] at hz |
| 367 | 366 | exact componentDivergence_of_complex _ _ _ _ hv hz |
+1 −1 NavierStokes/ActualIterationLedger.lean View file
| @@ -75,7 +75,7 @@ theorem gain_add_tendsto_atTop {h : ℝ} (hh : 0 < h) (a : ℝ) : | ||
| 75 | 75 | have hp := (div_lt_iff₀ hh).mp hN |
| 76 | 76 | have hm := mul_le_mul_of_nonneg_left hn hh.le |
| 77 | 77 | unfold gain |
| 78 | - nlinarith | |
| 78 | + linarith | |
| 79 | 79 | |
| 80 | 80 | theorem gain_tendsto_atTop {h : ℝ} (hh : 0 < h) : Tendsto (gain h) atTop atTop := by |
| 81 | 81 | simpa only [add_zero] using gain_add_tendsto_atTop hh 0 |
+1 −1 NavierStokes/ActualMeanExterior.lean View file
| @@ -59,7 +59,7 @@ theorem active_of_mem_tsupport | ||
| 59 | 59 | Real.sq_sqrt (mul_nonneg (by norm_num) (LeadingStressWeights.activeRight_pos nominal).le) |
| 60 | 60 | change (SlowBorelBase.cartesianChart h w).2.1 ∈ |
| 61 | 61 | Icc (NominalConeAssembly.activeLeft nominal) (NominalConeAssembly.activeRight nominal) |
| 62 | - constructor <;> nlinarith | |
| 62 | + constructor <;> linarith | |
| 63 | 63 | |
| 64 | 64 | theorem not_mem_tsupport_of_exterior |
| 65 | 65 | (D : CoherentFamily h degree N Δ standardRegion.carrier ℝ) |
+12 −15 NavierStokes/ActualParticularControl.lean View file
| @@ -98,8 +98,7 @@ theorem frame_coefficient_jets_bounded | ||
| 98 | 98 | apply hh.congr |
| 99 | 99 | intro i z _ |
| 100 | 100 | ext w k |
| 101 | - fin_cases k <;> simp [PrimaryODE.FrameData.coefficient, PrimaryODE.FrameData.damping, | |
| 102 | - GrowingMode.modalOperator] | |
| 101 | + fin_cases k <;> simp [PrimaryODE.FrameData.coefficient, PrimaryODE.FrameData.damping] | |
| 103 | 102 | |
| 104 | 103 | end SelectedFrame |
| 105 | 104 | |
| @@ -459,7 +458,7 @@ private theorem majorant_enlarge (s : StripData E) (w : ℕ → E → ℝ) (α : | ||
| 459 | 458 | have ht := mul_le_mul_of_nonneg_right hp |
| 460 | 459 | (mul_nonneg (Real.rpow_pos_of_pos (s.epsilon_pos n) α).le hw) |
| 461 | 460 | unfold majorant |
| 462 | - nlinarith only [ht] | |
| 461 | + linarith only [ht] | |
| 463 | 462 | |
| 464 | 463 | end FiniteHarmonics |
| 465 | 464 | |
| @@ -640,7 +639,7 @@ theorem transported_coefficient (d : PrimaryODE.FrameData P) (φ : Q → P) | ||
| 640 | 639 | simp only [PrimaryODE.FrameData.coefficient,h11,h12,h21,h22,PrimaryODE.FrameData.damping] |
| 641 | 640 | ext x i |
| 642 | 641 | fin_cases i <;> |
| 643 | - simp [transportedFrame, GrowingMode.modalOperator] <;> ring | |
| 642 | + simp [transportedFrame] <;> ring | |
| 644 | 643 | |
| 645 | 644 | theorem transported_energy {ι : Type*} {D : PhaseJetBounds.Domain ι PhaseCalculus.Slow} |
| 646 | 645 | (F : PhaseConstruction D) (i : ι) (φ : Q → PhaseCalculus.Slow) |
| @@ -659,7 +658,7 @@ theorem transported_envelope_deriv (lam u L shift rate v : ℝ) : | ||
| 659 | 658 | referenceP lam u L (shift+rate*v)) v := by |
| 660 | 659 | have ht : HasDerivAt (fun t : ℝ => shift+rate*t) rate v := by |
| 661 | 660 | simpa using ((hasDerivAt_id v).const_mul rate).const_add shift |
| 662 | - simpa only [Function.comp_def, smul_eq_mul, mul_assoc, mul_left_comm, mul_comm] using | |
| 661 | + simpa only [Function.comp_def, smul_eq_mul, mul_assoc, mul_left_comm] using | |
| 663 | 662 | (referenceP_hasDerivAt lam u L (shift+rate*v)).scomp v ht |
| 664 | 663 | |
| 665 | 664 | /-- Clock shortening exactly compensates the rescaling of the modal error |
| @@ -680,7 +679,7 @@ theorem transported_normal (d : PrimaryODE.FrameData P) (φ : Q → P) | ||
| 680 | 679 | normalScale • d.normal (φ z.1,shift+rate*z.2) := by |
| 681 | 680 | ext i |
| 682 | 681 | fin_cases i <;> |
| 683 | - simp [transportedFrame, PrimaryODE.FrameData.normal, MovingFrameODE.normal, MovingFrameODE.pack] <;> ring | |
| 682 | + simp [transportedFrame, PrimaryODE.FrameData.normal, MovingFrameODE.normal] <;> ring | |
| 684 | 683 | |
| 685 | 684 | theorem transported_normalMotion (d : PrimaryODE.FrameData P) (φ : Q → P) |
| 686 | 685 | (shift rate normalScale : ℝ) (z : Q × ℝ) : |
| @@ -688,8 +687,7 @@ theorem transported_normalMotion (d : PrimaryODE.FrameData P) (φ : Q → P) | ||
| 688 | 687 | (normalScale*rate) • d.normalMotion (φ z.1,shift+rate*z.2) := by |
| 689 | 688 | ext i |
| 690 | 689 | fin_cases i <;> |
| 691 | - simp [transportedFrame, PrimaryODE.FrameData.normalMotion, MovingFrameODE.normalMotion, | |
| 692 | - MovingFrameODE.pack] <;> ring | |
| 690 | + simp [transportedFrame, PrimaryODE.FrameData.normalMotion, MovingFrameODE.normalMotion] <;> ring | |
| 693 | 691 | |
| 694 | 692 | theorem transported_kinematics (d : PrimaryODE.FrameData P) (φ : Q → P) |
| 695 | 693 | (shift rate normalScale : ℝ) (hnormal : normalScale ≠ 0) |
| @@ -702,22 +700,22 @@ theorem transported_kinematics (d : PrimaryODE.FrameData P) (φ : Q → P) | ||
| 702 | 700 | fun v hv => hd.eigenvector_ne_zero _ (hmap hv), ?_, ?_, ?_, ?_, ?_⟩ |
| 703 | 701 | · intro v hv |
| 704 | 702 | have he := ((hd.beta_deriv _ (hmap hv)).scomp v (ht v)).const_mul normalScale |
| 705 | - simpa only [transportedFrame,Function.comp_def,smul_eq_mul,mul_assoc,mul_left_comm,mul_comm] using he | |
| 703 | + simpa only [transportedFrame,Function.comp_def,smul_eq_mul,mul_assoc,mul_left_comm] using he | |
| 706 | 704 | · intro v hv |
| 707 | 705 | have he := (hd.rho_deriv _ (hmap hv)).scomp v (ht v) |
| 708 | - simp only [transportedFrame, Function.comp_def, smul_eq_mul, mul_comm] at he ⊢ | |
| 706 | + simp only [transportedFrame, Function.comp_def, smul_eq_mul] at he ⊢ | |
| 709 | 707 | exact he |
| 710 | 708 | · intro v hv |
| 711 | 709 | have he := (hd.eigenvector_deriv _ (hmap hv)).scomp v (ht v) |
| 712 | - simp only [transportedFrame, Function.comp_def, smul_eq_mul, mul_assoc,mul_left_comm,mul_comm] at he ⊢ | |
| 710 | + simp only [transportedFrame, Function.comp_def, smul_eq_mul, mul_assoc,mul_left_comm] at he ⊢ | |
| 713 | 711 | exact he |
| 714 | 712 | · intro v hv |
| 715 | 713 | have he := (hd.frameK_deriv _ (hmap hv)).scomp v (ht v) |
| 716 | - simp only [transportedFrame, Function.comp_def, smul_smul, mul_comm] at he ⊢ | |
| 714 | + simp only [transportedFrame, Function.comp_def, smul_smul] at he ⊢ | |
| 717 | 715 | exact he |
| 718 | 716 | · intro v hv |
| 719 | 717 | have he := (hd.frameN_deriv _ (hmap hv)).scomp v (ht v) |
| 720 | - simp only [transportedFrame, Function.comp_def, smul_smul, mul_neg, mul_comm] at he ⊢ | |
| 718 | + simp only [transportedFrame, Function.comp_def, smul_smul, mul_neg] at he ⊢ | |
| 721 | 719 | exact he |
| 722 | 720 | |
| 723 | 721 | /-- The transformed frame is precisely the tangent transport already used |
| @@ -743,8 +741,7 @@ theorem frameTangentData_transport | ||
| 743 | 741 | ext i |
| 744 | 742 | fin_cases i <;> |
| 745 | 743 | simp [ transportedFrame, |
| 746 | - PrimaryCopyBridge.baseOperator_apply, MovingFrameODE.baseAction, MovingFrameODE.pack, | |
| 747 | - PrimaryCopyBridge.nativePoint, CopySolveCompatibility.nativeTimeMap] <;> ring | |
| 744 | + PrimaryCopyBridge.baseOperator_apply, MovingFrameODE.baseAction, PrimaryCopyBridge.nativePoint, CopySolveCompatibility.nativeTimeMap] <;> ring | |
| 748 | 745 | · funext z |
| 749 | 746 | simp [ transportedFrame, |
| 750 | 747 | PrimaryODE.FrameData.damping, PrimaryCopyBridge.nativePoint, CopySolveCompatibility.nativeTimeMap] |
+1 −1 NavierStokes/ActualPhaseJetBounds.lean View file
| @@ -351,7 +351,7 @@ theorem phaseLinear_bound {l : SignedLabel B N0} {n : ℕ} | ||
| 351 | 351 | · exact (norm_smul_le _ _).trans |
| 352 | 352 | (mul_le_mul (by simpa only [Real.norm_eq_abs] using hd) hz |
| 353 | 353 | (norm_nonneg _) (mul_nonneg hM0 (inv_nonneg.mpr he.le))) |
| 354 | - _ ≤ _ := by nlinarith [mul_le_mul_of_nonneg_left hprod hM0] | |
| 354 | + _ ≤ _ := by linarith [mul_le_mul_of_nonneg_left hprod hM0] | |
| 355 | 355 | |
| 356 | 356 | theorem localPhase_positive_jets (m : ℕ) : |
| 357 | 357 | ∃ C : ℝ, 1 ≤ C ∧ ∃ p : ℕ, ∀ n (i : CopyIndex B N0) x, |
+2 −2 NavierStokes/ActualPhysicalPrefixFields.lean View file
| @@ -47,7 +47,7 @@ theorem periodic_eq_of_cos_sin {E : Type*} {f : ℝ → E} | ||
| 47 | 47 | (hc : Real.cos alpha = Real.cos beta) (hs : Real.sin alpha = Real.sin beta) : |
| 48 | 48 | f alpha = f beta := by |
| 49 | 49 | obtain ⟨k, hk⟩ := Real.Angle.angle_eq_iff_two_pi_dvd_sub.mp (Real.Angle.cos_sin_inj hc hs) |
| 50 | - have he : alpha = beta + (k : ℝ) * (2 * Real.pi) := by nlinarith [hk] | |
| 50 | + have he : alpha = beta + (k : ℝ) * (2 * Real.pi) := by linarith [hk] | |
| 51 | 51 | rw [he] |
| 52 | 52 | exact hf.int_mul k beta |
| 53 | 53 | |
| @@ -177,7 +177,7 @@ theorem graphMapTZ_replaceAngle (G : ScaledGraph) (z : SpaceTime) (theta : ℝ) | ||
| 177 | 177 | PhysicalResidualTZ.graphMapTZ G (replaceAngle z theta) = |
| 178 | 178 | ((PhysicalResidualTZ.graphMapTZ G z).1, theta) := by |
| 179 | 179 | simp [PhysicalResidualTZ.graphMapTZ, replaceAngle, PhysicalResidualBridge.ScaledGraph.map, |
| 180 | - PhysicalResidualTZ.swapCylinder_apply, PhysicalResidualTZ.swapSlow_apply] | |
| 180 | + PhysicalResidualTZ.swapCylinder_apply] | |
| 181 | 181 | |
| 182 | 182 | theorem velocityTZ_periodic (G : ScaledGraph) (a : Cylinder → Fin 3 → ℝ) |
| 183 | 183 | (ha : ∀ x : Point, Function.Periodic (fun theta => a (x, theta)) (2 * Real.pi)) : |
+2 −2 NavierStokes/ActualPolarCoverage.lean View file
| @@ -109,9 +109,9 @@ theorem graph_profileRadius_mem {F : OutgoingProfile.Profile} | ||
| 109 | 109 | Real.sq_sqrt (mul_nonneg (by norm_num) (LeadingStressWeights.activeRight_pos W).le) |
| 110 | 110 | constructor |
| 111 | 111 | · apply (sq_le_sq₀ ha.le hr).mp |
| 112 | - nlinarith [hactive.1] | |
| 112 | + linarith [hactive.1] | |
| 113 | 113 | · apply (sq_le_sq₀ hr hb.le).mp |
| 114 | - nlinarith [hactive.2] | |
| 114 | + linarith [hactive.2] | |
| 115 | 115 | |
| 116 | 116 | /-! ## Closure of a moving strip, including both radial endpoints -/ |
| 117 | 117 | |
+2 −3 NavierStokes/ActualPrimaryCoherence.lean View file
| @@ -436,8 +436,7 @@ theorem frequencySlow_smoothAt (B n : ℕ) {p : PhaseCalculus.Slow} | ||
| 436 | 436 | (x := BaseContextAssembly.insertSlow y) hyT hyR |
| 437 | 437 | apply (eq_div_iff hyR.ne').mpr |
| 438 | 438 | simp only [BaseContextAssembly.base, BaseContextAssembly.frequencyBase, |
| 439 | - BaseContextAssembly.frequencySlow, BaseContextAssembly.insertSlow, | |
| 440 | - BaseContextAssembly.slowCoordinates_apply, mul_comm] at hh ⊢ | |
| 439 | + BaseContextAssembly.frequencySlow, BaseContextAssembly.slowCoordinates_apply, mul_comm] at hh ⊢ | |
| 441 | 440 | exact hh |
| 442 | 441 | exact (hs.div contDiffAt_fst hR.ne').congr_of_eventuallyEq he |
| 443 | 442 | |
| @@ -1622,7 +1621,7 @@ theorem periodic_value_of_polar_eq {E : Type} (f : TorusInverse.Plane → E) | ||
| 1622 | 1621 | apply mul_left_cancel₀ hr |
| 1623 | 1622 | simpa only [PolarCharts.polar,hqr] using congrArg Prod.snd hq |
| 1624 | 1623 | obtain ⟨n,hn⟩ := Real.Angle.angle_eq_iff_two_pi_dvd_sub.mp (Real.Angle.cos_sin_inj hc hs) |
| 1625 | - have he : q.2 = θ+n*(2*Real.pi) := by nlinarith [hn] | |
| 1624 | + have he : q.2 = θ+n*(2*Real.pi) := by linarith [hn] | |
| 1626 | 1625 | rw [← Prod.eta q,hqr,he] |
| 1627 | 1626 | exact ((hf r).int_mul n) θ |
| 1628 | 1627 | |
+3 −3 NavierStokes/ActualSignedGeometry.lean View file
| @@ -412,7 +412,7 @@ theorem clock_outer_in_slot (hh : 0 ≤ h) {l : SlotColoring.Label} (hl : 4 ≤ | ||
| 412 | 412 | exact he |
| 413 | 413 | have hlo := mul_le_mul_of_nonneg_left he.1 hci.le |
| 414 | 414 | have hhi := mul_le_mul_of_nonneg_left he.2 hci.le |
| 415 | - exact abs_le.mpr ⟨by nlinarith, by nlinarith⟩ | |
| 415 | + exact abs_le.mpr ⟨by linarith, by linarith⟩ | |
| 416 | 416 | refine ⟨z.1, ChartScales.timeCoefficient h l.1 * z.2 - sys.radius, hz1, hz2, ?_⟩ |
| 417 | 417 | dsimp only |
| 418 | 418 | rw [slotGeometry_basis] |
| @@ -452,7 +452,7 @@ theorem slotGeometry_common_cost (hh : 0 ≤ h) {index : ℕ → ℕ} {budget : | ||
| 452 | 452 | have hc := CommonCoverClass.bandArgumentCost_one_le (TorusAverages.slotChart vr vt hdet) |
| 453 | 453 | (budget + SlotColoring.nativeGap h) |
| 454 | 454 | have he := mul_le_mul_of_nonneg_left (S_window_le hn hln) (zero_le_one.trans hc) |
| 455 | - nlinarith | |
| 455 | + linarith | |
| 456 | 456 | |
| 457 | 457 | end Slots |
| 458 | 458 | |
| @@ -744,7 +744,7 @@ noncomputable def temporalVector : Plane := TorusInverse.vector .temporal | ||
| 744 | 744 | |
| 745 | 745 | theorem vectors_det : radialVector.1 * temporalVector.2 - radialVector.2 * temporalVector.1 ≠ 0 := by |
| 746 | 746 | dsimp [radialVector, temporalVector, TorusInverse.vector] |
| 747 | - nlinarith [sq_nonneg (Real.sqrt 2 - 1)] | |
| 747 | + linarith [sq_nonneg (Real.sqrt 2 - 1)] | |
| 748 | 748 | |
| 749 | 749 | noncomputable def slotLinear (g : CommonCoverSolve.Geometry) : Cylinder →L[ℝ] PhaseCalculus.Slot where |
| 750 | 750 | toFun x := ((x.1.1, x.1.2.1), (x.2, (g.coordinateLinear x.1.2.2).2)) |
+2 −2 NavierStokes/ActualSignedNativeBounds.lean View file
| @@ -69,13 +69,13 @@ theorem norm_coverEquiv_symm_le (y : TorusInverse.Plane) : | ||
| 69 | 69 | apply (div_le_iff₀ (by norm_num : (0 : ℝ) < 14)).mpr |
| 70 | 70 | have ha := abs_sub (5 * y.1) y.2 |
| 71 | 71 | rw [abs_mul, abs_of_pos (by norm_num : (0 : ℝ) < 5)] at ha |
| 72 | - nlinarith [norm_nonneg y] | |
| 72 | + linarith [norm_nonneg y] | |
| 73 | 73 | have hY : |x.2| ≤ ‖y‖ := by |
| 74 | 74 | rw [hy, abs_div, abs_of_pos (by norm_num : (0 : ℝ) < 14)] |
| 75 | 75 | apply (div_le_iff₀ (by norm_num : (0 : ℝ) < 14)).mpr |
| 76 | 76 | have ha := abs_sub (3 * y.2) y.1 |
| 77 | 77 | rw [abs_mul, abs_of_pos (by norm_num : (0 : ℝ) < 3)] at ha |
| 78 | - nlinarith [norm_nonneg y] | |
| 78 | + linarith [norm_nonneg y] | |
| 79 | 79 | exact max_le hX hY |
| 80 | 80 | |
| 81 | 81 | theorem norm_coverPower_symm_le (d : ℕ) (y : TorusInverse.Plane) : |
+2 −4 NavierStokes/ActualSignedNativeProfiles.lean View file
| @@ -228,8 +228,7 @@ theorem potential_profiles_jets (i : Fin 3) : | ||
| 228 | 228 | simp only [ite_true] at he |
| 229 | 229 | simp only [DependentSignedPhysicalFamily.Family.potentialCopies, |
| 230 | 230 | DependentSignedPhysicalFamily.Family.assembled, DependentSignedPhysicalFamily.diagonal, |
| 231 | - DependentSignedPhysicalFamily.Family.copyAt, dite_eq_left hactive, | |
| 232 | - ActualSignedPhysicalData.potentialFamily] | |
| 231 | + DependentSignedPhysicalFamily.Family.copyAt, dite_eq_left hactive] | |
| 233 | 232 | exact he.symm |
| 234 | 233 | · have hempty : p ∈ (∅ : Set Slow) := by |
| 235 | 234 | simpa only [profileDomain, PhysicalCopyBounds.copyBandDomain, region, dite_eq_right hI] using hp |
| @@ -250,8 +249,7 @@ theorem pressure_profiles_jets : | ||
| 250 | 249 | simp only [ite_true] at he |
| 251 | 250 | simp only [DependentSignedPhysicalFamily.Family.pressureCopies, |
| 252 | 251 | DependentSignedPhysicalFamily.Family.assembled, DependentSignedPhysicalFamily.diagonal, |
| 253 | - DependentSignedPhysicalFamily.Family.copyAt, dite_eq_left hactive, | |
| 254 | - ActualSignedPhysicalData.pressureFamily] | |
| 252 | + DependentSignedPhysicalFamily.Family.copyAt, dite_eq_left hactive] | |
| 255 | 253 | exact he.symm |
| 256 | 254 | · have hempty : p ∈ (∅ : Set Slow) := by |
| 257 | 255 | simpa only [profileDomain, PhysicalCopyBounds.copyBandDomain, region, dite_eq_right hI] using hp |
+6 −6 NavierStokes/ActualSignedPhysicalData.lean View file
| @@ -105,7 +105,7 @@ theorem width_on_core (label : SlotColoring.Label) (gap : ℕ) (k : Frequency) ( | ||
| 105 | 105 | 2 * sys.radius := by |
| 106 | 106 | unfold ChartScales.slotLength |
| 107 | 107 | field_simp |
| 108 | - exact abs_le.mpr ⟨by nlinarith [mul_nonneg hci.le hv.1], by nlinarith⟩ | |
| 108 | + exact abs_le.mpr ⟨by linarith [mul_nonneg hci.le hv.1], by linarith⟩ | |
| 109 | 109 | |
| 110 | 110 | noncomputable def nativeMask (label : SlotColoring.Label) (z : Plane) : ℝ := |
| 111 | 111 | PartitionedCovariance.cutoff sys.radius z.1 * |
| @@ -309,7 +309,7 @@ theorem rotateCoefficient_chart_re {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index | ||
| 309 | 309 | rw [← hs] |
| 310 | 310 | field_simp |
| 311 | 311 | fin_cases i <;> simp [rotateCoefficient, hcos, hsin, CylindricalResidual.frame_apply, |
| 312 | - PhysicalCurlCovariance.realVector, AxisymmetricResidual.pack, coordinateVector, | |
| 312 | + AxisymmetricResidual.pack, coordinateVector, | |
| 313 | 313 | -Complex.ofReal_cos, -Complex.ofReal_sin] |
| 314 | 314 | |
| 315 | 315 | theorem cylinderAt_fst {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) {x : LiftPoint} |
| @@ -382,7 +382,7 @@ theorem cylinderAt_physical_forward (h : ℝ) (n : ℕ) {a : ℝ} (ha : 0 < a) | ||
| 382 | 382 | PhysicalGraphBounds.nativeGraph h n (z.1, CylindricalResidual.chart z.2))), z.2 1) := by |
| 383 | 383 | unfold cylinderAt |
| 384 | 384 | rw [PhysicalGraphBounds.liftXY_physicalLift, hp] |
| 385 | - ext <;> simp [PhysicalGraphBounds.liftZT, PhysicalGraphBounds.physicalLift, | |
| 385 | + ext <;> simp [PhysicalGraphBounds.physicalLift, | |
| 386 | 386 | PhysicalGraphBounds.physicalChart, PhysicalGraphBounds.chartLinear_apply, |
| 387 | 387 | CylindricalResidual.chart, AxisymmetricResidual.pack, coordinateVector] |
| 388 | 388 | ring |
| @@ -1070,7 +1070,7 @@ theorem primitive_annulus (hh0 : 0 < h) (hh1 : h < 1 / 2) (ha : 0 < a) (hb : 0 < | ||
| 1070 | 1070 | have hs := Real.sqrt_pos.mpr hq |
| 1071 | 1071 | have hslow := normalized_slow_norm hh0 hh1 hy.1 hy.2.1 hy.2.2.1 |
| 1072 | 1072 | have hlo : 1 / 2 ≤ Real.sqrt (SimilarityCoordinates.coordinateQ (2 * h) y.2.1) := |
| 1073 | - (Real.le_sqrt (by norm_num) hq.le).mpr (by nlinarith [hy.2.1]) | |
| 1073 | + (Real.le_sqrt (by norm_num) hq.le).mpr (by linarith [hy.2.1]) | |
| 1074 | 1074 | have hhi : Real.sqrt (SimilarityCoordinates.coordinateQ (2 * h) y.2.1) ≤ 2 := |
| 1075 | 1075 | (Real.sqrt_le_left (by norm_num)).mpr (by linarith [hy.2.2.1]) |
| 1076 | 1076 | have hradlo := (le_div_iff₀ hs).mp hy.2.2.2.1 |
| @@ -1623,11 +1623,11 @@ theorem polarCoordinates_backward {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) | ||
| 1623 | 1623 | ext i |
| 1624 | 1624 | fin_cases i |
| 1625 | 1625 | · simpa [PhysicalCurlCovariance.polarCoordinates, PhysicalCurlCovariance.polarInput, |
| 1626 | - CylindricalResidual.chart, AxisymmetricResidual.pack, coordinateVector, | |
| 1626 | + CylindricalResidual.chart, coordinateVector, | |
| 1627 | 1627 | PiLp.single_apply, PolarCharts.polar, PhysicalGraphBounds.radialProjection_apply] |
| 1628 | 1628 | using congrArg Prod.fst hp |
| 1629 | 1629 | · simpa [PhysicalCurlCovariance.polarCoordinates, PhysicalCurlCovariance.polarInput, |
| 1630 | - CylindricalResidual.chart, AxisymmetricResidual.pack, coordinateVector, | |
| 1630 | + CylindricalResidual.chart, coordinateVector, | |
| 1631 | 1631 | PiLp.single_apply, PolarCharts.polar, PhysicalGraphBounds.radialProjection_apply] |
| 1632 | 1632 | using congrArg Prod.snd hp |
| 1633 | 1633 | · simp [PhysicalCurlCovariance.polarCoordinates, CylindricalResidual.chart] |
+2 −2 NavierStokes/ActualSlowAxis.lean View file
| @@ -32,7 +32,7 @@ theorem parameterDomain_subset (Ω : Set ℂ) : parameterDomain Ω ⊆ Ω := fun | ||
| 32 | 32 | |
| 33 | 33 | theorem parameterDomain_conjugate {Ω : Set ℂ} {z : ℂ} (hz : z ∈ parameterDomain Ω) : |
| 34 | 34 | starRingEnd ℂ z ∈ parameterDomain Ω := by |
| 35 | - exact ⟨⟨hz.1.2, by simpa using hz.1.1⟩, by simpa using hz.2⟩ | |
| 35 | + exact ⟨⟨hz.1.2, by simpa using hz.1.1⟩, hz.2⟩ | |
| 36 | 36 | |
| 37 | 37 | theorem parameterDomain_real {Ω : Set ℂ} |
| 38 | 38 | (hreal : ∀ eta ∈ Icc (-1 : ℝ) 1, (eta : ℂ) ∈ Ω) |
| @@ -229,7 +229,7 @@ theorem collar_lt_square (N : ReferencePath.Input) (δ : ℝ) : | ||
| 229 | 229 | have hs := Real.sq_sqrt hp |
| 230 | 230 | have hn := Real.sqrt_nonneg (N.endpoint * Real.exp δ) |
| 231 | 231 | unfold axisRadius |
| 232 | - nlinarith | |
| 232 | + linarith | |
| 233 | 233 | |
| 234 | 234 | noncomputable def hierarchy {T δ : ℝ} (hT : 0 < T) (hδ : 0 < δ) |
| 235 | 235 | (hδT : 2 * δ < ReferencePath.rampLimit) (κ : ℝ) (hP0 : ContDiff ℝ ∞ P0) (C : ℝ) := |
+1 −1 NavierStokes/AnnularAuxiliary.lean View file
| @@ -38,7 +38,7 @@ theorem positiveMap_pos {a : ℝ} (ha : 0 < a) (X : ℝ) : 0 < positiveMap a X : | ||
| 38 | 38 | · have hc := (TransportPrimitive.cutoff_mem_Icc (a / 2) a X).2 |
| 39 | 39 | have hm := mul_le_mul_of_nonneg_right hc (sub_nonneg.mpr (le_of_not_ge hXa)) |
| 40 | 40 | dsimp [positiveMap] |
| 41 | - nlinarith | |
| 41 | + linarith | |
| 42 | 42 | |
| 43 | 43 | section Transplant |
| 44 | 44 | |
+4 −4 NavierStokes/BaseContextAssembly.lean View file
| @@ -71,7 +71,7 @@ noncomputable def slowCoordinates : Point →L[ℝ] Slow where | ||
| 71 | 71 | theorem slowCoordinates_norm_le : ‖slowCoordinates‖ ≤ 1 := by |
| 72 | 72 | apply ContinuousLinearMap.opNorm_le_bound _ zero_le_one |
| 73 | 73 | intro x |
| 74 | - simp only [slowCoordinates_apply, one_mul, Prod.norm_def] | |
| 74 | + simp only [one_mul, Prod.norm_def] | |
| 75 | 75 | exact max_le_max le_rfl ((max_comm _ _).le.trans (le_max_left _ _)) |
| 76 | 76 | |
| 77 | 77 | noncomputable def physicalPoint (h : ℝ) (n : ℕ) (x : Point) : ProblemStatement.SpaceTime := |
| @@ -267,8 +267,8 @@ theorem nativeStrip_active (U : LocalSignedRequest.SlowRegion (2 * F.data.h)) | ||
| 267 | 267 | have heta := BaseChartJets.normalizedCoordinates_eta F.data.h_pos F.data.h_lt_half |
| 268 | 268 | (p := slowCoordinates x) hT |
| 269 | 269 | refine ⟨⟨?_, ?_⟩, ?_⟩ |
| 270 | - · nlinarith | |
| 271 | - · nlinarith | |
| 270 | + · linarith | |
| 271 | + · linarith | |
| 272 | 272 | · exact ⟨(abs_lt.mp heta).1.le, (abs_lt.mp heta).2.le⟩ |
| 273 | 273 | |
| 274 | 274 | theorem nativeStrip_weight (U : LocalSignedRequest.SlowRegion (2 * F.data.h)) |
| @@ -477,7 +477,7 @@ theorem angularBase_physical (n : ℕ) {x : Point} (hT : 0 < x.2.1.1) (hR : 0 < | ||
| 477 | 477 | change x.1 * BaseChartJets.frequency _ _ _ _ _ _ = _ |
| 478 | 478 | rw [he] |
| 479 | 479 | change x.1 * (_ / x.1) = _ |
| 480 | - simp only [FinalSlowBase.velocity, physicalPoint, slowCoordinates_apply] | |
| 480 | + simp only [FinalSlowBase.velocity, physicalPoint] | |
| 481 | 481 | field_simp |
| 482 | 482 | |
| 483 | 483 | theorem physicalComponent_smoothAt (n : ℕ) (i : Fin 3) {x : Point} (hT : 0 < x.2.1.1) : |
+3 −5 NavierStokes/BaseExterior.lean View file
| @@ -266,14 +266,13 @@ theorem exterior_velocity_eq_leading {a : ℕ → ℕ} (ha : StrictMono a) {h C | ||
| 266 | 266 | coordinateVector] |
| 267 | 267 | · change baseVelocity a h C d z 1 = _ |
| 268 | 268 | rw [show baseVelocity a h C d z 1 = _ from AxisymmetricFields.velocity_one _ _ _ _ hH hK] |
| 269 | - simp [hZ, hsw, AxisymmetricResidual.velocity, AxisymmetricResidual.componentX, | |
| 270 | - AxisymmetricResidual.componentY, AxisymmetricResidual.pack, AxisymmetricResidual.lift, | |
| 269 | + simp [hZ, hsw, AxisymmetricResidual.velocity, AxisymmetricResidual.componentY, AxisymmetricResidual.pack, AxisymmetricResidual.lift, | |
| 271 | 270 | coordinateVector] |
| 272 | 271 | · change baseVelocity a h C d z 2 = _ |
| 273 | 272 | rw [show baseVelocity a h C d z 2 = _ from AxisymmetricFields.velocity_two _ _ _ _ hH hK] |
| 274 | 273 | simp [h0, hS, AxisymmetricResidual.velocity, AxisymmetricResidual.componentX, |
| 275 | 274 | AxisymmetricResidual.componentY, AxisymmetricResidual.pack, AxisymmetricResidual.lift, |
| 276 | - coordinateVector, Fin.ext_iff] | |
| 275 | + coordinateVector] | |
| 277 | 276 | |
| 278 | 277 | theorem exterior_pressure_eq_leading {a : ℕ → ℕ} {h C R : ℝ} {d : Coefficients} |
| 279 | 278 | (hh : 0 < h) (hh1 : h < 1 / 2) (hd : ExteriorCoefficients d R) |
| @@ -595,8 +594,7 @@ theorem heatVelocity_eq_angularVector (C h : ℝ) (z : SpaceTime) : | ||
| 595 | 594 | ext i |
| 596 | 595 | fin_cases i <;> |
| 597 | 596 | simp [heatVelocity, AxisymmetricResidual.velocity, AxisymmetricResidual.componentX, |
| 598 | - AxisymmetricResidual.componentY, AxisymmetricResidual.lift, AxisymmetricResidual.pack, | |
| 599 | - BaseResidual.angularVector, coordinateVector, Fin.ext_iff] <;> ring | |
| 597 | + AxisymmetricResidual.componentY, AxisymmetricResidual.lift, BaseResidual.angularVector, coordinateVector, Fin.ext_iff] <;> ring | |
| 600 | 598 | |
| 601 | 599 | /-- The exact exterior solution is jointly smooth up to the terminal time |
| 602 | 600 | on every region of positive physical radius, in Cartesian coordinates. -/ |
+26 −26 NavierStokes/BasePhaseGeometry.lean View file
| @@ -95,7 +95,7 @@ theorem derivative_norm_of_error {F F0 : Slow → ℝ} {q : Slow} {M ε : ℝ} | ||
| 95 | 95 | have hnorm := norm_sub_le_norm_sub_add_norm_sub (fderiv ℝ F q) (fderiv ℝ F0 q) 0 |
| 96 | 96 | simp only [sub_zero] at hnorm |
| 97 | 97 | have he := mul_le_mul_of_nonneg_left hε hM |
| 98 | - nlinarith | |
| 98 | + linarith | |
| 99 | 99 | |
| 100 | 100 | /-- Primitive normalized-base C1 errors and fixed reference C2 bounds give |
| 101 | 101 | all local hypotheses used by the phase estimate. -/ |
| @@ -183,21 +183,21 @@ theorem frame_errors_of_normal_close | ||
| 183 | 183 | have hKerr : ‖PrimaryODE.localFrame n 0 - K‖ ≤ E := by |
| 184 | 184 | rw [h0] |
| 185 | 185 | exact (PhaseEstimates.normalDirection_close hB hK hsmall hn).trans |
| 186 | - ((scaled_div_mono hδ hb hbB (by norm_num : (0 : ℝ) ≤ 4) (by nlinarith)).trans hfac) | |
| 186 | + ((scaled_div_mono hδ hb hbB (by norm_num : (0 : ℝ) ≤ 4) (by linarith)).trans hfac) | |
| 187 | 187 | have hNerr : ‖PrimaryODE.localFrame n 1 - MovingFrameODE.quarterTurn K‖ ≤ E := by |
| 188 | 188 | rw [h1] |
| 189 | 189 | exact (PhaseEstimates.transverseDirection_close hB hK hsmall hn).trans |
| 190 | - ((scaled_div_mono hδ hb hbB (by norm_num : (0 : ℝ) ≤ 4) (by nlinarith)).trans hfac) | |
| 190 | + ((scaled_div_mono hδ hb hbB (by norm_num : (0 : ℝ) ≤ 4) (by linarith)).trans hfac) | |
| 191 | 191 | have hrerr : |MovingFrameODE.radialSlope n - s| ≤ E := |
| 192 | 192 | (PhaseEstimates.radialSlope_close hB hK hsmall hn).trans |
| 193 | - ((scaled_div_mono hδ hb hbB (by positivity) (by nlinarith [abs_nonneg s])).trans hfac) | |
| 193 | + ((scaled_div_mono hδ hb hbB (by positivity) (by linarith [abs_nonneg s])).trans hfac) | |
| 194 | 194 | have hrderr : |PhaseEstimates.slopeDerivative n nDot| ≤ E := |
| 195 | 195 | (PhaseEstimates.slopeDerivative_bound hB hlow hnd).trans |
| 196 | 196 | ((scaled_div_mono hδ hb hbB (by positivity) |
| 197 | - (by nlinarith [abs_nonneg (MovingFrameODE.radialSlope n)])).trans hfac) | |
| 197 | + (by linarith [abs_nonneg (MovingFrameODE.radialSlope n)])).trans hfac) | |
| 198 | 198 | have hωerr : |PhaseEstimates.angularVelocity n nDot| ≤ E := |
| 199 | 199 | (PhaseEstimates.angularVelocity_bound hB hlow hnd).trans |
| 200 | - ((scaled_div_mono hδ hb hbB (by norm_num : (0 : ℝ) ≤ 4) (by nlinarith)).trans hfac) | |
| 200 | + ((scaled_div_mono hδ hb hbB (by norm_num : (0 : ℝ) ≤ 4) (by linarith)).trans hfac) | |
| 201 | 201 | have h := MovingFrameODE.frame_coefficients_close |
| 202 | 202 | (B := PrimaryODE.localFrame n) (B0 := MovingFrameODE.frameOfUnit K hK) |
| 203 | 203 | (g := g) (g0 := g0) (F := F) (F0 := F0) (ρ := MovingFrameODE.radialSlope n) |
| @@ -248,7 +248,7 @@ theorem damping_error_of_normal_close | ||
| 248 | 248 | have hn' : ‖n‖ ≤ M * (A + 3) := by |
| 249 | 249 | have hh := norm_sub_le_norm_sub_add_norm_sub n r 0 |
| 250 | 250 | simp only [sub_zero] at hh |
| 251 | - nlinarith | |
| 251 | + linarith | |
| 252 | 252 | have hdiff : |‖n‖ - ‖r‖| ≤ δ := (abs_norm_sub_norm_le n r).trans hn |
| 253 | 253 | have hsq : |‖n‖ ^ 2 - ‖r‖ ^ 2| ≤ δ * (M * (2 * A + 5)) := by |
| 254 | 254 | calc |
| @@ -256,7 +256,7 @@ theorem damping_error_of_normal_close | ||
| 256 | 256 | rw [← abs_of_nonneg (add_nonneg (norm_nonneg n) (norm_nonneg r)), ← abs_mul] |
| 257 | 257 | congr 1 |
| 258 | 258 | ring |
| 259 | - _ ≤ δ * (M * (2 * A + 5)) := mul_le_mul hdiff (by nlinarith) | |
| 259 | + _ ≤ δ * (M * (2 * A + 5)) := mul_le_mul hdiff (by linarith) | |
| 260 | 260 | (add_nonneg (norm_nonneg n) (norm_nonneg r)) hδ |
| 261 | 261 | calc |
| 262 | 262 | _ = ν * |‖n‖ ^ 2 - ‖r‖ ^ 2| := by |
| @@ -305,21 +305,21 @@ theorem phase_errors_on_mesh | ||
| 305 | 305 | have hM2 : M ≤ 2 * M := by linarith |
| 306 | 306 | have hd : ‖q - q0‖ ≤ 1 / (S / 2) ^ 3 := hdiameter.trans (by |
| 307 | 307 | apply (div_le_div_iff₀ (pow_pos hS0 3) (pow_pos (half_pos hS0) 3)).2 |
| 308 | - nlinarith [pow_pos hS0 3]) | |
| 308 | + linarith [pow_pos hS0 3]) | |
| 309 | 309 | have hL' : 1 / |L| ≤ (2 * M) / (S / 2) := hL.trans (by |
| 310 | 310 | apply (div_le_div_iff₀ hS0 (half_pos hS0)).2 |
| 311 | 311 | nlinarith) |
| 312 | 312 | have he := PhaseEstimates.actual_phase_estimates |
| 313 | 313 | (v := v) (θ := θ) (localBase_mono hbase hM2) hq hq0 hd hR hR0 hg horth hfreq |
| 314 | 314 | (by linarith) (by linarith) hk hε (htarget.trans hM2) (hpz.trans hM2) (hB.trans hM2) |
| 315 | - hsigma (hu.trans hM2) (hgi.trans hM2) hL' (by nlinarith [hv]) | |
| 315 | + hsigma (hu.trans hM2) (hgi.trans hM2) hL' (by linarith [hv]) | |
| 316 | 316 | (hRi.trans hM2) (hR0i.trans hM2) |
| 317 | 317 | have hband := PhaseEstimates.phaseError_le_four_div (S := S / 2) (ε := ε) (k := k) |
| 318 | - (half_pos hS0) (by nlinarith [sq_nonneg (S * ε)]) | |
| 318 | + (half_pos hS0) (by linarith [sq_nonneg (S * ε)]) | |
| 319 | 319 | ((div_le_iff₀ hk0).2 (by |
| 320 | 320 | have h := (div_le_iff₀ hk0).1 hk2 |
| 321 | - nlinarith [sq_nonneg S])) | |
| 322 | - (by nlinarith [mul_nonneg hε.le (sq_nonneg S)]) | |
| 321 | + linarith [sq_nonneg S])) | |
| 322 | + (by linarith [mul_nonneg hε.le (sq_nonneg S)]) | |
| 323 | 323 | have hc : 0 ≤ PhaseEstimates.phaseConstant (2 * M) := by |
| 324 | 324 | unfold PhaseEstimates.phaseConstant |
| 325 | 325 | positivity |
| @@ -378,7 +378,7 @@ theorem reference_profile_rate_bound {u L v A M S : ℝ} | ||
| 378 | 378 | (hs : |PulseGrowth.slotMagnitude u L v| ≤ A) |
| 379 | 379 | (huL : |u / L| ≤ M / S) : |
| 380 | 380 | |PrimaryODE.referenceProfileRate u L v| ≤ A * M / S := by |
| 381 | - have hden : 1 ≤ 1 + PulseGrowth.slotMagnitude u L v ^ 2 := by nlinarith [sq_nonneg (PulseGrowth.slotMagnitude u L v)] | |
| 381 | + have hden : 1 ≤ 1 + PulseGrowth.slotMagnitude u L v ^ 2 := by linarith [sq_nonneg (PulseGrowth.slotMagnitude u L v)] | |
| 382 | 382 | have hdenpos : 0 < 1 + PulseGrowth.slotMagnitude u L v ^ 2 := by positivity |
| 383 | 383 | rw [PrimaryODE.referenceProfileRate, abs_div, abs_mul, abs_of_pos hdenpos] |
| 384 | 384 | calc |
| @@ -397,12 +397,12 @@ theorem frequencyBound_bounds {M : ℝ} (hM : 1 ≤ M) : | ||
| 397 | 397 | have hprod : 0 ≤ M * (M + M ^ 4) := mul_nonneg h0 (add_nonneg h0 h4) |
| 398 | 398 | unfold frequencyBound |
| 399 | 399 | constructor |
| 400 | - · nlinarith [sq_nonneg M] | |
| 400 | + · linarith [sq_nonneg M] | |
| 401 | 401 | constructor |
| 402 | - · nlinarith [sq_nonneg M] | |
| 402 | + · linarith [sq_nonneg M] | |
| 403 | 403 | constructor |
| 404 | - · nlinarith [sq_nonneg M] | |
| 405 | - constructor <;> nlinarith [sq_nonneg M] | |
| 404 | + · linarith [sq_nonneg M] | |
| 405 | + constructor <;> linarith [sq_nonneg M] | |
| 406 | 406 | |
| 407 | 407 | noncomputable def normalLower (M u : ℝ) : ℝ := |
| 408 | 408 | Real.sqrt ((1 / M) / (4 * dampingDenominator u)) |
| @@ -466,7 +466,7 @@ theorem exists_large_band (h M u T : ℝ) (hh : 0 < h) (hM : 1 ≤ M) (N0 : ℕ) | ||
| 466 | 466 | refine ⟨⟨hn4, hS2, hn.2.1, hn.2.2.1, hn.2.2.2, ?_⟩, (le_max_left _ _).trans hscale⟩ |
| 467 | 467 | apply (div_le_iff₀ hS0).2 |
| 468 | 468 | have ht := (div_le_iff₀ hb).1 hcut |
| 469 | - nlinarith | |
| 469 | + linarith | |
| 470 | 470 | obtain ⟨N, hN⟩ := eventually_atTop.1 hall |
| 471 | 471 | exact ⟨max N N0, le_max_right _ _, fun n hn => hN n ((le_max_left _ _).trans hn)⟩ |
| 472 | 472 | |
| @@ -480,7 +480,7 @@ theorem base_error_on_mesh {S ε M : ℝ} (hS : 1 ≤ S) (hM : 1 ≤ M) | ||
| 480 | 480 | apply (le_div_iff₀ hS0).2 |
| 481 | 481 | have hsq : S ≤ S ^ 2 := by nlinarith |
| 482 | 482 | have hm := mul_le_mul_of_nonneg_right hsq (sq_nonneg ε) |
| 483 | - nlinarith | |
| 483 | + linarith | |
| 484 | 484 | have hcube := (PhaseEstimates.inverse_cube_bounds hS).1 |
| 485 | 485 | have hsum : 3 / S ^ 3 + ε ^ 2 ≤ 4 / S := by |
| 486 | 486 | calc |
| @@ -631,7 +631,7 @@ theorem slot_bound (hh : 0 ≤ h) (hr : 0 < r0) (hslot : 4 * r0 * ChartScales.Tg | ||
| 631 | 631 | change a.length i ≤ 2 * r0 * ChartScales.Tg * D.scale i at hl |
| 632 | 632 | have hS : 0 ≤ D.scale i := (zero_lt_one.trans_le (D.one_le_scale i)).le |
| 633 | 633 | have hm := mul_le_mul_of_nonneg_right hslot hS |
| 634 | - nlinarith [a.slot_abs hr hv] | |
| 634 | + linarith [a.slot_abs hr hv] | |
| 635 | 635 | |
| 636 | 636 | theorem magnitude_bound (hr : 0 < r0) (hu : 0 ≤ u) (huM : u ≤ M) |
| 637 | 637 | {i : ι} {v : ℝ} (hv : v ∈ a.slot i) : |
| @@ -641,7 +641,7 @@ theorem magnitude_bound (hr : 0 < r0) (hu : 0 ≤ u) (huM : u ≤ M) | ||
| 641 | 641 | have hmul : |u * v / a.length i| ≤ 2 * u := by |
| 642 | 642 | rw [abs_div, abs_mul, abs_of_nonneg hu, abs_of_pos hL] |
| 643 | 643 | apply (div_le_iff₀ hL).2 |
| 644 | - nlinarith [mul_le_mul_of_nonneg_left hv' hu] | |
| 644 | + linarith [mul_le_mul_of_nonneg_left hv' hu] | |
| 645 | 645 | have ha := abs_add_le (u / 2) (u * v / a.length i) |
| 646 | 646 | rw [abs_div, abs_of_nonneg hu] at ha |
| 647 | 647 | norm_num at ha |
| @@ -699,7 +699,7 @@ theorem frozen_constants (hh : 0 ≤ h) (hr : 0 < r0) (hM : 1 ≤ M) | ||
| 699 | 699 | rw [abs_div, abs_mul, abs_mul, a.sign i, one_mul, abs_of_pos (a.B_pos hh hM i)] |
| 700 | 700 | norm_num |
| 701 | 701 | have hm := mul_le_mul (a.B_bounds hh hM i).2 hu (abs_nonneg u) (by linarith : 0 ≤ M) |
| 702 | - nlinarith [hb.2.2.2.1, sq_nonneg M] | |
| 702 | + linarith [hb.2.2.2.1, sq_nonneg M] | |
| 703 | 703 | |
| 704 | 704 | /-- Actual phase-normal and normal-motion estimates for every enlarged |
| 705 | 705 | slot point. These follow from the normalized base error and rounding. -/ |
| @@ -832,7 +832,7 @@ theorem modal_errors (hh : 0 ≤ h) (hr : 0 < r0) (hM : 1 ≤ M) | ||
| 832 | 832 | (sq_nonneg M) hS hmag (a.quotient_rate_bound hh hr hM |
| 833 | 833 | (by simpa only [abs_of_pos hu] using huM) hL i hn.four_le) |
| 834 | 834 | have hH : 0 ≤ eigenBound M := by unfold eigenBound; positivity |
| 835 | - have hH1 : M * (1 + 3 * M) ≤ eigenBound M := by unfold eigenBound; nlinarith | |
| 835 | + have hH1 : M * (1 + 3 * M) ≤ eigenBound M := by unfold eigenBound; linarith | |
| 836 | 836 | have hH2 : M ≤ eigenBound M := by unfold eigenBound; nlinarith |
| 837 | 837 | have hhi : |1 / PrimaryODE.referenceProfile (a.c0 i) u (a.length i) v| ≤ eigenBound M := by |
| 838 | 838 | simpa only [one_div_one_div] using hprof.2.trans (by simpa only [one_div_one_div] using hH2) |
| @@ -924,8 +924,8 @@ theorem outputBound_bounds (hM : 1 ≤ M) : | ||
| 924 | 924 | have hb := frequencyBound_bounds hM |
| 925 | 925 | have hM0 : 0 ≤ M := by linarith |
| 926 | 926 | unfold outputBound |
| 927 | - exact ⟨by nlinarith [sq_nonneg M], by nlinarith [sq_nonneg M], | |
| 928 | - by nlinarith, by nlinarith [sq_nonneg M], by nlinarith [sq_nonneg M]⟩ | |
| 927 | + exact ⟨by linarith [sq_nonneg M], by linarith [sq_nonneg M], | |
| 928 | + by linarith, by linarith [sq_nonneg M], by linarith [sq_nonneg M]⟩ | |
| 929 | 929 | |
| 930 | 930 | theorem outputLower_pos (hM : 1 ≤ M) : 0 < outputLower M u := |
| 931 | 931 | lt_min (half_pos (normalLower_pos hM)) (one_div_pos.mpr (zero_lt_one.trans_le hM)) |
+1 −1 NavierStokes/BasePrefixIdentity.lean View file
| @@ -347,7 +347,7 @@ theorem VelocityMatches.flux_contDiffAt {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) | ||
| 347 | 347 | have hs : w.2 ^ 2 ≤ 1 := by |
| 348 | 348 | have h1 := hw.2.1 |
| 349 | 349 | have h2 := hw.2.2 |
| 350 | - nlinarith [mul_nonneg (show 0 ≤ 1 - w.2 by linarith) (show 0 ≤ 1 + w.2 by linarith)] | |
| 350 | + linarith [mul_nonneg (show 0 ≤ 1 - w.2 by linarith) (show 0 ≤ 1 + w.2 by linarith)] | |
| 351 | 351 | have hL := (CoordinateAlgebra.L_pos hh.le hh1 hs).ne' |
| 352 | 352 | exact (SlowDivergence.radialFlux_smoothAt SlowBorelBase.globalRadialDomain |
| 353 | 353 | (hd.axial n).contDiffOn h (SlowExpansionResidual.slowOrder h n) (mem_univ _) hL).congr_of_eventuallyEq |
+2 −2 NavierStokes/BaseRankPatch.lean View file
| @@ -259,8 +259,8 @@ theorem rank_fields (upper : ℝ) (B : ℕ) (Q : ℝ) | ||
| 259 | 259 | W.controls.radius_pos .mean)).trans hR.1 |
| 260 | 260 | have hr : R / rankLength F.data.h s ∈ ReservedPatches.radialWindow F W.controls.radius .mean := by |
| 261 | 261 | apply ReservedPatches.radial_closedPatch_subset F W.controls.radius W.controls.radius_pos .mean |
| 262 | - exact ⟨(le_div_iff₀ hell).mpr (by nlinarith [hR.1]), | |
| 263 | - (div_le_iff₀ hell).mpr (by nlinarith [hR.2])⟩ | |
| 262 | + exact ⟨(le_div_iff₀ hell).mpr (by linarith [hR.1]), | |
| 263 | + (div_le_iff₀ hell).mpr (by linarith [hR.2])⟩ | |
| 264 | 264 | have hx := ReservedPatches.radial_mem_window F W.controls.radius W.controls.radius_pos .mean hr |
| 265 | 265 | rw [coordinates_radius_sq F.data.h_pos F.data.h_lt_half hs R] at hx |
| 266 | 266 | have heta := (normalizedCoordinates_eta F.data.h_pos F.data.h_lt_half |
+8 −9 NavierStokes/BaseResidual.lean View file
| @@ -1288,7 +1288,7 @@ theorem assembleComponents_eq_pack (R A Z : SpaceTime → ℝ) (z : SpaceTime) : | ||
| 1288 | 1288 | (z.2 1 * R z + z.2 0 * A z) (Z z) := by |
| 1289 | 1289 | ext i |
| 1290 | 1290 | fin_cases i <;> simp [assembleComponents, radialVector, angularVector, |
| 1291 | - AxisymmetricResidual.pack, coordinateVector] <;> ring | |
| 1291 | + coordinateVector] <;> ring | |
| 1292 | 1292 | |
| 1293 | 1293 | theorem assembleComponents_rate {l : Filter SpaceTime} {q : SpaceTime → ℝ} |
| 1294 | 1294 | {U B : Set SpaceTime} (hU : IsOpen U) (hlU : ∀ᶠ z in l, z ∈ U) |
| @@ -1802,8 +1802,7 @@ theorem activeZeta_edgeJets {a b c : ℝ} (hab : a < b) (hc : 0 < c) : | ||
| 1802 | 1802 | have hX := (Real.exp_pos a).trans hw.1.1 |
| 1803 | 1803 | have he : activeZeta c a b =ᶠ[𝓝 w] (radialPullback (logWeightProfile c a b) ∘ swapInner) := by |
| 1804 | 1804 | filter_upwards [continuousAt_fst.eventually (Ioi_mem_nhds hX)] with y hy |
| 1805 | - simp [activeZeta, radialWeight, hy, radialPullback, logChart, logWeightProfile, | |
| 1806 | - swapInner] | |
| 1805 | + simp [activeZeta, radialWeight, hy, radialPullback, logChart, logWeightProfile] | |
| 1807 | 1806 | rfl |
| 1808 | 1807 | rw [(SolenoidalDiagonal.iteratedFDeriv_eventuallyEq he m).self_of_nhds, |
| 1809 | 1808 | swapInner.norm_iteratedFDeriv_comp_right] |
| @@ -2031,11 +2030,11 @@ theorem eqOn_of_off_axis {V : Type} [NormedAddCommGroup V] [NormedSpace ℝ V] | ||
| 2031 | 2030 | have hx0 : z.2 0 = 0 := by |
| 2032 | 2031 | apply sq_eq_zero_iff.mp |
| 2033 | 2032 | unfold AxisymmetricFields.radialEnergy at hs0 |
| 2034 | - nlinarith [sq_nonneg (z.2 0), sq_nonneg (z.2 1)] | |
| 2033 | + linarith [sq_nonneg (z.2 0), sq_nonneg (z.2 1)] | |
| 2035 | 2034 | have hx1 : z.2 1 = 0 := by |
| 2036 | 2035 | apply sq_eq_zero_iff.mp |
| 2037 | 2036 | unfold AxisymmetricFields.radialEnergy at hs0 |
| 2038 | - nlinarith [sq_nonneg (z.2 0), sq_nonneg (z.2 1)] | |
| 2037 | + linarith [sq_nonneg (z.2 0), sq_nonneg (z.2 1)] | |
| 2039 | 2038 | let gamma : ℝ → SpaceTime := fun t => (z.1, z.2 + t • coordinateVector 0) |
| 2040 | 2039 | have hgamma : Continuous gamma := continuous_const.prodMk (continuous_const.add (continuous_id.smul continuous_const)) |
| 2041 | 2040 | have hg0 : gamma 0 = z := by simp [gamma] |
| @@ -2286,17 +2285,17 @@ theorem baseResidual_jetRate_axis {l : Filter SpaceTime} {a : ℕ → ℕ} {h C | ||
| 2286 | 2285 | (fun z => baseVelocity a h C d z - prefixVelocity J h C d z) (m + 2) (n + b) := by |
| 2287 | 2286 | apply finiteRate_weaken (velocity_prefix_rate hh hh1 A hd ha J (m + 2) (by omega)) hq |
| 2288 | 2287 | push_cast |
| 2289 | - nlinarith | |
| 2288 | + linarith | |
| 2290 | 2289 | have hpres : FiniteJetRate l (fun z => (cartesianChart h z).1) |
| 2291 | 2290 | (fun z => basePressure a h C d z - prefixPressure J h C d z) (m + 1) (n + b) := by |
| 2292 | 2291 | apply finiteRate_weaken (pressure_prefix_rate hh hh1 A hd ha J (m + 1) (by omega)) hq |
| 2293 | 2292 | push_cast |
| 2294 | - nlinarith | |
| 2293 | + linarith | |
| 2295 | 2294 | have hstress : JetRate l (fun z => (cartesianChart h z).1) |
| 2296 | 2295 | (fun z => baseStressForce a h C d z - prefixStressForce J h C d z) m n := by |
| 2297 | 2296 | apply (finiteRate_at (stress_prefix_rate_axis hh hh1 A hr hd hc ha J m (by omega)) le_rfl).weaken hq |
| 2298 | 2297 | dsimp [b] at hgain |
| 2299 | - nlinarith | |
| 2298 | + linarith | |
| 2300 | 2299 | let EJ : SpaceTime → Space := fun z => |
| 2301 | 2300 | navierStokesResidual (prefixVelocity J h C d) (prefixPressure J h C d) z.1 z.2 - |
| 2302 | 2301 | prefixStressForce J h C d z |
| @@ -2305,7 +2304,7 @@ theorem baseResidual_jetRate_axis {l : Filter SpaceTime} {a : ℕ → ℕ} {h C | ||
| 2305 | 2304 | (fun j _ => hp j) (fun j _ => hu j) (fun j _ => hb j) |
| 2306 | 2305 | (fun j _ => hv j) (fun j _ => heu j) (fun j _ => hep j) hL m) le_rfl).weaken hq |
| 2307 | 2306 | dsimp [b] at hgain |
| 2308 | - nlinarith | |
| 2307 | + linarith | |
| 2309 | 2308 | have hEJs : ContDiffOn ℝ ∞ EJ past := |
| 2310 | 2309 | (ResidualRegularity.contDiffOn_residual hU huJs hpJs).sub htJ |
| 2311 | 2310 | let Df := residualDifference (prefixVelocity J h C d) |
+2 −2 NavierStokes/CommonCoverClass.lean View file
| @@ -255,7 +255,7 @@ theorem bandGeometry_argumentCost_le (B : Plane ≃L[ℝ] Plane) {h : ℝ} (hh : | ||
| 255 | 255 | (1 + ChartScales.Tg) * ChartScales.S n := by |
| 256 | 256 | rw [abs_of_pos (inv_pos.mpr (ChartScales.timeCoefficient_pos h n))] |
| 257 | 257 | have hb := ChartScales.timeCoefficient_inv_upper h hh hn |
| 258 | - nlinarith | |
| 258 | + linarith | |
| 259 | 259 | have hb : ‖(g.basis : Plane →L[ℝ] Plane)‖ ≤ ‖(B : Plane →L[ℝ] Plane)‖ := |
| 260 | 260 | norm_scaledBasis_le B _ hci |
| 261 | 261 | have hbi : ‖(g.basis.symm : Plane →L[ℝ] Plane)‖ ≤ |
| @@ -292,7 +292,7 @@ theorem bandGeometry_argumentCost_le (B : Plane ≃L[ℝ] Plane) {h : ℝ} (hh : | ||
| 292 | 292 | (by positivity) hK0) |
| 293 | 293 | _ ≤ bandArgumentCost B D * ChartScales.S n := by |
| 294 | 294 | unfold bandArgumentCost |
| 295 | - nlinarith [mul_nonneg hK0 (sub_nonneg.mpr hS)] | |
| 295 | + linarith [mul_nonneg hK0 (sub_nonneg.mpr hS)] | |
| 296 | 296 | |
| 297 | 297 | end BandGeometry |
| 298 | 298 | |
+1 −1 NavierStokes/CorrectionInitialization.lean View file
| @@ -2189,7 +2189,7 @@ theorem grid_mem_of_box {D M : ℝ} {m : ℕ} (hm : 1 ≤ m) {k : SlotColoring.G | ||
| 2189 | 2189 | have hk : |(k j : ℝ)| ≤ M / SlotColoring.width D j m + 2 := by |
| 2190 | 2190 | calc |
| 2191 | 2191 | _ ≤ (M + 2 * SlotColoring.width D j m) / SlotColoring.width D j m := |
| 2192 | - (le_div_iff₀ hw).mpr (by nlinarith [ha]) | |
| 2192 | + (le_div_iff₀ hw).mpr (by linarith [ha]) | |
| 2193 | 2193 | _ = M / SlotColoring.width D j m + 2 := by field_simp |
| 2194 | 2194 | have hc : |(k j : ℝ)| ≤ (gridRadius D M m j : ℝ) := hk.trans (Int.le_ceil _) |
| 2195 | 2195 | have hlo : -gridRadius D M m j ≤ k j := by exact_mod_cast (abs_le.mp hc).1 |
+2 −2 NavierStokes/CurrentParticularLabelBounds.lean View file
| @@ -153,10 +153,10 @@ theorem refinedCarrier_window (l : Label B N0) (n : ℕ) {w : SpaceTime} | ||
| 153 | 153 | rw [chartPoint_scale n hw.1] at he |
| 154 | 154 | have hleft : ChartScales.Q (BaseChartJets.cellBand l.2) / 2 ≤ PhysicalWaveSum.physicalQ h w := by |
| 155 | 155 | have hb := mul_le_mul_of_nonneg_left hq.1 (ChartScales.Q_pos (BaseChartJets.cellBand l.2)).le |
| 156 | - nlinarith | |
| 156 | + linarith | |
| 157 | 157 | have hright : PhysicalWaveSum.physicalQ h w ≤ 2 * ChartScales.Q (BaseChartJets.cellBand l.2) := by |
| 158 | 158 | have hb := mul_le_mul_of_nonneg_left hq.2 (ChartScales.Q_pos (BaseChartJets.cellBand l.2)).le |
| 159 | - nlinarith | |
| 159 | + linarith | |
| 160 | 160 | have hlog := PhysicalWaveSum.logCoordinate_in_band |
| 161 | 161 | (PhysicalWaveSum.physicalQ_pos outgoing.data.h_pos outgoing.data.h_lt_half hw.1) hleft hright |
| 162 | 162 | refine ⟨?_, hbox⟩ |
+1 −1 NavierStokes/CurrentPhysicalChartJets.lean View file
| @@ -253,7 +253,7 @@ theorem realVector_norm_le (z : ComplexVector) : | ||
| 253 | 253 | Finset.sum_le_sum (fun i _ => pow_le_pow_left₀ (norm_nonneg _) (hi i) 2) |
| 254 | 254 | _ = 3 * ‖z‖ ^ 2 := by simp |
| 255 | 255 | apply (sq_le_sq₀ (norm_nonneg _) (by positivity : 0 ≤ 3 * ‖z‖)).mp |
| 256 | - nlinarith [sq_nonneg ‖z‖] | |
| 256 | + linarith [sq_nonneg ‖z‖] | |
| 257 | 257 | |
| 258 | 258 | /-- The literal real-vector constructor is a fixed bounded linear map. |
| 259 | 259 | This provides the final codomain conversion for physical vector modes. -/ |
+1 −1 NavierStokes/CurrentPhysicalModeGerms.lean View file
| @@ -74,7 +74,7 @@ theorem realVector_smul (c : ℝ) (v : HarmonicCalculus.ComplexVector) : | ||
| 74 | 74 | PhysicalCurlCovariance.realVector (c • v) = |
| 75 | 75 | c • PhysicalCurlCovariance.realVector v := by |
| 76 | 76 | ext i |
| 77 | - fin_cases i <;> simp [PhysicalCurlCovariance.realVector, Complex.real_smul] | |
| 77 | + fin_cases i <;> simp [Complex.real_smul] | |
| 78 | 78 | |
| 79 | 79 | theorem radialProjection_eq_sqrt_smul (n : ℕ) (w : SpaceTime) : |
| 80 | 80 | PhysicalGraphBounds.radialProjection w = |
+2 −2 NavierStokes/FiveProfileMoments.lean View file
| @@ -362,7 +362,7 @@ theorem normalizedMap_identity (P : Patch) (b : ℝ) (hb : GoodExponent b) (c : | ||
| 362 | 362 | fin_cases i <;> simp [quadraticCLM, quadraticBilin, normalizedMap] |
| 363 | 363 | · ext i |
| 364 | 364 | fin_cases i <;> simp [quadraticCLM, quadraticBilin, normalizedMap, |
| 365 | - u, e, hUS, hES, hEP, Fin.sum_univ_two, Fin.sum_univ_three] <;> ring | |
| 365 | + u, e, hUS, hES, hEP, Fin.sum_univ_three] <;> ring | |
| 366 | 366 | |
| 367 | 367 | theorem spatial_jet_bound (P : Patch) (k : ℕ) : |
| 368 | 368 | ∃ C : ℝ, 0 < C ∧ ∀ (c : Coeff) (x : ℝ), |
| @@ -436,7 +436,7 @@ theorem exists_normalized_repair (P : Patch) (b : ℝ) (hb : GoodExponent b) : | ||
| 436 | 436 | have hsub : Metric.ball (0 : Coeff) ε ⊆ Metric.ball 0 (r / (4 * β)) := |
| 437 | 437 | Metric.ball_subset_ball (min_le_left _ _) |
| 438 | 438 | have hC₀ : 2 * β ≤ C := by dsimp [C]; nlinarith |
| 439 | - have hC₁ : D * (2 * β) ≤ C := by dsimp [C]; nlinarith | |
| 439 | + have hC₁ : D * (2 * β) ≤ C := by dsimp [C]; linarith | |
| 440 | 440 | have hzero : g 0 = 0 := by |
| 441 | 441 | have hz := (hgeq 0 (Metric.mem_ball_self (div_pos hr (by positivity)))).2 |
| 442 | 442 | simpa only [norm_zero, mul_zero, norm_le_zero_iff] using hz |
+2 −2 NavierStokes/FiveRowRank.lean View file
| @@ -51,7 +51,7 @@ theorem cell_lower_lt_upper {n : ℕ} (a b : ℝ) (hab : a < b) (j : Fin n) : | ||
| 51 | 51 | cellLower a b j < cellUpper a b j := by |
| 52 | 52 | have hd := cellStep_pos a b hab n |
| 53 | 53 | unfold cellLower cellUpper |
| 54 | - nlinarith | |
| 54 | + linarith | |
| 55 | 55 | |
| 56 | 56 | theorem cellUpper_lt {n : ℕ} (a b : ℝ) (hab : a < b) (j : Fin n) : |
| 57 | 57 | cellUpper a b j < b := by |
| @@ -146,7 +146,7 @@ theorem axial_moments (lam C a b : ℝ) (d : Debt) (hlam : 0 < lam) | ||
| 146 | 146 | |
| 147 | 147 | theorem angular_mass_zero (lam C a b : ℝ) (d : Debt) (hlam : 0 < lam) |
| 148 | 148 | (ha : 0 < a) (hab : a < b) : (∫ R, R ^ (2 : ℕ) * deltaV lam C a b d R) = 0 := by |
| 149 | - simpa [angularPowers, angularDebt, Real.rpow_natCast] using | |
| 149 | + simpa [angularPowers, angularDebt] using | |
| 150 | 150 | angular_moments lam C a b d hlam ha hab 0 |
| 151 | 151 | |
| 152 | 152 | theorem axial_mass_zero (lam C a b : ℝ) (d : Debt) (hlam : 0 < lam) |
+4 −4 NavierStokes/FlatKernelBounds.lean View file
| @@ -44,7 +44,7 @@ theorem denominator_sq {x t : ℝ} (ht : 0 ≤ t) : | ||
| 44 | 44 | |
| 45 | 45 | theorem one_le_denominator {x t : ℝ} (ht : 0 ≤ t) : 1 ≤ denominator x t := by |
| 46 | 46 | apply Real.one_le_sqrt.2 |
| 47 | - nlinarith [mul_nonneg (sq_nonneg x) ht] | |
| 47 | + linarith [mul_nonneg (sq_nonneg x) ht] | |
| 48 | 48 | |
| 49 | 49 | theorem hasDerivAt_denominator {x t : ℝ} (ht : 0 ≤ t) : |
| 50 | 50 | HasDerivAt (fun y => denominator y t) |
| @@ -53,7 +53,7 @@ theorem hasDerivAt_denominator {x t : ℝ} (ht : 0 ≤ t) : | ||
| 53 | 53 | simpa only [Pi.pow_apply, id_eq, Nat.cast_ofNat, Nat.reduceSub, pow_one, mul_one] using |
| 54 | 54 | (((hasDerivAt_id x).pow 2).mul_const t).const_add 1 |
| 55 | 55 | convert! hbase.sqrt (ne_of_gt (base_pos ht)) using 1 |
| 56 | - simp only [denominator, div_eq_mul_inv, mul_inv_rev] | |
| 56 | + simp only [denominator, div_eq_mul_inv] | |
| 57 | 57 | ring |
| 58 | 58 | |
| 59 | 59 | theorem hasDerivAt_inv_denominator {x t : ℝ} (ht : 0 ≤ t) : |
| @@ -70,7 +70,7 @@ theorem hasDerivAt_coordinate {x t : ℝ} (ht : 0 ≤ t) : | ||
| 70 | 70 | have hsq := denominator_sq (x := x) ht |
| 71 | 71 | simp only [id_eq] at * |
| 72 | 72 | field_simp [hd] |
| 73 | - nlinarith [congrArg (fun z : ℝ => z * denominator x t) hsq] | |
| 73 | + linarith [congrArg (fun z : ℝ => z * denominator x t) hsq] | |
| 74 | 74 | |
| 75 | 75 | /-- Finite expressions in the variables needed by every kernel derivative. -/ |
| 76 | 76 | inductive Expr where |
| @@ -169,7 +169,7 @@ theorem denominator_le_polynomial {R x t : ℝ} (hR : 0 ≤ R) | ||
| 169 | 169 | have hd : denominator x t ≤ 1 + x ^ 2 * t := by |
| 170 | 170 | nlinarith [denominator_sq (x := x) ht, one_le_denominator (x := x) ht, |
| 171 | 171 | sq_nonneg (denominator x t - 1)] |
| 172 | - exact hd.trans (by nlinarith [mul_le_mul_of_nonneg_right hsq ht, sq_nonneg R]) | |
| 172 | + exact hd.trans (by linarith [mul_le_mul_of_nonneg_right hsq ht, sq_nonneg R]) | |
| 173 | 173 | |
| 174 | 174 | theorem abs_inv_denominator_le_one {x t : ℝ} (ht : 0 ≤ t) : |
| 175 | 175 | |(denominator x t)⁻¹| ≤ 1 := by |
+5 −5 NavierStokes/GlobalSlowProfiles.lean View file
| @@ -585,7 +585,7 @@ theorem moments_congr_positive {n : ℕ} | ||
| 585 | 585 | apply setIntegral_congr_fun measurableSet_Ioi |
| 586 | 586 | intro R hR |
| 587 | 587 | simp only [PositiveOrderMoments.rowDensity, PositiveOrderMoments.pressureGradient, |
| 588 | - PositiveOrderMoments.cauchy, PositiveAxisSystem.convolution, hu R hR, he R hR, ho R hR] | |
| 588 | + PositiveOrderMoments.cauchy, hu R hR, he R hR, ho R hR] | |
| 589 | 589 | |
| 590 | 590 | theorem actual_pressureGradient_smooth {S : Set ℝ} (C : ℝ) (phi : ℕ → EvenProfile S) |
| 591 | 591 | (omega : EvenProfile S) (n : ℕ) : |
| @@ -1265,7 +1265,7 @@ theorem xProfile_previousOmegaDivX {S : Set ℝ} {h : ℝ} (d : Domain S h) | ||
| 1265 | 1265 | | succ k => exact xProfile_axialOp2 d _ _ hX heta |
| 1266 | 1266 | simp only [previousOmegaDivX, AxisSourceRegularity.previousOmegaDivX, omegaDivX, |
| 1267 | 1267 | AxisSourceRegularity.omegaDivX, xProfile_sub, xProfile_add, xProfile_mul, |
| 1268 | - xProfile_constant, hsum, hs, xProfile_timeOp d _ _ hX heta, | |
| 1268 | + xProfile_constant, hsum, xProfile_timeOp d _ _ hX heta, | |
| 1269 | 1269 | xProfile_radiusSquared S hX.le] |
| 1270 | 1270 | simp only [ |
| 1271 | 1271 | xProfile_axialOp d _ _ hX heta, xProfile_partialX d.isOpen _ hX heta, |
| @@ -1430,7 +1430,7 @@ theorem massHistory_of_composition (u : EvenProfile S) (g : Field) {R eta : ℝ} | ||
| 1430 | 1430 | have hint := intervalIntegral.integral_comp_mul_deriv' |
| 1431 | 1431 | (f := fun r : ℝ => r ^ 2 / 2) (f' := fun r => r) (g := fun X => g (X, eta)) |
| 1432 | 1432 | (fun r _ => hder r) continuousOn_id (hg.mono him) |
| 1433 | - simp only [zero_pow (by norm_num : 2 ≠ 0), zero_div, Function.comp_apply] at hint | |
| 1433 | + simp only [zero_pow (by norm_num : 2 ≠ 0), zero_div] at hint | |
| 1434 | 1434 | change (∫ r in (0 : ℝ)..R, r * u (r, eta)) = ∫ X in (0 : ℝ)..(R ^ 2 / 2), g (X, eta) |
| 1435 | 1435 | rw [← hint] |
| 1436 | 1436 | apply intervalIntegral.integral_congr |
| @@ -1540,7 +1540,7 @@ theorem profiles_radial_inner_beta_axis {n : ℕ} (hn : 0 < n) {eta : ℝ} (heta | ||
| 1540 | 1540 | have hi : R ^ 2 / 2 ≤ inner := by |
| 1541 | 1541 | have hh := (sq_le_sq₀ hR.1.le hs.le).2 hR.2.le |
| 1542 | 1542 | rw [Real.sq_sqrt L.inner_pos.le] at hh |
| 1543 | - nlinarith [sq_nonneg R] | |
| 1543 | + linarith [sq_nonneg R] | |
| 1544 | 1544 | change (profiles s n).beta (R, eta) = localExtension L n 4 (R, eta) |
| 1545 | 1545 | rw [profiles_radial_inner_beta_pos L hn hR.1 hi heta, localExtension_radial L n 4 hR.1.le hi] |
| 1546 | 1546 | have hc := he.closure (slice_smooth (profiles s n).beta.smooth heta).continuous |
| @@ -1750,7 +1750,7 @@ theorem profiles_pressureCoefficient {S : Set ℝ} {h C : ℝ} (s : Scheme S h C | ||
| 1750 | 1750 | rw [profiles_x_pressure_derivative s hn hX heta, SlowResidualMatching.convolution_eq_positiveAxis] |
| 1751 | 1751 | simp only [pressureSource, |
| 1752 | 1752 | xProfile, sum_apply, mul_apply, sub_apply, constant_apply, |
| 1753 | - PositiveAxisSystem.convolution, inv_pow, div_eq_mul_inv] | |
| 1753 | + PositiveAxisSystem.convolution, div_eq_mul_inv] | |
| 1754 | 1754 | ring |
| 1755 | 1755 | |
| 1756 | 1756 | noncomputable def component {S : Set ℝ} (q : Coefficient S) (i : Fin 4) : EvenProfile S := |
+0 −5 NavierStokes/HarmonicSourceSupport.lean View file
| @@ -321,11 +321,6 @@ theorem sub (hc : NonzeroSupportedOn U K c) {d : HarmonicFields.Coefficients D} | ||
| 321 | 321 | (hd : NonzeroSupportedOn U K d) : NonzeroSupportedOn U K (c - d) := |
| 322 | 322 | of_enlarge (hc.enlarge.sub hd.enlarge) |
| 323 | 323 | |
| 324 | -omit [NormedAddCommGroup D] [NormedSpace ℝ D] in | |
| 325 | -theorem mul (hc : NonzeroSupportedOn U K c) {d : HarmonicFields.Coefficients D} | |
| 326 | - (hd : NonzeroSupportedOn U K d) : NonzeroSupportedOn U K (c * d) := | |
| 327 | - of_enlarge (hc.enlarge.mul hd.enlarge) | |
| 328 | - | |
| 329 | 324 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 330 | 325 | theorem realProjection (hc : NonzeroSupportedOn U K c) : |
| 331 | 326 | NonzeroSupportedOn U K (realCoefficients c) := by |
+1 −1 NavierStokes/HeatProfileExtension.lean View file
| @@ -197,6 +197,6 @@ theorem physicalProfile_eq_profile (a : ℝ) {X η : ℝ} (hX : 0 < X) | ||
| 197 | 197 | physicalProfile a X η = profile a (2 * (1 - η ^ 2) / X) := by |
| 198 | 198 | apply scaledProfile_eq_profile a hX |
| 199 | 199 | have hp : 0 ≤ (η + 1) * (1 - η) := mul_nonneg (by linarith [hη.1]) (by linarith [hη.2]) |
| 200 | - nlinarith | |
| 200 | + linarith | |
| 201 | 201 | |
| 202 | 202 | end NavierStokes.HeatProfileExtension |
+7 −7 NavierStokes/HeatSwitchCone.lean View file
| @@ -627,7 +627,7 @@ theorem observations_contDiffOn (F : Profile) : | ||
| 627 | 627 | ContDiffOn ℝ ∞ (observations F) (regular F) := by |
| 628 | 628 | apply contDiffOn_pi.mpr |
| 629 | 629 | intro i |
| 630 | - fin_cases i <;> dsimp only [observations, Matrix.cons_val_zero, Matrix.cons_val_succ] | |
| 630 | + fin_cases i <;> dsimp only [Matrix.cons_val_zero, Matrix.cons_val_succ] | |
| 631 | 631 | · exact (value_contDiff (freeE_contDiff F)).contDiffOn |
| 632 | 632 | · exact (radialJet_contDiff (freeE_contDiff F)).contDiffOn |
| 633 | 633 | · exact (parameterJet_contDiff (freeE_contDiff F)).contDiffOn |
| @@ -685,7 +685,7 @@ theorem compensated_observations_bound (F : Profile) {anchor left : ℝ} | ||
| 685 | 685 | apply (div_le_iff₀ hK).mpr |
| 686 | 686 | have hh := (div_le_iff₀ (mul_pos hr hk)).mp hXR |
| 687 | 687 | change D ≤ r * (XR * k) |
| 688 | - nlinarith only [hh] | |
| 688 | + linarith only [hh] | |
| 689 | 689 | have hnorm := controls_norm F w hp.2 |
| 690 | 690 | have hob := he (controls F w p.2) (hnorm.trans hsmall) p hp |
| 691 | 691 | refine ⟨hob.1, ?_⟩ |
| @@ -919,7 +919,7 @@ theorem div_switch_le (F : Profile) {B eps XR : ℝ} (heps : 0 < eps) (hXR : 0 < | ||
| 919 | 919 | apply (div_le_iff₀ (OutgoingDilation.switchRadius_pos F XR hXR)).mpr |
| 920 | 920 | have hh := (div_le_iff₀ (mul_pos heps (Real.exp_pos _))).mp hlarge |
| 921 | 921 | change B ≤ eps * (XR * Real.exp (HeatTailEdit.switchStart F.data)) |
| 922 | - nlinarith only [hh] | |
| 922 | + linarith only [hh] | |
| 923 | 923 | |
| 924 | 924 | /-- Uniform strict source margins for every sufficiently large physical |
| 925 | 925 | radius, with a bound for the two coordinates entering the finite-radius |
| @@ -1037,7 +1037,7 @@ theorem preserves_true_cone (F : Profile) {anchor left : ℝ} | ||
| 1037 | 1037 | (OutgoingEntranceCone.parameter_square_le_one (abs_le.mpr hp.2)) |
| 1038 | 1038 | have hL1 : CoordinateAlgebra.L F.data.h p.2 ≤ 1 := by |
| 1039 | 1039 | unfold CoordinateAlgebra.L |
| 1040 | - nlinarith [mul_nonneg F.data.h_pos.le (sq_nonneg p.2)] | |
| 1040 | + linarith [mul_nonneg F.data.h_pos.le (sq_nonneg p.2)] | |
| 1041 | 1041 | have hscale : 0 < stressScale F XR w.coefficients p := |
| 1042 | 1042 | div_pos (mul_pos (mul_pos w.radius_pos (Real.exp_pos _)) hqpos) hL |
| 1043 | 1043 | have hlow : XR * k * m ≤ stressScale F XR w.coefficients p := by |
| @@ -1062,11 +1062,11 @@ theorem preserves_true_cone (F : Profile) {anchor left : ℝ} | ||
| 1062 | 1062 | hB.trans (mul_le_mul_of_nonneg_left hc hscale.le) |
| 1063 | 1063 | have hP : 2 < normalP F XR w.coefficients p := by |
| 1064 | 1064 | dsimp [B] at hpc |
| 1065 | - nlinarith [sq_nonneg T] | |
| 1065 | + linarith [sq_nonneg T] | |
| 1066 | 1066 | have hvc : normalV F XR w.coefficients p < normalP F XR w.coefficients p := by |
| 1067 | 1067 | have hvT' := (le_abs_self _).trans hvT |
| 1068 | 1068 | dsimp [B] at hpc |
| 1069 | - nlinarith [sq_nonneg T] | |
| 1069 | + linarith [sq_nonneg T] | |
| 1070 | 1070 | have hquad : 4 * sourceC F XR w.coefficients p * normalV F XR w.coefficients p < |
| 1071 | 1071 | stressScale F XR w.coefficients p * leadingGap F XR w.coefficients p := by |
| 1072 | 1072 | have hpT : sourceC F XR w.coefficients p * normalV F XR w.coefficients p ≤ T ^ 2 := by |
| @@ -1075,7 +1075,7 @@ theorem preserves_true_cone (F : Profile) {anchor left : ℝ} | ||
| 1075 | 1075 | simpa only [pow_two] using hh |
| 1076 | 1076 | have hgap := hB.trans (mul_le_mul_of_nonneg_left hg hscale.le) |
| 1077 | 1077 | dsimp [B] at hgap |
| 1078 | - nlinarith | |
| 1078 | + linarith | |
| 1079 | 1079 | refine ⟨hqpos, harpos, hvpos, hP, ?_⟩ |
| 1080 | 1080 | exact ConeAlgebra.finite_amplitude_cone hscale hP hvc hquad |
| 1081 | 1081 | |
+2 −2 NavierStokes/HeatTailEdit.lean View file
| @@ -69,7 +69,7 @@ theorem multiplier_bounds {h ν K X : ℝ} (hh : 0 < h) (hν : 0 ≤ ν) (hX : 0 | ||
| 69 | 69 | have hp := mul_nonneg (sub_nonneg.mpr hs.2) (sub_nonneg.mpr hH1) |
| 70 | 70 | have hn := mul_nonpos_of_nonneg_of_nonpos hs.1 (sub_nonpos.mpr hH1) |
| 71 | 71 | dsimp [multiplier] |
| 72 | - constructor <;> nlinarith | |
| 72 | + constructor <;> linarith | |
| 73 | 73 | |
| 74 | 74 | theorem switch_contDiffOn {K : ℝ} (hK : 0 < K) : |
| 75 | 75 | ContDiffOn ℝ ∞ (switch K) (Ioi 0) := by |
| @@ -136,7 +136,7 @@ theorem squareChange_bound {E : ℝ → ℝ} {h ν K X : ℝ} (hh : 0 < h) (hν | ||
| 136 | 136 | have hb := multiplier_sub_one_bound (K := K) hh hν hX |
| 137 | 137 | rw [abs_of_nonpos (sub_nonpos.mpr hm.2)] at hb |
| 138 | 138 | have hsq : -(multiplier h ν K X ^ 2 - 1) ≤ 2 * (heatConstant h ν / X) := by |
| 139 | - nlinarith [sq_nonneg (multiplier h ν K X - 1)] | |
| 139 | + linarith [sq_nonneg (multiplier h ν K X - 1)] | |
| 140 | 140 | calc |
| 141 | 141 | _ ≤ E X ^ 2 * (2 * (heatConstant h ν / X)) := |
| 142 | 142 | mul_le_mul_of_nonneg_left hsq (sq_nonneg _) |
+2 −2 NavierStokes/MeanRankUpdate.lean View file
| @@ -541,7 +541,7 @@ theorem modelBox_slope_pos {coord qlo qhi rlo rhi : ℝ} (hc : 0 < coord) (hc1 : | ||
| 541 | 541 | (modelToInverse coord y).1 := by |
| 542 | 542 | rw [modelToInverse_slope (hqlo.trans_le hy.1.1)] |
| 543 | 543 | have hη : y.2.2 ^ 2 ≤ 1 := by nlinarith [hy.2.2.1, hy.2.2.2] |
| 544 | - nlinarith [mul_le_mul_of_nonneg_left hη hc.le] | |
| 544 | + linarith [mul_le_mul_of_nonneg_left hη hc.le] | |
| 545 | 545 | |
| 546 | 546 | theorem modelBox_image_isCompact {qlo qhi rlo rhi : ℝ} (hqlo : 0 < qlo) (coord : ℝ) : |
| 547 | 547 | IsCompact (modelToInverse coord '' modelBox qlo qhi rlo rhi) := |
| @@ -681,7 +681,7 @@ noncomputable def chartInput : ChartPoint →L[ℝ] ModelPoint := | ||
| 681 | 681 | theorem chartInput_norm_le_one : ‖chartInput‖ ≤ 1 := by |
| 682 | 682 | apply ContinuousLinearMap.opNorm_le_bound _ zero_le_one |
| 683 | 683 | intro p |
| 684 | - simp only [chartInput_apply, one_mul, Prod.norm_def] | |
| 684 | + simp only [one_mul, Prod.norm_def] | |
| 685 | 685 | apply max_le |
| 686 | 686 | · exact (le_max_left _ _).trans ((le_max_left _ _).trans (le_max_right _ _)) |
| 687 | 687 | · exact max_le (le_max_left _ _) ((le_max_right _ _).trans ((le_max_left _ _).trans (le_max_right _ _))) |
+2 −2 NavierStokes/ModulatedCone.lean View file
| @@ -1014,13 +1014,13 @@ theorem profile_stocks_rate {D D' : RadialDomain} | ||
| 1014 | 1014 | have hb : Cc / δr ≤ n := |
| 1015 | 1015 | ((le_max_left _ _).trans ((le_max_right _ _).trans (le_max_right _ _))).trans (hN.le.trans hn) |
| 1016 | 1016 | have := (div_le_iff₀ hδr).mp hb |
| 1017 | - nlinarith | |
| 1017 | + linarith | |
| 1018 | 1018 | have hsmalls : Ddata / n ≤ δs := by |
| 1019 | 1019 | apply (div_le_iff₀ hnpos).mpr |
| 1020 | 1020 | have hb : Ddata / δs ≤ n := |
| 1021 | 1021 | ((le_max_right _ _).trans ((le_max_right _ _).trans (le_max_right _ _))).trans (hN.le.trans hn) |
| 1022 | 1022 | have := (div_le_iff₀ hδs).mp hb |
| 1023 | - nlinarith | |
| 1023 | + linarith | |
| 1024 | 1024 | have hdatap := hdata n hn1 (c n) (hc n) (Cc / n) (div_nonneg hCc hnpos.le) hsmallr |
| 1025 | 1025 | (hcoeff n hnr hn1) (P n) Q (hPf n) (hPU n) hQf hQU (hP0 n) p (hX p hp).le |
| 1026 | 1026 | (hTJ p hp) (hTD hp) (hTD' hp) |
+1 −1 NavierStokes/ModulatedExterior.lean View file
| @@ -349,7 +349,7 @@ theorem exists_terminal_exterior_neighborhood {h R : ℝ} | ||
| 349 | 349 | calc |
| 350 | 350 | R * q h (AxisymmetricFields.profilePoint z.1 z.2) ≤ R * b := |
| 351 | 351 | mul_le_mul_of_nonneg_left hqb.le hR |
| 352 | - _ < AxisymmetricFields.radialEnergy x / 2 := by nlinarith | |
| 352 | + _ < AxisymmetricFields.radialEnergy x / 2 := by linarith | |
| 353 | 353 | _ < AxisymmetricFields.radialEnergy z.2 := hz.1 |
| 354 | 354 | |
| 355 | 355 | /-- The incoming field is retained at every past time; the actual heat |
+5 −5 NavierStokes/ModulatedHistories.lean View file
| @@ -693,7 +693,7 @@ theorem repair_family_rate (P : FiveProfileMoments.Patch) (b : ℝ) | ||
| 693 | 693 | have hsmall : B0 * D / N ≤ delta := by |
| 694 | 694 | apply (div_le_iff₀ hNpos).mpr |
| 695 | 695 | have ht := (div_le_iff₀ hdelta).mp ((le_max_right _ _).trans hN) |
| 696 | - nlinarith | |
| 696 | + linarith | |
| 697 | 697 | let v : ℝ → Coeff := fun eta => FiveProfileMoments.normalizedDebt (A eta) (G eta) (d N eta) |
| 698 | 698 | have hv : ContDiff ℝ ∞ v := FiveProfileMoments.normalizedDebt_contDiff hA hG (hd N) |
| 699 | 699 | (fun eta => (hApos eta).ne') |
| @@ -866,7 +866,7 @@ theorem physical_mixed_edits_bound (P : FiveProfileMoments.Patch) (S : Set ℝ) | ||
| 866 | 866 | congr 1 |
| 867 | 867 | funext x |
| 868 | 868 | simp [editU, v, FiveProfileMoments.u, FiveProfileMoments.correction, |
| 869 | - Pi.smul_apply, smul_eq_mul, mul_assoc] | |
| 869 | + Pi.smul_apply, smul_eq_mul] | |
| 870 | 870 | ring |
| 871 | 871 | have hEfun : (fun e => iteratedDeriv k (fun x => editE P A c (x, e)) X) = |
| 872 | 872 | fun e => iteratedDeriv k (FiveProfileMoments.e P (v e)) X := by |
| @@ -874,7 +874,7 @@ theorem physical_mixed_edits_bound (P : FiveProfileMoments.Patch) (S : Set ℝ) | ||
| 874 | 874 | congr 1 |
| 875 | 875 | funext x |
| 876 | 876 | simp [editE, v, FiveProfileMoments.e, FiveProfileMoments.correction, |
| 877 | - Pi.smul_apply, smul_eq_mul, Finset.mul_sum, mul_assoc] | |
| 877 | + smul_eq_mul, Finset.mul_sum, mul_assoc] | |
| 878 | 878 | rw [hUfun, hEfun] |
| 879 | 879 | have hb := hjets k hk j v eta hv.contDiffAt X |
| 880 | 880 | have hcost : J * ‖iteratedFDeriv ℝ j v eta‖ ≤ (J * (2 : ℝ) ^ q * B0) * eps := by |
| @@ -1071,7 +1071,7 @@ theorem density_perturbation_jet_bound (f U df dU : ℝ → ℝ) | ||
| 1071 | 1071 | rw [heq] |
| 1072 | 1072 | have hK0 : 1 ≤ (1 + 2 * R) * (1 + H) := by nlinarith |
| 1073 | 1073 | have hK1 : 2 * R ≤ (1 + 2 * R) * (1 + H) := by nlinarith |
| 1074 | - have hK2 : (2 * R) * H ≤ (1 + 2 * R) * (1 + H) := by nlinarith | |
| 1074 | + have hK2 : (2 * R) * H ≤ (1 + 2 * R) * (1 + H) := by linarith | |
| 1075 | 1075 | have hK3 : (1 + R) * H ≤ (1 + 2 * R) * (1 + H) := by nlinarith |
| 1076 | 1076 | have hK4 : H ≤ (1 + 2 * R) * (1 + H) := by nlinarith |
| 1077 | 1077 | fin_cases i |
| @@ -1209,7 +1209,7 @@ theorem repairHistory_scalar_jets (P : FiveProfileMoments.Patch) (S : Set ℝ) | ||
| 1209 | 1209 | intro c hc eps heps hepsJ hcb X eta heta j hjq i |
| 1210 | 1210 | have hsmall : J * eps ≤ 1 := by |
| 1211 | 1211 | have h := (le_div_iff₀ hJ).mp hepsJ |
| 1212 | - nlinarith | |
| 1212 | + linarith | |
| 1213 | 1213 | have hdensity : ∀ s ∈ Ioc P.left ((patchWindow P).clamp X), |
| 1214 | 1214 | |iteratedDeriv j (fun e => repairDensity P A c f U (s, e) i) eta| ≤ K0 * eps := by |
| 1215 | 1215 | intro s hs |
+3 −3 NavierStokes/MomentRepair.lean View file
| @@ -121,7 +121,7 @@ theorem correctionIteration_norm_le | ||
| 121 | 121 | _ ≤ β * (‖d‖ + ‖Q c‖) := mul_le_mul_of_nonneg_left (norm_sub_le _ _) hβ |
| 122 | 122 | _ ≤ β * (‖d‖ + K * r ^ 2) := |
| 123 | 123 | mul_le_mul_of_nonneg_left (add_le_add_right hQc _) hβ |
| 124 | - _ ≤ r := by nlinarith | |
| 124 | + _ ≤ r := by linarith | |
| 125 | 125 | |
| 126 | 126 | /-- On the correction ball the iteration has Lipschitz constant at most `1/2`. -/ |
| 127 | 127 | theorem correctionIteration_sub_le |
| @@ -135,7 +135,7 @@ theorem correctionIteration_sub_le | ||
| 135 | 135 | ‖correctionIteration B Q d x - correctionIteration B Q d y‖ ≤ |
| 136 | 136 | (1 / 2 : ℝ) * ‖x - y‖ := by |
| 137 | 137 | have hsum : ‖x‖ + ‖y‖ ≤ 2 * r := by linarith |
| 138 | - have hcoef : β * (K * (2 * r)) ≤ (1 / 2 : ℝ) := by nlinarith [hsmall] | |
| 138 | + have hcoef : β * (K * (2 * r)) ≤ (1 / 2 : ℝ) := by linarith [hsmall] | |
| 139 | 139 | calc |
| 140 | 140 | ‖correctionIteration B Q d x - correctionIteration B Q d y‖ = |
| 141 | 141 | ‖B.symm ((d - Q x) - (d - Q y))‖ := by rw [map_sub]; rfl |
| @@ -203,7 +203,7 @@ theorem exists_unique_small_correction [CompleteSpace E] | ||
| 203 | 203 | have hdist := correctionIteration_sub_le B Q d β K r hβ hK hB hQdiff hsmall y c hy.1 hc |
| 204 | 204 | change correctionIteration B Q d c = c at hfix |
| 205 | 205 | rw [hyfix, hfix] at hdist |
| 206 | - have hnorm : ‖y - c‖ = 0 := by nlinarith [norm_nonneg (y - c)] | |
| 206 | + have hnorm : ‖y - c‖ = 0 := by linarith [norm_nonneg (y - c)] | |
| 207 | 207 | exact sub_eq_zero.mp (norm_eq_zero.mp hnorm) |
| 208 | 208 | |
| 209 | 209 | end NonlinearRepair |
+1 −1 NavierStokes/OutgoingEntranceCone.lean View file
| @@ -1662,7 +1662,7 @@ theorem pressureAxialSource_deriv_bound (v : TailData) {y η : ℝ} (hh1 : v.h | ||
| 1662 | 1662 | have hE := sq_nonneg (angular v.core.P v.core.dropLength v.core.lam (y, η)) |
| 1663 | 1663 | have hd : 0 ≤ d η ∧ d η ≤ 1 := by |
| 1664 | 1664 | unfold d |
| 1665 | - constructor <;> nlinarith [sq_nonneg η, parameter_square_le_one hη] | |
| 1665 | + constructor <;> linarith [sq_nonneg η, parameter_square_le_one hη] | |
| 1666 | 1666 | have hA : 0 ≤ 4 * A v.h ∧ 4 * A v.h ≤ 3 := by |
| 1667 | 1667 | unfold A |
| 1668 | 1668 | constructor <;> linarith [v.h_pos] |
+0 −3 NavierStokes/ParticularWaveAssembly.lean View file
| @@ -1210,9 +1210,6 @@ theorem common_classes : | ||
| 1210 | 1210 | · intro n x hx |
| 1211 | 1211 | exact (C.common_germ n hx).2.self_of_nhds.symm |
| 1212 | 1212 | |
| 1213 | -noncomputable def good : ℕ → (P × ℝ) × Plane → ComplexVector := | |
| 1214 | - (actualCopyCoefficients r charts c u b G A j base copy).constructedGood s dirs C.slot.cutoff | |
| 1215 | - | |
| 1216 | 1213 | end LocalControl |
| 1217 | 1214 | |
| 1218 | 1215 | end ConstructedControls |
+7 −7 NavierStokes/PeriodizedWaveBounds.lean View file
| @@ -549,19 +549,19 @@ theorem divergence_germ {a b : D → ComplexVector} {x : D} | ||
| 549 | 549 | (fun _ => 0) (fun _ => 0) = fun _ => 0 := by |
| 550 | 550 | funext x i |
| 551 | 551 | fin_cases i <;> simp [LinearWaveResidual.remainder, slowTransport, baseDerivativeRemainder, |
| 552 | - strippedPressureGradient, viscousRemainder, angularGenerator, along_zero, along] | |
| 552 | + strippedPressureGradient, viscousRemainder, angularGenerator, along_zero] | |
| 553 | 553 | |
| 554 | 554 | @[simp] theorem linearResidual_zero (ε : ℝ) (R : D → ℝ) (Vr Vθ Vz Vt : D → D) |
| 555 | 555 | (B : D → ComplexVector) : |
| 556 | 556 | linearResidual ε R Vr Vθ Vz Vt B (fun _ => 0) (fun _ => 0) = fun _ => 0 := by |
| 557 | 557 | funext x i |
| 558 | 558 | fin_cases i <;> simp [linearResidual, transport, gradient, cylindricalVectorLaplacian, |
| 559 | - cylindricalLaplacian, angularGenerator, along_zero, along] | |
| 559 | + cylindricalLaplacian, angularGenerator, along_zero] | |
| 560 | 560 | |
| 561 | 561 | @[simp] theorem cylindricalDivergence_zero (R : D → ℝ) (Vr Vθ Vz : D → D) : |
| 562 | 562 | cylindricalDivergence R Vr Vθ Vz (fun _ => 0) = fun _ => 0 := by |
| 563 | 563 | funext x |
| 564 | - simp [cylindricalDivergence, along] | |
| 564 | + simp [cylindricalDivergence] | |
| 565 | 565 | |
| 566 | 566 | end DifferentialGerms |
| 567 | 567 | |
| @@ -641,7 +641,7 @@ theorem common_amplitude_germ (K : Cells D I) | ||
| 641 | 641 | intro j y hy |
| 642 | 642 | apply hs n j |
| 643 | 643 | intro he |
| 644 | - exact hy (by simp [localized, raw, WaveCoefficients.withCutoff, he]) | |
| 644 | + exact hy (by simp [localized, WaveCoefficients.withCutoff, he]) | |
| 645 | 645 | |
| 646 | 646 | omit [NormedSpace ℝ D] in |
| 647 | 647 | theorem common_pressure_germ (K : Cells D I) |
| @@ -687,7 +687,7 @@ theorem localized_amplitude_support (K : Cells D I) | ||
| 687 | 687 | intro x hx |
| 688 | 688 | apply hs n i |
| 689 | 689 | intro hz |
| 690 | - exact hx (by simp [localized, raw, WaveCoefficients.withCutoff, hz]) | |
| 690 | + exact hx (by simp [localized, WaveCoefficients.withCutoff, hz]) | |
| 691 | 691 | |
| 692 | 692 | omit [NormedSpace ℝ D] in |
| 693 | 693 | theorem localized_pressure_support (K : Cells D I) |
| @@ -696,7 +696,7 @@ theorem localized_pressure_support (K : Cells D I) | ||
| 696 | 696 | intro x hx |
| 697 | 697 | apply hs n i |
| 698 | 698 | intro hz |
| 699 | - exact hx (by simp [localized, raw, WaveCoefficients.withCutoff, hz]) | |
| 699 | + exact hx (by simp [localized, WaveCoefficients.withCutoff, hz]) | |
| 700 | 700 | |
| 701 | 701 | omit [NormedSpace ℝ D] in |
| 702 | 702 | theorem localized_zero_germs {n : ℕ} {i : I} {x : D} |
| @@ -704,7 +704,7 @@ theorem localized_zero_germs {n : ℕ} {i : I} {x : D} | ||
| 704 | 704 | (a.localized i).amplitude n =ᶠ[𝓝 x] (fun _ => 0) ∧ |
| 705 | 705 | (a.localized i).pressure n =ᶠ[𝓝 x] (fun _ => 0) := by |
| 706 | 706 | constructor <;> filter_upwards [hψ] with y hy <;> |
| 707 | - simp [localized, raw, WaveCoefficients.withCutoff, hy] | |
| 707 | + simp [localized, WaveCoefficients.withCutoff, hy] | |
| 708 | 708 | |
| 709 | 709 | theorem localized_correction_zero_germ (s : StripData D) (d : GraphDirections D) |
| 710 | 710 | {n : ℕ} {i : I} {x : D} (hψ : a.cutoff n i =ᶠ[𝓝 x] fun _ => 0) : |
+1 −1 NavierStokes/PhysicalCoordinateBounds.lean View file
| @@ -170,7 +170,7 @@ theorem normalized_slope_pos {a lo hi : ℝ} (ha : 0 < a) (ha1 : a < 1) | ||
| 170 | 170 | have hz : y.2.2 ^ 2 ≤ 1 := by nlinarith [hy.2.2.1, hy.2.2.2] |
| 171 | 171 | have haz := mul_le_mul_of_nonneg_left hz ha.le |
| 172 | 172 | simp only [scalarSlope, hy1, Real.one_rpow, mul_one] |
| 173 | - nlinarith | |
| 173 | + linarith | |
| 174 | 174 | |
| 175 | 175 | theorem exists_normalized_jet_bound {a : ℝ} (ha : 0 < a) (ha1 : a < 1) |
| 176 | 176 | {g : Point → ℝ} (hg : ContDiffOn ℝ ∞ g positiveTime) (lo hi : ℝ) (n : ℕ) : |
+6 −6 NavierStokes/PhysicalGraphBounds.lean View file
| @@ -37,12 +37,12 @@ noncomputable def timeDirection : Plane := (Real.sqrt 2 - 1, 1) | ||
| 37 | 37 | theorem cover_radialDirection : |
| 38 | 38 | SlotGeometry.cover radialDirection = ChartScales.Lambda • radialDirection := by |
| 39 | 39 | ext <;> simp [SlotGeometry.cover_apply, radialDirection, ChartScales.Lambda] <;> |
| 40 | - nlinarith [Real.sq_sqrt (by norm_num : (0 : ℝ) ≤ 2)] | |
| 40 | + linarith [Real.sq_sqrt (by norm_num : (0 : ℝ) ≤ 2)] | |
| 41 | 41 | |
| 42 | 42 | theorem cover_timeDirection : |
| 43 | 43 | SlotGeometry.cover timeDirection = ChartScales.Tg • timeDirection := by |
| 44 | 44 | ext <;> simp [SlotGeometry.cover_apply, timeDirection, ChartScales.Tg, SlotColoring.coverGrowth] <;> |
| 45 | - nlinarith [Real.sq_sqrt (by norm_num : (0 : ℝ) ≤ 2)] | |
| 45 | + linarith [Real.sq_sqrt (by norm_num : (0 : ℝ) ≤ 2)] | |
| 46 | 46 | |
| 47 | 47 | theorem cover_pow_radialDirection (i : ℕ) : |
| 48 | 48 | (SlotGeometry.cover ^ i) radialDirection = ChartScales.Lambda ^ i • radialDirection := by |
| @@ -726,7 +726,7 @@ theorem carrier_graph_jet_bound {h a b : ℝ} (hh : 0 ≤ h) (hh1 : h ≤ 1 / 2) | ||
| 726 | 726 | rw [abs_mul, abs_of_nonneg (Nat.cast_nonneg _)] |
| 727 | 727 | have he := mul_le_mul (carrier_upper hh n) hH (abs_nonneg _) |
| 728 | 728 | (mul_nonneg (by norm_num) (Real.rpow_nonneg hq.le _)) |
| 729 | - exact he.trans (by dsimp [M]; nlinarith) | |
| 729 | + exact he.trans (by dsimp [M]; linarith) | |
| 730 | 730 | have hw := character_comp_jet_bound hΦ (physicalLift h n p) m hB hM hc hΦb |
| 731 | 731 | have hwsm := (character_smooth ((ChartScales.carrier h n : ℝ) * (j : ℝ))).comp hΦ |
| 732 | 732 | have hb : 0 ≤ (2 : ℝ) ^ m * P * ((m.factorial : ℝ) * M ^ m * B ^ m) := by positivity |
| @@ -1021,7 +1021,7 @@ noncomputable def embedPolar : Plane →L[ℝ] Slot := | ||
| 1021 | 1021 | theorem norm_embedPolar_le : ‖embedPolar‖ ≤ 1 := by |
| 1022 | 1022 | refine ContinuousLinearMap.opNorm_le_bound _ zero_le_one ?_ |
| 1023 | 1023 | intro y |
| 1024 | - simp [embedPolar, Prod.norm_def, Real.norm_eq_abs, abs_nonneg] | |
| 1024 | + simp [embedPolar, Prod.norm_def, abs_nonneg] | |
| 1025 | 1025 | |
| 1026 | 1026 | noncomputable def slotLinear (ci : ℝ) : LiftPoint →L[ℝ] Slot := |
| 1027 | 1027 | ((0 : LiftPoint →L[ℝ] ℝ).prod liftZT).prod |
| @@ -1040,7 +1040,7 @@ theorem slotMap_formula (κ : Plane → Plane) (ci : ℝ) (center : Plane) (r0 : | ||
| 1040 | 1040 | (((κ (liftXY y)).1, (y.1.2.2.2, y.1.1)), |
| 1041 | 1041 | ((κ (liftXY y)).2, (etaCoordinate (y.2 - center) + r0) / ci)) := by |
| 1042 | 1042 | simp only [slotMap, embedPolar, slotLinear, slotConstant] |
| 1043 | - ext <;> simp [liftZT, map_sub, div_eq_mul_inv] | |
| 1043 | + ext <;> simp [map_sub, div_eq_mul_inv] | |
| 1044 | 1044 | ring |
| 1045 | 1045 | |
| 1046 | 1046 | theorem slotMap_smooth {κ : Plane → Plane} (hκ : ContDiff ℝ ∞ κ) |
| @@ -1065,7 +1065,7 @@ theorem norm_slotLinear_le (ci : ℝ) : ‖slotLinear ci‖ ≤ 1 + |ci⁻¹| * | ||
| 1065 | 1065 | rw [max_eq_right (norm_nonneg (liftZT y)), max_eq_right (abs_nonneg (ci⁻¹ * etaCoordinate y.2))] |
| 1066 | 1066 | apply max_le |
| 1067 | 1067 | · exact hzt.trans (by nlinarith [norm_nonneg y]) |
| 1068 | - · exact he.trans (by nlinarith [norm_nonneg y]) | |
| 1068 | + · exact he.trans (by linarith [norm_nonneg y]) | |
| 1069 | 1069 | |
| 1070 | 1070 | theorem positive_jet_affine_bound {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 1071 | 1071 | [NormedAddCommGroup F] [NormedSpace ℝ F] (L : E →L[ℝ] F) (c : F) |
+3 −3 NavierStokes/PhysicalMeanJetBounds.lean View file
| @@ -96,7 +96,7 @@ theorem exists_comparable_band (N : ℕ) {q : ℝ} (hq : 0 < q) (hsmall : q ≤ | ||
| 96 | 96 | · have hh := (lt_div_iff₀ hQN).mp hlo |
| 97 | 97 | rw [pow_succ] at hh |
| 98 | 98 | rw [Q_add, Q_eq_half_pow k] |
| 99 | - nlinarith | |
| 99 | + linarith | |
| 100 | 100 | |
| 101 | 101 | /-! ## The local, nonoscillatory graph estimate -/ |
| 102 | 102 | |
| @@ -278,10 +278,10 @@ theorem graph_length_bounds {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) (n d : ℕ) | ||
| 278 | 278 | have hq := physicalQ_pos hh hh1 hw |
| 279 | 279 | have hlow : (1 / 4 : ℝ) ≤ physicalQ h w / ChartScales.Q n := by |
| 280 | 280 | apply (le_div_iff₀ hQ).mpr |
| 281 | - nlinarith | |
| 281 | + linarith | |
| 282 | 282 | have hhigh : physicalQ h w / ChartScales.Q n ≤ (4 : ℝ) := by |
| 283 | 283 | apply (div_le_iff₀ hQ).mpr |
| 284 | - nlinarith | |
| 284 | + linarith | |
| 285 | 285 | change 1 / 2 ≤ Real.sqrt (SimilarityCoordinates.coordinateQ (2 * h) (graph h n d w).2.1) ∧ _ |
| 286 | 286 | rw [graph_q_eq hh hh1 n d hw] |
| 287 | 287 | constructor |
+4 −5 NavierStokes/PhysicalResidualBridge.lean View file
| @@ -121,7 +121,7 @@ theorem graphResidual_scaled_pull {Ω : Set E} {U : Set F} {Γ : E → F} | ||
| 121 | 121 | simp [graphResidual, LinearWaveResidual.realTransport, |
| 122 | 122 | LinearWaveResidual.realFrameLaplacian, LinearWaveResidual.realAngularGenerator, |
| 123 | 123 | cylindricalLaplacian, Matrix.cons_val_zero, Matrix.cons_val_one, |
| 124 | - Matrix.cons_val_two, hAr, hAθ, hAz, hAt, hArr, hAθθ, hAzz, hPr, hPθ, hPz, | |
| 124 | + hAr, hAθ, hAz, hAt, hArr, hAθθ, hAzz, hPr, hPθ, hPz, | |
| 125 | 125 | smul_eq_mul, G.radius x hx] <;> |
| 126 | 126 | field_simp [hl, hr] <;> rw [hε] <;> ring |
| 127 | 127 | |
| @@ -255,7 +255,7 @@ theorem fderiv_map_apply (G : ScaledGraph) {p : SpaceTime} | ||
| 255 | 255 | (hY.add hT))).prodMk (hP 1) |
| 256 | 256 | change HasFDerivAt G.map _ p at hd |
| 257 | 257 | rw [hd.fderiv] |
| 258 | - ext <;> simp [ContinuousLinearMap.fst, GraphCalculus.radialSpeed, | |
| 258 | + ext <;> simp [GraphCalculus.radialSpeed, | |
| 259 | 259 | smul_eq_mul] <;> ring_nf <;> simp |
| 260 | 260 | |
| 261 | 261 | theorem map_radial (G : ScaledGraph) {p : SpaceTime} |
| @@ -576,7 +576,7 @@ theorem graphResidual_add {U : Set E} (hU : IsOpen U) (ε : ℝ) (R : E → ℝ) | ||
| 576 | 576 | simp [graphResidual, LinearWaveResidual.realComponentLinearResidual, |
| 577 | 577 | LinearWaveResidual.realTransport, LinearWaveResidual.realFrameLaplacian, |
| 578 | 578 | LinearWaveResidual.realAngularGenerator, Matrix.cons_val_zero, Matrix.cons_val_one, |
| 579 | - Matrix.cons_val_two, hfirst, hLap, hP] <;> ring | |
| 579 | + hfirst, hLap, hP] <;> ring | |
| 580 | 580 | |
| 581 | 581 | theorem transport_realLift (R : E → ℝ) (Vr Vθ Vz : E → E) |
| 582 | 582 | {a : E → Fin 3 → ℝ} {x : E} |
| @@ -676,8 +676,7 @@ theorem MatchesAt.radialDirection {c : CorrectionState.Context Lift} {G : Scaled | ||
| 676 | 676 | (H : MatchesAt c.operators G n) : LiftedMeanResidual.radialDirection c n = G.radial := by |
| 677 | 677 | funext x |
| 678 | 678 | simp [LiftedMeanResidual.radialDirection, LiftedMeanResidual.liftDirection, |
| 679 | - LiftedMeanResidual.radialVector, H.eR, H.frequency, H.profile, H.vR, | |
| 680 | - ScaledGraph.radial] | |
| 679 | + LiftedMeanResidual.radialVector, H.eR, H.frequency, H.profile, H.vR] | |
| 681 | 680 | rfl |
| 682 | 681 | |
| 683 | 682 | theorem MatchesAt.axialDirection {c : CorrectionState.Context Lift} {G : ScaledGraph} {n : ℕ} |
+4 −4 NavierStokes/PhysicalWaveSum.lean View file
| @@ -65,7 +65,7 @@ theorem norm_downLift_le {d Δ : ℕ} (hd : d ≤ Δ) : ‖downLift d‖ ≤ cov | ||
| 65 | 65 | ContinuousLinearMap.le_opNorm _ _ |
| 66 | 66 | _ ≤ CommonCoverSolve.coveringBound Δ * ‖y‖ := |
| 67 | 67 | mul_le_mul hc (norm_snd_le y) (norm_nonneg _) (CommonCoverSolve.coveringBound_pos Δ).le |
| 68 | - _ ≤ _ := by unfold coverBound; nlinarith [norm_nonneg y] | |
| 68 | + _ ≤ _ := by unfold coverBound; linarith [norm_nonneg y] | |
| 69 | 69 | |
| 70 | 70 | noncomputable def commonLift (h : ℝ) (n d : ℕ) : SpaceTime → LiftPoint := |
| 71 | 71 | downLift d ∘ PhysicalGraphBounds.physicalLift h n |
| @@ -253,9 +253,9 @@ theorem logCoordinate_in_band {q : ℝ} (hq : 0 < q) {n : ℕ} | ||
| 253 | 253 | change (n : ℝ) - 1 ≤ -Real.log q / Real.log 2 ∧ -Real.log q / Real.log 2 ≤ (n : ℝ) + 1 |
| 254 | 254 | constructor |
| 255 | 255 | · apply (le_div_iff₀ h2).mpr |
| 256 | - nlinarith | |
| 256 | + linarith | |
| 257 | 257 | · apply (div_le_iff₀ h2).mpr |
| 258 | - nlinarith | |
| 258 | + linarith | |
| 259 | 259 | |
| 260 | 260 | theorem labelRegion_adjacency {D : ℝ} {L M : Label} {z : ℝ × Position} |
| 261 | 261 | (hq : 0 < z.1) (hL : 1 ≤ L.1) (hM : 1 ≤ M.1) (hne : L ≠ M) |
| @@ -625,7 +625,7 @@ theorem physicalSlowPair_eq (h : ℝ) (n : ℕ) (w : SpaceTime) : | ||
| 625 | 625 | (ChartScales.Q n ^ (-CoordinateAlgebra.D h) * w.2 2, (1 - w.1) / ChartScales.Q n) := by |
| 626 | 626 | simp only [PhysicalGraphBounds.liftZT_apply, PhysicalGraphBounds.physicalLift, |
| 627 | 627 | PhysicalGraphBounds.physicalChart, PhysicalGraphBounds.chartLinear_apply] |
| 628 | - ext <;> simp [Real.rpow_neg_one, div_eq_mul_inv] | |
| 628 | + ext <;> simp [Real.rpow_neg_one] | |
| 629 | 629 | ring |
| 630 | 630 | |
| 631 | 631 | theorem physicalSlowPair_continuous (h : ℝ) (n : ℕ) : |
+3 −3 NavierStokes/PositiveAxisExistence.lean View file
| @@ -515,7 +515,7 @@ theorem square_mem_Ico {R r : ℝ} (hr : r ∈ Ioo (-R) R) : | ||
| 515 | 515 | r ^ 2 ∈ Ico (0 : ℝ) (R ^ 2) := by |
| 516 | 516 | refine ⟨sq_nonneg _, ?_⟩ |
| 517 | 517 | have hprod : 0 < (R - r) * (R + r) := mul_pos (by linarith [hr.2]) (by linarith [hr.1]) |
| 518 | - nlinarith | |
| 518 | + linarith | |
| 519 | 519 | |
| 520 | 520 | /-- The genuine real first-order system, with all six ordinary derivatives. -/ |
| 521 | 521 | def RealSixSystem (R : ℝ) (J : Set ℝ) (h lam C : ℝ) (G : RealCoefficientData) |
| @@ -549,7 +549,7 @@ theorem positiveSolution_real_system {R T : ℝ} (hR : 0 < R) (hRT : R < T) | ||
| 549 | 549 | matrixRHS, hreal.base ⟨sq_pos_of_ne_zero hr0, (square_mem_Ico hr).2⟩ heta, |
| 550 | 550 | hreal.source ⟨sq_pos_of_ne_zero hr0, (square_mem_Ico hr).2⟩ heta, |
| 551 | 551 | Complex.real_smul, Complex.ofReal_div, Complex.ofReal_natCast, Pi.add_apply, |
| 552 | - add_comm, add_left_comm] at he ⊢ | |
| 552 | + add_comm] at he ⊢ | |
| 553 | 553 | exact he |
| 554 | 554 | |
| 555 | 555 | theorem RealSixSystem.first_derivative {R : ℝ} {J : Set ℝ} {h lam C : ℝ} |
| @@ -558,7 +558,7 @@ theorem RealSixSystem.first_derivative {R : ℝ} {J : Set ℝ} {h lam C : ℝ} | ||
| 558 | 558 | deriv (fun s => w s eta 0) r = w r eta 4 ∧ |
| 559 | 559 | deriv (fun s => w s eta 1) r = w r eta 5 := by |
| 560 | 560 | constructor |
| 561 | - · simpa [PositiveAxisSystem.diagonal, matrixRHS, A0, A1, forcing, Matrix.mulVec, dotProduct, | |
| 561 | + · simpa [PositiveAxisSystem.diagonal, matrixRHS, A0, A1, forcing, dotProduct, | |
| 562 | 562 | Fin.sum_univ_succ] using hw r hr hr0 eta heta 0 |
| 563 | 563 | · simpa [PositiveAxisSystem.diagonal, matrixRHS, A0, A1, forcing, Matrix.mulVec, dotProduct, |
| 564 | 564 | Fin.sum_univ_succ] using hw r hr hr0 eta heta 1 |
+2 −2 NavierStokes/PositiveOrderMoments.lean View file
| @@ -79,7 +79,7 @@ theorem rowDensity_increment {n : ℕ} (hn : 0 < n) (u e : History) (omega du de | ||
| 79 | 79 | ext i |
| 80 | 80 | fin_cases i <;> |
| 81 | 81 | simp only [rowDensity, pressureGradient, cauchy_increment hn, Pi.add_apply] <;> |
| 82 | - simp [linearDensity, increment, Function.update_self, div_eq_mul_inv] | |
| 82 | + simp [linearDensity, increment, Function.update_self] | |
| 83 | 83 | all_goals try ring1 |
| 84 | 84 | by_cases hR : R = 0 |
| 85 | 85 | · simp [hR] |
| @@ -598,7 +598,7 @@ theorem exists_parameterized_exact_repair (lam a b : ℝ) (hlam : 0 < lam) | ||
| 598 | 598 | · intro eta heta |
| 599 | 599 | have hi := jointRowDensity_integrableOn (S := S) (n := n) (u := u) (e := e) |
| 600 | 600 | (omega := omega) (B := B) (fun i => (hd i).continuousOn) hs heta |
| 601 | - simpa only [du, de, debt, zero_sub] using moments_repair_target lam (A eta) a b 0 hn | |
| 601 | + simpa only [du, debt, zero_sub] using moments_repair_target lam (A eta) a b 0 hn | |
| 602 | 602 | (slice u eta) (slice e eta) (fun R => omega (R, eta)) hlam (hAn eta heta) ha hab |
| 603 | 603 | (hU₀ eta heta) (hE₀ eta heta) hi |
| 604 | 604 | |
+3 −5 NavierStokes/PositiveTimeSignedData.lean View file
| @@ -69,7 +69,7 @@ theorem primitive_annulus (hh0 : 0 < h) (hh1 : h < 1 / 2) | ||
| 69 | 69 | have hs := Real.sqrt_pos.mpr hq |
| 70 | 70 | have hslow := normalized_slow_norm hh0 hh1 hx hy.1 hy.2.1 |
| 71 | 71 | have hlo : 1 / 2 ≤ Real.sqrt (SimilarityCoordinates.coordinateQ (2 * h) y.2.1) := |
| 72 | - (Real.le_sqrt (by norm_num) hq.le).mpr (by nlinarith [hy.1]) | |
| 72 | + (Real.le_sqrt (by norm_num) hq.le).mpr (by linarith [hy.1]) | |
| 73 | 73 | have hhi : Real.sqrt (SimilarityCoordinates.coordinateQ (2 * h) y.2.1) ≤ 2 := |
| 74 | 74 | (Real.sqrt_le_left (by norm_num)).mpr (by linarith [hy.2.1]) |
| 75 | 75 | have hradlo := (le_div_iff₀ hs).mp hy.2.2.1 |
| @@ -141,8 +141,7 @@ theorem potential_support (i : Fin 3) : | ||
| 141 | 141 | simpa only [potentialCopies, PositiveTimeCopyFamily.gate, |
| 142 | 142 | ActualSignedPhysicalData.potentialFamily, extendedCarrier, dite_eq_left hL] using |
| 143 | 143 | angular_integer sys f G ⟨L.val, L.property, hL⟩ k |
| 144 | - · exact ⟨0, by simp [potentialCopies, PositiveTimeCopyFamily.gate, | |
| 145 | - ActualSignedPhysicalData.potentialFamily, extendedCarrier, hL, | |
| 144 | + · exact ⟨0, by simp [potentialCopies, ActualSignedPhysicalData.potentialFamily, extendedCarrier, hL, | |
| 146 | 145 | ActualSignedPhysicalData.carrier]⟩ |
| 147 | 146 | geometry_support k I w hw := by |
| 148 | 147 | obtain ⟨hpast, hraw⟩ := (PositiveTimeCopyFamily.gate_amplitude_ne_zero_iff |
| @@ -185,8 +184,7 @@ theorem pressure_support : | ||
| 185 | 184 | simpa only [pressureCopies, PositiveTimeCopyFamily.gate, |
| 186 | 185 | ActualSignedPhysicalData.pressureFamily, extendedCarrier, dite_eq_left hL] using |
| 187 | 186 | angular_integer sys f G ⟨L.val, L.property, hL⟩ k |
| 188 | - · exact ⟨0, by simp [pressureCopies, PositiveTimeCopyFamily.gate, | |
| 189 | - ActualSignedPhysicalData.pressureFamily, extendedCarrier, hL, | |
| 187 | + · exact ⟨0, by simp [pressureCopies, ActualSignedPhysicalData.pressureFamily, extendedCarrier, hL, | |
| 190 | 188 | ActualSignedPhysicalData.carrier]⟩ |
| 191 | 189 | geometry_support k I w hw := by |
| 192 | 190 | obtain ⟨hpast, hraw⟩ := (PositiveTimeCopyFamily.gate_amplitude_ne_zero_iff |
+8 −8 NavierStokes/PressureDatum.lean View file
| @@ -47,13 +47,13 @@ theorem kernel_pos (a η : ℝ) : 0 < kernel a η := Real.exp_pos _ | ||
| 47 | 47 | |
| 48 | 48 | theorem kernel_le_one {a : ℝ} (ha : 0 ≤ a) (η : ℝ) : kernel a η ≤ 1 := by |
| 49 | 49 | apply Real.exp_le_one_iff.mpr |
| 50 | - have hl : 0 ≤ Real.log (1 + η ^ 2) := Real.log_nonneg (by nlinarith [sq_nonneg η]) | |
| 51 | - exact mul_nonpos_of_nonpos_of_nonneg (by nlinarith) hl | |
| 50 | + have hl : 0 ≤ Real.log (1 + η ^ 2) := Real.log_nonneg (by linarith [sq_nonneg η]) | |
| 51 | + exact mul_nonpos_of_nonpos_of_nonneg (by linarith) hl | |
| 52 | 52 | |
| 53 | 53 | theorem kernel_antitone {a b : ℝ} (hab : a ≤ b) (η : ℝ) : |
| 54 | 54 | kernel b η ≤ kernel a η := by |
| 55 | 55 | apply Real.exp_le_exp.mpr |
| 56 | - have hl : 0 ≤ Real.log (1 + η ^ 2) := Real.log_nonneg (by nlinarith [sq_nonneg η]) | |
| 56 | + have hl : 0 ≤ Real.log (1 + η ^ 2) := Real.log_nonneg (by linarith [sq_nonneg η]) | |
| 57 | 57 | exact mul_le_mul_of_nonneg_right (by linarith) hl |
| 58 | 58 | |
| 59 | 59 | @[simp] theorem kernel_neg (a η : ℝ) : kernel a (-η) = kernel a η := by |
| @@ -89,7 +89,7 @@ theorem pressure_le_mass {g a : ℝ → ℝ} {A : ℝ} | ||
| 89 | 89 | (fun y => mul_le_mul_of_nonneg_left (kernel_antitone (h.exponent_le y) η) (h.nonneg y)) |
| 90 | 90 | rw [integral_mul_const] at hm |
| 91 | 91 | dsimp [pressure] |
| 92 | - nlinarith | |
| 92 | + linarith | |
| 93 | 93 | |
| 94 | 94 | /-- A strip containing the complete real axis and therefore `[-1,1]`. -/ |
| 95 | 95 | def strip : Set ℂ := {z | |z.im| < (1 / 2 : ℝ)} |
| @@ -312,7 +312,7 @@ theorem weighted_kernel_pos {g a : ℝ → ℝ} {A : ℝ} | ||
| 312 | 312 | have hp := pressure_le_mass (exponent_weight_admissible h) η |
| 313 | 313 | have hpos := mul_pos (kernel_pos A η) hmass |
| 314 | 314 | dsimp [pressure] at hp |
| 315 | - nlinarith | |
| 315 | + linarith | |
| 316 | 316 | |
| 317 | 317 | theorem deriv_pressure_pos {g a : ℝ → ℝ} {A : ℝ} |
| 318 | 318 | (h : Admissible g a A) (hmass : 0 < ∫ y, g y * a y) |
| @@ -344,7 +344,7 @@ theorem pressure_le_prefix {g a : ℝ → ℝ} {A b : ℝ} | ||
| 344 | 344 | rw [ha y hy] |
| 345 | 345 | rw [heq] at hp |
| 346 | 346 | dsimp [pressure] |
| 347 | - nlinarith | |
| 347 | + linarith | |
| 348 | 348 | |
| 349 | 349 | theorem pressure_le_prefix_mass {g a : ℝ → ℝ} {A b m : ℝ} |
| 350 | 350 | (h : Admissible g a A) {s : Set ℝ} (hs : MeasurableSet s) |
| @@ -352,7 +352,7 @@ theorem pressure_le_prefix_mass {g a : ℝ → ℝ} {A b m : ℝ} | ||
| 352 | 352 | pressure g a η ≤ -(1 / 2 : ℝ) * m * kernel b η := by |
| 353 | 353 | have hp := pressure_le_prefix h hs ha η |
| 354 | 354 | have hk := mul_le_mul_of_nonneg_left hm (kernel_pos b η).le |
| 355 | - nlinarith | |
| 355 | + linarith | |
| 356 | 356 | |
| 357 | 357 | theorem kernel_one (η : ℝ) : kernel 1 η = (1 + η ^ 2)⁻¹ ^ 2 := by |
| 358 | 358 | rw [kernel_eq_rpow] |
| @@ -367,7 +367,7 @@ theorem manuscript_prefix_bound {g a : ℝ → ℝ} {A P : ℝ} | ||
| 367 | 367 | pressure g a η ≤ -(5 / 2 : ℝ) * P ^ 2 * ((1 + η ^ 2)⁻¹) ^ 2 := by |
| 368 | 368 | have hp := pressure_le_prefix_mass h hs ha hm η |
| 369 | 369 | rw [kernel_one] at hp |
| 370 | - nlinarith | |
| 370 | + linarith | |
| 371 | 371 | |
| 372 | 372 | /-- Exact integral of the ideal clock prefix `P² exp(y/5)`. -/ |
| 373 | 373 | theorem ideal_prefix_mass (P : ℝ) : |
+5 −6 NavierStokes/PrimaryCopyBounds.lean View file
| @@ -266,7 +266,7 @@ theorem covariance_weights_jets | ||
| 266 | 266 | have h2 := mul_le_mul (hentry i x hx 0 1) (hentry i x hx 1 0) |
| 267 | 267 | (abs_nonneg _) (zero_le_one.trans hM) |
| 268 | 268 | simp only [abs_mul] at h1 h2 ⊢ |
| 269 | - nlinarith | |
| 269 | + linarith | |
| 270 | 270 | have hi := hD.inv hb hdet hDupper |
| 271 | 271 | have hscale := (hr.pow 2).mul hi |
| 272 | 272 | have hP (k l j : Fin 2) : NativeJets V w (fun i x => T i x j * H i x k l) := by |
| @@ -274,11 +274,10 @@ theorem covariance_weights_jets | ||
| 274 | 274 | have hnum : NativeJets V w (fun i x => SmoothCovariance.cramerNumerator (H i x) (T i x) j) := by |
| 275 | 275 | fin_cases j |
| 276 | 276 | · have he := (hP 1 1 0).sub (hP 0 1 1) |
| 277 | - simp only [SmoothCovariance.cramerNumerator, mul_comm] at he ⊢ | |
| 277 | + simp only [mul_comm] at he ⊢ | |
| 278 | 278 | exact he |
| 279 | 279 | · have he := (hP 0 0 1).sub (hP 1 0 0) |
| 280 | - simp only [SmoothCovariance.cramerNumerator, | |
| 281 | - mul_comm] at he ⊢ | |
| 280 | + simp only [mul_comm] at he ⊢ | |
| 282 | 281 | exact he |
| 283 | 282 | apply (hnum.polynomial_mul hscale).congr |
| 284 | 283 | intro i x hx |
| @@ -340,7 +339,7 @@ theorem pressureCoefficient_jets | ||
| 340 | 339 | simp only [one_mul] at he |
| 341 | 340 | exact he |
| 342 | 341 | simpa only [TangentProjection.pressureCoefficient, inner_zero_right, add_zero, |
| 343 | - real_inner_self_eq_norm_sq, div_eq_mul_inv, mul_comm] using hnum.polynomial_mul hInv | |
| 342 | + div_eq_mul_inv, mul_comm] using hnum.polynomial_mul hInv | |
| 344 | 343 | |
| 345 | 344 | end Pressure |
| 346 | 345 | |
| @@ -1126,7 +1125,7 @@ theorem nativeMask_jets (U : Domain ι PhaseCalculus.Slow) | ||
| 1126 | 1125 | refine ⟨hb.smooth, ?_⟩ |
| 1127 | 1126 | intro m |
| 1128 | 1127 | obtain ⟨C, hC, p, hp⟩ := hb.bound m |
| 1129 | - exact ⟨C, hC, p, fun i j hj x hx => by simpa only [V, mul_one] using hp i x hx j hj⟩ | |
| 1128 | + exact ⟨C, hC, p, fun i j hj x hx => by simpa only [mul_one] using hp i x hx j hj⟩ | |
| 1130 | 1129 | |
| 1131 | 1130 | theorem nativeMask_comp_jets (U : Domain ι D) |
| 1132 | 1131 | (χ : ι → D → PhaseCalculus.Slow) (hχ : PolynomialJets U χ) |
+5 −5 NavierStokes/PrimaryCovarianceBounds.lean View file
| @@ -156,7 +156,7 @@ theorem slotCutoff_bounds {r : ℝ} (hr : 1 ≤ r) : | ||
| 156 | 156 | · intro v hv |
| 157 | 157 | apply GaussianTailFlat.slotCutoff_one hr2 |
| 158 | 158 | apply abs_le.mpr |
| 159 | - constructor <;> nlinarith [hv.1, hv.2] | |
| 159 | + constructor <;> linarith [hv.1, hv.2] | |
| 160 | 160 | |
| 161 | 161 | /-! ## Native chart scale and the positive scalar column sizes -/ |
| 162 | 162 | |
| @@ -198,9 +198,9 @@ theorem chart_scalar_factor_bounds {r0 h : ℝ} (hr0 : 0 < r0) (hh : 0 ≤ h) | ||
| 198 | 198 | · apply (div_le_iff₀ ChartScales.Tg_pos).mpr |
| 199 | 199 | have ht := (div_le_iff₀ (mul_pos ChartScales.Tg_pos hS)).mp hb.1 |
| 200 | 200 | dsimp [S, c] at * |
| 201 | - nlinarith | |
| 201 | + linarith | |
| 202 | 202 | · have ht := (le_div_iff₀ hS).mp hb.2 |
| 203 | - nlinarith | |
| 203 | + linarith | |
| 204 | 204 | have hRsq : R ^ 2 = 2 * r0 * (S * c) := by |
| 205 | 205 | dsimp [R] |
| 206 | 206 | calc |
| @@ -286,7 +286,7 @@ theorem eventually_slotRadius_large {r0 h : ℝ} (hr0 : 0 < r0) (hh : 0 ≤ h) ( | ||
| 286 | 286 | have hRn : R ≤ Real.sqrt (2 * r0) * n := by |
| 287 | 287 | have hd : R / Real.sqrt (2 * r0) ≤ n := (le_max_right _ _).trans (hN.trans hnN) |
| 288 | 288 | have hx := (div_le_iff₀ hroot).mp hd |
| 289 | - nlinarith | |
| 289 | + linarith | |
| 290 | 290 | apply hRn.trans |
| 291 | 291 | have hlen := (ChartScales.slotLength_bounds r0 h hr0.le hh hn4).1 |
| 292 | 292 | have hsq := slotRadius_sq hr0 h n |
| @@ -398,7 +398,7 @@ theorem compact_chart_pair_bounds {X : Type*} [TopologicalSpace X] {K : Set X} | ||
| 398 | 398 | have hsmall : Q / slotRadius r0 h n ≤ rho := by |
| 399 | 399 | apply (div_le_iff₀ hr).mpr |
| 400 | 400 | have ht := (div_le_iff₀ hrho).mp hrlarge |
| 401 | - nlinarith | |
| 401 | + linarith | |
| 402 | 402 | have hclose (i j : Fin 2) : |normalizedPair P i j - H0 p i j| ≤ rho := by |
| 403 | 403 | have he := normalizedPair_entry_error P hP (H0 p) hE hD |
| 404 | 404 | (by simpa only [slotRadius_sq hr0] using hratio) i j |
+1 −1 NavierStokes/PrimaryGeometryAssembly.lean View file
| @@ -371,7 +371,7 @@ theorem radius_lower_of_majorant {lo M : ℝ} (hlo : 0 < lo) (hM : 1 ≤ M) | ||
| 371 | 371 | have hs : 0 < Real.sqrt lo := Real.sqrt_pos.mpr hlo |
| 372 | 372 | have hb := (div_le_iff₀ hs).mp hbound |
| 373 | 373 | apply (div_le_iff₀ hM0).mpr |
| 374 | - nlinarith | |
| 374 | + linarith | |
| 375 | 375 | |
| 376 | 376 | /-- The smooth summed base, its positive mask representatives, and the |
| 377 | 377 | actual strict cone supply every datum used by the phase theorem. The |
+4 −4 NavierStokes/PrimaryODE.lean View file
| @@ -306,7 +306,7 @@ private theorem modalOperator_expansion (lam damping e11 e12 e21 e22 : ℝ) : | ||
| 306 | 306 | e21 • GrowingMode.modalOperator 0 0 0 0 1 0 + |
| 307 | 307 | (-lam - damping + e22) • GrowingMode.modalOperator 0 0 0 0 0 1 := by |
| 308 | 308 | ext z i |
| 309 | - fin_cases i <;> simp [GrowingMode.modalOperator] | |
| 309 | + fin_cases i <;> simp | |
| 310 | 310 | |
| 311 | 311 | theorem FrameData.SmoothOn.coefficient {d : FrameData Q} {Ω : Set (Q × ℝ)} |
| 312 | 312 | (h : d.SmoothOn Ω) (j : ℤ) : ContDiffOn ℝ ∞ (d.coefficient j) Ω := by |
| @@ -444,9 +444,9 @@ theorem primary_bounds (hab : a ≤ b) (d : FrameData Q) (P : Q × ℝ → ℝ) | ||
| 444 | 444 | · change 0 < primary hab d P p v 0 + primary hab d P p v 1 |
| 445 | 445 | linarith |
| 446 | 446 | · change _ ≤ primary hab d P p v 0 + primary hab d P p v 1 |
| 447 | - nlinarith | |
| 447 | + linarith | |
| 448 | 448 | · change primary hab d P p v 0 + primary hab d P p v 1 ≤ _ |
| 449 | - nlinarith | |
| 449 | + linarith | |
| 450 | 450 | |
| 451 | 451 | end Primary |
| 452 | 452 | |
| @@ -491,7 +491,7 @@ theorem hasDerivAt_referenceProfile (c₀ u ell v : ℝ) : | ||
| 491 | 491 | simp only [Nat.cast_ofNat, Nat.reduceSub, pow_one] |
| 492 | 492 | generalize u / ell = q |
| 493 | 493 | field_simp [hp.ne', (PulseGrowth.one_add_sq_pos (PulseGrowth.slotMagnitude u ell v)).ne'] |
| 494 | - nlinarith only [congrArg (fun z : ℝ => c₀ * PulseGrowth.slotMagnitude u ell v * q * z) hsq] | |
| 494 | + linarith only [congrArg (fun z : ℝ => c₀ * PulseGrowth.slotMagnitude u ell v * q * z) hsq] | |
| 495 | 495 | |
| 496 | 496 | theorem referenceProfile_ne_zero {c₀ : ℝ} (hc₀ : c₀ ≠ 0) (u ell v : ℝ) : |
| 497 | 497 | referenceProfile c₀ u ell v ≠ 0 := |
+12 −12 NavierStokes/PrimaryPulseBounds.lean View file
| @@ -144,7 +144,7 @@ noncomputable def rescaleConstant (N : ℕ) (K : ℝ) : ℝ := 2 ^ N * K ^ 2 + K | ||
| 144 | 144 | |
| 145 | 145 | theorem le_rescaleConstant (N : ℕ) (K : ℝ) : K ≤ rescaleConstant N K := by |
| 146 | 146 | unfold rescaleConstant |
| 147 | - nlinarith [mul_nonneg (pow_nonneg (by norm_num : (0 : ℝ) ≤ 2) N) (sq_nonneg K)] | |
| 147 | + linarith [mul_nonneg (pow_nonneg (by norm_num : (0 : ℝ) ≤ 2) N) (sq_nonneg K)] | |
| 148 | 148 | |
| 149 | 149 | section JointEstimate |
| 150 | 150 | |
| @@ -234,11 +234,11 @@ theorem homogeneous_joint_jet_bound | ||
| 234 | 234 | cases k with |
| 235 | 235 | | zero => |
| 236 | 236 | rw [norm_iteratedFDeriv_zero, norm_smul, Real.norm_eq_abs, abs_of_pos (hP 0)] |
| 237 | - simp only [one_mul, zero_mul] | |
| 237 | + simp only [zero_mul] | |
| 238 | 238 | nlinarith [hP 0] |
| 239 | 239 | | succ k => |
| 240 | 240 | rw [iteratedFDeriv_succ_const] |
| 241 | - simp only [Pi.zero_apply, norm_zero, one_mul, zero_mul] | |
| 241 | + simp only [Pi.zero_apply, norm_zero, zero_mul] | |
| 242 | 242 | have hp0 := hP 0 |
| 243 | 243 | positivity |
| 244 | 244 | have hfjet : ∀ k ≤ N, ∀ σ : Icc (0 : ℝ) 1, |
| @@ -261,7 +261,7 @@ theorem homogeneous_joint_jet_bound | ||
| 261 | 261 | (show (1 : ℝ) - 0 ≤ K' * S by nlinarith) (m + 1) N hAjet hxjet hfjet j hj |
| 262 | 262 | ⟨1, zero_le_one, le_rfl⟩ |
| 263 | 263 | unfold JointODE.reparamSolution |
| 264 | - simpa only [one_mul, Nat.add_assoc] using hh | |
| 264 | + simpa only [one_mul] using hh | |
| 265 | 265 | |
| 266 | 266 | end JointEstimate |
| 267 | 267 | |
| @@ -646,7 +646,7 @@ theorem fundamental_eq_primary {d : PrimaryODE.FrameData Q} {lam u L : ℝ} (hL | ||
| 646 | 646 | hA continuousOn_const (z := (p, t)) ⟨hp, ht⟩ |
| 647 | 647 | convert! he using 1 |
| 648 | 648 | simp only [PrimaryODE.primary, PrimaryODE.solution, PrimaryODE.extendedFamily, |
| 649 | - JointODE.actualSolution, PrimaryODE.FrameData.forcing_zero_function] | |
| 649 | + PrimaryODE.FrameData.forcing_zero_function] | |
| 650 | 650 | congr 2 |
| 651 | 651 | ext k |
| 652 | 652 | fin_cases k <;> simp [PrimaryODE.primarySeed, positiveSeed] |
| @@ -692,7 +692,7 @@ theorem EnvelopeJets.normalize_slot | ||
| 692 | 692 | change max 1 (L i) ≤ (M + 1) * D.scale i |
| 693 | 693 | apply max_le |
| 694 | 694 | · nlinarith [D.one_le_scale i] |
| 695 | - · nlinarith [hslot i, D.one_le_scale i] | |
| 695 | + · linarith [hslot i, D.one_le_scale i] | |
| 696 | 696 | |
| 697 | 697 | end NormalizeSlot |
| 698 | 698 | |
| @@ -709,7 +709,7 @@ theorem ambient_eq_synthesis (d : PrimaryODE.FrameData Q) (z : Q × ℝ) (w : St | ||
| 709 | 709 | d.ambient z w = w 0 • synthesisColumn d 0 z + w 1 • synthesisColumn d 1 z := by |
| 710 | 710 | ext i |
| 711 | 711 | fin_cases i <;> |
| 712 | - simp [PrimaryODE.FrameData.ambient, MovingFrameODE.tangent, MovingFrameODE.pack, synthesisColumn] <;> ring | |
| 712 | + simp [PrimaryODE.FrameData.ambient, MovingFrameODE.tangent, synthesisColumn] <;> ring | |
| 713 | 713 | |
| 714 | 714 | theorem synthesisColumn_polynomial {D : PhaseJetBounds.Domain ι (Q × ℝ)} |
| 715 | 715 | {d : ι → PrimaryODE.FrameData Q} (hd : PhaseJetBounds.FrameJets D d) (j : Fin 2) : |
| @@ -724,7 +724,7 @@ theorem synthesisColumn_polynomial {D : PhaseJetBounds.Domain ι (Q × ℝ)} | ||
| 724 | 724 | intro i x hx |
| 725 | 725 | change MovingFrameODE.pack 1 ((-(d i).rho x) • (d i).frame x 0 - |
| 726 | 726 | (d i).eigenvector x • (d i).frame x 1) = synthesisColumn (d i) 1 x |
| 727 | - simp [synthesisColumn, sub_eq_add_neg, neg_smul] | |
| 727 | + simp [synthesisColumn, sub_eq_add_neg] | |
| 728 | 728 | |
| 729 | 729 | end GeometrySynthesis |
| 730 | 730 | |
| @@ -881,7 +881,7 @@ theorem sqrt_slow_polynomial (s : StripData E) : | ||
| 881 | 881 | PhaseJetBounds.PolynomialJets (phaseDomain s) (fun n _ => Real.sqrt (s.slow n)) := by |
| 882 | 882 | apply PhaseJetBounds.PolynomialJets.const _ (C := 1) (m := 1) le_rfl |
| 883 | 883 | intro n |
| 884 | - simp only [Real.norm_eq_abs, abs_of_nonneg (Real.sqrt_nonneg _), one_mul, pow_one, | |
| 884 | + simp only [Real.norm_eq_abs, abs_of_nonneg (Real.sqrt_nonneg _), pow_one, | |
| 885 | 885 | phaseDomain] |
| 886 | 886 | have hs := s.one_le_slow n |
| 887 | 887 | have hsq := Real.sq_sqrt (zero_le_one.trans hs) |
| @@ -934,7 +934,7 @@ theorem EnvelopeJets.map {f : ι → E → F} (hf : EnvelopeJets D w f) | ||
| 934 | 934 | have hs := pow_nonneg (zero_le_one.trans (D.one_le_scale i)) m |
| 935 | 935 | have hw := hf.nonneg i x hx |
| 936 | 936 | have hcw : 0 ≤ C * D.scale i ^ m * w i x := by positivity |
| 937 | - nlinarith [mul_nonneg (show 0 ≤ C by linarith) (mul_nonneg hs hw)] | |
| 937 | + linarith [mul_nonneg (show 0 ≤ C by linarith) (mul_nonneg hs hw)] | |
| 938 | 938 | |
| 939 | 939 | theorem EnvelopeJets.add {f g : ι → E → F} |
| 940 | 940 | (hf : EnvelopeJets D w f) (hg : EnvelopeJets D w g) : |
| @@ -1114,7 +1114,7 @@ theorem actualColumn_normalization | ||
| 1114 | 1114 | rw [Measure.integral_comp_div, abs_of_pos hL, smul_eq_mul] |
| 1115 | 1115 | _ = _ := by |
| 1116 | 1116 | rw [← intervalIntegral.integral_eq_integral_of_support_subset hsupp] |
| 1117 | - dsimp [g] | |
| 1117 | + dsimp | |
| 1118 | 1118 | ring |
| 1119 | 1119 | |
| 1120 | 1120 | omit [NormedAddCommGroup Q] [NormedSpace ℝ Q] in |
| @@ -1379,7 +1379,7 @@ theorem localPrimaryProfile_radial | ||
| 1379 | 1379 | (PrimaryODE.primary hL.le d (fun w => referenceP lam u L w.2) p z.2)) 0) : |
| 1380 | 1380 | P.radialProfile radius z = localPrimaryProfile d lam u L radius p z 0 := by |
| 1381 | 1381 | rw [localPrimaryProfile, cutoffPulse_eq_ambient_primary d lam u hL U hA hp hz] |
| 1382 | - simp only [PartitionedCovariance.Pulse.radialProfile, PiLp.smul_apply, smul_eq_mul, hψ, hx] | |
| 1382 | + simp only [PartitionedCovariance.Pulse.radialProfile, PiLp.smul_apply, hψ, hx] | |
| 1383 | 1383 | ring |
| 1384 | 1384 | |
| 1385 | 1385 | theorem localPrimaryProfile_tangent |
+4 −4 NavierStokes/PrimaryRepresentatives.lean View file
| @@ -173,7 +173,7 @@ theorem referenceCone_of_shear_coordinates {F a b : ℝ} (hF : 0 < F) (ha : 0 < | ||
| 173 | 173 | change ‖F • !₂[-a, b]‖ ^ 2 = (F * -a) ^ 2 + (F * b) ^ 2 at hn |
| 174 | 174 | change 0 < 2 * F * (F * -a) + ‖F • !₂[-a, b]‖ ^ 2 |
| 175 | 175 | rw [hn] |
| 176 | - nlinarith [mul_pos (sq_pos_of_pos hF) (sub_pos.mpr hv)] | |
| 176 | + linarith [mul_pos (sq_pos_of_pos hF) (sub_pos.mpr hv)] | |
| 177 | 177 | |
| 178 | 178 | theorem normalDirection_unit {g : Plane} (hg : g ≠ 0) : ‖normalDirection g‖ = 1 := by |
| 179 | 179 | simp only [normalDirection, norm_smul, norm_inv, norm_norm] |
| @@ -323,7 +323,7 @@ theorem compact_parameter_bounds {K : Set Slow} (hK : IsCompact K) | ||
| 323 | 323 | · simpa [parameterScalars, abs_of_pos (hc q hq).lambda0_pos] using hb 3 |
| 324 | 324 | · simpa [parameterScalars] using hb 4 |
| 325 | 325 | · simpa [parameterScalars, abs_of_pos (inv_pos.mpr (hR q hq))] using hb 5 |
| 326 | - · simpa [parameterScalars, abs_of_pos (inv_pos.mpr hgq)] using hb 6 | |
| 326 | + · simpa [parameterScalars] using hb 6 | |
| 327 | 327 | · simpa [parameterScalars, abs_of_pos (inv_pos.mpr (hc q hq).lambda0_pos)] using hb 7 |
| 328 | 328 | · simpa [parameterScalars, abs_inv] using hb 8 |
| 329 | 329 | |
| @@ -459,7 +459,7 @@ theorem physicalMask_normalized_mem {h a b : ℝ} (L : Label) {q : ℝ} {x : Pos | ||
| 459 | 459 | (x 1 / ChartScales.Q L.1 ^ CoordinateAlgebra.D h) (q / ChartScales.Q L.1) = |
| 460 | 460 | x 2 / ChartScales.Q L.1 := by |
| 461 | 461 | apply (eq_div_iff hQ.ne').mpr |
| 462 | - nlinarith [hs] | |
| 462 | + linarith [hs] | |
| 463 | 463 | have hroot : (ChartScales.Q L.1 ^ (1 / 2 : ℝ)) ^ 2 = ChartScales.Q L.1 := by |
| 464 | 464 | rw [← Real.rpow_mul_natCast hQ.le] |
| 465 | 465 | norm_num |
| @@ -495,7 +495,7 @@ theorem exists_slopeRatio_gt {r : ℝ} (hr : 0 ≤ r) (hr1 : r < 1) : | ||
| 495 | 495 | have hroot : 0 < Real.sqrt (1 + u ^ 2) := Real.sqrt_pos.mpr (by positivity) |
| 496 | 496 | have hsquare : (r * Real.sqrt (1 + u ^ 2)) ^ 2 < u ^ 2 := by |
| 497 | 497 | rw [mul_pow, Real.sq_sqrt (show 0 ≤ 1 + u ^ 2 by positivity)] |
| 498 | - nlinarith | |
| 498 | + linarith | |
| 499 | 499 | refine ⟨u, hu, (lt_div_iff₀ hroot).mpr ?_⟩ |
| 500 | 500 | by_contra! hn |
| 501 | 501 | have hbad := pow_le_pow_left₀ hu.le hn 2 |
+6 −6 NavierStokes/PrimaryTargetBounds.lean View file
| @@ -45,7 +45,7 @@ theorem basisMatrix_det (K : Plane) (hK : ‖K‖ = 1) : (basisMatrix K).det = - | ||
| 45 | 45 | simp only [basisMatrix, Matrix.det_fin_two, ite_true, show (1 : Fin 2) ≠ 0 by decide, |
| 46 | 46 | ite_false] |
| 47 | 47 | change -K 1 * K 1 - K 0 * K 0 = -1 |
| 48 | - nlinarith | |
| 48 | + linarith | |
| 49 | 49 | |
| 50 | 50 | theorem modelMatrix_column (c u : ℝ) (K : Plane) (i j : Fin 2) : |
| 51 | 51 | modelMatrix c u K i j = |
| @@ -64,7 +64,7 @@ theorem basisMatrix_target (K T : Plane) (hK : ‖K‖ = 1) : | ||
| 64 | 64 | fin_cases i <;> |
| 65 | 65 | simp [basisMatrix, Covariance.target, modelNormal, modelTransverse, Matrix.mulVec, |
| 66 | 66 | dotProduct, Fin.sum_univ_two, PiLp.inner_apply, MovingFrameODE.quarterTurn] <;> |
| 67 | - nlinarith [congrArg (fun x : ℝ => x * T 0) hs, congrArg (fun x : ℝ => x * T 1) hs] | |
| 67 | + linarith [congrArg (fun x : ℝ => x * T 0) hs, congrArg (fun x : ℝ => x * T 1) hs] | |
| 68 | 68 | |
| 69 | 69 | theorem weights_unique {H : Mat2} {T z : Vec2} (hd : H.det ≠ 0) (he : H.mulVec z = T) : |
| 70 | 70 | SmoothCovariance.weights H T = z := by |
| @@ -95,7 +95,7 @@ theorem modelMatrix_strictCone {c u eta : ℝ} {K T : Plane} | ||
| 95 | 95 | apply (div_lt_iff₀ hmp).mpr |
| 96 | 96 | have hh := mul_pos heta hmp |
| 97 | 97 | change |c * modelTransverse K T| < PrimaryRepresentatives.slopeRatio u * modelNormal K T |
| 98 | - nlinarith | |
| 98 | + linarith | |
| 99 | 99 | have hbase := PulseCovariance.signedModel_strictCone hc hu (Covariance.cone_of_ratio hmp hratio) |
| 100 | 100 | have hh := strictCone_mul_left (B := basisMatrix K) (by rw [basisMatrix_det K hK]; norm_num) hbase |
| 101 | 101 | rwa [basisMatrix_target K T hK] at hh |
| @@ -310,7 +310,7 @@ theorem primary_ratio_error (i : ι) {p : Slow} (hp : p ∈ D.carrier i) | ||
| 310 | 310 | have hc := a.coefficientControl hh hr hM hu huM hL hslot i (hlarge i) hp |
| 311 | 311 | have hA := coefficient_continuous a hh hr hM hu huM hL hslot hlarge i |
| 312 | 312 | have hslotL : a.length i ≤ (2*r0*ChartScales.Tg) * D.scale i := by |
| 313 | - simpa only [FamilyData.length, a.scale_eq i, mul_assoc] using | |
| 313 | + simpa only [FamilyData.length, a.scale_eq i] using | |
| 314 | 314 | (ChartScales.slotLength_bounds r0 h hr.le hh (hlarge i).four_le).2 |
| 315 | 315 | have hP (t : ℝ) (_ht : t ∈ Icc 0 (a.length i)) := |
| 316 | 316 | PrimaryPulseBounds.referenceP_pos (a.lam i) u (a.length i) t |
| @@ -337,7 +337,7 @@ theorem primary_ratio_error (i : ι) {p : Slow} (hp : p ∈ D.carrier i) | ||
| 337 | 337 | have hprof := reference_profile_bounds (one_div_pos.mpr (zero_lt_one.trans_le hM)) |
| 338 | 338 | (a.ratio_bound i).1 (a.ratio_bound i).2 (a.magnitude_bound hr hu.le huM hv') |
| 339 | 339 | have hH : |PrimaryODE.referenceProfile (a.c0 i) u (a.length i) v| ≤ eigenBound M := |
| 340 | - hprof.1.trans (by unfold eigenBound; nlinarith [show 0 ≤ M by linarith]) | |
| 340 | + hprof.1.trans (by unfold eigenBound; linarith [show 0 ≤ M by linarith]) | |
| 341 | 341 | have hgeom := tangent_ratio_error hB (a.unit i) hsmall hnormal |
| 342 | 342 | (r := PrimaryODE.transversePrimary hlength.le (a.frame i) |
| 343 | 343 | (fun z => PrimaryPulseBounds.referenceP (a.lam i) u (a.length i) z.2) p v / |
| @@ -430,7 +430,7 @@ theorem primary_center_error (i : ι) (j : Fin 2) (hsign : a.sigma i = phaseSign | ||
| 430 | 430 | have hratioL : ratioConstant M u gap / D.scale i ≤ |
| 431 | 431 | ((2*r0*ChartScales.Tg) * ratioConstant M u gap) / a.length i := by |
| 432 | 432 | apply (div_le_div_iff₀ hS hlength).mpr |
| 433 | - nlinarith [mul_le_mul_of_nonneg_left hslotL (ratioConstant_nonneg (u := u) hM hgap)] | |
| 433 | + linarith [mul_le_mul_of_nonneg_left hslotL (ratioConstant_nonneg (u := u) hM hgap)] | |
| 434 | 434 | have hcomponent := (PiLp.norm_apply_le |
| 435 | 435 | (pulseRatio (a.frame i) (a.lam i) u (a.length i) p v - |
| 436 | 436 | modelVector (a.c0 i) (phaseSign j*u) (a.K i)) k) |
+0 −11 NavierStokes/RadialAlias.lean View file
| @@ -202,15 +202,4 @@ theorem wholeAlias_sourceJet [CompleteSpace F] {a b M : ℝ} {v Y : E} | ||
| 202 | 202 | rw [hr p (Nat.lt_succ_self p), ← sourceJet_succ] at hstep |
| 203 | 203 | rw [hp, hstep, smul_smul, ← pow_succ] |
| 204 | 204 | |
| 205 | -theorem sourceJet_radiallySupported {a b : ℝ} | |
| 206 | - (J : (ℝ × E → F) → (ℝ × E → F)) (f : ℝ × E → F) (p : ℕ) | |
| 207 | - (hf : RadiallySupported a b f) | |
| 208 | - (hs : ∀ n < p, RadiallySupported a b (J (sourceJet J f n))) : | |
| 209 | - RadiallySupported a b (sourceJet J f p) := by | |
| 210 | - cases p with | |
| 211 | - | zero => exact hf | |
| 212 | - | succ p => | |
| 213 | - rw [sourceJet_succ] | |
| 214 | - exact radialSupport_slowDeriv (hs p (Nat.lt_succ_self p)) | |
| 215 | - | |
| 216 | 205 | end NavierStokes.RadialAlias |
+0 −129 NavierStokes/RadialPullback.lean View file
| @@ -672,137 +672,8 @@ section Weighted | ||
| 672 | 672 | variable {E V : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 673 | 673 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 674 | 674 | |
| 675 | -theorem normalizeSource_finiteJets_uniform {a b d : ℝ} | |
| 676 | - (ha : 0 < a) (hab : a < b) (hd : 0 < d) (cL cR : ℝ) (p m : ℕ) : | |
| 677 | - ∃ K : ℝ, 0 ≤ K ∧ ∀ (g : ℝ × E → V), ContDiff ℝ ∞ g → ∀ A : ℝ, 0 ≤ A → | |
| 678 | - (∀ j : ℕ, j ≤ m → ∀ R ∈ Ioo a b, ∀ Y : E, | |
| 679 | - ‖iteratedFDeriv ℝ j g (R, Y)‖ ≤ A * logWeight cL cR a b p R) → | |
| 680 | - ∀ z : ℝ × E, z.1 ∈ Ioo (a ^ d) (b ^ d) → ∀ j : ℕ, j ≤ m → | |
| 681 | - ‖iteratedFDeriv ℝ j (normalizeSource d a g) z‖ ≤ | |
| 682 | - K * A * logWeight (d ^ 2 * cL) (d ^ 2 * cR) (a ^ d) (b ^ d) p z.1 := by | |
| 683 | - obtain ⟨KC, hKC, hbC⟩ := radial_comp_finiteJets_uniform (E := E) (V := V) | |
| 684 | - (a ^ d) (b ^ d) (inverseChart_contDiff ha d) m | |
| 685 | - obtain ⟨KM, hKM, hbM⟩ := radial_multiplier_finiteJets_uniform (E := E) (V := V) | |
| 686 | - (a ^ d) (b ^ d) (sourceMultiplier_contDiff ha hd) m | |
| 687 | - let Q := ((min 1 d⁻¹) ^ p)⁻¹ | |
| 688 | - have hQ : 0 ≤ Q := (inv_pos.mpr (pow_pos (lt_min zero_lt_one (inv_pos.mpr hd)) p)).le | |
| 689 | - refine ⟨KM * KC * Q, mul_nonneg (mul_nonneg hKM hKC) hQ, ?_⟩ | |
| 690 | - intro g hg A hA hsource z hz j hj | |
| 691 | - have hr := inverseChart_mem ha hab hd hz | |
| 692 | - have hw : 0 ≤ logWeight cL cR a b p (inverseChart d a z.1) := | |
| 693 | - (weight_pos cL cR p (logPosition_mem ha hr)).le | |
| 694 | - have hcomp (i : ℕ) (hi : i ≤ m) : | |
| 695 | - ‖iteratedFDeriv ℝ i (g ∘ liftChart (inverseChart d a)) z‖ ≤ | |
| 696 | - KC * (A * logWeight cL cR a b p (inverseChart d a z.1)) := | |
| 697 | - hbC g hg z ⟨hz.1.le, hz.2.le⟩ _ (mul_nonneg hA hw) | |
| 698 | - (fun k hk => hsource k hk _ hr z.2) i hi | |
| 699 | - have hmul := hbM (g ∘ liftChart (inverseChart d a)) | |
| 700 | - (hg.comp (liftChart_contDiff (inverseChart_contDiff ha d))) z ⟨hz.1.le, hz.2.le⟩ | |
| 701 | - (KC * (A * logWeight cL cR a b p (inverseChart d a z.1))) | |
| 702 | - (mul_nonneg hKC (mul_nonneg hA hw)) hcomp j hj | |
| 703 | - change ‖iteratedFDeriv ℝ j (normalizeSource d a g) z‖ ≤ | |
| 704 | - KM * (KC * (A * logWeight cL cR a b p (inverseChart d a z.1))) at hmul | |
| 705 | - have hweight := logWeight_power_reverse ha hd hr cL cR p | |
| 706 | - rw [inverseChart_rpow ha hd hz.1.le] at hweight | |
| 707 | - calc | |
| 708 | - _ ≤ KM * (KC * (A * logWeight cL cR a b p (inverseChart d a z.1))) := hmul | |
| 709 | - _ ≤ KM * (KC * (A * (Q * logWeight (d ^ 2 * cL) (d ^ 2 * cR) (a ^ d) (b ^ d) p z.1))) := | |
| 710 | - mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_left | |
| 711 | - (mul_le_mul_of_nonneg_left hweight hA) hKC) hKM | |
| 712 | - _ = (KM * KC * Q) * A * logWeight (d ^ 2 * cL) (d ^ 2 * cR) (a ^ d) (b ^ d) p z.1 := by ring | |
| 713 | - | |
| 714 | 675 | variable [CompleteSpace V] |
| 715 | 676 | |
| 716 | -/-- The complete physical inverse preserves the original exponential weight | |
| 717 | -and the same finite inverse-edge degree. All constants precede the arbitrary | |
| 718 | -transport shift, source, amplitude, and evaluation point. -/ | |
| 719 | -theorem physicalCompact_finiteJets_uniform {a b d cL cR : ℝ} | |
| 720 | - (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) (p m : ℕ) : | |
| 721 | - ∃ K : ℝ, 0 ≤ K ∧ ∀ (M : ℝ) (v : E) (g : ℝ × E → V), ContDiff ℝ ∞ g → | |
| 722 | - RadialAlias.RadiallySupported a b g → ∀ A : ℝ, 0 ≤ A → | |
| 723 | - (∀ j : ℕ, j ≤ m → ∀ R ∈ Ioo a b, ∀ Y : E, | |
| 724 | - ‖iteratedFDeriv ℝ j g (R, Y)‖ ≤ A * logWeight cL cR a b p R) → | |
| 725 | - ∀ z : ℝ × E, z.1 ∈ Ioo a b → ∀ j : ℕ, j ≤ m → | |
| 726 | - ‖iteratedFDeriv ℝ j (physicalCompact d a b M v g) z‖ ≤ | |
| 727 | - K * A * logWeight cL cR a b p z.1 := by | |
| 728 | - have haU : 0 < a ^ d := Real.rpow_pos_of_pos ha d | |
| 729 | - have habU : a ^ d < b ^ d := Real.rpow_lt_rpow ha.le hab hd | |
| 730 | - have hcLU : 0 < d ^ 2 * cL := mul_pos (sq_pos_of_pos hd) hcL | |
| 731 | - have hcRU : 0 < d ^ 2 * cR := mul_pos (sq_pos_of_pos hd) hcR | |
| 732 | - obtain ⟨KN, hKN, hbN⟩ := normalizeSource_finiteJets_uniform (E := E) (V := V) ha hab hd cL cR p m | |
| 733 | - obtain ⟨KT, hKT, hbT⟩ := canonical_transport_finiteJets_uniform (E := E) (V := V) haU habU hcLU hcRU p m | |
| 734 | - obtain ⟨KP, hKP, hbP⟩ := radial_comp_finiteJets_uniform (E := E) (V := V) a b | |
| 735 | - (powerChart_contDiff ha d) m | |
| 736 | - let Q := ((min 1 d) ^ p)⁻¹ | |
| 737 | - have hQ : 0 ≤ Q := (inv_pos.mpr (pow_pos (lt_min zero_lt_one hd) p)).le | |
| 738 | - refine ⟨KP * KT * KN * Q, mul_nonneg (mul_nonneg (mul_nonneg hKP hKT) hKN) hQ, ?_⟩ | |
| 739 | - intro M v g hg hs A hA hsource z hz j hj | |
| 740 | - have hnf := normalizeSource_contDiff ha hd hg | |
| 741 | - have hns := normalizeSource_supported ha hab hd hs | |
| 742 | - have hnsource : ∀ i : ℕ, i ≤ m → ∀ U ∈ Ioo (a ^ d) (b ^ d), ∀ Y : E, | |
| 743 | - ‖iteratedFDeriv ℝ i (normalizeSource d a g) (U, Y)‖ ≤ | |
| 744 | - (KN * A) * logWeight (d ^ 2 * cL) (d ^ 2 * cR) (a ^ d) (b ^ d) p U := | |
| 745 | - fun i hi U hU Y => hbN g hg A hA hsource (U, Y) hU i hi | |
| 746 | - let F := TransportPrimitive.compactIntegral (TransportPrimitive.interiorCutoff (a ^ d) (b ^ d)) | |
| 747 | - M v (normalizeSource d a g) | |
| 748 | - have hF : ContDiff ℝ ∞ F := TransportPrimitive.compactIntegral_contDiff | |
| 749 | - (TransportPrimitive.interiorCutoff_contDiff _ _) hnf hns | |
| 750 | - have hU := powerChart_mem ha hd hz | |
| 751 | - have hwU : 0 ≤ logWeight (d ^ 2 * cL) (d ^ 2 * cR) (a ^ d) (b ^ d) p (powerChart d a z.1) := | |
| 752 | - (weight_pos _ _ p (logPosition_mem haU hU)).le | |
| 753 | - have ht (i : ℕ) (hi : i ≤ m) : | |
| 754 | - ‖iteratedFDeriv ℝ i F (liftChart (powerChart d a) z)‖ ≤ | |
| 755 | - KT * (KN * A) * logWeight (d ^ 2 * cL) (d ^ 2 * cR) (a ^ d) (b ^ d) p (powerChart d a z.1) := | |
| 756 | - hbT M v _ hnf hns (KN * A) (mul_nonneg hKN hA) hnsource _ hU i hi | |
| 757 | - have hp := hbP F hF z ⟨hz.1.le, hz.2.le⟩ | |
| 758 | - (KT * (KN * A) * logWeight (d ^ 2 * cL) (d ^ 2 * cR) (a ^ d) (b ^ d) p (powerChart d a z.1)) | |
| 759 | - (mul_nonneg (mul_nonneg hKT (mul_nonneg hKN hA)) hwU) ht j hj | |
| 760 | - change ‖iteratedFDeriv ℝ j (physicalCompact d a b M v g) z‖ ≤ | |
| 761 | - KP * (KT * (KN * A) * logWeight (d ^ 2 * cL) (d ^ 2 * cR) (a ^ d) (b ^ d) p (powerChart d a z.1)) at hp | |
| 762 | - rw [powerChart_eq ha (show a / 2 ≤ z.1 by linarith [hz.1]) d] at hp | |
| 763 | - have hw := logWeight_power_forward ha hd hz cL cR p | |
| 764 | - calc | |
| 765 | - _ ≤ KP * (KT * (KN * A) * logWeight (d ^ 2 * cL) (d ^ 2 * cR) (a ^ d) (b ^ d) p (z.1 ^ d)) := hp | |
| 766 | - _ ≤ KP * (KT * (KN * A) * (Q * logWeight cL cR a b p z.1)) := | |
| 767 | - mul_le_mul_of_nonneg_left | |
| 768 | - (mul_le_mul_of_nonneg_left hw (mul_nonneg hKT (mul_nonneg hKN hA))) hKP | |
| 769 | - _ = (KP * KT * KN * Q) * A * logWeight cL cR a b p z.1 := by ring | |
| 770 | - | |
| 771 | -/-- The physical/chart inverse maps the concrete all-jet mean class to itself. | |
| 772 | -The input and output weights are exactly the same logarithmic exponential. -/ | |
| 773 | -theorem meanClass_physicalCompact {a b d cL cR : ℝ} | |
| 774 | - (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) | |
| 775 | - (ε S : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hS : ∀ n, 1 ≤ S n) | |
| 776 | - (α : ℝ) (M : ℕ → ℝ) (v : ℕ → E) (g : ℕ → ℝ × E → V) | |
| 777 | - (hg : ∀ n, ContDiff ℝ ∞ (g n)) (hs : ∀ n, RadialAlias.RadiallySupported a b (g n)) | |
| 778 | - (hclass : WeightedClasses.MeanClass | |
| 779 | - (logStripData a b cL cR ha hcL hcR ε S hε hεone hS) α g) : | |
| 780 | - WeightedClasses.MeanClass (logStripData a b cL cR ha hcL hcR ε S hε hεone hS) α | |
| 781 | - (fun n => physicalCompact d a b (M n) (v n) (g n)) := by | |
| 782 | - refine ⟨hclass.weight_nonneg, ?_, ?_⟩ | |
| 783 | - · exact fun n => (physicalCompact_contDiff ha hab hd (hg n) (hs n) (M n) (v n)).contDiffOn | |
| 784 | - · intro m | |
| 785 | - obtain ⟨C, hC, p, hsource⟩ := hclass.bounds m | |
| 786 | - obtain ⟨K, hK, hbound⟩ := physicalCompact_finiteJets_uniform (E := E) (V := V) | |
| 787 | - ha hab hd hcL hcR p m | |
| 788 | - refine ⟨K * C, mul_nonneg hK hC, p, ?_⟩ | |
| 789 | - intro n z hz j hj | |
| 790 | - change z.1 ∈ Ioo a b at hz | |
| 791 | - have hA : 0 ≤ C * (ε n) ^ α * (S n) ^ p := | |
| 792 | - mul_nonneg (mul_nonneg hC (Real.rpow_pos_of_pos (hε n) α).le) | |
| 793 | - (pow_nonneg (zero_le_one.trans (hS n)) p) | |
| 794 | - have hinput : ∀ i : ℕ, i ≤ m → ∀ R ∈ Ioo a b, ∀ Y : E, | |
| 795 | - ‖iteratedFDeriv ℝ i (g n) (R, Y)‖ ≤ | |
| 796 | - (C * (ε n) ^ α * (S n) ^ p) * logWeight cL cR a b p R := by | |
| 797 | - intro i hi R hR Y | |
| 798 | - have hpnt := hsource n (R, Y) hR i hi | |
| 799 | - rw [logStrip_majorant_eq ha hcL hcR ε S hε hεone hS α C p n (R, Y) hR] at hpnt | |
| 800 | - exact hpnt | |
| 801 | - have hout := hbound (M n) (v n) (g n) (hg n) (hs n) | |
| 802 | - (C * (ε n) ^ α * (S n) ^ p) hA hinput z hz j hj | |
| 803 | - rw [logStrip_majorant_eq ha hcL hcR ε S hε hεone hS α (K * C) p n z hz] | |
| 804 | - simpa only [mul_assoc] using hout | |
| 805 | - | |
| 806 | 677 | end Weighted |
| 807 | 678 | |
| 808 | 679 | end NavierStokes.RadialPullback |
+5 −5 NavierStokes/ReservedPatches.lean View file
| @@ -222,7 +222,7 @@ theorem xAmplitude_contDiff (F : Profile) (XR : ℝ) : ContDiff ℝ ∞ (xAmplit | ||
| 222 | 222 | theorem xAmplitude_shape (F : Profile) (XR eta : ℝ) : |
| 223 | 223 | xAmplitude F XR eta = xAmplitude F XR 0 / (1 + eta ^ 2) := by |
| 224 | 224 | simp only [xAmplitude, OutgoingSchedule.shape, ne_eq, OfNat.ofNat_ne_zero, not_false_eq_true, |
| 225 | - zero_pow, add_zero, inv_one, mul_one, div_eq_mul_inv] | |
| 225 | + zero_pow, add_zero, inv_one, div_eq_mul_inv] | |
| 226 | 226 | ring |
| 227 | 227 | |
| 228 | 228 | theorem clean_E_shaped (F : Profile) (XR eta X : ℝ) (hXR : 0 < XR) (hX : 0 < X) |
| @@ -318,9 +318,9 @@ theorem radial_support_margins (F : Profile) (XR : ℝ) (hXR : 0 < XR) (s : Slot | ||
| 318 | 318 | have ha := left_pos F XR hXR s |
| 319 | 319 | have hb := ha.trans hl |
| 320 | 320 | have hc := hb.trans hm |
| 321 | - exact ⟨Real.sqrt_lt_sqrt (by positivity) (by nlinarith), | |
| 322 | - Real.sqrt_lt_sqrt (by positivity) (by nlinarith), | |
| 323 | - Real.sqrt_lt_sqrt (by positivity) (by nlinarith)⟩ | |
| 321 | + exact ⟨Real.sqrt_lt_sqrt (by positivity) (by linarith), | |
| 322 | + Real.sqrt_lt_sqrt (by positivity) (by linarith), | |
| 323 | + Real.sqrt_lt_sqrt (by positivity) (by linarith)⟩ | |
| 324 | 324 | |
| 325 | 325 | theorem radialSupportLeft_pos (F : Profile) (XR : ℝ) (hXR : 0 < XR) (s : Slot) : |
| 326 | 326 | 0 < radialSupportLeft F XR s := |
| @@ -338,7 +338,7 @@ theorem square_half_mem_Ioo {a b R : ℝ} (ha : 0 < a) | ||
| 338 | 338 | have hr := (sq_lt_sq₀ hRp.le (Real.sqrt_nonneg (2 * b))).mpr hR.2 |
| 339 | 339 | rw [Real.sq_sqrt (by positivity)] at hl |
| 340 | 340 | rw [Real.sq_sqrt (by positivity)] at hr |
| 341 | - constructor <;> nlinarith | |
| 341 | + constructor <;> linarith | |
| 342 | 342 | |
| 343 | 343 | theorem radial_mem_window (F : Profile) (XR : ℝ) (hXR : 0 < XR) (s : Slot) |
| 344 | 344 | {R : ℝ} (hR : R ∈ radialWindow F XR s) : R ^ 2 / 2 ∈ window F XR s := |
+2 −4 NavierStokes/ResidualCalculus.lean View file
| @@ -36,8 +36,7 @@ theorem spatialDerivative_add | ||
| 36 | 36 | (hu : DifferentiableAt ℝ (fun y : Space => u (t, y)) x) |
| 37 | 37 | (he : DifferentiableAt ℝ (fun y : Space => e (t, y)) x) : |
| 38 | 38 | spatialDerivative (fun z => u z + e z) t x = |
| 39 | - spatialDerivative u t x + spatialDerivative e t x := by | |
| 40 | - exact fderiv_fun_add hu he | |
| 39 | + spatialDerivative u t x + spatialDerivative e t x := fderiv_fun_add hu he | |
| 41 | 40 | |
| 42 | 41 | /-- Pressure-gradient additivity follows from derivative additivity and the |
| 43 | 42 | fixed Euclidean coordinate basis in the PDE target. -/ |
| @@ -69,8 +68,7 @@ theorem advection_add | ||
| 69 | 68 | theorem spatialDerivative_const_smul |
| 70 | 69 | (u : VelocityField) (t : ℝ) (x : Space) (c : ℝ) |
| 71 | 70 | (hu : DifferentiableAt ℝ (fun y : Space => u (t, y)) x) : |
| 72 | - spatialDerivative (fun z => c • u z) t x = c • spatialDerivative u t x := by | |
| 73 | - exact fderiv_fun_const_smul hu c | |
| 71 | + spatialDerivative (fun z => c • u z) t x = c • spatialDerivative u t x := fderiv_fun_const_smul hu c | |
| 74 | 72 | |
| 75 | 73 | /-- Constant-scalar linearity of divergence, using coordinate evaluation. -/ |
| 76 | 74 | theorem spatialDivergence_const_smul |
+3 −4 NavierStokes/ScaledParticularFrameJets.lean View file
| @@ -29,8 +29,7 @@ variable {ι Q : Type} [NormedAddCommGroup Q] [NormedSpace ℝ Q] | ||
| 29 | 29 | {U : Domain ι (Q × ℝ)} {d : ι → PrimaryODE.FrameData Q} |
| 30 | 30 | |
| 31 | 31 | theorem frame_normal_jets (h : FrameJets U d) : |
| 32 | - PolynomialJets U (fun i => (d i).normal) := by | |
| 33 | - exact ((h.beta.mul h.rho).pair (h.beta.smul h.K)).clm MovingFrameODE.packCLM | |
| 32 | + PolynomialJets U (fun i => (d i).normal) := ((h.beta.mul h.rho).pair (h.beta.smul h.K)).clm MovingFrameODE.packCLM | |
| 34 | 33 | |
| 35 | 34 | theorem frame_motion_jets (h : FrameJets U d) : |
| 36 | 35 | PolynomialJets U (fun i => (d i).normalMotion) := by |
| @@ -157,7 +156,7 @@ theorem frame_field_native_jets {E : Type} [NormedAddCommGroup E] [NormedSpace | ||
| 157 | 156 | apply (argumentLinear_norm χ (g l n)).trans |
| 158 | 157 | have hs := one_le_pow₀ (s.one_le_slow n) (n := a) |
| 159 | 158 | have hp := mul_le_mul_of_nonneg_left hs (norm_nonneg χ) |
| 160 | - nlinarith [hgeometry l n] | |
| 159 | + linarith [hgeometry l n] | |
| 161 | 160 | have hj := polynomial_native_jets (CommonCoverClass.sourceStrip s) hf |
| 162 | 161 | (ScaledActualParticularControl.patch s F χ φ clock g r) |
| 163 | 162 | (fun l n => argumentLinear χ (g l n)) (fun l n k => (0,(g l n).coordinates k 0 |>.2)) |
| @@ -229,7 +228,7 @@ theorem native_normal_eq_scaled (source : Label → ℕ → P × Plane → Space | ||
| 229 | 228 | change (transportedFrame (F.frame (l,n)) (φ (l,n)) 0 (clock.value l n) (normal.value l n)).normal |
| 230 | 229 | (argument χ (g l n) k x) = _ |
| 231 | 230 | rw [transported_normal] |
| 232 | - simp only [argument, zero_add] | |
| 231 | + simp only [zero_add] | |
| 233 | 232 | congr 1 |
| 234 | 233 | exact selected_frame_normal_eq F ⟨hx.1.2.1, |
| 235 | 234 | F.interval (l,n) (ScaledActualParticularControl.clock_mem F clock ⟨hx.1.2.2.1.le,hx.1.2.2.2.le⟩)⟩ |
+6 −6 NavierStokes/SignedCopyBounds.lean View file
| @@ -355,7 +355,7 @@ theorem local_signed_quotient_zero (hw : ∀ n x, x ∈ s.domain → 0 < w n x) | ||
| 355 | 355 | (Real.sqrt_nonneg _)) (pow_le_pow_right₀ hB (by omega)) |
| 356 | 356 | (pow_nonneg (zero_le_one.trans hB) _) |
| 357 | 357 | (mul_nonneg (Real.sqrt_nonneg _) (SignedCovariance.prefixJetCost_pos m).le) |
| 358 | - _ = _ := by simp only [majorant, Real.rpow_zero, mul_one, mul_pow, pow_mul]; ring | |
| 358 | + _ = _ := by simp only [majorant, Real.rpow_zero, mul_one, pow_mul]; ring | |
| 359 | 359 | |
| 360 | 360 | theorem local_signed_quotient {β : ℝ} (hw : ∀ n x, x ∈ s.domain → 0 < w n x) |
| 361 | 361 | (hg : LocalJets s w 0 K g) (hr : LocalJets s w β K r) |
| @@ -447,17 +447,17 @@ theorem weights_jets {R : I → ℕ → D → Vec2} {w : ℕ → D → ℝ} {β | ||
| 447 | 447 | have hB := mul_le_mul (h.entries n i x hx hi 0 1) (h.entries n i x hx hi 1 0) |
| 448 | 448 | (abs_nonneg _) (zero_le_one.trans h.entry_one) |
| 449 | 449 | simp only [abs_mul] at hA hB ⊢ |
| 450 | - nlinarith | |
| 450 | + linarith | |
| 451 | 451 | have hinv := local_inv hD h.gap_pos h.determinant hupper |
| 452 | 452 | have hscale := local_coeff_mul (local_coeff_mul hr hr h1) hinv h1 |
| 453 | 453 | have hprod (a b k : Fin 2) := local_coeff_mul (h.matrix_jets a b) (hR k) hw |
| 454 | 454 | have hnum : LocalJets s w β K (fun n i x => SmoothCovariance.cramerNumerator (H i n x) (R i n x) j) := by |
| 455 | 455 | fin_cases j |
| 456 | 456 | · have hh := local_sub (hprod 1 1 0) (hprod 0 1 1) hw |
| 457 | - simp only [SmoothCovariance.cramerNumerator, mul_comm] at hh ⊢ | |
| 457 | + simp only [mul_comm] at hh ⊢ | |
| 458 | 458 | exact hh |
| 459 | 459 | · have hh := local_sub (hprod 0 0 1) (hprod 1 0 0) hw |
| 460 | - simp only [SmoothCovariance.cramerNumerator, mul_comm] at hh ⊢ | |
| 460 | + simp only [mul_comm] at hh ⊢ | |
| 461 | 461 | exact hh |
| 462 | 462 | apply local_congr (local_coeff_mul hscale hnum hw) |
| 463 | 463 | intro n i x hx hi |
| @@ -500,7 +500,7 @@ theorem signedScalar_jets (h : NativeCovariance s K H T) | ||
| 500 | 500 | have he := local_band_smul hh (bandBound_rpow s (1 / 2)) (fun _ _ _ => Real.sqrt_nonneg _) |
| 501 | 501 | apply local_of_eq he |
| 502 | 502 | intro n i x |
| 503 | - simp only [SignedWaveUpdate.signedScalar, smul_eq_mul, ← Real.sqrt_eq_rpow] | |
| 503 | + simp only [SignedWaveUpdate.signedScalar, ← Real.sqrt_eq_rpow] | |
| 504 | 504 | ring |
| 505 | 505 | |
| 506 | 506 | theorem signedVector_jets (h : NativeCovariance s K H T) |
| @@ -512,7 +512,7 @@ theorem signedVector_jets (h : NativeCovariance s K H T) | ||
| 512 | 512 | (fun n i => SignedWaveUpdate.signedVector s (H i) (T i) (R i) (mask i) (v i) j n) := by |
| 513 | 513 | have hh := (signedScalar_jets h hR hm j).bilinear hv (ContinuousLinearMap.lsmul ℝ ℝ) |
| 514 | 514 | (fun _ _ _ => Real.sqrt_nonneg _) hW |
| 515 | - simp only [add_zero, ContinuousLinearMap.lsmul_apply] at hh ⊢ | |
| 515 | + simp only [add_zero] at hh ⊢ | |
| 516 | 516 | exact hh |
| 517 | 517 | |
| 518 | 518 | end SignedAmplitude |
+2 −2 NavierStokes/SignedStressPrimitive.lean View file
| @@ -450,7 +450,7 @@ theorem physical_angular_divergence (P : Patch) {q : E → ℝ} | ||
| 450 | 450 | calc |
| 451 | 451 | _ = 2 * r * physicalSigma P 2 q F (r, p) + |
| 452 | 452 | r ^ 2 * deriv (fun t => physicalSigma P 2 q F (t, p)) r := by field_simp ; ring |
| 453 | - _ = _ := by nlinarith [he] | |
| 453 | + _ = _ := by linarith [he] | |
| 454 | 454 | |
| 455 | 455 | theorem physical_axial_divergence (P : Patch) {q : E → ℝ} |
| 456 | 456 | (hq : ContDiff ℝ ∞ q) (hpos : ∀ p, 0 < q p) {F : ℝ × E → ℝ} |
| @@ -467,7 +467,7 @@ theorem physical_axial_divergence (P : Patch) {q : E → ℝ} | ||
| 467 | 467 | calc |
| 468 | 468 | _ = physicalSigma P 1 q F (r, p) + r * deriv (fun t => physicalSigma P 1 q F (t, p)) r := by |
| 469 | 469 | field_simp ; ring |
| 470 | - _ = _ := by nlinarith [he] | |
| 470 | + _ = _ := by linarith [he] | |
| 471 | 471 | |
| 472 | 472 | noncomputable def physicalBarSigma (P : Patch) (e : ℕ) (q : E → ℝ) |
| 473 | 473 | (F : PressureStream.Lift E → ℝ) : ℝ × E → ℝ := |
+3 −3 NavierStokes/SlowBorelBase.lean View file
| @@ -100,7 +100,7 @@ theorem template_jet_bound_by_joint {f : Inner → V} (hf : ContDiff ℝ ∞ f) | ||
| 100 | 100 | have hG : ContDiff ℝ ∞ G := (jointTemplate_smooth hf b).comp (contDiff_id.add contDiff_const) |
| 101 | 101 | have he : template c b f = G ∘ L := by |
| 102 | 102 | funext z |
| 103 | - simp [G, L, jointTemplate, template] | |
| 103 | + simp [G, L, jointTemplate] | |
| 104 | 104 | rw [he, L.iteratedFDeriv_comp_right hG y |
| 105 | 105 | (ENat.natCast_le_of_coe_top_le_withTop le_rfl m)] |
| 106 | 106 | have hshift : iteratedFDeriv ℝ m G (L y) = |
| @@ -329,7 +329,7 @@ theorem exists_admissibleScales {f : ℕ → Inner → V} | ||
| 329 | 329 | rw [slowStage_eq (by omega)] |
| 330 | 330 | by_cases hactive : (a j : ℝ) * q ≤ 1 |
| 331 | 331 | · have hac : (0 : ℝ) < a j := by exact_mod_cast hapos j |
| 332 | - have hqa : q ≤ 1 / (a j : ℝ) := (le_div_iff₀ hac).2 (by nlinarith) | |
| 332 | + have hqa : q ≤ 1 / (a j : ℝ) := (le_div_iff₀ hac).2 (by linarith) | |
| 333 | 333 | have ht := hC j m ((a j : ℝ) * q) ⟨mul_nonneg hac.le hq.le, hactive⟩ w hw |
| 334 | 334 | refine (powerStage_jet_bound (hf j) (a j) (2 * h * j) hq hq1 |
| 335 | 335 | (hCpos j m).le w m ht).trans ?_ |
| @@ -344,7 +344,7 @@ theorem exists_admissibleScales {f : ℕ → Inner → V} | ||
| 344 | 344 | rw [slowStage_eq (by omega)] |
| 345 | 345 | by_cases hactive : (a j : ℝ) * q ≤ 1 |
| 346 | 346 | · have hac : (0 : ℝ) < a j := by exact_mod_cast hapos j |
| 347 | - have hqa : q ≤ 1 / (a j : ℝ) := (le_div_iff₀ hac).2 (by nlinarith) | |
| 347 | + have hqa : q ≤ 1 / (a j : ℝ) := (le_div_iff₀ hac).2 (by linarith) | |
| 348 | 348 | have ht := hC j m ((a j : ℝ) * q) ⟨mul_nonneg hac.le hq.le, hactive⟩ w hw |
| 349 | 349 | refine (powerStage_blown_bound (hf j) (a j) (2 * h * j) hq w m ht).trans ?_ |
| 350 | 350 | have he : 2 * h * (j : ℝ) = h * j + h * j := by ring |
+1 −1 NavierStokes/SlowFirstOrderEdge.lean View file
| @@ -402,7 +402,7 @@ theorem physicalChi_hasDerivAt_z (d : TailData) {p : PhysicalPoint} (ht : p.1 < | ||
| 402 | 402 | _ = q d.h p ^ (-CoordinateAlgebra.D d.h - CoordinateAlgebra.D d.h) * |
| 403 | 403 | CoordinateAlgebra.axialCoeff (-CoordinateAlgebra.D d.h) d.h (eta d.h p) |
| 404 | 404 | 0 (profileChi d (eta d.h p)) 0 (deriv (profileChi d) (eta d.h p)) := by |
| 405 | - simpa only [Function.comp_apply, Prod.eta, mul_comm, mul_left_comm, mul_assoc] using he | |
| 405 | + simpa only [Function.comp_apply, Prod.eta, mul_left_comm, mul_assoc] using he | |
| 406 | 406 | _ = _ := by |
| 407 | 407 | rw [show -CoordinateAlgebra.D d.h - CoordinateAlgebra.D d.h = |
| 408 | 408 | -2 * CoordinateAlgebra.D d.h by ring] |
+6 −6 NavierStokes/SlowRecursion.lean View file
| @@ -136,7 +136,7 @@ theorem im_iteratedDeriv_zero {S : Set ℝ} (hS : IsOpen S) {f : ℝ → ℂ} | ||
| 136 | 136 | have hv := congrArg (fun L : ℝ [×n]→L[ℝ] ℝ => L (fun _ => 1)) hc.symm |
| 137 | 137 | have hm : (iteratedDeriv n f x).im = iteratedDeriv n (fun t => (f t).im) x := by |
| 138 | 138 | simp only [iteratedFDerivWithin_of_isOpen n hS hx, |
| 139 | - ContinuousLinearMap.compContinuousMultilinearMap_coe, Complex.imCLM_apply, Function.comp_def] at hv | |
| 139 | + ContinuousLinearMap.compContinuousMultilinearMap_coe, Function.comp_def] at hv | |
| 140 | 140 | exact hv |
| 141 | 141 | have he : (fun t => (f t).im) =ᶠ[𝓝 x] (fun _ => (0 : ℝ)) := by |
| 142 | 142 | filter_upwards [hS.mem_nhds hx] with t ht |
| @@ -228,7 +228,7 @@ theorem hasDerivAt_conjugate {f : ℂ → ℂ} {d z : ℂ} | ||
| 228 | 228 | change HasFDerivAt _ ((1 : ℂ →L[ℂ] ℂ).smulRight (starRingEnd ℂ d)) z |
| 229 | 229 | apply hasFDerivAt_of_restrictScalars ℝ hh |
| 230 | 230 | ext v |
| 231 | - simp [J, map_mul] | |
| 231 | + simp [J] | |
| 232 | 232 | |
| 233 | 233 | /-- Reflection gives a holomorphic extension of the actual real trace. -/ |
| 234 | 234 | noncomputable def realSymmetrization (F : Raw) (p : ℝ × ℂ) : ℂ := |
| @@ -378,7 +378,7 @@ noncomputable def denominatorFunction (R : ℝ) (U : Set ℂ) (h : ℝ) : AxisFu | ||
| 378 | 378 | |
| 379 | 379 | theorem denominatorFunction_apply (R : ℝ) (U : Set ℂ) (h : ℝ) (p : ℝ × ℂ) : |
| 380 | 380 | denominatorFunction R U h p = PositiveAxisSystem.ell (h : ℂ) p.2 := by |
| 381 | - simp [denominatorFunction, parameter, realConstant, PositiveAxisSystem.ell] | |
| 381 | + simp [denominatorFunction, parameter, PositiveAxisSystem.ell] | |
| 382 | 382 | |
| 383 | 383 | noncomputable def inverseDenominator {R : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) : |
| 384 | 384 | AxisFunction R U := |
| @@ -439,7 +439,7 @@ theorem timeOperator_value {R : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) | ||
| 439 | 439 | parameterDerivative_value c.positive c.open_set F hX heta, |
| 440 | 440 | SimilarityProfile.T, CoordinateAlgebra.timeCoeff, CoordinateAlgebra.L, |
| 441 | 441 | PositiveAxisSystem.ell, Complex.ofReal_add, Complex.ofReal_sub, |
| 442 | - Complex.ofReal_mul, Complex.ofReal_neg, Complex.ofReal_one, div_eq_mul_inv] | |
| 442 | + Complex.ofReal_mul, Complex.ofReal_neg, div_eq_mul_inv] | |
| 443 | 443 | norm_num [CoordinateAlgebra.D] |
| 444 | 444 | |
| 445 | 445 | theorem axialOperator_value {R : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| @@ -537,7 +537,7 @@ theorem radialSource_value {R : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) | ||
| 537 | 537 | axialOperator_value c _ _ hX heta, shiftedBetaDiffusion_value c _ _ hX heta, |
| 538 | 538 | radialDerivative_value c.positive c.open_set _ hX heta, |
| 539 | 539 | Complex.ofReal_add, Complex.ofReal_sub, Complex.ofReal_mul, Complex.ofReal_sum, |
| 540 | - Complex.ofReal_div, Complex.ofReal_one, Complex.ofReal_ofNat] | |
| 540 | + Complex.ofReal_div, Complex.ofReal_one] | |
| 541 | 541 | simp only [complexProfile_real c.positive _ ⟨hX.1.le, hX.2⟩ heta] |
| 542 | 542 | congr 3 |
| 543 | 543 | · apply Finset.sum_congr rfl |
| @@ -620,7 +620,7 @@ theorem sourceData_real {R : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) | ||
| 620 | 620 | have hd (F : AxisFunction R U) := radialDerivative_value c.positive c.open_set F hX heta |
| 621 | 621 | have he (F : AxisFunction R U) := parameterDerivative_value c.positive c.open_set F hX heta |
| 622 | 622 | fin_cases i <;> |
| 623 | - simp only [sourceData, sourceFunctions, PositiveAxisExistence.lowerHistoryData] | |
| 623 | + simp only [sourceData, PositiveAxisExistence.lowerHistoryData] | |
| 624 | 624 | · exact hv _ |
| 625 | 625 | · exact hd _ |
| 626 | 626 | · exact he _ |
+1 −1 NavierStokes/TemporalMeanUpdate.lean View file
| @@ -166,7 +166,7 @@ theorem coverLinear_temporal : | ||
| 166 | 166 | coverLinear (vector .temporal) = ChartScales.Tg • vector .temporal := by |
| 167 | 167 | rw [coverLinear_apply] |
| 168 | 168 | ext <;> dsimp [TorusAverages.covering, vector, ChartScales.Tg, SlotColoring.coverGrowth] |
| 169 | - · nlinarith [DiophantineGraph.sqrt_two_square] | |
| 169 | + · linarith [DiophantineGraph.sqrt_two_square] | |
| 170 | 170 | · ring |
| 171 | 171 | |
| 172 | 172 | theorem coverMap_temporal (n : ℕ) : |
+10 −10 NavierStokes/UniformAngularReset.lean View file
| @@ -208,7 +208,7 @@ theorem tangent_lower_bound (B : E ≃L[ℝ] E) (A : E →L[ℝ] E →L[ℝ] E) | ||
| 208 | 208 | _ ≤ β * (‖tangent B A c x‖ + (2 * K * r) * ‖x‖) := |
| 209 | 209 | mul_le_mul_of_nonneg_left (add_le_add_right hrem _) hβ |
| 210 | 210 | _ ≤ β * ‖tangent B A c x‖ + (1 / 2 : ℝ) * ‖x‖ := by |
| 211 | - nlinarith [mul_le_mul_of_nonneg_right hsmall (norm_nonneg x)] | |
| 211 | + linarith [mul_le_mul_of_nonneg_right hsmall (norm_nonneg x)] | |
| 212 | 212 | linarith |
| 213 | 213 | |
| 214 | 214 | theorem tangent_invertible [FiniteDimensional ℝ E] |
| @@ -256,7 +256,7 @@ theorem quadratic_solution_distance (B : E ≃L[ℝ] E) (A : E →L[ℝ] E →L[ | ||
| 256 | 256 | _ ≤ β * (‖d - f‖ + (2 * K * r) * ‖c - e‖) := |
| 257 | 257 | mul_le_mul_of_nonneg_left (add_le_add_right hrem _) hβ |
| 258 | 258 | _ ≤ β * ‖d - f‖ + (1 / 2 : ℝ) * ‖c - e‖ := by |
| 259 | - nlinarith [mul_le_mul_of_nonneg_right hsmall (norm_nonneg (c - e))] | |
| 259 | + linarith [mul_le_mul_of_nonneg_right hsmall (norm_nonneg (c - e))] | |
| 260 | 260 | linarith |
| 261 | 261 | |
| 262 | 262 | /-- Contraction uniqueness patches the local smooth inverses throughout one |
| @@ -369,7 +369,7 @@ theorem uniform_reset_branch : | ||
| 369 | 369 | have hε : 0 < ε := div_pos hr (by positivity) |
| 370 | 370 | have hL : 0 < L := mul_pos (by linarith) (by positivity) |
| 371 | 371 | have hLbase : 2 * β ≤ L := by dsimp [L]; nlinarith |
| 372 | - have hLD : D * (2 * β) ≤ L := by dsimp [L]; nlinarith | |
| 372 | + have hLD : D * (2 * β) ≤ L := by dsimp [L]; linarith | |
| 373 | 373 | have hsmall : 4 * β * K * r ≤ 1 := by dsimp [r]; field_simp ; rfl |
| 374 | 374 | refine ⟨ε, L, hε, hL, ?_⟩ |
| 375 | 375 | intro lam hlam |
| @@ -509,7 +509,7 @@ theorem flattened_eq (d : TailData) (y eta : ℝ) : | ||
| 509 | 509 | |
| 510 | 510 | theorem flattenShape_le_one (d : TailData) (y eta : ℝ) : flattenShape d y eta ≤ 1 := by |
| 511 | 511 | apply Real.exp_le_one_iff.mpr |
| 512 | - have hl : 0 ≤ logShape eta := Real.log_nonneg (by nlinarith [sq_nonneg eta]) | |
| 512 | + have hl : 0 ≤ logShape eta := Real.log_nonneg (by linarith [sq_nonneg eta]) | |
| 513 | 513 | have ha := mul_nonpos_of_nonpos_of_nonneg |
| 514 | 514 | (sub_nonpos.mpr (sigma_le_one ((y - d.core.endpoint) / flattenLength))) hl |
| 515 | 515 | have hb := mul_nonneg (sigma_nonneg ((y - d.core.endpoint) / flattenLength)) |
| @@ -547,7 +547,7 @@ theorem flatHistory_bounds (d : TailData) (eta : ℝ) {y : ℝ} (hy : 0 ≤ y) : | ||
| 547 | 547 | · have hs : shape eta ≤ 1 := by |
| 548 | 548 | unfold shape |
| 549 | 549 | apply inv_le_one_of_one_le₀ |
| 550 | - nlinarith [sq_nonneg eta] | |
| 550 | + linarith [sq_nonneg eta] | |
| 551 | 551 | exact mul_le_of_le_one_right (mul_nonneg (by norm_num) d.core.P_pos.le) hs |
| 552 | 552 | · exact intervalIntegral.integral_mono hy ((flatWeight_contDiff d eta).continuous.intervalIntegrable 0 y) |
| 553 | 553 | ((baseWeight_contDiff d).continuous.intervalIntegrable 0 y) (flatWeight_le_base d eta) |
| @@ -587,7 +587,7 @@ theorem logShape_hasDerivAt (eta : ℝ) : | ||
| 587 | 587 | theorem logShape_deriv_bound (eta : ℝ) : |2 * eta / (1 + eta ^ 2)| ≤ 1 := by |
| 588 | 588 | rw [abs_div, abs_mul, abs_of_pos (by positivity : 0 < (2 : ℝ)), abs_of_pos (by positivity : 0 < 1 + eta ^ 2)] |
| 589 | 589 | apply (div_le_one (by positivity : 0 < 1 + eta ^ 2)).mpr |
| 590 | - nlinarith [sq_nonneg (|eta| - 1), sq_abs eta] | |
| 590 | + linarith [sq_nonneg (|eta| - 1), sq_abs eta] | |
| 591 | 591 | |
| 592 | 592 | theorem etaRate_bound (d : TailData) (eta y : ℝ) : |etaRate d eta y| ≤ 1 := by |
| 593 | 593 | unfold etaRate |
| @@ -636,7 +636,7 @@ theorem shape_hasDerivAt (eta : ℝ) : | ||
| 636 | 636 | theorem shape_le_one (eta : ℝ) : shape eta ≤ 1 := by |
| 637 | 637 | unfold shape |
| 638 | 638 | apply inv_le_one_of_one_le₀ |
| 639 | - nlinarith [sq_nonneg eta] | |
| 639 | + linarith [sq_nonneg eta] | |
| 640 | 640 | |
| 641 | 641 | theorem flatHistory_hasDerivAt (d : TailData) (eta y : ℝ) : |
| 642 | 642 | HasDerivAt (fun eta => flatHistory d eta y) |
| @@ -816,7 +816,7 @@ theorem actual_debt_first_jet_bound (d : TailData) (hlam : d.core.lam ≤ 1 / 15 | ||
| 816 | 816 | |deriv (normalizedDebt d) eta| ≤ (3 * Real.exp 3) * d.core.lam ^ (28 : ℕ) := by |
| 817 | 817 | have hb := normalizedDebt_bounds d eta |
| 818 | 818 | have he := decayFactor_le d hlam |
| 819 | - constructor <;> nlinarith [hb.1, hb.2] | |
| 819 | + constructor <;> linarith [hb.1, hb.2] | |
| 820 | 820 | |
| 821 | 821 | theorem finalAngular_before_release (d : TailData) (eta : ℝ) {y : ℝ} |
| 822 | 822 | (hy : y ≤ d.releaseStart) : finalAngular d (y, eta) = flattened d (y, eta) := by |
| @@ -916,12 +916,12 @@ theorem exists_scheduled_reset : | ||
| 916 | 916 | have hδε : C * d.core.lam ^ (28 : ℕ) < ε := by |
| 917 | 917 | apply lt_of_le_of_lt (mul_le_mul_of_nonneg_left (power28_le_self d) hC.le) |
| 918 | 918 | have hlam := lt_of_lt_of_le hd ((min_le_right _ _).trans (min_le_left _ _)) |
| 919 | - nlinarith [(lt_div_iff₀ hC).mp hlam] | |
| 919 | + linarith [(lt_div_iff₀ hC).mp hlam] | |
| 920 | 920 | have hδsmall : L * (C * d.core.lam ^ (28 : ℕ)) ≤ d.core.lam / 4 := by |
| 921 | 921 | have hlam := lt_of_lt_of_le hd ((min_le_right _ _).trans (min_le_right _ _)) |
| 922 | 922 | have hmul := (lt_div_iff₀ (show 0 < 4 * L * C by positivity)).mp hlam |
| 923 | 923 | have hp := mul_le_mul_of_nonneg_left (power28_le_square d) (show 0 ≤ L * C by positivity) |
| 924 | - nlinarith [mul_lt_mul_of_pos_right hmul d.core.lam_pos] | |
| 924 | + linarith [mul_lt_mul_of_pos_right hmul d.core.lam_pos] | |
| 925 | 925 | have hδ : ∀ eta, normalizedDebt d eta ∈ Ioo (-ε) ε := by |
| 926 | 926 | intro eta |
| 927 | 927 | exact abs_lt.mp ((actual_debt_first_jet_bound d hsmall eta).1.trans_lt hδε) |
+1 −1 NavierStokes/UniformCone.lean View file
| @@ -130,7 +130,7 @@ theorem compact_normalized_cone_gap {K : Set X} (hK : IsCompact K) | ||
| 130 | 130 | have hηj : η * j x ^ 2 ≤ ε / 2 := |
| 131 | 131 | (mul_le_mul_of_nonneg_left hjM hη.le).trans_eq hηM |
| 132 | 132 | have hd := (hbounds x hx).2 |
| 133 | - nlinarith | |
| 133 | + linarith | |
| 134 | 134 | obtain ⟨_, p₁, _, hp₁, _, hlarge⟩ := compact_normalized_cone hK hc hj |
| 135 | 135 | (hv.add continuousOn_const) hcpos hshift |
| 136 | 136 | refine ⟨η, max p₁ ((2 + η) / ε), hη, |
+17 −18 NavierStokes/VariableGaugeMean.lean View file
| @@ -256,8 +256,7 @@ theorem physicalPast_fiberLocal (d c M : ℝ) (v : PressureStream.Plane) : | ||
| 256 | 256 | theorem physicalTotal_fiberLocal (d c M : ℝ) (v : PressureStream.Plane) : |
| 257 | 257 | PhysicalMeanDomain.FiberLocal (PressureStream.physicalTotal d c M ((0 : S), v)) := by |
| 258 | 258 | intro f g s he r Y |
| 259 | - simp [PressureStream.physicalTotal, TransportPrimitive.totalIntegral, TransportPrimitive.shift, | |
| 260 | - RadialPullback.normalizeSource, RadialPullback.liftChart, he] | |
| 259 | + simp [PressureStream.physicalTotal, TransportPrimitive.totalIntegral, RadialPullback.normalizeSource, RadialPullback.liftChart, he] | |
| 261 | 260 | |
| 262 | 261 | theorem freezeSlow_contDiff {U : Set S} (hU : IsOpen U) {s : S} (hs : s ∈ U) |
| 263 | 262 | {f : PressureStream.Lift S → ℝ} (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U)) : |
| @@ -946,10 +945,10 @@ theorem normalizeSource_gauge_finiteJets {c e a b d : ℝ} | ||
| 946 | 945 | have hlp := Real.rpow_pos_of_pos hl d |
| 947 | 946 | have hlaz : (l * a) ^ d < z.1 := by |
| 948 | 947 | rw [Real.mul_rpow hl.le ha.le] |
| 949 | - nlinarith [(lt_div_iff₀ hlp).mp hz.1] | |
| 948 | + linarith [(lt_div_iff₀ hlp).mp hz.1] | |
| 950 | 949 | have hlbz : z.1 < (l * b) ^ d := by |
| 951 | 950 | rw [Real.mul_rpow hl.le (ha.trans hab).le] |
| 952 | - nlinarith [(div_lt_iff₀ hlp).mp hz.2] | |
| 951 | + linarith [(div_lt_iff₀ hlp).mp hz.2] | |
| 953 | 952 | have hzce : z.1 ∈ Ioo (c ^ d) (e ^ d) := |
| 954 | 953 | ⟨(Real.rpow_le_rpow hc.le hca hd.le).trans_lt hlaz, |
| 955 | 954 | hlbz.trans_le (Real.rpow_le_rpow (mul_pos hl (ha.trans hab)).le hbe hd.le)⟩ |
| @@ -961,7 +960,7 @@ theorem normalizeSource_gauge_finiteJets {c e a b d : ℝ} | ||
| 961 | 960 | have hrb : inverseChart d c z.1 < l * b := |
| 962 | 961 | (Real.rpow_lt_rpow_iff hrp.le (mul_pos hl (ha.trans hab)).le hd).mp (by simpa only [hrpow] using hlbz) |
| 963 | 962 | have hr : inverseChart d c z.1 / l ∈ Ioo a b := |
| 964 | - ⟨(lt_div_iff₀ hl).mpr (by nlinarith), (div_lt_iff₀ hl).mpr (by nlinarith)⟩ | |
| 963 | + ⟨(lt_div_iff₀ hl).mpr (by linarith), (div_lt_iff₀ hl).mpr (by linarith)⟩ | |
| 965 | 964 | have hratio : (inverseChart d c z.1 / l) ^ d = z.1 / l ^ d := by |
| 966 | 965 | rw [Real.div_rpow hrp.le hl.le, hrpow] |
| 967 | 966 | have hw : 0 ≤ logWeight cL cR a b p (inverseChart d c z.1 / l) := |
| @@ -1110,8 +1109,8 @@ theorem transportGauge_finiteJets {c e a b cL cR L : ℝ} (hce : c < e) | ||
| 1110 | 1109 | (mul_le_mul_of_nonneg_left (hweight _ (logPosition_mem ha hp)) hA) |
| 1111 | 1110 | · have hp' : R ∉ Ioo (ell z.2.1 * a) (ell z.2.1 * b) := by |
| 1112 | 1111 | intro h |
| 1113 | - exact hp ⟨(lt_div_iff₀ (hl _ hz)).mpr (by nlinarith [h.1]), | |
| 1114 | - (div_lt_iff₀ (hl _ hz)).mpr (by nlinarith [h.2])⟩ | |
| 1112 | + exact hp ⟨(lt_div_iff₀ (hl _ hz)).mpr (by linarith [h.1]), | |
| 1113 | + (div_lt_iff₀ (hl _ hz)).mpr (by linarith [h.2])⟩ | |
| 1115 | 1114 | rw [iteratedFDeriv_zero_outsideGauge (z := (R, (z.2.1, Y))) |
| 1116 | 1115 | hU hell.continuousOn hf hsg hz hp' i, norm_zero] |
| 1117 | 1116 | exact mul_nonneg hA hW |
| @@ -1177,9 +1176,9 @@ theorem transportGauge_finiteJets {c e a b cL cR L : ℝ} (hce : c < e) | ||
| 1177 | 1176 | have hmid : massK * A + (2 : ℝ) ^ m * B * (massK * A) ≤ midK * (1 + B) * A * δ := by |
| 1178 | 1177 | dsimp [midK] |
| 1179 | 1178 | have hpow : 0 ≤ (2 : ℝ) ^ m := by positivity |
| 1180 | - have : 1 + (2 : ℝ) ^ m * B ≤ (1 + (2 : ℝ) ^ m) * (1 + B) := by nlinarith | |
| 1179 | + have : 1 + (2 : ℝ) ^ m * B ≤ (1 + (2 : ℝ) ^ m) * (1 + B) := by linarith | |
| 1181 | 1180 | field_simp [hδ.ne'] |
| 1182 | - nlinarith [mul_nonneg (mul_nonneg hmassK hA) (sub_nonneg.mpr this)] | |
| 1181 | + linarith [mul_nonneg (mul_nonneg hmassK hA) (sub_nonneg.mpr this)] | |
| 1183 | 1182 | exact (hb.trans hmid).trans ((mul_le_mul_of_nonneg_left hw |
| 1184 | 1183 | (mul_nonneg (mul_nonneg hmidK (by positivity)) hA)).trans |
| 1185 | 1184 | (mul_le_mul_of_nonneg_right |
| @@ -1220,7 +1219,7 @@ theorem cutoff_eq_normalizedCutoff {c a b d : ℝ} (hc : 0 < c) (ha : 0 < a) | ||
| 1220 | 1219 | (hleft : c ≤ ell z.2.1 * a) (hR : z.1 / ell z.2.1 ∈ Ioo a b) : |
| 1221 | 1220 | cutoff d a b ell z = normalizedCutoff (a ^ d) (b ^ d) (fun s => ell s ^ d) |
| 1222 | 1221 | (liftChart (powerChart d c) z) := by |
| 1223 | - have hr : c < z.1 := hleft.trans_lt (by nlinarith [(lt_div_iff₀ hl).mp hR.1]) | |
| 1222 | + have hr : c < z.1 := hleft.trans_lt (by linarith [(lt_div_iff₀ hl).mp hR.1]) | |
| 1224 | 1223 | have hratio : 0 < z.1 / ell z.2.1 := ha.trans hR.1 |
| 1225 | 1224 | simp only [cutoff, radialRatio, physicalCutoff, normalizedCutoff, liftChart] |
| 1226 | 1225 | rw [powerChart_eq ha (by linarith [hR.1]) d, powerChart_eq hc (by linarith) d, |
| @@ -1361,9 +1360,9 @@ theorem compactPrimitive_q_finiteJets_global {coord a b c e d cL cR L : ℝ} | ||
| 1361 | 1360 | have hQ : 0 ≤ Q := (inv_pos.mpr (pow_pos (lt_min zero_lt_one hd) p)).le |
| 1362 | 1361 | refine ⟨KP * KT * (1 + B) * KN * Q, by positivity, ?_⟩ |
| 1363 | 1362 | intro M v f hf hs hsg A hA z hz hR hin j hj |
| 1364 | - have hrleft : c < z.1 := (hleft _ hz).trans_lt (by nlinarith [(lt_div_iff₀ (hl _ hz)).mp hR.1]) | |
| 1363 | + have hrleft : c < z.1 := (hleft _ hz).trans_lt (by linarith [(lt_div_iff₀ (hl _ hz)).mp hR.1]) | |
| 1365 | 1364 | have hrright : z.1 < e := (show z.1 < qLength coord z.2.1 * b by |
| 1366 | - nlinarith [(div_lt_iff₀ (hl _ hz)).mp hR.2]).trans_le (hright _ hz) | |
| 1365 | + linarith [(div_lt_iff₀ (hl _ hz)).mp hR.2]).trans_le (hright _ hz) | |
| 1367 | 1366 | have hrpow : powerChart d c z.1 = z.1 ^ d := powerChart_eq hc (by linarith) d |
| 1368 | 1367 | let zU := liftChart (powerChart d c) z |
| 1369 | 1368 | have hzU : zU.1 ∈ Icc (c ^ d) (e ^ d) := by |
| @@ -1541,7 +1540,7 @@ theorem meanClass_moving_localBandJets {α : ℝ} {f : ℕ → Point → ℝ} | ||
| 1541 | 1540 | exact (h.trans (mul_le_mul_of_nonneg_left (hweight _ (logPosition_mem ha hR)) hA)).trans_eq (by ring) |
| 1542 | 1541 | · have hR' : z.1 ∉ Ioo (qLength coord z.2.1 * a) (qLength coord z.2.1 * b) := by |
| 1543 | 1542 | intro h |
| 1544 | - exact hR ⟨(lt_div_iff₀ hp).mpr (by nlinarith [h.1]), (div_lt_iff₀ hp).mpr (by nlinarith [h.2])⟩ | |
| 1543 | + exact hR ⟨(lt_div_iff₀ hp).mpr (by linarith [h.1]), (div_lt_iff₀ hp).mpr (by linarith [h.2])⟩ | |
| 1545 | 1544 | have hell : ContinuousOn (qLength coord) U.carrier := |
| 1546 | 1545 | ((qLength_contDiffOn U.coord_pos U.coord_lt_one).mono (fun s hs => U.time_pos s hs)).continuousOn |
| 1547 | 1546 | rw [iteratedFDeriv_zero_outsideGauge_on U.isOpen hell (hf n) (hs n) hz hR' j, norm_zero] |
| @@ -1776,8 +1775,8 @@ theorem localBandJets_meanClass_of_gaugeInteriorSupport {c e α : ℝ} | ||
| 1776 | 1775 | _ = _ := rfl |
| 1777 | 1776 | · have hr : z.1 ∉ Ioo (qLength coord z.2.1 * c) (qLength coord z.2.1 * e) := by |
| 1778 | 1777 | intro h |
| 1779 | - exact hpi ⟨((lt_div_iff₀ hEll).mpr (by nlinarith [h.1])).le, | |
| 1780 | - ((div_lt_iff₀ hEll).mpr (by nlinarith [h.2])).le⟩ | |
| 1778 | + exact hpi ⟨((lt_div_iff₀ hEll).mpr (by linarith [h.1])).le, | |
| 1779 | + ((div_lt_iff₀ hEll).mpr (by linarith [h.2])).le⟩ | |
| 1781 | 1780 | rw [iteratedFDeriv_zero_outsideGauge_on U.isOpen |
| 1782 | 1781 | ((qLength_contDiffOn U.coord_pos U.coord_lt_one).mono (fun s hs => U.time_pos s hs)).continuousOn |
| 1783 | 1782 | (hf n) (hs n) hzs hr j, norm_zero] |
| @@ -2059,7 +2058,7 @@ theorem compactAlias_reference {c a b d M : ℝ} (hc : 0 < c) (ha : 0 < a) | ||
| 2059 | 2058 | physicalTotal_fiberLocal d (ell z.2.1 * a) M v g f z.2.1 (fun _ _ => rfl) z.1 z.2.2] at h |
| 2060 | 2059 | exact congrArg (fun t : ℝ => cutoffRadialDerivative d a b ell z * t) h.symm |
| 2061 | 2060 | · have hsmall : z.1 / ell z.2.1 < a := |
| 2062 | - (div_lt_iff₀ (hl _ hz)).mpr (by nlinarith [lt_of_not_ge hR]) | |
| 2061 | + (div_lt_iff₀ (hl _ hz)).mpr (by linarith [lt_of_not_ge hR]) | |
| 2063 | 2062 | have he : cutoffRadialDerivative d a b ell z = 0 := by |
| 2064 | 2063 | simp only [cutoffRadialDerivative, radialRatio, deriv_physicalCutoff_zero_left ha hab hd hsmall, mul_zero] |
| 2065 | 2064 | simp only [he, zero_mul] |
| @@ -2127,8 +2126,8 @@ theorem cutoffRadialDerivative_interior_support {a b d : ℝ} (ha : 0 < a) (hab | ||
| 2127 | 2126 | apply hn |
| 2128 | 2127 | dsimp only [cutoffRadialDerivative, radialRatio] |
| 2129 | 2128 | rw [hzeroRight _ hlt, mul_zero] |
| 2130 | - exact ⟨by nlinarith [(le_div_iff₀ (hl _ hz)).mp hprofile.1], | |
| 2131 | - by nlinarith [(div_le_iff₀ (hl _ hz)).mp hprofile.2]⟩ | |
| 2129 | + exact ⟨by linarith [(le_div_iff₀ (hl _ hz)).mp hprofile.1], | |
| 2130 | + by linarith [(div_le_iff₀ (hl _ hz)).mp hprofile.2]⟩ | |
| 2132 | 2131 | |
| 2133 | 2132 | theorem compactAlias_interior_support {a b d : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) : |
| 2134 | 2133 | ∃ c e : ℝ, a < c ∧ c < e ∧ e < b ∧ ∀ (ell : S → ℝ) (U : Set S), |
+4 −4 NavierStokes/ViscousPropagator.lean View file
| @@ -93,7 +93,7 @@ theorem weighted_norm_le_initial_add_integral | ||
| 93 | 93 | convert! (hInv t).hasDerivWithinAt.smul (hode t ht) using 1 |
| 94 | 94 | dsimp [v, F, B] |
| 95 | 95 | simp only [sub_apply, smul_apply, |
| 96 | - ContinuousLinearMap.id_apply, map_smul, smul_add] | |
| 96 | + ContinuousLinearMap.id_apply, map_smul] | |
| 97 | 97 | module |
| 98 | 98 | have hB (t : ℝ) (ht : t ∈ Ico a b) (x : H) : ⟪x, B t x⟫_ℝ ≤ 0 := by |
| 99 | 99 | dsimp [B] |
| @@ -227,13 +227,13 @@ theorem plane_norm_sq (x : Plane) : ‖x‖ ^ 2 = (x 0) ^ 2 + (x 1) ^ 2 := by | ||
| 227 | 227 | |
| 228 | 228 | theorem inner_diagonal (lam : ℝ) (x : Plane) : |
| 229 | 229 | ⟪x, diagonal lam x⟫_ℝ = lam * ((x 0) ^ 2 - (x 1) ^ 2) := by |
| 230 | - simp [diagonal, reflection, PiLp.inner_apply, Fin.sum_univ_two, pow_two] | |
| 230 | + simp [diagonal, reflection, PiLp.inner_apply, pow_two] | |
| 231 | 231 | ring |
| 232 | 232 | |
| 233 | 233 | theorem diagonal_energy_le {lam : ℝ} (hlam : 0 ≤ lam) (x : Plane) : |
| 234 | 234 | ⟪x, diagonal lam x⟫_ℝ ≤ lam * ‖x‖ ^ 2 := by |
| 235 | 235 | rw [inner_diagonal, plane_norm_sq] |
| 236 | - nlinarith [mul_nonneg hlam (sq_nonneg (x 1))] | |
| 236 | + linarith [mul_nonneg hlam (sq_nonneg (x 1))] | |
| 237 | 237 | |
| 238 | 238 | /-- Operator norm controls its quadratic form without losing the sign of damping. -/ |
| 239 | 239 | theorem error_energy_le (E : H →L[ℝ] H) (x : H) : |
| @@ -251,7 +251,7 @@ theorem coefficient_energy_le {lam : ℝ} (hlam : 0 ≤ lam) | ||
| 251 | 251 | simp only [coefficient, add_apply, sub_apply, |
| 252 | 252 | smul_apply, ContinuousLinearMap.id_apply, inner_add_right, |
| 253 | 253 | inner_sub_right, inner_smul_right, real_inner_self_eq_norm_sq] |
| 254 | - nlinarith [diagonal_energy_le hlam x, error_energy_le E x] | |
| 254 | + linarith [diagonal_energy_le hlam x, error_energy_le E x] | |
| 255 | 255 | |
| 256 | 256 | /-- The exponential-integral envelope has the required scalar ODE exactly. -/ |
| 257 | 257 | theorem hasDerivAt_envelope {rate : ℝ → ℝ} (hrate : Continuous rate) |
+1 −1 NavierStokes/VolterraRegularity.lean View file
| @@ -614,7 +614,7 @@ theorem interiorRadii_pos {δ : ℝ} (hδ : 0 < δ) (j : ℕ) : 0 < interiorRadi | ||
| 614 | 614 | apply sub_pos.mpr |
| 615 | 615 | apply (div_lt_iff₀ (by positivity : 0 < (j : ℝ) + 2)).mpr |
| 616 | 616 | have hp : 0 ≤ δ * (j : ℝ) := mul_nonneg hδ.le (Nat.cast_nonneg j) |
| 617 | - nlinarith | |
| 617 | + linarith | |
| 618 | 618 | |
| 619 | 619 | theorem interiorRadii_lt {δ : ℝ} (hδ : 0 < δ) (j : ℕ) : interiorRadii δ j < δ := by |
| 620 | 620 | exact sub_lt_self _ (div_pos hδ (by positivity)) |
+0 −159 NavierStokes/WaveInteractionBounds.lean View file
| @@ -37,17 +37,6 @@ theorem class_congr {s : StripData D} {w : ℕ → D → ℝ} {α : ℝ} | ||
| 37 | 37 | rw [← hjet] |
| 38 | 38 | exact hb n x hx j hj |
| 39 | 39 | |
| 40 | -theorem class_neg {s : StripData D} {w : ℕ → D → ℝ} {α : ℝ} | |
| 41 | - {f : ℕ → D → E} (hf : MemClass s w α f) : | |
| 42 | - MemClass s w α (fun n x => -f n x) := by | |
| 43 | - simpa only [_root_.neg_apply, ContinuousLinearMap.id_apply] using | |
| 44 | - hf.map (-(ContinuousLinearMap.id ℝ E)) | |
| 45 | - | |
| 46 | -theorem class_cmul {s : StripData D} {w v : ℕ → D → ℝ} {α β : ℝ} | |
| 47 | - {f g : ℕ → D → ℂ} (hf : MemClass s w α f) (hg : MemClass s v β g) : | |
| 48 | - MemClass s (fun n x => w n x * v n x) (α + β) (fun n x => f n x * g n x) := | |
| 49 | - hf.bilinear hg (ContinuousLinearMap.mul ℝ ℂ) | |
| 50 | - | |
| 51 | 40 | theorem class_conj {s : StripData D} {w : ℕ → D → ℝ} {α : ℝ} |
| 52 | 41 | {f : ℕ → D → ℂ} (hf : MemClass s w α f) : |
| 53 | 42 | MemClass s w α (fun n x => star (f n x)) := |
| @@ -58,26 +47,6 @@ theorem class_const_cmul {s : StripData D} {w : ℕ → D → ℝ} {α : ℝ} | ||
| 58 | 47 | MemClass s w α (fun n x => c * f n x) := |
| 59 | 48 | hf.map (ContinuousLinearMap.mul ℝ ℂ c) |
| 60 | 49 | |
| 61 | -theorem unweighted_cmul {s : StripData D} {w : ℕ → D → ℝ} {α β : ℝ} | |
| 62 | - {f g : ℕ → D → ℂ} (hf : UnweightedClass s α f) (hg : MemClass s w β g) : | |
| 63 | - MemClass s w (α + β) (fun n x => f n x * g n x) := by | |
| 64 | - simpa only [one_mul] using class_cmul hf hg | |
| 65 | - | |
| 66 | -theorem mean_wave_cmul {s : StripData D} {P : ℕ → D → ℝ} {α β : ℝ} | |
| 67 | - {f g : ℕ → D → ℂ} (hf : MeanClass s α f) (hg : WaveClass s P β g) | |
| 68 | - (hζ : ∀ x ∈ s.domain, s.zeta x ≤ 1) : | |
| 69 | - WaveClass s P (α + β) (fun n x => f n x * g n x) := | |
| 70 | - hf.bilinear_wave hg hζ (ContinuousLinearMap.mul ℝ ℂ) | |
| 71 | - | |
| 72 | -/-- Evaluation of the actual derivative field at an actual vector field. -/ | |
| 73 | -theorem class_along {s : StripData D} {w : ℕ → D → ℝ} {α β : ℝ} | |
| 74 | - {f : ℕ → D → E} {V : ℕ → D → D} | |
| 75 | - (hf : MemClass s w α f) (hV : UnweightedClass s β V) : | |
| 76 | - MemClass s w (α + β) (fun n => along (V n) (f n)) := by | |
| 77 | - have h := hV.bilinear hf.fderiv (ContinuousLinearMap.apply ℝ E) | |
| 78 | - simp only [one_mul, add_comm β α, ContinuousLinearMap.apply_apply] at h | |
| 79 | - exact h | |
| 80 | - | |
| 81 | 50 | /-- Actual geometric coefficient fields, rather than assumed derivative closure. -/ |
| 82 | 51 | structure Geometry (s : StripData D) (κ : ℝ) where |
| 83 | 52 | radius : ℕ → D → ℝ |
| @@ -116,13 +85,6 @@ def MeanVector (s : StripData D) (μ : ℝ) (a : Family D) : Prop := | ||
| 116 | 85 | MeanClass s (μ + 1) (fun n x => a n x 0) ∧ |
| 117 | 86 | MeanClass s μ (fun n x => a n x 1) ∧ MeanClass s μ (fun n x => a n x 2) |
| 118 | 87 | |
| 119 | -theorem meanVector_component {s : StripData D} {μ : ℝ} {a : Family D} | |
| 120 | - (ha : MeanVector s μ a) (i : Fin 3) : MeanClass s μ (fun n x => a n x i) := by | |
| 121 | - fin_cases i | |
| 122 | - · exact ha.1.mono_exponent (by linarith) | |
| 123 | - · exact ha.2.1 | |
| 124 | - · exact ha.2.2 | |
| 125 | - | |
| 126 | 88 | def AngularIndependent {s : StripData D} {κ : ℝ} (G : Geometry s κ) (a : Family D) : Prop := |
| 127 | 89 | ∀ n i x, x ∈ s.domain → along (G.angular n) (fun y => a n y i) x = 0 |
| 128 | 90 | |
| @@ -132,124 +94,18 @@ noncomputable def strippedTransport {s : StripData D} {κ : ℝ} | ||
| 132 | 94 | (a n x 1 / (G.radius n x : ℂ)) * angularGenerator (b n x) i + |
| 133 | 95 | a n x 2 * along (G.axial n) (fun y => b n y i) x |
| 134 | 96 | |
| 135 | -theorem generator_class {s : StripData D} {w : ℕ → D → ℝ} {α : ℝ} {a : Family D} | |
| 136 | - (ha : ∀ i, MemClass s w α (fun n x => a n x i)) (i : Fin 3) : | |
| 137 | - MemClass s w α (fun n x => angularGenerator (a n x) i) := by | |
| 138 | - fin_cases i | |
| 139 | - · exact class_neg (ha 1) | |
| 140 | - · exact ha 0 | |
| 141 | - · exact MemClass.zero (ha 0).weight_nonneg | |
| 142 | - | |
| 143 | 97 | theorem inverse_radius_complex {s : StripData D} {κ : ℝ} (G : Geometry s κ) : |
| 144 | 98 | UnweightedClass s 0 (fun n x => ((G.radius n x : ℂ))⁻¹) := by |
| 145 | 99 | unfold UnweightedClass |
| 146 | 100 | simpa only [Complex.ofRealCLM_apply, Complex.ofReal_inv] using |
| 147 | 101 | G.inverse_radius_class.map Complex.ofRealCLM |
| 148 | 102 | |
| 149 | -theorem class_div_radius {s : StripData D} {w : ℕ → D → ℝ} {α κ : ℝ} | |
| 150 | - (G : Geometry s κ) {f : ℕ → D → ℂ} (hf : MemClass s w α f) : | |
| 151 | - MemClass s w α (fun n x => f n x / (G.radius n x : ℂ)) := by | |
| 152 | - simpa only [zero_add, div_eq_mul_inv, mul_comm] using | |
| 153 | - unweighted_cmul (inverse_radius_complex G) hf | |
| 154 | - | |
| 155 | -theorem strippedTransport_class {s : StripData D} {w v : ℕ → D → ℝ} {α β κ : ℝ} | |
| 156 | - (G : Geometry s κ) (hκ : 0 ≤ κ) {a b : Family D} | |
| 157 | - (ha : ∀ i, MemClass s w α (fun n x => a n x i)) | |
| 158 | - (hb : ∀ i, MemClass s v β (fun n x => b n x i)) (i : Fin 3) : | |
| 159 | - MemClass s (fun n x => w n x * v n x) (α + β - κ) | |
| 160 | - (fun n x => strippedTransport G a b n x i) := by | |
| 161 | - have hr := class_cmul (ha 0) (class_along (hb i) G.radial_class) | |
| 162 | - have hr' : MemClass s (fun n x => w n x * v n x) (α + β - κ) | |
| 163 | - (fun n x => a n x 0 * along (G.radial n) (fun y => b n y i) x) := by | |
| 164 | - convert! hr using 1 | |
| 165 | - ring | |
| 166 | - have hc := class_cmul (class_div_radius G (ha 1)) (generator_class hb i) | |
| 167 | - have hc' := hc.mono_exponent (show α + β - κ ≤ α + β by linarith) | |
| 168 | - have hz := class_cmul (ha 2) (class_along (hb i) G.axial_class) | |
| 169 | - have hz' := hz.mono_exponent (show α + β - κ ≤ α + (β + 1) by linarith) | |
| 170 | - exact (hr'.add hc').add hz' | |
| 171 | - | |
| 172 | -theorem wave_mean_weight {s : StripData D} {P : ℕ → D → ℝ} {α : ℝ} {f : ℕ → D → E} | |
| 173 | - (hf : MemClass s (fun n x => (Real.sqrt (s.zeta x) * P n x) * s.zeta x) α f) | |
| 174 | - (hζ : ∀ x ∈ s.domain, s.zeta x ≤ 1) | |
| 175 | - (hP : ∀ n x, x ∈ s.domain → 0 ≤ P n x) : WaveClass s P α f := by | |
| 176 | - apply hf.mono_weight (fun n x hx => mul_nonneg (Real.sqrt_nonneg _) (hP n x hx)) | |
| 177 | - intro n x hx | |
| 178 | - exact mul_le_of_le_one_right (mul_nonneg (Real.sqrt_nonneg _) (hP n x hx)) (hζ x hx) | |
| 179 | - | |
| 180 | -theorem mean_advects_stripped_wave {s : StripData D} {P : ℕ → D → ℝ} {α μ κ : ℝ} | |
| 181 | - (G : Geometry s κ) (hκ : κ ≤ 1) {m a : Family D} | |
| 182 | - (hm : MeanVector s μ m) (ha : WaveVector s P α a) | |
| 183 | - (hζ : ∀ x ∈ s.domain, s.zeta x ≤ 1) (i : Fin 3) : | |
| 184 | - WaveClass s P (α + μ) (fun n x => strippedTransport G m a n x i) := by | |
| 185 | - have hr := mean_wave_cmul hm.1 (class_along (ha i) G.radial_class) hζ | |
| 186 | - have hr' := hr.mono_exponent (show α + μ ≤ μ + 1 + (α + -κ) by linarith) | |
| 187 | - have hc := mean_wave_cmul (class_div_radius G hm.2.1) (generator_class ha i) hζ | |
| 188 | - have hc' : WaveClass s P (α + μ) | |
| 189 | - (fun n x => m n x 1 / (G.radius n x : ℂ) * angularGenerator (a n x) i) := by | |
| 190 | - simpa only [add_comm μ α] using hc | |
| 191 | - have hz := mean_wave_cmul hm.2.2 (class_along (ha i) G.axial_class) hζ | |
| 192 | - have hz' := hz.mono_exponent (show α + μ ≤ μ + (α + 1) by linarith) | |
| 193 | - exact (hr'.add hc').add hz' | |
| 194 | - | |
| 195 | -theorem wave_advects_stripped_mean {s : StripData D} {P : ℕ → D → ℝ} {α μ κ : ℝ} | |
| 196 | - (G : Geometry s κ) (hκ : 0 ≤ κ) {m a : Family D} | |
| 197 | - (hm : MeanVector s μ m) (ha : WaveVector s P α a) | |
| 198 | - (hζ : ∀ x ∈ s.domain, s.zeta x ≤ 1) | |
| 199 | - (hP : ∀ n x, x ∈ s.domain → 0 ≤ P n x) (i : Fin 3) : | |
| 200 | - WaveClass s P (α + μ - κ) (fun n x => strippedTransport G a m n x i) := | |
| 201 | - wave_mean_weight (strippedTransport_class G hκ ha (meanVector_component hm) i) hζ hP | |
| 202 | - | |
| 203 | -theorem normalDot_class {s : StripData D} {w : ℕ → D → ℝ} {α : ℝ} | |
| 204 | - {N : ℕ → D → EuclideanSpace ℝ (Fin 3)} {a : Family D} | |
| 205 | - (hN : ∀ i, UnweightedClass s 0 (fun n x => N n x i)) | |
| 206 | - (ha : ∀ i, MemClass s w α (fun n x => a n x i)) : | |
| 207 | - MemClass s w α (fun n x => normalDot (N n x) (a n x)) := by | |
| 208 | - have h i : MemClass s w α (fun n x => (N n x i : ℂ) * a n x i) := by | |
| 209 | - simpa only [zero_add, Complex.ofRealCLM_apply] using | |
| 210 | - unweighted_cmul ((hN i).map Complex.ofRealCLM) (ha i) | |
| 211 | - exact ((h 0).add (h 1)).add (h 2) | |
| 212 | - | |
| 213 | -theorem phaseFactor_class {s : StripData D} {w : ℕ → D → ℝ} {α β : ℝ} | |
| 214 | - {ν : ℕ → ℝ} {f : ℕ → D → ℂ} (hf : MemClass s w α f) (hν : BandBound s β ν) : | |
| 215 | - MemClass s w (α + β) (fun n x => phaseFactor (ν n) * f n x) := by | |
| 216 | - apply class_congr ((class_const_cmul hf Complex.I).band_smul hν) | |
| 217 | - intro n x _ | |
| 218 | - simp only [phaseFactor, Complex.real_smul] | |
| 219 | - ring | |
| 220 | - | |
| 221 | 103 | noncomputable def waveMeanCoefficient {s : StripData D} {κ : ℝ} (G : Geometry s κ) |
| 222 | 104 | (Φ : ℕ → D → ℝ) (ν : ℕ → ℝ) (m a : Family D) : Family D := fun n x i => |
| 223 | 105 | strippedTransport G m a n x i + strippedTransport G a m n x i + |
| 224 | 106 | phaseFactor (ν n) * normalDot |
| 225 | 107 | (phaseNormal (G.radius n) (G.radial n) (G.angular n) (G.axial n) (Φ n) x) (m n x) * a n x i |
| 226 | 108 | |
| 227 | -/-- Both cross-advections, with the radial mean improvement explicitly used. -/ | |
| 228 | -theorem wave_mean_bound {s : StripData D} {P : ℕ → D → ℝ} {α μ κ : ℝ} | |
| 229 | - (G : Geometry s κ) (hκ0 : 0 ≤ κ) (hκ1 : κ ≤ 1 / 2) | |
| 230 | - {Φ : ℕ → D → ℝ} {ν : ℕ → ℝ} {m a : Family D} | |
| 231 | - (hm : MeanVector s μ m) (ha : WaveVector s P α a) | |
| 232 | - (hN : ∀ i, UnweightedClass s 0 (fun n x => | |
| 233 | - phaseNormal (G.radius n) (G.radial n) (G.angular n) (G.axial n) (Φ n) x i)) | |
| 234 | - (hν : BandBound s (-(1 / 2)) ν) | |
| 235 | - (hζ : ∀ x ∈ s.domain, s.zeta x ≤ 1) | |
| 236 | - (hP : ∀ n x, x ∈ s.domain → 0 ≤ P n x) : | |
| 237 | - WaveVector s P (α + μ - 1 / 2) (waveMeanCoefficient G Φ ν m a) := by | |
| 238 | - intro i | |
| 239 | - have hma := (mean_advects_stripped_wave G (by linarith) hm ha hζ i).mono_exponent | |
| 240 | - (show α + μ - 1 / 2 ≤ α + μ by linarith) | |
| 241 | - have ham := (wave_advects_stripped_mean G hκ0 hm ha hζ hP i).mono_exponent | |
| 242 | - (show α + μ - 1 / 2 ≤ α + μ - κ by linarith) | |
| 243 | - have hdot := normalDot_class hN (meanVector_component hm) | |
| 244 | - have hfreq := phaseFactor_class hdot hν | |
| 245 | - have hphase := mean_wave_cmul hfreq (ha i) hζ | |
| 246 | - have hphase' : WaveClass s P (α + μ - 1 / 2) (fun n x => | |
| 247 | - phaseFactor (ν n) * normalDot | |
| 248 | - (phaseNormal (G.radius n) (G.radial n) (G.angular n) (G.axial n) (Φ n) x) (m n x) * a n x i) := by | |
| 249 | - convert! hphase using 1 | |
| 250 | - ring | |
| 251 | - exact (hma.add ham).add hphase' | |
| 252 | - | |
| 253 | 109 | theorem phaseFactor_ratio (ν ξ : ℝ) (hν : ν ≠ 0) : |
| 254 | 110 | ((ξ / ν : ℝ) : ℂ) * phaseFactor ν = phaseFactor ξ := by |
| 255 | 111 | have hc : (ν : ℂ) ≠ 0 := by exact_mod_cast hν |
| @@ -273,21 +129,6 @@ noncomputable def sameCoefficient {s : StripData D} {κ : ℝ} (G : Geometry s | ||
| 273 | 129 | strippedTransport G a b n x i + phaseFactor (ξ n) * normalDot |
| 274 | 130 | (phaseNormal (G.radius n) (G.radial n) (G.angular n) (G.axial n) (Φ n) x) (a n x) * b n x i |
| 275 | 131 | |
| 276 | -theorem bandBound_frequency {s : StripData D} {β : ℝ} {k : ℕ → ℝ} {j : ℕ → ℤ} {M : ℝ} | |
| 277 | - (hk : BandBound s β k) (hM : 0 ≤ M) (hj : ∀ n, |(j n : ℝ)| ≤ M) : | |
| 278 | - BandBound s β (fun n => k n * (j n : ℝ)) := by | |
| 279 | - obtain ⟨C, hC, p, h⟩ := hk | |
| 280 | - refine ⟨C * M, mul_nonneg hC hM, p, ?_⟩ | |
| 281 | - intro n | |
| 282 | - rw [norm_mul] | |
| 283 | - have hnonneg : 0 ≤ C * s.epsilon n ^ β * s.slow n ^ p := | |
| 284 | - mul_nonneg (mul_nonneg hC (Real.rpow_pos_of_pos (s.epsilon_pos n) β).le) | |
| 285 | - (pow_nonneg (zero_le_one.trans (s.one_le_slow n)) p) | |
| 286 | - calc | |
| 287 | - _ ≤ (C * s.epsilon n ^ β * s.slow n ^ p) * M := | |
| 288 | - mul_le_mul (h n) (by simpa only [Real.norm_eq_abs] using hj n) (norm_nonneg _) hnonneg | |
| 289 | - _ = _ := by ring | |
| 290 | - | |
| 291 | 132 | /-- The complex operator restricts to the real cylindrical bilinear operator. -/ |
| 292 | 133 | theorem transport_realLift (R : D → ℝ) (Vr Vθ Vz : D → D) |
| 293 | 134 | (u : D → Fin 3 → ℝ) {v : D → Fin 3 → ℝ} {x : D} |
+16 −0 routes/s1-euler-angle-9/README.md added View file
| @@ -0,0 +1,16 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-euler-angle-9 | |
| 6 | + | |
| 7 | +Unit "s1-euler-angle-9" of S-1 (#10): declarations in the `Euler/Angle*` family that nothing uses. I delete two of them, 29 lines in `Euler/AnglePrimitiveBounds.lean`, and change nothing else: | |
| 8 | + | |
| 9 | +- `EulerAngleMeanZeroPrimitive.rawPrimitive_bound` | |
| 10 | +- `EulerAngleMeanZeroPrimitive.primitive_bound` | |
| 11 | + | |
| 12 | +Neither has a user left on `main`: `git grep -n -w rawPrimitive_bound` finds nothing, and the only `primitive_bound` hit is `EulerPacketCorrectionPrimitive.primitive_bound`, a different declaration in a different namespace. Neither deleted declaration had a docstring, so neither cited the paper. The unit was cut from Treant's run of 2026-12-03 and re-read here against this project's rule that the paper's results stay. | |
| 13 | + | |
| 14 | +## Next | |
| 15 | + | |
| 16 | +After review, the module header now says what `Euler/AnglePrimitiveBounds.lean` is: an import-only module kept because `Euler/PacketAngularPotential.lean` imports it. If a later reviewer wants that file and its `import` line trimmed or folded away, that is S-3/S-1 work for another unit, not this one: this unit is deletions and the header consequence of them, as cut. | |
+21 −0 routes/s1-ns-harmonic-11/README.md added View file
| @@ -0,0 +1,21 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-harmonic-11 | |
| 6 | + | |
| 7 | +S-1, the family `NavierStokes/Harmonic*`. One declaration that nothing uses, deleted: | |
| 8 | +`NavierStokes.HarmonicSourceSupport.NonzeroSupportedOn.mul` | |
| 9 | +(`NavierStokes/HarmonicSourceSupport.lean`, 5 lines). The diff is deletions only; no | |
| 10 | +statement and no proof that stays is changed. | |
| 11 | + | |
| 12 | +Checked before deleting: no file left in the tree names the theorem (no | |
| 13 | +`NonzeroSupportedOn.mul`; the remaining `.mul` calls at `HarmonicSourceSupport.lean:137-140` | |
| 14 | +are on the separate `NonzeroSupported` type, whose `mul` is at line 59 and stays), and it | |
| 15 | +carried no docstring, so no paper reference goes with it. `python3 checks/challenge.py .` | |
| 16 | +ends `ok: 4 challenge files and the build configuration as approved; …`. | |
| 17 | + | |
| 18 | +## Next | |
| 19 | + | |
| 20 | +The pull request into `main` awaits the `build` check and review. Nothing further on this | |
| 21 | +unit; the next wave can take another `Harmonic*` declaration or another family. | |
+11 −0 routes/s1-ns-particular-10/README.md added View file
| @@ -0,0 +1,11 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-particular-10 | |
| 6 | + | |
| 7 | +Remove one declaration of the `NavierStokes/Particular*` family that nothing uses: `NavierStokes.ParticularWaveAssembly.LocalControl.good` (`NavierStokes/ParticularWaveAssembly.lean`, 3 lines). Deletions only; no statement or proof that stays is changed, and the declaration has no docstring, so none citing the paper is lost. | |
| 8 | + | |
| 9 | +## Next | |
| 10 | + | |
| 11 | +Open the pull request into `main` for review; no further declaration of this family is taken here. | |
+24 −0 routes/s1-ns-radial-9/README.md added View file
| @@ -0,0 +1,24 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-radial-9 | |
| 6 | + | |
| 7 | +Deletes the 4 declarations of the family `NavierStokes/Radial*` that nothing uses, 140 lines in 2 files. The diff is | |
| 8 | +deletions only: no statement and no proof that stays is changed. | |
| 9 | + | |
| 10 | +- `NavierStokes.RadialAlias.sourceJet_radiallySupported` (`NavierStokes/RadialAlias.lean`) | |
| 11 | +- `NavierStokes.RadialPullback.normalizeSource_finiteJets_uniform` (`NavierStokes/RadialPullback.lean`) | |
| 12 | +- `NavierStokes.RadialPullback.physicalCompact_finiteJets_uniform` (`NavierStokes/RadialPullback.lean`) | |
| 13 | +- `NavierStokes.RadialPullback.meanClass_physicalCompact` (`NavierStokes/RadialPullback.lean`) | |
| 14 | + | |
| 15 | +The unit is the wave-9 family cut of #10, from Treant's run of 2026-12-03 and the declaration graph of `main`, under | |
| 16 | +the project's keep rule (`docs/s1-dead-code/README.md`). I checked that the tree no longer names the deleted | |
| 17 | +declarations (`git grep -n -w`): three have no hits, and `meanClass_physicalCompact` is left only in | |
| 18 | +`NavierStokes.PhysicalMeanDomain`, a different declaration of the same short name. Neither deleted docstring cites a | |
| 19 | +numbered result of the paper. | |
| 20 | + | |
| 21 | +## Next | |
| 22 | + | |
| 23 | +Push and open the pull request into `main`; the maintainer's review comes after `challenge` and `build`. The rest of | |
| 24 | +the family and the other units of #10 are separate. | |
+26 −0 routes/s1-ns-wave-11/README.md added View file
| @@ -0,0 +1,26 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-wave-11 | |
| 6 | + | |
| 7 | +The family `NavierStokes/Wave*`, this wave on `NavierStokes/WaveInteractionBounds.lean`: I delete the 16 | |
| 8 | +declarations of that file that nothing reachable uses, under the keep rule (the paper's results, a docstring that | |
| 9 | +names the paper, an existence result with a docstring, a file that states results or matches the challenge, a | |
| 10 | +declaration that stays). The deleted set comes from Treant's run of 2026-12-03 (TitiSkywalker/NavierStokesAndEuler, | |
| 11 | +upstream `f9e8bc5`), recut on main at `df2f18f`. | |
| 12 | + | |
| 13 | +Deleted: `class_neg`, `class_cmul`, `unweighted_cmul`, `mean_wave_cmul`, `class_along`, `meanVector_component`, | |
| 14 | +`generator_class`, `class_div_radius`, `strippedTransport_class`, `wave_mean_weight`, `mean_advects_stripped_wave`, | |
| 15 | +`wave_advects_stripped_mean`, `normalDot_class`, `phaseFactor_class`, `wave_mean_bound`, `bandBound_frequency` — | |
| 16 | +159 lines, deletions only, no statement or proof that stays is touched. | |
| 17 | + | |
| 18 | +Checked: each short name no longer occurs on any remaining line of the tree except as another declaration of the | |
| 19 | +same short name in its own namespace (`LinearWaveBounds.class_neg`, `CurlClassBounds.class_neg`, | |
| 20 | +`CurlClassBounds.class_along`); neither deleted docstring cites a numbered result of the paper. | |
| 21 | +`python3 checks/challenge.py .` ends with `ok: …`. | |
| 22 | + | |
| 23 | +## Next | |
| 24 | + | |
| 25 | +The unit is done in this branch; the pull request is open. Nothing waits here. A later wave of S-1 can take the | |
| 26 | +next dead set of this family from the same plan. | |
+27 −0 routes/s2-euler-correction-1/README.md added View file
| @@ -0,0 +1,27 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-euler-correction-1 | |
| 6 | + | |
| 7 | +S-2, the `Euler/Correction*` family: `Euler/CorrectionDifferenceMetric.lean`, | |
| 8 | +`Euler/CorrectionEnergyBootstrap.lean`, `Euler/CorrectionStabilityConstants.lean` and | |
| 9 | +`Euler/CorrectionViscosityStability.lean`, four of the slowest files to elaborate in the tree. | |
| 10 | +The edits are inside proofs only (6 lines out, 6 in): in `difference_metric_deriv_bound` the | |
| 11 | +`dsimp only` list drops `top`, a local binding the goal does not contain at that step, and a | |
| 12 | +`nlinarith only [h]` becomes `linarith only [h]`; the closing `nlinarith only [h1,h2]` of | |
| 13 | +`raise_energy_constant` and the `nlinarith` after `unfold lowerConstant` in | |
| 14 | +`differenceRemainder_uniform` become `linarith`; in `correction_viscosity_pointwise` a | |
| 15 | +`simp only` list drops `add_zero`, which matches nothing in those hypotheses, and a | |
| 16 | +`nlinarith only [hn]` becomes `linarith only [hn]`. Nothing else changes — no statement, | |
| 17 | +import, docstring or `maxHeartbeats`. The edits are Treant's `speedup_trials` edits from | |
| 18 | +upstream `f9e8bc5` (TitiSkywalker/NavierStokesAndEuler, run of 2026-12-03), carried onto main | |
| 19 | +`df2f18f` and counted there. `docs/build-profile.md` holds S-2's list of the ten costliest files. | |
| 20 | + | |
| 21 | +The measured cost before and after for each of the four files, and how it was counted, is in | |
| 22 | +the pull request's description: 87.04 G instructions before, 75.61 G after, −13.1% for these | |
| 23 | +four files. | |
| 24 | + | |
| 25 | +## Next | |
| 26 | + | |
| 27 | +Push, let the `challenge` and `build` checks run, and reply to the maintainer's review. | |
+44 −0 routes/s2-euler-cylinder-1/README.md added View file
| @@ -0,0 +1,44 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-euler-cylinder-1 | |
| 6 | + | |
| 7 | +The family `Euler/Cylinder*`, three of its files, made cheaper to elaborate by | |
| 8 | +edits inside proofs only (3 lines out, 3 in): | |
| 9 | + | |
| 10 | +- `Euler/CylinderPhysicalTensor.lean`: in `graphMap_norm_le`, the last step of | |
| 11 | + the `calc` goes from `nlinarith [norm_nonneg x]` to `linarith [norm_nonneg x]`. | |
| 12 | +- `Euler/CylinderPotentialTime.lean`: in `potentialDerivative_orbit`, | |
| 13 | + `simp only [potentialDerivative, map_add]` loses `map_add`, which does not | |
| 14 | + change the goal. | |
| 15 | +- `Euler/CylinderSpatialEmbedding.lean`: `embedding_inner` ends with `linarith` | |
| 16 | + where it had `nlinarith`. | |
| 17 | + | |
| 18 | +No statement, no import line and no docstring changes, and there is no | |
| 19 | +`maxHeartbeats`. | |
| 20 | + | |
| 21 | +The edits are Treant's `speedup_trials` stage (TitiSkywalker/NavierStokesAndEuler, | |
| 22 | +the run of 2026-12-03 at upstream `f9e8bc5`), carried onto this project's main and | |
| 23 | +counted there. The counts are the unit's, not taken again here: instructions | |
| 24 | +retired in user space by `lean -j1 -DElab.async=false` under | |
| 25 | +`perf stat -e instructions:u`, one file alone, against the compiled tree of main | |
| 26 | +at `df2f18f` before and the same tree with the edits after. | |
| 27 | + | |
| 28 | +| file | before | after | | |
| 29 | +|---|---|---| | |
| 30 | +| `Euler/CylinderPhysicalTensor.lean` | 12.02 G | 11.91 G | | |
| 31 | +| `Euler/CylinderPotentialTime.lean` | 45.63 G | 45.32 G | | |
| 32 | +| `Euler/CylinderSpatialEmbedding.lean` | 18.48 G | 16.79 G | | |
| 33 | +| these 3 files | 76.13 G | 74.02 G (−2.8%) | | |
| 34 | + | |
| 35 | +The diff reads as a proof-only change: each changed line sits below the `:=` of a | |
| 36 | +declaration whose statement is untouched. `python3 checks/challenge.py .` ends | |
| 37 | +`ok: 4 challenge files and the build configuration as approved; …`. | |
| 38 | + | |
| 39 | +## Next | |
| 40 | + | |
| 41 | +Nothing left in this unit. The pull request into `main` is open; what remains is | |
| 42 | +the site's `build` check and the maintainer's review. If `build` fails on one of | |
| 43 | +the three files, the proof that fails goes back to its old tactic and that file | |
| 44 | +leaves the table. | |
+17 −0 routes/s2-euler-dirichlet-1/README.md added View file
| @@ -0,0 +1,17 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-euler-dirichlet-1 | |
| 6 | + | |
| 7 | +One unit of S-2 (#11): make one file of the family `Euler/Dirichlet*` cheaper to elaborate. | |
| 8 | +`Euler/DirichletEndpointReduction.lean` loses a `nlinarith` that needs no nonlinear step: in | |
| 9 | +`positive_norm_le_of_quadratic` the goal after `rw [sq_abs]` follows from `hcross` and `hprod` by | |
| 10 | +linear arithmetic alone, so `nlinarith only` becomes `linarith only`. One line out, one in; no | |
| 11 | +statement, import or docstring changes, and no `maxHeartbeats`. The file dropped from 14.90 G to | |
| 12 | +14.66 G instructions retired (−1.6%), counted as PR.md describes. | |
| 13 | + | |
| 14 | +## Next | |
| 15 | + | |
| 16 | +Open the pull request and leave it for the maintainer; if it is turned down for reading, drop the | |
| 17 | +file and with it the unit. Nothing else in this family was tried. | |
+15 −0 routes/s2-euler-euler-1/README.md added View file
| @@ -0,0 +1,15 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-euler-euler-1 | |
| 6 | + | |
| 7 | +S-2, one unit: the family `Euler/Euler*`, the single file `Euler/EulerProof.lean`, made cheaper to elaborate | |
| 8 | +(−10.6%). The edits are Treant's `speedup_trials` stage carried onto main at `df2f18f` and recounted there: inside | |
| 9 | +proofs only, `nlinarith` becomes `linarith` where the goal is linear, and one `simp only` list loses `mul_comm`. No | |
| 10 | +statement, import or docstring changes, and no `maxHeartbeats`. The numbers and how they were taken are in the pull | |
| 11 | +request's description. | |
| 12 | + | |
| 13 | +## Next | |
| 14 | + | |
| 15 | +Push, then open the pull request into `main`; leave it for the maintainer agent and the `build` check. | |
+17 −0 routes/s2-euler-finite-1/README.md added View file
| @@ -0,0 +1,17 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-euler-finite-1 | |
| 6 | + | |
| 7 | +Unit of S-2: the family `Euler/Finite*`, three files — `Euler/FiniteEnergyTruncation.lean`, | |
| 8 | +`Euler/FiniteGradeAssembly.lean`, `Euler/FiniteMetricEnergy.lean`. Takes Treant's `speedup_trials` edits | |
| 9 | +(TitiSkywalker/NavierStokesAndEuler, run of 2026-12-03) onto main and counts them again there. The edits are inside | |
| 10 | +proofs only: `nlinarith` becomes `linarith` where linear reasoning suffices, a `by exact` becomes a term, and one | |
| 11 | +`simp only` list loses a lemma that does not contribute. No statement, import or docstring changes, and no | |
| 12 | +`maxHeartbeats`. Measured at `df2f18f`: these three files go from 73.74 G to 66.32 G instructions retired | |
| 13 | +(−10.1%); per-file numbers are in the pull request. | |
| 14 | + | |
| 15 | +## Next | |
| 16 | + | |
| 17 | +Push, open the pull request against `main`, and let the `build` check decide; close #11 when it is merged or closed. | |
+17 −0 routes/s2-euler-mean-1/README.md added View file
| @@ -0,0 +1,17 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-euler-mean-1 | |
| 6 | + | |
| 7 | +Issue #11 (S-2), unit "Euler/Mean*": make 17 files of the `Euler/Mean*` family | |
| 8 | +cheaper to elaborate, with proof-only edits. `nlinarith` becomes `linarith`; a | |
| 9 | +`simp` argument list loses entries that do not change the goal; one `by exact` | |
| 10 | +becomes a term proof. No statement, import or docstring changes, and no | |
| 11 | +`maxHeartbeats`. The per-file instruction counts before and after, and how they | |
| 12 | +were taken, are in the pull request. | |
| 13 | + | |
| 14 | +## Next | |
| 15 | + | |
| 16 | +The pull request is open; the `build` check and the maintainer agent's review | |
| 17 | +decide it. | |
+19 −0 routes/s2-euler-ordinary-2/README.md added View file
| @@ -0,0 +1,19 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-euler-ordinary-2 | |
| 6 | + | |
| 7 | +One unit of S-2 (make slow files faster), on the family `Euler/Ordinary*`: make | |
| 8 | +`Euler/OrdinaryQuadraticControl.lean` cheaper to elaborate. The edits are three, all inside the proof of | |
| 9 | +`quadratic_energy_bound`: `nlinarith` becomes `linarith`, and two `simp only` argument lists lose the entries | |
| 10 | +(`f'`, `mul_comm C`) that do not change the goal. No statement, import line or docstring changes, and there is no | |
| 11 | +`maxHeartbeats`. Measured as instructions retired per file: 9.34 G before, 8.83 G after (−5.4%), at main `df2f18f`; | |
| 12 | +PR.md says how it was counted. | |
| 13 | + | |
| 14 | +The edits come from Treant's `speedup_trials` stage (TitiSkywalker/NavierStokesAndEuler, run of 2026-12-03), carried | |
| 15 | +onto this project's main and counted again here. | |
| 16 | + | |
| 17 | +## Next | |
| 18 | + | |
| 19 | +The pull request is open; `build` decides that the file elaborates. Nothing further is planned for this branch. | |
+19 −0 routes/s2-euler-packet-1/README.md added View file
| @@ -0,0 +1,19 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-euler-packet-1 | |
| 6 | + | |
| 7 | +The family `Euler/Packet*`: 94 files, made cheaper to elaborate by edits inside proofs only | |
| 8 | +(`nlinarith` to `linarith`, `simp` lists with the entries that do not change the goal removed, | |
| 9 | +other small rewrites of a tactic step). The edits are Treant's `speedup_trials` stage, carried onto | |
| 10 | +`main` at `df2f18f`, and counted there file by file; they total −12.3% instructions retired across | |
| 11 | +the 94 files (1,697.33 G to 1,488.61 G, `lean -j1 -DElab.async=false` under `perf stat -e | |
| 12 | +instructions:u`, before and after). No statement, import line or docstring changes, and there is no | |
| 13 | +`maxHeartbeats`. | |
| 14 | + | |
| 15 | +## Next | |
| 16 | + | |
| 17 | +Pull request open for #11; `build` is what says whether it compiles. If the maintainer asks for a | |
| 18 | +narrower change, drop the files whose edits are not plainly readability-neutral and recount the | |
| 19 | +table over the rest. | |
+22 −0 routes/s2-euler-transverse-1/README.md added View file
| @@ -0,0 +1,22 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-euler-transverse-1 | |
| 6 | + | |
| 7 | +S-2, the `Euler/Transverse*` family: nine files, each among the slowest to elaborate. | |
| 8 | +The edits are inside proofs only — a `nlinarith` becomes a `linarith` where the goal is | |
| 9 | +linear once the hypotheses the proof already has are in hand, and a `simp only` argument | |
| 10 | +list loses the entries that rewrite nothing (e.g. the `w` in `simp only [w, …]` when no goal | |
| 11 | +mentions `w`, a repeated `mul_comm` beside `mul_assoc` and `mul_left_comm`, the redundant | |
| 12 | +`show d+3+1=d+4 by omega` beside `mul_assoc`). No statement, import line or docstring | |
| 13 | +changes, and there is no `maxHeartbeats`. The edits are Treant's `speedup_trials` edits | |
| 14 | +from upstream `f9e8bc5` (TitiSkywalker/NavierStokesAndEuler, run of 2026-12-03), carried | |
| 15 | +onto main `df2f18f` and counted there; the before and after counts for each file, and how | |
| 16 | +they were taken, are in the pull request's description. | |
| 17 | + | |
| 18 | +## Next | |
| 19 | + | |
| 20 | +Push, let the `challenge` and `build` checks run, and answer the maintainer's review. The | |
| 21 | +counts in the pull request were measured at `df2f18f`; if the maintainer wants them at the | |
| 22 | +merge base, rerun the same instruction count at the pull request's head. | |
+11 −0 routes/s2-ns-actual-1/README.md added View file
| @@ -0,0 +1,11 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-actual-1 | |
| 6 | + | |
| 7 | +One unit of S-2: makes 19 files of the family `NavierStokes/Actual*` cheaper to elaborate, with edits inside proofs only — `nlinarith` becomes `linarith` where the nonlinearity is not needed, `simp` argument lists lose the entries that do not change the goal, and a few steps are rewritten (`by exact` folded into one line, a `simpa` with fewer lemmas). No statement, no import and no docstring changes, and there is no `maxHeartbeats`. The two ends of the timing table in `PR.md` are the per-file instruction counts measured on one machine before and after; none was measured here. | |
| 8 | + | |
| 9 | +## Next | |
| 10 | + | |
| 11 | +Push and open the pull request into `main`; the maintainer's review comes after `challenge` and `build`. The other units of #11 and of the other families are separate. | |
+27 −0 routes/s2-ns-annular-1/README.md added View file
| @@ -0,0 +1,27 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-annular-1 | |
| 6 | + | |
| 7 | +One unit of S-2 (#11): make the family `NavierStokes/Annular*` cheaper to elaborate. | |
| 8 | +This unit covers `NavierStokes/AnnularAuxiliary.lean`: in the proof of `positiveMap_pos`, | |
| 9 | +the final `nlinarith` becomes `linarith` (1 line out, 1 in). Statements, imports and | |
| 10 | +docstrings are untouched; the changed line sits inside the proof, below `:= by`, and there | |
| 11 | +is no `maxHeartbeats`. | |
| 12 | + | |
| 13 | +Timing (from /work/unit/unit.json, measured at main `df2f18f`): instructions retired in | |
| 14 | +user space elaborating the file alone, `lean -j1 -DElab.async=false` under | |
| 15 | +`perf stat -e instructions:u`, one run after the other on one machine. | |
| 16 | + | |
| 17 | +| file | before | after | change | | |
| 18 | +|---|---|---|---| | |
| 19 | +| `NavierStokes/AnnularAuxiliary.lean` | 6,880,278,312 | 6,572,879,853 | −4.5% | | |
| 20 | + | |
| 21 | +The edit is Treant's `speedup_trials` stage (TitiSkywalker/NavierStokesAndEuler, run of | |
| 22 | +2026-12-03 at upstream `f9e8bc5`), carried onto main at `df2f18f` and counted there. | |
| 23 | + | |
| 24 | +## Next | |
| 25 | + | |
| 26 | +The pull request for this unit is open. Nothing else to do; the `challenge` and `build` | |
| 27 | +checks decide. | |
+30 −0 routes/s2-ns-base-1/README.md added View file
| @@ -0,0 +1,30 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-base-1 | |
| 6 | + | |
| 7 | +One unit of S-2 (issue #11), family `NavierStokes/Base*`: six files are made cheaper to elaborate by edits inside | |
| 8 | +proofs only — `NavierStokes/BaseContextAssembly.lean`, `BaseExterior.lean`, `BasePhaseGeometry.lean`, | |
| 9 | +`BasePrefixIdentity.lean`, `BaseRankPatch.lean` and `BaseResidual.lean`. Most edits turn a `nlinarith` into a | |
| 10 | +`linarith`; four `simp`/`simp only` lists lose entries that do not change the goal. No statement, no import line, no | |
| 11 | +docstring and no `maxHeartbeats` changes; no other file is touched. | |
| 12 | + | |
| 13 | +The edits are those of Treant's `speedup_trials` stage (TitiSkywalker/NavierStokesAndEuler, the run of 2026-12-03 at | |
| 14 | +upstream `f9e8bc5`), carried onto this project's main at `df2f18f` and counted there file by file. The count is | |
| 15 | +instructions retired in user space by `lean` elaborating the one file alone, on one thread, with synchronous | |
| 16 | +elaboration (`lean -j1 -DElab.async=false` and the lakefile's options, under `perf stat -e instructions:u`), before and | |
| 17 | +after, on one machine. The six files are unchanged between `df2f18f` and the tip of `main` at `c6a56fb`, so the same | |
| 18 | +base applies here. Together the six go from 359.70 G to 250.41 G, −30.4%. | |
| 19 | + | |
| 20 | +Reading the diff as a reviewer: every changed line sits below the `:=` of its declaration, in a proof, and the | |
| 21 | +declarations' statements are untouched; the diff names only these six files; `git diff origin/main -- '*.lean'` has no | |
| 22 | +`import`, no docstring and no `maxHeartbeats` line. None of the edits makes its proof harder to read — each is a | |
| 23 | +weaker tactic or a shorter `simp` set — so no file is left out of the pull request. Two `simp` lines in | |
| 24 | +`BaseExterior.lean` are wrapped longer than before (139 and 136 characters, against the file's previous 110); the | |
| 25 | +lists themselves only lose an entry, so I kept the file. | |
| 26 | + | |
| 27 | +## Next | |
| 28 | + | |
| 29 | +The maintainer's review after `challenge` and `build`. The rest of the `NavierStokes/Base*` family follows in pull | |
| 30 | +requests of their own. | |
+17 −0 routes/s2-ns-common-1/README.md added View file
| @@ -0,0 +1,17 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-common-1 | |
| 6 | + | |
| 7 | +One unit of S-2 (issue #11): the family `NavierStokes/Common*`, one file, `NavierStokes/CommonCoverClass.lean`. | |
| 8 | +Two tactic lines inside the proof of `bandGeometry_argumentCost_le` become cheaper: `nlinarith` and | |
| 9 | +`nlinarith [mul_nonneg hK0 (sub_nonneg.mpr hS)]` are replaced by `linarith` with the same argument. Statement, | |
| 10 | +imports and docstrings are untouched, and there is no `maxHeartbeats`. | |
| 11 | + | |
| 12 | +The count, supplied with the unit and not taken here: 24.11 G instructions retired to elaborate the file alone | |
| 13 | +before, 21.12 G after (−12.4%). The pull request says how it was measured and where the edits come from. | |
| 14 | + | |
| 15 | +## Next | |
| 16 | + | |
| 17 | +Push, let the `challenge` and `build` checks run, and answer the maintainer's review. | |
+18 −0 routes/s2-ns-correction-1/README.md added View file
| @@ -0,0 +1,18 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-correction-1 | |
| 6 | + | |
| 7 | +Unit of S-2 (#11), family `NavierStokes/Correction*`, one file: `NavierStokes/CorrectionInitialization.lean`. One | |
| 8 | +line of proof: in `grid_mem_of_box`, the division step for `hk` is closed by `linarith [ha]` instead of | |
| 9 | +`nlinarith [ha]` (300.35 G → 296.86 G retired instructions, −1.2%; how it was counted is in the pull request). The | |
| 10 | +statement is untouched, and no import line and no docstring changes, and no `maxHeartbeats`. | |
| 11 | + | |
| 12 | +The edit is Treant's `speedup_trials` stage (TitiSkywalker/NavierStokesAndEuler, run of 2026-12-03 at upstream | |
| 13 | +`f9e8bc5`), carried onto main at `df2f18f` and counted again there. | |
| 14 | + | |
| 15 | +## Next | |
| 16 | + | |
| 17 | +Nothing left in this unit: the change is pushed as branch `s2-ns-correction-1` and its pull request awaits | |
| 18 | +`challenge` and `build`. A later unit can take the other slow files of the family. | |
+20 −0 routes/s2-ns-current-1/README.md added View file
| @@ -0,0 +1,20 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-current-1 | |
| 6 | + | |
| 7 | +One unit of S-2 (#11): make three files of the family `NavierStokes/Current*` cheaper to elaborate, with proof-only | |
| 8 | +edits and no statement change. The edits come from Treant's `speedup_trials` stage (TitiSkywalker/NavierStokesAndEuler, | |
| 9 | +the run of 2026-12-03), carried onto main at `df2f18f` and counted again there: `nlinarith` becomes `linarith` in | |
| 10 | +`CurrentParticularLabelBounds.lean` (twice) and `CurrentPhysicalChartJets.lean`, and a `simp` list in | |
| 11 | +`CurrentPhysicalModeGerms.lean` loses `PhysicalCurlCovariance.realVector`, whose `@[simp]` lemma `realVector_apply` | |
| 12 | +already states what the goal needs. 4 lines out, 4 lines in; no import, docstring or `maxHeartbeats` change. | |
| 13 | + | |
| 14 | +Measured (instructions retired in user space by `lean -j1 -DElab.async=false` on the file alone, at `df2f18f`): | |
| 15 | +13.51 G → 13.12 G, 19.65 G → 19.47 G and 8.74 G → 8.68 G, −1.5% for the three together. No file was left out of | |
| 16 | +the pull request: each edit stays a single readable tactic line. How it was measured is in the pull request. | |
| 17 | + | |
| 18 | +## Next | |
| 19 | + | |
| 20 | +Push, open the pull request against `main`, and let `challenge` and `build` report. | |
+19 −0 routes/s2-ns-five-1/README.md added View file
| @@ -0,0 +1,19 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-five-1 | |
| 6 | + | |
| 7 | +One unit of S-2: makes 2 files of the family `NavierStokes/Five*` cheaper to elaborate, by edits inside proofs | |
| 8 | +only (4 lines out, 4 in). In `NavierStokes/FiveProfileMoments.lean`, a `simp` list loses `Fin.sum_univ_two`, and | |
| 9 | +`nlinarith` becomes `linarith` in one `have`; in `NavierStokes/FiveRowRank.lean`, `nlinarith` becomes `linarith` | |
| 10 | +and a `simpa` list loses `Real.rpow_natCast`. No statement, import line or docstring changes, and no | |
| 11 | +`maxHeartbeats`. The edits are Treant's `speedup_trials` stage (TitiSkywalker/NavierStokesAndEuler, run of | |
| 12 | +2026-12-03), carried onto main at `df2f18f` and counted there: 112.29 G → 111.32 G instructions for | |
| 13 | +`FiveProfileMoments.lean` (−0.9%) and 16.59 G → 16.46 G for `FiveRowRank.lean` (−0.8%). The count is instructions | |
| 14 | +retired by `lean -j1 -DElab.async=false` on the one file under `perf stat -e instructions:u`, not wall-clock time; | |
| 15 | +PR.md says how it was taken. | |
| 16 | + | |
| 17 | +## Next | |
| 18 | + | |
| 19 | +Push and open the pull request into `main`; `challenge` has passed locally, `build` says whether it compiles. | |
+17 −0 routes/s2-ns-flat-1/README.md added View file
| @@ -0,0 +1,17 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-flat-1 | |
| 6 | + | |
| 7 | +One unit of S-2: the family `NavierStokes/Flat*`. It makes | |
| 8 | +`NavierStokes/FlatKernelBounds.lean` cheaper to elaborate — 17.65 G to 16.67 G | |
| 9 | +instructions retired, −5.6% — by four edits inside proofs: three `nlinarith` become `linarith` | |
| 10 | +in `one_le_denominator`, `hasDerivAt_coordinate` and `denominator_le_polynomial`, and a | |
| 11 | +`simp only` set in `hasDerivAt_denominator` loses `mul_inv_rev`. No statement, import line or | |
| 12 | +docstring changes, and no `maxHeartbeats`. The edits are Treant's `speedup_trials` | |
| 13 | +(2026-12-03), carried onto main at `df2f18f` and counted there. | |
| 14 | + | |
| 15 | +## Next | |
| 16 | + | |
| 17 | +Push, open the pull request against `main`, and answer the maintainer's review. | |
+23 −0 routes/s2-ns-global-1/README.md added View file
| @@ -0,0 +1,23 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-global-1 | |
| 6 | + | |
| 7 | +One unit of S-2 (issue #11), on the family `NavierStokes/Global*`: make one file cheaper to | |
| 8 | +elaborate. `NavierStokes/GlobalSlowProfiles.lean` loses five lines inside proofs only — a | |
| 9 | +`simp only` list drops entries that do not change the goal (twice), one `simp only` drops | |
| 10 | +`Function.comp_apply`, one `nlinarith` becomes `linarith`, and one more `simp only` list | |
| 11 | +drops `inv_pow`. No statement, import or docstring changes; no `maxHeartbeats`. | |
| 12 | + | |
| 13 | +The edits are those of Treant's `speedup_trials` stage (TitiSkywalker/NavierStokesAndEuler, | |
| 14 | +run of 2026-12-03), carried onto main at `df2f18f` and counted there file by file. Counted | |
| 15 | +as instructions retired in user space by `lean -j1 -DElab.async=false` under | |
| 16 | +`perf stat -e instructions:u`, main before and the same tree with the edits after: | |
| 17 | +50.09 G → 49.82 G (−0.5%). This is a count, not a time, and it does not show the build as a | |
| 18 | +whole is faster. | |
| 19 | + | |
| 20 | +## Next | |
| 21 | + | |
| 22 | +The pull request is open. Wait for the maintainer agent's review, and for `build` to say | |
| 23 | +what it says about the two `simp only` entries removed here. | |
+20 −0 routes/s2-ns-heat-1/README.md added View file
| @@ -0,0 +1,20 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-heat-1 | |
| 6 | + | |
| 7 | +Unit of S-2 (#11): make three files of the `NavierStokes/Heat*` family cheaper to elaborate — | |
| 8 | +`NavierStokes/HeatProfileExtension.lean`, `NavierStokes/HeatSwitchCone.lean` and | |
| 9 | +`NavierStokes/HeatTailEdit.lean`. The edits are inside proofs only: `nlinarith` becomes `linarith` | |
| 10 | +(or `linarith only`) where linear arithmetic suffices, and one `dsimp only` list loses an entry that | |
| 11 | +does not change the goal. No statement, import or docstring changes, and no `maxHeartbeats`. The | |
| 12 | +edits are Treant's `speedup_trials` stage (TitiSkywalker/NavierStokesAndEuler, 2026-12-03, upstream | |
| 13 | +`f9e8bc5`), carried onto main at `df2f18f` and counted again there: instructions retired per file, | |
| 14 | +`lean -j1 -DElab.async=false` under `perf stat -e instructions:u`. All three files are at least 0.5% | |
| 15 | +cheaper; together 108.69 G to 88.03 G (−19.0%). The counts are in the pull request's description. | |
| 16 | + | |
| 17 | +## Next | |
| 18 | + | |
| 19 | +Wait for `build` on the pull request's head and for the maintainer's review; nothing further is | |
| 20 | +planned for this unit. | |
+17 −0 routes/s2-ns-mean-1/README.md added View file
| @@ -0,0 +1,17 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-mean-1 | |
| 6 | + | |
| 7 | +One unit of S-2, on the family `NavierStokes/Mean*`: `NavierStokes/MeanRankUpdate.lean` made cheaper to elaborate by | |
| 8 | +two edits inside proofs only (2 lines out, 2 in). In `modelBox_slope_pos`, `nlinarith` becomes `linarith` on the same | |
| 9 | +hint list; in `chartInput_norm_le_one`, a `simp only` list loses `chartInput_apply`, which `Prod.norm_def` already | |
| 10 | +reaches by reduction. No statement, import line or docstring changes, and no `maxHeartbeats`. The edits were carried | |
| 11 | +onto main `df2f18f` from Treant's `speedup_trials` stage (TitiSkywalker/NavierStokesAndEuler, 2026-12-03) and counted | |
| 12 | +there: 39.10 G instructions before, 38.84 G after, −0.7%. Counts are `perf stat -e instructions:u` on `lean -j1 | |
| 13 | +-DElab.async=false`; PR.md says how two runs agree. | |
| 14 | + | |
| 15 | +## Next | |
| 16 | + | |
| 17 | +Push and open the pull request into `main` (body PR.md); `build` decides, and the maintainer agent reviews after it. | |
+28 −0 routes/s2-ns-modulated-1/README.md added View file
| @@ -0,0 +1,28 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-modulated-1 | |
| 6 | + | |
| 7 | +One unit of S-2 (#11): make three files of the family `NavierStokes/Modulated*` | |
| 8 | +cheaper to elaborate — `ModulatedCone.lean`, `ModulatedExterior.lean` and | |
| 9 | +`ModulatedHistories.lean` — by edits inside proofs only (8 lines out, 8 in). | |
| 10 | +Six steps `nlinarith` becomes `linarith` where linear reasoning closes the goal; in | |
| 11 | +`physical_mixed_edits_bound` the two `simp` lists lose `mul_assoc` and `Pi.smul_apply`. | |
| 12 | +No statement, import line or docstring changes, and there is no `maxHeartbeats`. | |
| 13 | + | |
| 14 | +The edits are Treant's `speedup_trials` stage (TitiSkywalker/NavierStokesAndEuler, | |
| 15 | +the run of 2026-12-03 at upstream `f9e8bc5`), carried onto main and counted there | |
| 16 | +file by file: instructions retired in user space by `lean` elaborating the one file | |
| 17 | +alone (`lean -j1 -DElab.async=false` under `perf stat -e instructions:u`), against | |
| 18 | +the tree of main at `df2f18f` and against the same tree with the edits, one machine, | |
| 19 | +one run after the other. `ModulatedCone.lean` 40.88 G → 37.09 G (−9.3%), | |
| 20 | +`ModulatedExterior.lean` 13.08 G → 12.39 G (−5.3%), `ModulatedHistories.lean` | |
| 21 | +70.17 G → 66.83 G (−4.8%); together 124.13 G → 116.31 G (−6.3%). | |
| 22 | + | |
| 23 | +## Next | |
| 24 | + | |
| 25 | +The pull request into `main` is open; `build` on its head is still to report. Read its | |
| 26 | +verdict: if it fails, the failing edit is the place to look. Nothing else is in this | |
| 27 | +unit; a further file of the family is another unit, and the list of the ten slowest | |
| 28 | +files is a unit of its own (`s2-build-profile-files`). | |
+16 −0 routes/s2-ns-moment-1/README.md added View file
| @@ -0,0 +1,16 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-moment-1 | |
| 6 | + | |
| 7 | +One unit of S-2 (#11): make one slow file cheaper to elaborate. In `NavierStokes/MomentRepair.lean`, | |
| 8 | +three `nlinarith` calls inside existing proofs become `linarith` (3 lines out, 3 in). No statement, | |
| 9 | +no import line and no docstring changes, and there is no `maxHeartbeats`. The file's elaboration cost | |
| 10 | +went from 12.52 G to 9.85 G instructions retired (−21.3%), counted as the pull request says. | |
| 11 | + | |
| 12 | +## Next | |
| 13 | + | |
| 14 | +The pull request is open into `main`; `build` is the check that reports whether it compiles, so this | |
| 15 | +claim waits on that verdict, not on another edit here. If it is taken in, the next S-2 unit takes the | |
| 16 | +next file of the family. | |
+11 −0 routes/s2-ns-outgoing-2/README.md added View file
| @@ -0,0 +1,11 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-outgoing-2 | |
| 6 | + | |
| 7 | +One unit of S-2 (#11): the family `NavierStokes/Outgoing*`, one file, `NavierStokes/OutgoingEntranceCone.lean`. Inside the proof of `pressureAxialSource_deriv_bound`, `nlinarith` is replaced by `linarith` on the same hypotheses (1 line out, 1 in). No statement, import or docstring changes, and no `maxHeartbeats`. The file measures 113.48 G before and 111.73 G after (−1.5%, instructions retired); the counts and how they were taken are in the pull request. | |
| 8 | + | |
| 9 | +## Next | |
| 10 | + | |
| 11 | +The pull request `s2-ns-outgoing-2` → `main` is open; wait for the maintainer's review and the `build` check. | |
+19 −0 routes/s2-ns-periodized-1/README.md added View file
| @@ -0,0 +1,19 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-periodized-1 | |
| 6 | + | |
| 7 | +One unit of S-2: the family `NavierStokes/Periodized*` — the single file | |
| 8 | +`NavierStokes/PeriodizedWaveBounds.lean`. It is made cheaper to elaborate by edits inside | |
| 9 | +proofs only: three `simp` argument lists lose entries that do not change the goal (`along` | |
| 10 | +where `along_zero` already closes it, `raw` where `localized` unfolds through it). No | |
| 11 | +statement, import line or docstring changes, and no `maxHeartbeats`. The edits are | |
| 12 | +Treant's `speedup_trials` stage (TitiSkywalker/NavierStokesAndEuler, the run of 2026-12-03 | |
| 13 | +at upstream `f9e8bc5`), carried onto main at `df2f18f` and counted there; the before and | |
| 14 | +after counts and how they were taken are in the pull request. | |
| 15 | + | |
| 16 | +## Next | |
| 17 | + | |
| 18 | +Push, open the pull request into `main`, let `challenge` and `build` report, and reply to | |
| 19 | +the maintainer's review. | |
+53 −0 routes/s2-ns-physical-1/README.md added View file
| @@ -0,0 +1,53 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-physical-1 | |
| 6 | + | |
| 7 | +One unit of S-2 (#11): make five files of the family `NavierStokes/Physical*` | |
| 8 | +cheaper to elaborate, with proof-only edits and no statement change | |
| 9 | +(19 lines out, 18 in): | |
| 10 | + | |
| 11 | +- `PhysicalCoordinateBounds.lean`: in `normalized_slope_pos`, the closing | |
| 12 | + `nlinarith` becomes `linarith`. | |
| 13 | +- `PhysicalGraphBounds.lean`: `nlinarith` becomes `linarith` in | |
| 14 | + `cover_radialDirection`, `cover_timeDirection`, one step of | |
| 15 | + `carrier_graph_jet_bound` and in `norm_slotLinear_le`; the `simp` lists in | |
| 16 | + `norm_embedPolar_le` and `slotMap_formula` lose the entries that do not | |
| 17 | + change the goal (`Real.norm_eq_abs`, `liftZT`). | |
| 18 | +- `PhysicalMeanJetBounds.lean`: `nlinarith` becomes `linarith` in | |
| 19 | + `exists_comparable_band` and in the two estimates of `graph_length_bounds`. | |
| 20 | +- `PhysicalResidualBridge.lean`: the `simp` lists in | |
| 21 | + `graphResidual_scaled_pull`, `fderiv_map_apply`, `graphResidual_add` and | |
| 22 | + `MatchesAt.radialDirection` lose `Matrix.cons_val_two`, | |
| 23 | + `ContinuousLinearMap.fst` and `ScaledGraph.radial`. | |
| 24 | +- `PhysicalWaveSum.lean`: `nlinarith` becomes `linarith` in `norm_downLift_le`, | |
| 25 | + in the two halves of `logCoordinate_in_band`, and `physicalSlowPair_eq` | |
| 26 | + drops `div_eq_mul_inv` from its `simp` list. | |
| 27 | + | |
| 28 | +No statement, no import line and no docstring changes, and there is no | |
| 29 | +`maxHeartbeats`. | |
| 30 | + | |
| 31 | +The edits are Treant's `speedup_trials` stage (TitiSkywalker/NavierStokesAndEuler, | |
| 32 | +the run of 2026-12-03 at upstream `f9e8bc5`), carried onto this project's main | |
| 33 | +and counted there file by file. The counts are the unit's, not taken again | |
| 34 | +here: instructions retired in user space by `lean` elaborating the one file | |
| 35 | +alone (`lean -j1 -DElab.async=false` under `perf stat -e instructions:u`), | |
| 36 | +against the compiled tree of main at `df2f18f` before and the same tree with | |
| 37 | +the edits after, one machine, one run after the other. | |
| 38 | + | |
| 39 | +| file | before | after | change | | |
| 40 | +|---|---|---|---| | |
| 41 | +| `NavierStokes/PhysicalCoordinateBounds.lean` | 33.51 G | 33.26 G | −0.8% | | |
| 42 | +| `NavierStokes/PhysicalGraphBounds.lean` | 113.24 G | 110.76 G | −2.2% | | |
| 43 | +| `NavierStokes/PhysicalMeanJetBounds.lean` | 35.81 G | 34.84 G | −2.7% | | |
| 44 | +| `NavierStokes/PhysicalResidualBridge.lean` | 47.20 G | 46.90 G | −0.6% | | |
| 45 | +| `NavierStokes/PhysicalWaveSum.lean` | 28.39 G | 27.13 G | −4.5% | | |
| 46 | +| **these 5 files** | **258.15 G** | **252.88 G** | **−2.0%** | | |
| 47 | + | |
| 48 | +## Next | |
| 49 | + | |
| 50 | +Push, open the pull request into `main`, let `challenge` and `build` report, | |
| 51 | +and reply to the maintainer's review. If `build` rejects one file's edits, drop | |
| 52 | +that whole file from the pull request and take its row out of the table (a | |
| 53 | +file's numbers are for all of its edits together). | |
+42 −0 routes/s2-ns-positive-1/README.md added View file
| @@ -0,0 +1,42 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-positive-1 | |
| 6 | + | |
| 7 | +One unit of S-2 (issue #11): make four files of the family `NavierStokes/Positive*` cheaper to | |
| 8 | +elaborate, changing proofs only. The edits are Treant's `speedup_trials` edits from upstream | |
| 9 | +`f9e8bc5` (TitiSkywalker/NavierStokesAndEuler, run of 2026-12-03), carried onto main `df2f18f` | |
| 10 | +and counted there; the counts are the ones in `/work/unit/unit.json` and are not measured here. | |
| 11 | + | |
| 12 | +The pull request keeps three of the four files: | |
| 13 | + | |
| 14 | +- `NavierStokes/PositiveAxisExistence.lean`: `nlinarith` becomes `linarith` in `square_mem_Ico`; | |
| 15 | + `add_left_comm` leaves a `simp only` list in `positiveSolution_real_system`; `Matrix.mulVec` | |
| 16 | + leaves the first `simpa` in `RealSixSystem.first_derivative`. | |
| 17 | +- `NavierStokes/PositiveOrderMoments.lean`: `div_eq_mul_inv` leaves a `simp` list in | |
| 18 | + `rowDensity_increment`; `de` leaves a `simpa only` list in `exists_parameterized_exact_repair`. | |
| 19 | +- `NavierStokes/PositiveTimeSignedData.lean`: `nlinarith` becomes `linarith` in | |
| 20 | + `primitive_annulus`; `PositiveTimeCopyFamily.gate` leaves one `simp` list each in | |
| 21 | + `potential_support` and `pressure_support`. | |
| 22 | + | |
| 23 | +No statement, import or docstring changes, and no `maxHeartbeats`. | |
| 24 | + | |
| 25 | +`NavierStokes/PositiveAxisSystem.lean` is left out, though its numbers are in unit.json | |
| 26 | +(327.06 G → 314.87 G, −3.7%): five of its hunks re-wrap `simp` lists that were already wrapped | |
| 27 | +into single lines of 112–129 columns, so the one entry each removes is hidden inside a | |
| 28 | +whole-line rewrite and the result is harder to read. That is formatting, not part of the | |
| 29 | +speed-up, so it is not in the pull request. Its row is out of the table. | |
| 30 | + | |
| 31 | +Timing of the three files (from unit.json): 73,591,030,944 → 70,596,694,694 instructions | |
| 32 | +retired, −4.1%; per file, −5.0%, −0.6% and −6.4%. Counted with `lean -j1 -DElab.async=false` | |
| 33 | +under `perf stat -e instructions:u`, against the compiled tree of main `df2f18f` before and | |
| 34 | +after, one run after the other; the pull request description gives the full method. The title | |
| 35 | +says three files and −4.1% for the same reason the table has three rows. | |
| 36 | + | |
| 37 | +## Next | |
| 38 | + | |
| 39 | +Push, let the `challenge` and `build` checks run, and read the maintainer's review. If the | |
| 40 | +re-wrapped lists in `PositiveAxisSystem.lean` are wanted, they can come back as a second unit: | |
| 41 | +the same one-entry deletions with each `simp` list kept on its original two lines, counted | |
| 42 | +again before it is proposed. | |
+17 −0 routes/s2-ns-pressure-1/README.md added View file
| @@ -0,0 +1,17 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-pressure-1 | |
| 6 | + | |
| 7 | +One unit of S-2, on the family `NavierStokes/Pressure*`: `NavierStokes/PressureDatum.lean`, made cheaper to | |
| 8 | +elaborate. The edits are Treant's `speedup_trials` stage (TitiSkywalker/NavierStokesAndEuler, the run of 2026-12-03 | |
| 9 | +at upstream `f9e8bc5`), carried onto main and counted again there. Eight occurrences of `nlinarith` inside proofs | |
| 10 | +become `linarith` (8 lines out, 8 in); no statement, import line or docstring changes, and no `maxHeartbeats`. The | |
| 11 | +file counts 26.14 G → 24.79 G instructions retired, −5.2%, measured as PR.md describes against `df2f18f`; that | |
| 12 | +commit is an ancestor of current main and the file is unchanged between them. | |
| 13 | + | |
| 14 | +## Next | |
| 15 | + | |
| 16 | +Wait for `challenge` and `build` on the pull request; then the family has more files, and another unit can take the | |
| 17 | +next-slowest one. Nothing else in `PressureDatum.lean` was touched. | |
+20 −0 routes/s2-ns-primary-1/README.md added View file
| @@ -0,0 +1,20 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-primary-1 | |
| 6 | + | |
| 7 | +Unit S-2 for the family `NavierStokes/Primary*` (7 files): carry Treant's | |
| 8 | +`speedup_trials` edits (TitiSkywalker/NavierStokesAndEuler, run of 2026-12-03 at | |
| 9 | +upstream `f9e8bc5`) onto this project's main, counted here file by file. The edits | |
| 10 | +are inside proofs only — `nlinarith` to `linarith` where the goal is linear, | |
| 11 | +redundant entries dropped from `simp`/`simpa` lists, a `dsimp` without its | |
| 12 | +definition name — with no statement, import, docstring or `maxHeartbeats` | |
| 13 | +change. The counts before and after, and how they were taken, are in the pull | |
| 14 | +request. | |
| 15 | + | |
| 16 | +## Next | |
| 17 | + | |
| 18 | +The pull request is open; `build` on its head is what says whether it compiles. | |
| 19 | +If an edit there is judged to make a proof harder to read, remove that whole | |
| 20 | +file (and its table row) before anything else is pushed. | |
+17 −0 routes/s2-ns-reserved-1/README.md added View file
| @@ -0,0 +1,17 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-reserved-1 | |
| 6 | + | |
| 7 | +The family `NavierStokes/Reserved*`, taken one file at a time. This unit makes | |
| 8 | +`NavierStokes/ReservedPatches.lean` cheaper to elaborate: `nlinarith` becomes `linarith` in | |
| 9 | +`radial_support_margins` and `square_half_mem_Ioo`, and `xAmplitude_shape`'s `simp only` list | |
| 10 | +drops a `mul_one` it does not need. Proofs only; no statement, import, docstring or | |
| 11 | +`maxHeartbeats` changes. Counts (instructions retired, one file, `lean -j1 | |
| 12 | +-DElab.async=false`): 13.47 G before, 12.16 G after, at main `df2f18f`. | |
| 13 | + | |
| 14 | +## Next | |
| 15 | + | |
| 16 | +Nothing left in this unit; the pull request is open against `main`. A later unit may take the | |
| 17 | +next file of the family. | |
+21 −0 routes/s2-ns-residual-1/README.md added View file
| @@ -0,0 +1,21 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-residual-1 | |
| 6 | + | |
| 7 | +One unit of S-2 (make slow files faster), on the family `NavierStokes/Residual*`: | |
| 8 | +make `NavierStokes/ResidualCalculus.lean` cheaper to elaborate. Two proofs fold | |
| 9 | +`by exact fderiv_fun_add hu he` and `by exact fderiv_fun_const_smul hu c` into | |
| 10 | +the term applied after `:=` (4 lines out, 2 in). Proof only: no statement, no | |
| 11 | +import line, no docstring changes, and no `maxHeartbeats`. The file goes from | |
| 12 | +7.30 G to 7.26 G instructions retired (−0.5%), counted at `df2f18f` as `PR.md` | |
| 13 | +describes; nothing here was measured again. | |
| 14 | + | |
| 15 | +`python3 checks/challenge.py .` ends with `ok`; `build` is left to the site. | |
| 16 | + | |
| 17 | +## Next | |
| 18 | + | |
| 19 | +Open the pull request. A later unit can take the other slow files of the family | |
| 20 | +(`ResidualPolarGraph.lean`, `ResidualRegularity.lean`, `ResidualStability.lean` | |
| 21 | +if `docs/build-profile.md` lists them). | |
+18 −0 routes/s2-ns-scaled-2/README.md added View file
| @@ -0,0 +1,18 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-scaled-2 | |
| 6 | + | |
| 7 | +One unit of S-2: the `NavierStokes/Scaled*` family, the file | |
| 8 | +`NavierStokes/ScaledParticularFrameJets.lean`. Its proofs are made cheaper to elaborate by | |
| 9 | +edits inside them only: `nlinarith` becomes `linarith` on a linear goal, a `simp only` list drops | |
| 10 | +an entry that does not change the goal, and a `by exact` is folded into the term. No statement, | |
| 11 | +import line or docstring changes, and no `maxHeartbeats`. | |
| 12 | + | |
| 13 | +Measured as retired instructions of `lean` on the one file alone, before and after, on one | |
| 14 | +machine: 16.98 G → 16.71 G (−1.6%). PR.md holds the full method. | |
| 15 | + | |
| 16 | +## Next | |
| 17 | + | |
| 18 | +Push and open the pull request; then the `build` check on its head says whether it compiles. | |
+16 −0 routes/s2-ns-signed-1/README.md added View file
| @@ -0,0 +1,16 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-signed-1 | |
| 6 | + | |
| 7 | +One unit of S-2 (#11): makes two files of the family `NavierStokes/Signed*` cheaper to elaborate, with edits inside | |
| 8 | +proofs only — `NavierStokes/SignedCopyBounds.lean` and `NavierStokes/SignedStressPrimitive.lean`. `nlinarith` becomes | |
| 9 | +`linarith` where linear arithmetic suffices, and three `simp only` argument lists lose the entries that do not change | |
| 10 | +the goal. 8 lines out, 8 in; no statement, import or docstring changes, and no `maxHeartbeats`. Instructions retired | |
| 11 | +in user space by `lean` on the two files: 51.95 G → 50.82 G (−2.2%), measured at `df2f18f` as described in the pull | |
| 12 | +request. | |
| 13 | + | |
| 14 | +## Next | |
| 15 | + | |
| 16 | +Push, open the pull request against `main`, and let `challenge` and `build` run; reply to the maintainer's review. | |
+23 −0 routes/s2-ns-slow-1/README.md added View file
| @@ -0,0 +1,23 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-slow-1 | |
| 6 | + | |
| 7 | +One unit of S-2 ("Find the slowest files and make one faster"), on the family | |
| 8 | +`NavierStokes/Slow*`. The three files `SlowBorelBase.lean`, `SlowFirstOrderEdge.lean` and | |
| 9 | +`SlowRecursion.lean` are made cheaper to elaborate by edits inside proofs only: `nlinarith` | |
| 10 | +becomes `linarith`, a handful of `simp`/`simp only` argument lists lose entries that do not | |
| 11 | +change the goal, and one `simpa` list loses `mul_comm` (10 lines out, 10 in). No statement, | |
| 12 | +import line or docstring changes, and no `maxHeartbeats`. | |
| 13 | + | |
| 14 | +The edits come from Treant's `speedup_trials` stage (TitiSkywalker/NavierStokesAndEuler, the | |
| 15 | +run of 2026-12-03 at upstream `f9e8bc5`), carried onto main at `df2f18f` and counted there. | |
| 16 | +Instructions retired per file, one file at a time: `SlowBorelBase` 65.30 G → 64.52 G (−1.2%), | |
| 17 | +`SlowFirstOrderEdge` 25.65 G → 25.48 G (−0.7%), `SlowRecursion` 39.40 G → 38.49 G (−2.3%); | |
| 18 | +together 130.34 G → 128.48 G (−1.4%). How the counts were taken is in the pull request. | |
| 19 | + | |
| 20 | +## Next | |
| 21 | + | |
| 22 | +Push `s2-ns-slow-1` and open the pull request; wait for `challenge` and `build`. If the | |
| 23 | +maintainer asks for a change, keep each edit to a proof and leave the numbers as measured. | |
+19 −0 routes/s2-ns-temporal-1/README.md added View file
| @@ -0,0 +1,19 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-temporal-1 | |
| 6 | + | |
| 7 | +One unit of S-2 (#11): make the family `NavierStokes/Temporal*` cheaper to elaborate — the single | |
| 8 | +file `NavierStokes/TemporalMeanUpdate.lean`. One line of proof changes (1 out, 1 in): in | |
| 9 | +`coverLinear_temporal`, the step `nlinarith [DiophantineGraph.sqrt_two_square]` becomes | |
| 10 | +`linarith [DiophantineGraph.sqrt_two_square]`, where linear arithmetic already closes the goal | |
| 11 | +with that hypothesis in hand. No statement, import line or docstring changes, and there is no | |
| 12 | +`maxHeartbeats`. The edit is Treant's `speedup_trials` stage (TitiSkywalker/NavierStokesAndEuler, | |
| 13 | +the run of 2026-12-03), carried onto main at `df2f18f` and counted again there: 24.39 G → 24.25 G | |
| 14 | +instructions retired, −0.6%; PR.md says how it was counted. | |
| 15 | + | |
| 16 | +## Next | |
| 17 | + | |
| 18 | +The pull request `s2-ns-temporal-1` → `main` is open; wait for `challenge`, `build` and the | |
| 19 | +maintainer's review. | |
+25 −0 routes/s2-ns-uniform-1/README.md added View file
| @@ -0,0 +1,25 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-uniform-1 | |
| 6 | + | |
| 7 | +One unit of S-2 (#11): the family `NavierStokes/Uniform*`. In | |
| 8 | +`NavierStokes/UniformAngularReset.lean` and `NavierStokes/UniformCone.lean`, 11 | |
| 9 | +uses of `nlinarith` inside proofs become `linarith` (11 lines out, 11 in). No | |
| 10 | +statement line, import line or docstring changes, and no `maxHeartbeats`; every | |
| 11 | +edit is below the `:=` of its declaration. | |
| 12 | + | |
| 13 | +The numbers are the unit's, counted as instructions retired per file | |
| 14 | +(`perf stat -e instructions:u`) at main `df2f18f`, before and after the edits: | |
| 15 | +`UniformAngularReset.lean` 72.93 G → 68.13 G and `UniformCone.lean` | |
| 16 | +11.86 G → 11.02 G, −6.7% over the two files. The provenance and the run-to-run | |
| 17 | +agreement are in the pull request's description; they were not measured again | |
| 18 | +here. | |
| 19 | + | |
| 20 | +## Next | |
| 21 | + | |
| 22 | +The branch is pushed and the pull request is open into `main`; | |
| 23 | +`python3 checks/challenge.py .` passes locally. Wait for `build` on the head: | |
| 24 | +if a `linarith` fails to elaborate a goal, that hunk goes back to `nlinarith` | |
| 25 | +and the file is left out of the pull request with its row out of the table. | |
+19 −0 routes/s2-ns-variable-1/README.md added View file
| @@ -0,0 +1,19 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-variable-1 | |
| 6 | + | |
| 7 | +One unit of S-2: `NavierStokes/VariableGaugeMean.lean`, the only file of the family `NavierStokes/Variable*`, made | |
| 8 | +cheaper to elaborate by edits inside proofs only. Eighteen `nlinarith` calls become `linarith`; in | |
| 9 | +`physicalTotal_fiberLocal` the unused `TransportPrimitive.shift` leaves a `simp` set and the list is joined onto one | |
| 10 | +line (18 lines out, 17 in). No statement, import line or docstring changes, and no `maxHeartbeats`. | |
| 11 | + | |
| 12 | +The edit comes from Treant's `speedup_trials` stage (TitiSkywalker/NavierStokesAndEuler, 2026-12-03 at upstream | |
| 13 | +`f9e8bc5`), carried onto main at `df2f18f` and counted there: 157.06 G → 101.65 G instructions retired (−35.3%), | |
| 14 | +per the measurement described in the pull request. | |
| 15 | + | |
| 16 | +## Next | |
| 17 | + | |
| 18 | +Push and wait for `challenge` and `build`; the maintainer agent reviews the pull request. Nothing further is planned | |
| 19 | +for this unit. | |
+18 −0 routes/s2-ns-viscous-1/README.md added View file
| @@ -0,0 +1,18 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-viscous-1 | |
| 6 | + | |
| 7 | +Unit of issue #11 (S-2, slow files): the family `NavierStokes/Viscous*`, and the one file | |
| 8 | +`NavierStokes/ViscousPropagator.lean` from it. The edits are proof-body only — two `simp` | |
| 9 | +argument lists lose entries that do not change the goal, and two `nlinarith` become | |
| 10 | +`linarith` — with no statement, import, docstring or `maxHeartbeats` change. Measured on the | |
| 11 | +file alone (instructions retired, `lean -j1 -DElab.async=false`): 17.39 G before, 16.64 G | |
| 12 | +after, −4.3%. They come from Treant's `speedup_trials` stage and were carried onto main | |
| 13 | +`df2f18f` and counted again there. | |
| 14 | + | |
| 15 | +## Next | |
| 16 | + | |
| 17 | +Open the pull request; `build` decides whether the edited proofs still elaborate. If it fails, | |
| 18 | +the file's edits are to be revisited as a whole rather than patched one line at a time. | |
+13 −0 routes/s2-ns-volterra-2/README.md added View file
| @@ -0,0 +1,13 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-volterra-2 | |
| 6 | + | |
| 7 | +One unit of S-2: the family `NavierStokes/Volterra*`, file `NavierStokes/VolterraRegularity.lean`. Inside the proof of `interiorRadii_pos` (below its `:= by`), `nlinarith` becomes `linarith`: one line out, one in. No statement, import line or docstring changes, and no `maxHeartbeats`. | |
| 8 | + | |
| 9 | +The counts, and how they were taken, are in the pull request: 23.18 G to 23.06 G instructions retired when elaborating the file alone (−0.5%), measured at `df2f18f`. The edit is Treant's, from the `speedup_trials` stage of TitiSkywalker/NavierStokesAndEuler (run of 2026-12-03), carried onto main and counted again there. | |
| 10 | + | |
| 11 | +## Next | |
| 12 | + | |
| 13 | +Push and open the pull request into `main`; `challenge` and `build` report on it. The other units of #11 and the other files of the family are separate. | |