Skip to content

Commit

Permalink
Fix 2015 B6
Browse files Browse the repository at this point in the history
Mathlib's `tsum` (with notation `∑'`) gives the wrong answer for
conditionally-convergent sums (unless they happen to sum to zero) and so
is not the right tool in this question.

This is an unfortunate footgun and gap in Mathlib.

The fix is to make a basic limit statement about the sequence of partial
sums.
  • Loading branch information
ocfnash committed Aug 22, 2024
1 parent 42b6b86 commit 61ce8ad
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lean4/src/putnam_2015_b6.lean
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import Mathlib
open BigOperators

open Function
open Filter Topology

noncomputable abbrev putnam_2015_b6_solution : ℝ := sorry
-- Real.pi ^ 2 / 16
theorem putnam_2015_b6
(A : ℕ → ℕ)
(hA : ∀ k > 0, A k = {j : ℕ | Odd j ∧ j ∣ k ∧ j < Real.sqrt (2 * k)}.encard)
: ∑' k : Set.Ici 1, (-1 : ℝ) ^ ((k : ℝ) - 1) * (A k / (k : ℝ)) = putnam_2015_b6_solution :=
sorry
(A : ℕ → ℕ)
(hA : ∀ k > 0, A k = {j : ℕ | Odd j ∧ j ∣ k ∧ j < Real.sqrt (2 * k)}.encard) :
Tendsto (fun K : ℕ ↦ ∑ k in Finset.Icc 1 K, (-1 : ℝ) ^ ((k : ℝ) - 1) * (A k / (k : ℝ)))
atTop (𝓝 putnam_2015_b6_solution) :=
sorry

0 comments on commit 61ce8ad

Please sign in to comment.