scieee AI-readable full text Open interactive document viewer

Density of Lipschitz functions in energy

Eriksson-Bique, Sylvester

Full text

This is a self-archived version of an original article. This version may differ from the original in pagination and typographic details. Author(s): Title: Year: Version: Copyright: Rights: Rights url: Please cite the original version: CC BY 4.0 https://creativecommons.org/licenses/by/4.0/ Density of Lipschitz functions in energy © 2022 the Authors Published version Eriksson-Bique, Sylvester Eriksson-Bique, S. (2023). Density of Lipschitz functions in energy. Calculus of Variations and Partial Differential Equations, 62(2), Article 60. https://doi.org/10.1007/s00526-022-02395-1 2023 Calc. Var. (2023) 62:60 https://doi.org/10.1007/s00526-022-02395-1 Calculus of Variations Density of Lipschitz functions in energy Sylvester Eriksson-Bique1 Received: 16 July 2022 / Accepted: 21 November 2022 / Published online: 24 December 2022 © The Author(s) 2022 Abstract In this paper, we show that the density in energy of Lipschitz functions in a Sobolev space N1,p(X)holds for all p∈[1,∞)whenever the space Xis complete and separable and the measure is Radon and positive and finite on balls. Emphatically, p=1 is allowed. We also give a few corollaries and pose questions for future work. The proof is direct and does not involve the usual flow techniques from prior work. It also yields a new approximation technique, which has not appeared in prior work. Notable with all of this work is that we do not use any form of Poincaré inequality or doubling assumption. The techniques are flexible and suggest a unification of a variety of approaches that have appeared in the literature on the topic. Mathematics Subject Classification Primary 46E36 ·Secondary 30L99 ·26B30 1 Introduction In this paper, we study the density of Lipschitz functions in Sobolev spaces when Xis complete and separable, and μis any Radon measure on Xwhich is positive and finite on balls. We consider the so-called Newton-Sobolev space N1,p(X)defined in [35](seealso[3, 21]), which for p>1 coincides with the one introduced independently in [6]. A function f is in N1,p(X)if f∈Lp(X)and if it has an upper gradient g∈Lp(X); see definition (2.1). Associated to each fthere is a minimal p-weak upper gradient g f∈Lp(X), which plays the role of the norm of a gradient. We will give precise definitions of these and the following notationinSect.2. Our main result proves density in energy or, rather, produces a sequence of Lipschitz functions which converges in energy. A sequence of functions (fi)i∈N, with fi∈N1,p(X) converges to f∈N1,p(X)in energy, if the functions ficonverge to fin Lp(X)and if their minimal p-weak upper gradients gficonverge to gfin Lp(X). Our sequences of functions fiwill be Lipschitz functions with bounded support, that is fi∈LIPb(X)⊂N1,p(X).Our argument in fact shows more than the convergence of the minimal p-weak upper gradients. It shows that the asymptotic Lipschitz constants converge; Communicated by Andrea Mondino. BSylvester Eriksson-Bique [email protected] 1Department of Mathematics, Jyväskylä University, P.O. Box 35 (MaD), FI-40014 Jyväskylä, Finland 123 60 Page 2 of 23 S. Eriksson-Bique lipa[f](x):= lim r→0sup a=b∈B(x,r) |f(a)−f(b)| d(a,b), and lipa[f](x):= 0, if xis an isolated point. Since lipa[f]is an upper gradient, and since gf is minimal, it follows that lipa[f]≥gffor any f∈LIPb(X). Roughly, it is more difficult to ensure that lipa[fi]converges, since it is larger. More precisely, from Lemma 2.9, it follows that convergence of lipa[fi]implies convergence in energy, and is thus a stronger statement. Theorem 1.1 Let X be a complete and separable metric space, let p ∈[1,∞)and let μbe a Radon measure which is positive and finite on balls. If f ∈N1,p(X), then there exists a sequence fi∈LIPb(X)⊂N1,pso that the following properties hold. (1) The functions ficonverge in L p(X)to f , that is lim i→∞X|fi−f|pdμ=0. (2) The asymptotic Lipschitz constants lipa[fi]and the minimal p-weak upper gradients g fi of ficonverge to the minimal p-weak upper gradient g fof f in L p(X), that is lim i→∞X|gfi−gf|pdμ=lim i→∞X|lipa[fi]−gf|pdμ=0. The conclusion of the theorem, for exponents p>1, is contained in [2](seealso[1, Section 6]). Their methods, however were inexplicit. Further, the present result applies to the case p=1, and gives a conceptually new way of obtaining their result. The case of p=1is of particular importance in applications that use the co-area inequality, as can be seen from the concurrent work [10]. In fact, the proof yields a slightly stronger conclusion. That this result is stronger, follows from Lemma 2.9. Theorem 1.2 Let X be a complete and separable metric space, let p ∈[1,∞)and let μbe a Radon measure which is positive and finite on balls. Let f ∈L1 loc(X)and let g ∈Lp loc(X) be a p-weak upper gradient of f . For every >0and every bounded set C ⊂X there exists a function g∈Lp loc(X)with g−gLp(C)<and a sequence fi∈LIPb(X),i ∈N,so that the following properties hold. (1) The functions ficonverge in L1 loc(X)to f , that is, for any bounded set A ⊂X, lim i→∞A|fi−f|dμ=0. (2) We have lipa[fi]≤gfor every i ∈N. Remark 1.3 Convergence in energy is weaker than convergence in norm. A sequence fi converges in norm, if for any >0 there exists an N∈Nso that for all i≥Nit holds that f−fiN1,p≤. In particular, this requires that the minimal p-weak upper gradients gf−fi of the differences f−ficonverge to 0 in Lp(X)with i→∞. However, if the functions fi converge in energy to f, then we only know that the differences of minimal p-weak upper gradients, gf−gfi,convergeto0inLp(X). Crucially, (a.e.) we have gf−fi≥|gf−gfi|. This means, that convergence in norm is a stronger statement than convergence in energy. Indeed, by the following example, it is strictly stronger. Equip X=[0,1]2with the metric d((x1,y1), (x2,y2)) =|x1−y1|+|x2−y2|and the Lebesgue measure. Let f(x,y):= x,and fn(x,y):= x+n−1sin(ny), and consider any 123 Density of Lipschitz functions … Page 3 of 23 60 p∈[1,∞). For any smooth function a∈N1,p(X), its minimal p-weak upper gradient ga is given by the ∞-norm of its gradient vector ∇a∞. (Note that ∞is the dual norm of 1.) While this is classical, its argument is rarely spelled out in detail, and we will do so after explaining the relevance for our example. We get that gfn=max{|∂xfn|,|∂yfn|} = 1=gf. In particular, fn→fin Lp([0,1]2)and gfn=gf=1. However, gfn−f=|cos(ny)|, which does not converge to 0 in Lp(X). Thus, the functions fnconverge to fin energy, but not in norm. If one uses any other uniformly convex norm on R2to define the metric, then this phenomenon does not occur. Further, in many settings, such as this, one can fix the problem by taking convex combinations of fnwhich converge in norm – even if the sequence (fn)n∈Nonly converges in energy. This final step requires reflexivity of the Sobolev space, which can be obtained, for example, with the assumption of finite Hausdorff dimension, see e.g. [11, Theorem 1.9]. We give a brief explanation for the above identification of the minimal upper gradient which an experienced reader may wish to skip. A proof can be patched together from arguments that are contained in [19, Sections 6-7] and [21, Prop. 6.3.3.]. First, from the triangle inequality and the definition in (2.1) it follows that ∇a∞is an upper gradient for any smooth function a∈N1,p(X)(since it bounds all directional derivatives). Conversely, it is minimal, for the following reason. If gis any p-integrable upper gradient of a,wehavethat (2.1) holds for every line segment in any given direction v. By the argument in [21, Prop. 6.3.3.], which consists of Lebesgue differentiation of gand differentiation of aalong such line segments, we get that the inequality g≥|∂va|holds a.e., where ∂va=v, ∇ais the directional derivative. By taking a supremum over a dense collection of vectors v,andasa consequence of the definition of a dual norm, we obtain g≥∇a∞. Density of energy, albeit weak, suffices for many applications. One application is proving the equivalence of various types of Poincaré inequalities. We say that a pair (u,g)satisfies ap-Poincaré inequality (with constants (C,)) if for each ball B(x,r)⊂X B(x,r)|u−uB(x,r)|dμ≤Cr B(x,r) gpdμ1/p ,(1.4) where we define the average by fA:=Afdμ:= 1 μ(A)Afdμ, when the final expression is well defined. For the statement of the following corollary, we define: lip[f](x):= lim r→0sup y∈B(x,r) |f(x)−f(y)| d(x,y). Corollary 1.5 Let X be a complete and separable metric space, let p ∈[1,∞)and let μbe a Radon measure which is positive and finite on balls. For any fixed constants (C,)∈(0,∞)2 the following three conditions are equivalent. (1) For every Lipschitz function f :X→Rthe pair (f,lipa[f])satisfies a p-Poincaré inequality with constants (C,). (2) For every Lipschitz function f :X→Rthe pair (f,lip[f])satisfies a p-Poincaré inequality with constants (C,). (3) For every f ∈N1,p(X)the pair (f,gf)satisfies a p-Poincaré inequality with constants (C,). (4) For every f ∈L1 loc(X)and any upper gradient g ∈L1 loc(X)of f , the pair (f,g)satisfies a p-Poincaré inequality with constants (C,). The statement does not depend on any doubling or properness assumption, as was for example assumed in [24]. The proof is a simple exercise left to the reader of using Theorems 1.1 and 123 60 Page 4 of 23 S. Eriksson-Bique 1.2, cut-off functions (see the proof of Theorem 1.1) and the fact that for Lipschitz functions gf≤lip[f]≤lipa[f](almost everywhere). (For the last fact, see Example 2.5 and the definition of the minimal p-weak upper gradient in Sect.2.) The equivalence of (4) is easier for g∈Lp loc(X),butthecaseofg∈L1 loc(X)is obtained by employing a cut-off function and a limiting argument that involves radii rr. We note that the assumption of completeness can not be removed, as seen from the examples in [28](seealso[25] for a related selfimprovement result). Remark 1.6 Why is completeness relevant? If Y⊂Xis any dense full measure set, then (1) and (2) in Corollary 1.5 remain unchanged. Indeed, Ymay be even disconnected! Koskela’s example in [28] is of a connected open set Y⊂R2,butwhereYis separated by a set, whose capacity is not bounded from below scale-invariantly. This contradicts (3) and (4) in Corollary 1.5.However,Yis full measure and dense in the plane, so (1) and (2) still hold. In our proof, completeness is used via an application of the Arzelà-Ascoli Theorem. A further application of a technical nature is the following, which was pointed out to us by Elefterios Soultanis. Corollary 1.7 Let p ∈[1,∞). Assume that X is complete and separable and equipped with a Radon measure which is positive and finite on balls. If f ∈N1,p(X), then there is a Borel function ˜ f∈N1,p(X)so that ˜ f=f almost everywhere. Remark 1.8 If Xis additionally measure doubling and satisfies a p-Poincaré inequality, then this result is already known and follows directly from norm-density of Lipschitz functions, see e.g. [21, Theorem 8.2.1]. Note that the definition of f∈N1,p(X)only requires that fis measurable. Further, note that the Newton-Sobolev condition involves a pointwise consideration. Thus, a direct modification using Borel regularity does not yield the result since it may break the property of being a Newton-Sobolev function. The proof of this corollary follows immediately from Theorem 1.1 by considering a subsequence of ficonverging pointwise almost everywhere and their limit together with [15, Proof of Corollary 7.10]. We remark that a posteriori also f=˜ fat capacity almost every point, or quasi-everywhere, see [35, Corollary 3.3]. The question of the density of continuous and Lipschitz functions is also crucial in other contexts. For example, quasi-continuity properties of Sobolev functions are implied by the density of continuous functions in norm, see [4]and[33]. While we only get density in energy, it seems our techniques could have something to say in these contexts as well. In conclusion, it appears that density of continuous and Lipschitz functions in energy in Newtontype Sobolev spaces defined using upper gradients is far more generic than it appears from existing literature. 1.1 Approximation scheme The approximation method that we introduce may seem surprisingly simple and a bit confusing. We thus wish to show how it arises naturally from prior work, explain how it is distinct from the state of the art and to survey existing approximation schemes. Our survey is brief, and undoubtedly not complete. In the following discussion, f:X→Rwill be a Sobolev function (as understoon in the specific context), and ˜ fwill denote its approximation. In Euclidean spaces, and Lie groups, the simplest way to approximate an Lp(X)-function fis via convolution with ˜ f=f∗φn,whereφnis some approximation of unity. Even without 123 Density of Lipschitz functions … Page 5 of 23 60 a group structure, one can mimic this process on manifolds, and even some CAT(0) spaces, using various center of mass constructions. See e.g. [13,23]. In general metric spaces, such a convolution method is missing. One rather old method is to employ so called discrete convolutions: ˜ f(x)= n ψnfBn, where Bnaresomeballs whichcover thespace (withbounded overlap),and ψnisa partition of unity subordinate to Bn. Such an approximation goes back to Coifman and Weiss [7]. Discrete convolutions have also been independently discovered in various guises, see e.g. [28]. When Xis measure doubling (for some D∈[1,∞)we have μ(B(x,2r)) ≤Dμ(B(x,r)) for each x∈X,r>0) and satisfies a Poincaré inequality, one can perform a discrete convolution in such a way that ˜ fapproximates fin Lp(X), and so that the N1,p(X)-norm of ˜ fis controlled. For such results, see [27]. For applications of discrete convolutions in other contexts and earlier results, see [34, pp. 290–292] and [31]. Discrete convolutions have been quite successful in analysis on metric spaces. In fact, the papers using this technique are too numerous to list here. But, some highlights we found are [26–29]. These papers require strong assumptions: a doubling measure and a Poincaré inequality. It isunclear, ifadiscreteconvolutionapproachispossibleto extend tomoregeneral settings. Another issue with discrete convolutions, is that even with the aforementioned strong assumptions, they fail to directly prove Theorem 1.1. Indeed, the approximating functions ˜ fhave minimal p-weak upper gradients g˜ fwith a bound on their Lp(X)-norms – but convergence of the minimal p-weak upper gradients may fail. In order to get convergence of gradients, and to weaken assumptions, we need to look beyond. The seminal paper of Cheeger [6]employsseveral useful approximation schemes, which apply to spaces with a doubling measure and a Poincaré inequality. We summarize them here. (1) [6, Theorem 4.24]: a sub-level set approach employing an approximation based on the McShane extension in the proof of the existence of a differential for Sobolev functions. As Cheeger notes, this method was standard in Sobolev space theory by the time of his work. We are not certain, where it appeared in the first instance. Hajłasz used the argument earlier for metric measure spaces [14, Theorem 5], and attributes the method to an earlier publication of Liu [30] and Calderón-Zygmund [5, Theorem 13], who proved related results in a Euclidean setting. (2) [6, Lemma 5.2]: an extension from a net of points using curves similar to Formula (1.10) (see below), which was used to prove a version of Theorem 1.1 and conclude gf=lip[f] for length spaces. (3) [6, Theorem 6.5]: an approximation involving a two-step Lipschitz extension and piecewisedistancefunction,whichwasusedtoprovethat gf=lip[f]withoutthelength-space assumption. These get much closer to the approximation method introduced in the present paper – even though the proofs written in [6] involved the strong assumptions of a Poincaré inequality and doubling. These arguments thus do not directly answer our questions. However, with these stronger assumptions, [6, Theorem 6.5] does prove our Theorem 1.1 for p>1. Each of the methods in Cheeger’s paper involved extending f |Aout from a subset A⊂X– or interpolating and extrapolating the function while attempting to ensure that supa∈A|˜ f(a)− f(a)|is as small as possible. This idea, that approximation and extension problems are 123 60 Page 6 of 23 S. Eriksson-Bique connected, is behind the present paper. We briefly describe the approximation (1) and (2) above in slightly more detail to illustrate the connection to our method. In the sub-level set approach, one obtains ˜ fby taking a sub-level set A⊂Xof the Hardy-Littlewood maximal function M(gp f), and employing a McShane Lipschitz extension. This is possible, because it follows from a point-wise version of the Poincaré inequality (see e.g. [16, Theorem 3.3]) that f|Ais Lipschitz. This approximation has the remarkable Lusin property: the approximating function ˜ factually agrees with the function fon large measure subsets. Together with locality of the minimal p-weak upper gradient (see e.g. [21, Proposition6.3.22]), onegets that ˜ f−fhassmall N1,p(X)-norm. Ifone wishesto removethe Poincaré inequality assumption, then one needs substantially different tools. Indeed, without a Poincaré inequality, one must give up the (Lipschitz-)Lusin property because the function f∈N1,p(X)may not, in general, be Lipschitz on any positive measure subset. Example 1.9 Let X=[0,1]be a metric measure space equipped with the Lebesgue measure andsnow-flake metricd(x,y)=√|x−y|.SinceXdoesn’t haveanynon-constantrectifiable curves, every function f∈Lp(X)is a Sobolev function. Let f(x)=∞ n=1a−nsin(2πbnx) with 1 <a<√band 1 +3/2π<ab and a,b∈N. Then, a classical computation shows that fis logb(a)-Hölder in the Euclidean metric, and α-Hölder in the metric d, with α:= 2log b(a)<1. On the other hand, the classical argument of Weierstrass gives [37], that to every x∈(0,1)andeverym∈Nsufficiently largethereexistsa y∈[x−b−m,x+bm]∩[0,1] with f(x)−f(y)am. Using this, one can conclude that any set A⊂(0,1), for which f|Ais Lipschitz with respect to d, must be porous (i.e. there is a constant c>0sothat for every a∈Aand any small enough r>0, there exists an y∈(x−r,x+r)so that B(y,cr)∩A=∅). Consequently, there is no positive measure set Afor which f|Ais Lipschitz. The second approximation in [6] takes the form of ˜ f(x):= inf γ:Axf(γ (0)) +γ gds,(1.10) where A⊂Xis some compact set of points, and the infimum is taken over rectifiable curves γ:[0,1]→Xconnecting Ato xand the integral γgdsis the usual curve integral. While the proof, as written, in [6] does use a Poincaré inequality, the full strength of it is not really needed. Indeed, most of the lemmas in [6] do not use this assumption, and the proof of [6, Lemma 5.2] could be rewritten by using the Lusin property and choosing a set Awhere f|A is continuous. By such a modification, the proof would apply to any proper length space. To our knowledge, this has not been observed before. However, we omit the details of this claim, since our main theorem contains a stronger result. The idea in Definition (1.10) is to be close to fon the set Awhile insisting on gbeing an upper gradient. Such constructions have arisen in other settings, where one wishes to prescribe a given upper gradient: see e.g. [4, Lemma 3.1]. The main technical problem with Definition (1.10), is that it implicitly insists on the existence of rectifiable curves γ. Without such curves ˜ fmay even fail to be continuous. Indeed, even the measurability is non-trivial [22]. The issue of a lack of curves has already been identified, and resolved, in limited instances. When proving that a Poincaré inequality implies quasiconvexity, apriorione can not assume the existence of any curves. See for example the beautiful discussion in [16, Proposition 4.4] where a version of this fact is proved – or the proof in [6, Theorem 17.1] which is originally due to Semmes. The proof involves “testing” the Poincaré inequality with functions of the 123 Density of Lipschitz functions … Page 7 of 23 60 form: f,x(y):= inf p0,...,pn n−1  k=0 d(pk,pk+1), with the infimum is taken over all sequences of points, called discrete paths, p0,...,pnwith d(pk,pk+1)≤(for k=0,...,n−1, n∈N)andp0=x,pn=y,andx∈Xa fixed point. Indeed, the approximation formula that we use will resemble and generalize this expression. Ourapproximation combinesthe twomainaspects frombefore: discretepaths, and extending from a subset A⊂X. First, we explain the approximation for non-negative functions. The approximation is defined using given data: A non-negative function f:X→[0,M] to approximate which is bounded by M>0, a continuous bounded non-negative function g:X→[0,∞)which is our desired upper gradient, a set A⊂Xs.t. f|Ais continuous, and a scale parameter δ>0. The formula for the approximating function is: ˜ f(x):= min inf p0,...,pn f(p0)+ n−1  k=0 g(pk)d(pk,pk+1), M(1.11) where the infimum is taken over all discrete paths p0,...,pnwith p0∈A,d(pk,pk+1)≤δ and pn=x. There are some key observations, from Lemma 2.13 below, which we highlight here and which guide our definition. (1) If there are no discrete paths with the given properties, then by the standard convention, the infimum in the definition is ∞, and we get ˜ f(x)=M. In any case, the cut-off value Mensures that ˜ f(x)≤Mfor every x∈X. (2) The function ˜ fis automatically max{supx∈Xg(x), M/δ}-Lipschitz, and we have lipa(˜ f)≤g.Indeed,ifd(x,y)≤δfor some x,y∈X, by concatenating discrete paths, we obtain a bound for |˜ f(x)−˜ f(y)|≤max{g(x), g(y)}d(x,y). By boundedness, if d(x,y)>δ,then|˜ f(x)−˜ f(y)|≤M≤2M δd(x,y). Further details will be given later. (3) We have ˜ f(x)≤f(x)for each x∈A. Indeed, in the infimum, we can choose the discrete path P=(x,x). Thus, we have ˜ f(x)≤f(x)+g(x)d(x,x)=f(x). The difficulty lies then in choosing a function gappropriately so that one can show that ˜ f|A converges to f|Apointwise as δ→0. Here, a refined version of Arzelà-Ascoli is used as part of a compactness and contradiction argument. If the convergence were to fail, then we would get a sequence of discrete paths converging to a curve, which would violate the upper gradient inequality (2.1). This step is classical, and has already appeared in [20, Proposition 2.17] and in [6, Lemma 5.18]. According to Cheeger, this argument has also been used by Rickman and Ziemer [6, Remark 5.26]. For the technically minded, we already mention that properness, which is usually assumed, is avoided by appropriately choosing gto penalize paths that form non-compact families. Indeed, paths that travel ”far” away from certain compact sets must have small ”modulus”, as we will later make precise. This is a new argument and seems to be useful in other settings as well. However, with properness, our proof would be considerably simpler – and this will be indicated in the proof. Formula (1.11) applies directly only to functions with a bounded support and non-negative functions. For signed functions without bounded support, one first does a truncation and applies a cut-off function. Then, the previous approximation scheme is applied to the positive andnegativepart individually.Wenote that modificationsofthe formulayieldapproximations 123 60 Page 8 of 23 S. Eriksson-Bique directly for any function f∈N1,p(X). However, the scheme presented here simplifies the proof slightly. Finally, for the sake of completeness, we wish to mention another enormously successful approximation method which arises via estimates for the gradient flow of convex functionals, cf. [2]. This approximation is implicit, since the method does not directly furnish the approximation, but shows that it exists. Indeed, it proceeds via defining a functional, via relaxation of a Dirichlet energy and needs lower-semicontinuity for it in L2(X). By showing that two different expressions define the gradient of the flow of this functional, one obtains the existence of approximations for Sobolev functions. While very general and powerful, this approach has two main shortcomings. The first is the inexplicit nature of the approximating function and lack of any pointwise control. Another problem is in the p=1 case for N1,1(X). When p=1, the relaxation approach does not give information for N1,1but instead for functions of bounded variation. To give results for this borderline case, we needed to introduce the methods of the present paper. We remark, that this case is still quite important, since it is connected via the co-area formula to (modulus) estimates on curves and surfaces in the space. 1.2 Further questions The methods of this paper are likely to apply to a host of other Sobolev type spaces and lead to interesting further questions. A number of works on approximations have appeared in different settings, seee.g. Orlicz-Sobolevspaces[36],Lorenz-Sobolevspaces[8]andvariable exponent Sobolev spaces [17,18]. One can even study these questions with a general Banach function space norm, see e.g. [32,33]. This list is far from exhaustive. Indeed, a variety of authors have asked for necessary and sufficient conditions for the density of Lipschitz functions in these settings – and we suggest that completeness and separability suffice, with perhaps minimal further assumptions when an upper gradient is used. It is important to note, however, that the situation is quite different for the Sobolev space, often denoted W1,p(X), which is defined using a distributional gradient, see e.g. [18] for such issues in a variable exponent case. The techniques here suggest, that the questions on density in this different setting are equivalent with N1,p(X)=W1,p(X), which is a type of regularity statement. Another question is when (locally) Lipschitz functions are dense in N1,p() when is a domain – i.e open and connected – in a complete and separable space X.Weusecompleteness in our arguments, and additional care is needed close to the boundary of . In some cases, when is say a slit disk in the plane B(0,1)\(0,1)×{0}⊂R2, one would not expect such a density for globally Lipschitz functions. However, it may be that some minimal assumption would guarantee density of locally Lipschitz functions. A final, and seemingly difficult question, is if Lipschitz functions are always actually dense in N1,p(X)in norm, and not just in energy (when Xis complete). If p>1 and if the Sobolev space is reflexive, then the density in energy can be directly upgraded to density in norm. For a space Xwhich is metrically doubling, this follows from [1, Corollary 41]. In a concurrent work with Elefterios Soultanis, we have employed techniques from this paper to get the density result for all p∈[1,∞)and with a weaker finite dimensionality assumption for an associated p-differentiable structure [11]. This finite dimensionality assumption is satisfied by all spaces Xwith a finite Hausdorff dimension. Outline: The proof of Theorem 1.1 will be at the end of Sect.2. At the beginning of that section, there are three preliminary subsections, which will describe the terminology, basic properties of the approximating functions and some useful lemmas for discrete paths. 123 Density of Lipschitz functions … Page 15 of 23 60 (pi 0,...,pi n(i))}i∈Nis a sequence of discrete paths, with limi→∞ Mesh(Pi)=0, supi∈NLen(Pi)≤L, infi∈Ndiam(Pi)≥and n(i)−1  k=0 hi(pi k)d(pi k,pi k+1)≤M for each i ∈N, then there exists a subsequence of Piwhich converges to a curve γ:[0,1]→ X. Proof The proof proceeds in the same way as Lemma 2.16.First,foreveryi∈Nthe linearly interpolating curve γPiis L−Lipschitz. Second, if a subsequence of γPiconverges to some curve γ:[0,1]→∞(N),thenbyLemma2.15,wehaved(γ (t), X)≤ lim supi→∞ d(γPi(t), X)≤limi→∞ Mesh(Pi)=0 for each t∈[0,1], and thus the image of γis contained in X. Thus, we only need to verify the second assumption of Lemma 2.11, i.e. that the set At={γPk(t):k∈N}is precompact in ∞(N)for each t∈[0,1]. Equivalently, we need to show that it is totally bounded. This in turn is equivalent to the fact that for every η>0we can find a compact set Kso that d(a,K)≤ηfor each a∈At. Fix η>0andt∈[0,1].FixN∈Nso that Mesh(Pi)≤η/8 for each i≥N. Then, fix T:= 8η−1+2Mmin{η/8,}−1,andset ˜ N:= max{N,T}.SetK:= K˜ N∪{γPi(t): i=1,..., ˜ N}. Take any i∈Nand consider a=γPi(t)∈At.Ifi≤˜ N,wehaved(γPi(t), K)=0≤η. Next, assume i≥˜ N. By Lemma 2.15, there exists a pi∈Piso that d(pi,γPi(t)) ≤ Mesh(Pi)≤η/8. If d(pi,K˜ N)≤η/2 for each i≥˜ N,thend(γPi(t), K)≤η,andweare done. Suppose therefore that we have some index i≥˜ N, with d(pi,K˜ N)≥η/2. We will show that this leads to a contradiction and thus completes the proof. Let Qi=(qi 0,...,qi m(i))⊂Pibe the largest sub-path of Piwhich contains piand which is contained in B(pi,η/4). Since Mesh(Pi)≤η/8, and diam(Pi)≥,wehave diam(Qi)≥min{η/8,}. Then, d(q,K˜ N)≥η/4≥˜ N−1for each q∈Qi. Thus, d(q,Kj)≥˜ N−1for each q∈Qiand j≤˜ N.In particular hi(q)≥h˜ N(q)≥˜ N≥ 2Mmin{η/8,}−1, where we used Formula (2.17). Thus, m(i)−1  k=0 hi(qi k)d(qi k,qi k+1)≥2Mmin{η/8,}−1Len(Qi)≥2M. Since Q⊂P,wehave 2M≤ m(i)−1  k=0 hi(qi k)d(qi k,qi k+1)≤ n(i)−1  k=0 hi(pi k)d(pi k,pi k+1)≤M, which is a contradiction.  We will also need a slightly technical lower semicontinuity statement reminiscent of [24, Proposition 4]. The sums that appear in the statement, and in Lemma 2.18, should be thought of as discrete Riemann sums. Lemma 2.19 Let g :X→[0,∞] be a lower semicontinuous function, and assume that {gi:X→[0,∞]}i∈Nis an increasing sequence of continuous functions which converges to g pointwise, with gi(x)≤gj(x)for each x ∈X and each i ≤j.If{Pi=(pi 0,...,pi n(i))}i∈N 123 60 Page 16 of 23 S. Eriksson-Bique is a sequence of discrete paths, with supi∈NLen(Pi)<∞and which converges to a curve γ:[0,1]→X, then γ gds≤lim inf i→∞ n(i)−1  k=0 gi(pi k)d(pi k,pi k+1). Proof Let γPibe the linearly interpolating curves to Piand let L:= supi∈NLen(Pi).Usethe Tietze Extension Theorem to extend each gi:X→Rto be a continuous function on ∞(N). By constructing the extensions recursively and taking maxima, we can ensure gi≤gjfor i≤j. Extend the function gto all of ∞(N)by the formula g(x):= limi→∞ gi(x)where x∈∞(N).Since(gi)i∈Nis an increasing sequence of continuous functions, it follows that gis lower semicontinuous. Denote the extensions still by the same letter. Fix for the moment an index i∈Nand consider the function gi.SinceγPjconverges uniformly to γ,when j→∞,wehavethatthesetK⊂∞(N)formed by the union of the images of the curves γPj(j∈N)andγis compact. On K, the function giis uniformly continuous. Fix an >0. Since gi|Kis uniformly continuous, there exists a δ>0sothatifx,y∈K and d(x,y)≤δ,then|gi(x)−gi(y)|≤/L. Choose then Nso large that Mesh(Pj)≤δ for each j≥N.IfTPj=(tj 0,...,tj n(j))is the sequence of interpolating times for Pj,then d(γPj(t), pj k)≤Mesh(Pj)≤δfor each t∈[tj k,tj k+1](k=0,...,n(j)−1). Consequently, for each j≥N,weget γPj gids − n(j)−1  k=0 gi(pj k)d(pj k,pj k+1) = n(j)−1  k=0γPj|[tj k,tj k+1] gids − n(j)−1  k=0 gi(pj k)d(pj k,pj k+1) = n(j)−1  k=0γPj|[tj k,tj k+1] (gi(·)−gi(pj k)) ds ≤Len(Pj)/L≤. On the last line we used the fact that Len(Pj)=Len(γPj)by Lemma 2.15.Since>0 was arbitrary, by sending j→∞we get lim j→∞γPj gids − n(j)−1  k=0 gi(pj k)d(pj k,pj k+1)=0.(2.20) By combining this with the lower semi-continuity of curve integrals (see e.g. the argument in [24, Proposition 4]) and the fact that gi≤gjfor i≤j, we have for each i∈Nthat γ gids ≤lim inf j→∞ γPj gids (2.20) =lim inf j→∞ n(j)−1  k=0 gi(pj k)d(pj k,pj k+1) ≤lim inf j→∞ n(j)−1  k=0 gj(pj k)d(pj k,pj k+1). 123 Density of Lipschitz functions … Page 17 of 23 60 Now, by letting i→∞and by using monotone convergence on the left hand side, we obtain the statement of the lemma.  2.4 Proof of Theorem 1.1 With the stage set, we are now able to prove the main theorem of the paper. The same proof, up to cosmetic changes, also gives Theorem 1.2. The main change, is replacing the convergence of fnin Lp(X)with convergence in L1 loc, and instead of N1,p(X)one employs the Dirichlet space defined in [21, Section 7.1] (alternatively, see [3]). The argument will first use cut-off functions and truncation to reduce the problem to approximating non-negative and bounded functions with bounded support. This is based on the following lemma. Lemma 2.21 If Theorem 1.1 is true for every f ∈N1,p(X)with f :X→[0,M]for some M>0and with f |X\B(x0,R)=0for some x0∈X,R>0, then Theorem 1.1 is true for all f∈N1,p(X). Proof Let f∈N1,p(X)be arbitrary. We will reduce the claim of Theorem 1.1 to first nonnegative functions, and then to bounded functions, and finally to ones with bounded support. Reduction to non-negative: We can write f=f+−f−,where f+=max{f,0}and f−=max{−f,0}with f±∈N1,p(X).Thengf=gf++gf−by [21, Proposition 6.3.22]1. If Theorem 1.1 is true for f±, then we can find a sequence of functions fn ±∈LIPb(X) with lipa[fn ±]→gf±in Lp(X).Let fn=fn +−fn −and note that gfn≤lipa[fn]≤ lipa[fn +]+lipa[fn −]. Since lipa[fn +]+lipa[fn −]→gf++gf−=gfin Lp(X), Lemma 2.9 gives that lipa[fn]→gfand gfn→gfin Lp(X).Inotherwords, fn∈LIPb(X) approximates fin energy. Thus, without loss of generality it suffices to prove the claim for all non-negative functions f.Let f:X→[0,∞)be an arbitrary non-negative function in N1,p(X).Reduction to a bounded case: Consider functions fM=min{f,M}for all M>0. Then, we have fM→fin Lp(X)as M→∞.By[21, Proposition 6.3.22], the function gM:= gf·1X\f−1[0,M]is a minimal p-weak upper gradient for f−fM.One directly observes that gM→0inLp(X). Thus, fMconverges to fin norm in N1,p(X). In particular, gfM→gfin Lp(X). If Theorem 1.1 is true for each fM, then there exist sequences {fn M}n∈Nwhich converge in energy to fMand with lipa[fn M]→gfMin Lp(X)as n→∞. By a diagonal argument, with M→∞together with n→∞, we get the claim of Theorem 1.1 for f. Finally, we can assume that f∈N1,p(X)and that for some M>0wehave0≤f≤M. Reduction to bounded support: Let x0∈Xbe any fixed point, and consider the functions fR(x)=fψR(x),whereψR(x)=max{0,min{1,R−d(x0,x)}} and R∈N, R>0. The functions ψRare 1-Lipschitz and 0 ≤ψR≤1. Further, fR→fpointwise and in Lp(X). Further, the function f−fRhas a weak upper gradient gR= 1X\B(x0,R−1)gf+f1B(x0,R+1)\B(x0,R−1)as follows from the Leibniz rule in [21, Proposition 6.3.28 and Proposition 6.3.22]. Thus gR→0 and we get that fR→fin the norm of N1,p(X). Therefore, functions with bounded support are norm dense, and we can repeat the argument in the previous step to obtain the lemma. Indeed, by assumption each fRadmits a sequence {fn R}n∈Nof functions in LIPb(X)with fn R→fRin Lp(X)and with gfn R→gfR as n→∞.Then, a diagonal argument concludes the proof.  1This proposition states that if u,v ∈N1,p(X)and u=von a set A⊂X, then for μ-almost every x∈A we have gu(x)=gv(x)for their minimal p-weak upper gradients. 123 60 Page 18 of 23 S. Eriksson-Bique With this lemma, we are left to consider bounded non-negative functions with bounded support. For such functions we construct the approximation by making appropriate choices of g,A,δin Formula (2.12). In the proof, we first state a goal for the proof that the choices will guarantee, and show that reaching this goal suffices for the claim. After stating that goal, we construct a sequence of approximations fnthat reaches this goal for all large enough n∈N. (The actual approximating sequence of fwould be obtained by a diagonal sequence involving sending >0, which is introduced in the proof, to zero together with n→∞.) The tricky bit of the proof is showing a pointwise convergence result for the approximating sequence fn, which is done using the lemmas above and a contradiction argument. Proof of Theorem 1.1 By Lemma 2.21, we may assume that f∈N1,p(X)satisfies f:X→ [0,M]for some M>0and f|X\B(x0,R)=0forsomex0∈X,R>2. Further, let gf∈Lp(X)be the minimal p-weak upper gradient of f. Goals of proof: Let ∈(0,1)be fixed. We will show that we can find functions g∈Lp(X) and f∈LIPb(X)so that g≥lipa[f], X|g−gf|pdμ≤, (2.22) and X|f−f|pdμ≤. (2.23) The claim of the theorem then follows directly from Lemma 2.9 by using the inequality lipa[f]≥gfand by choosing a sequence of with 0. Choice of gand gn: First, by Remark 2.2, we can choose a lower semicontinuous upper gradient g1of fso that g1≥gfand X|g1−gf|pdμ≤4−2p.(2.24) Further, since 0 is an upper gradient for fwhen restricted to the set X\B(x0,R),wecan set g1(x)=gf(x)=0forallx∈X\B(x0,R). Indeed, if g1is any upper gradient, which does not satisfy this property, we may modify it to satisfy this equation. This modification preserves the lower semi-continuity property and the property of being an upper gradient. The latter of these is seen directly from the definition of being an upper gradient as follows. Decompose the curve appearing in Definition (2.1) to the open set γ−1(B(x0,R)),which is an at most countable union of open intervals, and to the compact set γ−1(X\B(x0,R)), where f=0. By applying (2.1) to each of the open intervals comprising γ−1(B(x0,R)), and by summing over them, we obtain (2.1) for the curve γ. By Lusin’s theorem and inner regularity of μ, we can choose an increasing sequence of compact sets Kn⊂B(x0,2R)so that μ(B(x0,2R)\Kn)≤n−p4−n−2pandsothat f|Kn is continuous. Since Knis an increasing sequence of sets, we get X∞  n=1 1B(x0,2R)\Knp dμ≤∞  m=2Km\Km−1∞  n=1 1B(x0,2R)\Knp dμ ≤∞  m=2 μ(Km\Km−1)(m−1)p≤4−2p−2.(2.25) Choose a σ∈(0,1)so that μ(B(x0,2R))σ p≤4−2p, and define again ψ2R(x)= max{0,min{1,2R−d(x0,x)}}.SinceR>2, we have ψ2R|B(x0,3R/2)=1and ψ2R|X\B(x0,2R)=0. 123 Density of Lipschitz functions … Page 19 of 23 60 Define g(x):= g1(x)+σψ2R(x)+∞  n=1 1B(x0,2R)\Kn(x). (2.26) Inequality (2.22) follows from (2.25), (2.26)and(2.24). Also, gis lower-semicontinuous. By Baire’s theorem for lower semicontinuous functions, cf. [21, Proposition 4.2.2], we can find an increasing sequence of bounded continuous functions {˜gn}n∈Nconverging to g1 with 0 ≤˜gm≤˜gn≤g1for m≤n.Define gn(x)=˜gn(x)+σψ2R(x)+ n  k=1 min{nd(x,Kk), 1B(x0,2R)(x)}.(2.27) From this definition, we get that gn≤gmfor n≤m,that0≤gn≤gand that gnconverges pointwise to gas n→∞. Finally, choose L∈Nso that μ(B(x0,2R)\KL)≤(2M)−p, anddefine the closedset A:= KL∪X\B(x0,R).Since f|KLand f|X\B(x0,R)are continuous, the function f|Ais continuous. We remark, that in definitions (2.26)and(2.27), we could avoid adding the summation term to gand gnif the space Xwas proper. This is one place where properness would yield a simplification. In this case, later in the proof we would use the simpler Lemma 2.16 (with a bounded subset B(x0,2R)replacing X) instead of Lemma 2.18. Approximating sequence fn: Define for each n∈Nthe approximating function fnwith data (f,gn,A,M,n−1)by the formula fn(x):= min M,inf p0,...,pN f(p0)+ N−1  k=0 gn(pk)d(pk,pk+1),(2.28) where the infimum is taken over all (n−1,A,x)admissible discrete paths (p0,...,pN). Since gnis bounded and continuous for each n∈N, Properties A, B, E and F of Lemma 2.13 yields that that fn:X→[0,M]is a Lipschitz functions with lipa[fn]≤gn≤gand 0 ≤fn|A≤f|A. Further, Property C of Lemma 2.13 gives that fn(x)=0 for each x/∈X\B(x0,R). Thus fn∈LIPb(X). The main step remaining is to show that for each x∈KLwe have limn→∞ fn(x)=f(x), that is the task is to prove pointwise convergence on KL. Indeed, suppose that we have shown this. Note that fn(x)=f(x)=0onA\KL,sinceA\KL⊂X\B(x0,R). By Lebesgue dominated convergence, since fn,f:X→[0,M],wegetfornlarge enough that A|fn−f|pdμ=KL|fn−f|pdμ≤/2. We have fn(x)=f(x)=0forx∈X\B(x0,R)and fn(x), f(x)∈[0,M]for x∈ B(x0,R)\KL. Thus, from the choice of Land the fact X=A∪(B(x0,R)\KL),wegetfor n∈Nlarge enough X|f−fn|pdμ=A|f−fn|pdμ+B(x0,R)\KL|f−fn|pdμ ≤/2+Mpμ(B(x0,R)\KL)≤. 123 60 Page 20 of 23 S. Eriksson-Bique Thus, the function f=fnfor nlarge enough and grealize all the aspects of the goal of the proof. We are left to show that fn|KLconverges to f|KLpointwise.2 Pointwise convergence limn→∞ fn(x)=f(x)for x∈KL: For the sake of a contradiction, assume that there exists some x∈KL⊂B(x0,R)for which pointwise convergence fails. For n≥mwe have gn≥gm. Thus fn≥fm, since for each x∈Xany (n−1,A,x)- admissible path is also (m−1,A,x)-admissible. Thus, the sequence {fn(x)}n∈Nis increasing in n∈N. By Lemma 2.13 we have fn(x)≤f(x)for each n∈N. Thus, the limit limn→∞ fn(x)exists. Since the limit is not equal to f(x), there exists a constant δ>0, so that limn→∞ fn(x)≤f(x)−δ. Because f(x)≤M,weget fn(x)≤M−δfor each n∈N. From the definition of fn(x) in Formula (2.28), we obtain discrete paths Pn=(pn 0,...,pn Nn)which are (n−1,A,x)- admissible, and with f(pn 0)+ Nn−1  k=0 gn(pn k)d(pn k,pn k+1)< f(x)−δ/2≤M.(2.29) Our contradiction will be obtained by finding a curve in the limit of these discrete paths. Recall, that (n−1,A,x)-admissibility means that pn 0∈A,Mesh(Pn)≤n−1and pn Nn=x. First, we restrict to a sub-path. Let Qn=(qn 0,...,qn Mn)be the largest sub-path of Pn with qn Mn=xand with Qn⊂B(x0,3R/2). We show that Qnis (n−1,A,x)admissible and satisfies Estimate (2.30). Since Qn⊂Pn, it is clear that Mesh(Qn)≤n−1.Further,by construction qn Mn=x. Thus, we need to check that qn 0∈A. If Qn=Pn, then clearly Qnis (n−1,A,x)-admissible and f(qn 0)=f(pn 0)and (2.30) is immediate. Next, assume that QnPn. Recall that at the beginning of the proof we assumed R>2. Since Mesh(Pn)≤1<R/2 and since Qnis the largest sub-path with the given inclusion, we must have qn 0∈B(x0,3R/2)\B(x0,R). Thus, qn 0∈A,andQnis still (n−1,A,x)-admissible. Also, 0 =f(qn 0)≤f(pn 0). These give that f(qn 0)+ Mn−1  k=0 gn(qn k)d(qn k,qn k+1)≤f(pn 0)+ Nn−1  k=0 gn(pn k)d(pn k,pn k+1) <f(x)−δ/2≤M.(2.30) We will show that {Qn}n∈Nsatisfies the assumptions of Lemma 2.18. This consists of verifying the mesh, length, diameter and h-sum conditions for a good sequence of functions. Recall the definition of a good sequence of functions for {Kn}n∈N: hn(x):= n  k=1 min{nd(x,Kk), 1}.(2.31) Here is another point, where properness would simplify the proof. If Xwas proper, we would only need to verify the mesh- and lengthconditions and use Lemma 2.16.Noh-sum condition or diameter condition or good sequence of functions would be involved. (1) Mesh condition limn→∞ Mesh(Qn)=0: We have lim n→∞Mesh(Qn)≤lim n→∞n−1=0, 2After showing this, Dini’s Theorem with fn≤fmfor n≤m, implies that fn|KLconverges uniformly to f|KL. We do not need this claim here. 123 Density of Lipschitz functions … Page 21 of 23 60 since Qnis (n−1,A,x)-admissible. (2) Length bound supn∈NLen(Qn)<∞:Fixn∈N. Recall (2.27), Qn⊂B(x0,3R/2) and R≥2. The definition of ψ2Rguarantees that ψ2R|B(x0,3R/2)=1. Thus, we get gn(q)≥σfor every q∈Qn.By(2.30) and by setting L:= σ−1Mwe get Len(Qn)=σ−1 Mn−1  k=0 σd(qn k,qn k+1) ≤σ−1f(qn 0)+ Mn−1  k=0 gn(qn k)d(qn k,qn k+1)≤L,(2.32) for all n∈N. (3) Diameter bound infn∈Ndiam(Qn)>0: Fix n∈N. We stated earlier in the proof that f|Ais continuous. Thus, we can find a constant >0sothaty∈Aand d(x,y)≤ imply that |f(x)−f(y)|≤δ/4. We get f(qn 0)< f(x)−δ/2 from Inequality (2.30). Since qn 0∈A,wegetd(qn 0,x)=d(qn 0,qn Mn)≥. In particular, diam(Qn)≥. (4) h-sum bound: Let hnbe the good sequence of functions for {Kn}n∈N. Note that, by definition (2.31), hn|B(x0,2R)≤gn|B(x0,2R). Inequality (2.30) together with Qn⊂B(x0,2R) thus gives Mn−1  k=0 hn(qn k)d(qn k,qn k+1)≤ Mn−1  k=0 gn(qn k)d(qn k,qn k+1)≤M. As a consequence, Lemma 2.18 shows that a subsequence of Qnconverges to a curve γ:[0,1]→X. We now pass to this subsequence. Since qn 0∈A,Ais closed and limn→∞ qn 0=γ(0), we get that γ(0)∈A. Similarly, γ(1)=x. Recall that f|Ais continuous. Therefore, f(γ (0)) =limn→∞ f(qn 0). Recall that the increasing sequence of functions gnconverges pointwise to g. From Lemma 2.19 applied to Qn,γ,gnand g,weobtain f(γ (0)) +γ gds 2.19 ≤lim inf n→∞ f(qn 0)+ Mn−1  k=0 gn(qn k)d(qn k,qn k+1)(2.30) ≤f(γ (1)) −δ/2. We obtain f(γ (1)) −f(γ (0)) > γ gds, which contradicts gbeing a true upper gradient.  Remark 2.33 The proof above shows a more technical statement, which we highlight for purposes of future work. Suppose that fis non-negative, boundedly supported in B(x0,R) and bounded by Mand has a lower semi-continuous upper gradient g1. Then, let σ>0be arbitrary and take any increasing sequence of compact sets Knas in the statement and define the function gas in (2.26). By the proof, for every L∈N, there is a sequence of Lipschitz functions fmwith lipa[fm]≤gand fm→fpointwise on each compact set KL.Further, if Xis proper we do not need to modify gwith the summation term. Also, if g1is bounded below on B(x0,2R), we do not even need to add σψ2R, which is only added to ensure the length bound for Qn. Additionally, the proof shows the following: if fis a continuous function with bounded support, then we do not need to consider the exhaustion by compact sets Knand get convergence on all of A=X. (This may be useful, for example, if fis continuous but not 123 60 Page 22 of 23 S. Eriksson-Bique Lipschitz. On the other hand, even if fis Lipschitz, one could have lipa[f]>gf, and wish to construct approximations.) A natural follow up work would consider these techniques in other Banach function spaces and associated Newton-Sobolev spaces, such as authors have done in [8,17,18,36]. See also the versions in general Banach function spaces in [33]. In these other function settings, one would need to first ensure a lower semi-continuous upper gradient g1which is close in norm to the minimal one (by a version of Vitali-Carathéodory as in Remark 2.2 and [32]). Then, check an appropriate version of Lemma 2.9. Finally, one would need to argue that the choices of Knand σcan be made so that gand g1are close in norm – which relies on some absolute continuity and monotone convergence in the applicable Banach function space. If one wishes, in proper metric spaces this should be slightly easier. For this argument, some form of Vitali-Carathéodory theorem holding for the Banach function space seems necessary, see [33]. Further ideas or techniques, such as some form of differential structure, would be needed to upgrade the density in energy to density in norm. For such ideas, see [11]. Acknowledgements The author was supported by the Finnish Academy under Research Postdoctoral Grant No. 330048. He is also thankful to Jeff Cheeger, Elefterios Soultanis, Pietro Poggi-Corradini and Nageswari Shanmugalingam for many insightful conversations that inspired the results of this paper. Shanmugalingam and Soultanis also gave helpful comments on an early draft of the paper. We have also received very helpful comments from anonymous referees, which improved the presentation. Funding Open Access funding provided by University of Jyväskylä (JYU). Data availibility No datasets were generated or analysed in the present study. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/. References 1. Ambrosio, L., Colombo, M., Di Marino, S.: Sobolev spaces in metric measure spaces: reflexivity and lower semicontinuity of slope. In: Variational methods for evolving objects. Adv. Stud. Pure Math. Math. Soc. Jpn. 67, 1–58 (2015) 2. Ambrosio, L., Gigli, N., Savaré, G.: Density of Lipschitz functions and equivalence of weak gradients in metric measure spaces. Rev. Mat. Iberoam. 29(3), 969–996 (2013) 3. Björn, A., Björn, J.: Nonlinear potential theory on metric spaces, vol. 17 of EMS Tracts in Mathematics. European Mathematical Society (EMS), Zürich (2011) 4. Björn, A., Björn, J., Shanmugalingam, N.: Quasicontinuity of Newton–Sobolev functions and density of Lipschitz functions on metric spaces. Houston J. Math. 34(4), 1197–1211 (2008) 5. Calderón, A.-P., Zygmund, A.: Local properties of solutions of elliptic partial differential equations. Studia Math. 20, 171–225 (1961) 6. Cheeger, J.: Differentiability of Lipschitz functions on metric measure spaces. Geom. Funct. Anal. 9(3), 428–517 (1999) 7. Coifman, R.R., Weiss, G.: Analyse Harmonique Non-commutative sur Certains Espaces Homogènes. Lecture Notes in Mathematics, vol. 242. Springer-Verlag, Berlin-New York (1971) 8. Costea, S., Miranda, M., Jr.: Newtonian Lorentz metric spaces. Illinois J. Math. 56(2), 579–616 (2012) 9. Dunford, N., Schwartz, J.T.: Linear operators. Part I. General Theory. John Wiley & Sons Inc, New York (1988). With the assistance of Bade, W.G. and Bartle, R.G.: Reprint of the 1958 original 123 Density of Lipschitz functions … Page 23 of 23 60 10. Eriksson-Bique, S., Poggi-Corradini, P.: On the sharp lower bound for duality of modulus. Proc. Amer. Math. Soc. 150(7), 2955–2968 (2022) 11. Eriksson-Bique, S., and Soultanis, E. Curvewise characterizations of minimal upper gradients and the construction of a Sobolev differential. arXiv:2102.08097 12. Fonseca, I., Leoni, G.: Modern Methods in the Calculus of Variations: LpSpaces. Springer Monographs in Mathematics, Springer, New York (2007) 13. Grove, K., Karcher, H.: How to conjugate C1-close group actions. Math. Z. 132, 11–20 (1973) 14. Hajłasz, P.: Sobolev spaces on an arbitrary metric space. Potential Anal. 5(4), 403–415 (1996) 15. Hajłasz, P.: Sobolev spaces on metric-measure spaces. In: Heat Kernels and Analysis on Manifolds, Graphs, and Metric Spaces (Paris, 2002). Contemp. Math., vol. 338, pp. 173–218. Amer. Math. Soc., Providence, RI (2003) 16. Hajłasz, P., Koskela, P.: Sobolev met Poincaré. Mem. Amer. Math. Soc. 145, 688 (2000) 17. Harjulehto, P., Hästö, P., Pere, M.: Variable exponent Sobolev spaces on metric measure spaces. Funct. Approx. Comment. Math. 36, 79–94 (2006) 18. Hästö,P.A.:On thedensityofcontinuousfunctionsin variableexponentSobolevspace. Rev. Mat.Iberoam. 23(1), 213–234 (2007) 19. Heinonen, J.: Nonsmooth Calculus. Bull. Amer. Math. Soc. 44(2), 163–232 (2007) 20. Heinonen, J., Koskela, P.: Quasiconformal maps in metric spaces with controlled geometry. Acta Math. 181(1), 1–61 (1998) 21. Heinonen, J., Koskela, P., Shanmugalingam, N., Tyson, J.T.: Sobolev spaces on metric measure. In: New, Mathematical Monographs Spaces, vol. 27. Cambridge University Press, Cambridge (2015) 22. Järvenpää, E., Järvenpää, M., Rogovin, K., Rogovin, S., Shanmugalingam, N.: Measurability of equivalence classes and MECp-property in metric spaces. Rev. Mat. Iberoam. 23(3), 811–830 (2007) 23. Karcher, H.: Riemannian center of mass and mollifier smoothing. Commun. Pure Appl. Math. 30(5), 509–541 (1977) 24. Keith, S.: Modulus and the Poincaré inequality on metric measure spaces. Math. Z. 245, 255–292 (2003) 25. Keith, S., Zhong, X.: The Poincaré inequality is an open ended condition. Annals Math. 167(2), 575–599 (2008) 26. Kinnunen,J., Korte,R., Shanmugalingam,N., Tuominen, H.:Pointwise propertiesof functions ofbounded variation in metric spaces. Rev. Mat. Comput. 27(1), 41–67 (2014) 27. Kinnunen, J., Latvala, V.: Lebesgue points for Sobolev functions on metric spaces. Rev. Mat. Iberoam. 18(3), 685–700 (2002) 28. Koskela, P.: Removable sets for Sobolev spaces. Ark. Mat. 37(2), 291–304 (1999) 29. Lahti, P., Shanmugalingam, N.: Fine properties and a notion of quasicontinuity for BV functions on metric spaces. J. Math. Pures Appl. 107(2), 150–182 (2017) 30. Liu, F.C.: A Luzin type property of Sobolev functions. Indiana Univ. Math. J. 26(4), 645–651 (1977) 31. Macías, R.A., Segovia, C.: A decomposition into atoms of distributions on spaces of homogeneous type. Adv. Math. 33(3), 271–309 (1979) 32. Malý, L.: Minimal weak upper gradients in Newtonian spaces based on quasi-Banach function lattices. Ann. Acad. Sci. Fenn. Math. 38(2), 727–745 (2013) 33. Malý, L.: Fine properties of Newtonian functions and the Sobolev capacity on metric measure spaces. Rev. Mat. Iberoam. 32(1), 219–255 (2016) 34. Semmes, S.: Finding curves on general spaces through quantitative topology, with applications to Sobolev and Poincaré inequalities. Selecta Math. 2(2), 155–295 (1996) 35. Shanmugalingam, N.: Newtonian spaces: an extension of Sobolev spaces to metric measure spaces. Rev. Mat. Iberoam. 16(2), 243–279 (2000) 36. Tuominen, H.: Pointwise behaviour of Orlicz–Sobolev functions. Ann. Mat. Pura Appl. 188(1), 35–59 (2009) 37. Weierstraß, K.: Über Continuirliche Functionen Eines Reellen Arguments, die für Keinen Werth des Letzteren Einen Bestimmten Differentialquotienten Besitzen, pp. 190–193. Springer Vienna, Vienna (1988) Publisher’s Note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. 123