A function that is monotone near every point of is monotone on
ProvedHryniewiczCriterion.monotoneOn_Icc_of_forall_localanalysis
Let and . Suppose every has a such that whenever both lie in . Then is monotone on . No continuity of is assumed (it is applied to integer-valued functions). Proof idea: the balls cover the compact ; with a Lebesgue number , any two points of at distance lie in one ball, and is crossed in steps of length .
Preamble
import Mathlib.Data.Real.Basic
Formal statement
theorem HryniewiczCriterion.monotoneOn_Icc_of_forall_local {E : ℝ → ℝ} {T : ℝ}
(h : ∀ t0 ∈ Set.Icc 0 T, ∃ δ > 0, ∀ s t, s ∈ Set.Icc 0 T → t ∈ Set.Icc 0 T →
|s - t0| < δ → |t - t0| < δ → s ≤ t → E s ≤ E t) :
MonotoneOn E (Set.Icc 0 T) := by sorrySource
Elementary (Lebesgue number lemma); used for the local-to-global monotonicity of the eigen-angle defect in the proof of HryniewiczCriterion.positive_unitary_path_eigenAngleSum_le.