The areas / V13. General topology
Mathlib.Topology.EMetricSpace.VariationOnFromTo
32 declarations. Mathlib docs · Source
Signed variation
We define variationOnFromTo f s a b : ℝ as the signed variation of f between a and b, i.e.,
its variation if a ≤ b, and its opposite otherwise. We establish basic properties of this notion,
and use it to show that a bounded variation real function is the difference of two monotone
functions.
def variationOnFromTo E1 #
{α : Type u_1} →
[LinearOrder α] →
{E : Type u_2} → [inst : TopologicalSpace E] → [WeakPseudoEMetricSpace E] → (α → E) → Set α → α → α → ℝ
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)
theorem variationOnFromTo.self E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {E : Type u_2} [inst_1 : TopologicalSpace E] [inst_2 : WeakPseudoEMetricSpace E]
(f : α → E) (s : Set α) (a : α), variationOnFromTo f s a a = 0
theorem variationOnFromTo.nonneg_of_le E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {E : Type u_2} [inst_1 : TopologicalSpace E] [inst_2 : WeakPseudoEMetricSpace E]
(f : α → E) (s : Set α) {a b : α}, a ≤ b → 0 ≤ variationOnFromTo f s a b
theorem variationOnFromTo.nonpos_of_ge E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {E : Type u_2} [inst_1 : TopologicalSpace E] [inst_2 : WeakPseudoEMetricSpace E]
(f : α → E) (s : Set α) {a b : α}, b ≤ a → variationOnFromTo f s a b ≤ 0
theorem variationOnFromTo.abs_le_eVariationOn E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {E : Type u_2} [inst_1 : TopologicalSpace E] [inst_2 : WeakPseudoEMetricSpace E]
{f : α → E} {s : Set α}, BoundedVariationOn f s → ∀ {a b : α}, |variationOnFromTo f s a b| ≤ (eVariationOn f s).toReal
theorem variationOnFromTo.add E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {E : Type u_2} [inst_1 : TopologicalSpace E] [inst_2 : WeakPseudoEMetricSpace E]
{f : α → E} {s : Set α},
LocallyBoundedVariationOn f s →
∀ {a b c : α},
a ∈ s → b ∈ s → c ∈ s → variationOnFromTo f s a b + variationOnFromTo f s b c = variationOnFromTo f s a c
theorem variationOnFromTo.sub_right E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {E : Type u_2} [inst_1 : TopologicalSpace E] [inst_2 : WeakPseudoEMetricSpace E]
{f : α → E} {s : Set α},
LocallyBoundedVariationOn f s →
∀ {a b c : α},
a ∈ s → b ∈ s → c ∈ s → variationOnFromTo f s a b - variationOnFromTo f s a c = variationOnFromTo f s c b
theorem variationOnFromTo.sub_left E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {E : Type u_2} [inst_1 : TopologicalSpace E] [inst_2 : WeakPseudoEMetricSpace E]
{f : α → E} {s : Set α},
LocallyBoundedVariationOn f s →
∀ {a b c : α},
a ∈ s → b ∈ s → c ∈ s → variationOnFromTo f s a b - variationOnFromTo f s c b = variationOnFromTo f s a c
theorem variationOnFromTo.edist_zero_of_eq_zero E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {E : Type u_2} [inst_1 : TopologicalSpace E] [inst_2 : WeakPseudoEMetricSpace E]
{f : α → E} {s : Set α},
LocallyBoundedVariationOn f s → ∀ {a b : α}, a ∈ s → b ∈ s → variationOnFromTo f s a b = 0 → edist (f a) (f b) = 0
theorem variationOnFromTo.monotoneOn E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {E : Type u_2} [inst_1 : TopologicalSpace E] [inst_2 : WeakPseudoEMetricSpace E]
{f : α → E} {s : Set α}, LocallyBoundedVariationOn f s → ∀ {a : α}, a ∈ s → MonotoneOn (variationOnFromTo f s a) s
theorem variationOnFromTo.antitoneOn E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {E : Type u_2} [inst_1 : TopologicalSpace E] [inst_2 : WeakPseudoEMetricSpace E]
{f : α → E} {s : Set α},
LocallyBoundedVariationOn f s → ∀ {b : α}, b ∈ s → AntitoneOn (fun a ↦ variationOnFromTo f s a b) s
theorem variationOnFromTo.abs_sub_le_sub_of_le E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {f : α → ℝ} {s : Set α},
LocallyBoundedVariationOn f s →
∀ {a b c : α}, a ∈ s → b ∈ s → c ∈ s → b ≤ c → |f c - f b| ≤ variationOnFromTo f s a c - variationOnFromTo f s a b
theorem variationOnFromTo.add_self_monotoneOn E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {f : α → ℝ} {s : Set α},
LocallyBoundedVariationOn f s → ∀ {a : α}, a ∈ s → MonotoneOn (variationOnFromTo f s a + f) s
theorem variationOnFromTo.sub_self_monotoneOn E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {f : α → ℝ} {s : Set α},
LocallyBoundedVariationOn f s → ∀ {a : α}, a ∈ s → MonotoneOn (variationOnFromTo f s a - f) s
theorem variationOnFromTo.comp_eq_of_monotoneOn E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {E : Type u_2} [inst_1 : TopologicalSpace E] [inst_2 : WeakPseudoEMetricSpace E]
{β : Type u_4} [inst_3 : LinearOrder β] (f : α → E) {t : Set β} (φ : β → α),
MonotoneOn φ t →
∀ {x y : β}, x ∈ t → y ∈ t → variationOnFromTo (f ∘ φ) t x y = variationOnFromTo f (φ '' t) (φ x) (φ y)
theorem variationOnFromTo.tendsto_left E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {s : Set α} {E : Type u_4} [inst_1 : PseudoMetricSpace E]
[inst_2 : TopologicalSpace α] [OrderTopology α] {f : α → E} {l : E} {a b : α},
a ∈ s →
b ∈ s →
LocallyBoundedVariationOn f s →
Filter.Tendsto f (nhdsWithin b (s ∩ Set.Iio b)) (nhds l) →
Filter.Tendsto (variationOnFromTo f s a) (nhdsWithin b (s ∩ Set.Iio b))
(nhds (variationOnFromTo f s a b - dist (f b) l))
The jump of variationOnFromTo on the left of a point is given by the distance between the
left limit and the value of the function.
theorem variationOnFromTo.tendsto_right E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {s : Set α} {E : Type u_4} [inst_1 : PseudoMetricSpace E]
[inst_2 : TopologicalSpace α] [OrderTopology α] {f : α → E} {l : E} {a b : α},
a ∈ s →
b ∈ s →
LocallyBoundedVariationOn f s →
Filter.Tendsto f (nhdsWithin b (s ∩ Set.Ioi b)) (nhds l) →
Filter.Tendsto (variationOnFromTo f s a) (nhdsWithin b (s ∩ Set.Ioi b))
(nhds (variationOnFromTo f s a b + dist (f b) l))
The jump of variationOnFromTo on the right of a point is given by the distance between the
right limit and the value of the function.
theorem variationOnFromTo.leftLim_eq E0 #
∀ {α : Type u_1} [inst : LinearOrder α] {E : Type u_4} [inst_1 : PseudoMetricSpace E] [CompleteSpace E] {f : α → E}
{a b : α},
BoundedVariationOn f Set.univ →
Function.leftLim (variationOnFromTo f Set.univ a) b =
variationOnFromTo f Set.univ a b - dist (f b) (Function.leftLim f b)
The jump of variationOnFromTo on the left of a point is given by the distance between the
left limit and the value of the function.
theorem variationOnFromTo.rightLim_eq E0 #
∀ {α : Type u_1} [inst : LinearOrder α] {E : Type u_4} [inst_1 : PseudoMetricSpace E] [CompleteSpace E] {f : α → E}
{a b : α},
BoundedVariationOn f Set.univ →
Function.rightLim (variationOnFromTo f Set.univ a) b =
variationOnFromTo f Set.univ a b + dist (f b) (Function.rightLim f b)
The jump of variationOnFromTo on the right of a point is given by the distance between the
right limit and the value of the function.
theorem BoundedVariationOn.continuousWithinAt_variationOnFromTo_inter_Ici E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {M : Type u_3} [inst_1 : PseudoEMetricSpace M] [inst_2 : TopologicalSpace α]
[OrderTopology α] {s : Set α} {g : α → M},
BoundedVariationOn g s →
∀ {a x : α},
a ∈ s →
x ∈ s → ContinuousWithinAt g (s ∩ Set.Ici x) x → ContinuousWithinAt (variationOnFromTo g s a) (s ∩ Set.Ici x) x
theorem BoundedVariationOn.continuousWithinAt_variationOnFromTo_inter_Ici_iff E0 #
∀ {α : Type u_1} [inst : LinearOrder α] {M : Type u_3} [inst_1 : PseudoEMetricSpace M] [inst_2 : TopologicalSpace α]
[OrderTopology α] {s : Set α} {g : α → M},
BoundedVariationOn g s →
∀ {a x : α},
a ∈ s →
x ∈ s →
(ContinuousWithinAt (variationOnFromTo g s a) (s ∩ Set.Ici x) x ↔ ContinuousWithinAt g (s ∩ Set.Ici x) x)
theorem BoundedVariationOn.continuousWithinAt_variationOnFromTo_Ici E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {M : Type u_3} [inst_1 : PseudoEMetricSpace M] [inst_2 : TopologicalSpace α]
[OrderTopology α] {g : α → M},
BoundedVariationOn g Set.univ →
∀ {a x : α}, ContinuousWithinAt g (Set.Ici x) x → ContinuousWithinAt (variationOnFromTo g Set.univ a) (Set.Ici x) x
theorem BoundedVariationOn.continuousWithinAt_variationOnFromTo_rightLim_Ici E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {M : Type u_3} [inst_1 : PseudoEMetricSpace M] [inst_2 : TopologicalSpace α]
[OrderTopology α] {g : α → M} [T3Space M] [CompleteSpace M],
BoundedVariationOn g Set.univ →
∀ {a x : α}, ContinuousWithinAt (variationOnFromTo (Function.rightLim g) Set.univ a) (Set.Ici x) x
theorem BoundedVariationOn.continuousWithinAt_variationOnFromTo_inter_Iic E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {M : Type u_3} [inst_1 : PseudoEMetricSpace M] [inst_2 : TopologicalSpace α]
[OrderTopology α] {s : Set α} {g : α → M},
BoundedVariationOn g s →
∀ {a x : α},
a ∈ s →
x ∈ s → ContinuousWithinAt g (s ∩ Set.Iic x) x → ContinuousWithinAt (variationOnFromTo g s a) (s ∩ Set.Iic x) x
theorem BoundedVariationOn.continuousWithinAt_variationOnFromTo_inter_Iic_iff E0 #
∀ {α : Type u_1} [inst : LinearOrder α] {M : Type u_3} [inst_1 : PseudoEMetricSpace M] [inst_2 : TopologicalSpace α]
[OrderTopology α] {s : Set α} {g : α → M},
BoundedVariationOn g s →
∀ {a x : α},
a ∈ s →
x ∈ s →
(ContinuousWithinAt (variationOnFromTo g s a) (s ∩ Set.Iic x) x ↔ ContinuousWithinAt g (s ∩ Set.Iic x) x)
theorem BoundedVariationOn.continuousWithinAt_variationOnFromTo_Iic E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {M : Type u_3} [inst_1 : PseudoEMetricSpace M] [inst_2 : TopologicalSpace α]
[OrderTopology α] {g : α → M},
BoundedVariationOn g Set.univ →
∀ {a x : α}, ContinuousWithinAt g (Set.Iic x) x → ContinuousWithinAt (variationOnFromTo g Set.univ a) (Set.Iic x) x
theorem BoundedVariationOn.continuousWithinAt_variationOnFromTo_leftLim_Iic E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {M : Type u_3} [inst_1 : PseudoEMetricSpace M] [inst_2 : TopologicalSpace α]
[OrderTopology α] {g : α → M} [T3Space M] [CompleteSpace M],
BoundedVariationOn g Set.univ →
∀ {a x : α}, ContinuousWithinAt (variationOnFromTo (Function.leftLim g) Set.univ a) (Set.Iic x) x
theorem BoundedVariationOn.continuousWithinAt_variationOnFromTo_iff E0 #
∀ {α : Type u_1} [inst : LinearOrder α] {M : Type u_3} [inst_1 : PseudoEMetricSpace M] [inst_2 : TopologicalSpace α]
[OrderTopology α] {s : Set α} {g : α → M},
BoundedVariationOn g s →
∀ {a x : α}, a ∈ s → x ∈ s → (ContinuousWithinAt (variationOnFromTo g s a) s x ↔ ContinuousWithinAt g s x)
theorem BoundedVariationOn.continuousAt_variationOnFromTo_iff E0 #
∀ {α : Type u_1} [inst : LinearOrder α] {M : Type u_3} [inst_1 : PseudoEMetricSpace M] [inst_2 : TopologicalSpace α]
[OrderTopology α] {g : α → M},
BoundedVariationOn g Set.univ → ∀ (a x : α), ContinuousAt (variationOnFromTo g Set.univ a) x ↔ ContinuousAt g x
theorem BoundedVariationOn.countable_not_continuousAt E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {M : Type u_3} [inst_1 : PseudoEMetricSpace M] [inst_2 : TopologicalSpace α]
[OrderTopology α] {g : α → M}, BoundedVariationOn g Set.univ → {x | ¬ContinuousAt g x}.Countable
theorem LocallyBoundedVariationOn.exists_monotoneOn_sub_monotoneOn' E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {f : α → ℝ} {s : Set α},
LocallyBoundedVariationOn f s →
∃ p q,
MonotoneOn p s ∧
MonotoneOn q s ∧ f = p - q ∧ ∀ x ∈ s, ∀ y ∈ s, p y - p x + (q y - q x) = variationOnFromTo f s x y
If a real-valued function has bounded variation on a set, then it is a difference of monotone
functions there. Moreover, one can make sure that the two monotone functions add up to the
variation of f.
theorem LocallyBoundedVariationOn.exists_monotoneOn_sub_monotoneOn E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {f : α → ℝ} {s : Set α},
LocallyBoundedVariationOn f s → ∃ p q, MonotoneOn p s ∧ MonotoneOn q s ∧ f = p - q
If a real-valued function has bounded variation on a set, then it is a difference of monotone functions there.