* [[AMATH 516 Numerical Optimizations/Background/Local, Global Lipschitz Continuity]] * [[Characterizing Functions for Optimizations]] * [[Subgradients Intro]] --- ### **Intro** In this file we provide proof the theorem listed in: [[../Major Results/CONVEX FUNCTION CENTRAL HUB#Continuity of Closed Convex Functions| Convex Function Central Hub]]. To prove it, we need to use the lemma: [[Bounded Subgradient Lemma]], and recall the fact that in $\text{int}(\text{dom}(f))$, the subgradient from there is always nonempty and bounded. Recall that, not all convex function is Lipschitz Continuous on the closure of it's domain, but if the subgradient is bounded on all points and the function is convex, then it's Lipschitz, however the converse is not true, one of the canonical counter example is the function $-\sqrt{x}$ which is convex but it's not Lipschitz at $x = 0$. **References** --- ### **Lemma-1 | Lipschitz on one Line Segment** > Given a function $f: \mathbb R \mapsto \bar {\mathbb R}$ that is proper and proper, then the function is Lipschitz continuous for every $[x_1, x_2] \subset \text{int}\circ\text{dom}(f)$. **Proof Summary** We choose 3 points in the interior of the domain that a on the same line, and then we use the boundedness of the subgradient at those points, and subgradient inequality to bound the change of the function value wrt to the width of the line segment. **Proof 1:** Choose any line segment $[x_1, x_2]\in \text{int}\circ\text{dom}(f)$, we then paramaterize one point $x_t$ to be on the line segment: $x_t = x_1 + t(x_2 - x_1)\;\forall t \in [0, 1]$. Consider 2 supporting hyperplane at these 2 points and any $t\in (0, 1), g_1\in \partial [f](x_1), g_2 \in \partial[f](x_2)$: $ \begin{aligned} & f(x_t) \ge f(x_1) + \langle g_1, x_t - x_1\rangle \\ \implies & f(x_1) \le f(x_t) - \langle g_1, x_t - x_1\rangle \\ \implies & f(x_2)\le f(x_t)- \langle g_2, x_t - x_2\rangle \end{aligned} $ The upper bound for $f(x_1), f(x_2)$ are attained via rearranging the secant line inequality at the point $x_1, x_2$, next we consider the lower bound for the quantities with any $g_t\in \partial [f](x_t)$: $ \begin{aligned} f(x_1) &\ge f(x_t) + \langle g_t, x_1 - x_t\rangle \\ f(x_2) &\ge f(x_t) + \langle g_t, x_2 - x_t\rangle \end{aligned} $ Which uses the fact that the tagent line at $x = x_t$ can support both points $f(x_1), f(x_2)$ from below. Therefore the absolute value of $f(x_1) - f(x_2)$ can be upper bounded by the difference between the upper bound and lower bound for $f(x_1), f(x_2)$ whichever is larger: $ \begin{aligned} |f(x_1) - f(x_2)| & \le \max \left( \begin{aligned} \begin{bmatrix} f(x_t) - \langle g_1, x_t - x_1\rangle - f(x_t) - \langle g_t, x_2 - x_t\rangle \\ f(x_t) - \langle g_2, x_t - x_2\rangle - (f(x_t) + \langle g_t, x_1 - x_t\rangle) \end{bmatrix} \end{aligned} \right) \end{aligned} $ Individually we consider: $ \begin{aligned} & f(x_t) - \langle g_1, x_t - x_1\rangle - f(x_t) - \langle g_t, x_2 - x_t\rangle \\ = & - \langle g_1, t(x_2 - x_1)\rangle - \langle g_t, (1 - t)(x_2 - x_1)\rangle \\ = & \langle g_1, t(x_1 - x_2)\rangle + \langle g_t, (1 - t)(x_1 - x_2)\rangle \\ = & \langle(x_1 - x_2), tg_1 + (1 -t)g_t\rangle \\ \le& \Vert x_1 - x_2\Vert \Vert tg_1 + (1 - t)g_t\Vert \end{aligned} $ $ \begin{aligned} & f(x_t)- \langle g_2, x_t - x_2\rangle - (f(x_t) - \langle g_t, x_1 - x_t\rangle) \\ = & \langle g_2, x_t - x_2\rangle - \langle g_t, x_1 - x_t\rangle \\ = & \langle (1 - t)g_2, x_2 - x_1\rangle + \langle tg_t, x_2 - x_1\rangle \\ = & \langle (1 - t)g_2 + tg_t, x_2 - x_1\rangle \\ \le & \Vert (1 - t)g_2 + tg_t\Vert \Vert x_2 - x_1\Vert \end{aligned} $ Therefore, the difference between the function value is bounded like: $ \begin{aligned} & |f(x_1) - f(x_2)| \le \Vert x_2 - x_1\Vert\max (\Vert tg_1 + (1 - t)g_t\Vert, \Vert (1 - t)g_2 + tg_t\Vert) \\ \implies & \frac{|f(x_1) - f(x_2)|}{\Vert x_2 - x_1\Vert}\le \underbrace{\inf_{t\in (0, 1)}\left\lbrace \max (\Vert tg_1 + (1 - t)g_t\Vert, \Vert (1 - t)g_2 + tg_t\Vert) \right\rbrace}_{L(x_1, x_2)} \end{aligned} $ Which is the definition of Lipschitz Continuity for the function along the line segment $[x_1, x_2]$. Finally, we make use of the fact that because $x_1, x_1$ are from the interior of the domain of the function, it's subgradient is always bounded, hence, the Lipschitz constant is also bounded. **Remarks** * The generality of the lemma is kept by treating the points and the gradient of functions at any 2 points using euclidean inner product. * Note, the upper boundedness depends on the point we choose, but nontheless it's bounded for points $x_1, x_2\in \text{int}\circ\text{dom}(f)$. In addition, one can choose the subgradient and $t$ to minimize the bound. * I feel like the subgradient in the middle $x_t$ dotted with vector $x_2 - x_1$ might always be between $x_1, x_2$ dotted with that same vector, because it's evident when you draw it out, the slope in the middle on the line segment should be in between the slow of the boundary point if the function is convex. * In reply to this, it's indeed true and it's part of the monotone properties of convex subdifferential operator, see [[Monotonicity of Subgradient]] for more information. To apply the theorem, we need to reconsider: $\langle g_1, t(x_1 - x_2)\rangle + \langle g_t, (1 - t)(x_1 - x_2)\rangle$ using the monotonicity of the subgradient over interior line interval: $[x_1, x_2]$. **Comments** I made the proof myself I don't know how legit it is. But it's consistent with other results that I obtained. **Proof 2**: Choose any line segment $[x_1, x_2]\in \text{int}\circ\text{dom}(f)$. This is possible because the function is convex. We consider the subgradient $v_1\in \partial [f](x_1), v_2 \in \partial[f](x_2)$, we have: $ \begin{aligned} & f(x_1) - f(x_2) \ge \langle v_2, x_1 - x_2\rangle \\ &f(x_2) - f(x_1) \ge \langle v_1, x_2 - x_2\rangle \\ \implies & \langle v_2, x_1 - x_2\rangle \le f(x_1) - f(x_2) \le \langle v_1, x_1 - x_2\rangle \end{aligned} $ $ \begin{aligned} \implies \frac{|f(x_1) - f(x_2)|}{\Vert x_1 - x_2\Vert} &\le \frac{\max(|\langle v_2, x_1 - x_2\rangle|, |\langle v_1, x_1 - x_2\rangle|)}{\Vert x_1 - x_2\Vert} \\ & \le \max(\Vert v_1\Vert, \Vert v_2\Vert), \end{aligned} $ Minimizing the RHS gives a Lipschitz constant of: $ \begin{aligned} L(x_1, x_2) = \inf_{v_1\in \partial[f](x_1), v_2 \in \partial[f](x_2)}\max(\Vert v_1\Vert, \Vert v_2\Vert), \end{aligned} $ Apply the bounded subgradient lemma yields the desired results. **Remarks** The second proof provides a bound that is tighter compare to the bound of the first one. Take note that, by choosing the $t\in [0, 1]$, I conjecture that the bound in the first proof will be the same as the bound in the second proof. **Comments** This proof is better. --- ### **Locally Lipschitz In Higher Dimensions** Unfortunately, continuity on a line segment is not the same as continuity in a point $x$ and it's neighborhood $\mathcal (x)$. Here we define $\mathbb B$ to be the unit norm ball around $\mathbf 0$ the origin. Continuity on a line segment is strictly a weaker condition. Therefore we will prove a strong version of the above theorem. This part is taken from Prof Wang's teaching of MATH 564 at UBCO. The virtue of Professor Wang's proof is because he didn't use subgradient. #### **Lemma | Convex function is Bounded if and only if It's Locally Lipschitz** > Let $f:\mathbb R^n \rightarrow \mathbb R$ be a convex function, then the following condition is equivalent. > 1. Function $f$ is locally Lipschitz $z \in \text{int.dom}(f)$. > 2. Function $f$ is bounded from above around the neighbourhood $\mathbb B_\epsilon(z)$. **Proof** To see that (1.) implies (2.), we directly choose any $x, y \in \mathbb B_\epsilon (z)$ then by a function being Locally Lipschitz we have: $ \begin{aligned} |f(x)- f(y)| &\le K \Vert x - y \Vert \\ & = \Vert x- z- y + z\Vert \\ &\le \Vert x - z\Vert + \Vert y - z\Vert \\ &\le 2\epsilon. \end{aligned} $ The inequality holds because the distance between the 2 points in the balls is limited by the diameter of the ball. No convexity is involved for this direction. To show that (2.) implies (1.). Without lose of generality, we assume that there exists $\mathbf 0 \in \text{int.dom}(f)$. We also assume that $f(z) = 0$, and $z = 0$. This can be done WOLG by the translational argument $g(x) = f(x - z) - z$. Assume that $f < \beta$ is bounded in the neighbourhood $2\epsilon \mathbb B$ around the origin for some $\epsilon > 0$. Using the convexity we would have $ \begin{aligned} 0 = f(0) &\le \frac{1}{2}f(x) + \frac{1}{2}f(-x) \\ &\le \frac{1}{2}f(x) + \frac{1}{2}\beta \\ \implies -\beta &\le f(x). \end{aligned} $ Therefore $f$ is also bounded below by $\beta$. Choose any $x, y \in \epsilon \mathbb B$, define $\alpha = \Vert x - y\Vert$. Let $w = y + \epsilon \alpha^{-1}(y - x)$. To visualize it, $w$ is the point starting at $x$ in side of $2\epsilon \mathbb B$, walk in the direction of $y - x$ for a distance of $\epsilon$. Then obviously $ \begin{aligned} \Vert w\Vert &\le \Vert y\Vert + \epsilon \alpha^{-1}\Vert y - x\Vert \le 2\epsilon. \end{aligned} $ Therefore $w\in 2\epsilon \mathbb B$, and $f(w)$ would be bounded by $\pm \beta$ as well. After rearranging the convex combinations between $w, x, y$, the vector $y$ has a convex combinations represented by $w, x$: $ \begin{aligned} y &= \frac{\alpha}{\alpha + \epsilon}w + \frac{\epsilon}{\alpha + \epsilon} x. \end{aligned} $ Now we use convexity of $f$ on $y$, then subtracting $f(x)$ on both side of the Jensen's Inequality we have $ \begin{aligned} f(y) - f(x) &\le \frac{\alpha }{\alpha + \epsilon}f(w) + \frac{\epsilon}{\alpha +\epsilon}f(x) - f(x) \\ &= \frac{\alpha}{\alpha + \epsilon}(f(w) - f(x)) \\ &\le \frac{\alpha}{\alpha + \epsilon}2 \beta \quad \text{recall: } f(x), f(w)\in [-\beta, \beta]. \\ &\le \frac{2\beta}{\epsilon} \Vert x - y\Vert. \end{aligned} $ Since the choice of $x, y$ is arbitrary, swapping then with each other we will find $-\frac{2\beta}{\epsilon}\Vert x - y\Vert$ gives the lower bound as well. Therefore $|f(y) - f(x)|\le \frac{2\beta}{\epsilon}\Vert x - y\Vert$ for all $x, y \in 2\epsilon \mathbb B$. This is the definition of Locally Lipschitz continuity around $\mathbb 0$. **Remarks** Argument can be conducted for the relative interior of the function through [Accessibility Lemma](AMATH%20516%20Numerical%20Optimizations/CVX%20Analysis/Accessibility%20Lemma.md). #### **Lemma | Convex Function on a Simplex is Bounded** > Let $f: \mathbb R^n\mapsto \mathbb R$ be a convex function with $\text{dom}(f) = \Delta_n$, where $\Delta_n = \{x \in \mathbb R^n_+ | \sum_{i = 1}^{n}x_i \le 1\}$. Then $f$ is lo **Proof** --- ### **Corollary | Proper Convex function is Locally Lipschitz in its Relative Interior** **Source**: Presented as Corollary 3.53 in Dimitry's Course notes AMATH 516, 2021 FALL, page: 74. For a classical reference, consult Rockafellar's convex analysis section 10, continuity of a convex function.