Definition 3.1.1: For a set S ⊆ ℝ, a real number x is a cluster point of
S if for every ε > 0 the punctured neighborhood (x - ε, x + ε) ∩ S \ {x}
is nonempty.
Instances For
Proposition 3.1.2: A real number x is a cluster point of S ⊆ ℝ iff
there exists a sequence (xₙ) with each xₙ ∈ S, xₙ ≠ x, and
xₙ → x.
Definition 3.1.3: A function f : ℝ → ℝ converges to L as x approaches
c within a set S if c is a cluster point of S and for every ε > 0
there is δ > 0 such that for all x ∈ S with x ≠ c and |x - c| < δ we
have |f x - L| < ε.
Equations
Instances For
Convert LimitWithin to a Tendsto statement on S \ {c}.
Mathlib expresses this limit as a Tendsto statement toward the nhdsWithin
filter that omits the point c.
Proposition 3.1.4: If c is a cluster point of S ⊆ ℝ and a function
f : ℝ → ℝ converges to some real number as x approaches c within S,
then that limit value is unique.
Example 3.1.5: For the function f x = x^2 and any real c, the limit
as x → c is c^2.
Example 3.1.6: The piecewise function on [0, 1) given by f x = x for
x > 0 and f 0 = 1 satisfies f ⟶ 0 as x → 0 within [0, 1), even though
f 0 = 1.
Instances For
The limit of limitValueDiff at 0 within (0, 1) (the punctured part of [0, 1))
is 0.
The value of limitValueDiff at 0 is 1, differing from the limit.
Lemma 3.1.7: For S ⊆ ℝ, a cluster point c of S, a function f : S → ℝ,
and L : ℝ, we have f(x) → L as x → c iff for every sequence (xₙ) with
xₙ ∈ S \ {c} and xₙ → c, the sequence (f xₙ) converges to L.
Example 3.1.8: The limit of sin (1 / x) as x → 0 does not exist, but the
limit of x * sin (1 / x) as x → 0 equals 0.
The product x * sin (1 / x) converges to 0 as x → 0.
If two real sequences converge and one bounds the other termwise, then their limits respect the same inequality.
Corollary 3.1.9: If c is a cluster point of S ⊆ ℝ, f, g : ℝ → ℝ
have limits L_f, L_g as x → c within S, and f x ≤ g x for all
x ∈ S \ {c}, then L_f ≤ L_g.
Corollary 3.1.10: If c is a cluster point of S ⊆ ℝ, f : ℝ → ℝ has a
limit L as x → c within S, and a ≤ f x ≤ b for all x ∈ S \ {c}, then
a ≤ L ≤ b.
Corollary 3.1.11 (squeeze theorem): Let S ⊆ ℝ and c be a cluster point
of S. If f, g, h : ℝ → ℝ satisfy f x ≤ g x ≤ h x for all x ∈ S \ {c}
and f and h both have limit L as x → c within S, then g also has
limit L as x → c within S.
Corollary 3.1.12: Let S ⊆ ℝ and c be a cluster point of S. If
f, g : ℝ → ℝ have limits as x → c within S, then (i) the limit of
f + g equals the sum of the limits, (ii) the limit of f - g equals the
difference of the limits, (iii) the limit of f * g equals the product of the
limits, and (iv) if the limit of g is nonzero and g x ≠ 0 for all
x ∈ S \ {c}, then the limit of f / g equals the quotient of the limits.
Corollary 3.1.13: If S ⊆ ℝ, c is a cluster point of S, and the limit
lim_{x → c, x ∈ S} f x exists for a function f : ℝ → ℝ, then the limit of
|f x| as x → c within S equals the absolute value of the limit of f.
Proposition 3.1.15(i): If A ⊆ S ⊆ ℝ agree with S on a punctured
neighborhood of c (i.e., there exists α > 0 with (A \ {c}) ∩ (c-α, c+α) = (S \ {c}) ∩ (c-α, c+α)), then c is a cluster point of A iff it is a cluster
point of S.
The ε–δ condition for the limit within S implies the corresponding
condition within A provided the sets coincide on a punctured neighborhood of
c.
Proposition 3.1.15(ii): Under the same local agreement near c and assuming
c is a cluster point of S, the limit of f along S at c equals that of
its restriction to A.
Definition 3.1.16: For a function f : ℝ → ℝ, the right-hand limit of f
at c along a set S is the limit of the restriction of f to S ∩ (c, ∞)
as x → c. The left-hand limit is defined analogously using S ∩ (-∞, c).
Equations
- RightLimitWithin S f c L = LimitWithin (S ∩ Set.Ioi c) f c L
Instances For
The left-hand limit of f at c along S, given by restricting to
S ∩ (-∞, c) and taking the limit as x → c.
Equations
- LeftLimitWithin S f c L = LimitWithin (S ∩ Set.Iio c) f c L
Instances For
Right-hand limits coincide with mathlib's Tendsto along the 𝓝 within
the right half-neighborhood.
Left-hand limits coincide with mathlib's Tendsto along the 𝓝 within
the left half-neighborhood.
Proposition 3.1.17: If c is a cluster point of both S ∩ (-∞, c) and
S ∩ (c, ∞), then c is a cluster point of S, and f(x) → L as x → c
within S iff both the left-hand and right-hand limits along S equal L.