Left and right limits #
We define the (strict) left and right limits of a function.
leftLim f x
is the strict left limit off
atx
(usingf x
as a garbage value ifx
is isolated to its left).rightLim f x
is the strict right limit off
atx
(usingf x
as a garbage value ifx
is isolated to its right).
We develop a comprehensive API for monotone functions. Notably,
Monotone.continuousAt_iff_leftLim_eq_rightLim
states that a monotone function is continuous at a point if and only if its left and right limits coincide.Monotone.countable_not_continuousAt
asserts that a monotone function taking values in a second-countable space has at most countably many discontinuity points.
We also port the API to antitone functions.
TODO #
Prove corresponding stronger results for StrictMono
and StrictAnti
functions.
Let f : α → β
be a function from a linear order α
to a topological space β
, and
let a : α
. The limit strictly to the left of f
at a
, denoted with leftLim f a
, is defined
by using the order topology on α
. If a
is isolated to its left or the function has no left
limit, we use f a
instead to guarantee a good behavior in most cases.
Equations
- Function.leftLim f a = if nhdsWithin a (Set.Iio a) = ⊥ ∨ ¬∃ (y : β), Filter.Tendsto f (nhdsWithin a (Set.Iio a)) (nhds y) then f a else limUnder (nhdsWithin a (Set.Iio a)) f
Instances For
Let f : α → β
be a function from a linear order α
to a topological space β
, and
let a : α
. The limit strictly to the right of f
at a
, denoted with rightLim f a
, is defined
by using the order topology on α
. If a
is isolated to its right or the function has no right
limit, , we use f a
instead to guarantee a good behavior in most cases.
Equations
- Function.rightLim f a = Function.leftLim f a
Instances For
A monotone function is continuous to the left at a point if and only if its left limit coincides with the value of the function.
A monotone function is continuous to the right at a point if and only if its right limit coincides with the value of the function.
A monotone function is continuous at a point if and only if its left and right limits coincide.
In a second countable space, the set of points where a monotone function is not right-continuous
is at most countable. Superseded by countable_not_continuousAt
which gives the two-sided
version.
In a second countable space, the set of points where a monotone function is not left-continuous
is at most countable. Superseded by countable_not_continuousAt
which gives the two-sided
version.
In a second countable space, the set of points where a monotone function is not continuous is at most countable.
An antitone function is continuous to the left at a point if and only if its left limit coincides with the value of the function.
An antitone function is continuous to the right at a point if and only if its right limit coincides with the value of the function.
An antitone function is continuous at a point if and only if its left and right limits coincide.
In a second countable space, the set of points where an antitone function is not continuous is at most countable.