This repository was archived by the owner on Jul 24, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
analysis/special_functions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -470,7 +470,7 @@ lemma strict_mono.div_const {β : Type*} [preorder β] {f : β → α} (hf : str
470470by simpa only [div_eq_mul_inv] using hf.mul_const (inv_pos.2 hc)
471471
472472@[priority 100 ] -- see Note [lower instance priority]
473- instance linear_ordered_field .to_densely_ordered : densely_ordered α :=
473+ instance linear_ordered_semifield .to_densely_ordered : densely_ordered α :=
474474{ dense := λ a₁ a₂ h, ⟨(a₁ + a₂) / 2 ,
475475 calc a₁ = (a₁ + a₁) / 2 : (add_self_div_two a₁).symm
476476 ... < (a₁ + a₂) / 2 : div_lt_div_of_lt zero_lt_two (add_lt_add_left h _),
@@ -810,12 +810,4 @@ lemma abs_inv (a : α) : |a⁻¹| = (|a|)⁻¹ := map_inv₀ (abs_hom : α →*
810810lemma abs_div (a b : α) : |a / b| = |a| / |b| := map_div₀ (abs_hom : α →*₀ α) a b
811811lemma abs_one_div (a : α) : |1 / a| = 1 / |a| := by rw [abs_div, abs_one]
812812
813- lemma pow_minus_two_nonneg : 0 ≤ a^(-2 : ℤ) :=
814- begin
815- simp only [inv_nonneg, zpow_neg],
816- change 0 ≤ a ^ ((2 : ℕ) : ℤ),
817- rw zpow_coe_nat,
818- apply sq_nonneg,
819- end
820-
821813end
Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ lemma zpow_bit0_nonneg (a : α) (n : ℤ) : 0 ≤ a ^ bit0 n :=
9898(mul_self_nonneg _).trans_eq $ (zpow_bit0 _ _).symm
9999
100100lemma zpow_two_nonneg (a : α) : 0 ≤ a ^ (2 : ℤ) := zpow_bit0_nonneg _ _
101+ lemma zpow_neg_two_nonneg (a : α) : 0 ≤ a ^ (-2 : ℤ) := zpow_bit0_nonneg _ (-1 )
101102
102103lemma zpow_bit0_pos (h : a ≠ 0 ) (n : ℤ) : 0 < a ^ bit0 n :=
103104(zpow_bit0_nonneg a n).lt_of_ne (zpow_ne_zero _ h).symm
Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ begin
228228 have npos : 0 < (n:ℝ) := by exact_mod_cast npos',
229229 -- Two easy inequalities we'll need later:
230230 have w₁ : 0 ≤ 2 * ‖f‖ := mul_nonneg (by norm_num) (norm_nonneg f),
231- have w₂ : 0 ≤ 2 * ‖f‖ * δ^(-2 : ℤ) := mul_nonneg w₁ pow_minus_two_nonneg ,
231+ have w₂ : 0 ≤ 2 * ‖f‖ * δ^(-2 : ℤ) := mul_nonneg w₁ (zpow_neg_two_nonneg _) ,
232232 -- As `[0,1]` is compact, it suffices to check the inequality pointwise.
233233 rw (continuous_map.norm_lt_iff _ h),
234234 intro x,
@@ -293,7 +293,7 @@ begin
293293 : mul_le_mul_of_nonneg_left
294294 (finset.sum_le_univ_sum_of_nonneg
295295 (λ k, mul_nonneg
296- (mul_nonneg pow_minus_two_nonneg (sq_nonneg _))
296+ (mul_nonneg (zpow_neg_two_nonneg _) (sq_nonneg _))
297297 bernstein_nonneg)) w₁
298298 ... = (2 * ‖f‖) * δ^(-2 : ℤ) * ∑ k : fin (n+1 ), (x - k/ₙ)^2 * bernstein n k x
299299 : by conv_rhs
You can’t perform that action at this time.
0 commit comments