Functions of bounded variation #
We study functions of bounded variation. In particular, we show that a bounded variation function is a difference of monotone functions, and differentiable almost everywhere. This implies that Lipschitz functions from the real line into finite-dimensional vector space are also differentiable almost everywhere.
Main definitions and results #
eVariationOn f sis the total variation of the functionfon the sets, inℝ≥0∞.BoundedVariationOn f sregisters that the variation offonsis finite.LocallyBoundedVariationOn f sregisters thatfhas finite variation on any compact subinterval ofs.variationOnFromTo f s a bis the signed variation offons ∩ Icc a b, converted toℝ.eVariationOn.Icc_add_Iccstates that the variation offon[a, c]is the sum of its variations on[a, b]and[b, c].LocallyBoundedVariationOn.exists_monotoneOn_sub_monotoneOnproves that a function with locally bounded variation is the difference of two monotone functions.LipschitzWith.locallyBoundedVariationOnshows that a Lipschitz function has locally bounded variation.
We also give several variations around these results.
Implementation #
We define the variation as an extended nonnegative real, to allow for infinite variation. This makes
it possible to use the complete linear order structure of ℝ≥0∞. The proofs would be much
more tedious with an ℝ-valued or ℝ≥0-valued variation, since one would always need to check
that the sets one uses are nonempty and bounded above as these are only conditionally complete.
The (extended-real-valued) variation of a function f on a set s inside a linear order is
the supremum of the sum of edist (f (u (i+1))) (f (u i)) over all finite increasing
sequences u in s.
Equations
Instances For
A function has bounded variation on a set s if its total variation there is finite.
Equations
- BoundedVariationOn f s = (eVariationOn f s ≠ ⊤)
Instances For
A function has locally bounded variation on a set s if, given any interval [a, b] with
endpoints in s, then the function has finite variation on s ∩ [a, b].
Equations
- LocallyBoundedVariationOn f s = ∀ (a b : α), a ∈ s → b ∈ s → BoundedVariationOn f (s ∩ Set.Icc a b)
Instances For
Basic computations of variation #
The variation can be expressed using strictly monotone functions. This formulation is often less convenient than the one with monotone functions as it involves dependent types, but it is sometimes handy.
The map (eVariationOn · s) is lower semicontinuous for pointwise convergence on s.
Pointwise convergence on s is encoded here as uniform convergence on the family consisting of the
singletons of elements of s.
The map (eVariationOn · s) is lower semicontinuous for uniform convergence on s.
Consider a monotone function u parameterizing some points of a set s. Given x ∈ s, then
one can find another monotone function v parameterizing the same points as u, with x added.
In particular, the variation of a function along u is bounded by its variation along v.
The variation of a function on the union of two sets s and t, with s to the left of t,
bounds the sum of the variations along s and t.
If a set s is to the left of a set t, and both contain the boundary point x, then
the variation of f along s ∪ t is the sum of the variations.
Composition of bounded variation functions with monotone functions #
Left and right limits of bounded variation functions #
If a function is continuous on the left at a point a, then its variations on Iio a and
on Iic a coincide. We give a version relative to a set s.
If a function is continuous on the right at a point a, then its variations on Ioi a and
on Ici a coincide. We give a version relative to a set s.
If a function has bounded variation, then the variation on closed semi-infinite intervals
tends to 0. We give a version with a generic filter, that applies both to left-neighborhoods of
points and to atTop.
A bounded variation function has a limit on its left within a set. Version with a general
filter, covering both left neighborhoods of points and atTop.
If a function has bounded variation, then the variation on small closed-open
intervals to the left of any point tends to 0.
If a function has bounded variation, then the variation on small open-closed
intervals to the right of any point tends to 0.
If a function has bounded variation and is left-continuous at a point, then the variation on
small closed intervals to the left of this point tends to 0.
If a function has bounded variation and is right-continuous at a point, then the variation on
small closed intervals to the right of this point tends to 0.
A bounded variation function has a limit on its left within a set.
A bounded variation function has a limit on its right within a set.
A bounded variation function tends to its left-limit on its left.
A bounded variation function tends to its right-limit on its right.
Limits of bounded variation functions as ± ∞ #
If a function has bounded variation, then the variation on closed semi-infinite
intervals tends to 0 at +∞.
If a function has bounded variation, then the variation on semi-infinite closed
intervals tends to 0 at -∞.
A bounded variation function has a limit at +∞.
A bounded variation function has a limit at -∞.
Variation of monotone functions #
The signed variation of f on the interval Icc a b intersected with the set s,
squashed to a real (therefore only really meaningful if the variation is finite)
Equations
- variationOnFromTo f s a b = if a ≤ b then (eVariationOn f (s ∩ Set.Icc a b)).toReal else -(eVariationOn f (s ∩ Set.Icc b a)).toReal
Instances For
If a real-valued function has bounded variation on a set, then it is a difference of monotone functions there.