scieee AI-readable full text Open interactive document viewer

The Hajłasz Capacity Density Condition is Self-improving

Canto, Javier,Vähäkangas, Antti V.

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/ The Hajłasz Capacity Density Condition is Self-improving © The Author(s) 2022 Published version Canto, Javier; Vähäkangas, Antti V. Canto, J., & Vähäkangas, A. V. (2022). The Hajłasz Capacity Density Condition is Self-improving. Journal of Geometric Analysis, 32(11), Article 276. https://doi.org/10.1007/s12220-022-00979-z 2022 The Journal of Geometric Analysis (2022) 32:276 https://doi.org/10.1007/s12220-022-00979-z The Hajłasz Capacity Density Condition is Self-improving Javier Canto1,2 ·Antti V. Vähäkangas3 Received: 11 February 2022 / Accepted: 19 June 2022 / Published online: 7 September 2022 © The Author(s) 2022 Abstract We prove a self-improvement property of a capacity density condition for a nonlocal Hajłasz gradient in complete geodesic spaces with a doubling measure. The proof relates the capacity density condition with boundary Poincaré inequalities, adapts Keith–Zhong techniques for establishing local Hardy inequalities and applies Koskela– Zhong arguments for proving self-improvement properties of local Hardy inequalities. This leads to a characterization of the Hajłasz capacity density condition in terms of a strict upper bound on the upper Assouad codimension of the underlying set, which shows the self-improvement property of the Hajłasz capacity density condition. Keywords Analysis on metric spaces ·Capacity density condition ·Hajłasz gradient Mathematics Subject Classification 35A23 ·31E05 ·30L99 ·42B25 ·46E35 1 Introduction We introduce a Hajłasz (β, p)-capacity density condition in terms of Hajłasz gradients of order 0 <β≤1, see Sects. 3and 4. Our main result, Theorem 9.6, states that this J.C.is supported by supported by the Ministerio de Economía y Competitividad (Spain) through Grant Nos. PID2020-113156GB-I00 and SEV-2017-0718, and by Basque Government through Grant Nos. IT-641-13 and BERC 2018-2021 and “Ayuda para la formación de personal investigador no doctor". The authors are grateful to the referees for their comments and suggestions for improving the manuscript. BJavier Canto javier[email protected] Antti V. Vähäkangas antti.v[email protected] 1Departamento de Matemáticas, Universidad del País Vasco/Euskal Herriko Unibertsitatea, Apartado 644, 48080 Bilbao, Spain 2BCAM–Basque Center for Applied Mathematics, Alameda de Mazarredo 14, 48009 Bilbao, Spain 3Department of Mathematics and Statistics, University of Jyvaskyla, P.O. Box 35, 40014 Jyvaskyla, Finland 123 276 Page 2 of 42 J. Canto, A.V. Vähäkangas condition is doubly open-ended, that is, a Hajłasz (β, p)-capacity density condition is self-improving both in pand in βif Xis a complete geodesic space endowed with a doubling measure. The study of such conditions can be traced back to the seminal work by Lewis [24], who established self-improvement of Riesz (β, p)-capacity density conditions in Rn. His result has been followed by other works incorporating different techniques often in metric spaces, like nonlinear potential theory [2,28], and local Hardy inequalities [23]. A distinctive feature of our paper is that we prove the self-improvement of a capacity density condition for a nonlocal gradient for the first time in metric spaces. We make use of a recent advance [19] in Poincaré inequalities, whose self-improvement properties were originally shown by Keith–Zhong in their celebrated work [16]. In this respect, we join the line of research initiated in [20], and continued in [5,6], for bringing together the seemingly distinct self-improvement properties of capacity density conditions and Poincaré inequalities. We use various techniques and concepts in the proof of Theorem 9.6. The fundamental idea is to use a geometric concept, more precisely the upper Assouad codimension, and characterize the capacity density with a strict upper bound on this codimension. Here we are motivated by the recent approach from [4], where the Assouad codimension bound is used to give necessary and sufficient conditions for certain fractional Hardy inequalities; we also refer to [22]. The principal difficulty is to prove a strict bound on the codimension. To this end we relate the capacity density condition to boundary Poincaré inequalities, and we show their self-improvement roughly speaking in two steps: (1) Keith–Zhong estimates on maximal functions and (2) Koskela–Zhong estimates on Hardy inequalities. For these purposes, respectively, we adapt the maximal function methods from [19] and the local Hardy arguments from [23]. There is a clear advantage to working with Hajłasz gradients: Poincaré inequalities hold for all measures, see Sect. 3. Other types of gradients, such as p-weak upper gradients [1], do not have this property and therefore corresponding Poincaré inequalities need to be assumed a priori, as was the case in previous works such as [2,5,6,23, 28]. We remark that this requirement already excludes many doubling measures in R equipped with Euclidean distance [3]. Our method is to able to overcome the challenges posed by the nonlocal nature of Hajłasz gradients [8]. For example, if a function uis constant in a set A⊂X and gis a Hajłasz gradient of u, then g1X\Ais not necessarily a Hajłasz gradient of u. This fact makes it impossible to directly use the standard localization techniques for p-weak upper gradients. More specifically, there is no access to neither pointwise glueing lemma nor pointwise Leibniz rule. The Hajłasz gradients do satisfy nonlocal versions of the glueing lemma and the Leibniz rule, both of which we employ in our method. Standard localization techniques are used in the literature for proving selfimprovement properties of capacity density conditions involving p-weak upper gradients. More specifically, the approaches in [2,28] are based on Wolff potentials, and oscillation estimates for p-harmonic functions and p-energy minimizers near a boundary point. The two papers [5,6] rely on maximal function techniques and characterizations of pointwise p-Hardy inequalities by curves. The above approaches can not be directly adapted to our setting with Hajłasz gradients of order 0 <β≤1. 123 The Hajłasz Capacity Density Condition is Self-improving Page 3 of 42 276 The Wannebo approach [31]—that was used as a first half of the argument in [23]to show local p-Hardy inequalities—can not be adapted to our setting either, due to the non-locality. We show that the Wannebo approach can be replaced by Keith–Zhong estimates on maximal functions, and this work constitutes main part of the present paper. We also adapt the second half of [23] for our purposes, namely, the Koskela– Zhong estimates for improving local Hardy inequalities. This last part is translated to the non-local case in a more straightforward way. Our method also has a disadvantage. We need to assume that Xis a complete geodesic space. These assumptions provide us Lemma 5.3, Theorem 3.8, Lemmas 2.6, 2.5, and few other useful properties. We do not know how far these two conditions could be relaxed. In particular, it would be interesting to know if our main result, Theorem 9.6, could be extended to the more general setting of complete and connected metric spaces. The outline of this paper is as follows. After a brief discussion on notation and preliminary concepts in Sect. 2, Hajłasz gradients are introduced in Sect. 3along with their calculus and various Poincaré inequalities. Capacity density condition is discussed in Sect. 4, and some preliminary sufficient and necessary bounds on the Assouad codimension are given in Sect. 5. The most technical part of the work is contained in Sects. 6,7and 8, in which the analytic framework of the self-improvement is gradually developed. Finally, the main result is given in Sect. 9, in which we show that various geometrical and analytical conditions are equivalent to the capacity density condition. The geometrical conditions are open-ended by definition, and hence all analytical conditions are seen to be self-improving or doubly open-ended. 2 Preliminaries In this section, we recall the setting from [19]. Our results are based on quantitative estimates and absorption arguments, where it is often crucial to track the dependencies of constants quantitatively. For this purpose, we will use the following notational convention: C(∗,...,∗)denotes a positive constant which quantitatively depends on the quantities indicated by the ∗’s but whose actual value can change from one occurrence to another, even within a single line. 2.1 Metric Spaces Unless otherwise specified, we assume that X=(X,d,μ)is a metric measure space equipped with a metric dand a positive complete Borel measure μsuch that 0 < μ(B)<∞for all balls B⊂X, each of which is always an open set of the form B=B(x,r)={y∈X:d(y,x)<r} with x∈Xand r>0. As in [1, p. 2], we extend μas a Borel regular (outer) measure on X. We remark that the space Xis separable under these assumptions, see [1, Proposition 1.6]. We also assume that #X≥2 and that the measure μis doubling, 123 276 Page 4 of 42 J. Canto, A.V. Vähäkangas that is, there is a constant cμ>1, called the doubling constant of μ, such that μ(2B)≤cμμ(B)(2.1) for all balls B=B(x,r)in X.Hereweusefor0<t<∞the notation tB =B(x,tr). In particular, for all balls B=B(x,r)that are centered at x∈A⊂Xwith radius r≤diam(A), we have that μ(B) μ(A)≥2−sr diam(A)s ,(2.2) where s=log2cμ>0. We refer to [12, p. 31]. If Xis connected, then the doubling measure μis also reverse doubling in the sense that there is a constant 0 <cR= C(cμ)<1 such that μ(B(x,r/2)) ≤cRμ(B(x,r)) (2.3) for every x∈Xand 0 <r<diam(X)/2. See for instance [1, Lemma 3.7]. 2.2 Geodesic Spaces Let Xbe a metric space satisfying the conditions stated in Sect. 2.1.Byacurve we mean a nonconstant, rectifiable, continuous mapping from a compact interval of Rto X; we tacitly assume that all curves are parametrized by their arc-length. We say that Xis a geodesic space, if every pair of points in Xcan be joined by a curve whose length is equal to the distance between the two points. In particular, it easily follows that 0<diam(2B)≤4diam(B)(2.4) for all balls B=B(x,r)in a geodesic space X. Since geodesic spaces are connected, the measure μis reverse doubling in a geodesic space Xin the sense that inequality (2.3) holds. The following lemma is [14, Lemma 12.1.2]. Lemma 2.5 Suppose that X is a geodesic space and A ⊂X is a measurable set. Then the function r→ μ(B(x,r)∩A) μ(B(x,r)) :(0,∞)→R is continuous whenever x ∈X. The second lemma, in turn, is [19, Lemma 2.5]. Lemma 2.6 Suppose that B =B(x,r)and B=B(x,r)are two balls in a geodesic space X such that x∈B and 0<r≤diam(B). Then μ(B)≤c3 μμ(B∩B). 123 The Hajłasz Capacity Density Condition is Self-improving Page 5 of 42 276 2.3 Hölder and Lipschitz Functions Let A⊂X. We say that u:A→Ris a β-Hölder function, with an exponent 0<β≤1 and a constant 0 ≤κ<∞,if |u(x)−u(y)|≤κd(x,y)βfor all x,y∈A. If u:A→Ris a β-Hölder function, with a constant κ, then the classical McShane extension v(x)=inf{u(y)+κd(x,y)β:y∈A},x∈X,(2.7) defines a β-Hölder function v:X→R, with the constant κ, which satisfies v|A=u; we refer to [12, pp. 43–44] and [27]. The set of all β-Hölder functions u:A→Ris denoted by Lipβ(A). The 1-Hölder functions are also called Lipschitz functions. 2.4 Additional Notation We write N={1,2,3,...}and N0=N∪{0}. We use the following familiar notation: uA=A u(y)dμ(y)=1 μ(A)A u(y)dμ(y) is the integral average of u∈L1(A)over a measurable set A⊂Xwith 0 <μ(A)< ∞. The characteristic function of set A⊂Xis denoted by 1A; that is, 1A(x)=1 if x∈Aand 1A(x)=0ifx∈X\A. The distance between a point x∈Xand a set A⊂Xis denoted by d(x,A). The closure of a set A⊂Xis denoted by A.In particular, if B⊂Xis a ball, then the notation Brefers to the closure of the ball B. 3 Hajłasz Gradients We work with Hajłasz β-gradients of order 0 <β≤1 in a metric space X. Definition 3.1 For each function u:X→R,weletDβ H(u)be the (possibly empty) family of all measurable functions g:X→[0,∞] such that |u(x)−u(y)|≤d(x,y)βg(x)+g(y)(3.2) almost everywhere, i.e., there exists an exceptional set N=N(g)⊂Xfor which μ(N)=0 and inequality (3.2) holds for every x,y∈X\N. A function g∈Dβ H(u) is called a Hajłasz β-gradient of the function u. The Hajłasz 1-gradients in metric spaces are introduced in [9]. More details on these gradients and their applications can be found, for instance, from [8,10,29,30,32]. The following basic properties are easy to verify for all β-Hölder functions u,v:X→R 123 276 Page 6 of 42 J. Canto, A.V. Vähäkangas (D1) |a|g∈Dβ H(au)if a∈Rand g∈Dβ H(u); (D2) gu+gv∈Dβ H(u+v) if gu∈Dβ H(u)and gv∈Dβ H(v); (D3) If f:R→Ris a Lipschitz function with constant κ, then κg∈Dβ H(f◦u)if g∈Dβ H(u). There are both disadvantages and advantages to working with Hajłasz gradients. A technical disadvantage is their nonlocality [8]. For instance, if uis constant on some set A⊂Xand g∈Dβ H(u), then g1X\Aneed not belong to Dβ H(u). By the so-called glueing lemma, see for instance [1, Lemma 2.19], the corresponding localization property holds for so-called p-weak upper gradients, which makes their application more flexible. However, the following nonlocal glueing lemma from [19, Lemma 6.6] holds in the setting of Hajłasz gradients. We recall the proof for convenience. Lemma 3.3 Let 0<β≤1and let A ⊂X be a Borel set. Let u :X→Rbe a β-Hölder function and suppose that v:X→Ris such that v|X\A=u|X\Aand there exists a constant κ≥0such that |v(x)−v(y)|≤κd(x,y)βfor all x,y∈X. Then gv=κ1A+gu1X\A∈Dβ H(v) whenever gu∈Dβ H(u). Proof Fix a function gu∈Dβ H(u)and let N⊂Xbe the exceptional set such that μ(N)=0 and inequality (3.2) holds for every x,y∈X\Nand with g=gu. Fix x,y∈X\N.Ifx,y∈X\A, then |v(x)−v(y)|=|u(x)−u(y)|≤d(x,y)βgu(x)+gu(y)=d(x,y)βgv(x)+gv(y). If x∈Aor y∈A, then |v(x)−v(y)|≤κd(x,y)β≤d(x,y)βgv(x)+gv(y). By combining the estimates above, we find that |v(x)−v(y)|≤d(x,y)βgv(x)+gv(y) whenever x,y∈X\N. The desired conclusion gv∈Dβ H(v) follows.  The following nonlocal generalization of the Leibniz rule is from [10]. The proof is recalled for the convenience of the reader. The nonlocality is reflected by the appearence of the two global terms ψ∞and κin the statement below. Lemma 3.4 Let 0<β≤1,letu:X→Rbe a bounded β-Hölder function, and let ψ:X→Rbe a bounded β-Hölder function with a constant κ≥0. Then uψ:X→R is a β-Hölder function and (guψ∞+κ|u|)1{ψ=0}∈Dβ H(uψ) 123 The Hajłasz Capacity Density Condition is Self-improving Page 7 of 42 276 for all gu∈Dβ H(u).Here{ψ= 0}={y∈X:ψ(y)= 0}. Proof Fix x,y∈X. Then |u(x)ψ(x)−u(y)ψ(y)|=|u(x)ψ(x)−u(y)ψ(x)+u(y)ψ(x)−u(y)ψ(y)| ≤|ψ(x)||u(x)−u(y)|+|u(y)||ψ(x)−ψ(y)|.(3.5) Since uand ψare both bounded β-Hölder functions in X, it follows that uψis β- Hölder in X. Fix a function gu∈Dβ H(u)and let N⊂Xbe the exceptional set such that μ(N)=0 and inequality (3.2) holds for every x,y∈X\Nand with g=gu. Denote h=(guψ∞+κ|u|)1{ψ=0}.Letx,y∈X\N. It suffices to show that |u(x)ψ(x)−u(y)ψ(y)|≤d(x,y)β(h(x)+h(y)) . By (3.5), we get |u(x)ψ(x)−u(y)ψ(y)|≤|ψ(x)|d(x,y)β(gu(x)+gu(y)) +|u(y)|κd(x,y)β =d(x,y)β(|ψ(x)|(gu(x)+gu(y)) +κ|u(y)|).(3.6) Next we do a case study. If x,y∈{ψ= 0}, then by (3.6)wehave |u(x)ψ(x)−u(y)ψ(y)|≤d(x,y)βgu(x)ψ∞1{ψ=0}(x)+(gu(y)ψ∞ +κ|u(y)|)1{ψ=0}(y) ≤d(x,y)β(h(x)+h(y)) . If x∈X\{ψ= 0}and y∈{ψ= 0}, then |u(x)ψ(x)−u(y)ψ(y)|≤d(x,y)βκ|u(y)|1{ψ=0}(y) =d(x,y)βh(y)≤d(x,y)β(h(x)+h(y)) . The case x∈{ψ= 0}and y∈X\{ψ= 0}is symmetric and the last case is trivial.  A significant advantage of working with Hajłasz gradients is that Poincaré inequalities are always valid [30,32]. The same is not true for the usual p-weak upper gradients, in which case a Poincaré inequality often has to be assumed. The following theorem gives a (β, p,p)-Poincaré inequality for any 1 ≤p<∞. This inequality relates the Hajłasz gradient to the given measure. Theorem 3.7 Suppose that X is a metric space. Fix exponents 1≤p<∞and 0<β≤1. Suppose that u ∈Lipβ(X)and that g ∈Dβ H(u). Then B |u(x)−uB|pdμ(x)1/p ≤2diam(B)βB g(x)pdμ(x)1/p 123 276 Page 8 of 42 J. Canto, A.V. Vähäkangas holds whenever B ⊂X is a ball. Proof We follow the proof of [12, Theorem 5.15]. Let N=N(g)⊂Xbe the exceptional set such that μ(N)=0 and (3.2) holds for every x,y∈X\N. By Hölder’s inequality B |u(x)−uB|pdμ(x)≤B\NB\N |u(y)−u(x)|pdμ(y)dμ(x). Applying (3.2), we obtain B\NB\N |u(y)−u(x)|pdμ(y)dμ(x) ≤B\NB\N d(x,y)βp(g(x)+g(y))pdμ(y)dμ(x) ≤2p−1diam(B)βpB\NB\Ng(x)p+g(y)pdμ(y)dμ(x) ≤2pdiam(B)βpB g(x)pdμ(x). The claimed inequality follows by combining the above estimates.  In a geodesic space, even a stronger (β, p,q)-Poincaré inequality holds for some q<p. In the context of p-weak upper gradients, this result corresponds to the deep theorem of Keith and Zhong [16]. In our context the proof is simpler, since we have (β, q,q)-Poincaré inequalities for all exponents 1 <q<pby Theorem 3.7.It remains to argue that one of these inequalities self-improves to a (β, p,q)-Poincaré inequality when q<pis sufficiently close to p. Theorem 3.8 Suppose that X is a geodesic space. Fix exponents 1<p<∞and 0<β≤1. Suppose that u ∈Lipβ(X)and that g ∈Dβ H(u). Then there exists an exponent 1<q<p and a constant C, both depending on cμ, p and β, such that B |u(x)−uB|pdμ(x)1/p ≤Cdiam(B)βB g(x)qdμ(x)1/q holds whenever B ⊂X is a ball. Proof We will apply [19, Theorem 3.6] and for this purpose we need some preparations. Fix Q=Q(β, p,cμ)such that Q>max{log2cμ,βp}. Since lim q→pQq/(Q−βq)=Qp/(Q−βp)>p, there exists 1 <q=q(β, p,cμ)<psuch that p<Qq/(Q−βq)and βq<Q. Theorem 3.7 and Hölder’s inequality implies that 123 The Hajłasz Capacity Density Condition is Self-improving Page 15 of 42 276 By the 5r-covering lemma [1, Lemma 1.7], we obtain points xk∈F,k=1,2,..., such that the balls Bxk⊂B0=4Bwith radii rxk≤4rare pairwise disjoint and F⊂∞ k=15Bxk. Hence, Hμ,βη 20r(F)≤ ∞  k=1 μ(5Bxk)(5rxk)−βη ≤C ∞  k=1 rβ(p−η) Bxk g(x)pdμ(x) ≤Crβ(p−η) 4B g(x)pdμ(x)≤Crβ(p−η) X g(x)pdμ(x), where C=C(β, p,η,cμ). We remark that the scale 20rof the Hausdorff content in the left-hand side comes from the fact that radii of the covering balls 5Bxkfor Fare bounded by 20r. The desired inequality follows by taking infimum over all functions g∈Dβ H(u)and then over all functions uas above.  The following theorem gives an upper bound for the upper Assouad codimension for sets satisfying a capacity density condition. We emphasize the strict inequality co dimA(E)<βp, completeness and connectedness in the assumptions below. Theorem 5.7 Assume that X is a complete and connected metric space. Let 1≤p< ∞and 0<β≤1. Let E be a closed set with co dimA(E)<βp. Then E satisfies a (β, p)-capacity density condition. Proof Fix 0 <η<psuch that co dimA(E)<βη.Letx∈Eand 0 <r< diam(E)/8, and write B=B(x,r). By a simple covering argument using the doubling condition, it follows that Hμ,βη 20r(E∩B)≥CHμ,βη r(E∩B)with a constant C independent of B. Applying also Lemma 5.5 and then Lemma 5.3 gives rβ(p−η) capβ,p(E∩B,2B)≥CHμ,βη 20r(E∩B)≥CHμ,βη r(E∩B)≥r−βημ(B). After simplification, we obtain capβ,p(E∩B,2B)≥Cr−βpμ(B), and the claim follows.  Conversely, by using boundary Poincaré inequalities, it is easy to show that a capacity density condition implies an upper bound for the upper Assouad codimension. Theorem 5.8 Let 1≤p<∞and 0<β≤1. Assume that E ⊂X satisfies a (β, p)-capacity density condition. Then co dimA(E)≤βp. Proof We adapt the proof of [4, Theorem 5.3] to our setting. By using the doubling condition, it suffices to show that μ(Er∩B(w, R)) μ(B(w, R)) ≥cr Rβp ,(5.9) 123 276 Page 16 of 42 J. Canto, A.V. Vähäkangas for all w∈Eand 0 <r<R<diam(E)/4, where the constant cis independent of w,rand R. If μ(Er∩B(w, R)) ≥1 2μ(B(w, R)), the claim is clear since r Rβp≤1. Thus we may assume in the sequel that μ(Er∩B(w, R)) < 1 2μ(B(w, R)), whence μ(B(w, R)\Er)≥1 2μ(B(w, R)) > 0.(5.10) We define a β-Hölder function u:X→Rby u(x)=min{1,r−βd(x,E)β},x∈X. Then u=0inE,u=1inX\Er, and |u(x)−u(y)|≤r−βd(x,y)βfor all x,y∈X. We obtain R−βpB(w,R) |u(x)|pdμ(x)≥R−βpB(w,R)\Er |u(x)|pdμ(x) =R−βpμ(B(w, R)\Er)≥1 2R−βpμ(B(w, R)), (5.11) where the last step follows from (5.10). Since u=1inX\Erand uis a β-Hölder function with a constant r−β, Lemma 3.3 implies that g=r−β1Er∈Dβ H(u). We observe from (5.11) and Theorem 4.10 that Cr−βpμ(Er∩B(w, R)) =CB(w,R) g(x)pdμ(x) ≥2R−βpB(w,R) |u(x)|pdμ(x)≥R−βpμ(B(w, R)) , (5.12) where the constant Cis independent of w,rand R. The claim (5.9) follows from (5.12).  Observe that the upper bound co dimA(E)≤βpappears in the conclusion of Theorem 5.8. The rest of the paper is devoted to showing the strict inequality co dimA(E)<βpfor 1 <p<∞, which leads to a characterization of the (β, p)- capacity density condition in terms of this strict dimensional inequality. Our strategy is to combine the methods in [19,23] to prove a significantly stronger variant of the boundary Poincaré inequality, which involves maximal operators, see Theorem 7.4. We use this maximal inequality to prove a Hardy inequality, Theorem 8.4. This variant leads to the characterization in Theorem 9.5 of the (β, p)-capacity density condition in terms of the strict inequality co dimA(E)<βp, among other geometric and analytic conditions. Certain additional geometric assumptions are needed for the proof of Theorem 9.5, namely geodesic property of X. We are not aware, to which extent this geometric assumption can be relaxed. 123 The Hajłasz Capacity Density Condition is Self-improving Page 17 of 42 276 6 Local Boundary Poincaré Inequality Our next aim is to show Theorem 7.4, which concerns inequalities localized to a fixed ball B0centered at E. The proof of this theorem requires that we first truncate the closed set Eto a smaller set EQcontained in a Whitney-type ball Q⊂B0such that a local variant of the boundary Poincaré inequality remains valid. The choice of the Whitney-type ball Qand the construction of the set EQare given in this section. This truncation construction, that we borrow from [23], is done in such a way that a local Poincaré inequality holds, see Lemma 6.6. This inequality is local in two senses: on one hand, the inequality holds only for balls B⊂4Q; on the other hand, it holds for functions vanishing on the truncated set EQ. Due to the subtlety of its consequences, the truncation in this section may seem arbitrary, but it is actually needed for our purposes. Assume that Eis a closed set in a geodesic space X. Fix a ball B0=B(w, R)⊂X with w∈Eand R<diam(E). Define a family of balls B0={B⊂X:Bis a ball such that B⊂B0}.(6.1) We also need a single Whitney-type ball Q=B(w, rQ)⊂B0, where rQ=R 128 .(6.2) The 4-dilation of the Whitney-type ball is denoted by Q∗=4Q=B(w, 4rQ).Now it holds that Q∗X, since otherwise diam(X)=diam(Q∗)≤R/16 <diam(E)≤diam(X). The following properties (W1)–(W4) are straightforward to verify. For instance, property (W1) follows from inequality (2.4); we omit the simple proofs. (W1) If B⊂Xis a ball such that B∩Q=∅= 2B∩(X\Q∗), then diam(B)≥ 3rQ/4; (W2) If B⊂Q∗is a ball, then B∈B0; (W3) If B⊂Q∗is a ball, x∈Band 0 <r≤diam(B), then B(x,5r)∈B0; (W4) If x∈Q∗and 0 <r≤2diam(Q∗), then B(x,r)∈B0. Observe that there is some overlap between the properties (W2)–(W4). The slightly different formulations will conveniently guide the reader in the sequel. The following Lemma 6.3 gives us the truncated set EQ⊂Qthat contains big pieces of the original set Eat small scales. This big pieces property is not always satisfied by E∩Q, so it cannot be used instead. Lemma 6.3 Assume that E ⊂X is a closed set in a geodesic space X and that Q=B(w, rQ)for w∈E and rQ>0. Let E0 Q=E∩1 2Q, define inductively, for every j ∈N, that 123 276 Page 18 of 42 J. Canto, A.V. Vähäkangas Ej Q= x∈Ej−1 Q E∩B(x,2−j−1rQ), and set EQ= j∈N0 Ej Q. Then the following statements hold: (a) w∈EQ; (b) EQ⊂E; (c) EQ⊂Q; (d) Ej−1 Q⊂Ej Q⊂EQfor every j ∈N. The next lemma shows that the truncated set EQin Lemma 6.3 really contains big pieces of the original set Eat all small scales. Using these balls we later employ the capacity density condition of E, see the proof of Lemma 6.6 for details. Lemma 6.4 Let E, Q, and EQbe as in Lemma 6.3. Suppose that m ∈N0and x ∈X is such that d(x,EQ)<2−m+1rQ. Then there exists a ball  B=B(yx,m,2−m−1rQ) such that yx,m∈E, E∩2−1 B=EQ∩2−1 B,(6.5) and  B⊂B(x,2−m+2rQ). We refer to [23] for the proofs of Lemmas 6.3 and 6.4. A similar truncation procedure is a standard technique when proving the self-improvement of different capacity density conditions. It originally appears in [24, p. 180] for Riesz capacities in Rn, and later also in [28]forRnand in [2] for general metric spaces. With the aid of big pieces inside the truncated set EQ, we can show that a localized variant of the boundary Poincaré inequality in Theorem 4.10 holds for the truncated set EQ,ifEsatisfies a capacity density condition. Observe that the function uin Lemma 6.6 is assumed to vanish only in the truncated set EQ, which is a subset of E.This is the key difference when compared to the boundary Poincaré inequality in Theorem 4.10. Lemma 6.6 Let X be a geodesic space. Assume that 1≤p<∞and 0<β≤1. Suppose that a closed set E ⊂X satisfies the (β, p)-capacity density condition with a constant c0. Let B0=B(w, R)⊂X be a ball with w∈E and R <diam(E), and let Q=B(w, rQ)⊂B0be the corresponding Whitney-type ball. Assume that B ⊂Q∗ is a ball with a center xB∈EQ. Then there is a constant K =K(p,cμ,c0)such that B |u(x)|pdμ(x)≤Kdiam(B)βpB g(x)pdμ(x)(6.7) for all β-Hölder functions u in X with u =0in EQ, and for all g ∈Dβ H(u). Proof Fix a ball B=B(xB,rB)⊂Q∗with xB∈EQ. Recall that rQ=R/128 as in (6.2). Since B⊂Q∗X,wehave 0<rB≤diam(B)≤diam(Q∗)≤8rQ. 123 The Hajłasz Capacity Density Condition is Self-improving Page 19 of 42 276 Hence, we can choose m∈N0such that 2−m+2rQ<rB≤2−m+3rQ. Then d(xB,EQ)=0<2−m+1rQ. By Lemma 6.4 with x=xBthere exists a ball  B=B(y,2−m−1rQ)such that y∈E, E∩2−1 B=EQ∩2−1 B(6.8) and  B⊂B(xB,2−m+2rQ)⊂B(xB,rB)=B. Observe also that B⊂32 B. Fix a β-Hölder function uin Xwith u=0inEQ, and let g∈Dβ H(u). We estimate B |u(x)|pdμ(x)≤C(p)B |u(x)−uB|pdμ(x)+C(p)|uB−u B|p+C(p)|u B|p. By the (β, p,p)-Poincaré inequality in Theorem 3.7, we obtain B |u(x)−uB|pdμ(x)≤C(p)diam(B)βpB g(x)pdμ(x). Using also Hölder’s inequality and the doubling condition, we get |uB−u B|p≤ B |u(x)−uB|pdμ(x) ≤C(cμ)B |u(x)−uB|pdμ(x)≤C(p,cμ)diam(B)βpB g(x)pdμ(x). In order to estimate the remaining term |u B|p, we write {u=0}={y∈X:u(y)= 0}⊃EQ. Using the monotonicity of capacity, identity (6.8), the assumed capacity density condition, and the doubling condition, we obtain capβ,p({u=0}∩2−1 B, B)≥capβ,p(EQ∩2−1 B, B)=capβ,p(E∩2−1 B, B) ≥c0(2−m−2rQ)−βpμ(2−1 B)≥C(cμ,c0)r−βp Bμ(B). By Theorem 4.7, we obtain |u B|p≤ B |u(x)|pdμ(x)≤C(p)capβ,p({u=0}∩2−1 B, B)−1 B g(x)pdμ(x) ≤C(p,cμ,c0)rβp B μ(B) B g(x)pdμ(x)≤C(p,cμ,c0)diam(B)βpB g(x)pdμ(x). The proof is completed by combining the above estimates for the three terms.  123 276 Page 20 of 42 J. Canto, A.V. Vähäkangas 7 Maximal Boundary Poincaré Inequalities We formulate and prove our key results, Theorems 7.4 and 7.6. These theorems give improved variants of the local boundary Poincaré inequality (6.7). The improved variants are norm inequalities for a combination of two maximal functions. Hence, we can view Theorems 7.4 and 7.6 as maximal boundary Poincaré inequalities. Our treatment adapts [19] to the setting of boundary Poincaré inequalities. Definition 7.1 Let Xbe a geodesic space, 1 <p<∞and 0 <β≤1. If B=∅is a given family of balls in X, then we define a fractional sharp maximal function M,p β,Bu(x)=sup x∈B∈B1 diam(B)βpB |u(y)−uB|pdμ(y)1/p ,x∈X,(7.2) whenever u:X→Ris a β-Hölder function. We also define the maximal function adapted to a given set EQ⊂Xby MEQ,p β,Bu(x)=sup x∈B∈B1EQ(xB) diam(B)βpB |u(y)|pdμ(y)1/p ,x∈X,(7.3) whenever u:X→Ris a β-Hölder function such that u=0inEQ.HerexBis the center of the ball B∈B. The suprema in (7.2) and (7.3) are defined to be zero, if there is no ball Bin Bthat contains the point x. We are mostly interested in maximal functions for the ball family (6.1). The following is the main result in this section. Theorem 7.4 Let X be a geodesic space. Let 1<p<∞and 0<β≤1. Let E ⊂X be a closed set which satisfies the (β, p)-capacity density condition with a constant c0. Let B0=B(w, R)be a ball with w∈E and R <diam(E). Let EQbe the truncation of E to the Whitney-type ball Q as in Sect. 6. Then there exists a constant C=C(β, p,cμ,c0)>0such that inequality B0M,p β,B0u+MEQ,p β,B0up dμ≤CB0 gpdμ(7.5) holds whenever u ∈Lipβ(X)is such that u =0in EQand g ∈Dβ H(u). Proof We use the following Theorem 7.6 with ε=0. Observe that the first term on the right-hand side of (7.7) is finite, since uis a β-Hölder function in Xsuch that u=0inEQ. Inequality (7.5) is obtained when this term is absorbed to the left-hand side after choosing the number klarge enough, depending only on β,p,cμand c0. Theorem 7.6 Let X be a geodesic space. Let 1<q<p<∞and 0<β≤1 be such that the (β, p,q)-Poincaré inequality in Theorem 3.8 holds. Let E ⊂Xbe a closed set satisfying the (β, p)-capacity density condition with a constant c0. Let B0=B(w, R)be a ball with w∈E and R <diam(E). Let EQbe the truncation of E 123 The Hajłasz Capacity Density Condition is Self-improving Page 21 of 42 276 to the Whitney-type ball Q =B(w, rQ)⊂B0as in Sect. 6. Let K =K(p,cμ,c0)>0 be the constant for the local boundary Poincaré inequality in Lemma 6.6. Assume that k∈N,0≤ε<(p−q)/2, and α=βp2/(2(s+βp)) > 0with s =log2cμ. Then, inequality B0M,p β,B0u+MEQ,p β,B0up−ε dμ≤C12k(ε−α) +K4kε kp−1 B0M,p β,B0u+MEQ,p β,B0up−ε dμ+C1C(k,ε)K B0\{M,p β,B0u+MEQ,p β,B0u=0} gpM,p β,B0u+MEQ,p β,B0u−ε dμ+C3B0 gp−εdμ (7.7) holds for each u ∈Lipβ(X)with u =0in EQand every g ∈Dβ H(u).HereC 1= C1(β, p,cμ),C 1=C1(β, p,cμ),C 3=C(β, p,cμ),C(k,ε)=(4kε−1)/ε if ε>0 and C(k,0)=k. Remark 7.8 Observe that Theorem 7.6 implies a variant of Theorem 7.4 when we choose ε>0 to be sufficiently small. We omit the formulation of this variant, since we do not use it. This is because of the following defect: one of the terms is the integral of gpM,p β,B0u+MEQ,p β,B0u−εinstead of gp−ε. Because of its independent interest, we have however chosen to formulate Theorem 7.6 such that it incorporates the parameter ε. The proof of Theorem 7.6 is completed in Sect. 7.4. For the proof, we need preparations that are treated in Sects. 7.1–7.3. At this stage, we already fix X,E,B0,Q, EQ,K,B0,p,β,q,ε,kand uas in the statement of Theorem 7.6. Notice, however, that the β-Hajłasz gradient gof uis not yet fixed. We abbreviate Mu=M,p β,B0uand MEQu=MEQ,p β,B0u, and denote Uλ=x∈B0:Mu(x)+MEQu(x)>λ ,λ>0. The sets Uλare open in X.IfF⊂Xis a Borel set and λ>0, we write Uλ F=Uλ∩F. We refer to these objects throughout Sect. 7without further notice. 7.1 Localization to Whitney-Type Ball We need a smaller maximal function that is localized to the Whitney-type ball Q. Consider the ball family BQ={B⊂X:Bis a ball such that B⊂Q∗} and define MEQ Qu=1Q∗MEQ,p β,BQu.(7.9) 123 276 Page 22 of 42 J. Canto, A.V. Vähäkangas If λ>0, we write Qλ=x∈Q∗:MEQ Qu(x)>λ .(7.10) We estimate the left-hand side of (7.7) in terms of (7.9) with the aid of the following norm estimate. We will later be able to estimate the smaller maximal function (7.9). Lemma 7.11 There are constants C1=C(p,cμ)and C2=C(β, p,cμ)such that B0Mu(x)+MEQu(x)p−εdμ(x) ≤C1B0MEQ Qu(x)p−εdμ(x)+C2B0 g(x)p−εdμ(x) for all g ∈Dβ H(u). Proof Fix g∈Dβ H(u).Wehave B0Mu(x)+MEQu(x)p−εdμ(x) ≤C(p)B0Mu(x)p−εdμ(x)+C(p)B0MEQu(x)p−ε dμ(x). (7.12) Let x∈B0and let B∈B0be such that x∈B.By(6.1) and the (β, p,q)-Poincaré inequality, see Theorem 3.8, we obtain 1 diam(B)βpB |u(y)−uB|pdμ(y)1/p ≤C(cμ,p,β) B g(y)qdμ(y)1/q ≤C(cμ,p,β)(M(gq1B0)(x)) 1 q. Here Mis the non-centered Hardy–Littlewood maximal function operator. By taking supremum over balls Bas above, we obtain Mu(x)=M,p β,B0u(x)≤C(β, p,cμ)(M(gq1B0)(x)) 1 q. Since p−ε>q, the Hardy–Littlewood maximal function theorem [1, Theorem 3.13] implies that B0Mu(x)p−εdμ(x)≤C(β, p,cμ)B0 (M(gq1B0)(x)) p−ε qdμ(x) ≤C(β, p,cμ) p−q−εB0 g(x)p−εdμ(x). 123 The Hajłasz Capacity Density Condition is Self-improving Page 23 of 42 276 Since ε<(p−q)/2, this provides an estimate for the first term in the right-hand side of (7.12). In order to estimate the second term in the right-hand side of (7.12), we let x∈ B0\Q∗and let B∈B0be such that x∈B. We will estimate the term 1EQ(xB) diam(B)βpB |u(y)|pdμ(y)1/p , where xBis the center of B. Clearly we may assume that xB∈EQ⊂Q. By condition (W1), we see that diam(B)≥Cdiam(B0)and μ(B)≥C(cμ)μ(B0). Since B∈B0, we have B⊂B0. Thus, 1EQ(xB) diam(B)βpB |u(y)|pdμ(y)1/p ≤C(p,cμ)1 diam(B0)βpB0 |u(y)|pdμ(y)1/p . By taking supremum over balls Bas above, we obtain MEQu(x)=MEQ,p β,B0u(x)≤C(p,cμ)1 diam(B0)βpB0 |u(y)|pdμ(y)1/p for all x∈B0\Q∗. By integrating, we obtain B0\Q∗MEQu(x)p−ε dμ(x) ≤C(p,cμ)μ(B0)1 diam(B0)βpB0 |u(y)|pdμ(y)p−ε p ≤C(p,cμ)μ(B0) diam(B0)β(p−ε) B0 |u(y)−uQ∗|pdμ(y)p−ε p +|uQ∗|p−ε. (7.13) By the (β, p,q)-Poincaré inequality and Hölder’s inequality with q<p−ε,we obtain C(p,cμ)μ(B0) diam(B0)β(p−ε) B0 |u(y)−uQ∗|pdμ(y)p−ε p ≤C(p,cμ)μ(B0) diam(B0)β(p−ε) B0 |u(y)−uB0|pdμ(y)p−ε p +|uB0−uQ∗|p−ε ≤C(p,cμ)μ(B0) diam(B0)β(p−ε) B0 |u(y)−uB0|pdμ(y)p−ε p ≤C(β, p,cμ)μ(B0)B0 g(x)qdμ(x)p−ε q ≤C(β, p,cμ)B0 g(x)p−εdμ(x). 123 276 Page 24 of 42 J. Canto, A.V. Vähäkangas On the other hand, since Q∗=B(w, 4rQ)with w∈EQand rQ=R/128, we have C(p,cμ)μ(B0) diam(B0)β(p−ε) |uQ∗|p−ε≤C(p,cμ)μ(Q∗) diam(Q∗)β(p−ε) |uQ∗|p−ε ≤C(p,cμ)Q∗1EQ(w) diam(Q∗)βpQ∗ |u(y)|pdμ(y)p−ε p dμ(x) ≤C(p,cμ)Q∗1Q∗(x)MEQ,p β,BQu(x)p−ε dμ(x) =C(p,cμ)B0MEQ Qu(x)p−ε dμ(x). This concludes the estimate for the integral in (7.13) over B0\Q∗. To estimate the integral over the set Q∗,wefixx∈Q∗.LetB∈B0be such that x∈B.IfB⊂Q∗, then 1EQ(xB) diam(B)βpB |u(y)|pdμ(y)1/p ≤1Q∗(x)MEQ,p β,BQu(x)=MEQ Qu(x). Next we consider the case B⊂ Q∗, and again we need to estimate the quantity 1EQ(xB) diam(B)βpB |u(y)|pdμ(y)1/p . We may assume that xB∈EQ⊂Q. By condition (W1), we obtain diam(B)≥ Cdiam(B0)and μ(B)≥C(cμ)μ(B0). Hence, 1EQ(xB) diam(B)βpB |u(y)|pdμ(y)1/p ≤C(p,cμ)1 diam(B0)βpB0 |u(y)|pdμ(y)1/p . By taking supremum over balls Bas above, we obtain MEQu(x)≤MEQ Qu(x)+C(p,cμ)1 diam(B0)βpB0 |u(y)|pdμ(y)1/p for all x∈Q∗. It follows that Q∗MEQu(x)p−ε dμ(x) ≤C(p,cμ)B0MEQ Qu(x)p−εdμ(x) +C(p,cμ)μ(B0)1 diam(B0)βpB0 |u(y)|pdμ(y)p−ε p . We can now estimate as above, and complete the proof.  123 The Hajłasz Capacity Density Condition is Self-improving Page 31 of 42 276 Lemma 7.28 Let λ>λ Q/2and g ∈Dβ H(u). Then λpμ(Qλ)≤C(β, p,cμ)(λ2k)p 2kαμ(U2kλ)+K kp 2k−1  j=k (λ2j)pμ(U2jλ)+KUλ\U4kλ gpdμ. (7.29) Proof By the covering property Qλ⊂B∈Sλ(Q)5Band doubling condition (2.1), λpμ(Qλ)≤λp B∈Sλ(Q) μ(5B)≤c3 μ B∈Sλ(Q) λpμ(B). Recall also that B⊂Uλif B∈Sλ(Q). Therefore, and using the fact that Sλ(Q)is a disjoint family, it suffices to prove that inequality λpμ(B)≤C(β, p,cμ)(λ2k)p 2kαμ(U2kλ B)+K kp 2k−1  j=k (λ2j)pμ(U2jλ B)+KB\U4kλ gpdμ (7.30) holds for every B∈Sλ(Q). To this end, let us fix a ball B∈Sλ(Q). If μ(U2kλ B)≥μ(B)/2, then λpμ(B)≤2λpμ(U2kλ B)=2(λ2k)p 2kp μ(U2kλ B)≤2(λ2k)p 2kαμ(U2kλ B), which suffices for the required local estimate (7.30). Let us then consider the more difficult case μ(U2kλ B)<μ(B)/2. In this case, by the stopping inequality (7.17), λpμ(B)≤1EQ(xB) diam(B)βpB |u(x)|pdμ(x) =1EQ(xB) diam(B)βpX1B\U2kλ(x)+1U2kλ B (x)|u(x)|pdμ(x). By Lemma 7.18 it suffices to estimate the integral over the set B\U2kλ=B\U2kλ B; observe that the measure of this set is strictly positive. We remark that the local boundary Poincaré inequality in Lemma 6.6 will be used to estimate this integral. Fix a number i∈N. Since B⊂Q∗, it follows from Lemma 7.14 that the restriction u|EQ∪(B\U2iλ)is a β-Hölder function with a constant κi=C(β, cμ)2iλ. We can now use the McShane extension (2.7) and extend u|EQ∪(B\U2iλ)to a function u2iλ:X→R that is β-Hölder with the constant κiand satisfies the restriction identity u2iλ(x)=u(x) for all x∈EQ∪(B\U2iλ). Observe that u2iλ=0inEQ, since u=0inEQ. 123 276 Page 32 of 42 J. Canto, A.V. Vähäkangas The crucial idea that was originally used by Keith–Zhong in [16] is to consider the function h(x)=1 k 2k−1  i=k u2iλ(x), x∈X. We want to apply Lemma 3.3. In order to do so, observe that u2iλ|X\A=u|X\A, where A=X\(B\U2iλ)=X\(B\U2iλ B)=(X\B)∪U2iλ B. Therefore, by Lemma 3.3 and properties (D1)–(D2), we obtain that gh=1 k 2k−1  i=kκi1(X\B)∪U2iλ B +g1B\U2iλ∈Dβ H(h). Observe that U2kλ B⊃U2(k+1)λ B⊃···⊃U2(2k−1)λ B⊃U4kλ B. Using these inclusions it is straightforward to show that the following pointwise estimates are valid in X, 1Bgp h≤1 k 2k−1  i=kκi1U2iλ B +g1B\U2iλp ≤2p1 k 2k−1  i=k κi1U2iλ Bp +2pgp1B\U4kλ ≤C(β, p,cμ) kp 2k−1  j=kj  i=k 2iλp 1U2jλ B +2pgp1B\U4kλ ≤C(β, p,cμ) kp 2k−1  j=k (λ2j)p1U2jλ B +2pgp1B\U4kλ. Observe that h∈Lipβ(X)is zero in EQand hcoincides with uon B\U2kλ, and recall that gh∈Dβ H(h). Notice also that B⊂Q∗and xB∈EQ. The local boundary Poincaré inequality in Lemma 6.6 implies that 1EQ(xB) diam(B)βpB\U2kλ |u(x)|pdμ(x)=1EQ(xB) diam(B)βpB |h(x)|pdμ(x) ≤KB gh(x)pdμ(x) ≤C(β, p,cμ)K kp 2k−1  j=k (λ2j)pμ(U2jλ B)+2pKB\U4kλ g(x)pdμ(x). The desired local inequality (7.30) follows by combining the estimates above.  123 The Hajłasz Capacity Density Condition is Self-improving Page 33 of 42 276 7.4 Completing Proof of Theorem 7.6 We complete the proof as in [19]. Recall that u:X→Ris a β-Hölder function with u=0inEQand that Mu+MEQu=M,p β,B0u+MEQ,p β,B0u. Let us fix a function g∈Dβ H(u). Observe that the left-hand side of inequality (7.7)is finite. Without loss of generality, we may further assume that it is nonzero. By Lemma 7.11, B0Mu(x)+MEQu(x)p−εdμ(x) ≤C(p,cμ)B0MEQ Qu(x)p−εdμ(x)+C(β, p,cμ)B0 g(x)p−ε(x)dμ(x). We have B0MEQ Qu(x)p−εdμ(x)=Q∗MEQ Qu(x)p−εdμ(x)=(p−ε) ∞ 0 λp−εμ(Qλ)dλ λ. Since Qλ=Q∗=Q2λfor every λ∈(0,λQ/2), we find that (p−ε) λQ/2 0 λp−εμ(Qλ)dλ λ=(p−ε) 2p−ελQ/2 0 (2λ)p−εμ(Q2λ)dλ λ ≤(p−ε) 2p−ε∞ 0 σp−εμ(Qσ)dσ σ =1 2p−εQ∗MEQ Qu(x)p−εdμ(x). On the other hand, by Lemma 7.28, for each λ>λ Q/2, λp−εμ(Qλ)≤C(β, p,cμ)λ−ε(λ2k)p 2kαμ(U2kλ)+K kp 2k−1  j=k (λ2j)pμ(U2jλ) +KUλ\U4kλ gpdμ. Since p−ε>1, it follows that Q∗MEQ Qu(x)p−εdμ(x)≤2(p−ε) ∞ λQ/2 λp−εμ(Qλ)dλ λ ≤C(β, p,cμ)(I1(Q)+I2(Q)+I3(Q)) , 123 276 Page 34 of 42 J. Canto, A.V. Vähäkangas where I1(Q)=2kε 2kα∞ 0 (λ2k)p−εμ(U2kλ)dλ λ, I2(Q)=K kp 2k−1  j=k 2jε∞ 0 (2jλ)p−εμ(U2jλ)dλ λ, I3(Q)=K∞ 0 λ−εUλ\U4kλ g(x)pdμ(x)dλ λ. We estimate these three terms separately. First, I1(Q)≤2k(ε−α) p−εB0Mu(x)+MEQu(x)p−εdμ(x) ≤2k(ε−α) B0Mu(x)+MEQu(x)p−εdμ(x). Second, I2(Q)≤K kp 2k−1  j=k 2jε∞ 0 (2jλ)p−εμ(U2jλ)dλ λ ≤K kp(p−ε)2k−1  j=k 2jεB0Mu(x)+MEQu(x)p−εdμ ≤K4kε kp−1B0Mu(x)+MEQu(x)p−εdμ. Third, by Fubini’s theorem, I3(Q)≤KB0\{Mu+MEQu=0}∞ 0 λ−ε1Uλ\U4kλ(x)dλ λg(x)pdμ(x) ≤C(k,ε)KB0\{Mu+MEQu=0} g(x)p(Mu(x)+MEQu(x))−εdμ(x). Combining the estimates above, we arrive at the desired conclusion.  8 Local Hardy Inequalities We apply Theorem 7.4 to obtain a local Hardy inequality, see (8.2) in Theorem 8.1. This inequality is then shown to be self-improving, see Theorem 8.4, and in this respect we follow the strategy in [23]. However, we remark that the easier Wannebo approach [31] for establishing local Hardy inequalities as in [23] is not available to us, due to absence of pointwise Leibniz and chain rules in the setting of Hajłasz gradients. 123 The Hajłasz Capacity Density Condition is Self-improving Page 35 of 42 276 Theorem 8.1 Let X be a geodesic space. Let 1<p<∞and 0<β≤1. Let E ⊂X be a closed set which satisfies the (β, p)-capacity density condition with a constant c0. Let B0=B(w, R)be a ball with w∈E and R <diam(E). Let EQbe the truncation of E to the Whitney-type ball Q as in Sect. 6. Then, there exists a constant C=C(β, p,cμ,c0)such that B(w,R)\EQ |u(x)|p d(x,EQ)βpdμ(x)≤CB(w,R) g(x)pdμ(x)(8.2) holds whenever u ∈Lipβ(X)is such that u =0in EQand g ∈Dβ H(u). Proof Let u∈Lipβ(X)be such that u=0inEQand let g∈Dβ H(u). Lemma 7.14 implies that |u(x)|≤C(β, cμ)d(x,EQ)βM,p β,B0u(x)+MEQ,p β,B0u(x) for all x∈Q∗. Therefore Q∗\EQ |u(x)|p d(x,EQ)βpdμ(x)≤C(β, p,cμ)B(w,R)M,p β,B0u(x)+MEQ,p β,B0u(x)p dμ(x). By Theorem 7.4, we obtain Q∗\EQ |u(x)|p d(x,EQ)βpdμ(x)≤C(β, p,cμ,c0)B(w,R) g(x)pdμ(x). (8.3) It remains to bound the integral over B(w, R)\Q∗. Since EQ⊂Qand Q∗=4Q, we have d(x,EQ)≥3rQ>R/64 for all x∈B(w, R)\Q∗. Thus, we obtain B(w,R)\Q∗ |u(x)|p d(x,EQ)βpdμ(x) ≤64βp RβpB(w,R) |u(x)|pdμ(x) ≤3p64βp RβpB(w,R) |u(x)−uB(w,R)|pdμ(x) +μ(B(w, R))|uB(w,R)−uQ∗|p+μ(B(w, R))|uQ∗|p. By the (β, p,p)-Poincaré inequality in Lemma 3.7, B(w,R) |u(x)−uB(w,R)|pdμ(x)≤2pdiam(B(w, R))βpB(w,R) g(x)pdμ(x) ≤C(p)RβpB(w,R) g(x)pdμ(x). 123 276 Page 36 of 42 J. Canto, A.V. Vähäkangas For the second term, we have μ(B(w, R))|uB(w,R)−uQ∗|p ≤μ(B(w, R)) Q∗ |u(x)−uB(w,R)|pdμ(x) ≤C(cμ)B(w,R) |u(x)−uB(w,R)|pdμ(x) ≤C(p,cμ)RβpB(w,R) g(x)pdμ(x). For the third term, we have d(x,EQ)≤d(x,w)<4rQ<Rfor every x∈Q∗. Thus μ(B(w, R))|uQ∗|p≤C(cμ)Q∗\EQ |u(x)|pdμ(x)≤RβpQ∗\EQ |u(x)|p d(x,EQ)βpdμ(x). Applying inequality (8.3), we get μ(B(w, R))|uQ∗|p≤C(β, p,cμ,c0)RβpB(w,R) g(x)pdμ(x). The desired inequality follows by combining the estimates above.  Next, we improve the local Hardy inequality in Theorem 8.1. This is done by adapting the Koskela–Zhong truncation argument from [21] to the setting of Hajłasz gradients; see also [23] and [18, Theorem 7.32] whose proof we modify to our purposes. Theorem 8.4 Let X be a geodesic space. Let 1<p<∞and 0<β≤1. Let E ⊂X be a closed set which satisfies the (β, p)-capacity density condition with a constant c0. Let B0=B(w, R)be a ball with w∈E and R <diam(E). Let EQbe the truncation of E to the Whitney-type ball Q as in Sect. 6, and let C1=C1(β, p,cμ,c0)be the constant in (8.2), see Theorem 8.1. Then there exist 0<ε=ε(p,C1)<p−1and C=C(p,C1)such that inequality B(w,R)\EQ |u(x)|p−ε d(x,EQ)β(p−ε) dμ(x)≤CB(w,R) g(x)p−εdμ(x)(8.5) holds whenever u ∈Lipβ(X)is such that u =0in EQand g ∈Dβ H(u). Proof Without loss of generality, we may assume that C1≥1in(8.2). Let u∈Lipβ(X) be such that u=0inEQand let g∈Dβ H(u).Letκ≥0betheβ-Hölder constant of u in X. By redefining g=κin the exceptional set N=N(g)of measure zero, we may assume that (3.2) holds for all x,y∈X.Letλ>0 and define Fλ=Gλ∩Hλ, where Gλ=x∈B(w, R):g(x)≤λ 123 The Hajłasz Capacity Density Condition is Self-improving Page 37 of 42 276 and Hλ={x∈B(w, R):|u(x)|≤λd(x,EQ)β}. We show that the restriction of uto Fλ∪EQis a β-Hölder function with a constant 2λ. Assume that x,y∈Fλ. Then (3.2) implies |u(x)−u(y)|≤d(x,y)β(g(x)+g(y))≤2λd(x,y)β. On the other hand, if x∈Fλand y∈EQ, then |u(x)−u(y)|=|u(x)|≤λd(x,EQ)β≤2λd(x,y)β. The case x∈EQand y∈Fλis treated in the same way. If x,y∈EQ, then |u(x)−u(y)|=0. All in all, we see that uis a β-Hölder function in Fλ∪EQ with a constant 2λ. We apply the McShane extension 2.7 and extend the restriction u|Fλ∪EQto a β- Hölder function function vin Xwith constant 2λ. Then v=u=0inEQand v=u in Fλ, thus gv=g1Fλ+2λ1X\Fλ∈Dβ H(v) by Lemma 3.3. By applying Theorem 8.1 to the function vand its Hajłasz β-gradient gv, we obtain (B(w,R)\EQ)∩Fλ |u(x)|p d(x,EQ)βpdμ(x)≤B(w,R)\EQ |v(x)|p d(x,EQ)βpdμ(x) ≤C1Fλ g(x)pdμ(x)+C12pλpμ(B(w, R)\Fλ). Since Hλ=Fλ∪(Hλ\Gλ)and C1≥1, it follows that (B(w,R)\EQ)∩Hλ |u(x)|p d(x,EQ)βpdμ(x) ≤C1Fλ g(x)pdμ(x)+C12pλpμ(B(w, R)\Fλ) +(Hλ\EQ)\Gλ |u(x)|p d(x,EQ)βpdμ(x) ≤C1Gλ g(x)pdμ(x)+C12pλpμ(B(w, R)\Fλ)+μ(Hλ\Gλ) ≤C1Gλ g(x)pdμ(x)+C12p+1λpμ(B(w, R)\Hλ)+μ(B(w, R)\Gλ). (8.6) Here, λ>0 was arbitrary, and thus we conclude that (8.6) holds for every λ>0. 123 276 Page 38 of 42 J. Canto, A.V. Vähäkangas Next, we multiply (8.6)byλ−1−ε, where 0 <ε<p−1, and integrate with respect to λover the set (0,∞). With a change of the order of integration on the left-hand side, this gives 1 εB(w,R)\EQ|u(x)| d(x,EQ)βp−ε dμ(x) ≤C1∞ 0 λ−1−εGλ g(x)pdμ(x)dλ +C12p+1∞ 0 λp−1−εμ(B(w, R)\Hλ)+μ(B(w, R)\Gλ)dλ. By the definition of Gλ, we find that the first term on the right-hand side is dominated by C1 εB(w,R) g(x)p−εdμ(x). Using the definitions of Hλand Gλ, the second term on the right-hand side can be estimated from above by C12p+1 p−εB(w,R)\EQ|u(x)| d(x,EQ)βp−ε dμ(x)+B(w,R) g(x)p−εdμ(x). By combining the estimates above, we obtain B(w,R)\EQ|u(x)| d(x,EQ)βp−ε dμ(x) ≤C2B(w,R)\EQ|u(x)| d(x,EQ)βp−ε dμ(x)+C3B(w,R) g(x)p−εdμ(x), (8.7) where C2=C12p+1ε p−εand C3=C11+2p+1ε p−ε. We choose 0 <ε= ε(C1,p)<p−1sosmallthat C2=C12p+1ε p−ε<1 2. This allows us to absorb the first term in the right-hand side of (8.7) to the left-hand side. Observe that this term is finite, since uis β-Hölder in Xand u=0inEQ. 9 Self-improvement of the Capacity Density Condition As an application of Theorem 8.4, we strengthen Theorem 5.8 in complete geodesic spaces. This leads to the conclusion that the Hajłasz capacity density condition is selfimproving or doubly open-ended in such spaces. In fact, we characterize the Hajłasz 123 The Hajłasz Capacity Density Condition is Self-improving Page 39 of 42 276 capacity density condition in various geometrical and analytical quantities, the latter of which are all shown to be doubly open-ended. Theorem 9.1 Let X be a geodesic space. Let 1<p<∞and 0<β≤1. Let E⊂X be a closed set which satisfies the (β, p)-capacity density condition with a constant c0. Then there exists ε>0, depending on β,p,c μand c0, such that co dimA(E)≤β(p−ε). Proof Let w∈Eand 0 <r<R<diam(E).LetEQbe the truncation of Eto the ball Q⊂B0=B(w, R)as in Section 6.Letε>0 be as in Theorem 8.4. Observe that EQ,r={x∈X:d(x,EQ)<r}⊂{x∈X:d(x,E)<r}=Er. Hence, it suffices to show that μ(EQ,r∩B(w, R)) μ(B(w, R)) ≥cr Rβ(p−ε) ,(9.2) where the constant cis independent of w,rand R. If r≥R/4, then the claim is clear since r Rβ(p−ε) ≤1 and μ(EQ,r∩B(w, R)) ≥μ(B(w, R/4)) ≥C(μ)μ(B(w, R)) . The claim is clear also if μ(EQ,r∩B(w, R)) ≥1 2μ(B(w, R)). Thus we may assume that r<R/4 and that μ(EQ,r∩B(w, R)) < 1 2μ(B(w, R)), whence μ(B(w, R)\EQ,r)≥1 2μ(B(w, R)) > 0.(9.3) Let us now consider the β-Hölder function u:X→R, u(x)=min{1,r−βd(x,EQ)β},x∈X. Then u=0inEQ,u=1inX\EQ,r, and |u(x)−u(y)|≤r−βd(x,y)βfor all x,y∈X. We aim to apply Theorem 8.4. Recall also that w∈EQ. Thus we obtain B0\EQ |u(x)|p−ε d(x,EQ)β(p−ε) dμ(x)≥R−β(p−ε) B0\EQ |u(x)|p−εdμ(x) ≥R−β(p−ε) B0\EQ,r |u(x)|p−εdμ(x) ≥R−β(p−ε)μ(B(w, R)\EQ,r) ≥2−1R−β(p−ε)μ(B(w, R)) , (9.4) 123 276 Page 40 of 42 J. Canto, A.V. Vähäkangas where the last step follows from (9.3). Since u=1inX\EQ,rand uis a β-Hölder function with a constant r−β, Lemma 3.3 implies that g=r−β1EQ,r∈Dβ H(u). Observe that B0 gp−εdμ≤r−β(p−ε)μ(EQ,r∩B0)=r−β(p−ε)μ(EQ,r∩B(w, R)) . Hence, the claim (9.2) follows from (9.4) and Theorem 8.4. The following theorem is a compilation of the results in this paper. It states the equivalence of some geometrical conditions (1)–(2) and analytical conditions (3)–(6), one of which is the capacity density condition. We emphasize that the capacity density condition (3) is characterized in terms of the upper Assouad codimension (1); in fact, this characterization follows immediately from Theorem 5.7 and Theorem 9.1. Theorem 9.5 Let X be a complete geodesic space. Let 1<p<∞and 0<β≤1. Let E ⊂X be a closed set. Then the following conditions are equivalent: (1) co dimA(E)<βp. (2) E satisfies the Hausdorff content density condition (5.4)for some 0<q<βp. (3) E satisfies the (β, p)-capacity density condition. (4) E satisfies the local (β, p,p)-boundary Poincaré inequality (6.7). (5) E satisfies the maximal (β, p,p)-boundary Poincaré inequality (7.5). (6) E satisfies the local (β, p,p)-Hardy inequality (8.2). Proof The implication from (1) to (2) is a consequence of Lemma 5.3 with co dimA(E)<q<βp. The implication from (2) to (3) follows by adapting the proof of Theorem 5.7 with η=q/β. The implication from (3) to (4) follows from Theorem 6.6. The implication from (4) to (5) follows from the proof of Theorem 7.4, which remains valid if we assume (4) instead of the (β, p)-capacity density condition. The implication from (5) to (6) follows from the proof of Theorem 8.1. Finally, condition (6) implies the improved local Hardy inequality (8.5) and the proof of Theorem 9.1 then shows the remaining implication from (6) to (1).  Finally, we state the main result of this paper, Theorem 9.6.Itistheselfimprovement or double open-endedness property of the (β, p)-capacity density condition. Namely, in addition to integrability exponent p, also the order βof fractional differentiability can be lowered. A similar phenomenon is observed in [24]for Riesz capacities in Rn. Theorem 9.6 Let X be a complete geodesic space, and let 1<p<∞and 0<β≤1. Assume that a closed set E ⊂X satisfies the (β, p)-capacity density condition. Then there exists 0<δ<min{β, p−1}such that E satisfies the (γ, q)-capacity density condition for all β−δ<γ≤1and p −δ<q<∞. Proof We have co dimA(E)<βpby Theorem 9.5. Since limδ→0(β−δ)(p−δ) =βp, there exists 0 <δ<min{β, p−1}such that co dimA(E)<(β−δ)(p−δ).Nowif β−δ<γ ≤1 and p−δ<q<∞, then 123