A function $f$ satisfies the Lipschitz condition on $[a,b]$ iff for all $\epsilon >0$ there exists $\delta>0$ for which the following is true: For all families $\{[a_k,b_k]\}_{k=1}^n$ of closed intervals in $[a,b]$ with $\sum_{k=1}^n b_k-a_k < \delta$ $$ \sum_{k=1}^n |f(b_k)-f(a_k)| < \epsilon $$
Please, can someone give me some hints to prove this statement? In particular I need help to prove that the condition I wrote implies the Lipschitz continuity. Actually, in this case, I also should prove it taking the intervals open and not closed.
Let $f \colon [a,b] \to \mathbb{R}$ be a function. Recall that $f$ is Lipschitz continuous if and only if there is some constant $C > 0$ such that $$\lvert f(x_2) - f(x_1) \rvert < C \lvert x_2 - x_1 \rvert.$$ In what follows, we say that $f$ has the closed subintervals property if and only if, for every $\varepsilon > 0$, there exists $\delta > 0$ such that $$\sum_{k=1}^n \lvert f(b_k) - f(a_k) \rvert < \varepsilon$$ for any collection of $n$ closed subintervals of $[a,b]$ $(n \in \mathbb{N})$.
So, we want to prove that $f$ is Lipschitz continuous if and only if $f$ has de closed subintervals property.
$(\Longrightarrow)$ Suppose that $f$ is Lipschitz continuous. By definition, there is a constant $C > 0$ such that $$\lvert f(x_2) - f(x_1) \rvert < C \lvert x_2 - x_1 \rvert$$ for any $x_1, x_2 \in [a,b]$. Let $\varepsilon$ be an arbitrary positive real number.
(The rest of the proof is hidden in the following block).
$(\Longleftarrow)$ Suppose that $f$ is not Lipschitz continuous.
(As above, the rest of the proof is hidden in the following block).