1. Introduction
The process of extending a real function
where
S is a subset of a metric space
M, to the whole space
M can be approached from different perspectives. For example, assuming a linear structure on
M (i.e.,
M is a normed space), the Hahn–Banach theorem states that if
S is a vector subspace of
M and
f is linear and continuous on
S,
f can be extended to a linear and continuous functional
. Moreover, the norm of the functional is preserved, such that
. On the other hand, the classical McShane–Whitney theorem gives the Lipschitz counterpart of this result. If
M is just a metric space and
is a Lipschitz map (no linearity involved), we can always find an extension of
f to
M preserving the Lipschitz constant [
1,
2].
There is a large class of variants of extension theorems for continuous and Lipschitz maps, which aim to cover different requirements on the results obtained. From the theoretical point of view, it is a first order problem to know under which requirements it is possible to find an extension of real-valued functions preserving some continuity property, e.g., continuity, uniform continuity, Lipschitz, etc. Let us expose some results in this direction. The classical Tietze theorem states that, given a normal topological space
if
S is a closed subset of
X and
is continuous, then there exists a continuous extension
of
and it can be chosen in such a way that
on
X [
3]. In this case, continuity and point-wise bounds are preserved, but nothing is said about the extension procedure. In this direction, more recent results are known. For example, the next result is due to Matoušková (see [
4] and also [
5]). Let
be a compact Hausdorff metric space,
d a
–lower semicontinuous metric on
X, and
a
–closed set. Suppose that there is a real-valued continuous function
g in
S such that it is also Lipschitz with respect to
Then there exists a continuous function
f on
X that extends
g and
and
f is also Lipschitz with the same Lipschitz constant as
Thus, continuity, the Lipschitz constant as well as point-wise bounds are preserved. When the analysis is restricted to subsets of Euclidean spaces, stronger results can be obtained. For example, for the case of non-expansive maps
in subsets
S of Euclidean spaces (that is, functions
such that
for
), we have the next result by Kopecká [
6], [Th. 1.3] : let
X be a Euclidean space and let
be a compact subset. Then there exists a uniformly continuous function
such that, if
then
and if
f is Lipschitz, then
is also Lipschitz with the same Lipschitz constant.
All these extension results have the common property of belonging to abstract existence. None of them provide effective computational procedures or explicit formulas. However, Lipschitz extensions have become a fundamental tool in many disciplines that are experiencing a strong growth in recent years, such as artificial intelligence (see, for example, [
7,
8,
9,
10,
11,
12]); thus, applied approaches are also needed.
In the present paper, we are interested in showing some explicit formulas to give concrete extensions satisfying certain Lipschitz-type inequalities. From this applied point of view, we have as a main reference the method of Oberman [
13] and Milman [
14]. This procedure minimizes for each
the maximum slope of the segment from
to any
with
(see
Figure 1). The slope is given by
For any possible value
that we could assign to
the maximum value of the slope is given by
The proposed extension is then given by
. Since we want to define an extension of
f, for each
, we define
. In [
13], it is shown that it can be explicitly computed, and important properties about the extension are also proven, such as that it preserves the Lipschitz constant (see also [
14]).
Our idea in this paper is to study the extension of
f defined as follows. For each
we minimize, instead of the maximum, an “integral
–average” of the slopes of the segment from
to any of the values of
with
. To compute this “
p–average”, we consider a probability Borel measure on
S,
, and fix
. That is,
This will be explained in
Section 3. We intend to introduce some smoothing elements into the extensions in this way; this property has become an important feature in recent research on the subject, both from a theoretical and applied point of view (see, for example, [
7,
15]). In
Section 3.1, we will see that the above minimization problem for
(when
S is compact and
f is integrable) can be solved explicitly for
The solution is given by the equation
However, this article also has a more theoretical purpose. We show that the method explained above can be integrated into a more general framework for the extension of continuous maps defined on compact subsets of metric spaces. This is done in
Section 2. In order to do so, if
is a metric space and
we intend to find a suitable extension of
f to
M preserving some natural constant associated with Lipschitz-type inequalities. Let us first recall some basic concepts. If
S is a compact set, we write
for the associated Borel
–algebra. As usual, we will denote by
the Banach space of real-valued measures of bounded variation and by
the Banach space of real-valued continuous functions. Recall that
can be identified as the dual space of
via the Riesz representation theorem; that is,
If
is the Lebesgue space of
-integrable functions. Recall that a measure
is
–continuous (or absolutely continuous with respect to
) if
implies
for every
If
we write as usual
for the Dirac delta measure.
Our idea is to consider the function we want to extend as a functional acting on the elements of a characteristic subset of its topological (linear) dual space: the space of regular Borel measures The subset of all the probability regular Borel measures on S will be used instead when the normalization is required.
Using the duality, we can write a Lipschitz-type inequality as a composition of two elements,
- 1.
A map , that relates each element x of M with a measure ;
- 2.
The function being understood as an element of the pre-dual of
The inequality is
It is easy to see that this definition makes sense for trivial cases; for instance, if we take
and
as the representation map, we have that
gives the standard Lipschitz inequality for
Finally, we analyze a particular class of average extensions in
Section 4 as an application. We call them ellipsoidal measure extensions; we show some Lipschitz-type properties for this class and some examples. We refer to [
16] for general issues on Lipschitz functions, ref. [
17] for the definitions and results on functional analysis that are used, and [
18] for the abstract concepts on topology.
2. Duality on and Measure-Based Extension of Continuous Functions
In this section, we present the main results and show some basic examples of our proposed extension of continuous maps from compact subsets of metric spaces. Then, we will show in later sections some particular types of extensions that conform to this abstract scheme, mainly the mean slope extension that we explained in the Introduction. We will demonstrate that duality over the space of continuous functions provides a useful setting for the analysis of an interesting class of Lipschitz maps.
Definition 1. Let be a metric space and consider a compact subset We say that a map given by is a measure representation.
In most cases, we will also consider a measure controlling all the measures if such a exists. That is, we will take , which satisfies that the measures are –continuous for all
If
we can always consider the dual action on
as follows. Define the integral corresponding map for
f provided by the function
given by the formula
Note that, once the subset
S has been fixed and the representation by the measure
m has been chosen, we have a linear mapping
We show in the next proposition that the continuity properties of are inherited from m. Then, under some requirements on can be chosen to be the range of
Proposition 1. Let be acontinuous function and let be a measure representation of Then,
- 1.
If m is continuous on then is continuous on x;
- 2.
If m is uniformly continuous, then is uniformly continuous;
- 3.
If m is Lipschitz, then is Lipschitz with .
Proof. All statements follow from the fact that for any
we have
thus, if
m is Lipschitz, we have
Therefore,
and so the result is proven. □
Recall that our main objective is to obtain a procedure that assigns to each a function that extends f, that is, . Let us give some formal definitions and results in this respect.
Definition 2. Let S be a compact subspace of a metric space . An extension rule is a mapping that extends the functions, that is, for each .
Proposition 2. Let be a metric space and let S be a compact subset of M. Let and let m be a measure representation of M. Then, is an extension rule if and only if
In this case, we call the mapping an integral extender map.
Proof. Fix
and observe that
preserves the value of the functions on
s if and only if
for any
. Since
, this is only possible when
and
are the same measure. □
The next theorem is a characterization of our extension procedure. We show in it that essentially, the linear extension rules, under some hypothesis, can be written in terms of an integral extender map introduced above.
Theorem 1. Let S be a compact subset of a metric space M. An extension rule is a linear isometry that preserves the constant functions if and only if there exists a measure representation with for each such that for all .
Proof. Assume first that
with
as in the statement. Clearly,
is linear, and for each
f,
extends
f (Proposition 2). To see that
is an isometry, let
Then,
To see the converse, let us define
m at each point of
M. For
, let
and for
, let
be defined as
. Since it is linear, so is
. For each
,
so
and
. Let us see that
is a positive functional. Let
denote the constant function on
S such that
. For
such that
, call
. Then,
so
. We conclude that
, so it is the value we assign to
. Thus,
. This finishes the proof. □
Note that in this result, we do not need any linear requirement of M, since the linearity of depends on the rank of the functions, which is .
Example 1. Let S be a finite subset of a metric space M, so coincides with the set of real Lipschitz functions on S. An example of extension rule is the one provided by the mean of the McShane and the Whitney formulas [1,2]. For each , this extension is defined on every by It can be easily seen that it preserves the infima and suprema of the functions; see [12]. As a consequence, it preserves the norm () and the constant functions. However, it is not of the form for any representation by a measure m, since it is non-linear. To see this, let, for example, with the Euclidean norm. Define for each the function with values and let for every . Clearly, is the constant function so its extension on is . However, which is a contradiction. Example 2. Fix a measure For every the (sometimes called Kuratowski) function is continuous, and hence, -integrable. Take the map given byfor each . Therefore, in this case, is always μ–continuous, and is the Radon–Nikodym derivative . For a function consider This formula can be used to compute a Lipschitz function . Indeed, for ,and so the map is Lipschitz and Then, the integral corresponding map maps on . It is easy to see that this formula does not preserve the values of f when applied to the elements of S. To obtain an integral extender map, following Proposition 2, we can define for and for . Then, always extends f but may not preserve any continuity property. Since this quantity never converges to 0 when . For an explicit counterexample, let with and f as the identity map on S.
Example 3. Let us show a particular case of the example above. Let be a discrete metric space, that is, if Then, Therefore, the extension of the function f on is given by a constant, the –average of its values on
Example 4. Consider the fuzzy k-nearest neighbors algorithm presented in [11]. Let S be a finite subset of the metric space M. Assume that the points in S are “fuzzy” classified on a finite number of classes, . For each and every class , denotes the “degree of membership” of the element s to the class c. The classification problem
consists of assigning to a new point the class of to which x is most likely to belong. Observe that this problem can be solved by extending the “degree of membership” functions to or the whole M. The formula presented in [11] for a general parameter m can be computed using a measure representation in the following way. Let be the normalized counting measure on and for each , define as the measure given by the Radon–Nikodym derivativewhere is the set of k nearest points to x in n is a size parameter, andis the normalization factor. Then, the resulting formula to extend each iswhich is the original formula that can be found in [11]. 3. The p–Average Slope Minimizing Extension
In this section, we explain a new method for extending functions in the context we have already fixed, which is based on the calculation of an average
-norm of the slopes defined by the point to which we intend to extend the function and the reference points. As we have explained in the Introduction, this is a mild version of the maximum slope minimization developed by Oberman [
13] and Milman [
14]. We will focus attention on the case
since the 2—average slope method gives a canonical example of measure-based extension, in which the measures
can be computed explicitly and easily. As a generalization of this case, we will devote the last section of the article to what we call ellipsoidal measure extensions.
As before,
is a metric space,
S is a compact subset, and
f is a continuous function on
The regression procedure that we propose is based on the minimization on each
of the
–average in
of the slopes of the line from
to each
, computed as
for a fixed
.
First of all, observe that the condition that S is closed and ensures that . As f is bounded, the slope function defined on S is continuous and bounded, so the integral is well-defined and finite for any . Since the functions , are strictly convex for any s, is also strictly convex and positive. This fact, together with the property that when y tends to and shows that M has a unique point in where its minimum is attained.
Then, we define the extension on a point
as
For the values
, we define
. We call this formula the
p-average-slope-minimizing extension. We can see a geometric representation of this method compared with the one that minimizes the maximum slope at each point in
Figure 1.
The minimization problem (
2) for
is equivalent to solving the equation
where
denotes the sign function. This equation may not be solvable explicitly, but it can always be solved numerically using, for example, a Newton–Raphson method. Examples of the average slope minimizing extensions are shown in
Figure 2, comparing different values of
p.
3.1. Explicit Formula for
Let us explicitly calculate the extension on
for
. Equation (
3) can be rewritten as
If we write
for the normalization constant
the unique point where
is
Clearly,
, so it is the searched value for
. We can adapt the formula to understand it as an integral extender map. Let
be the Borel measure, defined as
for each
-measurable set
A. For every
, we define
as the Dirac delta on
s. Then, the extension
F can be computed on
x (using the notation explained in the previous section) as
Observe that the “weight” function acts as the Radon–Nikodym derivative .
Remark 1. Assume now that S is a finite set and is the probability measure that assigns the same measure to each point, The function F is a (finite) convex combination of the values with weights inversely proportional to the square of the distance from x to s, that is We can see an example of the Radon–Nikodym derivatives of the measures in Figure 3. Remark 2. Note that the expression (6) is the same as that given in the fuzzy k-nearest neighbours algorithm presented in [11] and in Example (4) for if we consider S defined only as the set of k nearest neighbours of x. We study in the rest of the section the continuity properties of the extension formula given in (
4) for the finite set
S. First of all, we show that it does not always preserve the Lipschitz continuity of
f.
Example 5. Consider and the subset . Let be the identity map, . Clearly, it is a Lipschitz map with constant 1.
- 1.
We start with an example in which the measure has non-trivial null sets. Let Then, following the previously explained extension procedure, we extend f to by the given formula to obtain for each and . The result is the constant function 0 on ; see Figure 4 (left). However, the Lipschitz property of f has been lost. Indeed, observe that the inequality does not hold for any when x tends to 1.
Figure 4.
Minimizing average slope extension for of the function for different measures. In the fist one, , and in the second one, .
Figure 4.
Minimizing average slope extension for of the function for different measures. In the fist one, , and in the second one, .
- 2.
Let us show an example of a 1-Lipschitz map on a subset of the Euclidean space that does not extend to the whole space as a 1−Lipschitz map with the 2—average-slope minimization method. To avoid the pathological behaviour of the previous example, which is due to the existence of a point in S of measure we can work with the measure given in (5), Then, for each , the 2-average slope minimization formula is given by (6), which is, in this case, see Figure 4 (right). A simple argument, using for example the mean value theorem, shows that F is Lipschitz (). However, the Lipschitz constant is strictly bigger than 1 because In fact, it can be shown that the Lipschitz constant of F is exactly and so the extension does not preserve the constant.
We have shown that the 2—average slope minimizing method does not preserve the Lipschitz constant; however, it satisfies other continuity properties that make this extension still interesting. We finish this section with some results on this. To avoid non-empty null subsets of we consider for the discrete case the measure given in Remark 1, . If , it is obvious that the extension F will be a constant function , so we assume in the rest of the work that .
Lemma 1. Consider a finite subset that has at least two elements. For each , the function has the following properties:
- 1.
form a partition of the unity.
- 2.
are Lipschitz functions with a Lipschitz constant less than or equal to - 3.
If , are differentiable functions with for each .
Proof. By fixing , we study the properties of .
- 1.
The first statement is obvious.
- 2.
Let . We can see that is continuous at any point of M using the continuity of the functions and some elementary calculations. However, we are going to see a stronger property of these functions.
Let and . As is bounded by 1, if , then . Therefore, we can assume now that We distinguish four cases.
- (a)
We assume first that
. If we write
for
, then
Applying some elementary algebraic relations on the numerator, we obtain
Observe that
and
for all
; thus,
Now, by applying the arithmetic-quadratic mean inequality, which states that
, we obtain
Then, by the previous bound and taking into account that
we obtain
- (b)
Reasoning as before, as we assume that
, for each
,
, so
. Moreover,
, which implies that
. Thus,
- (c)
Let
and
different from
s, using the case 2b,
- (d)
In the last case, we suppose that
. If
,
, so we can assume that, for example,
and
. Then,
Summing up the four cases, we have proved the desired inequality.
- 3.
We assume now that
Let
We are going to calculate the limit
We distinguish now three cases.
- (a)
If , consider the same neighborhood V of x in which for all and . Then, as the function does not vanish on V, it is differentiable and also , in particular on x.
- (b)
- (c)
If
, we have
□
Although the bound provided in part 2 of Lemma 1 seems to be accurate, we do not know if it can be improved by using other arguments.
Question: Is the bound for the Lipschitz constant provided in Lemma 1 the best possible?
As a consequence of the previous result, we obtain the following:
Proposition 3. Let be a metric space, and let S be a finite subset of Consider a function and let be the extension of f given by (6). Then, - 1.
and .
- 2.
is a Lipschitz function.
- 3.
If , is a differentiable function with for all .
Proof. The proofs are a direct consequence of Lemma 1. Observe that
, so
is a Lipschitz function, since
Therefore, according to Proposition 1,
. We give here some better bounds for the Lipschitz constant of
F in terms of
:
□
Corollary 1. If we fix a finite subset S of M, the extension rule from to provided by (6) is a linear isometric mapping. Moreover, it preserves constant functions and the infima and suprema of the involved functions. 3.2. More Examples for
To conclude this section, we show in the following more visual examples of the formulas provided for the 2-average-slope-minimizing extension. Our goal is to show that, under certain geometric conditions, we can expect better smoothness properties for the extended functions, although the Lipschitz constants are not preserved in general.
Example 6. Let us consider the example studied by Oberman in [13] [Example 1], where in with the absolute value norm and , . We can extend f to by applying the mean of the McShane and Whitney extension. We write for it. On the other hand, following the explicit formula given in [13], the extension studied by Oberman and Milmam can be computed asfor . To calculate the 2-average-slope-minimizing extension, we consider the measure on on The resulting extension for is then given byWe can see the representation of both extension functions in Figure 5. As proved in Lemma 1 (3), is differentiable, unlike the extensions and . Example 7. We set now an example similar to the previous one shown in Example 6. Let and let , . We compute the same extensions and . For the cases and , we obtain the same result. For the case of , we consider on S the Lebesgue measure, which we again call μ. We obtain that the value for is, by applying the second fundamental theorem of calculus, The results can be seen in Figure 6. Contrary to what happens in the previous example, we can observe that, in this case, our formula does not provide a smoother approximation due to the weight of the rest of the points of the interval that, as it is computing an average value, has a relevant role in this approximation. Example 8. We finish with another example on Let be an annulus inside the ball . Consider on D a sample S of points and let as an approximation of the Lebesgue measure on C. Let be the functionthat is, is the monkey saddle surface on the region . We extend f to using the same 2-average-slope-minimizing extension formula. The resulting function can be seen in Figure 7. The result is very similar to the monkey saddle surface in . In fact, the maximum error committed in the approximation is less than .
Moreover, that surface can also be reconstructed using only the information of f on the circumference . Now, we consider on C a sample S of 1000 points and let as an approximation of the line integral measure on C. We extend the function to using the same method. This example can be seen in Figure 8. The maximum error committed by the extension compared to the original function on B is now less than . The explicit formula calculated for the case makes it easy to find the best extension of the Lipschitz function. However, we have found no equivalent (or even approximate) formula for any case with This suggests the following open question for the interested reader.
Question: Is it possible to provide an explicit formula for the best extension for the case ?
4. Application: Ellipsoidal Measure Extensions
Motivated by the extension formulas based on integral averages that we have shown, in this section, we introduce a particular class of measure representation of the metric space by considering a normalization requirement. We will treat representations such as i.e., are probability measures. This requirement provides a different way of considering the Lipschitz property of the integral extenders. We need to fix a radial function, and the Lipschitz inequality will hold for elements of M that have the same value of the average of this radial function. The simplest way to define this property is in terms of the Radon–Nikodym derivatives of the measures with respect to as we do below.
Definition 3. Let be a metric space and let S be a compact subspace. Let and consider a measure representation of We say that m is an ellipsoidal measure representation
if there exists a measurable function such that for all and , In other words, the Radon–Nikodym derivative only depends on the distance from x to
Since
is a probability measure, in most cases, we will compute it as the normalization of a finite measure,
Let us illustrate this notion with some examples.
Example 9. Let us start with a negative example. Letwith the Euclidean distance and let with the measure . Let be defined as Then, m is not an ellipsoidal measure representation, since the points in satisfybut and are different measures. Example 10. Let us consider the normalization of the measure representation given by Example 2. It is a typical case of ellipsoidal measure representation. Fix and consider the map given byand for . Then, we have the integral corresponding mapfor each Simple computations show that for any , Assuming that , we obtain that m is Lipschitz. Thus, by Proposition 1, for any , we have that , and moreover, it is a Lipschitz function with . Recall that is not necessarily an extension of f.
In the above example, the Lipschitz inequality is preserved in the comparison between any pair of elements for which the extension is defined. However, this need not be true in general for ellipsoidal measure representations. Instead, we will prove below the most interesting property of these representations: the Lipschitz inequality is always preserved when involving elements with the same “average radial distance” to the set This is the reason for using the term ellipsoidal measure representation.
Let
m be such a representation, and take a fixed
as in (
7). For any
, consider the “ellipsoidal set”
If
, we can study the Lipschitz condition of
on
. Therefore, by fixing the continuous function
we say that a function
is
radial-Lipschitz if for any
such that for
, there exists a constant
such that
; that is,
for all
.
Example 11. Continuing with Example 2, the characteristic bound for ellipsoidal measures is provided by the following computations. Fix such that the ellipsoidal set is non-empty. For and so the map is radial-Lipschitz and Observe that on each ellipsoidal set , the Lipschitz constant of has been improved compared to that of Example 10, The next result provides a bound for the Lipschitz constant restricted to the ellipsoidal set
for the integral expression that is given by the optimization explained in
Section 3.1, in which the norm in
is considered. We need to define the following class of sets. For
is the set
that is well-defined since
S is closed, so the function
belongs to
for every
.
Proposition 4. Fix Consider the function and the ellipsoidal measure representation given by the function on ; that is,and for Let such that and suppose that is finite. Then, is Lipschitz with Moreover, for every defines a Lipschitz function when restricted to and Proof. Let
r be as in the statement and
Then,
Now, using the Cauchy–Schwarz inequality, we obtain
The last statement is a consequence of reasoning as in Proposition 1. □
Example 12. Let with the Euclidean distance and let S be a mesh of the set with points and a spacing of . We consider on S the counting normalized measure as in Remark 1.
We can see in Figure 9 a representation of the value of for each and some relevant sets . Finally, consider on S the function , defined assee Figure 10. We extend f to the whole M using the 2-average-slope-minimizing extension, , with defined as in (6). The result is shown in Figure 10.