Ramanujan's Lost Notebook Part I, Ch. 3: ch03SequenceValue
DefinitionRamanujanLostNotebook_PartI_ch03_ch03SequenceValuenumber-theoryramanujan-lost-notebook
Select the limit of a convergent complex sequence, and 0 when it has no limit. In the Hausdorff space ℂ the selected limit is unique. The definition asserts no convergence; statements consuming a continued fraction include Tendsto to the selected value in their conclusions. No identity or product formula is built into this selector.
Definition code
import Mathlib
noncomputable section
namespace RamanujanLostNotebook.PartI
/-- Select the limit of a convergent complex sequence, and 0 when it has no
limit. In the Hausdorff space ℂ the selected limit is unique. The definition
asserts no convergence; statements consuming a continued fraction include
Tendsto to the selected value in their conclusions. No identity or product
formula is built into this selector. -/
noncomputable def ch03SequenceValue (s : ℕ → ℂ) : ℂ :=
by
classical
exact if h : ∃ z : ℂ, Filter.Tendsto s Filter.atTop (nhds z) then Classical.choose h else 0
end RamanujanLostNotebook.PartI
end
Source
G. E. Andrews and B. C. Berndt, Ramanujan's Lost Notebook, Part I, Springer 2005, Chapter 3.