cfahlgren1/math / lean /OAI /Probability /SKBarriers /Gaussian /ReciprocalSquares.lean
cfahlgren1's picture
download
raw
966 Bytes
import Mathlib
namespace OAI
section
section
noncomputable section
open scoped BigOperators
namespace SK.Analytic
theorem sum_nat_reciprocal_squares_aux (k : ℕ) :
(∑ j : Fin k, 1/((j.val+1 : ℕ) : ℝ)^2) ≤ 2-2/((k+1 : ℕ) : ℝ) := by
induction k with
| zero => norm_num
| succ k ih =>
rw [Fin.sum_univ_castSucc]
simp only [Fin.val_castSucc,Fin.val_last]
have hk : (0 : ℝ) < (k+1 : ℕ) := by positivity
have hl : (0 : ℝ) < (k+1+1 : ℕ) := by positivity
have hi : 1/((k+1 : ℕ) : ℝ)^2 ≤ 2/((k+1 : ℕ) : ℝ)-2/((k+1+1 : ℕ) : ℝ) := by
apply (le_sub_iff_add_le).2
field_simp [ne_of_gt hk,ne_of_gt hl]
push_cast
nlinarith [Nat.cast_nonneg (α := ℝ) k]
linarith
theorem sum_nat_reciprocal_squares (k : ℕ) :
(∑ j : Fin k, 1/((j.val+1 : ℕ) : ℝ)^2) ≤ 2 :=
(sum_nat_reciprocal_squares_aux k).trans (sub_le_self _ (by positivity))
end SK.Analytic
end
end
end
end OAI

Xet Storage Details

Size:
966 Bytes
·
Xet hash:
f28033213633d8caa390b1a36948dce5a6e51b0450517e25190e47d93791317a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.