| @@ -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δε) |