The prime end capacity of inaccessible prime ends, resolutivity, and the Kellogg property

Prime end boundaries $\partial_P\Omega$ of domains $\Omega$ are studied in the setting of complete doubling metric measure spaces supporting a $p$-Poincar\'e inequality. Notions of rectifiably (in)accessible- and (in)finitely far away prime ends are introduced and employed in classification of prime ends. We show that, for a given domain, the prime end capacity of the collection of all rectifiably inaccessible prime ends together will all non-singleton prime ends is zero. We show the resolutivity of continouous functions on $\partial_P\Omega$ which are Lipschitz continuous with respect to the Mazurkiewicz metric when restricted to the collection $\partial_{SP}\Omega$ of all accessible prime ends. Furthermore, bounded perturbations of such functions in $\partial_P\Omega\setminus\partial_{SP}\Omega$ yield the same Perron solution. In the final part of the paper, we demonstrate the (resolutive) Kellogg property with respect to the prime end boundary of bounded domains in the metric space. Notions given in this paper are illustrated by a number of examples.


Introduction
In the classical Dirichlet problem, given a differential operator L, one asks whether there is a solution u to the equation Lu = 0 in Ω satisfying a prescribed boundary condition u = f on ∂Ω. Here, for continuous functions f : ∂Ω → R we say that u = f on ∂Ω if for almost every (in a capacitary sense) x ∈ ∂Ω we have lim Ω∋y→x u(y) = f (x).
(1.1) boundary theory is accessible for a wider class of PDEs. In the Euclidean setting of a domain Ω ⊂ R n the p-Laplace equation reads: div(|∇u| p−2 ∇u) = 0, where u belongs to the Sobolev space W 1,p loc (Ω) and 1 < p < ∞. Moreover, for more general functions f : Ω → R such that f ∈ W 1,p loc (Ω) the Dirichlet problem is understood in the weak sense, i.e. u−f ∈ W 1,p 0 (Ω, R). However, the boundary value problem studied with respect to the topological boundary of the domain is often too restrictive and the corresponding solution does not fully capture the geometry of the domain. This is the case of the planar disc with a radial line removed (the socalled slit disc), the topologists' comb (and its higher dimensional generalizations) and many other domains with nontrivial boundary, see [4,7]. For example, in the case of the slit disc, every point of the slit (except for its tip) has prescribed a single boundary value, even though it might be more desirable to have different prescribed behavior of the solution when approaching the slit from above and from below. In this situation, it would be more natural to associate two boundary points to each point on the slit. Boundaries of such domains are described more effectively by other forms than just the topological boundary. There are several notions of abstract boundaries, eg. the Martin, Royden, and prime end boundaries. The prime end boundaries, as considered in [13], form the focus of this paper.
A formulation of prime ends was initiated by Caratheódory in 1913 for simplyconnected planar domains in the setting of boundary extension of conformal mappings, see Section 2.2 below for more information and a brief historical account of prime ends. Caratheódory's construction of prime ends is not productive for multiply connected planar domains and for more general domains in metric measure spaces. Here we study prime ends in the context of bounded domains in complete metric measure spaces equipped with a doubling measure and supporting a p-Poincaré inequality. This set of assumptions allows for a viable first order Calculus, in particular various counterparts of the Sobolev spaces are available, see [17]. Furthermore, in this setting a variational analog of the p-Laplacian is available and the nonlinear potential theory for p-harmonic functions in metric measure spaces is well developed, see [6,7,9].
Two of the cornerstones of the Perron method are (a) that every continuous boundary data is resolutive and (b) the Kellogg property. The Kellogg property is that there is a subset of the topological boundary of the given domain, with zero p-capacity, such that (1.1) is satisfied by each continuous data on the topological boundary ∂Ω outside of this subset; see [15,18] for the Euclidean setting, and [8] for a proof of the Kellogg property in the metric setting. Thus p-capacitary almost every point on the boundary of the domain influences the behavior of Perron solutions.
In the case of the double comb (see Example 2.15), the one-dimensional almost every point in the interval [1/4, 3/4]×{0} will influence the behavior of the solution, and modifying the boundary data on this subset of the (topological) boundary might result in a different Perron solution. As a consequence of one of the main results of this paper, Theorem 3.3, we know that for Perron solutions constructed using the prime end boundary instead of the topological boundary, the subset [1/4, 3/4] × {0} will not affect the solution; this confirms the results of [4]. In Theorem 3.3 we identify a subset of prime ends whose prime end capacity is zero and do not influence the Perron solution.
It turns out that the key to understanding which prime ends are vital for the solvability of the Dirichlet problem lies in accesibility of points in the prime end impressions through rectifiable curves. This approach allows us to classify prime ends into four categories as: (a) rectifiably accessible, (b) rectifiably inacessible, (c) infinitely far away, and (d) finitely away. The first two categories of prime ends belong to the class ∂ SP Ω of singleton prime ends, and the latter two belong to the class of non-singleton prime ends. Similar classifications are known in the theory of prime ends of Carathéodory in R 2 , see [11,Chapter 9] and the prime ends constructed by Näkki in R n , see [24,Section 8]. The Kellogg property for the prime end boundary of domains whose prime end boundary consists solely of singleton prime ends has been studied in [5], where the property is verified for resolutive continuous functions on the boundary, and such a property is called the resolutive Kellogg property in [5]. In this paper we extend this property to domains whose prime end boundary might have more than just singleton prime ends. The proof in [5] crucially uses the compactness of the singleton prime end boundary of the domain, and if the domain has more than just singleton prime ends in its prime end boundary, such compactness must fail. Hence we do not follow the method in [5] but go back to the basics of the argument found in [8].
The organization of the paper is as follows. In Section 2.1 we recall some basic notions of analysis on metric measure spaces. Section 2.2 is devoted to recalling the construction of prime ends for domains in metric spaces. We define, and illustrate with examples, notions of rectifiably (in)accessible prime ends, see Definition 2.10 and (in)finitely far away prime ends, see Definition 2.12. The prime end capacity C P p and the Perron method are discussed in Section 2.3, while in Section 3 we show that the non-singleton prime ends and (singleton) rectifiably inaccessible prime ends, together, form a prime end capacity null set. This is the content of the first principal result of this paper, Theorem 3.3. These observations allow us to answer an open question posed in [13], see Remark 3.4. In Section 4, using the results from Section 3, we prove the second principal result of this paper, Theorem 4.1. There, we show the resolutivity of functions defined on the prime end boundary ∂ P Ω of the given domain Ω, which are Lipschitz continuous with respect to the Mazurkiewicz distance when restricted to the part of ∂ P Ω consisting of the rectifiably accessible prime ends only. This improves resolutivity results presented in [13], see Remark 4.2 below for detailed discussion. See also Proposition 4.3 for further extension of Theorem 4.1. Section 5 contains five examples illustrating the features of results obtained in Section 4. We prove the (resolutive) Kellogg property in Section 6 by showing that there is a set Irr(Ω) ⊂ ∂ P Ω with C P p (Irr(Ω)) = 0 such that the Perron solution of every resolutive continuous boundary data on ∂ P Ω achieves the correct limiting behavior (1.1) in ∂ P Ω \ Irr(Ω), see Theorem 6.5. where, B(x, r) = {y ∈ X : d(y, x) < r}. As µ is doubling and X is complete, necessarily X is proper, i.e. closed and bounded subsets of X are compact. A curve in X is a continuous mapping γ : [a, b] → X. The image of γ (locus/trajectory) is denoted by |γ| = γ([a, b]). The length of γ is denoted by ℓ(γ) and we say that γ is rectifiable if ℓ(γ) < ∞. Every rectifiable curve admits the so-called arc-length parametrization, see e.g. [20,Section 5.1] or [3,Section 4.2]. See [20,Section 5.1] for discussions related to integrals γ g ds of Borel functions g on X along rectifiable paths γ.
Next, we recall the basic notions in the theory of first order calculus in metric measure spaces. We say that a nonnegative Borel function g on X is an upper gradient of a function u : where x and y are the two endpoints of γ. If at least one of |u(x)|, |u(y)| is infinite, then we interpret the above inequality to mean that γ g ds = ∞. Recall that a family of rectifiable curves in X is of zero p-modulus if there is a non-negative Borel measurable function g ∈ L p (X) such that γ g ds = ∞ for each γ ∈ Γ. We say that g is a p-weak upper gradient of u if the collection Γ of curves for which the above inequality fails is of p-modulus zero.
Upper gradients were introduced by Heinonen and Koskela in [19]. It is easy to notice that if g is an upper gradient, then so is g + h for any nonnegative Borel function h on X. The more handy unique gradient to work with is the so called minimal p-weak upper gradient g u ∈ L p (X), which is the p-weak upper gradient with smallest L p -norm, see e.g the discussion in [20].
The following version of Sobolev spaces on the metric space X will be considered in this paper; see [25,6,20] for more on this space. For u : X → [−∞, ∞] a measurable function, set where the infimum is taken over all upper gradients g of u (or equivalently, over all p-weak upper gradients g of u). With this notation we define the Newtonian space on X as follows: The Sobolev p-capacity of a set E ⊂ X is defined as follows: where the infimum is taken over all functions u ∈ N 1,p (X) that have a representative, also denoted u, such that u ≥ 1 on E (see e.g. [6,Chapter 1.4] and [20,Chapter 7.2] for definitions and properties of the Sobolev capacity). This capacity measures the exceptionality of sets in the potential theory related to Newtonian spaces and is a finer way to detect smallness of sets than null µ-measure.
Definition 2.1. We say that X supports a p-Poincaré inequality if there exist constants C > 0 and λ ≥ 1 such that for all balls B ⊂ X and all u ∈ N 1,p (X), where u B stands for the mean-value of u on B: Definition 2.2. Given a domain Ω in X we denote by N 1,p 0 (Ω) the space of Newtonian functions with zero boundary data; these are functions f ∈ N 1,p (X) such that f (x) = 0 for p-capacity almost every point x ∈ X \ Ω.
In addition to the assumptions outlined at the beginning of this section, we will also assume in this paper that X supports the p-Poincaré inequality for a fixed 1 ≤ p < ∞ (see below). This together with doubling measure µ implies that X is quasiconvex, meaning that there is a constant C q ≥ 1 such that for any points x, y ∈ X there is a rectifiable curve γ joining x and y in X satisfying ℓ(γ) ≤ C q d(x, y).

Prime ends in metric spaces
We now turn our attention to the main object of our work, namely prime ends and the prime end boundary.
The first theory of prime ends is due to Carathéodory, who formulated a definition of prime ends from the point of view of conformal mappings in simply-connected planar domains. Subsequently, the theory has extended to more general domains in the plane and in higher dimensional Euclidean spaces, see for instance the works of Freudenthal, Kaufman, Mazurkiewicz, and more recently Epstein and Näkki (for further discussion of the history of prime ends and the literature, we refer to [1,Sections 1,3], see also [2] for an application of the prime end theory in the setting of Heisenberg groups). Here we study prime ends in the more general setting of metric spaces, see [1,12,13]. The notion of prime ends considered here is from [13], and is a slight modification from that of [1]. First, we recall the notion of the Mazurkiewicz distance. for x, y ∈ Ω, where the infimum is over all connected compact subsets E ⊂ Ω containing x and y.
We will assume throughout this paper that the measure on X is doubling and supports a p-Poincaré inequality. It follows that X is quasiconvex, and so in Ω we know that both d M and d are locally biLipschitz equivalent. Furthermore, as Ω is connected, d M is indeed a metric on Ω.
Given two sets A, K ⊂ Ω, we set Let Ω X be a bounded domain in X, i.e. a bounded nonempty connected open subset of X that is not the whole space X itself. A connected set E Ω is called an acceptable set if E ∩ ∂Ω = ∅. The boundedness and connectedness of an acceptable set E implies that E is compact and connected, that is, E is a continuum.
Note that the impression is either a point or a continuum, since {E k } ∞ k=1 is a decreasing sequence of continua.
The above definition of a chain differs from the definition of prime ends in [1,Definition 4.2] only in that we require dist M (Ω∩∂E k+1 , Ω∩∂E k ) > 0 in condition (b) rather than that dist(Ω ∩ ∂E k+1 , Ω ∩ ∂E k ) > 0. However, we emphasize that such a modification does not affect results from [1], see [13,Definition 2.3] and the discussion following it for comparison between the above definition and [1,Definition 4.2]. In general, there are more chains and ends in the sense of the above definition than in the sense of [1], and therefore a priori a prime end in the setting of [1] need not be prime in our sense. We further note that results in [1] employed below, which use the analog of condition (b) in Definition 2.4 for d instead of dist M are, in fact, based on the positivity of the Mazurkiewicz distance; hence the results of [1] do apply here.
We say that two chains are equivalent if they divide each other. The collection of all chains that are equivalent to a given chain , is defined as the impression of any representative chain.
The impression of an end is independent of the choice of representative chain, see [1,Section 4] . Therefore, the relation of division extends in a natural way from chains to ends, defining a partial order on ends.
Definition 2.6. We say that an end [E k ] is a prime end if it is not divisible by any other end. The collection of all prime ends is called the prime end boundary and is denoted ∂ P Ω. The collection of all prime ends with singleton impressions is denoted ∂ SP Ω.
Remark 2.7. It is not difficult to see that an end with a singleton impression is necessarily a prime end. Moreover, if γ : [a, b] → Ω is a curve such that γ([a, b)) ⊂ Ω, γ(b) ∈ ∂Ω, and for each m ∈ N there exists t m ∈ (a, b) such that γ((t m , b)) ⊂ E m , then [E m ] is a singleton prime end with impression {γ(b)}, see [1]. It was shown in [1, Theorem 9.6] that d M extends as a metric to ∂ SP Ω and that Ω ∪ ∂ SP Ω is complete under this metric, but not necessarily compact. Furthermore, Ω ∪ ∂ SP Ω is compact with respect to d M if and only if ∂ P Ω = ∂ SP Ω, or equivalently, Ω is finitely connected at the boundary.
In order to set up a viable topology on the prime ends closure Ω P := Ω ∪ ∂ P Ω let us recall the following notion, cf. [1,Section 8]. We say that a sequence of points {x n } ∞ n=1 in Ω converges to the prime end [E k ], and write x n → [E k ] as n → ∞, if for all k ∈ N there exists n k ∈ N such that x n ∈ E k whenever n ≥ n k . Next, we define the sequential topology on Ω P .
Definition 2.8. Given a sequence {p k } k ∈ Ω P and [E k ] ∈ ∂ P Ω, we say that in the above sense, and for the subsequence (if any) of prime ends, denoted without loss of generality by {[F j,k ]} j , we have that for each k ∈ N there is some j k ∈ N such that whenever j ∈ N with j ≥ j k , the prime end [F j,k ] satisfies the condition that for any/each respresentative chain {F j,m } m we have F j,m ⊂ E k for large enough m. It is possible for {p k } k to converge to two distinct prime ends, see the discussion in [1]. This notion of convergence induces a topology on Ω P , called the prime end topology of Ω P .
Such a topology satisfies the separation condition (T 1), but need not be, in general, Hausdorff (T 2), see [1,Proposition 8.8,Example 8.9]. A basis for the topology on Ω P is defined as follows. Given G ⊂ Ω, we let Then, [1,Proposition 8.5] shows that the following collection of sets forms a basis for the topology on Ω P : In addition to our afore-mentioned assumptions on space X, in what follows we will also require the domain Ω to satisfy the following assumption (cf. Assumption 4.7 in [13] and the discussion therein): Assumption 2.9. For every collection E of ends in Ω that is totally ordered by division (i.e.: for x, y ∈ E we define that x ≤ y if and only if x divides y), there must exist an end In other words, we assume that the collection of all ends in Ω satisfies the hypotheses of the Kuratowski-Zorn lemma. The above assumption is satisfied, for instance, if Ω is a simply-connected bounded domain in R 2 or if ∂ SP Ω is compact (and hence ∂ P Ω = ∂ SP Ω), see the details of discussion on pg. 346 in [13]. We do not know of an example where this assumption fails. We employ this assumption when using Theorems 2.23 and 2.24 (Theorems 7.7 and 7.8 in [13]) in Section 4. The proofs of these results rely on the comparison principle ([13, Proposition 7.3]) and [13,Corollary 5.4], which in turn depend on Assumption 2.9.
We now classify prime ends according to whether they allow approach to the impression, from inside the chain that makes up the end, along a rectifiable curve.
Example 2.11. (see Figure 1) The following domain provides us with an example of a rectifiably inaccessible singleton prime end. Consider the graph of the function f : [0, 1] → R given by a "harmonically damped sawtooth", that is, for each positive integer n. Let Ω ⊂ R 2 be obtained by For this domain, the point (0, 0) is the impression of exactly one prime end from ∂ SP Ω. Indeed, a chain is given by a sequence of balls centered at point (0, 0) with shrinking radii, intersected with Ω. Since the resulting end has the singleton impression {(0, 0)}, it is a prime end, by Proposition 7.1 in [1]. Moreover, this prime end is rectifiably inaccessible, as each curve in Ω with the end point (0, 0) should have length at least Definition 2.12. Let x 0 ∈ Ω. A prime end [E k ] ∈ ∂ P Ω\∂ SP Ω is said to be infinitely far away if there is some x 0 ∈ Ω such that whenever {x j } j is a sequence in Ω with x j → [E k ] and γ j is a rectifiable curve in Ω connecting a point x 0 ∈ Ω to x j , j ∈ N, we must have lim j→∞ ℓ(γ j ) = ∞. A prime end [E k ] ∈ ∂ P Ω \ ∂ SP Ω is said to be finitely away if it is not infinitely far away.
Remark 2.13. Recall from the beginning of Section 2.1 that in this paper the measure µ on X is doubling and supports a p-Poincaré inequality, and hence X is quasiconvex. Given this, we know that a domain (open connected subset) in X is necessarily rectifiably connected-for each pair of points x, y ∈ Ω there is a rectifiable curve in Ω with x and y as end points. Thus the above classification of finitely away and infinitely far away prime ends does not depend on the choice of x 0 . Remark 2.14. If a sequence {x j } j of points in Ω converges to the prime end [E k ], then for each k ∈ N there exists j k such that whenever j ≥ j k we must have x j ∈ E k ; it then follows that any curve γ connecting x 0 to x j for such j must have its tail end contained in E k .
. Let x 0 ∈ Ω and without loss of generality assume that x 0 ∈ Ω \ E 1 as in Figure 2  is a sequence converging to the prime end [E k ], then a curve joining x 0 with any x j ∈ E k has length at least 2k 3 4 Example 2.16. (see Figure 2 (right).) An example of a finitely away prime end comes from the following variant of the previous example. Let This domain has only one non-singleton prime end, namely the one corresponding to the chain given by One verifies directly from Definition 2.4 that {E k } ∞ k=2 is a chain and defines an end in Ω. That this end is minimal (i.e. the prime end) can be seen, by the following reasoning. Every other E k , for k ≥ 3, has one vertical side of its boundary which touches a slit from one family of slits, say 1 2 , 1 × 1 2n for n = 1, 2, ... and another vertical side whose distance to the appropriate slit from the other family for n = 1, 2, ...) approaches 0 when k → ∞, see Figure 2(right). Therefore, gaps between the boundaries of E k and corresponding teeth of the comb close for increasing k. Hence, if [F l ] is an end dividing [E k ], then the connectedness of all acceptable sets F l implies that every F l ⊃ E K for K large enough, and thus also F l ⊃ E k for k ≥ K (Definition 2.4(a)). Since this gives the equivalence of [ 3 4 ]. The prime end [E k ] is finitely away. To see this, note that every point p ∈ E k , k ∈ N, can be connected to the point, say, x 0 = ( 1 8 , 1 2 ) ∈ Ω by the concatenation of a horizontal line segment from p = (x, y) to q = ( 1 8 , y) with a vertical line segment from q to x 0 . Such curves have length at most 5 4 for k > 3.

Perron solution with respect to the prime end boundary
In this section we recall basic notions for the Perron method in metric measure spaces. See [13,Section 7] for further details.
Let Ω ⊂ X be a domain in X. We say that a function u ∈ N 1,p (Ω) is p-harmonic if it is a continuous minimizer of the p-Dirichlet energy, i.e. for all ϕ ∈ N 1,p 0 (Ω) we L A T E Xed July 24, 2018 0:47 Here, g u and g u+ϕ stand for the minimal p-weak upper gradients of u and u + ϕ, respectively. Recall the notion of Sobolev p-capacity from (2.1). By modifying u on a set of Sobolev p-capacity zero if necessary, we see that u is locally Hölder continuous in Ω, see e.g. the discussion in [22, Section 5] and [6].
Recall that we require Ω to satisfy Assumption 2.9. Moreover, we assume that C p (X \ Ω) > 0. This latter assumption allows us to avoid trivial solutions to the p-Dirichlet problem, see the discussion following in [13,Definition 3.5]. Indeed, if C p (X \ Ω) = 0, then N 1,p (Ω) = N 1,p 0 (Ω) = N 1,p (X) and so for any f ∈ N 1,p (Ω) the constant function u = 0 would act as a p-harmonic function in Ω with f − u ∈ N 1,p 0 (Ω), that is, the Dirichlet problem for boundary data in N 1,p (X) has only trivial solutions.
The following notion of capacity is a modification of the related notion of C p from [7, Section 3], and was first formulated in [13, Definition 6.1]. Here we use the prime end topology as in Definition 2.8.
Definition 2.17 (cf. Definition 6.1 in [13]). Let E ⊂ Ω P . We define prime end where A E consists of all functions u ∈ N 1,p (Ω) satisfying the following two conditions:

lim inf
Ω∋y If the underlying domain Ω is fixed, we denote, for simplicity, C Moreover, if X is doubling and supports a p-Poincaré inequality, then C P p is an outer capacity, see [13,Proposition 6.3]. By an outer capacity we mean that for each E ⊂ Ω P , For more information on p-super(sub)harmonic functions and p-harmonic extensions in the metric setting we refer, for instance, to [7] and [6,Chapters 9,10]. Now we are ready to describe the Perron method.
Definition 2.21 (cf. Definition 7.2 in [13]). Let f : ∂ P Ω → R. The collection of all p-superharmonic functions u on Ω bounded from below such that lim inf is denoted by U f (Ω P ). We define the upper Perron solution of f by Similarly, let L f (Ω P ) be the set of all p-subharmonic functions u on Ω bounded above such that lim sup We define the lower Perron solution of f by Note that P Ω P f = −P Ω P (−f ).
then we say that f is resolutive, and set P Ω P f := P Ω P f .
One of the results obtained for the Perron method in [13] is a comparison principle between p-super-and p-subharmonic functions with respect to the prime end boundary. Among its consequences we have that if f : ∂ P Ω → R, then P Ω P (f ) ≤ P Ω P (f ) (recall that we assume Ω to be bounded).
For the reader's convenience we now recall the two resolutivity results of [13] needed in our work, see Section 4 below for their application.
Theorem 2.23 (Theorem 7.7 in [13]). Let F : Ω P → R be a C P p -quasicontinuous function such that F | Ω is in N 1,p (Ω). Then F is resolutive and P Ω P F = H Ω F .
The following result shows the stability of the Perron solution under perturbations on a set of C P p capacity zero. Theorem 2.24 (Theorem 7.8 in [13]). Let f : Ω P → R be a C P p -quasicontinuous function such that f | Ω is in N 1,p (Ω). If h : Ω P → R is zero in Ω and is zero C P p quasi-everywhere in ∂ P Ω, then f + h is resolutive with respect to Ω P , and We now summarize the assumptions we make throughout the paper: we assume that X is complete and that the measure µ on X is doubling and supports a p-Poincaré inequality (for a fixed 1 < p < ∞). We also assume that Ω ⊂ X is a domain with µ(X \ Ω) > 0 such that Ω satisfies Assumption 2.9.

The collection of all non-singleton prime ends is a prime end capacitary null set
In light of Theorems 2.24, it is desirable to know which prime ends influence the Perron solution. Given that the Newtonian Sobolev class N 1,p considered here is based on rectifiable curves, it would be natural to know that the collection of all rectifiably inaccessible singleton prime ends and the collection of all non-singleton prime ends do not play a role in determining the Perron solutions. We will prove this natural claim in this section by showing that these two classes of prime ends have C P p -capacity zero. Lemma 3.1. Let C be the collection of all prime ends in Ω that are infinitely far away. Then C P p (C) = 0.
Proof. Fix x 0 ∈ Ω, and for ε > 0 let u ε be given by where the infimum is taken over all rectifiable curves in Ω connecting x 0 to x. Since X is quasiconvex, connectedness of Ω is equivalent to its rectifiable connectedness. Note also that u ε is finite-valued in Ω.
By Definition 2.12, if {x j } j is a sequence in Ω converging to [E k ] ∈ C, then for curves γ j connecting x 0 to x j , it holds that lim j l(γ j ) = ∞. As a consequence, lim j→∞ u ε (x j ) = 1, and hence, u ε satisfies condition (2) in Definition 2.17, and so is admissible for computing the prime end capacity of C.
As we assumed that u ε (x) > u ε (y), it follows that Thus, ρ ε = ε satisfies the definition of an upper gradient of u ε . Lemma A.2 in [1] allows us to infer that u ε is measurable in Ω. The conclusion of the lemma now follows from the fact that lim ε→0 + u ε N 1,p (Ω) = 0.
In the next lemma we associate with every finitely away prime end in Ω P and with every inaccessible singleton prime end in Ω P a curve β, such that its substantial part is contained in ∂Ω. This result is then used to show Proposition 3.3, which deals with a claim analogous to Lemma 3.1 for this class of prime ends.

Lemma 3.2.
Let [E k ] be a finitely away prime end or a rectifiably inaccessible prime end, and γ j be a sequence of rectifiable curves in Ω with end points x 0 , x j ∈ Ω such that x j → [E k ] as j → ∞ and sup j ℓ(γ j ) < ∞. Suppose that β : [0, L] → Ω is an arc-length parametrized rectifiable curve such that γ j → β uniformly as j → ∞.
Since X is proper and each γ j is (under its arc-length parametrization) 1-Lipschitz, an application of the Arzela-Ascoli theorem tells us that after passing to a subsequence if necessary, we do always have a curve β in Ω such that γ j converges uniformly to β.
Proof. Note that x 0 is one end point of β. Let x ∞ be the other end point of β. Then as x j → [E k ], it follows that x ∞ ∈ I[E k ]. Let L := sup j ℓ(γ j ). We may assume that each γ j is arc-length parametrized and then extended by constant to [ℓ(γ j ), L], so γ j : [0, L] → Ω is 1-Lipschitz. We can then represent β by the parametrization β : [0, L] → Ω given by β(t) = lim j→∞ γ j (t).
Suppose that H 1 (|β| ∩ ∂Ω) = 0. Then we can find a sequence t m ∈ [0, L], with β(t m ) → I([E k ]) and t m increasing strictly monotonically as m → ∞, such that β(t m ) ∈ Ω. We can also choose t 1 so that β([0, t 1 ]) ⊂ Ω. We can furthermore ensure by Remark 2.14 that for each m ∈ N the points β(t m ) lie in E m+1 and β| [tm,tm+1] ⊂ E m+1 . The latter is thanks to knowing that ℓ(β) < ∞ and there is a fixed positive d M -distance between Ω ∩ ∂E m and Ω ∩ ∂E m+1 . Let Here C is the quasiconvexity constant of X. Since γ j → β uniformly, there is a sufficiently large j such that the segment β m := γ j | [tm,tm+1] of γ j satisfies By choosing j to be large enough, we can also ensure that β m is contained in E m−1 . Next, by the quasiconvexity of X, we can find C-quasiconvex curves α m , α m with end points β(t m ), β m (t m ) and end points β(t m+1 ), β m (t m+1 ), respectively. Then with α m ⊂ E m and α m ⊂ E m+1 . Now the concatenated curve Γ : [0, ℓ(Γ)] → X given by is a rectifiable curve with Moreover, Γ([0, ℓ(Γ)) ⊂ Ω, Γ(ℓ(Γ)) = x ∞ , and for each m a tail end of Γ lies in E m . More precisely, there is some s m such that Γ((s m , ℓ(Γ))) ⊂ E m . This makes x ∞ accessible through the end [E k ] (see also Remark 2.7), which makes [E k ] an accessible prime end, violating the assumption that it is either a non-singleton prime end (that is finitely away) or an inaccessible prime end, and so it must be that H 1 (|β| ∩ ∂Ω) > 0. Note that in the above proof, we only needed a sequence t m , m ∈ N, with t m → L as m → ∞, such that β(t m ) ∈ Ω ∩ E m in order to gain a contradiction. Thus the above proof gives us a stronger conclusion; namely, there is some s ∈ (0, ℓ(β)) such that β| [s,ℓ(β)] ⊂ ∂Ω. Now the uniform convergence of γ j to β yields the verity of the final claim of the lemma.
The following is the first main result of this paper. Proof. By Lemma 3.1 we know that the collection of all prime ends that are infinitely far away has C P p -capacity zero. Thus it suffices to focus on the subcollection of all finitely away prime ends together with rectifiably inaccessible singleton prime ends.
Fix ε > 0 and for each positive integer n set ρ n := n χ Ωη n . With this choice of ρ n , let w n be a function on Ω given by where the infimum is over all rectifiable curves γ connecting x to x 0 in Ω. Note that by the same reasoning as in the proof of Lemma 3.1, we have that g n := 1 n + ∞ j=n ρ j is an upper gradient of w n , and that (3.1) We claim that w n is admissible for computing C P p (F ). To see this, suppose this is not the case. Then there is some [E m ] ∈ F , ε > 0, and a sequence x l ∈ Ω with x l → [E m ] but sup l w n (x l ) ≤ 1 − ε. Then for each j there is a curve γ l with end points x 0 and x l such that In this case we have that ℓ(γ l ) ≤ n(1 − ε), and hence, by passing to a further subsequence if necessary (and invoking the Arzela-Ascoli theorem), we have γ l k → β uniformly for some rectifiable curve β in Ω, and hence by Lemma 3.2, there is some L > 0 and some m 0 ∈ N such that whenever k ≥ m 0 we have H 1 (|γ l k |∩Ω ηn L ) ≥ n L L where n L is the smallest positive integer that is not smaller than max{1/L, n + 1}. It then follows that, with the choice of k 0 = max{n + 1, m 0 + 1}, which is not possible. It follows that w n is admissible. The definition of w n together with (3.1) allow us to conclude that w n ∈ N 1,p (Ω) for each n ∈ N and that lim n w n N 1,p (Ω) = 0. In addition from the above argument, we have w n ∈ A F for each n ∈ N. Indeed, to see this it only remains to show that lim n Ω w p n dµ = 0. This would follow from the Lebesgue dominated convergence theorem if we know that w n → 0 pointwise in Ω. For each n ∈ N set U n to be the collection of all points x ∈ Ω for which there is a curve γ connecting x to x 0 with γ ⊂ Ω \ Ω ηn and ℓ(γ) < √ n. It is not difficult to see that n U n = Ω, U n ⊂ U n+1 , and w n ≤ 1/ √ n on U n with w n ≤ 1 on Ω \ U n . It follows that w n → 0 pointwise in Ω. Hence, C P p (F ) = 0 and the proof of the proposition is completed. The results of this section give the negative answer to this question. Indeed, by Theorem 3.3 we have that the collection of all non-singleton prime ends ∂ P Ω \ ∂ SP Ω has C P p -capacity zero.

Resolutivity of functions that are d M -Lipschitz outside F
The following is the second main result of the paper.
Theorem 4.1. Let (X, d, µ) be a complete metric measure space equipped with a doubling measure µ supporting a p-Poincaré inequality and Ω ⊂ X be a bounded domain such that C p (X \ Ω) > 0. Let f : ∂ P Ω → R such that its restriction to ∂ RSP Ω, the collection of all rectifiably accessible prime ends of Ω, is Lipschitz continuous with respect to the Mazurkiewicz metric d M . Then f is resolutive and Furthermore, if f 1 , f 2 are such functions with f 1 = f 2 on ∂ RSP Ω, then P Ω P f 1 = P Ω P f 2 on Ω.
Since the closure of ∂ RSP Ω under the Mazurkiewicz metric is ∂ SP Ω, we know that if f 1 = f 2 on ∂ RSP Ω, then the continuous extensions of f 1 and f 2 to ∂ SP Ω also satisfy this equality.
Proof. Recall from the discussion following Definition 2.3 that the Mazurkiewicz metric d M extends to a metric, also denoted d M , to Ω ∪ ∂ SP Ω. Therefore by the McShane extension theorem, see [23] and [16,Chapter 6], f | ∂RSP Ω has a Lipschitz extension, denoted F , to Ω ∪ ∂ SP Ω. Moreover, the Lipschitz constants of f | ∂RSP Ω and F are the same.
From [20, Lemma 6.2.6] it follows that is a bounded upper gradient of F in Ω with respect to the metric d M , and hence by [7, Proposition 5.3] we know that F | Ω ∈ N 1,p (Ω).
We extend F by f to ∂ P Ω \ ∂ SP Ω. Observe that by the discussion following Definition 2.10 and by Definition 2.12, every prime end in ∂ P Ω falls into one of the classes described by these definitions. Therefore, Theorem 3.3 implies that F is C P p -quasicontinuous on Ω ∪ ∂ P Ω. Hence, by Theorem 2.23 we know that F | ∂PΩ = f is resolutive, and that P Ω P f = HF . This proves the first assertion of the theorem.   [13]. In [13,Theorem 7.7] (see Theorem 2.23 above), a corresponding function f is defined on the whole Ω P , is C P p -quasicontinuous and is assumed to belong to N 1,p (Ω). Here, we require f to be merely defined on ∂ P Ω, but then also to be Lipschitz continuous on ∂ RSP Ω with respect to the Mazurkiewicz metric d M . See [7] for more on this metric and its relation to ∂ SP Ω. Thus the advantage in the above theorem is that we do not a priori have to verify whether the function is a quasicontinuous function on Ω P , but the disadvantage is that we need f to be Lipschitz on ∂ RSP Ω with respect to d M , not merely C In light of the above remark, the following proposition is a strengthening of Theorem 4.1. Its proof is similar to the latter part of the proof of Theorem 4.1, and hence is omitted here.
The following observation is a consequence of Proposition 4.3. The proof is the same as that of [13,Corollary 7.9] and, thus is omitted.

Examples
Some examples related to the Dirichlet problem for the prime end boundary can be found in [7,13,4]. The examples we provide here are geared more towards illustrating the properties of results from the previous sections.
There It is easy to see that f 0 is C P p -quasicontinuous on ∂ P Ω as it is continuous on ∂ SP Ω, but neither Theorem 4.1 nor [13,Theorem 7.7] tells us that f 0 is resolutive. Note that f 0 is not continuous on ∂ P Ω as it fails to have a continuous extension to ∂ P Ω \ ∂ SP Ω. On the other hand, if f 1 (x, y) = √ yf (x, y) for (x, y) ∈ ∂Ω and f 0 is constructed in a corresponding manner from f 1 , then it is clear that such f 0 is continuous on ∂ P Ω, and again f 0 is not known to be resolutive.
Both constructions of f 0 do not give functions that are Lipschitz (with respect to d M ) on ∂ SP Ω.
Example 5.2. We modify Example 2.15 as follows. Let α > 0 and equipped with the 3-dimensional Lebesgue measure and the Euclidean metric. It can be seen that the measure on this space is doubling and supports a 1-Poincaré inequality. Let Ω be obtained by removing Suppose that α > p − 1. Then an extension F of the function given in Example 5.1, by F (x, y, z) = f (x, y), yields a function on ∂ P Ω that is easily seen to have an extension to Ω such that this extension is C P p -quasicontinuous on Ω P and the restriction of the extension belongs to N 1,p (Ω). Thus Proposition 4.3 now tells us that F is resolutive, even though it is not continuous on the boundary of Ω. ]×(0, 1 n ) for n = 3, 4, ....) The remaining prime end boundary consists of singleton prime ends only (in fact all of them are rectifiably accessible). Therefore, Theorem 4.1 allows us to conclude that any function on ∂ P Ω Lipschitz continuous on ∂ SP Ω with respect to the Mazurkiewicz distance d M is resolutive. Furthermore, one can perturb the boundary data at a point [E k ] ∈ ∂ P Ω\∂ SP Ω and that data is resolutive as well. Note that C p (I([E k ])) > 0, and so the now-classical theory of Perron solutions from [9] does not yield such perturbation result. The remaining prime ends are rectifiably accessible. Therefore, a boundary data f : ∂ P Ω → R can be perturbed at [E k ] freely, remaining resolutive, provided Lipschitz continuity of f | ∂RSP Ω with respect to the Mazurkiewicz distance. Observe that for p > 2 it holds that the Sobolev capacity C p ({(0, 0)}) > 0, and so the resolutivity cannot be inferred from [9]. However, see [7, Example 10.1] for a similar discussion in the context of the Perron method with respect to the Mazurkiewicz boundary.
The following is an example of a domain with infinitely many rectifiably inaccessible prime ends. Consider Ω = (0, 3 2 ) × (0, 1) with the tunnel S 1 removed from Ω, see S 1 in Figure 3. The height and width of the double-slit tunnel are both equal to 1 2 . Following the idea of Example 2.11, the n-th horizontal sides of S 1 to be of length 1 n for n = 4, ..., while the length of the n-th vertical sides is 1 2 n for n ≥ 2. The separation between the two sinuous curves that form S 1 narrows as n increases (see Figure 3). The limiting point, denoted x 1 , forms the impression of three singleton prime ends. Since any curve approaching x 1 from inside the tunnel S 1 is of length at least ∞ n=4 1 n = ∞, this prime end is rectifiably inaccessible. The other two singleton prime ends with the same impression {x 1 }, namely defined by two curves approaching x 1 from the left-and right-hand sides of S 1 , respectively. Existence of such prime ends is guaranteed e.g. by Lemma 7.7. in [1]. Next, we scale the dimensions of S 1 by 1 2 and shift it to the right in a distance 1 8 obtaining new tunnel, denoted S 2 , and the corresponding impression {x 2 } gives a rectifiably inaccessible prime end. We repeat this procedure, obtaining a family S n for n ∈ N with 2 −(n+2) the distance between S n and S n+1 . Moreover, associated with {S n } is a sequence of points {x n } ∞ n=1 such that x n → ( 3 2 , 0) for n → ∞. Each of x n is an impression of a rectifiably inaccessible prime end. By Proposition 3.3 the collection of rectifiably inaccessible prime ends of the domain Ω \ ∞ n=1 S n , has C P p -capacity zero.

The Kellogg property
The aim in this section is to prove a variant of the Kellogg property for the Perron solutions P Ω P f . Note that every continuous function on ∂Ω is resolutive for the classical Perron solution as considered in [9], and the corresponding Kellogg property is proved there. Since we do not know that every continuous function on ∂ P Ω is resolutive, in this paper we only consider continuous data f on ∂ P Ω that are resolutive, see Definition 6.4 below. See [5] for similar restrictions for domains whose prime end boundary consists only of singleton prime ends. Since the method of [5] rests crucially on the compactness of ∂ SP Ω, and such a compactness property is unavailable in our, more general, setting, our proof of the Kellogg property is different than the one in [5], and is more in the spirit of [8].
Here N 1,p 0 (W ) consists of functions f ∈ N 1,p (X) for which f = 0 C p -almost everywhere in X \ W , see Definition 2.2.
Suppose in addition that F satisfies 0 ≤ F ≤ 1 and is such that F | Ω ∈ N 1,p (Ω). Define a function Ψ : B → R as follows: Then Ψ ∈ N 1,p (B) and is a p-superminimizer in B.
Proof. We first show that Ψ ∈ N 1,p (B). Since 0 ≤ Ψ ≤ 1, it suffices to show that Ψ has a p-weak upper gradient in L p (B). As F is L-Lipschitz on Ω∪∂ SP Ω with respect to the Mazurkiewicz metric d M for some L > 0, the constant function g = L is an upper gradient of F on Ω ∪ ∂ SP Ω when considered with respect to the metric d M .
Then g is an upper gradient, also with respect to the original metric d, for F on Ω. Furthermore, if γ : [a, b] → B ∩ W with γ lying entirely in Ω or entirely in B ∩ ∂W , then the pair F, g satisfies the upper gradient gradient inequality along γ. If γ lies partially in Ω and intersects B ∩ ∂W , then by splitting it into two parts if necessary we may assume that γ(a) ∈ W , and set t 0 := sup{t ∈ [a, b] : γ([a, t]) ⊂ W }. Note then that γ(t 0 ) ∈ B ∩ ∂W ⊂ ∂Ω but γ([a, t 0 )) ⊂ W ⊂ Ω. Therefore there is some singleton prime end [E k ] ∈ ∂ P Ω such that E k ⊂ W for each k ∈ N and I([E k ]) = {γ(t 0 )}, and so lim t→t − 0 F (γ(t)) = 1 = Ψ(γ(t 0 )), and the pair F, g satisfies the upper gradient inequality on γ| [a,t] for each t < t 0 . It follows now that It follows that the extension of F | W by 1 to B \ W has gχ W as an upper gradient in B. Note that the zero extension of F − H Ω F from Ω to X, denoted h, is in N 1,p 0 (Ω); let g h ∈ L p (X) be an upper gradient of h (in X). Then by the above argument, the function g h + g χ W is an upper gradient of Ψ in B, that is, Ψ ∈ N 1,p (B).
The rest of the proof follows the steps of the corresponding proof of [8,Lemma 3.11]. By Theorem 2.23 we get that F is resolutive and P Ω P F = H Ω F . The comparison L A T E Xed July 24, 2018 0:47 principle allows us to infer that 0 ≤ H Ω F ≤ 1. Let ϕ ∈ N 1,p 0 (B∩W ) be nonnegative. Our goal is to show that (6.2) Since Ψ ≤ 1 in W , then we may assume that Ψ + ϕ ≤ 1, as otherwise one can replace test function ϕ by min{ϕ, 1 − Ψ} and decrease the right-hand side of (6.2). Hence, ϕ ≡ 0 in B \ W and thus ϕ ∈ N 1,p 0 (B ∩ Ω). As H Ω F is a p-minimizer in B ∩ Ω ϕ ∈ N 1,p 0 (B ∩ Ω) ⊂ N 1,p 0 (Ω), it follows that Thus Ψ is a p-superminimizer in B.
We say that [E k ] is resolutively irregular if it is not resolutively regular. Let Irr(Ω) denote the collection of all resolutively irregular points in ∂ P Ω. Proof. The proof follows the steps of the corresponding proof of Theorem 3.9 in [8]. However, the setting of prime end boundary requires several modifications of the original argument.
The compactness of ∂Ω allows us to find a finite covering of it by balls B j,k := B(x j,k , 2 −j ) for j = 1, 2, ... and 1 ≤ k ≤ N j , with x j,k ∈ ∂Ω. Note that 2B(x j,k , 2 −j )∩ Ω has at most countably many connectedness components which we index with l = 1, 2, ... and denote by B l j,k . We introduce the functions ϕ l j,k : X → R by ϕ l j,k (y) = min{1, 2 j dist(y, X \ 2B(x j,k , 2 −j ))}χ B l j,k (y).
It is easy to see that 0 ≤ ϕ l j,k ≤ 1 and that every ϕ l j,k is Lipschitz continuous on Ω, and hence is Lipschitz continuous on Ω also with respect to the Mazurkiewicz metric d M . We extend ϕ l j,k to functions on Ω P as follows: ϕ l j,k (y) =      ϕ l j,k (y) if y ∈ Ω, inf z∈I[y] ϕ l j,k (z) if y = [E n ] ∈ ∂ P Ω with E n ⊂ B l j,k for large enough n, 0 otherwise.
Observe that these functions satisfy the following properties: (i) ϕ l j,k is Lipschitz continuous with respect to d M on Ω ∪ ∂ SP Ω. Indeed, since we know that ϕ l j,k = ϕ l j,k is Lipschitz on Ω with respect to the metric d M , it has a unique Lipschitz (with respect to d M ) extension to Ω ∪ ∂ SP Ω, and as ϕ l j,k is continuous on Ω ∪ ∂ SP Ω, it follows that it is Lipschitz on that set with respect to d M .
Note that I j,k,l ⊂ Irr(Ω). Moreover, by Lemma 6.3 applied to B = B j,k , component W = B l j,k and F = ϕ l j,k we get Ψ, a p-superminimizer on B l j,k such that Ψ = H Ω ϕ l j,k on B j,k ∩ B l j,k and Ψ ≡ 1 on B j,k \ B l j,k . Therefore, the assertion of Lemma 6.2 together with [13, Lemma 6.11] allows us to infer that 0 ≤ C P p (I j,k,l ) ≤ C p (P −1 (I j,k,l )) = 0, P Ω P f (y) = f ([E m ]).
We should interpret the above statement to mean that either the limit on the lefthand side does not exist, or, if it exists, fails to equal the value on the right-hand side. Let P Ω P f (y) < 1.
As f is continuous on ∂ P Ω, there is some open set U ⊂ Ω P with [E m ] ∈ U such that f > 1 on ∂ P Ω ∩ U . For each j ∈ N there is some k j such that x 0 ∈ B j,kj .
As [E m ] ∈ ∂ SP Ω, we have lim m→∞ diam(E m ) = 0. Thus E m ⊂ B j,kj for sufficiently large m ∈ N, and as E m is connected and x 0 ∈ ∂E m ∩ ∂Ω, it follows that there is some l with x 0 ∈ B j,kj ∩ ∂B l j,kj and for sufficiently large m ∈ N we have E m ⊂ B l j,kj ⊂ U . It follows that ϕ l j,kj ([E m ]) = 1 and ϕ l j,kj ≤ f on ∂ P Ω. It follows that H Ω ϕ l j,kj = P Ω P ϕ l j,kj ≤ P Ω P f P Ω P ϕ l j,kj (y) ≤ lim inf Ω∋y Ω P

→ [Em]
P Ω P f (y) < 1, P is a subset of j∈N k l I j,k,l , and this holds true for each resolutive f ∈ C(∂ P Ω). Hence Irr(Ω) ∩ ∂ SP Ω ⊂ j∈N k l I j,k,l , and so by (6.3), Theorem 3.3, and by the countable subadditivity of C P p the desired conclusion follows.